]> git.saurik.com Git - cycript.git/blame - configure
Unix domain sockets are often walled by sandboxes.
[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#
7341eedb 14# Copyright (C) 2009-2016 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 646CY_LIBCLANG
cb7b4fad
JF
647CY_ANDROID_FALSE
648CY_ANDROID_TRUE
649CY_ANDROID
a243b558
JF
650CY_OBJECTIVEC_FALSE
651CY_OBJECTIVEC_TRUE
591b913e
JF
652CY_PYTHON_FALSE
653CY_PYTHON_TRUE
5f29ae16
JF
654CY_RUBY_FALSE
655CY_RUBY_TRUE
39ed1631
JF
656CY_JAVA_FALSE
657CY_JAVA_TRUE
babf7fe8 658LTOBJECTIVEC
47aaa820 659GNUSTEP_CONFIG
c823f118 660CY_OBJECTIVEC
591b913e
JF
661CY_PRELINK_FALSE
662CY_PRELINK_TRUE
663LTPYTHON
664CY_PYTHON
5f29ae16
JF
665LTRUBY
666CY_RUBY
3b531dd5
JF
667LIBRUBY21_LIBS
668LIBRUBY21_CFLAGS
39ed1631
JF
669LTJAVA
670CY_JAVA
296ee9a6 671LTLIBFFI
309b0535 672LIBFFI_LIBS
35fa52c0 673LIBFFI_CFLAGS
8d20f0f1 674LTLIBSQLITE3
ae1b611e 675LTLIBUV
8d20f0f1 676CY_SYSTEM
a243b558
JF
677CY_EXECUTE_FALSE
678CY_EXECUTE_TRUE
a4287117
JF
679CY_ATTACH_FALSE
680CY_ATTACH_TRUE
a93f15c0
JF
681CY_CONSOLE_FALSE
682CY_CONSOLE_TRUE
babf7fe8 683LTJAVASCRIPTCORE
35fa52c0
DWT
684WEBKIT_LIBS
685WEBKIT_CFLAGS
7eda51e0 686CY_EXECUTE
be2fde87
JF
687PTHREAD_CFLAGS
688PTHREAD_LIBS
689PTHREAD_CC
690ax_pthread_config
77578fdd 691LFLAGS
e9c9a47c 692GNUTAR
e9c9a47c
DWT
693GPERF
694FLEX
695BISON
696TIME
66170b30 697GIT
12833ad8
JF
698PKG_CONFIG_LIBDIR
699PKG_CONFIG_PATH
3fd51f51 700PKG_CONFIG
1771224f 701HAVE_CXX11
9d54db95 702LT_SYS_LIBRARY_PATH
9c60689e
DWT
703OTOOL64
704OTOOL
705LIPO
706NMEDIT
707DSYMUTIL
ee134472 708MANIFEST_TOOL
9c60689e 709RANLIB
ee134472 710DLLTOOL
9c60689e
DWT
711OBJDUMP
712LN_S
713NM
714ac_ct_DUMPBIN
715DUMPBIN
716LD
717FGREP
718EGREP
719GREP
720SED
8d20f0f1
JF
721LIBTOOL
722ac_ct_AR
723AR
724CXXCPPFLAGS_FOR_BUILD
725CXXFLAGS_FOR_BUILD
726CXXCPP_FOR_BUILD
727ac_ct_CXX_FOR_BUILD
728CXX_FOR_BUILD
729CXXCPP
730LDFLAGS_FOR_BUILD
731CPPFLAGS_FOR_BUILD
732CFLAGS_FOR_BUILD
733BUILD_OBJEXT
734BUILD_EXEEXT
735CPP_FOR_BUILD
736ac_ct_CC_FOR_BUILD
737CC_FOR_BUILD
a243b558
JF
738host_os
739host_vendor
740host_cpu
741host
742build_os
743build_vendor
744build_cpu
745build
8d20f0f1 746CPP
a243b558
JF
747am__fastdepOBJCXX_FALSE
748am__fastdepOBJCXX_TRUE
749OBJCXXDEPMODE
750ac_ct_OBJCXX
751OBJCXXFLAGS
752OBJCXX
753am__fastdepCXX_FALSE
754am__fastdepCXX_TRUE
755CXXDEPMODE
a93f15c0
JF
756ac_ct_CXX
757CXXFLAGS
758CXX
759am__fastdepCC_FALSE
760am__fastdepCC_TRUE
761CCDEPMODE
66170b30
JF
762am__nodep
763AMDEPBACKSLASH
764AMDEP_FALSE
765AMDEP_TRUE
766am__quote
767am__include
768DEPDIR
35fa52c0
DWT
769OBJEXT
770EXEEXT
a93f15c0 771ac_ct_CC
35fa52c0
DWT
772CPPFLAGS
773LDFLAGS
a93f15c0
JF
774CFLAGS
775CC
babf7fe8
JF
776MAINT
777MAINTAINER_MODE_FALSE
778MAINTAINER_MODE_TRUE
66170b30
JF
779AM_BACKSLASH
780AM_DEFAULT_VERBOSITY
781AM_DEFAULT_V
782AM_V
783am__untar
784am__tar
785AMTAR
786am__leading_dot
787SET_MAKE
788AWK
789mkdir_p
790MKDIR_P
791INSTALL_STRIP_PROGRAM
792STRIP
793install_sh
794MAKEINFO
795AUTOHEADER
796AUTOMAKE
797AUTOCONF
798ACLOCAL
799VERSION
800PACKAGE
801CYGPATH_W
802am__isrc
803INSTALL_DATA
804INSTALL_SCRIPT
805INSTALL_PROGRAM
dbadc56a 806target_alias
c7aa54aa
DWT
807host_alias
808build_alias
809LIBS
810ECHO_T
811ECHO_N
812ECHO_C
813DEFS
814mandir
815localedir
816libdir
817psdir
818pdfdir
819dvidir
820htmldir
821infodir
822docdir
823oldincludedir
824includedir
825localstatedir
826sharedstatedir
827sysconfdir
828datadir
829datarootdir
830libexecdir
831sbindir
832bindir
833program_transform_name
834prefix
835exec_prefix
836PACKAGE_URL
837PACKAGE_BUGREPORT
838PACKAGE_STRING
839PACKAGE_VERSION
840PACKAGE_TARNAME
841PACKAGE_NAME
842PATH_SEPARATOR
843SHELL'
844ac_subst_files=''
845ac_user_opts='
846enable_option_checking
66170b30 847enable_silent_rules
babf7fe8 848enable_maintainer_mode
a243b558 849enable_dependency_tracking
9c60689e 850enable_static
549f29b5 851enable_shared
9c60689e
DWT
852with_pic
853enable_fast_install
9d54db95 854with_aix_soname
35fa52c0 855with_gnu_ld
ee134472 856with_sysroot
9c60689e 857enable_libtool_lock
5053a6d1 858enable_javascript
a93f15c0 859enable_console
a4287117 860enable_attach
591b913e 861with_python
8d20f0f1 862with_libclang
c7aa54aa
DWT
863'
864 ac_precious_vars='build_alias
865host_alias
dbadc56a 866target_alias
a93f15c0
JF
867CC
868CFLAGS
dbadc56a
DWT
869LDFLAGS
870LIBS
871CPPFLAGS
a93f15c0
JF
872CXX
873CXXFLAGS
a243b558
JF
874CCC
875OBJCXX
876OBJCXXFLAGS
9c60689e 877CPP
a243b558 878CXXCPP
8d20f0f1 879LT_SYS_LIBRARY_PATH
3fd51f51 880PKG_CONFIG
12833ad8
JF
881PKG_CONFIG_PATH
882PKG_CONFIG_LIBDIR
e9c9a47c
DWT
883BISON
884FLEX
885GPERF
66170b30 886GNUTAR
77578fdd 887LFLAGS
35fa52c0
DWT
888WEBKIT_CFLAGS
889WEBKIT_LIBS
a667869d 890LIBFFI_CFLAGS
790e5246 891LIBFFI_LIBS
3b531dd5
JF
892LIBRUBY21_CFLAGS
893LIBRUBY21_LIBS
790e5246 894GNUSTEP_CONFIG'
c7aa54aa
DWT
895
896
897# Initialize some variables set by options.
898ac_init_help=
899ac_init_version=false
900ac_unrecognized_opts=
901ac_unrecognized_sep=
902# The variables have the same names as the options, with
903# dashes changed to underlines.
904cache_file=/dev/null
905exec_prefix=NONE
906no_create=
907no_recursion=
908prefix=NONE
909program_prefix=NONE
910program_suffix=NONE
911program_transform_name=s,x,x,
912silent=
913site=
914srcdir=
915verbose=
916x_includes=NONE
917x_libraries=NONE
918
919# Installation directory options.
920# These are left unexpanded so users can "make install exec_prefix=/foo"
921# and all the variables that are supposed to be based on exec_prefix
922# by default will actually change.
923# Use braces instead of parens because sh, perl, etc. also accept them.
924# (The list follows the same order as the GNU Coding Standards.)
925bindir='${exec_prefix}/bin'
926sbindir='${exec_prefix}/sbin'
927libexecdir='${exec_prefix}/libexec'
928datarootdir='${prefix}/share'
929datadir='${datarootdir}'
930sysconfdir='${prefix}/etc'
931sharedstatedir='${prefix}/com'
932localstatedir='${prefix}/var'
933includedir='${prefix}/include'
934oldincludedir='/usr/include'
935docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
936infodir='${datarootdir}/info'
937htmldir='${docdir}'
938dvidir='${docdir}'
939pdfdir='${docdir}'
940psdir='${docdir}'
941libdir='${exec_prefix}/lib'
942localedir='${datarootdir}/locale'
943mandir='${datarootdir}/man'
944
945ac_prev=
946ac_dashdash=
947for ac_option
948do
949 # If the previous option needs an argument, assign it.
950 if test -n "$ac_prev"; then
951 eval $ac_prev=\$ac_option
952 ac_prev=
953 continue
954 fi
955
956 case $ac_option in
12833ad8
JF
957 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
958 *=) ac_optarg= ;;
959 *) ac_optarg=yes ;;
c7aa54aa
DWT
960 esac
961
962 # Accept the important Cygnus configure options, so we can diagnose typos.
963
964 case $ac_dashdash$ac_option in
965 --)
966 ac_dashdash=yes ;;
967
968 -bindir | --bindir | --bindi | --bind | --bin | --bi)
969 ac_prev=bindir ;;
970 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
971 bindir=$ac_optarg ;;
972
973 -build | --build | --buil | --bui | --bu)
974 ac_prev=build_alias ;;
975 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
976 build_alias=$ac_optarg ;;
977
978 -cache-file | --cache-file | --cache-fil | --cache-fi \
979 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
980 ac_prev=cache_file ;;
981 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
982 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
983 cache_file=$ac_optarg ;;
984
985 --config-cache | -C)
986 cache_file=config.cache ;;
987
988 -datadir | --datadir | --datadi | --datad)
989 ac_prev=datadir ;;
990 -datadir=* | --datadir=* | --datadi=* | --datad=*)
991 datadir=$ac_optarg ;;
992
993 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
994 | --dataroo | --dataro | --datar)
995 ac_prev=datarootdir ;;
996 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
997 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
998 datarootdir=$ac_optarg ;;
999
1000 -disable-* | --disable-*)
1001 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1002 # Reject names that are not valid shell variable names.
1003 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
12833ad8 1004 as_fn_error $? "invalid feature name: $ac_useropt"
c7aa54aa
DWT
1005 ac_useropt_orig=$ac_useropt
1006 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1007 case $ac_user_opts in
1008 *"
1009"enable_$ac_useropt"
1010"*) ;;
1011 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1012 ac_unrecognized_sep=', ';;
1013 esac
1014 eval enable_$ac_useropt=no ;;
1015
1016 -docdir | --docdir | --docdi | --doc | --do)
1017 ac_prev=docdir ;;
1018 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1019 docdir=$ac_optarg ;;
1020
1021 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1022 ac_prev=dvidir ;;
1023 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1024 dvidir=$ac_optarg ;;
1025
1026 -enable-* | --enable-*)
1027 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1028 # Reject names that are not valid shell variable names.
1029 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
12833ad8 1030 as_fn_error $? "invalid feature name: $ac_useropt"
c7aa54aa
DWT
1031 ac_useropt_orig=$ac_useropt
1032 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1033 case $ac_user_opts in
1034 *"
1035"enable_$ac_useropt"
1036"*) ;;
1037 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1038 ac_unrecognized_sep=', ';;
1039 esac
1040 eval enable_$ac_useropt=\$ac_optarg ;;
1041
1042 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1043 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1044 | --exec | --exe | --ex)
1045 ac_prev=exec_prefix ;;
1046 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1047 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1048 | --exec=* | --exe=* | --ex=*)
1049 exec_prefix=$ac_optarg ;;
1050
1051 -gas | --gas | --ga | --g)
1052 # Obsolete; use --with-gas.
1053 with_gas=yes ;;
1054
1055 -help | --help | --hel | --he | -h)
1056 ac_init_help=long ;;
1057 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1058 ac_init_help=recursive ;;
1059 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1060 ac_init_help=short ;;
1061
1062 -host | --host | --hos | --ho)
1063 ac_prev=host_alias ;;
1064 -host=* | --host=* | --hos=* | --ho=*)
1065 host_alias=$ac_optarg ;;
1066
1067 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1068 ac_prev=htmldir ;;
1069 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1070 | --ht=*)
1071 htmldir=$ac_optarg ;;
1072
1073 -includedir | --includedir | --includedi | --included | --include \
1074 | --includ | --inclu | --incl | --inc)
1075 ac_prev=includedir ;;
1076 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1077 | --includ=* | --inclu=* | --incl=* | --inc=*)
1078 includedir=$ac_optarg ;;
1079
1080 -infodir | --infodir | --infodi | --infod | --info | --inf)
1081 ac_prev=infodir ;;
1082 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1083 infodir=$ac_optarg ;;
1084
1085 -libdir | --libdir | --libdi | --libd)
1086 ac_prev=libdir ;;
1087 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1088 libdir=$ac_optarg ;;
1089
1090 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1091 | --libexe | --libex | --libe)
1092 ac_prev=libexecdir ;;
1093 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1094 | --libexe=* | --libex=* | --libe=*)
1095 libexecdir=$ac_optarg ;;
1096
1097 -localedir | --localedir | --localedi | --localed | --locale)
1098 ac_prev=localedir ;;
1099 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1100 localedir=$ac_optarg ;;
1101
1102 -localstatedir | --localstatedir | --localstatedi | --localstated \
1103 | --localstate | --localstat | --localsta | --localst | --locals)
1104 ac_prev=localstatedir ;;
1105 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1106 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1107 localstatedir=$ac_optarg ;;
1108
1109 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1110 ac_prev=mandir ;;
1111 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1112 mandir=$ac_optarg ;;
1113
1114 -nfp | --nfp | --nf)
1115 # Obsolete; use --without-fp.
1116 with_fp=no ;;
1117
1118 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1119 | --no-cr | --no-c | -n)
1120 no_create=yes ;;
1121
1122 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1123 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1124 no_recursion=yes ;;
1125
1126 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1127 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1128 | --oldin | --oldi | --old | --ol | --o)
1129 ac_prev=oldincludedir ;;
1130 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1131 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1132 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1133 oldincludedir=$ac_optarg ;;
1134
1135 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1136 ac_prev=prefix ;;
1137 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1138 prefix=$ac_optarg ;;
1139
1140 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1141 | --program-pre | --program-pr | --program-p)
1142 ac_prev=program_prefix ;;
1143 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1144 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1145 program_prefix=$ac_optarg ;;
1146
1147 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1148 | --program-suf | --program-su | --program-s)
1149 ac_prev=program_suffix ;;
1150 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1151 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1152 program_suffix=$ac_optarg ;;
1153
1154 -program-transform-name | --program-transform-name \
1155 | --program-transform-nam | --program-transform-na \
1156 | --program-transform-n | --program-transform- \
1157 | --program-transform | --program-transfor \
1158 | --program-transfo | --program-transf \
1159 | --program-trans | --program-tran \
1160 | --progr-tra | --program-tr | --program-t)
1161 ac_prev=program_transform_name ;;
1162 -program-transform-name=* | --program-transform-name=* \
1163 | --program-transform-nam=* | --program-transform-na=* \
1164 | --program-transform-n=* | --program-transform-=* \
1165 | --program-transform=* | --program-transfor=* \
1166 | --program-transfo=* | --program-transf=* \
1167 | --program-trans=* | --program-tran=* \
1168 | --progr-tra=* | --program-tr=* | --program-t=*)
1169 program_transform_name=$ac_optarg ;;
1170
1171 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1172 ac_prev=pdfdir ;;
1173 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1174 pdfdir=$ac_optarg ;;
1175
1176 -psdir | --psdir | --psdi | --psd | --ps)
1177 ac_prev=psdir ;;
1178 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1179 psdir=$ac_optarg ;;
1180
1181 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1182 | -silent | --silent | --silen | --sile | --sil)
1183 silent=yes ;;
1184
1185 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1186 ac_prev=sbindir ;;
1187 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1188 | --sbi=* | --sb=*)
1189 sbindir=$ac_optarg ;;
1190
1191 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1192 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1193 | --sharedst | --shareds | --shared | --share | --shar \
1194 | --sha | --sh)
1195 ac_prev=sharedstatedir ;;
1196 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1197 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1198 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1199 | --sha=* | --sh=*)
1200 sharedstatedir=$ac_optarg ;;
1201
1202 -site | --site | --sit)
1203 ac_prev=site ;;
1204 -site=* | --site=* | --sit=*)
1205 site=$ac_optarg ;;
1206
1207 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1208 ac_prev=srcdir ;;
1209 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1210 srcdir=$ac_optarg ;;
1211
1212 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1213 | --syscon | --sysco | --sysc | --sys | --sy)
1214 ac_prev=sysconfdir ;;
1215 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1216 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1217 sysconfdir=$ac_optarg ;;
1218
1219 -target | --target | --targe | --targ | --tar | --ta | --t)
1220 ac_prev=target_alias ;;
1221 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1222 target_alias=$ac_optarg ;;
1223
1224 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1225 verbose=yes ;;
1226
1227 -version | --version | --versio | --versi | --vers | -V)
1228 ac_init_version=: ;;
1229
1230 -with-* | --with-*)
1231 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
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--with-$ac_useropt_orig"
1242 ac_unrecognized_sep=', ';;
1243 esac
1244 eval with_$ac_useropt=\$ac_optarg ;;
1245
1246 -without-* | --without-*)
1247 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1248 # Reject names that are not valid shell variable names.
1249 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
12833ad8 1250 as_fn_error $? "invalid package name: $ac_useropt"
c7aa54aa
DWT
1251 ac_useropt_orig=$ac_useropt
1252 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1253 case $ac_user_opts in
1254 *"
1255"with_$ac_useropt"
1256"*) ;;
1257 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1258 ac_unrecognized_sep=', ';;
1259 esac
1260 eval with_$ac_useropt=no ;;
1261
1262 --x)
1263 # Obsolete; use --with-x.
1264 with_x=yes ;;
1265
1266 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1267 | --x-incl | --x-inc | --x-in | --x-i)
1268 ac_prev=x_includes ;;
1269 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1270 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1271 x_includes=$ac_optarg ;;
1272
1273 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1274 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1275 ac_prev=x_libraries ;;
1276 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1277 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1278 x_libraries=$ac_optarg ;;
1279
12833ad8
JF
1280 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1281Try \`$0 --help' for more information"
c7aa54aa
DWT
1282 ;;
1283
1284 *=*)
1285 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1286 # Reject names that are not valid shell variable names.
1287 case $ac_envvar in #(
1288 '' | [0-9]* | *[!_$as_cr_alnum]* )
12833ad8 1289 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
c7aa54aa
DWT
1290 esac
1291 eval $ac_envvar=\$ac_optarg
1292 export $ac_envvar ;;
1293
1294 *)
1295 # FIXME: should be removed in autoconf 3.0.
1296 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1297 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1298 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
ee134472 1299 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
c7aa54aa
DWT
1300 ;;
1301
1302 esac
1303done
1304
1305if test -n "$ac_prev"; then
1306 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
12833ad8 1307 as_fn_error $? "missing argument to $ac_option"
c7aa54aa
DWT
1308fi
1309
1310if test -n "$ac_unrecognized_opts"; then
1311 case $enable_option_checking in
1312 no) ;;
12833ad8 1313 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
c7aa54aa
DWT
1314 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1315 esac
1316fi
1317
1318# Check all directory arguments for consistency.
1319for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1320 datadir sysconfdir sharedstatedir localstatedir includedir \
1321 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1322 libdir localedir mandir
1323do
1324 eval ac_val=\$$ac_var
1325 # Remove trailing slashes.
1326 case $ac_val in
1327 */ )
1328 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1329 eval $ac_var=\$ac_val;;
1330 esac
1331 # Be sure to have absolute directory names.
1332 case $ac_val in
1333 [\\/$]* | ?:[\\/]* ) continue;;
1334 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1335 esac
12833ad8 1336 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
c7aa54aa
DWT
1337done
1338
1339# There might be people who depend on the old broken behavior: `$host'
1340# used to hold the argument of --host etc.
1341# FIXME: To remove some day.
1342build=$build_alias
1343host=$host_alias
1344target=$target_alias
1345
1346# FIXME: To remove some day.
1347if test "x$host_alias" != x; then
1348 if test "x$build_alias" = x; then
1349 cross_compiling=maybe
c7aa54aa
DWT
1350 elif test "x$build_alias" != "x$host_alias"; then
1351 cross_compiling=yes
1352 fi
1353fi
1354
1355ac_tool_prefix=
1356test -n "$host_alias" && ac_tool_prefix=$host_alias-
1357
1358test "$silent" = yes && exec 6>/dev/null
1359
1360
1361ac_pwd=`pwd` && test -n "$ac_pwd" &&
1362ac_ls_di=`ls -di .` &&
1363ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
12833ad8 1364 as_fn_error $? "working directory cannot be determined"
c7aa54aa 1365test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
12833ad8 1366 as_fn_error $? "pwd does not report name of working directory"
c7aa54aa
DWT
1367
1368
1369# Find the source files, if location was not specified.
1370if test -z "$srcdir"; then
1371 ac_srcdir_defaulted=yes
1372 # Try the directory containing this script, then the parent directory.
1373 ac_confdir=`$as_dirname -- "$as_myself" ||
1374$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1375 X"$as_myself" : 'X\(//\)[^/]' \| \
1376 X"$as_myself" : 'X\(//\)$' \| \
1377 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1378$as_echo X"$as_myself" |
1379 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1380 s//\1/
1381 q
1382 }
1383 /^X\(\/\/\)[^/].*/{
1384 s//\1/
1385 q
1386 }
1387 /^X\(\/\/\)$/{
1388 s//\1/
1389 q
1390 }
1391 /^X\(\/\).*/{
1392 s//\1/
1393 q
1394 }
1395 s/.*/./; q'`
1396 srcdir=$ac_confdir
1397 if test ! -r "$srcdir/$ac_unique_file"; then
1398 srcdir=..
1399 fi
1400else
1401 ac_srcdir_defaulted=no
1402fi
1403if test ! -r "$srcdir/$ac_unique_file"; then
1404 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
12833ad8 1405 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
c7aa54aa
DWT
1406fi
1407ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1408ac_abs_confdir=`(
12833ad8 1409 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
c7aa54aa
DWT
1410 pwd)`
1411# When building in place, set srcdir=.
1412if test "$ac_abs_confdir" = "$ac_pwd"; then
1413 srcdir=.
1414fi
1415# Remove unnecessary trailing slashes from srcdir.
1416# Double slashes in file names in object file debugging info
1417# mess up M-x gdb in Emacs.
1418case $srcdir in
1419*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1420esac
1421for ac_var in $ac_precious_vars; do
1422 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1423 eval ac_env_${ac_var}_value=\$${ac_var}
1424 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1425 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1426done
1427
1428#
1429# Report the --help message.
1430#
1431if test "$ac_init_help" = "long"; then
1432 # Omit some internal or obsolete options to make the list less imposing.
1433 # This message is too long to be a string in the A/UX 3.1 sh.
1434 cat <<_ACEOF
1435\`configure' configures Cycript 0.9 to adapt to many kinds of systems.
1436
1437Usage: $0 [OPTION]... [VAR=VALUE]...
1438
1439To assign environment variables (e.g., CC, CFLAGS...), specify them as
1440VAR=VALUE. See below for descriptions of some of the useful variables.
1441
1442Defaults for the options are specified in brackets.
1443
1444Configuration:
1445 -h, --help display this help and exit
1446 --help=short display options specific to this package
1447 --help=recursive display the short help of all the included packages
1448 -V, --version display version information and exit
12833ad8 1449 -q, --quiet, --silent do not print \`checking ...' messages
c7aa54aa
DWT
1450 --cache-file=FILE cache test results in FILE [disabled]
1451 -C, --config-cache alias for \`--cache-file=config.cache'
1452 -n, --no-create do not create output files
1453 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1454
1455Installation directories:
1456 --prefix=PREFIX install architecture-independent files in PREFIX
1457 [$ac_default_prefix]
1458 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1459 [PREFIX]
1460
1461By default, \`make install' will install all the files in
1462\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1463an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1464for instance \`--prefix=\$HOME'.
1465
1466For better control, use the options below.
1467
1468Fine tuning of the installation directories:
1469 --bindir=DIR user executables [EPREFIX/bin]
1470 --sbindir=DIR system admin executables [EPREFIX/sbin]
1471 --libexecdir=DIR program executables [EPREFIX/libexec]
1472 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1473 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1474 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1475 --libdir=DIR object code libraries [EPREFIX/lib]
1476 --includedir=DIR C header files [PREFIX/include]
1477 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1478 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1479 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1480 --infodir=DIR info documentation [DATAROOTDIR/info]
1481 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1482 --mandir=DIR man documentation [DATAROOTDIR/man]
1483 --docdir=DIR documentation root [DATAROOTDIR/doc/cycript]
1484 --htmldir=DIR html documentation [DOCDIR]
1485 --dvidir=DIR dvi documentation [DOCDIR]
1486 --pdfdir=DIR pdf documentation [DOCDIR]
1487 --psdir=DIR ps documentation [DOCDIR]
1488_ACEOF
1489
1490 cat <<\_ACEOF
35fa52c0 1491
66170b30
JF
1492Program names:
1493 --program-prefix=PREFIX prepend PREFIX to installed program names
1494 --program-suffix=SUFFIX append SUFFIX to installed program names
1495 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1496
35fa52c0
DWT
1497System types:
1498 --build=BUILD configure for building on BUILD [guessed]
1499 --host=HOST cross-compile to build programs to run on HOST [BUILD]
c7aa54aa
DWT
1500_ACEOF
1501fi
1502
1503if test -n "$ac_init_help"; then
1504 case $ac_init_help in
1505 short | recursive ) echo "Configuration of Cycript 0.9:";;
1506 esac
1507 cat <<\_ACEOF
1508
35fa52c0
DWT
1509Optional Features:
1510 --disable-option-checking ignore unrecognized --enable/--with options
1511 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1512 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
66170b30
JF
1513 --enable-silent-rules less verbose build output (undo: "make V=1")
1514 --disable-silent-rules verbose build output (undo: "make V=0")
babf7fe8
JF
1515 --enable-maintainer-mode
1516 enable make rules and dependencies not useful (and
1517 sometimes confusing) to the casual installer
66170b30
JF
1518 --enable-dependency-tracking
1519 do not reject slow dependency extractors
1520 --disable-dependency-tracking
1521 speeds up one-time build
a243b558
JF
1522 --enable-static[=PKGS] build static libraries [default=no]
1523 --enable-shared[=PKGS] build shared libraries [default=yes]
1524 --enable-fast-install[=PKGS]
1525 optimize for fast installation [default=yes]
9c60689e 1526 --disable-libtool-lock avoid locking (might break parallel builds)
b66977f1 1527 --enable-javascript[=ENGINE]
790e5246 1528 use a JavaScript runtime (currently the only
b66977f1
DWT
1529 available option for ENGINE is JavaScriptCore)
1530 [default=yes]
a93f15c0 1531 --disable-console disable console
a4287117 1532 --disable-attach disable attach
35fa52c0
DWT
1533
1534Optional Packages:
1535 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1536 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
53ba6704 1537 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
9c60689e 1538 both]
9d54db95
JF
1539 --with-aix-soname=aix|svr4|both
1540 shared library versioning (aka "SONAME") variant to
1541 provide on AIX, [default=aix].
9c60689e 1542 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
9d54db95
JF
1543 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1544 compiler's sysroot if not specified).
591b913e 1545 --with-python support python (pass the path to python-config)
8d20f0f1 1546 --with-libclang build bridge definitions using this libclang
35fa52c0 1547
dbadc56a 1548Some influential environment variables:
a93f15c0
JF
1549 CC C compiler command
1550 CFLAGS C compiler flags
dbadc56a
DWT
1551 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1552 nonstandard directory <lib dir>
1553 LIBS libraries to pass to the linker, e.g. -l<library>
9c60689e 1554 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
dbadc56a 1555 you have headers in a nonstandard directory <include dir>
a93f15c0
JF
1556 CXX C++ compiler command
1557 CXXFLAGS C++ compiler flags
a243b558
JF
1558 OBJCXX Objective C++ compiler command
1559 OBJCXXFLAGS Objective C++ compiler flags
9c60689e 1560 CPP C preprocessor
a243b558 1561 CXXCPP C++ preprocessor
8d20f0f1
JF
1562 LT_SYS_LIBRARY_PATH
1563 User-defined run-time library search path.
3fd51f51 1564 PKG_CONFIG path to pkg-config utility
12833ad8
JF
1565 PKG_CONFIG_PATH
1566 directories to add to pkg-config's search path
1567 PKG_CONFIG_LIBDIR
1568 path overriding pkg-config's built-in search path
e9c9a47c
DWT
1569 BISON GNU Project parser generator (yacc replacement)
1570 FLEX the fast lexical analyser generator
1571 GPERF perfect hash function generator
66170b30 1572 GNUTAR a very sticky lump of files
77578fdd 1573 LFLAGS flex flags
35fa52c0
DWT
1574 WEBKIT_CFLAGS
1575 C compiler flags for WEBKIT, overriding pkg-config
1576 WEBKIT_LIBS linker flags for WEBKIT, overriding pkg-config
574d4720
JF
1577 LIBFFI_CFLAGS
1578 C compiler flags for LIBFFI, overriding pkg-config
1579 LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config
3b531dd5
JF
1580 LIBRUBY21_CFLAGS
1581 C compiler flags for LIBRUBY21, overriding pkg-config
1582 LIBRUBY21_LIBS
1583 linker flags for LIBRUBY21, overriding pkg-config
790e5246
DWT
1584 GNUSTEP_CONFIG
1585 prints information about the current gnustep installation
dbadc56a
DWT
1586
1587Use these variables to override the choices made by `configure' or to help
1588it to find libraries and programs with nonstandard names/locations.
1589
c7aa54aa
DWT
1590Report bugs to <saurik@saurik.com>.
1591Cycript home page: <http://www.cycript.org/>.
1592_ACEOF
1593ac_status=$?
1594fi
1595
1596if test "$ac_init_help" = "recursive"; then
1597 # If there are subdirs, report their specific --help.
1598 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1599 test -d "$ac_dir" ||
1600 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1601 continue
1602 ac_builddir=.
1603
1604case "$ac_dir" in
1605.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1606*)
1607 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1608 # A ".." for each directory in $ac_dir_suffix.
1609 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1610 case $ac_top_builddir_sub in
1611 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1612 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1613 esac ;;
1614esac
1615ac_abs_top_builddir=$ac_pwd
1616ac_abs_builddir=$ac_pwd$ac_dir_suffix
1617# for backward compatibility:
1618ac_top_builddir=$ac_top_build_prefix
1619
1620case $srcdir in
1621 .) # We are building in place.
1622 ac_srcdir=.
1623 ac_top_srcdir=$ac_top_builddir_sub
1624 ac_abs_top_srcdir=$ac_pwd ;;
1625 [\\/]* | ?:[\\/]* ) # Absolute name.
1626 ac_srcdir=$srcdir$ac_dir_suffix;
1627 ac_top_srcdir=$srcdir
1628 ac_abs_top_srcdir=$srcdir ;;
1629 *) # Relative name.
1630 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1631 ac_top_srcdir=$ac_top_build_prefix$srcdir
1632 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1633esac
1634ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1635
1636 cd "$ac_dir" || { ac_status=$?; continue; }
1637 # Check for guested configure.
1638 if test -f "$ac_srcdir/configure.gnu"; then
1639 echo &&
1640 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1641 elif test -f "$ac_srcdir/configure"; then
1642 echo &&
1643 $SHELL "$ac_srcdir/configure" --help=recursive
1644 else
1645 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1646 fi || ac_status=$?
1647 cd "$ac_pwd" || { ac_status=$?; break; }
1648 done
1649fi
1650
1651test -n "$ac_init_help" && exit $ac_status
1652if $ac_init_version; then
1653 cat <<\_ACEOF
1654Cycript configure 0.9
53ba6704 1655generated by GNU Autoconf 2.69
c7aa54aa 1656
53ba6704 1657Copyright (C) 2012 Free Software Foundation, Inc.
c7aa54aa
DWT
1658This configure script is free software; the Free Software Foundation
1659gives unlimited permission to copy, distribute and modify it.
66170b30 1660
7341eedb 1661Copyright (C) 2009-2016 Jay Freeman (saurik)
c7aa54aa
DWT
1662_ACEOF
1663 exit
1664fi
1665
1666## ------------------------ ##
1667## Autoconf initialization. ##
1668## ------------------------ ##
dbadc56a 1669
a93f15c0
JF
1670# ac_fn_c_try_compile LINENO
1671# --------------------------
a243b558 1672# Try to compile conftest.$ac_ext, and return whether this succeeded.
a93f15c0 1673ac_fn_c_try_compile ()
a243b558
JF
1674{
1675 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1676 rm -f conftest.$ac_objext
1677 if { { ac_try="$ac_compile"
1678case "(($ac_try" in
1679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1680 *) ac_try_echo=$ac_try;;
1681esac
1682eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1683$as_echo "$ac_try_echo"; } >&5
1684 (eval "$ac_compile") 2>conftest.err
1685 ac_status=$?
1686 if test -s conftest.err; then
1687 grep -v '^ *+' conftest.err >conftest.er1
1688 cat conftest.er1 >&5
1689 mv -f conftest.er1 conftest.err
1690 fi
1691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1692 test $ac_status = 0; } && {
a93f15c0 1693 test -z "$ac_c_werror_flag" ||
a243b558
JF
1694 test ! -s conftest.err
1695 } && test -s conftest.$ac_objext; then :
1696 ac_retval=0
1697else
1698 $as_echo "$as_me: failed program was:" >&5
1699sed 's/^/| /' conftest.$ac_ext >&5
1700
1701 ac_retval=1
1702fi
1703 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1704 as_fn_set_status $ac_retval
1705
a93f15c0 1706} # ac_fn_c_try_compile
a243b558 1707
a93f15c0
JF
1708# ac_fn_cxx_try_compile LINENO
1709# ----------------------------
a243b558 1710# Try to compile conftest.$ac_ext, and return whether this succeeded.
a93f15c0 1711ac_fn_cxx_try_compile ()
a243b558
JF
1712{
1713 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1714 rm -f conftest.$ac_objext
1715 if { { ac_try="$ac_compile"
1716case "(($ac_try" in
1717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1718 *) ac_try_echo=$ac_try;;
1719esac
1720eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1721$as_echo "$ac_try_echo"; } >&5
1722 (eval "$ac_compile") 2>conftest.err
1723 ac_status=$?
1724 if test -s conftest.err; then
1725 grep -v '^ *+' conftest.err >conftest.er1
1726 cat conftest.er1 >&5
1727 mv -f conftest.er1 conftest.err
1728 fi
1729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1730 test $ac_status = 0; } && {
a93f15c0 1731 test -z "$ac_cxx_werror_flag" ||
a243b558
JF
1732 test ! -s conftest.err
1733 } && test -s conftest.$ac_objext; then :
1734 ac_retval=0
1735else
1736 $as_echo "$as_me: failed program was:" >&5
1737sed 's/^/| /' conftest.$ac_ext >&5
1738
1739 ac_retval=1
1740fi
1741 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1742 as_fn_set_status $ac_retval
1743
a93f15c0 1744} # ac_fn_cxx_try_compile
a243b558 1745
a93f15c0
JF
1746# ac_fn_objcxx_try_compile LINENO
1747# -------------------------------
35fa52c0 1748# Try to compile conftest.$ac_ext, and return whether this succeeded.
a93f15c0 1749ac_fn_objcxx_try_compile ()
35fa52c0
DWT
1750{
1751 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1752 rm -f conftest.$ac_objext
1753 if { { ac_try="$ac_compile"
1754case "(($ac_try" in
1755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1756 *) ac_try_echo=$ac_try;;
1757esac
1758eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1759$as_echo "$ac_try_echo"; } >&5
1760 (eval "$ac_compile") 2>conftest.err
1761 ac_status=$?
1762 if test -s conftest.err; then
1763 grep -v '^ *+' conftest.err >conftest.er1
1764 cat conftest.er1 >&5
1765 mv -f conftest.er1 conftest.err
1766 fi
1767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1768 test $ac_status = 0; } && {
a93f15c0 1769 test -z "$ac_objcxx_werror_flag" ||
35fa52c0
DWT
1770 test ! -s conftest.err
1771 } && test -s conftest.$ac_objext; then :
1772 ac_retval=0
1773else
1774 $as_echo "$as_me: failed program was:" >&5
1775sed 's/^/| /' conftest.$ac_ext >&5
1776
1777 ac_retval=1
1778fi
ee134472 1779 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9c60689e 1780 as_fn_set_status $ac_retval
35fa52c0 1781
a93f15c0 1782} # ac_fn_objcxx_try_compile
35fa52c0 1783
8d20f0f1
JF
1784# ac_fn_c_try_cpp LINENO
1785# ----------------------
1786# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1787ac_fn_c_try_cpp ()
1788{
1789 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1790 if { { ac_try="$ac_cpp conftest.$ac_ext"
1791case "(($ac_try" in
1792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1793 *) ac_try_echo=$ac_try;;
1794esac
1795eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1796$as_echo "$ac_try_echo"; } >&5
1797 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1798 ac_status=$?
1799 if test -s conftest.err; then
1800 grep -v '^ *+' conftest.err >conftest.er1
1801 cat conftest.er1 >&5
1802 mv -f conftest.er1 conftest.err
1803 fi
1804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1805 test $ac_status = 0; } > conftest.i && {
1806 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1807 test ! -s conftest.err
1808 }; then :
1809 ac_retval=0
1810else
1811 $as_echo "$as_me: failed program was:" >&5
1812sed 's/^/| /' conftest.$ac_ext >&5
1813
1814 ac_retval=1
1815fi
1816 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1817 as_fn_set_status $ac_retval
1818
1819} # ac_fn_c_try_cpp
1820
1821# ac_fn_cxx_try_cpp LINENO
1822# ------------------------
1823# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1824ac_fn_cxx_try_cpp ()
1825{
1826 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1827 if { { ac_try="$ac_cpp conftest.$ac_ext"
1828case "(($ac_try" in
1829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1830 *) ac_try_echo=$ac_try;;
1831esac
1832eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1833$as_echo "$ac_try_echo"; } >&5
1834 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1835 ac_status=$?
1836 if test -s conftest.err; then
1837 grep -v '^ *+' conftest.err >conftest.er1
1838 cat conftest.er1 >&5
1839 mv -f conftest.er1 conftest.err
1840 fi
1841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1842 test $ac_status = 0; } > conftest.i && {
1843 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1844 test ! -s conftest.err
1845 }; then :
1846 ac_retval=0
1847else
1848 $as_echo "$as_me: failed program was:" >&5
1849sed 's/^/| /' conftest.$ac_ext >&5
1850
1851 ac_retval=1
1852fi
1853 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1854 as_fn_set_status $ac_retval
1855
1856} # ac_fn_cxx_try_cpp
1857
35fa52c0
DWT
1858# ac_fn_c_try_link LINENO
1859# -----------------------
1860# Try to link conftest.$ac_ext, and return whether this succeeded.
1861ac_fn_c_try_link ()
1862{
1863 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1864 rm -f conftest.$ac_objext conftest$ac_exeext
1865 if { { ac_try="$ac_link"
1866case "(($ac_try" in
1867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1868 *) ac_try_echo=$ac_try;;
1869esac
1870eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1871$as_echo "$ac_try_echo"; } >&5
1872 (eval "$ac_link") 2>conftest.err
1873 ac_status=$?
1874 if test -s conftest.err; then
1875 grep -v '^ *+' conftest.err >conftest.er1
1876 cat conftest.er1 >&5
1877 mv -f conftest.er1 conftest.err
1878 fi
1879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1880 test $ac_status = 0; } && {
1881 test -z "$ac_c_werror_flag" ||
1882 test ! -s conftest.err
1883 } && test -s conftest$ac_exeext && {
1884 test "$cross_compiling" = yes ||
53ba6704 1885 test -x conftest$ac_exeext
35fa52c0
DWT
1886 }; then :
1887 ac_retval=0
1888else
1889 $as_echo "$as_me: failed program was:" >&5
1890sed 's/^/| /' conftest.$ac_ext >&5
1891
1892 ac_retval=1
1893fi
1894 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1895 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1896 # interfere with the next link command; also delete a directory that is
1897 # left behind by Apple's compiler. We do this before executing the actions.
1898 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
ee134472 1899 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9c60689e 1900 as_fn_set_status $ac_retval
35fa52c0
DWT
1901
1902} # ac_fn_c_try_link
1903
9c60689e
DWT
1904# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1905# -------------------------------------------------------
1906# Tests whether HEADER exists and can be compiled using the include files in
1907# INCLUDES, setting the cache variable VAR accordingly.
1908ac_fn_c_check_header_compile ()
dbadc56a
DWT
1909{
1910 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9c60689e
DWT
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1912$as_echo_n "checking for $2... " >&6; }
ee134472 1913if eval \${$3+:} false; then :
9c60689e
DWT
1914 $as_echo_n "(cached) " >&6
1915else
1916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1917/* end confdefs.h. */
1918$4
1919#include <$2>
1920_ACEOF
1921if ac_fn_c_try_compile "$LINENO"; then :
1922 eval "$3=yes"
1923else
1924 eval "$3=no"
1925fi
1926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1927fi
1928eval ac_res=\$$3
1929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1930$as_echo "$ac_res" >&6; }
ee134472 1931 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9c60689e
DWT
1932
1933} # ac_fn_c_check_header_compile
1934
35fa52c0
DWT
1935# ac_fn_c_try_run LINENO
1936# ----------------------
1937# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1938# that executables *can* be run.
1939ac_fn_c_try_run ()
1940{
1941 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1942 if { { ac_try="$ac_link"
1943case "(($ac_try" in
1944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1945 *) ac_try_echo=$ac_try;;
1946esac
1947eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1948$as_echo "$ac_try_echo"; } >&5
1949 (eval "$ac_link") 2>&5
1950 ac_status=$?
1951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1952 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1953 { { case "(($ac_try" in
1954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1955 *) ac_try_echo=$ac_try;;
1956esac
1957eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1958$as_echo "$ac_try_echo"; } >&5
1959 (eval "$ac_try") 2>&5
1960 ac_status=$?
1961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1962 test $ac_status = 0; }; }; then :
1963 ac_retval=0
1964else
1965 $as_echo "$as_me: program exited with status $ac_status" >&5
1966 $as_echo "$as_me: failed program was:" >&5
1967sed 's/^/| /' conftest.$ac_ext >&5
1968
1969 ac_retval=$ac_status
1970fi
1971 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
ee134472 1972 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9c60689e 1973 as_fn_set_status $ac_retval
35fa52c0
DWT
1974
1975} # ac_fn_c_try_run
6b66678a 1976
9c60689e
DWT
1977# ac_fn_c_check_func LINENO FUNC VAR
1978# ----------------------------------
1979# Tests whether FUNC exists, setting the cache variable VAR accordingly
1980ac_fn_c_check_func ()
6b66678a
DWT
1981{
1982 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9c60689e
DWT
1983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1984$as_echo_n "checking for $2... " >&6; }
ee134472 1985if eval \${$3+:} false; then :
9c60689e 1986 $as_echo_n "(cached) " >&6
6b66678a 1987else
9c60689e
DWT
1988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1989/* end confdefs.h. */
1990/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1991 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1992#define $2 innocuous_$2
6b66678a 1993
9c60689e
DWT
1994/* System header to define __stub macros and hopefully few prototypes,
1995 which can conflict with char $2 (); below.
1996 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1997 <limits.h> exists even on freestanding compilers. */
1998
1999#ifdef __STDC__
2000# include <limits.h>
2001#else
2002# include <assert.h>
2003#endif
2004
2005#undef $2
2006
2007/* Override any GCC internal prototype to avoid an error.
2008 Use char because int might match the return type of a GCC
2009 builtin and then its argument prototype would still apply. */
2010#ifdef __cplusplus
2011extern "C"
2012#endif
2013char $2 ();
2014/* The GNU C library defines this for functions which it implements
2015 to always fail with ENOSYS. Some functions are actually named
2016 something starting with __ and the normal name is an alias. */
2017#if defined __stub_$2 || defined __stub___$2
2018choke me
2019#endif
2020
2021int
2022main ()
2023{
2024return $2 ();
2025 ;
2026 return 0;
2027}
2028_ACEOF
2029if ac_fn_c_try_link "$LINENO"; then :
2030 eval "$3=yes"
2031else
2032 eval "$3=no"
2033fi
2034rm -f core conftest.err conftest.$ac_objext \
2035 conftest$ac_exeext conftest.$ac_ext
6b66678a 2036fi
9c60689e
DWT
2037eval ac_res=\$$3
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2039$as_echo "$ac_res" >&6; }
ee134472 2040 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
6b66678a 2041
9c60689e 2042} # ac_fn_c_check_func
6b66678a 2043
9c60689e
DWT
2044# ac_fn_cxx_try_link LINENO
2045# -------------------------
2046# Try to link conftest.$ac_ext, and return whether this succeeded.
2047ac_fn_cxx_try_link ()
2048{
2049 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2050 rm -f conftest.$ac_objext conftest$ac_exeext
2051 if { { ac_try="$ac_link"
2052case "(($ac_try" in
2053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2054 *) ac_try_echo=$ac_try;;
2055esac
2056eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2057$as_echo "$ac_try_echo"; } >&5
2058 (eval "$ac_link") 2>conftest.err
2059 ac_status=$?
2060 if test -s conftest.err; then
2061 grep -v '^ *+' conftest.err >conftest.er1
2062 cat conftest.er1 >&5
2063 mv -f conftest.er1 conftest.err
2064 fi
2065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2066 test $ac_status = 0; } && {
2067 test -z "$ac_cxx_werror_flag" ||
2068 test ! -s conftest.err
2069 } && test -s conftest$ac_exeext && {
2070 test "$cross_compiling" = yes ||
53ba6704 2071 test -x conftest$ac_exeext
9c60689e
DWT
2072 }; then :
2073 ac_retval=0
2074else
2075 $as_echo "$as_me: failed program was:" >&5
2076sed 's/^/| /' conftest.$ac_ext >&5
2077
2078 ac_retval=1
2079fi
2080 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2081 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2082 # interfere with the next link command; also delete a directory that is
2083 # left behind by Apple's compiler. We do this before executing the actions.
2084 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
ee134472 2085 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9c60689e
DWT
2086 as_fn_set_status $ac_retval
2087
2088} # ac_fn_cxx_try_link
2089
47aaa820
DWT
2090# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2091# ---------------------------------------------------------
2092# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2093# the include files in INCLUDES and setting the cache variable VAR
2094# accordingly.
2095ac_fn_cxx_check_header_mongrel ()
2096{
2097 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
ee134472 2098 if eval \${$3+:} false; then :
47aaa820
DWT
2099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2100$as_echo_n "checking for $2... " >&6; }
ee134472 2101if eval \${$3+:} false; then :
47aaa820
DWT
2102 $as_echo_n "(cached) " >&6
2103fi
2104eval ac_res=\$$3
2105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2106$as_echo "$ac_res" >&6; }
2107else
2108 # Is the header compilable?
2109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2110$as_echo_n "checking $2 usability... " >&6; }
2111cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2112/* end confdefs.h. */
2113$4
2114#include <$2>
2115_ACEOF
2116if ac_fn_cxx_try_compile "$LINENO"; then :
2117 ac_header_compiler=yes
2118else
2119 ac_header_compiler=no
2120fi
2121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2123$as_echo "$ac_header_compiler" >&6; }
2124
2125# Is the header present?
2126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2127$as_echo_n "checking $2 presence... " >&6; }
2128cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2129/* end confdefs.h. */
2130#include <$2>
2131_ACEOF
2132if ac_fn_cxx_try_cpp "$LINENO"; then :
2133 ac_header_preproc=yes
2134else
2135 ac_header_preproc=no
2136fi
12833ad8 2137rm -f conftest.err conftest.i conftest.$ac_ext
47aaa820
DWT
2138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2139$as_echo "$ac_header_preproc" >&6; }
2140
2141# So? What about this header?
2142case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2143 yes:no: )
2144 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2145$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2147$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2148 ;;
2149 no:yes:* )
2150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2151$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2153$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2154 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2155$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2156 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2157$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2158 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2159$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
12833ad8 2160( $as_echo "## -------------------------------- ##
47aaa820 2161## Report this to saurik@saurik.com ##
12833ad8 2162## -------------------------------- ##"
47aaa820
DWT
2163 ) | sed "s/^/$as_me: WARNING: /" >&2
2164 ;;
2165esac
2166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2167$as_echo_n "checking for $2... " >&6; }
ee134472 2168if eval \${$3+:} false; then :
47aaa820
DWT
2169 $as_echo_n "(cached) " >&6
2170else
2171 eval "$3=\$ac_header_compiler"
2172fi
2173eval ac_res=\$$3
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2175$as_echo "$ac_res" >&6; }
2176fi
ee134472 2177 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
47aaa820
DWT
2178
2179} # ac_fn_cxx_check_header_mongrel
2180
574d4720
JF
2181# ac_fn_cxx_check_func LINENO FUNC VAR
2182# ------------------------------------
2183# Tests whether FUNC exists, setting the cache variable VAR accordingly
2184ac_fn_cxx_check_func ()
2185{
2186 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2188$as_echo_n "checking for $2... " >&6; }
2189if eval \${$3+:} false; then :
2190 $as_echo_n "(cached) " >&6
2191else
2192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2193/* end confdefs.h. */
2194/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2195 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2196#define $2 innocuous_$2
2197
2198/* System header to define __stub macros and hopefully few prototypes,
2199 which can conflict with char $2 (); below.
2200 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2201 <limits.h> exists even on freestanding compilers. */
2202
2203#ifdef __STDC__
2204# include <limits.h>
2205#else
2206# include <assert.h>
2207#endif
2208
2209#undef $2
2210
2211/* Override any GCC internal prototype to avoid an error.
2212 Use char because int might match the return type of a GCC
2213 builtin and then its argument prototype would still apply. */
2214#ifdef __cplusplus
2215extern "C"
2216#endif
2217char $2 ();
2218/* The GNU C library defines this for functions which it implements
2219 to always fail with ENOSYS. Some functions are actually named
2220 something starting with __ and the normal name is an alias. */
2221#if defined __stub_$2 || defined __stub___$2
2222choke me
2223#endif
2224
2225int
2226main ()
2227{
2228return $2 ();
2229 ;
2230 return 0;
2231}
2232_ACEOF
2233if ac_fn_cxx_try_link "$LINENO"; then :
2234 eval "$3=yes"
2235else
2236 eval "$3=no"
2237fi
2238rm -f core conftest.err conftest.$ac_objext \
2239 conftest$ac_exeext conftest.$ac_ext
2240fi
2241eval ac_res=\$$3
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2243$as_echo "$ac_res" >&6; }
2244 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2245
2246} # ac_fn_cxx_check_func
2247
c823f118
DWT
2248# ac_fn_objcxx_try_link LINENO
2249# ----------------------------
2250# Try to link conftest.$ac_ext, and return whether this succeeded.
2251ac_fn_objcxx_try_link ()
2252{
2253 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2254 rm -f conftest.$ac_objext conftest$ac_exeext
2255 if { { ac_try="$ac_link"
2256case "(($ac_try" in
2257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2258 *) ac_try_echo=$ac_try;;
2259esac
2260eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2261$as_echo "$ac_try_echo"; } >&5
2262 (eval "$ac_link") 2>conftest.err
2263 ac_status=$?
2264 if test -s conftest.err; then
2265 grep -v '^ *+' conftest.err >conftest.er1
2266 cat conftest.er1 >&5
2267 mv -f conftest.er1 conftest.err
2268 fi
2269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2270 test $ac_status = 0; } && {
2271 test -z "$ac_objcxx_werror_flag" ||
2272 test ! -s conftest.err
2273 } && test -s conftest$ac_exeext && {
2274 test "$cross_compiling" = yes ||
53ba6704 2275 test -x conftest$ac_exeext
c823f118
DWT
2276 }; then :
2277 ac_retval=0
2278else
2279 $as_echo "$as_me: failed program was:" >&5
2280sed 's/^/| /' conftest.$ac_ext >&5
2281
2282 ac_retval=1
2283fi
2284 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2285 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2286 # interfere with the next link command; also delete a directory that is
2287 # left behind by Apple's compiler. We do this before executing the actions.
2288 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
ee134472 2289 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
c823f118
DWT
2290 as_fn_set_status $ac_retval
2291
2292} # ac_fn_objcxx_try_link
c7aa54aa
DWT
2293cat >config.log <<_ACEOF
2294This file contains any messages produced by compilers while
2295running configure, to aid debugging if configure makes a mistake.
2296
2297It was created by Cycript $as_me 0.9, which was
53ba6704 2298generated by GNU Autoconf 2.69. Invocation command line was
c7aa54aa
DWT
2299
2300 $ $0 $@
2301
2302_ACEOF
2303exec 5>>config.log
2304{
2305cat <<_ASUNAME
2306## --------- ##
2307## Platform. ##
2308## --------- ##
2309
2310hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2311uname -m = `(uname -m) 2>/dev/null || echo unknown`
2312uname -r = `(uname -r) 2>/dev/null || echo unknown`
2313uname -s = `(uname -s) 2>/dev/null || echo unknown`
2314uname -v = `(uname -v) 2>/dev/null || echo unknown`
2315
2316/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2317/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2318
2319/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2320/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2321/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2322/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2323/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2324/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2325/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2326
2327_ASUNAME
2328
2329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2330for as_dir in $PATH
2331do
2332 IFS=$as_save_IFS
2333 test -z "$as_dir" && as_dir=.
2334 $as_echo "PATH: $as_dir"
2335 done
2336IFS=$as_save_IFS
2337
2338} >&5
2339
2340cat >&5 <<_ACEOF
2341
2342
2343## ----------- ##
2344## Core tests. ##
2345## ----------- ##
2346
2347_ACEOF
2348
2349
2350# Keep a trace of the command line.
2351# Strip out --no-create and --no-recursion so they do not pile up.
2352# Strip out --silent because we don't want to record it for future runs.
2353# Also quote any args containing shell meta-characters.
2354# Make two passes to allow for proper duplicate-argument suppression.
2355ac_configure_args=
2356ac_configure_args0=
2357ac_configure_args1=
2358ac_must_keep_next=false
2359for ac_pass in 1 2
2360do
2361 for ac_arg
2362 do
2363 case $ac_arg in
2364 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2365 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2366 | -silent | --silent | --silen | --sile | --sil)
2367 continue ;;
2368 *\'*)
2369 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2370 esac
2371 case $ac_pass in
2372 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2373 2)
2374 as_fn_append ac_configure_args1 " '$ac_arg'"
2375 if test $ac_must_keep_next = true; then
2376 ac_must_keep_next=false # Got value, back to normal.
2377 else
2378 case $ac_arg in
2379 *=* | --config-cache | -C | -disable-* | --disable-* \
2380 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2381 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2382 | -with-* | --with-* | -without-* | --without-* | --x)
2383 case "$ac_configure_args0 " in
2384 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2385 esac
2386 ;;
2387 -* ) ac_must_keep_next=true ;;
2388 esac
2389 fi
2390 as_fn_append ac_configure_args " '$ac_arg'"
2391 ;;
2392 esac
2393 done
2394done
2395{ ac_configure_args0=; unset ac_configure_args0;}
2396{ ac_configure_args1=; unset ac_configure_args1;}
2397
2398# When interrupted or exit'd, cleanup temporary files, and complete
2399# config.log. We remove comments because anyway the quotes in there
2400# would cause problems or look ugly.
2401# WARNING: Use '\'' to represent an apostrophe within the trap.
2402# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2403trap 'exit_status=$?
2404 # Save into config.log some information that might help in debugging.
2405 {
2406 echo
2407
12833ad8 2408 $as_echo "## ---------------- ##
c7aa54aa 2409## Cache variables. ##
12833ad8 2410## ---------------- ##"
c7aa54aa
DWT
2411 echo
2412 # The following way of writing the cache mishandles newlines in values,
2413(
2414 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2415 eval ac_val=\$$ac_var
2416 case $ac_val in #(
2417 *${as_nl}*)
2418 case $ac_var in #(
2419 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2420$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2421 esac
2422 case $ac_var in #(
2423 _ | IFS | as_nl) ;; #(
2424 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2425 *) { eval $ac_var=; unset $ac_var;} ;;
2426 esac ;;
2427 esac
2428 done
2429 (set) 2>&1 |
2430 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2431 *${as_nl}ac_space=\ *)
2432 sed -n \
2433 "s/'\''/'\''\\\\'\'''\''/g;
2434 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2435 ;; #(
2436 *)
2437 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2438 ;;
2439 esac |
2440 sort
2441)
2442 echo
2443
12833ad8 2444 $as_echo "## ----------------- ##
c7aa54aa 2445## Output variables. ##
12833ad8 2446## ----------------- ##"
c7aa54aa
DWT
2447 echo
2448 for ac_var in $ac_subst_vars
2449 do
2450 eval ac_val=\$$ac_var
2451 case $ac_val in
2452 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2453 esac
2454 $as_echo "$ac_var='\''$ac_val'\''"
2455 done | sort
2456 echo
2457
2458 if test -n "$ac_subst_files"; then
12833ad8 2459 $as_echo "## ------------------- ##
c7aa54aa 2460## File substitutions. ##
12833ad8 2461## ------------------- ##"
c7aa54aa
DWT
2462 echo
2463 for ac_var in $ac_subst_files
2464 do
2465 eval ac_val=\$$ac_var
2466 case $ac_val in
2467 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2468 esac
2469 $as_echo "$ac_var='\''$ac_val'\''"
2470 done | sort
2471 echo
2472 fi
2473
2474 if test -s confdefs.h; then
12833ad8 2475 $as_echo "## ----------- ##
c7aa54aa 2476## confdefs.h. ##
12833ad8 2477## ----------- ##"
c7aa54aa
DWT
2478 echo
2479 cat confdefs.h
2480 echo
2481 fi
2482 test "$ac_signal" != 0 &&
2483 $as_echo "$as_me: caught signal $ac_signal"
2484 $as_echo "$as_me: exit $exit_status"
2485 } >&5
2486 rm -f core *.core core.conftest.* &&
2487 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2488 exit $exit_status
2489' 0
2490for ac_signal in 1 2 13 15; do
2491 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2492done
2493ac_signal=0
2494
2495# confdefs.h avoids OS command line length limits that DEFS can exceed.
2496rm -f -r conftest* confdefs.h
2497
2498$as_echo "/* confdefs.h */" > confdefs.h
2499
2500# Predefined preprocessor variables.
2501
2502cat >>confdefs.h <<_ACEOF
2503#define PACKAGE_NAME "$PACKAGE_NAME"
2504_ACEOF
2505
2506cat >>confdefs.h <<_ACEOF
2507#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2508_ACEOF
2509
2510cat >>confdefs.h <<_ACEOF
2511#define PACKAGE_VERSION "$PACKAGE_VERSION"
2512_ACEOF
2513
2514cat >>confdefs.h <<_ACEOF
2515#define PACKAGE_STRING "$PACKAGE_STRING"
2516_ACEOF
2517
2518cat >>confdefs.h <<_ACEOF
2519#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2520_ACEOF
2521
2522cat >>confdefs.h <<_ACEOF
2523#define PACKAGE_URL "$PACKAGE_URL"
2524_ACEOF
2525
2526
2527# Let the site file select an alternate cache file if it wants to.
2528# Prefer an explicitly selected file to automatically selected ones.
2529ac_site_file1=NONE
2530ac_site_file2=NONE
2531if test -n "$CONFIG_SITE"; then
12833ad8
JF
2532 # We do not want a PATH search for config.site.
2533 case $CONFIG_SITE in #((
2534 -*) ac_site_file1=./$CONFIG_SITE;;
2535 */*) ac_site_file1=$CONFIG_SITE;;
2536 *) ac_site_file1=./$CONFIG_SITE;;
2537 esac
c7aa54aa
DWT
2538elif test "x$prefix" != xNONE; then
2539 ac_site_file1=$prefix/share/config.site
2540 ac_site_file2=$prefix/etc/config.site
2541else
2542 ac_site_file1=$ac_default_prefix/share/config.site
2543 ac_site_file2=$ac_default_prefix/etc/config.site
2544fi
2545for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2546do
2547 test "x$ac_site_file" = xNONE && continue
9c60689e 2548 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
c7aa54aa
DWT
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2550$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2551 sed 's/^/| /' "$ac_site_file" >&5
12833ad8
JF
2552 . "$ac_site_file" \
2553 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2554$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2555as_fn_error $? "failed to load site script $ac_site_file
ee134472 2556See \`config.log' for more details" "$LINENO" 5; }
c7aa54aa
DWT
2557 fi
2558done
2559
2560if test -r "$cache_file"; then
9c60689e
DWT
2561 # Some versions of bash will fail to source /dev/null (special files
2562 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2563 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
c7aa54aa
DWT
2564 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2565$as_echo "$as_me: loading cache $cache_file" >&6;}
2566 case $cache_file in
2567 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2568 *) . "./$cache_file";;
2569 esac
2570 fi
2571else
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2573$as_echo "$as_me: creating cache $cache_file" >&6;}
2574 >$cache_file
2575fi
2576
2577# Check that the precious variables saved in the cache have kept the same
2578# value.
2579ac_cache_corrupted=false
2580for ac_var in $ac_precious_vars; do
2581 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2582 eval ac_new_set=\$ac_env_${ac_var}_set
2583 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2584 eval ac_new_val=\$ac_env_${ac_var}_value
2585 case $ac_old_set,$ac_new_set in
2586 set,)
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2588$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2589 ac_cache_corrupted=: ;;
2590 ,set)
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2592$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2593 ac_cache_corrupted=: ;;
2594 ,);;
2595 *)
2596 if test "x$ac_old_val" != "x$ac_new_val"; then
2597 # differences in whitespace do not lead to failure.
2598 ac_old_val_w=`echo x $ac_old_val`
2599 ac_new_val_w=`echo x $ac_new_val`
2600 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2602$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2603 ac_cache_corrupted=:
2604 else
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2606$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2607 eval $ac_var=\$ac_old_val
2608 fi
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2610$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2612$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2613 fi;;
2614 esac
2615 # Pass precious variables to config.status.
2616 if test "$ac_new_set" = set; then
2617 case $ac_new_val in
2618 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2619 *) ac_arg=$ac_var=$ac_new_val ;;
2620 esac
2621 case " $ac_configure_args " in
2622 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2623 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2624 esac
2625 fi
2626done
2627if $ac_cache_corrupted; then
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2629$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2631$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
12833ad8 2632 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
c7aa54aa
DWT
2633fi
2634## -------------------- ##
2635## Main body of script. ##
2636## -------------------- ##
2637
2638ac_ext=c
2639ac_cpp='$CPP $CPPFLAGS'
2640ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2641ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2642ac_compiler_gnu=$ac_cv_c_compiler_gnu
2643
2644
66170b30
JF
2645
2646
35fa52c0 2647
6b66678a
DWT
2648ac_aux_dir=
2649for ac_dir in . "$srcdir"/.; do
12833ad8
JF
2650 if test -f "$ac_dir/install-sh"; then
2651 ac_aux_dir=$ac_dir
2652 ac_install_sh="$ac_aux_dir/install-sh -c"
2653 break
2654 elif test -f "$ac_dir/install.sh"; then
2655 ac_aux_dir=$ac_dir
2656 ac_install_sh="$ac_aux_dir/install.sh -c"
2657 break
2658 elif test -f "$ac_dir/shtool"; then
2659 ac_aux_dir=$ac_dir
2660 ac_install_sh="$ac_aux_dir/shtool install -c"
2661 break
2662 fi
6b66678a
DWT
2663done
2664if test -z "$ac_aux_dir"; then
12833ad8 2665 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
6b66678a
DWT
2666fi
2667
2668# These three variables are undocumented and unsupported,
2669# and are intended to be withdrawn in a future Autoconf release.
2670# They can cause serious problems if a builder's source tree is in a directory
2671# whose full name contains unusual characters.
2672ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2673ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2674ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2675
2676
9c60689e 2677
296ee9a6
JF
2678ac_config_headers="$ac_config_headers config.h"
2679
9c60689e 2680
795230e5 2681am__api_version='1.15'
9c60689e 2682
66170b30
JF
2683# Find a good install program. We prefer a C program (faster),
2684# so one script is as good as another. But avoid the broken or
2685# incompatible versions:
2686# SysV /etc/install, /usr/sbin/install
2687# SunOS /usr/etc/install
2688# IRIX /sbin/install
2689# AIX /bin/install
2690# AmigaOS /C/install, which installs bootblocks on floppy discs
2691# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2692# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2693# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2694# OS/2's system install, which has a completely different semantic
2695# ./install, which can be erroneously created by make from ./install.sh.
2696# Reject install programs that cannot install multiple files.
2697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2698$as_echo_n "checking for a BSD-compatible install... " >&6; }
2699if test -z "$INSTALL"; then
2700if ${ac_cv_path_install+:} false; then :
2701 $as_echo_n "(cached) " >&6
2702else
2703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2704for as_dir in $PATH
2705do
2706 IFS=$as_save_IFS
2707 test -z "$as_dir" && as_dir=.
2708 # Account for people who put trailing slashes in PATH elements.
2709case $as_dir/ in #((
2710 ./ | .// | /[cC]/* | \
2711 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2712 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2713 /usr/ucb/* ) ;;
2714 *)
2715 # OSF1 and SCO ODT 3.0 have their own names for install.
2716 # Don't use installbsd from OSF since it installs stuff as root
2717 # by default.
2718 for ac_prog in ginstall scoinst install; do
2719 for ac_exec_ext in '' $ac_executable_extensions; do
2720 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2721 if test $ac_prog = install &&
2722 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2723 # AIX install. It has an incompatible calling convention.
2724 :
2725 elif test $ac_prog = install &&
2726 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2727 # program-specific install script used by HP pwplus--don't use.
2728 :
2729 else
2730 rm -rf conftest.one conftest.two conftest.dir
2731 echo one > conftest.one
2732 echo two > conftest.two
2733 mkdir conftest.dir
2734 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2735 test -s conftest.one && test -s conftest.two &&
2736 test -s conftest.dir/conftest.one &&
2737 test -s conftest.dir/conftest.two
2738 then
2739 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2740 break 3
2741 fi
2742 fi
2743 fi
2744 done
2745 done
2746 ;;
2747esac
9c60689e 2748
66170b30
JF
2749 done
2750IFS=$as_save_IFS
9c60689e 2751
66170b30 2752rm -rf conftest.one conftest.two conftest.dir
9c60689e 2753
66170b30
JF
2754fi
2755 if test "${ac_cv_path_install+set}" = set; then
2756 INSTALL=$ac_cv_path_install
2757 else
2758 # As a last resort, use the slow shell script. Don't cache a
2759 # value for INSTALL within a source directory, because that will
2760 # break other packages using the cache if that directory is
2761 # removed, or if the value is a relative name.
2762 INSTALL=$ac_install_sh
2763 fi
2764fi
2765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2766$as_echo "$INSTALL" >&6; }
9c60689e 2767
66170b30
JF
2768# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2769# It thinks the first close brace ends the variable substitution.
2770test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9c60689e 2771
66170b30 2772test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
9c60689e 2773
66170b30 2774test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9c60689e 2775
66170b30
JF
2776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2777$as_echo_n "checking whether build environment is sane... " >&6; }
2778# Reject unsafe characters in $srcdir or the absolute working directory
2779# name. Accept space and tab only in the latter.
2780am_lf='
2781'
2782case `pwd` in
2783 *[\\\"\#\$\&\'\`$am_lf]*)
2784 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2785esac
2786case $srcdir in
2787 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2788 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2789esac
9c60689e 2790
66170b30
JF
2791# Do 'set' in a subshell so we don't clobber the current shell's
2792# arguments. Must try -L first in case configure is actually a
2793# symlink; some systems play weird games with the mod time of symlinks
2794# (eg FreeBSD returns the mod time of the symlink's containing
2795# directory).
2796if (
2797 am_has_slept=no
2798 for am_try in 1 2; do
2799 echo "timestamp, slept: $am_has_slept" > conftest.file
2800 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2801 if test "$*" = "X"; then
2802 # -L didn't work.
2803 set X `ls -t "$srcdir/configure" conftest.file`
2804 fi
2805 if test "$*" != "X $srcdir/configure conftest.file" \
2806 && test "$*" != "X conftest.file $srcdir/configure"; then
2807
2808 # If neither matched, then we have a broken ls. This can happen
2809 # if, for instance, CONFIG_SHELL is bash and it inherits a
2810 # broken ls alias from the environment. This has actually
2811 # happened. Such a system could not be considered "sane".
2812 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2813 alias in your environment" "$LINENO" 5
2814 fi
2815 if test "$2" = conftest.file || test $am_try -eq 2; then
2816 break
2817 fi
2818 # Just in case.
2819 sleep 1
2820 am_has_slept=yes
2821 done
2822 test "$2" = conftest.file
2823 )
2824then
2825 # Ok.
2826 :
2827else
2828 as_fn_error $? "newly created file is older than distributed files!
2829Check your system clock" "$LINENO" 5
2830fi
2831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2832$as_echo "yes" >&6; }
2833# If we didn't sleep, we still need to ensure time stamps of config.status and
2834# generated files are strictly newer.
2835am_sleep_pid=
2836if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2837 ( sleep 1 ) &
2838 am_sleep_pid=$!
2839fi
2840
2841rm -f conftest.file
2842
2843test "$program_prefix" != NONE &&
2844 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2845# Use a double $ so make ignores it.
2846test "$program_suffix" != NONE &&
2847 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2848# Double any \ or $.
2849# By default was `s,x,x', remove it if useless.
2850ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2851program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2852
795230e5
JF
2853# Expand $ac_aux_dir to an absolute path.
2854am_aux_dir=`cd "$ac_aux_dir" && pwd`
66170b30
JF
2855
2856if test x"${MISSING+set}" != xset; then
2857 case $am_aux_dir in
2858 *\ * | *\ *)
2859 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2860 *)
2861 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2862 esac
2863fi
2864# Use eval to expand $SHELL
2865if eval "$MISSING --is-lightweight"; then
2866 am_missing_run="$MISSING "
2867else
2868 am_missing_run=
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2870$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2871fi
9c60689e 2872
795230e5 2873if test x"${install_sh+set}" != xset; then
66170b30
JF
2874 case $am_aux_dir in
2875 *\ * | *\ *)
2876 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2877 *)
2878 install_sh="\${SHELL} $am_aux_dir/install-sh"
2879 esac
2880fi
9c60689e 2881
66170b30
JF
2882# Installed binaries are usually stripped using 'strip' when the user
2883# run "make install-strip". However 'strip' might not be the right
2884# tool to use in cross-compilation environments, therefore Automake
2885# will honor the 'STRIP' environment variable to overrule this program.
2886if test "$cross_compiling" != no; then
2887 if test -n "$ac_tool_prefix"; then
2888 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2889set dummy ${ac_tool_prefix}strip; ac_word=$2
2890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2891$as_echo_n "checking for $ac_word... " >&6; }
2892if ${ac_cv_prog_STRIP+:} false; then :
2893 $as_echo_n "(cached) " >&6
2894else
2895 if test -n "$STRIP"; then
2896 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2897else
2898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2899for as_dir in $PATH
2900do
2901 IFS=$as_save_IFS
2902 test -z "$as_dir" && as_dir=.
2903 for ac_exec_ext in '' $ac_executable_extensions; do
2904 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2905 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2907 break 2
2908 fi
2909done
2910 done
2911IFS=$as_save_IFS
9c60689e 2912
66170b30
JF
2913fi
2914fi
2915STRIP=$ac_cv_prog_STRIP
2916if test -n "$STRIP"; then
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2918$as_echo "$STRIP" >&6; }
2919else
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2921$as_echo "no" >&6; }
2922fi
9c60689e 2923
9c60689e 2924
66170b30
JF
2925fi
2926if test -z "$ac_cv_prog_STRIP"; then
2927 ac_ct_STRIP=$STRIP
2928 # Extract the first word of "strip", so it can be a program name with args.
2929set dummy strip; ac_word=$2
2930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2931$as_echo_n "checking for $ac_word... " >&6; }
2932if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
9c60689e
DWT
2933 $as_echo_n "(cached) " >&6
2934else
66170b30
JF
2935 if test -n "$ac_ct_STRIP"; then
2936 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2937else
2938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2939for as_dir in $PATH
2940do
2941 IFS=$as_save_IFS
2942 test -z "$as_dir" && as_dir=.
2943 for ac_exec_ext in '' $ac_executable_extensions; do
2944 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2945 ac_cv_prog_ac_ct_STRIP="strip"
2946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2947 break 2
2948 fi
2949done
2950 done
2951IFS=$as_save_IFS
9c60689e
DWT
2952
2953fi
66170b30
JF
2954fi
2955ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2956if test -n "$ac_ct_STRIP"; then
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2958$as_echo "$ac_ct_STRIP" >&6; }
2959else
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2961$as_echo "no" >&6; }
2962fi
2963
2964 if test "x$ac_ct_STRIP" = x; then
2965 STRIP=":"
2966 else
2967 case $cross_compiling:$ac_tool_warned in
2968yes:)
2969{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2970$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2971ac_tool_warned=yes ;;
9c60689e 2972esac
66170b30
JF
2973 STRIP=$ac_ct_STRIP
2974 fi
2975else
2976 STRIP="$ac_cv_prog_STRIP"
2977fi
9c60689e 2978
66170b30
JF
2979fi
2980INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
9c60689e 2981
66170b30
JF
2982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2983$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2984if test -z "$MKDIR_P"; then
2985 if ${ac_cv_path_mkdir+:} false; then :
9c60689e
DWT
2986 $as_echo_n "(cached) " >&6
2987else
66170b30
JF
2988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2989for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2990do
2991 IFS=$as_save_IFS
2992 test -z "$as_dir" && as_dir=.
2993 for ac_prog in mkdir gmkdir; do
2994 for ac_exec_ext in '' $ac_executable_extensions; do
2995 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2996 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2997 'mkdir (GNU coreutils) '* | \
2998 'mkdir (coreutils) '* | \
2999 'mkdir (fileutils) '4.1*)
3000 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3001 break 3;;
3002 esac
3003 done
3004 done
3005 done
3006IFS=$as_save_IFS
3007
3008fi
3009
3010 test -d ./--version && rmdir ./--version
3011 if test "${ac_cv_path_mkdir+set}" = set; then
3012 MKDIR_P="$ac_cv_path_mkdir -p"
3013 else
3014 # As a last resort, use the slow shell script. Don't cache a
3015 # value for MKDIR_P within a source directory, because that will
3016 # break other packages using the cache if that directory is
3017 # removed, or if the value is a relative name.
3018 MKDIR_P="$ac_install_sh -d"
3019 fi
3020fi
3021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3022$as_echo "$MKDIR_P" >&6; }
3023
3024for ac_prog in gawk mawk nawk awk
3025do
3026 # Extract the first word of "$ac_prog", so it can be a program name with args.
3027set dummy $ac_prog; ac_word=$2
3028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3029$as_echo_n "checking for $ac_word... " >&6; }
3030if ${ac_cv_prog_AWK+:} false; then :
3031 $as_echo_n "(cached) " >&6
3032else
3033 if test -n "$AWK"; then
3034 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3035else
3036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3037for as_dir in $PATH
3038do
3039 IFS=$as_save_IFS
3040 test -z "$as_dir" && as_dir=.
3041 for ac_exec_ext in '' $ac_executable_extensions; do
3042 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3043 ac_cv_prog_AWK="$ac_prog"
3044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3045 break 2
3046 fi
3047done
3048 done
3049IFS=$as_save_IFS
3050
3051fi
3052fi
3053AWK=$ac_cv_prog_AWK
3054if test -n "$AWK"; then
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3056$as_echo "$AWK" >&6; }
3057else
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3059$as_echo "no" >&6; }
3060fi
3061
3062
3063 test -n "$AWK" && break
3064done
3065
3066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3067$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3068set x ${MAKE-make}
3069ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3070if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3071 $as_echo_n "(cached) " >&6
3072else
3073 cat >conftest.make <<\_ACEOF
3074SHELL = /bin/sh
3075all:
3076 @echo '@@@%%%=$(MAKE)=@@@%%%'
3077_ACEOF
3078# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3079case `${MAKE-make} -f conftest.make 2>/dev/null` in
3080 *@@@%%%=?*=@@@%%%*)
3081 eval ac_cv_prog_make_${ac_make}_set=yes;;
3082 *)
3083 eval ac_cv_prog_make_${ac_make}_set=no;;
3084esac
3085rm -f conftest.make
3086fi
3087if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3089$as_echo "yes" >&6; }
3090 SET_MAKE=
3091else
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3093$as_echo "no" >&6; }
3094 SET_MAKE="MAKE=${MAKE-make}"
3095fi
3096
3097rm -rf .tst 2>/dev/null
3098mkdir .tst 2>/dev/null
3099if test -d .tst; then
3100 am__leading_dot=.
3101else
3102 am__leading_dot=_
3103fi
3104rmdir .tst 2>/dev/null
3105
3106# Check whether --enable-silent-rules was given.
3107if test "${enable_silent_rules+set}" = set; then :
3108 enableval=$enable_silent_rules;
3109fi
3110
3111case $enable_silent_rules in # (((
3112 yes) AM_DEFAULT_VERBOSITY=0;;
3113 no) AM_DEFAULT_VERBOSITY=1;;
3114 *) AM_DEFAULT_VERBOSITY=1;;
3115esac
3116am_make=${MAKE-make}
3117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3118$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3119if ${am_cv_make_support_nested_variables+:} false; then :
3120 $as_echo_n "(cached) " >&6
3121else
3122 if $as_echo 'TRUE=$(BAR$(V))
3123BAR0=false
3124BAR1=true
3125V=1
3126am__doit:
3127 @$(TRUE)
3128.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3129 am_cv_make_support_nested_variables=yes
3130else
3131 am_cv_make_support_nested_variables=no
3132fi
3133fi
3134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3135$as_echo "$am_cv_make_support_nested_variables" >&6; }
3136if test $am_cv_make_support_nested_variables = yes; then
3137 AM_V='$(V)'
3138 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3139else
3140 AM_V=$AM_DEFAULT_VERBOSITY
3141 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3142fi
3143AM_BACKSLASH='\'
3144
3145if test "`cd $srcdir && pwd`" != "`pwd`"; then
3146 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3147 # is not polluted with repeated "-I."
3148 am__isrc=' -I$(srcdir)'
3149 # test to see if srcdir already configured
3150 if test -f $srcdir/config.status; then
3151 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3152 fi
3153fi
3154
3155# test whether we have cygpath
3156if test -z "$CYGPATH_W"; then
3157 if (cygpath --version) >/dev/null 2>/dev/null; then
3158 CYGPATH_W='cygpath -w'
3159 else
3160 CYGPATH_W=echo
3161 fi
3162fi
3163
3164
3165# Define the identity of the package.
3166 PACKAGE='cycript'
3167 VERSION='0.9'
3168
3169
3170cat >>confdefs.h <<_ACEOF
3171#define PACKAGE "$PACKAGE"
3172_ACEOF
3173
3174
3175cat >>confdefs.h <<_ACEOF
3176#define VERSION "$VERSION"
3177_ACEOF
3178
3179# Some tools Automake needs.
3180
3181ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3182
3183
3184AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3185
3186
3187AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3188
3189
3190AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3191
3192
3193MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3194
3195# For better backward compatibility. To be removed once Automake 1.9.x
3196# dies out for good. For more background, see:
3197# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3198# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3199mkdir_p='$(MKDIR_P)'
3200
795230e5
JF
3201# We need awk for the "check" target (and possibly the TAP driver). The
3202# system "awk" is bad on some platforms.
66170b30
JF
3203# Always define AMTAR for backward compatibility. Yes, it's still used
3204# in the wild :-( We should find a proper way to deprecate it ...
3205AMTAR='$${TAR-tar}'
3206
a93f15c0
JF
3207
3208# We'll loop over all known methods to create a tar archive until one works.
3209_am_tools='gnutar pax cpio none'
3210
66170b30
JF
3211am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3212
3213
3214
3215
3216
66170b30 3217
a93f15c0
JF
3218# POSIX will say in a future version that running "rm -f" with no argument
3219# is OK; and we want to be able to make that assumption in our Makefile
3220# recipes. So use an aggressive probe to check that the usage we want is
3221# actually supported "in the wild" to an acceptable degree.
3222# See automake bug#10828.
3223# To make any issue more visible, cause the running configure to be aborted
3224# by default if the 'rm' program in use doesn't match our expectations; the
3225# user can still override this though.
3226if rm -f && rm -fr && rm -rf; then : OK; else
3227 cat >&2 <<'END'
3228Oops!
3229
3230Your 'rm' program seems unable to run without file operands specified
3231on the command line, even when the '-f' option is present. This is contrary
3232to the behaviour of most rm programs out there, and not conforming with
3233the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3234
3235Please tell bug-automake@gnu.org about your system, including the value
3236of your $PATH and any error possibly output before this message. This
3237can help us improve future automake versions.
3238
3239END
3240 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3241 echo 'Configuration will proceed anyway, since you have set the' >&2
3242 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3243 echo >&2
3244 else
3245 cat >&2 <<'END'
3246Aborting the configuration process, to ensure you take notice of the issue.
3247
3248You can download and install GNU coreutils to get an 'rm' implementation
3249that behaves properly: <http://www.gnu.org/software/coreutils/>.
3250
3251If you want to complete the configuration process using your problematic
3252'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3253to "yes", and re-run configure.
3254
3255END
3256 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3257 fi
3258fi
3259
795230e5 3260
babf7fe8
JF
3261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3262$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3263 # Check whether --enable-maintainer-mode was given.
3264if test "${enable_maintainer_mode+set}" = set; then :
3265 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3266else
3267 USE_MAINTAINER_MODE=no
3268fi
3269
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3271$as_echo "$USE_MAINTAINER_MODE" >&6; }
3272 if test $USE_MAINTAINER_MODE = yes; then
3273 MAINTAINER_MODE_TRUE=
3274 MAINTAINER_MODE_FALSE='#'
3275else
3276 MAINTAINER_MODE_TRUE='#'
3277 MAINTAINER_MODE_FALSE=
3278fi
3279
3280 MAINT=$MAINTAINER_MODE_TRUE
3281
3282
3283
a93f15c0
JF
3284ac_ext=c
3285ac_cpp='$CPP $CPPFLAGS'
3286ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3287ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3288ac_compiler_gnu=$ac_cv_c_compiler_gnu
3289if test -n "$ac_tool_prefix"; then
3290 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3291set dummy ${ac_tool_prefix}gcc; ac_word=$2
dbadc56a
DWT
3292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3293$as_echo_n "checking for $ac_word... " >&6; }
a93f15c0 3294if ${ac_cv_prog_CC+:} false; then :
dbadc56a
DWT
3295 $as_echo_n "(cached) " >&6
3296else
a93f15c0
JF
3297 if test -n "$CC"; then
3298 ac_cv_prog_CC="$CC" # Let the user override the test.
dbadc56a
DWT
3299else
3300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3301for as_dir in $PATH
3302do
3303 IFS=$as_save_IFS
3304 test -z "$as_dir" && as_dir=.
3305 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 3306 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a93f15c0 3307 ac_cv_prog_CC="${ac_tool_prefix}gcc"
dbadc56a
DWT
3308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3309 break 2
3310 fi
3311done
3312 done
3313IFS=$as_save_IFS
3314
3315fi
3316fi
a93f15c0
JF
3317CC=$ac_cv_prog_CC
3318if test -n "$CC"; then
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3320$as_echo "$CC" >&6; }
35fa52c0
DWT
3321else
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3323$as_echo "no" >&6; }
3324fi
3325
3326
35fa52c0 3327fi
a93f15c0
JF
3328if test -z "$ac_cv_prog_CC"; then
3329 ac_ct_CC=$CC
3330 # Extract the first word of "gcc", so it can be a program name with args.
3331set dummy gcc; ac_word=$2
35fa52c0
DWT
3332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3333$as_echo_n "checking for $ac_word... " >&6; }
a93f15c0 3334if ${ac_cv_prog_ac_ct_CC+:} false; then :
35fa52c0
DWT
3335 $as_echo_n "(cached) " >&6
3336else
a93f15c0
JF
3337 if test -n "$ac_ct_CC"; then
3338 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
35fa52c0
DWT
3339else
3340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3341for as_dir in $PATH
3342do
3343 IFS=$as_save_IFS
3344 test -z "$as_dir" && as_dir=.
3345 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 3346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a93f15c0 3347 ac_cv_prog_ac_ct_CC="gcc"
35fa52c0
DWT
3348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3349 break 2
3350 fi
3351done
3352 done
3353IFS=$as_save_IFS
3354
3355fi
3356fi
a93f15c0
JF
3357ac_ct_CC=$ac_cv_prog_ac_ct_CC
3358if test -n "$ac_ct_CC"; then
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3360$as_echo "$ac_ct_CC" >&6; }
35fa52c0
DWT
3361else
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3363$as_echo "no" >&6; }
3364fi
3365
a93f15c0
JF
3366 if test "x$ac_ct_CC" = x; then
3367 CC=""
35fa52c0
DWT
3368 else
3369 case $cross_compiling:$ac_tool_warned in
3370yes:)
3371{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3372$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3373ac_tool_warned=yes ;;
3374esac
a93f15c0 3375 CC=$ac_ct_CC
35fa52c0 3376 fi
a93f15c0
JF
3377else
3378 CC="$ac_cv_prog_CC"
35fa52c0
DWT
3379fi
3380
a93f15c0
JF
3381if test -z "$CC"; then
3382 if test -n "$ac_tool_prefix"; then
3383 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3384set dummy ${ac_tool_prefix}cc; ac_word=$2
3385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3386$as_echo_n "checking for $ac_word... " >&6; }
3387if ${ac_cv_prog_CC+:} false; then :
3388 $as_echo_n "(cached) " >&6
3389else
3390 if test -n "$CC"; then
3391 ac_cv_prog_CC="$CC" # Let the user override the test.
3392else
3393as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3394for as_dir in $PATH
3395do
3396 IFS=$as_save_IFS
3397 test -z "$as_dir" && as_dir=.
3398 for ac_exec_ext in '' $ac_executable_extensions; do
3399 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3400 ac_cv_prog_CC="${ac_tool_prefix}cc"
3401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3402 break 2
a243b558 3403 fi
35fa52c0 3404done
a93f15c0
JF
3405 done
3406IFS=$as_save_IFS
35fa52c0 3407
a93f15c0
JF
3408fi
3409fi
3410CC=$ac_cv_prog_CC
3411if test -n "$CC"; then
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3413$as_echo "$CC" >&6; }
3414else
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3416$as_echo "no" >&6; }
3417fi
35fa52c0 3418
35fa52c0 3419
a93f15c0
JF
3420 fi
3421fi
3422if test -z "$CC"; then
3423 # Extract the first word of "cc", so it can be a program name with args.
3424set dummy cc; ac_word=$2
3425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3426$as_echo_n "checking for $ac_word... " >&6; }
3427if ${ac_cv_prog_CC+:} false; then :
3428 $as_echo_n "(cached) " >&6
3429else
3430 if test -n "$CC"; then
3431 ac_cv_prog_CC="$CC" # Let the user override the test.
3432else
3433 ac_prog_rejected=no
3434as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3435for as_dir in $PATH
35fa52c0 3436do
a93f15c0
JF
3437 IFS=$as_save_IFS
3438 test -z "$as_dir" && as_dir=.
3439 for ac_exec_ext in '' $ac_executable_extensions; do
3440 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3441 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3442 ac_prog_rejected=yes
3443 continue
3444 fi
3445 ac_cv_prog_CC="cc"
3446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3447 break 2
3448 fi
3449done
3450 done
3451IFS=$as_save_IFS
3452
3453if test $ac_prog_rejected = yes; then
3454 # We found a bogon in the path, so make sure we never use it.
3455 set dummy $ac_cv_prog_CC
3456 shift
3457 if test $# != 0; then
3458 # We chose a different compiler from the bogus one.
3459 # However, it has the same basename, so the bogon will be chosen
3460 # first if we set CC to just the basename; use the full file name.
3461 shift
3462 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3463 fi
3464fi
3465fi
3466fi
3467CC=$ac_cv_prog_CC
3468if test -n "$CC"; then
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3470$as_echo "$CC" >&6; }
3471else
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3473$as_echo "no" >&6; }
3474fi
3475
3476
3477fi
3478if test -z "$CC"; then
3479 if test -n "$ac_tool_prefix"; then
3480 for ac_prog in cl.exe
3481 do
3482 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3483set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3485$as_echo_n "checking for $ac_word... " >&6; }
3486if ${ac_cv_prog_CC+:} false; then :
3487 $as_echo_n "(cached) " >&6
3488else
3489 if test -n "$CC"; then
3490 ac_cv_prog_CC="$CC" # Let the user override the test.
3491else
3492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3493for as_dir in $PATH
3494do
3495 IFS=$as_save_IFS
3496 test -z "$as_dir" && as_dir=.
3497 for ac_exec_ext in '' $ac_executable_extensions; do
3498 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3499 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3501 break 2
3502 fi
3503done
3504 done
3505IFS=$as_save_IFS
3506
3507fi
3508fi
3509CC=$ac_cv_prog_CC
3510if test -n "$CC"; then
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3512$as_echo "$CC" >&6; }
3513else
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3515$as_echo "no" >&6; }
3516fi
3517
3518
3519 test -n "$CC" && break
3520 done
3521fi
3522if test -z "$CC"; then
3523 ac_ct_CC=$CC
3524 for ac_prog in cl.exe
3525do
3526 # Extract the first word of "$ac_prog", so it can be a program name with args.
3527set dummy $ac_prog; ac_word=$2
3528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3529$as_echo_n "checking for $ac_word... " >&6; }
3530if ${ac_cv_prog_ac_ct_CC+:} false; then :
3531 $as_echo_n "(cached) " >&6
3532else
3533 if test -n "$ac_ct_CC"; then
3534 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3535else
3536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3537for as_dir in $PATH
3538do
3539 IFS=$as_save_IFS
3540 test -z "$as_dir" && as_dir=.
3541 for ac_exec_ext in '' $ac_executable_extensions; do
3542 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3543 ac_cv_prog_ac_ct_CC="$ac_prog"
3544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3545 break 2
3546 fi
3547done
3548 done
3549IFS=$as_save_IFS
3550
3551fi
3552fi
3553ac_ct_CC=$ac_cv_prog_ac_ct_CC
3554if test -n "$ac_ct_CC"; then
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3556$as_echo "$ac_ct_CC" >&6; }
3557else
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3559$as_echo "no" >&6; }
3560fi
3561
3562
3563 test -n "$ac_ct_CC" && break
3564done
3565
3566 if test "x$ac_ct_CC" = x; then
3567 CC=""
3568 else
3569 case $cross_compiling:$ac_tool_warned in
3570yes:)
3571{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3572$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3573ac_tool_warned=yes ;;
3574esac
3575 CC=$ac_ct_CC
3576 fi
3577fi
3578
3579fi
3580
3581
3582test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3583$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3584as_fn_error $? "no acceptable C compiler found in \$PATH
3585See \`config.log' for more details" "$LINENO" 5; }
3586
3587# Provide some information about the compiler.
3588$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3589set X $ac_compile
3590ac_compiler=$2
3591for ac_option in --version -v -V -qversion; do
3592 { { ac_try="$ac_compiler $ac_option >&5"
3593case "(($ac_try" in
3594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3595 *) ac_try_echo=$ac_try;;
3596esac
3597eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3598$as_echo "$ac_try_echo"; } >&5
3599 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3600 ac_status=$?
3601 if test -s conftest.err; then
3602 sed '10a\
3603... rest of stderr output deleted ...
3604 10q' conftest.err >conftest.er1
3605 cat conftest.er1 >&5
3606 fi
3607 rm -f conftest.er1 conftest.err
3608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3609 test $ac_status = 0; }
3610done
3611
3612cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3613/* end confdefs.h. */
3614
3615int
3616main ()
3617{
3618
3619 ;
3620 return 0;
3621}
3622_ACEOF
3623ac_clean_files_save=$ac_clean_files
3624ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3625# Try to create an executable without -o first, disregard a.out.
3626# It will help us diagnose broken compilers, and finding out an intuition
3627# of exeext.
3628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3629$as_echo_n "checking whether the C compiler works... " >&6; }
3630ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3631
3632# The possible output files:
3633ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3634
3635ac_rmfiles=
3636for ac_file in $ac_files
3637do
3638 case $ac_file in
3639 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3640 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3641 esac
3642done
35fa52c0
DWT
3643rm -f $ac_rmfiles
3644
3645if { { ac_try="$ac_link_default"
3646case "(($ac_try" in
3647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3648 *) ac_try_echo=$ac_try;;
3649esac
3650eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3651$as_echo "$ac_try_echo"; } >&5
3652 (eval "$ac_link_default") 2>&5
3653 ac_status=$?
3654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3655 test $ac_status = 0; }; then :
3656 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3657# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3658# in a Makefile. We should not override ac_cv_exeext if it was cached,
3659# so that the user can short-circuit this test for compilers unknown to
3660# Autoconf.
3661for ac_file in $ac_files ''
3662do
3663 test -f "$ac_file" || continue
3664 case $ac_file in
3665 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3666 ;;
3667 [ab].out )
3668 # We found the default executable, but exeext='' is most
3669 # certainly right.
3670 break;;
3671 *.* )
3672 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3673 then :; else
3674 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3675 fi
3676 # We set ac_cv_exeext here because the later test for it is not
3677 # safe: cross compilers may not add the suffix if given an `-o'
3678 # argument, so we may need to know it at that point already.
3679 # Even if this section looks crufty: it has the advantage of
3680 # actually working.
3681 break;;
3682 * )
3683 break;;
3684 esac
3685done
3686test "$ac_cv_exeext" = no && ac_cv_exeext=
3687
3688else
3689 ac_file=''
3690fi
35fa52c0 3691if test -z "$ac_file"; then :
9c60689e
DWT
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3693$as_echo "no" >&6; }
3694$as_echo "$as_me: failed program was:" >&5
35fa52c0
DWT
3695sed 's/^/| /' conftest.$ac_ext >&5
3696
3697{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3698$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
a93f15c0 3699as_fn_error 77 "C compiler cannot create executables
ee134472 3700See \`config.log' for more details" "$LINENO" 5; }
9c60689e
DWT
3701else
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3703$as_echo "yes" >&6; }
35fa52c0 3704fi
a93f15c0
JF
3705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3706$as_echo_n "checking for C compiler default output file name... " >&6; }
9c60689e
DWT
3707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3708$as_echo "$ac_file" >&6; }
35fa52c0
DWT
3709ac_exeext=$ac_cv_exeext
3710
9c60689e 3711rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
35fa52c0 3712ac_clean_files=$ac_clean_files_save
35fa52c0
DWT
3713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3714$as_echo_n "checking for suffix of executables... " >&6; }
3715if { { ac_try="$ac_link"
3716case "(($ac_try" in
3717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3718 *) ac_try_echo=$ac_try;;
3719esac
3720eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3721$as_echo "$ac_try_echo"; } >&5
3722 (eval "$ac_link") 2>&5
3723 ac_status=$?
3724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3725 test $ac_status = 0; }; then :
3726 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3727# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3728# work properly (i.e., refer to `conftest.exe'), while it won't with
3729# `rm'.
3730for ac_file in conftest.exe conftest conftest.*; do
3731 test -f "$ac_file" || continue
3732 case $ac_file in
3733 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3734 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3735 break;;
3736 * ) break;;
3737 esac
3738done
3739else
3740 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3741$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12833ad8 3742as_fn_error $? "cannot compute suffix of executables: cannot compile and link
ee134472 3743See \`config.log' for more details" "$LINENO" 5; }
35fa52c0 3744fi
9c60689e 3745rm -f conftest conftest$ac_cv_exeext
35fa52c0
DWT
3746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3747$as_echo "$ac_cv_exeext" >&6; }
3748
3749rm -f conftest.$ac_ext
3750EXEEXT=$ac_cv_exeext
3751ac_exeext=$EXEEXT
9c60689e
DWT
3752cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3753/* end confdefs.h. */
3754#include <stdio.h>
3755int
3756main ()
3757{
3758FILE *f = fopen ("conftest.out", "w");
3759 return ferror (f) || fclose (f) != 0;
3760
3761 ;
3762 return 0;
3763}
3764_ACEOF
3765ac_clean_files="$ac_clean_files conftest.out"
3766# Check that the compiler produces executables we can run. If not, either
3767# the compiler is broken, or we cross compile.
3768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3769$as_echo_n "checking whether we are cross compiling... " >&6; }
3770if test "$cross_compiling" != yes; then
3771 { { ac_try="$ac_link"
3772case "(($ac_try" in
3773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3774 *) ac_try_echo=$ac_try;;
3775esac
3776eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3777$as_echo "$ac_try_echo"; } >&5
3778 (eval "$ac_link") 2>&5
3779 ac_status=$?
3780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3781 test $ac_status = 0; }
3782 if { ac_try='./conftest$ac_cv_exeext'
3783 { { case "(($ac_try" in
3784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3785 *) ac_try_echo=$ac_try;;
3786esac
3787eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3788$as_echo "$ac_try_echo"; } >&5
3789 (eval "$ac_try") 2>&5
3790 ac_status=$?
3791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3792 test $ac_status = 0; }; }; then
3793 cross_compiling=no
3794 else
3795 if test "$cross_compiling" = maybe; then
3796 cross_compiling=yes
3797 else
3798 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3799$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
a93f15c0 3800as_fn_error $? "cannot run C compiled programs.
9c60689e 3801If you meant to cross compile, use \`--host'.
ee134472 3802See \`config.log' for more details" "$LINENO" 5; }
9c60689e
DWT
3803 fi
3804 fi
3805fi
3806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3807$as_echo "$cross_compiling" >&6; }
3808
3809rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3810ac_clean_files=$ac_clean_files_save
35fa52c0
DWT
3811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3812$as_echo_n "checking for suffix of object files... " >&6; }
ee134472 3813if ${ac_cv_objext+:} false; then :
35fa52c0
DWT
3814 $as_echo_n "(cached) " >&6
3815else
3816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3817/* end confdefs.h. */
3818
3819int
3820main ()
3821{
3822
3823 ;
3824 return 0;
3825}
3826_ACEOF
3827rm -f conftest.o conftest.obj
3828if { { ac_try="$ac_compile"
3829case "(($ac_try" in
3830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3831 *) ac_try_echo=$ac_try;;
3832esac
3833eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3834$as_echo "$ac_try_echo"; } >&5
3835 (eval "$ac_compile") 2>&5
3836 ac_status=$?
3837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3838 test $ac_status = 0; }; then :
3839 for ac_file in conftest.o conftest.obj conftest.*; do
3840 test -f "$ac_file" || continue;
3841 case $ac_file in
3842 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3843 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3844 break;;
3845 esac
3846done
3847else
3848 $as_echo "$as_me: failed program was:" >&5
3849sed 's/^/| /' conftest.$ac_ext >&5
3850
3851{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3852$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12833ad8 3853as_fn_error $? "cannot compute suffix of object files: cannot compile
ee134472 3854See \`config.log' for more details" "$LINENO" 5; }
35fa52c0
DWT
3855fi
3856rm -f conftest.$ac_cv_objext conftest.$ac_ext
3857fi
3858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3859$as_echo "$ac_cv_objext" >&6; }
3860OBJEXT=$ac_cv_objext
3861ac_objext=$OBJEXT
a93f15c0
JF
3862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3863$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3864if ${ac_cv_c_compiler_gnu+:} false; then :
35fa52c0
DWT
3865 $as_echo_n "(cached) " >&6
3866else
3867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3868/* end confdefs.h. */
3869
3870int
3871main ()
3872{
3873#ifndef __GNUC__
3874 choke me
3875#endif
3876
3877 ;
3878 return 0;
3879}
3880_ACEOF
a93f15c0 3881if ac_fn_c_try_compile "$LINENO"; then :
35fa52c0
DWT
3882 ac_compiler_gnu=yes
3883else
3884 ac_compiler_gnu=no
3885fi
3886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a93f15c0 3887ac_cv_c_compiler_gnu=$ac_compiler_gnu
35fa52c0
DWT
3888
3889fi
a93f15c0
JF
3890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3891$as_echo "$ac_cv_c_compiler_gnu" >&6; }
35fa52c0 3892if test $ac_compiler_gnu = yes; then
a93f15c0 3893 GCC=yes
35fa52c0 3894else
a93f15c0 3895 GCC=
35fa52c0 3896fi
a93f15c0
JF
3897ac_test_CFLAGS=${CFLAGS+set}
3898ac_save_CFLAGS=$CFLAGS
3899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3900$as_echo_n "checking whether $CC accepts -g... " >&6; }
3901if ${ac_cv_prog_cc_g+:} false; then :
35fa52c0
DWT
3902 $as_echo_n "(cached) " >&6
3903else
a93f15c0
JF
3904 ac_save_c_werror_flag=$ac_c_werror_flag
3905 ac_c_werror_flag=yes
3906 ac_cv_prog_cc_g=no
3907 CFLAGS="-g"
35fa52c0
DWT
3908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3909/* end confdefs.h. */
3910
3911int
3912main ()
3913{
3914
3915 ;
3916 return 0;
3917}
3918_ACEOF
a93f15c0
JF
3919if ac_fn_c_try_compile "$LINENO"; then :
3920 ac_cv_prog_cc_g=yes
35fa52c0 3921else
a93f15c0 3922 CFLAGS=""
35fa52c0
DWT
3923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3924/* end confdefs.h. */
3925
3926int
3927main ()
3928{
3929
3930 ;
3931 return 0;
3932}
3933_ACEOF
a93f15c0 3934if ac_fn_c_try_compile "$LINENO"; then :
35fa52c0
DWT
3935
3936else
a93f15c0
JF
3937 ac_c_werror_flag=$ac_save_c_werror_flag
3938 CFLAGS="-g"
35fa52c0
DWT
3939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3940/* end confdefs.h. */
3941
3942int
3943main ()
3944{
3945
3946 ;
3947 return 0;
3948}
3949_ACEOF
a93f15c0
JF
3950if ac_fn_c_try_compile "$LINENO"; then :
3951 ac_cv_prog_cc_g=yes
35fa52c0
DWT
3952fi
3953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3954fi
3955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3956fi
3957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a93f15c0 3958 ac_c_werror_flag=$ac_save_c_werror_flag
35fa52c0 3959fi
a93f15c0
JF
3960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3961$as_echo "$ac_cv_prog_cc_g" >&6; }
3962if test "$ac_test_CFLAGS" = set; then
3963 CFLAGS=$ac_save_CFLAGS
3964elif test $ac_cv_prog_cc_g = yes; then
3965 if test "$GCC" = yes; then
3966 CFLAGS="-g -O2"
35fa52c0 3967 else
a93f15c0 3968 CFLAGS="-g"
35fa52c0
DWT
3969 fi
3970else
a93f15c0
JF
3971 if test "$GCC" = yes; then
3972 CFLAGS="-O2"
35fa52c0 3973 else
a93f15c0 3974 CFLAGS=
35fa52c0
DWT
3975 fi
3976fi
a93f15c0
JF
3977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3978$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3979if ${ac_cv_prog_cc_c89+:} false; then :
3980 $as_echo_n "(cached) " >&6
3981else
3982 ac_cv_prog_cc_c89=no
3983ac_save_CC=$CC
3984cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3985/* end confdefs.h. */
3986#include <stdarg.h>
3987#include <stdio.h>
3988struct stat;
3989/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3990struct buf { int x; };
3991FILE * (*rcsopen) (struct buf *, struct stat *, int);
3992static char *e (p, i)
3993 char **p;
3994 int i;
3995{
3996 return p[i];
3997}
3998static char *f (char * (*g) (char **, int), char **p, ...)
3999{
4000 char *s;
4001 va_list v;
4002 va_start (v,p);
4003 s = g (p, va_arg (v,int));
4004 va_end (v);
4005 return s;
4006}
4007
4008/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4009 function prototypes and stuff, but not '\xHH' hex character constants.
4010 These don't provoke an error unfortunately, instead are silently treated
4011 as 'x'. The following induces an error, until -std is added to get
4012 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4013 array size at least. It's necessary to write '\x00'==0 to get something
4014 that's true only with -std. */
4015int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4016
4017/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4018 inside strings and character constants. */
4019#define FOO(x) 'x'
4020int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4021
4022int test (int i, double x);
4023struct s1 {int (*f) (int a);};
4024struct s2 {int (*f) (double a);};
4025int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4026int argc;
4027char **argv;
4028int
4029main ()
4030{
4031return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4032 ;
4033 return 0;
4034}
4035_ACEOF
4036for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4037 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4038do
4039 CC="$ac_save_CC $ac_arg"
4040 if ac_fn_c_try_compile "$LINENO"; then :
4041 ac_cv_prog_cc_c89=$ac_arg
4042fi
4043rm -f core conftest.err conftest.$ac_objext
4044 test "x$ac_cv_prog_cc_c89" != "xno" && break
4045done
4046rm -f conftest.$ac_ext
4047CC=$ac_save_CC
4048
4049fi
4050# AC_CACHE_VAL
4051case "x$ac_cv_prog_cc_c89" in
4052 x)
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4054$as_echo "none needed" >&6; } ;;
4055 xno)
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4057$as_echo "unsupported" >&6; } ;;
4058 *)
4059 CC="$CC $ac_cv_prog_cc_c89"
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4061$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4062esac
4063if test "x$ac_cv_prog_cc_c89" != xno; then :
4064
4065fi
4066
4067ac_ext=c
4068ac_cpp='$CPP $CPPFLAGS'
4069ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4070ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4071ac_compiler_gnu=$ac_cv_c_compiler_gnu
4072
4073ac_ext=c
4074ac_cpp='$CPP $CPPFLAGS'
4075ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4076ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4077ac_compiler_gnu=$ac_cv_c_compiler_gnu
4078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4079$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4080if ${am_cv_prog_cc_c_o+:} false; then :
4081 $as_echo_n "(cached) " >&6
4082else
4083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4084/* end confdefs.h. */
4085
4086int
4087main ()
4088{
4089
4090 ;
4091 return 0;
4092}
4093_ACEOF
4094 # Make sure it works both with $CC and with simple cc.
4095 # Following AC_PROG_CC_C_O, we do the test twice because some
4096 # compilers refuse to overwrite an existing .o file with -o,
4097 # though they will create one.
4098 am_cv_prog_cc_c_o=yes
4099 for am_i in 1 2; do
4100 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4101 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4102 ac_status=$?
4103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4104 (exit $ac_status); } \
4105 && test -f conftest2.$ac_objext; then
4106 : OK
4107 else
4108 am_cv_prog_cc_c_o=no
4109 break
4110 fi
4111 done
4112 rm -f core conftest*
4113 unset am_i
4114fi
4115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4116$as_echo "$am_cv_prog_cc_c_o" >&6; }
4117if test "$am_cv_prog_cc_c_o" != yes; then
4118 # Losing compiler, so override with the script.
4119 # FIXME: It is wrong to rewrite CC.
4120 # But if we don't then we get into trouble of one sort or another.
4121 # A longer-term fix would be to have automake use am__CC in this case,
4122 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4123 CC="$am_aux_dir/compile $CC"
4124fi
a243b558
JF
4125ac_ext=c
4126ac_cpp='$CPP $CPPFLAGS'
4127ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4128ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4129ac_compiler_gnu=$ac_cv_c_compiler_gnu
a93f15c0 4130
a243b558 4131DEPDIR="${am__leading_dot}deps"
35fa52c0 4132
a243b558 4133ac_config_commands="$ac_config_commands depfiles"
35fa52c0 4134
35fa52c0 4135
a243b558
JF
4136am_make=${MAKE-make}
4137cat > confinc << 'END'
4138am__doit:
4139 @echo this is the am__doit target
4140.PHONY: am__doit
4141END
4142# If we don't find an include directive, just comment out the code.
4143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4144$as_echo_n "checking for style of include used by $am_make... " >&6; }
4145am__include="#"
4146am__quote=
4147_am_result=none
4148# First try GNU make style include.
4149echo "include confinc" > confmf
4150# Ignore all kinds of additional output from 'make'.
4151case `$am_make -s -f confmf 2> /dev/null` in #(
4152*the\ am__doit\ target*)
4153 am__include=include
4154 am__quote=
4155 _am_result=GNU
4156 ;;
4157esac
4158# Now try BSD make style include.
4159if test "$am__include" = "#"; then
4160 echo '.include "confinc"' > confmf
4161 case `$am_make -s -f confmf 2> /dev/null` in #(
4162 *the\ am__doit\ target*)
4163 am__include=.include
4164 am__quote="\""
4165 _am_result=BSD
4166 ;;
4167 esac
35fa52c0 4168fi
35fa52c0 4169
a243b558
JF
4170
4171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4172$as_echo "$_am_result" >&6; }
4173rm -f confinc confmf
4174
4175# Check whether --enable-dependency-tracking was given.
4176if test "${enable_dependency_tracking+set}" = set; then :
4177 enableval=$enable_dependency_tracking;
35fa52c0 4178fi
35fa52c0 4179
a243b558
JF
4180if test "x$enable_dependency_tracking" != xno; then
4181 am_depcomp="$ac_aux_dir/depcomp"
4182 AMDEPBACKSLASH='\'
4183 am__nodep='_no'
4184fi
4185 if test "x$enable_dependency_tracking" != xno; then
4186 AMDEP_TRUE=
4187 AMDEP_FALSE='#'
4188else
4189 AMDEP_TRUE='#'
4190 AMDEP_FALSE=
35fa52c0
DWT
4191fi
4192
35fa52c0 4193
a243b558 4194
a93f15c0 4195depcc="$CC" am_compiler_list=
66170b30
JF
4196
4197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4198$as_echo_n "checking dependency style of $depcc... " >&6; }
a93f15c0 4199if ${am_cv_CC_dependencies_compiler_type+:} false; then :
66170b30
JF
4200 $as_echo_n "(cached) " >&6
4201else
4202 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4203 # We make a subdir and do the tests there. Otherwise we can end up
4204 # making bogus files that we don't know about and never remove. For
4205 # instance it was reported that on HP-UX the gcc test will end up
4206 # making a dummy file named 'D' -- because '-MD' means "put the output
4207 # in D".
4208 rm -rf conftest.dir
4209 mkdir conftest.dir
4210 # Copy depcomp to subdir because otherwise we won't find it if we're
4211 # using a relative directory.
4212 cp "$am_depcomp" conftest.dir
4213 cd conftest.dir
4214 # We will build objects and dependencies in a subdirectory because
4215 # it helps to detect inapplicable dependency modes. For instance
4216 # both Tru64's cc and ICC support -MD to output dependencies as a
4217 # side effect of compilation, but ICC will put the dependencies in
4218 # the current directory while Tru64 will put them in the object
4219 # directory.
4220 mkdir sub
4221
a93f15c0 4222 am_cv_CC_dependencies_compiler_type=none
66170b30
JF
4223 if test "$am_compiler_list" = ""; then
4224 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4225 fi
4226 am__universal=false
4227 case " $depcc " in #(
4228 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4229 esac
4230
4231 for depmode in $am_compiler_list; do
4232 # Setup a source with many dependencies, because some compilers
4233 # like to wrap large dependency lists on column 80 (with \), and
4234 # we should not choose a depcomp mode which is confused by this.
4235 #
4236 # We need to recreate these files for each test, as the compiler may
4237 # overwrite some of them when testing with obscure command lines.
4238 # This happens at least with the AIX C compiler.
4239 : > sub/conftest.c
4240 for i in 1 2 3 4 5 6; do
4241 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4242 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4243 # Solaris 10 /bin/sh.
4244 echo '/* dummy */' > sub/conftst$i.h
4245 done
4246 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4247
4248 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4249 # mode. It turns out that the SunPro C++ compiler does not properly
4250 # handle '-M -o', and we need to detect this. Also, some Intel
4251 # versions had trouble with output in subdirs.
4252 am__obj=sub/conftest.${OBJEXT-o}
4253 am__minus_obj="-o $am__obj"
4254 case $depmode in
4255 gcc)
4256 # This depmode causes a compiler race in universal mode.
4257 test "$am__universal" = false || continue
4258 ;;
4259 nosideeffect)
4260 # After this tag, mechanisms are not by side-effect, so they'll
4261 # only be used when explicitly requested.
4262 if test "x$enable_dependency_tracking" = xyes; then
4263 continue
4264 else
4265 break
4266 fi
4267 ;;
4268 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4269 # This compiler won't grok '-c -o', but also, the minuso test has
4270 # not run yet. These depmodes are late enough in the game, and
4271 # so weak that their functioning should not be impacted.
4272 am__obj=conftest.${OBJEXT-o}
4273 am__minus_obj=
4274 ;;
4275 none) break ;;
4276 esac
4277 if depmode=$depmode \
4278 source=sub/conftest.c object=$am__obj \
4279 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4280 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4281 >/dev/null 2>conftest.err &&
4282 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4283 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4284 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4285 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4286 # icc doesn't choke on unknown options, it will just issue warnings
4287 # or remarks (even with -Werror). So we grep stderr for any message
4288 # that says an option was ignored or not supported.
4289 # When given -MP, icc 7.0 and 7.1 complain thusly:
4290 # icc: Command line warning: ignoring option '-M'; no argument required
4291 # The diagnosis changed in icc 8.0:
4292 # icc: Command line remark: option '-MP' not supported
4293 if (grep 'ignoring option' conftest.err ||
4294 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
a93f15c0 4295 am_cv_CC_dependencies_compiler_type=$depmode
66170b30
JF
4296 break
4297 fi
4298 fi
4299 done
4300
4301 cd ..
4302 rm -rf conftest.dir
4303else
a93f15c0 4304 am_cv_CC_dependencies_compiler_type=none
66170b30
JF
4305fi
4306
4307fi
a93f15c0
JF
4308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4309$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4310CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
66170b30
JF
4311
4312 if
4313 test "x$enable_dependency_tracking" != xno \
a93f15c0
JF
4314 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4315 am__fastdepCC_TRUE=
4316 am__fastdepCC_FALSE='#'
66170b30 4317else
a93f15c0
JF
4318 am__fastdepCC_TRUE='#'
4319 am__fastdepCC_FALSE=
66170b30
JF
4320fi
4321
4322
a93f15c0
JF
4323ac_ext=cpp
4324ac_cpp='$CXXCPP $CPPFLAGS'
4325ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4326ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4327ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4328if test -z "$CXX"; then
4329 if test -n "$CCC"; then
4330 CXX=$CCC
4331 else
4332 if test -n "$ac_tool_prefix"; then
4333 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
a243b558
JF
4334 do
4335 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4336set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4338$as_echo_n "checking for $ac_word... " >&6; }
a93f15c0 4339if ${ac_cv_prog_CXX+:} false; then :
35fa52c0
DWT
4340 $as_echo_n "(cached) " >&6
4341else
a93f15c0
JF
4342 if test -n "$CXX"; then
4343 ac_cv_prog_CXX="$CXX" # Let the user override the test.
a243b558
JF
4344else
4345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4346for as_dir in $PATH
4347do
35fa52c0
DWT
4348 IFS=$as_save_IFS
4349 test -z "$as_dir" && as_dir=.
4350 for ac_exec_ext in '' $ac_executable_extensions; do
a243b558 4351 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a93f15c0 4352 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
a243b558
JF
4353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4354 break 2
4355 fi
4356done
9c60689e
DWT
4357 done
4358IFS=$as_save_IFS
35fa52c0 4359
9c60689e 4360fi
a243b558 4361fi
a93f15c0
JF
4362CXX=$ac_cv_prog_CXX
4363if test -n "$CXX"; then
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4365$as_echo "$CXX" >&6; }
a243b558
JF
4366else
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4368$as_echo "no" >&6; }
4369fi
35fa52c0 4370
35fa52c0 4371
a93f15c0 4372 test -n "$CXX" && break
a243b558
JF
4373 done
4374fi
a93f15c0
JF
4375if test -z "$CXX"; then
4376 ac_ct_CXX=$CXX
4377 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
a243b558
JF
4378do
4379 # Extract the first word of "$ac_prog", so it can be a program name with args.
4380set dummy $ac_prog; ac_word=$2
4381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4382$as_echo_n "checking for $ac_word... " >&6; }
a93f15c0 4383if ${ac_cv_prog_ac_ct_CXX+:} false; then :
9c60689e
DWT
4384 $as_echo_n "(cached) " >&6
4385else
a93f15c0
JF
4386 if test -n "$ac_ct_CXX"; then
4387 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
a243b558
JF
4388else
4389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4390for as_dir in $PATH
9c60689e
DWT
4391do
4392 IFS=$as_save_IFS
4393 test -z "$as_dir" && as_dir=.
9c60689e 4394 for ac_exec_ext in '' $ac_executable_extensions; do
a243b558 4395 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a93f15c0 4396 ac_cv_prog_ac_ct_CXX="$ac_prog"
a243b558
JF
4397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4398 break 2
4399 fi
4400done
9c60689e
DWT
4401 done
4402IFS=$as_save_IFS
a243b558
JF
4403
4404fi
4405fi
a93f15c0
JF
4406ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4407if test -n "$ac_ct_CXX"; then
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4409$as_echo "$ac_ct_CXX" >&6; }
9c60689e 4410else
a243b558
JF
4411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4412$as_echo "no" >&6; }
9c60689e 4413fi
6b66678a
DWT
4414
4415
a93f15c0 4416 test -n "$ac_ct_CXX" && break
a243b558 4417done
6b66678a 4418
a93f15c0
JF
4419 if test "x$ac_ct_CXX" = x; then
4420 CXX="g++"
a243b558
JF
4421 else
4422 case $cross_compiling:$ac_tool_warned in
4423yes:)
4424{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4425$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4426ac_tool_warned=yes ;;
9c60689e 4427esac
a93f15c0 4428 CXX=$ac_ct_CXX
9c60689e 4429 fi
9c60689e 4430fi
6b66678a 4431
a93f15c0
JF
4432 fi
4433fi
a243b558 4434# Provide some information about the compiler.
a93f15c0 4435$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
a243b558
JF
4436set X $ac_compile
4437ac_compiler=$2
4438for ac_option in --version -v -V -qversion; do
4439 { { ac_try="$ac_compiler $ac_option >&5"
4440case "(($ac_try" in
4441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4442 *) ac_try_echo=$ac_try;;
4443esac
4444eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4445$as_echo "$ac_try_echo"; } >&5
4446 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4447 ac_status=$?
4448 if test -s conftest.err; then
4449 sed '10a\
4450... rest of stderr output deleted ...
4451 10q' conftest.err >conftest.er1
4452 cat conftest.er1 >&5
4453 fi
4454 rm -f conftest.er1 conftest.err
4455 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4456 test $ac_status = 0; }
4457done
6b66678a 4458
a93f15c0
JF
4459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4460$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4461if ${ac_cv_cxx_compiler_gnu+:} false; then :
9c60689e 4462 $as_echo_n "(cached) " >&6
6b66678a 4463else
a243b558
JF
4464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4465/* end confdefs.h. */
6b66678a 4466
a243b558
JF
4467int
4468main ()
4469{
4470#ifndef __GNUC__
4471 choke me
4472#endif
4473
4474 ;
4475 return 0;
4476}
4477_ACEOF
a93f15c0 4478if ac_fn_cxx_try_compile "$LINENO"; then :
a243b558 4479 ac_compiler_gnu=yes
9c60689e 4480else
a243b558 4481 ac_compiler_gnu=no
6b66678a 4482fi
a243b558 4483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a93f15c0 4484ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6b66678a
DWT
4485
4486fi
a93f15c0
JF
4487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4488$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
a243b558 4489if test $ac_compiler_gnu = yes; then
a93f15c0 4490 GXX=yes
a243b558 4491else
a93f15c0 4492 GXX=
a243b558 4493fi
a93f15c0
JF
4494ac_test_CXXFLAGS=${CXXFLAGS+set}
4495ac_save_CXXFLAGS=$CXXFLAGS
4496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4497$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4498if ${ac_cv_prog_cxx_g+:} false; then :
a243b558
JF
4499 $as_echo_n "(cached) " >&6
4500else
a93f15c0
JF
4501 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4502 ac_cxx_werror_flag=yes
4503 ac_cv_prog_cxx_g=no
4504 CXXFLAGS="-g"
a243b558
JF
4505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4506/* end confdefs.h. */
309b0535 4507
a243b558
JF
4508int
4509main ()
4510{
309b0535 4511
a243b558
JF
4512 ;
4513 return 0;
4514}
4515_ACEOF
a93f15c0
JF
4516if ac_fn_cxx_try_compile "$LINENO"; then :
4517 ac_cv_prog_cxx_g=yes
a243b558 4518else
a93f15c0 4519 CXXFLAGS=""
a243b558
JF
4520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4521/* end confdefs.h. */
309b0535 4522
a243b558
JF
4523int
4524main ()
4525{
309b0535 4526
a243b558
JF
4527 ;
4528 return 0;
4529}
4530_ACEOF
a93f15c0 4531if ac_fn_cxx_try_compile "$LINENO"; then :
309b0535 4532
a243b558 4533else
a93f15c0
JF
4534 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4535 CXXFLAGS="-g"
a243b558
JF
4536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4537/* end confdefs.h. */
309b0535 4538
a243b558
JF
4539int
4540main ()
4541{
309b0535 4542
a243b558
JF
4543 ;
4544 return 0;
4545}
4546_ACEOF
a93f15c0
JF
4547if ac_fn_cxx_try_compile "$LINENO"; then :
4548 ac_cv_prog_cxx_g=yes
9c60689e 4549fi
a243b558 4550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9c60689e 4551fi
a243b558 4552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9c60689e 4553fi
a243b558 4554rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a93f15c0 4555 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
9c60689e 4556fi
a93f15c0
JF
4557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4558$as_echo "$ac_cv_prog_cxx_g" >&6; }
4559if test "$ac_test_CXXFLAGS" = set; then
4560 CXXFLAGS=$ac_save_CXXFLAGS
4561elif test $ac_cv_prog_cxx_g = yes; then
4562 if test "$GXX" = yes; then
4563 CXXFLAGS="-g -O2"
a243b558 4564 else
a93f15c0 4565 CXXFLAGS="-g"
a243b558 4566 fi
9c60689e 4567else
a93f15c0
JF
4568 if test "$GXX" = yes; then
4569 CXXFLAGS="-O2"
a243b558 4570 else
a93f15c0 4571 CXXFLAGS=
a243b558 4572 fi
9c60689e 4573fi
a243b558
JF
4574ac_ext=c
4575ac_cpp='$CPP $CPPFLAGS'
4576ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4577ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4578ac_compiler_gnu=$ac_cv_c_compiler_gnu
309b0535 4579
a93f15c0 4580depcc="$CXX" am_compiler_list=
309b0535 4581
a243b558
JF
4582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4583$as_echo_n "checking dependency style of $depcc... " >&6; }
a93f15c0 4584if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
a243b558
JF
4585 $as_echo_n "(cached) " >&6
4586else
4587 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4588 # We make a subdir and do the tests there. Otherwise we can end up
4589 # making bogus files that we don't know about and never remove. For
4590 # instance it was reported that on HP-UX the gcc test will end up
4591 # making a dummy file named 'D' -- because '-MD' means "put the output
4592 # in D".
4593 rm -rf conftest.dir
4594 mkdir conftest.dir
4595 # Copy depcomp to subdir because otherwise we won't find it if we're
4596 # using a relative directory.
4597 cp "$am_depcomp" conftest.dir
4598 cd conftest.dir
4599 # We will build objects and dependencies in a subdirectory because
4600 # it helps to detect inapplicable dependency modes. For instance
4601 # both Tru64's cc and ICC support -MD to output dependencies as a
4602 # side effect of compilation, but ICC will put the dependencies in
4603 # the current directory while Tru64 will put them in the object
4604 # directory.
4605 mkdir sub
309b0535 4606
a93f15c0 4607 am_cv_CXX_dependencies_compiler_type=none
a243b558
JF
4608 if test "$am_compiler_list" = ""; then
4609 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4610 fi
4611 am__universal=false
a93f15c0
JF
4612 case " $depcc " in #(
4613 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4614 esac
9c60689e 4615
a243b558
JF
4616 for depmode in $am_compiler_list; do
4617 # Setup a source with many dependencies, because some compilers
4618 # like to wrap large dependency lists on column 80 (with \), and
4619 # we should not choose a depcomp mode which is confused by this.
4620 #
4621 # We need to recreate these files for each test, as the compiler may
4622 # overwrite some of them when testing with obscure command lines.
4623 # This happens at least with the AIX C compiler.
4624 : > sub/conftest.c
4625 for i in 1 2 3 4 5 6; do
4626 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4627 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4628 # Solaris 10 /bin/sh.
4629 echo '/* dummy */' > sub/conftst$i.h
4630 done
4631 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
9c60689e 4632
a243b558
JF
4633 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4634 # mode. It turns out that the SunPro C++ compiler does not properly
4635 # handle '-M -o', and we need to detect this. Also, some Intel
4636 # versions had trouble with output in subdirs.
4637 am__obj=sub/conftest.${OBJEXT-o}
4638 am__minus_obj="-o $am__obj"
4639 case $depmode in
4640 gcc)
4641 # This depmode causes a compiler race in universal mode.
4642 test "$am__universal" = false || continue
4643 ;;
4644 nosideeffect)
4645 # After this tag, mechanisms are not by side-effect, so they'll
4646 # only be used when explicitly requested.
4647 if test "x$enable_dependency_tracking" = xyes; then
4648 continue
4649 else
4650 break
309b0535 4651 fi
a243b558
JF
4652 ;;
4653 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4654 # This compiler won't grok '-c -o', but also, the minuso test has
4655 # not run yet. These depmodes are late enough in the game, and
4656 # so weak that their functioning should not be impacted.
4657 am__obj=conftest.${OBJEXT-o}
4658 am__minus_obj=
4659 ;;
4660 none) break ;;
4661 esac
4662 if depmode=$depmode \
4663 source=sub/conftest.c object=$am__obj \
4664 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4665 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4666 >/dev/null 2>conftest.err &&
4667 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4668 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4669 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4670 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4671 # icc doesn't choke on unknown options, it will just issue warnings
4672 # or remarks (even with -Werror). So we grep stderr for any message
4673 # that says an option was ignored or not supported.
4674 # When given -MP, icc 7.0 and 7.1 complain thusly:
4675 # icc: Command line warning: ignoring option '-M'; no argument required
4676 # The diagnosis changed in icc 8.0:
4677 # icc: Command line remark: option '-MP' not supported
4678 if (grep 'ignoring option' conftest.err ||
4679 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
a93f15c0 4680 am_cv_CXX_dependencies_compiler_type=$depmode
a243b558
JF
4681 break
4682 fi
4683 fi
309b0535 4684 done
a243b558
JF
4685
4686 cd ..
4687 rm -rf conftest.dir
4688else
a93f15c0 4689 am_cv_CXX_dependencies_compiler_type=none
9c60689e 4690fi
a243b558 4691
9c60689e 4692fi
a93f15c0
JF
4693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4694$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4695CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
a243b558
JF
4696
4697 if
4698 test "x$enable_dependency_tracking" != xno \
a93f15c0
JF
4699 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4700 am__fastdepCXX_TRUE=
4701 am__fastdepCXX_FALSE='#'
9c60689e 4702else
a93f15c0
JF
4703 am__fastdepCXX_TRUE='#'
4704 am__fastdepCXX_FALSE=
a243b558
JF
4705fi
4706
4707
a93f15c0
JF
4708ac_ext=mm
4709ac_cpp='$OBJCXXCPP $CPPFLAGS'
4710ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4711ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4712ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
a243b558 4713if test -n "$ac_tool_prefix"; then
a93f15c0 4714 for ac_prog in g++ objc++ objcxx c++ CXX
a243b558
JF
4715 do
4716 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4717set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4719$as_echo_n "checking for $ac_word... " >&6; }
a93f15c0 4720if ${ac_cv_prog_OBJCXX+:} false; then :
9c60689e
DWT
4721 $as_echo_n "(cached) " >&6
4722else
a93f15c0
JF
4723 if test -n "$OBJCXX"; then
4724 ac_cv_prog_OBJCXX="$OBJCXX" # Let the user override the test.
a243b558
JF
4725else
4726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4727for as_dir in $PATH
4728do
4729 IFS=$as_save_IFS
4730 test -z "$as_dir" && as_dir=.
4731 for ac_exec_ext in '' $ac_executable_extensions; do
4732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a93f15c0 4733 ac_cv_prog_OBJCXX="$ac_tool_prefix$ac_prog"
a243b558
JF
4734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4735 break 2
9c60689e 4736 fi
a243b558
JF
4737done
4738 done
4739IFS=$as_save_IFS
9c60689e 4740
a243b558
JF
4741fi
4742fi
a93f15c0
JF
4743OBJCXX=$ac_cv_prog_OBJCXX
4744if test -n "$OBJCXX"; then
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCXX" >&5
4746$as_echo "$OBJCXX" >&6; }
35fa52c0 4747else
a243b558
JF
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4749$as_echo "no" >&6; }
35fa52c0 4750fi
9c60689e 4751
a243b558 4752
a93f15c0 4753 test -n "$OBJCXX" && break
a243b558
JF
4754 done
4755fi
a93f15c0
JF
4756if test -z "$OBJCXX"; then
4757 ac_ct_OBJCXX=$OBJCXX
4758 for ac_prog in g++ objc++ objcxx c++ CXX
a243b558
JF
4759do
4760 # Extract the first word of "$ac_prog", so it can be a program name with args.
4761set dummy $ac_prog; ac_word=$2
4762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4763$as_echo_n "checking for $ac_word... " >&6; }
a93f15c0 4764if ${ac_cv_prog_ac_ct_OBJCXX+:} false; then :
35fa52c0
DWT
4765 $as_echo_n "(cached) " >&6
4766else
a93f15c0
JF
4767 if test -n "$ac_ct_OBJCXX"; then
4768 ac_cv_prog_ac_ct_OBJCXX="$ac_ct_OBJCXX" # Let the user override the test.
a243b558
JF
4769else
4770as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4771for as_dir in $PATH
4772do
4773 IFS=$as_save_IFS
4774 test -z "$as_dir" && as_dir=.
4775 for ac_exec_ext in '' $ac_executable_extensions; do
4776 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a93f15c0 4777 ac_cv_prog_ac_ct_OBJCXX="$ac_prog"
a243b558
JF
4778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4779 break 2
4780 fi
4781done
4782 done
4783IFS=$as_save_IFS
9c60689e 4784
a243b558
JF
4785fi
4786fi
a93f15c0
JF
4787ac_ct_OBJCXX=$ac_cv_prog_ac_ct_OBJCXX
4788if test -n "$ac_ct_OBJCXX"; then
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCXX" >&5
4790$as_echo "$ac_ct_OBJCXX" >&6; }
a243b558
JF
4791else
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4793$as_echo "no" >&6; }
4794fi
35fa52c0 4795
35fa52c0 4796
a93f15c0 4797 test -n "$ac_ct_OBJCXX" && break
a243b558 4798done
35fa52c0 4799
a93f15c0
JF
4800 if test "x$ac_ct_OBJCXX" = x; then
4801 OBJCXX="g++"
a243b558
JF
4802 else
4803 case $cross_compiling:$ac_tool_warned in
4804yes:)
4805{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4806$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4807ac_tool_warned=yes ;;
4808esac
a93f15c0 4809 OBJCXX=$ac_ct_OBJCXX
a243b558
JF
4810 fi
4811fi
ee134472 4812
a243b558 4813# Provide some information about the compiler.
a93f15c0 4814$as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C++ compiler version" >&5
a243b558
JF
4815set X $ac_compile
4816ac_compiler=$2
4817for ac_option in --version -v -V -qversion; do
4818 { { ac_try="$ac_compiler $ac_option >&5"
4819case "(($ac_try" in
4820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4821 *) ac_try_echo=$ac_try;;
4822esac
4823eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4824$as_echo "$ac_try_echo"; } >&5
4825 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4826 ac_status=$?
4827 if test -s conftest.err; then
4828 sed '10a\
4829... rest of stderr output deleted ...
4830 10q' conftest.err >conftest.er1
4831 cat conftest.er1 >&5
4832 fi
4833 rm -f conftest.er1 conftest.err
4834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4835 test $ac_status = 0; }
4836done
53ba6704 4837
a93f15c0
JF
4838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C++ compiler" >&5
4839$as_echo_n "checking whether we are using the GNU Objective C++ compiler... " >&6; }
4840if ${ac_cv_objcxx_compiler_gnu+:} false; then :
a243b558
JF
4841 $as_echo_n "(cached) " >&6
4842else
4843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4844/* end confdefs.h. */
35fa52c0 4845
a243b558
JF
4846int
4847main ()
4848{
4849#ifndef __GNUC__
4850 choke me
4851#endif
9c60689e 4852
a243b558
JF
4853 ;
4854 return 0;
4855}
4856_ACEOF
a93f15c0 4857if ac_fn_objcxx_try_compile "$LINENO"; then :
a243b558 4858 ac_compiler_gnu=yes
35fa52c0 4859else
a243b558 4860 ac_compiler_gnu=no
35fa52c0 4861fi
a243b558 4862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a93f15c0 4863ac_cv_objcxx_compiler_gnu=$ac_compiler_gnu
9c60689e 4864
a243b558 4865fi
a93f15c0
JF
4866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objcxx_compiler_gnu" >&5
4867$as_echo "$ac_cv_objcxx_compiler_gnu" >&6; }
a243b558 4868if test $ac_compiler_gnu = yes; then
a93f15c0 4869 GOBJCXX=yes
35fa52c0 4870else
a93f15c0 4871 GOBJCXX=
9c60689e 4872fi
a93f15c0
JF
4873ac_test_OBJCXXFLAGS=${OBJCXXFLAGS+set}
4874ac_save_OBJCXXFLAGS=$OBJCXXFLAGS
4875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJCXX accepts -g" >&5
4876$as_echo_n "checking whether $OBJCXX accepts -g... " >&6; }
4877if ${ac_cv_prog_objcxx_g+:} false; then :
a243b558
JF
4878 $as_echo_n "(cached) " >&6
4879else
a93f15c0
JF
4880 ac_save_objcxx_werror_flag=$ac_objcxx_werror_flag
4881 ac_objcxx_werror_flag=yes
4882 ac_cv_prog_objcxx_g=no
4883 OBJCXXFLAGS="-g"
a243b558
JF
4884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4885/* end confdefs.h. */
9c60689e 4886
a243b558
JF
4887int
4888main ()
4889{
9c60689e 4890
a243b558
JF
4891 ;
4892 return 0;
4893}
4894_ACEOF
a93f15c0
JF
4895if ac_fn_objcxx_try_compile "$LINENO"; then :
4896 ac_cv_prog_objcxx_g=yes
a243b558 4897else
a93f15c0 4898 OBJCXXFLAGS=""
a243b558
JF
4899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4900/* end confdefs.h. */
9c60689e 4901
a243b558
JF
4902int
4903main ()
4904{
9c60689e 4905
a243b558
JF
4906 ;
4907 return 0;
4908}
4909_ACEOF
a93f15c0 4910if ac_fn_objcxx_try_compile "$LINENO"; then :
9c60689e 4911
a243b558 4912else
a93f15c0
JF
4913 ac_objcxx_werror_flag=$ac_save_objcxx_werror_flag
4914 OBJCXXFLAGS="-g"
a243b558 4915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a93f15c0
JF
4916/* end confdefs.h. */
4917
a243b558
JF
4918int
4919main ()
4920{
a93f15c0 4921
a243b558
JF
4922 ;
4923 return 0;
4924}
4925_ACEOF
a93f15c0
JF
4926if ac_fn_objcxx_try_compile "$LINENO"; then :
4927 ac_cv_prog_objcxx_g=yes
a243b558 4928fi
a93f15c0 4929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35fa52c0 4930fi
a93f15c0
JF
4931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4932fi
4933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4934 ac_objcxx_werror_flag=$ac_save_objcx_werror_flag
4935fi
4936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objcxx_g" >&5
4937$as_echo "$ac_cv_prog_objcxx_g" >&6; }
4938if test "$ac_test_OBJCXXFLAGS" = set; then
4939 OBJCXXFLAGS=$ac_save_OBJCXXFLAGS
4940elif test $ac_cv_prog_objcxx_g = yes; then
4941 if test "$GOBJCXX" = yes; then
4942 OBJCXXFLAGS="-g -O2"
4943 else
4944 OBJCXXFLAGS="-g"
4945 fi
4946else
4947 if test "$GOBJCXX" = yes; then
4948 OBJCXXFLAGS="-O2"
4949 else
4950 OBJCXXFLAGS=
4951 fi
35fa52c0 4952fi
a243b558
JF
4953ac_ext=c
4954ac_cpp='$CPP $CPPFLAGS'
4955ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4956ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4957ac_compiler_gnu=$ac_cv_c_compiler_gnu
4958
a93f15c0 4959depcc="$OBJCXX" am_compiler_list='gcc3 gcc'
9c60689e 4960
a243b558
JF
4961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4962$as_echo_n "checking dependency style of $depcc... " >&6; }
a93f15c0 4963if ${am_cv_OBJCXX_dependencies_compiler_type+:} false; then :
35fa52c0
DWT
4964 $as_echo_n "(cached) " >&6
4965else
a243b558
JF
4966 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4967 # We make a subdir and do the tests there. Otherwise we can end up
4968 # making bogus files that we don't know about and never remove. For
4969 # instance it was reported that on HP-UX the gcc test will end up
4970 # making a dummy file named 'D' -- because '-MD' means "put the output
4971 # in D".
4972 rm -rf conftest.dir
4973 mkdir conftest.dir
4974 # Copy depcomp to subdir because otherwise we won't find it if we're
4975 # using a relative directory.
4976 cp "$am_depcomp" conftest.dir
4977 cd conftest.dir
4978 # We will build objects and dependencies in a subdirectory because
4979 # it helps to detect inapplicable dependency modes. For instance
4980 # both Tru64's cc and ICC support -MD to output dependencies as a
4981 # side effect of compilation, but ICC will put the dependencies in
4982 # the current directory while Tru64 will put them in the object
4983 # directory.
4984 mkdir sub
4985
a93f15c0 4986 am_cv_OBJCXX_dependencies_compiler_type=none
a243b558
JF
4987 if test "$am_compiler_list" = ""; then
4988 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4989 fi
4990 am__universal=false
a93f15c0 4991
a243b558
JF
4992
4993 for depmode in $am_compiler_list; do
4994 # Setup a source with many dependencies, because some compilers
4995 # like to wrap large dependency lists on column 80 (with \), and
4996 # we should not choose a depcomp mode which is confused by this.
4997 #
4998 # We need to recreate these files for each test, as the compiler may
4999 # overwrite some of them when testing with obscure command lines.
5000 # This happens at least with the AIX C compiler.
5001 : > sub/conftest.c
5002 for i in 1 2 3 4 5 6; do
5003 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5004 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5005 # Solaris 10 /bin/sh.
5006 echo '/* dummy */' > sub/conftst$i.h
5007 done
5008 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5009
5010 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5011 # mode. It turns out that the SunPro C++ compiler does not properly
5012 # handle '-M -o', and we need to detect this. Also, some Intel
5013 # versions had trouble with output in subdirs.
5014 am__obj=sub/conftest.${OBJEXT-o}
5015 am__minus_obj="-o $am__obj"
5016 case $depmode in
5017 gcc)
5018 # This depmode causes a compiler race in universal mode.
5019 test "$am__universal" = false || continue
5020 ;;
5021 nosideeffect)
5022 # After this tag, mechanisms are not by side-effect, so they'll
5023 # only be used when explicitly requested.
5024 if test "x$enable_dependency_tracking" = xyes; then
5025 continue
5026 else
5027 break
5028 fi
5029 ;;
5030 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5031 # This compiler won't grok '-c -o', but also, the minuso test has
5032 # not run yet. These depmodes are late enough in the game, and
5033 # so weak that their functioning should not be impacted.
5034 am__obj=conftest.${OBJEXT-o}
5035 am__minus_obj=
5036 ;;
5037 none) break ;;
5038 esac
5039 if depmode=$depmode \
5040 source=sub/conftest.c object=$am__obj \
5041 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5042 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5043 >/dev/null 2>conftest.err &&
5044 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5045 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5046 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5047 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5048 # icc doesn't choke on unknown options, it will just issue warnings
5049 # or remarks (even with -Werror). So we grep stderr for any message
5050 # that says an option was ignored or not supported.
5051 # When given -MP, icc 7.0 and 7.1 complain thusly:
5052 # icc: Command line warning: ignoring option '-M'; no argument required
5053 # The diagnosis changed in icc 8.0:
5054 # icc: Command line remark: option '-MP' not supported
5055 if (grep 'ignoring option' conftest.err ||
5056 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
a93f15c0 5057 am_cv_OBJCXX_dependencies_compiler_type=$depmode
a243b558
JF
5058 break
5059 fi
5060 fi
5061 done
9c60689e 5062
a243b558
JF
5063 cd ..
5064 rm -rf conftest.dir
5065else
a93f15c0 5066 am_cv_OBJCXX_dependencies_compiler_type=none
35fa52c0 5067fi
a243b558 5068
35fa52c0 5069fi
a93f15c0
JF
5070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_OBJCXX_dependencies_compiler_type" >&5
5071$as_echo "$am_cv_OBJCXX_dependencies_compiler_type" >&6; }
5072OBJCXXDEPMODE=depmode=$am_cv_OBJCXX_dependencies_compiler_type
a243b558
JF
5073
5074 if
5075 test "x$enable_dependency_tracking" != xno \
a93f15c0
JF
5076 && test "$am_cv_OBJCXX_dependencies_compiler_type" = gcc3; then
5077 am__fastdepOBJCXX_TRUE=
5078 am__fastdepOBJCXX_FALSE='#'
a243b558 5079else
a93f15c0
JF
5080 am__fastdepOBJCXX_TRUE='#'
5081 am__fastdepOBJCXX_FALSE=
a243b558
JF
5082fi
5083
5084
5085
8d20f0f1
JF
5086ac_ext=c
5087ac_cpp='$CPP $CPPFLAGS'
5088ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5089ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5090ac_compiler_gnu=$ac_cv_c_compiler_gnu
5091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5092$as_echo_n "checking how to run the C preprocessor... " >&6; }
5093# On Suns, sometimes $CPP names a directory.
5094if test -n "$CPP" && test -d "$CPP"; then
5095 CPP=
5096fi
5097if test -z "$CPP"; then
5098 if ${ac_cv_prog_CPP+:} false; then :
a243b558
JF
5099 $as_echo_n "(cached) " >&6
5100else
8d20f0f1
JF
5101 # Double quotes because CPP needs to be expanded
5102 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5103 do
5104 ac_preproc_ok=false
5105for ac_c_preproc_warn_flag in '' yes
a243b558 5106do
8d20f0f1
JF
5107 # Use a header file that comes with gcc, so configuring glibc
5108 # with a fresh cross-compiler works.
5109 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5110 # <limits.h> exists even on freestanding compilers.
5111 # On the NeXT, cc -E runs the code through the compiler's parser,
5112 # not just through cpp. "Syntax error" is here to catch this case.
5113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5114/* end confdefs.h. */
5115#ifdef __STDC__
5116# include <limits.h>
5117#else
5118# include <assert.h>
5119#endif
5120 Syntax error
5121_ACEOF
5122if ac_fn_c_try_cpp "$LINENO"; then :
a243b558 5123
35fa52c0 5124else
8d20f0f1
JF
5125 # Broken: fails on valid input.
5126continue
35fa52c0 5127fi
8d20f0f1 5128rm -f conftest.err conftest.i conftest.$ac_ext
9c60689e 5129
8d20f0f1
JF
5130 # OK, works on sane cases. Now check whether nonexistent headers
5131 # can be detected and how.
5132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5133/* end confdefs.h. */
5134#include <ac_nonexistent.h>
5135_ACEOF
5136if ac_fn_c_try_cpp "$LINENO"; then :
5137 # Broken: success on invalid input.
5138continue
5139else
5140 # Passes both tests.
5141ac_preproc_ok=:
5142break
5143fi
5144rm -f conftest.err conftest.i conftest.$ac_ext
a243b558 5145
8d20f0f1
JF
5146done
5147# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5148rm -f conftest.i conftest.err conftest.$ac_ext
5149if $ac_preproc_ok; then :
5150 break
5151fi
5152
5153 done
5154 ac_cv_prog_CPP=$CPP
5155
5156fi
5157 CPP=$ac_cv_prog_CPP
5158else
5159 ac_cv_prog_CPP=$CPP
5160fi
5161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5162$as_echo "$CPP" >&6; }
5163ac_preproc_ok=false
5164for ac_c_preproc_warn_flag in '' yes
5165do
5166 # Use a header file that comes with gcc, so configuring glibc
5167 # with a fresh cross-compiler works.
5168 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5169 # <limits.h> exists even on freestanding compilers.
5170 # On the NeXT, cc -E runs the code through the compiler's parser,
5171 # not just through cpp. "Syntax error" is here to catch this case.
5172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5173/* end confdefs.h. */
5174#ifdef __STDC__
5175# include <limits.h>
5176#else
5177# include <assert.h>
5178#endif
5179 Syntax error
5180_ACEOF
5181if ac_fn_c_try_cpp "$LINENO"; then :
5182
5183else
5184 # Broken: fails on valid input.
5185continue
5186fi
5187rm -f conftest.err conftest.i conftest.$ac_ext
5188
5189 # OK, works on sane cases. Now check whether nonexistent headers
5190 # can be detected and how.
5191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5192/* end confdefs.h. */
5193#include <ac_nonexistent.h>
5194_ACEOF
5195if ac_fn_c_try_cpp "$LINENO"; then :
5196 # Broken: success on invalid input.
5197continue
5198else
5199 # Passes both tests.
5200ac_preproc_ok=:
5201break
5202fi
5203rm -f conftest.err conftest.i conftest.$ac_ext
5204
5205done
5206# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5207rm -f conftest.i conftest.err conftest.$ac_ext
5208if $ac_preproc_ok; then :
5209
5210else
5211 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5212$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5213as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5214See \`config.log' for more details" "$LINENO" 5; }
5215fi
5216
5217ac_ext=c
5218ac_cpp='$CPP $CPPFLAGS'
5219ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5220ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5221ac_compiler_gnu=$ac_cv_c_compiler_gnu
5222
5223
5224# Make sure we can run config.sub.
5225$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5226 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5227
5228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5229$as_echo_n "checking build system type... " >&6; }
5230if ${ac_cv_build+:} false; then :
5231 $as_echo_n "(cached) " >&6
5232else
5233 ac_build_alias=$build_alias
5234test "x$ac_build_alias" = x &&
5235 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5236test "x$ac_build_alias" = x &&
5237 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5238ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5239 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5240
5241fi
5242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5243$as_echo "$ac_cv_build" >&6; }
5244case $ac_cv_build in
5245*-*-*) ;;
5246*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5247esac
5248build=$ac_cv_build
5249ac_save_IFS=$IFS; IFS='-'
5250set x $ac_cv_build
5251shift
5252build_cpu=$1
5253build_vendor=$2
5254shift; shift
5255# Remember, the first character of IFS is used to create $*,
5256# except with old shells:
5257build_os=$*
5258IFS=$ac_save_IFS
5259case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5260
5261
5262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5263$as_echo_n "checking host system type... " >&6; }
5264if ${ac_cv_host+:} false; then :
5265 $as_echo_n "(cached) " >&6
5266else
5267 if test "x$host_alias" = x; then
5268 ac_cv_host=$ac_cv_build
5269else
5270 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5271 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5272fi
5273
5274fi
5275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5276$as_echo "$ac_cv_host" >&6; }
5277case $ac_cv_host in
5278*-*-*) ;;
5279*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5280esac
5281host=$ac_cv_host
5282ac_save_IFS=$IFS; IFS='-'
5283set x $ac_cv_host
5284shift
5285host_cpu=$1
5286host_vendor=$2
5287shift; shift
5288# Remember, the first character of IFS is used to create $*,
5289# except with old shells:
5290host_os=$*
5291IFS=$ac_save_IFS
5292case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5293
5294
5295
5296
5297save_cross_compiling=$cross_compiling
5298save_ac_tool_prefix=$ac_tool_prefix
5299cross_compiling=no
5300ac_tool_prefix=
5301
5302ac_ext=c
5303ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
5304ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
5305ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
5306ac_compiler_gnu=$ac_cv_c_compiler_gnu
5307if test -n "$ac_tool_prefix"; then
5308 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5309set dummy ${ac_tool_prefix}gcc; ac_word=$2
5310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5311$as_echo_n "checking for $ac_word... " >&6; }
5312if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
5313 $as_echo_n "(cached) " >&6
5314else
5315 if test -n "$CC_FOR_BUILD"; then
5316 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
5317else
5318as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5319for as_dir in $PATH
5320do
5321 IFS=$as_save_IFS
5322 test -z "$as_dir" && as_dir=.
5323 for ac_exec_ext in '' $ac_executable_extensions; do
5324 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5325 ac_cv_prog_CC_FOR_BUILD="${ac_tool_prefix}gcc"
5326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5327 break 2
5328 fi
5329done
5330 done
5331IFS=$as_save_IFS
5332
5333fi
5334fi
5335CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
5336if test -n "$CC_FOR_BUILD"; then
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
5338$as_echo "$CC_FOR_BUILD" >&6; }
5339else
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5341$as_echo "no" >&6; }
5342fi
5343
5344
5345fi
5346if test -z "$ac_cv_prog_CC_FOR_BUILD"; then
5347 ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
5348 # Extract the first word of "gcc", so it can be a program name with args.
5349set dummy gcc; ac_word=$2
5350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5351$as_echo_n "checking for $ac_word... " >&6; }
5352if ${ac_cv_prog_ac_ct_CC_FOR_BUILD+:} false; then :
5353 $as_echo_n "(cached) " >&6
5354else
5355 if test -n "$ac_ct_CC_FOR_BUILD"; then
5356 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
5357else
5358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5359for as_dir in $PATH
5360do
5361 IFS=$as_save_IFS
5362 test -z "$as_dir" && as_dir=.
5363 for ac_exec_ext in '' $ac_executable_extensions; do
5364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5365 ac_cv_prog_ac_ct_CC_FOR_BUILD="gcc"
5366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5367 break 2
5368 fi
5369done
5370 done
5371IFS=$as_save_IFS
5372
5373fi
5374fi
5375ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
5376if test -n "$ac_ct_CC_FOR_BUILD"; then
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC_FOR_BUILD" >&5
5378$as_echo "$ac_ct_CC_FOR_BUILD" >&6; }
5379else
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5381$as_echo "no" >&6; }
5382fi
5383
5384 if test "x$ac_ct_CC_FOR_BUILD" = x; then
5385 CC_FOR_BUILD=""
5386 else
5387 case $cross_compiling:$ac_tool_warned in
5388yes:)
5389{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with build triplet" >&5
5390$as_echo "$as_me: WARNING: using cross tools not prefixed with build triplet" >&2;}
5391ac_tool_warned=yes ;;
5392esac
5393 CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
5394 fi
5395else
5396 CC_FOR_BUILD="$ac_cv_prog_CC_FOR_BUILD"
5397fi
5398
5399if test -z "$CC_FOR_BUILD"; then
5400 if test -n "$ac_tool_prefix"; then
5401 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5402set dummy ${ac_tool_prefix}cc; ac_word=$2
5403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5404$as_echo_n "checking for $ac_word... " >&6; }
5405if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
5406 $as_echo_n "(cached) " >&6
5407else
5408 if test -n "$CC_FOR_BUILD"; then
5409 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
5410else
5411as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5412for as_dir in $PATH
5413do
5414 IFS=$as_save_IFS
5415 test -z "$as_dir" && as_dir=.
5416 for ac_exec_ext in '' $ac_executable_extensions; do
5417 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5418 ac_cv_prog_CC_FOR_BUILD="${ac_tool_prefix}cc"
5419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5420 break 2
5421 fi
5422done
5423 done
5424IFS=$as_save_IFS
5425
5426fi
5427fi
5428CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
5429if test -n "$CC_FOR_BUILD"; then
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
5431$as_echo "$CC_FOR_BUILD" >&6; }
5432else
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5434$as_echo "no" >&6; }
5435fi
5436
5437
5438 fi
5439fi
5440if test -z "$CC_FOR_BUILD"; then
5441 # Extract the first word of "cc", so it can be a program name with args.
5442set dummy cc; ac_word=$2
5443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5444$as_echo_n "checking for $ac_word... " >&6; }
5445if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
5446 $as_echo_n "(cached) " >&6
5447else
5448 if test -n "$CC_FOR_BUILD"; then
5449 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
5450else
5451 ac_prog_rejected=no
5452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5453for as_dir in $PATH
5454do
5455 IFS=$as_save_IFS
5456 test -z "$as_dir" && as_dir=.
5457 for ac_exec_ext in '' $ac_executable_extensions; do
5458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5459 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5460 ac_prog_rejected=yes
5461 continue
5462 fi
5463 ac_cv_prog_CC_FOR_BUILD="cc"
5464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5465 break 2
5466 fi
5467done
5468 done
5469IFS=$as_save_IFS
5470
5471if test $ac_prog_rejected = yes; then
5472 # We found a bogon in the path, so make sure we never use it.
5473 set dummy $ac_cv_prog_CC_FOR_BUILD
5474 shift
5475 if test $# != 0; then
5476 # We chose a different compiler from the bogus one.
5477 # However, it has the same basename, so the bogon will be chosen
5478 # first if we set CC_FOR_BUILD to just the basename; use the full file name.
5479 shift
5480 ac_cv_prog_CC_FOR_BUILD="$as_dir/$ac_word${1+' '}$@"
5481 fi
5482fi
5483fi
5484fi
5485CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
5486if test -n "$CC_FOR_BUILD"; then
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
5488$as_echo "$CC_FOR_BUILD" >&6; }
5489else
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5491$as_echo "no" >&6; }
5492fi
5493
5494
5495fi
5496if test -z "$CC_FOR_BUILD"; then
5497 if test -n "$ac_tool_prefix"; then
5498 for ac_prog in cl.exe
5499 do
5500 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5501set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5503$as_echo_n "checking for $ac_word... " >&6; }
5504if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
5505 $as_echo_n "(cached) " >&6
5506else
5507 if test -n "$CC_FOR_BUILD"; then
5508 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
5509else
5510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5511for as_dir in $PATH
5512do
5513 IFS=$as_save_IFS
5514 test -z "$as_dir" && as_dir=.
5515 for ac_exec_ext in '' $ac_executable_extensions; do
5516 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5517 ac_cv_prog_CC_FOR_BUILD="$ac_tool_prefix$ac_prog"
5518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5519 break 2
5520 fi
5521done
5522 done
5523IFS=$as_save_IFS
5524
5525fi
5526fi
5527CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
5528if test -n "$CC_FOR_BUILD"; then
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
5530$as_echo "$CC_FOR_BUILD" >&6; }
5531else
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5533$as_echo "no" >&6; }
5534fi
5535
5536
5537 test -n "$CC_FOR_BUILD" && break
5538 done
5539fi
5540if test -z "$CC_FOR_BUILD"; then
5541 ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
5542 for ac_prog in cl.exe
5543do
5544 # Extract the first word of "$ac_prog", so it can be a program name with args.
5545set dummy $ac_prog; ac_word=$2
5546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5547$as_echo_n "checking for $ac_word... " >&6; }
5548if ${ac_cv_prog_ac_ct_CC_FOR_BUILD+:} false; then :
5549 $as_echo_n "(cached) " >&6
5550else
5551 if test -n "$ac_ct_CC_FOR_BUILD"; then
5552 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
5553else
5554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5555for as_dir in $PATH
5556do
5557 IFS=$as_save_IFS
5558 test -z "$as_dir" && as_dir=.
5559 for ac_exec_ext in '' $ac_executable_extensions; do
5560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5561 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_prog"
5562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5563 break 2
5564 fi
5565done
5566 done
5567IFS=$as_save_IFS
5568
5569fi
5570fi
5571ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
5572if test -n "$ac_ct_CC_FOR_BUILD"; then
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC_FOR_BUILD" >&5
5574$as_echo "$ac_ct_CC_FOR_BUILD" >&6; }
5575else
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5577$as_echo "no" >&6; }
5578fi
5579
5580
5581 test -n "$ac_ct_CC_FOR_BUILD" && break
5582done
5583
5584 if test "x$ac_ct_CC_FOR_BUILD" = x; then
5585 CC_FOR_BUILD=""
5586 else
5587 case $cross_compiling:$ac_tool_warned in
5588yes:)
5589{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with build triplet" >&5
5590$as_echo "$as_me: WARNING: using cross tools not prefixed with build triplet" >&2;}
5591ac_tool_warned=yes ;;
5592esac
5593 CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
5594 fi
5595fi
5596
5597fi
5598
5599
5600test -z "$CC_FOR_BUILD" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5601$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5602as_fn_error $? "no acceptable C compiler found in \$PATH
5603See \`config.log' for more details" "$LINENO" 5; }
5604
5605# Provide some information about the compiler.
5606$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5607set X $ac_build_compile
5608ac_compiler=$2
5609for ac_option in --version -v -V -qversion; do
5610 { { ac_try="$ac_compiler $ac_option >&5"
5611case "(($ac_try" in
5612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5613 *) ac_try_echo=$ac_try;;
5614esac
5615eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5616$as_echo "$ac_try_echo"; } >&5
5617 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5618 ac_status=$?
5619 if test -s conftest.err; then
5620 sed '10a\
5621... rest of stderr output deleted ...
5622 10q' conftest.err >conftest.er1
5623 cat conftest.er1 >&5
5624 fi
5625 rm -f conftest.er1 conftest.err
5626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5627 test $ac_status = 0; }
5628done
5629
5630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5631$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5632if ${ac_cv_c_compiler_gnu+:} false; then :
5633 $as_echo_n "(cached) " >&6
5634else
5635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5636/* end confdefs.h. */
5637
5638int
5639main ()
5640{
5641#ifndef __GNUC__
5642 choke me
5643#endif
5644
5645 ;
5646 return 0;
5647}
5648_ACEOF
5649if ac_fn_c_try_compile "$LINENO"; then :
5650 ac_compiler_gnu=yes
5651else
5652 ac_compiler_gnu=no
5653fi
5654rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
5655ac_cv_c_compiler_gnu=$ac_compiler_gnu
5656
5657fi
5658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5659$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5660if test $ac_compiler_gnu = yes; then
5661 GCC=yes
5662else
5663 GCC=
5664fi
5665ac_test_CFLAGS=${CFLAGS_FOR_BUILD+set}
5666ac_save_CFLAGS=$CFLAGS_FOR_BUILD
5667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC_FOR_BUILD accepts -g" >&5
5668$as_echo_n "checking whether $CC_FOR_BUILD accepts -g... " >&6; }
5669if ${ac_cv_build_prog_cc_g+:} false; then :
5670 $as_echo_n "(cached) " >&6
5671else
5672 ac_save_c_werror_flag=$ac_c_werror_flag
5673 ac_c_werror_flag=yes
5674 ac_cv_build_prog_cc_g=no
5675 CFLAGS_FOR_BUILD="-g"
5676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5677/* end confdefs.h. */
5678
5679int
5680main ()
5681{
5682
5683 ;
5684 return 0;
5685}
5686_ACEOF
5687if ac_fn_c_try_compile "$LINENO"; then :
5688 ac_cv_build_prog_cc_g=yes
5689else
5690 CFLAGS_FOR_BUILD=""
5691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5692/* end confdefs.h. */
5693
5694int
5695main ()
5696{
5697
5698 ;
5699 return 0;
5700}
5701_ACEOF
5702if ac_fn_c_try_compile "$LINENO"; then :
5703
5704else
5705 ac_c_werror_flag=$ac_save_c_werror_flag
5706 CFLAGS_FOR_BUILD="-g"
5707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5708/* end confdefs.h. */
5709
5710int
5711main ()
5712{
5713
5714 ;
5715 return 0;
5716}
5717_ACEOF
5718if ac_fn_c_try_compile "$LINENO"; then :
5719 ac_cv_build_prog_cc_g=yes
5720fi
5721rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
5722fi
5723rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
5724fi
5725rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
5726 ac_c_werror_flag=$ac_save_c_werror_flag
5727fi
5728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_prog_cc_g" >&5
5729$as_echo "$ac_cv_build_prog_cc_g" >&6; }
5730if test "$ac_test_CFLAGS" = set; then
5731 CFLAGS_FOR_BUILD=$ac_save_CFLAGS
5732elif test $ac_cv_build_prog_cc_g = yes; then
5733 if test "$GCC" = yes; then
5734 CFLAGS_FOR_BUILD="-g -O2"
5735 else
5736 CFLAGS_FOR_BUILD="-g"
5737 fi
5738else
5739 if test "$GCC" = yes; then
5740 CFLAGS_FOR_BUILD="-O2"
5741 else
5742 CFLAGS_FOR_BUILD=
5743 fi
5744fi
5745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC_FOR_BUILD option to accept ISO C89" >&5
5746$as_echo_n "checking for $CC_FOR_BUILD option to accept ISO C89... " >&6; }
5747if ${ac_cv_prog_cc_c89+:} false; then :
5748 $as_echo_n "(cached) " >&6
5749else
5750 ac_cv_prog_cc_c89=no
5751ac_save_CC=$CC_FOR_BUILD
5752cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5753/* end confdefs.h. */
5754#include <stdarg.h>
5755#include <stdio.h>
5756struct stat;
5757/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5758struct buf { int x; };
5759FILE * (*rcsopen) (struct buf *, struct stat *, int);
5760static char *e (p, i)
5761 char **p;
5762 int i;
5763{
5764 return p[i];
5765}
5766static char *f (char * (*g) (char **, int), char **p, ...)
5767{
5768 char *s;
5769 va_list v;
5770 va_start (v,p);
5771 s = g (p, va_arg (v,int));
5772 va_end (v);
5773 return s;
5774}
5775
5776/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5777 function prototypes and stuff, but not '\xHH' hex character constants.
5778 These don't provoke an error unfortunately, instead are silently treated
5779 as 'x'. The following induces an error, until -std is added to get
5780 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5781 array size at least. It's necessary to write '\x00'==0 to get something
5782 that's true only with -std. */
5783int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5784
5785/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5786 inside strings and character constants. */
5787#define FOO(x) 'x'
5788int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5789
5790int test (int i, double x);
5791struct s1 {int (*f) (int a);};
5792struct s2 {int (*f) (double a);};
5793int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5794int argc;
5795char **argv;
5796int
5797main ()
5798{
5799return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5800 ;
5801 return 0;
5802}
5803_ACEOF
5804for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5805 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5806do
5807 CC_FOR_BUILD="$ac_save_CC $ac_arg"
5808 if ac_fn_c_try_compile "$LINENO"; then :
5809 ac_cv_prog_cc_c89=$ac_arg
5810fi
5811rm -f core conftest.err conftest.$ac_build_objext
5812 test "x$ac_cv_prog_cc_c89" != "xno" && break
5813done
5814rm -f conftest.$ac_ext
5815CC_FOR_BUILD=$ac_save_CC
5816
5817fi
5818# AC_CACHE_VAL
5819case "x$ac_cv_prog_cc_c89" in
5820 x)
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5822$as_echo "none needed" >&6; } ;;
5823 xno)
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5825$as_echo "unsupported" >&6; } ;;
5826 *)
5827 CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_prog_cc_c89"
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5829$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5830esac
5831if test "x$ac_cv_prog_cc_c89" != xno; then :
5832
5833fi
5834
5835ac_ext=c
5836ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
5837ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
5838ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
5839ac_compiler_gnu=$ac_cv_c_compiler_gnu
5840
5841ac_ext=c
5842ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
5843ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
5844ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
5845ac_compiler_gnu=$ac_cv_c_compiler_gnu
5846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC_FOR_BUILD understands -c and -o together" >&5
5847$as_echo_n "checking whether $CC_FOR_BUILD understands -c and -o together... " >&6; }
5848if ${am_cv_prog_cc_c_o+:} false; then :
5849 $as_echo_n "(cached) " >&6
5850else
5851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5852/* end confdefs.h. */
5853
5854int
5855main ()
5856{
5857
5858 ;
5859 return 0;
5860}
5861_ACEOF
5862 # Make sure it works both with $CC and with simple cc.
5863 # Following AC_PROG_CC_C_O, we do the test twice because some
5864 # compilers refuse to overwrite an existing .o file with -o,
5865 # though they will create one.
5866 am_cv_prog_cc_c_o=yes
5867 for am_i in 1 2; do
5868 if { echo "$as_me:$LINENO: $CC_FOR_BUILD -c conftest.$ac_ext -o conftest2.$ac_build_objext" >&5
5869 ($CC_FOR_BUILD -c conftest.$ac_ext -o conftest2.$ac_build_objext) >&5 2>&5
5870 ac_status=$?
5871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872 (exit $ac_status); } \
5873 && test -f conftest2.$ac_build_objext; then
5874 : OK
5875 else
5876 am_cv_prog_cc_c_o=no
5877 break
5878 fi
5879 done
5880 rm -f core conftest*
5881 unset am_i
5882fi
5883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5884$as_echo "$am_cv_prog_cc_c_o" >&6; }
5885if test "$am_cv_prog_cc_c_o" != yes; then
5886 # Losing compiler, so override with the script.
5887 # FIXME: It is wrong to rewrite CC.
5888 # But if we don't then we get into trouble of one sort or another.
5889 # A longer-term fix would be to have automake use am__CC in this case,
5890 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5891 CC_FOR_BUILD="$am_aux_dir/compile $CC_FOR_BUILD"
5892fi
5893ac_ext=c
5894ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
5895ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
5896ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
5897ac_compiler_gnu=$ac_cv_c_compiler_gnu
5898
5899
5900depcc="$CC_FOR_BUILD" am_compiler_list=
5901
5902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5903$as_echo_n "checking dependency style of $depcc... " >&6; }
5904if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5905 $as_echo_n "(cached) " >&6
5906else
5907 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5908 # We make a subdir and do the tests there. Otherwise we can end up
5909 # making bogus files that we don't know about and never remove. For
5910 # instance it was reported that on HP-UX the gcc test will end up
5911 # making a dummy file named 'D' -- because '-MD' means "put the output
5912 # in D".
5913 rm -rf conftest.dir
5914 mkdir conftest.dir
5915 # Copy depcomp to subdir because otherwise we won't find it if we're
5916 # using a relative directory.
5917 cp "$am_depcomp" conftest.dir
5918 cd conftest.dir
5919 # We will build objects and dependencies in a subdirectory because
5920 # it helps to detect inapplicable dependency modes. For instance
5921 # both Tru64's cc and ICC support -MD to output dependencies as a
5922 # side effect of compilation, but ICC will put the dependencies in
5923 # the current directory while Tru64 will put them in the object
5924 # directory.
5925 mkdir sub
5926
5927 am_cv_CC_dependencies_compiler_type=none
5928 if test "$am_compiler_list" = ""; then
5929 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5930 fi
5931 am__universal=false
5932 case " $depcc " in #(
5933 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5934 esac
5935
5936 for depmode in $am_compiler_list; do
5937 # Setup a source with many dependencies, because some compilers
5938 # like to wrap large dependency lists on column 80 (with \), and
5939 # we should not choose a depcomp mode which is confused by this.
5940 #
5941 # We need to recreate these files for each test, as the compiler may
5942 # overwrite some of them when testing with obscure command lines.
5943 # This happens at least with the AIX C compiler.
5944 : > sub/conftest.c
5945 for i in 1 2 3 4 5 6; do
5946 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5947 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5948 # Solaris 10 /bin/sh.
5949 echo '/* dummy */' > sub/conftst$i.h
5950 done
5951 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5952
5953 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5954 # mode. It turns out that the SunPro C++ compiler does not properly
5955 # handle '-M -o', and we need to detect this. Also, some Intel
5956 # versions had trouble with output in subdirs.
5957 am__obj=sub/conftest.${OBJEXT-o}
5958 am__minus_obj="-o $am__obj"
5959 case $depmode in
5960 gcc)
5961 # This depmode causes a compiler race in universal mode.
5962 test "$am__universal" = false || continue
5963 ;;
5964 nosideeffect)
5965 # After this tag, mechanisms are not by side-effect, so they'll
5966 # only be used when explicitly requested.
5967 if test "x$enable_dependency_tracking" = xyes; then
5968 continue
5969 else
5970 break
5971 fi
5972 ;;
5973 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5974 # This compiler won't grok '-c -o', but also, the minuso test has
5975 # not run yet. These depmodes are late enough in the game, and
5976 # so weak that their functioning should not be impacted.
5977 am__obj=conftest.${OBJEXT-o}
5978 am__minus_obj=
5979 ;;
5980 none) break ;;
5981 esac
5982 if depmode=$depmode \
5983 source=sub/conftest.c object=$am__obj \
5984 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5985 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5986 >/dev/null 2>conftest.err &&
5987 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5988 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5989 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5990 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5991 # icc doesn't choke on unknown options, it will just issue warnings
5992 # or remarks (even with -Werror). So we grep stderr for any message
5993 # that says an option was ignored or not supported.
5994 # When given -MP, icc 7.0 and 7.1 complain thusly:
5995 # icc: Command line warning: ignoring option '-M'; no argument required
5996 # The diagnosis changed in icc 8.0:
5997 # icc: Command line remark: option '-MP' not supported
5998 if (grep 'ignoring option' conftest.err ||
5999 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6000 am_cv_CC_dependencies_compiler_type=$depmode
6001 break
6002 fi
6003 fi
6004 done
6005
6006 cd ..
6007 rm -rf conftest.dir
6008else
6009 am_cv_CC_dependencies_compiler_type=none
6010fi
6011
6012fi
6013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6014$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6015CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6016
6017 if
6018 test "x$enable_dependency_tracking" != xno \
6019 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6020 am__fastdepCC_TRUE=
6021 am__fastdepCC_FALSE='#'
6022else
6023 am__fastdepCC_TRUE='#'
6024 am__fastdepCC_FALSE=
6025fi
6026
6027
6028ac_ext=c
6029ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
6030ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
6031ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
6032ac_compiler_gnu=$ac_cv_c_compiler_gnu
6033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6034$as_echo_n "checking how to run the C preprocessor... " >&6; }
6035# On Suns, sometimes $CPP names a directory.
6036if test -n "$CPP_FOR_BUILD" && test -d "$CPP_FOR_BUILD"; then
6037 CPP_FOR_BUILD=
6038fi
6039if test -z "$CPP_FOR_BUILD"; then
6040 if ${ac_cv_build_prog_CPP+:} false; then :
6041 $as_echo_n "(cached) " >&6
6042else
6043 # Double quotes because CPP needs to be expanded
6044 for CPP_FOR_BUILD in "$CC_FOR_BUILD -E" "$CC_FOR_BUILD -E -traditional-cpp" "/lib/cpp"
6045 do
6046 ac_preproc_ok=false
6047for ac_c_preproc_warn_flag in '' yes
6048do
6049 # Use a header file that comes with gcc, so configuring glibc
6050 # with a fresh cross-compiler works.
6051 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6052 # <limits.h> exists even on freestanding compilers.
6053 # On the NeXT, cc -E runs the code through the compiler's parser,
6054 # not just through cpp. "Syntax error" is here to catch this case.
6055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6056/* end confdefs.h. */
6057#ifdef __STDC__
6058# include <limits.h>
6059#else
6060# include <assert.h>
6061#endif
6062 Syntax error
6063_ACEOF
6064if ac_fn_c_try_cpp "$LINENO"; then :
6065
6066else
6067 # Broken: fails on valid input.
6068continue
6069fi
6070rm -f conftest.err conftest.i conftest.$ac_ext
6071
6072 # OK, works on sane cases. Now check whether nonexistent headers
6073 # can be detected and how.
6074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6075/* end confdefs.h. */
6076#include <ac_nonexistent.h>
6077_ACEOF
6078if ac_fn_c_try_cpp "$LINENO"; then :
6079 # Broken: success on invalid input.
6080continue
6081else
6082 # Passes both tests.
6083ac_preproc_ok=:
6084break
6085fi
6086rm -f conftest.err conftest.i conftest.$ac_ext
6087
6088done
6089# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6090rm -f conftest.i conftest.err conftest.$ac_ext
6091if $ac_preproc_ok; then :
6092 break
6093fi
6094
6095 done
6096 ac_cv_build_prog_CPP=$CPP_FOR_BUILD
6097
6098fi
6099 CPP_FOR_BUILD=$ac_cv_build_prog_CPP
6100else
6101 ac_cv_build_prog_CPP=$CPP_FOR_BUILD
6102fi
6103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP_FOR_BUILD" >&5
6104$as_echo "$CPP_FOR_BUILD" >&6; }
6105ac_preproc_ok=false
6106for ac_c_preproc_warn_flag in '' yes
6107do
6108 # Use a header file that comes with gcc, so configuring glibc
6109 # with a fresh cross-compiler works.
6110 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6111 # <limits.h> exists even on freestanding compilers.
6112 # On the NeXT, cc -E runs the code through the compiler's parser,
6113 # not just through cpp. "Syntax error" is here to catch this case.
6114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6115/* end confdefs.h. */
6116#ifdef __STDC__
6117# include <limits.h>
6118#else
6119# include <assert.h>
6120#endif
6121 Syntax error
6122_ACEOF
6123if ac_fn_c_try_cpp "$LINENO"; then :
6124
6125else
6126 # Broken: fails on valid input.
6127continue
6128fi
6129rm -f conftest.err conftest.i conftest.$ac_ext
6130
6131 # OK, works on sane cases. Now check whether nonexistent headers
6132 # can be detected and how.
6133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6134/* end confdefs.h. */
6135#include <ac_nonexistent.h>
6136_ACEOF
6137if ac_fn_c_try_cpp "$LINENO"; then :
6138 # Broken: success on invalid input.
6139continue
6140else
6141 # Passes both tests.
6142ac_preproc_ok=:
6143break
6144fi
6145rm -f conftest.err conftest.i conftest.$ac_ext
6146
6147done
6148# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6149rm -f conftest.i conftest.err conftest.$ac_ext
6150if $ac_preproc_ok; then :
6151
6152else
6153 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6154$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6155as_fn_error $? "C preprocessor \"$CPP_FOR_BUILD\" fails sanity check
6156See \`config.log' for more details" "$LINENO" 5; }
6157fi
6158
6159ac_ext=c
6160ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
6161ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
6162ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
6163ac_compiler_gnu=$ac_cv_c_compiler_gnu
6164
6165
6166
6167ac_tool_prefix=$save_ac_tool_prefix
6168cross_compiling=$save_cross_compiling
6169
6170
6171BUILD_EXEEXT=$ac_build_exeext
6172BUILD_OBJEXT=$ac_build_objext
6173
6174ac_ext=cpp
6175ac_cpp='$CXXCPP $CPPFLAGS'
6176ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6177ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6178ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
6180$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
6181if test -z "$CXXCPP"; then
6182 if ${ac_cv_prog_CXXCPP+:} false; then :
6183 $as_echo_n "(cached) " >&6
6184else
6185 # Double quotes because CXXCPP needs to be expanded
6186 for CXXCPP in "$CXX -E" "/lib/cpp"
6187 do
6188 ac_preproc_ok=false
6189for ac_cxx_preproc_warn_flag in '' yes
6190do
6191 # Use a header file that comes with gcc, so configuring glibc
6192 # with a fresh cross-compiler works.
6193 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6194 # <limits.h> exists even on freestanding compilers.
6195 # On the NeXT, cc -E runs the code through the compiler's parser,
6196 # not just through cpp. "Syntax error" is here to catch this case.
6197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6198/* end confdefs.h. */
6199#ifdef __STDC__
6200# include <limits.h>
6201#else
6202# include <assert.h>
6203#endif
6204 Syntax error
6205_ACEOF
6206if ac_fn_cxx_try_cpp "$LINENO"; then :
6207
6208else
6209 # Broken: fails on valid input.
6210continue
6211fi
6212rm -f conftest.err conftest.i conftest.$ac_ext
6213
6214 # OK, works on sane cases. Now check whether nonexistent headers
6215 # can be detected and how.
6216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6217/* end confdefs.h. */
6218#include <ac_nonexistent.h>
6219_ACEOF
6220if ac_fn_cxx_try_cpp "$LINENO"; then :
6221 # Broken: success on invalid input.
6222continue
6223else
6224 # Passes both tests.
6225ac_preproc_ok=:
6226break
6227fi
6228rm -f conftest.err conftest.i conftest.$ac_ext
6229
6230done
6231# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6232rm -f conftest.i conftest.err conftest.$ac_ext
6233if $ac_preproc_ok; then :
6234 break
6235fi
6236
6237 done
6238 ac_cv_prog_CXXCPP=$CXXCPP
6239
6240fi
6241 CXXCPP=$ac_cv_prog_CXXCPP
6242else
6243 ac_cv_prog_CXXCPP=$CXXCPP
6244fi
6245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
6246$as_echo "$CXXCPP" >&6; }
6247ac_preproc_ok=false
6248for ac_cxx_preproc_warn_flag in '' yes
6249do
6250 # Use a header file that comes with gcc, so configuring glibc
6251 # with a fresh cross-compiler works.
6252 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6253 # <limits.h> exists even on freestanding compilers.
6254 # On the NeXT, cc -E runs the code through the compiler's parser,
6255 # not just through cpp. "Syntax error" is here to catch this case.
6256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6257/* end confdefs.h. */
6258#ifdef __STDC__
6259# include <limits.h>
6260#else
6261# include <assert.h>
6262#endif
6263 Syntax error
6264_ACEOF
6265if ac_fn_cxx_try_cpp "$LINENO"; then :
6266
6267else
6268 # Broken: fails on valid input.
6269continue
6270fi
6271rm -f conftest.err conftest.i conftest.$ac_ext
6272
6273 # OK, works on sane cases. Now check whether nonexistent headers
6274 # can be detected and how.
6275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6276/* end confdefs.h. */
6277#include <ac_nonexistent.h>
6278_ACEOF
6279if ac_fn_cxx_try_cpp "$LINENO"; then :
6280 # Broken: success on invalid input.
6281continue
6282else
6283 # Passes both tests.
6284ac_preproc_ok=:
6285break
6286fi
6287rm -f conftest.err conftest.i conftest.$ac_ext
6288
6289done
6290# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6291rm -f conftest.i conftest.err conftest.$ac_ext
6292if $ac_preproc_ok; then :
6293
6294else
6295 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6296$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6297as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
6298See \`config.log' for more details" "$LINENO" 5; }
6299fi
6300
6301ac_ext=c
6302ac_cpp='$CPP $CPPFLAGS'
6303ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6304ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6305ac_compiler_gnu=$ac_cv_c_compiler_gnu
6306
6307
6308
6309save_cross_compiling=$cross_compiling
6310save_ac_tool_prefix=$ac_tool_prefix
6311cross_compiling=no
6312ac_tool_prefix=
6313
6314ac_ext=cpp
6315ac_cpp='$CXXCPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
6316ac_build_compile='$CXX_FOR_BUILD -c $CXXFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
6317ac_build_link='$CXX_FOR_BUILD -o conftest$ac_exeext $CXXFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
6318ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6319if test -z "$CXX_FOR_BUILD"; then
6320 if test -n "$CCC"; then
6321 CXX_FOR_BUILD=$CCC
6322 else
6323 if test -n "$ac_tool_prefix"; then
6324 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6325 do
6326 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6327set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6329$as_echo_n "checking for $ac_word... " >&6; }
6330if ${ac_cv_prog_CXX_FOR_BUILD+:} false; then :
6331 $as_echo_n "(cached) " >&6
6332else
6333 if test -n "$CXX_FOR_BUILD"; then
6334 ac_cv_prog_CXX_FOR_BUILD="$CXX_FOR_BUILD" # Let the user override the test.
6335else
6336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6337for as_dir in $PATH
6338do
6339 IFS=$as_save_IFS
6340 test -z "$as_dir" && as_dir=.
6341 for ac_exec_ext in '' $ac_executable_extensions; do
6342 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6343 ac_cv_prog_CXX_FOR_BUILD="$ac_tool_prefix$ac_prog"
6344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6345 break 2
6346 fi
6347done
6348 done
6349IFS=$as_save_IFS
6350
6351fi
6352fi
6353CXX_FOR_BUILD=$ac_cv_prog_CXX_FOR_BUILD
6354if test -n "$CXX_FOR_BUILD"; then
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_BUILD" >&5
6356$as_echo "$CXX_FOR_BUILD" >&6; }
6357else
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6359$as_echo "no" >&6; }
6360fi
6361
6362
6363 test -n "$CXX_FOR_BUILD" && break
6364 done
6365fi
6366if test -z "$CXX_FOR_BUILD"; then
6367 ac_ct_CXX_FOR_BUILD=$CXX_FOR_BUILD
6368 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6369do
6370 # Extract the first word of "$ac_prog", so it can be a program name with args.
6371set dummy $ac_prog; ac_word=$2
6372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6373$as_echo_n "checking for $ac_word... " >&6; }
6374if ${ac_cv_prog_ac_ct_CXX_FOR_BUILD+:} false; then :
6375 $as_echo_n "(cached) " >&6
6376else
6377 if test -n "$ac_ct_CXX_FOR_BUILD"; then
6378 ac_cv_prog_ac_ct_CXX_FOR_BUILD="$ac_ct_CXX_FOR_BUILD" # Let the user override the test.
6379else
6380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6381for as_dir in $PATH
6382do
6383 IFS=$as_save_IFS
6384 test -z "$as_dir" && as_dir=.
6385 for ac_exec_ext in '' $ac_executable_extensions; do
6386 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6387 ac_cv_prog_ac_ct_CXX_FOR_BUILD="$ac_prog"
6388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6389 break 2
6390 fi
6391done
6392 done
6393IFS=$as_save_IFS
6394
6395fi
6396fi
6397ac_ct_CXX_FOR_BUILD=$ac_cv_prog_ac_ct_CXX_FOR_BUILD
6398if test -n "$ac_ct_CXX_FOR_BUILD"; then
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX_FOR_BUILD" >&5
6400$as_echo "$ac_ct_CXX_FOR_BUILD" >&6; }
6401else
6402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6403$as_echo "no" >&6; }
6404fi
6405
6406
6407 test -n "$ac_ct_CXX_FOR_BUILD" && break
6408done
6409
6410 if test "x$ac_ct_CXX_FOR_BUILD" = x; then
6411 CXX_FOR_BUILD="g++"
6412 else
6413 case $cross_compiling:$ac_tool_warned in
6414yes:)
6415{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with build triplet" >&5
6416$as_echo "$as_me: WARNING: using cross tools not prefixed with build triplet" >&2;}
6417ac_tool_warned=yes ;;
6418esac
6419 CXX_FOR_BUILD=$ac_ct_CXX_FOR_BUILD
6420 fi
6421fi
6422
6423 fi
6424fi
6425# Provide some information about the compiler.
6426$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6427set X $ac_build_compile
6428ac_compiler=$2
6429for ac_option in --version -v -V -qversion; do
6430 { { ac_try="$ac_compiler $ac_option >&5"
6431case "(($ac_try" in
6432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6433 *) ac_try_echo=$ac_try;;
6434esac
6435eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6436$as_echo "$ac_try_echo"; } >&5
6437 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6438 ac_status=$?
6439 if test -s conftest.err; then
6440 sed '10a\
6441... rest of stderr output deleted ...
6442 10q' conftest.err >conftest.er1
6443 cat conftest.er1 >&5
6444 fi
6445 rm -f conftest.er1 conftest.err
6446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6447 test $ac_status = 0; }
6448done
6449
6450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6451$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
6452if ${ac_cv_cxx_compiler_gnu+:} false; then :
6453 $as_echo_n "(cached) " >&6
6454else
6455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6456/* end confdefs.h. */
6457
6458int
6459main ()
6460{
6461#ifndef __GNUC__
6462 choke me
6463#endif
6464
6465 ;
6466 return 0;
6467}
6468_ACEOF
6469if ac_fn_cxx_try_compile "$LINENO"; then :
6470 ac_compiler_gnu=yes
6471else
6472 ac_compiler_gnu=no
6473fi
6474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6475ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6476
6477fi
6478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6479$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6480if test $ac_compiler_gnu = yes; then
6481 GXX=yes
6482else
6483 GXX=
6484fi
6485ac_test_CXXFLAGS=${CXXFLAGS_FOR_BUILD+set}
6486ac_save_CXXFLAGS=$CXXFLAGS_FOR_BUILD
6487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX_FOR_BUILD accepts -g" >&5
6488$as_echo_n "checking whether $CXX_FOR_BUILD accepts -g... " >&6; }
6489if ${ac_cv_build_prog_cxx_g+:} false; then :
6490 $as_echo_n "(cached) " >&6
6491else
6492 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6493 ac_cxx_werror_flag=yes
6494 ac_cv_build_prog_cxx_g=no
6495 CXXFLAGS_FOR_BUILD="-g"
6496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6497/* end confdefs.h. */
6498
6499int
6500main ()
6501{
6502
6503 ;
6504 return 0;
6505}
6506_ACEOF
6507if ac_fn_cxx_try_compile "$LINENO"; then :
6508 ac_cv_build_prog_cxx_g=yes
6509else
6510 CXXFLAGS_FOR_BUILD=""
6511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6512/* end confdefs.h. */
6513
6514int
6515main ()
6516{
6517
6518 ;
6519 return 0;
6520}
6521_ACEOF
6522if ac_fn_cxx_try_compile "$LINENO"; then :
6523
6524else
6525 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6526 CXXFLAGS_FOR_BUILD="-g"
6527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6528/* end confdefs.h. */
6529
6530int
6531main ()
6532{
6533
6534 ;
6535 return 0;
6536}
6537_ACEOF
6538if ac_fn_cxx_try_compile "$LINENO"; then :
6539 ac_cv_build_prog_cxx_g=yes
6540fi
6541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6542fi
6543rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6544fi
6545rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6546 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6547fi
6548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_prog_cxx_g" >&5
6549$as_echo "$ac_cv_build_prog_cxx_g" >&6; }
6550if test "$ac_test_CXXFLAGS" = set; then
6551 CXXFLAGS_FOR_BUILD=$ac_save_CXXFLAGS
6552elif test $ac_cv_build_prog_cxx_g = yes; then
6553 if test "$GXX" = yes; then
6554 CXXFLAGS_FOR_BUILD="-g -O2"
6555 else
6556 CXXFLAGS_FOR_BUILD="-g"
6557 fi
6558else
6559 if test "$GXX" = yes; then
6560 CXXFLAGS_FOR_BUILD="-O2"
6561 else
6562 CXXFLAGS_FOR_BUILD=
6563 fi
6564fi
6565ac_ext=c
6566ac_cpp='$CPP $CPPFLAGS_FOR_BUILD'
6567ac_build_compile='$CC -c $CFLAGS $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
6568ac_build_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
6569ac_compiler_gnu=$ac_cv_c_compiler_gnu
6570
6571depcc="$CXX_FOR_BUILD" am_compiler_list=
6572
6573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6574$as_echo_n "checking dependency style of $depcc... " >&6; }
6575if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
6576 $as_echo_n "(cached) " >&6
6577else
6578 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6579 # We make a subdir and do the tests there. Otherwise we can end up
6580 # making bogus files that we don't know about and never remove. For
6581 # instance it was reported that on HP-UX the gcc test will end up
6582 # making a dummy file named 'D' -- because '-MD' means "put the output
6583 # in D".
6584 rm -rf conftest.dir
6585 mkdir conftest.dir
6586 # Copy depcomp to subdir because otherwise we won't find it if we're
6587 # using a relative directory.
6588 cp "$am_depcomp" conftest.dir
6589 cd conftest.dir
6590 # We will build objects and dependencies in a subdirectory because
6591 # it helps to detect inapplicable dependency modes. For instance
6592 # both Tru64's cc and ICC support -MD to output dependencies as a
6593 # side effect of compilation, but ICC will put the dependencies in
6594 # the current directory while Tru64 will put them in the object
6595 # directory.
6596 mkdir sub
6597
6598 am_cv_CXX_dependencies_compiler_type=none
6599 if test "$am_compiler_list" = ""; then
6600 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6601 fi
6602 am__universal=false
6603 case " $depcc " in #(
6604 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6605 esac
6606
6607 for depmode in $am_compiler_list; do
6608 # Setup a source with many dependencies, because some compilers
6609 # like to wrap large dependency lists on column 80 (with \), and
6610 # we should not choose a depcomp mode which is confused by this.
6611 #
6612 # We need to recreate these files for each test, as the compiler may
6613 # overwrite some of them when testing with obscure command lines.
6614 # This happens at least with the AIX C compiler.
6615 : > sub/conftest.c
6616 for i in 1 2 3 4 5 6; do
6617 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6618 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6619 # Solaris 10 /bin/sh.
6620 echo '/* dummy */' > sub/conftst$i.h
6621 done
6622 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6623
6624 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6625 # mode. It turns out that the SunPro C++ compiler does not properly
6626 # handle '-M -o', and we need to detect this. Also, some Intel
6627 # versions had trouble with output in subdirs.
6628 am__obj=sub/conftest.${OBJEXT-o}
6629 am__minus_obj="-o $am__obj"
6630 case $depmode in
6631 gcc)
6632 # This depmode causes a compiler race in universal mode.
6633 test "$am__universal" = false || continue
6634 ;;
6635 nosideeffect)
6636 # After this tag, mechanisms are not by side-effect, so they'll
6637 # only be used when explicitly requested.
6638 if test "x$enable_dependency_tracking" = xyes; then
6639 continue
6640 else
6641 break
6642 fi
6643 ;;
6644 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6645 # This compiler won't grok '-c -o', but also, the minuso test has
6646 # not run yet. These depmodes are late enough in the game, and
6647 # so weak that their functioning should not be impacted.
6648 am__obj=conftest.${OBJEXT-o}
6649 am__minus_obj=
6650 ;;
6651 none) break ;;
6652 esac
6653 if depmode=$depmode \
6654 source=sub/conftest.c object=$am__obj \
6655 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6656 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6657 >/dev/null 2>conftest.err &&
6658 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6659 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6660 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6661 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6662 # icc doesn't choke on unknown options, it will just issue warnings
6663 # or remarks (even with -Werror). So we grep stderr for any message
6664 # that says an option was ignored or not supported.
6665 # When given -MP, icc 7.0 and 7.1 complain thusly:
6666 # icc: Command line warning: ignoring option '-M'; no argument required
6667 # The diagnosis changed in icc 8.0:
6668 # icc: Command line remark: option '-MP' not supported
6669 if (grep 'ignoring option' conftest.err ||
6670 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6671 am_cv_CXX_dependencies_compiler_type=$depmode
6672 break
6673 fi
6674 fi
6675 done
6676
6677 cd ..
6678 rm -rf conftest.dir
6679else
6680 am_cv_CXX_dependencies_compiler_type=none
6681fi
6682
6683fi
6684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6685$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6686CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6687
6688 if
6689 test "x$enable_dependency_tracking" != xno \
6690 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6691 am__fastdepCXX_TRUE=
6692 am__fastdepCXX_FALSE='#'
6693else
6694 am__fastdepCXX_TRUE='#'
6695 am__fastdepCXX_FALSE=
6696fi
6697
6698
6699ac_ext=cpp
6700ac_cpp='$CXXCPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
6701ac_build_compile='$CXX_FOR_BUILD -c $CXXFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
6702ac_build_link='$CXX_FOR_BUILD -o conftest$ac_exeext $CXXFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
6703ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
6705$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
6706if test -z "$CXXCPP_FOR_BUILD"; then
6707 if ${ac_cv_build_prog_CXXCPP+:} false; then :
6708 $as_echo_n "(cached) " >&6
6709else
6710 # Double quotes because CXXCPP needs to be expanded
6711 for CXXCPP_FOR_BUILD in "$CXX_FOR_BUILD -E" "/lib/cpp"
6712 do
6713 ac_preproc_ok=false
6714for ac_cxx_preproc_warn_flag in '' yes
6715do
6716 # Use a header file that comes with gcc, so configuring glibc
6717 # with a fresh cross-compiler works.
6718 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6719 # <limits.h> exists even on freestanding compilers.
6720 # On the NeXT, cc -E runs the code through the compiler's parser,
6721 # not just through cpp. "Syntax error" is here to catch this case.
6722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6723/* end confdefs.h. */
6724#ifdef __STDC__
6725# include <limits.h>
6726#else
6727# include <assert.h>
6728#endif
6729 Syntax error
6730_ACEOF
6731if ac_fn_cxx_try_cpp "$LINENO"; then :
6732
6733else
6734 # Broken: fails on valid input.
6735continue
6736fi
6737rm -f conftest.err conftest.i conftest.$ac_ext
6738
6739 # OK, works on sane cases. Now check whether nonexistent headers
6740 # can be detected and how.
6741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6742/* end confdefs.h. */
6743#include <ac_nonexistent.h>
6744_ACEOF
6745if ac_fn_cxx_try_cpp "$LINENO"; then :
6746 # Broken: success on invalid input.
6747continue
6748else
6749 # Passes both tests.
6750ac_preproc_ok=:
6751break
6752fi
6753rm -f conftest.err conftest.i conftest.$ac_ext
6754
6755done
6756# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6757rm -f conftest.i conftest.err conftest.$ac_ext
6758if $ac_preproc_ok; then :
6759 break
6760fi
6761
6762 done
6763 ac_cv_build_prog_CXXCPP=$CXXCPP_FOR_BUILD
6764
6765fi
6766 CXXCPP_FOR_BUILD=$ac_cv_build_prog_CXXCPP
6767else
6768 ac_cv_build_prog_CXXCPP=$CXXCPP_FOR_BUILD
6769fi
6770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP_FOR_BUILD" >&5
6771$as_echo "$CXXCPP_FOR_BUILD" >&6; }
6772ac_preproc_ok=false
6773for ac_cxx_preproc_warn_flag in '' yes
6774do
6775 # Use a header file that comes with gcc, so configuring glibc
6776 # with a fresh cross-compiler works.
6777 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6778 # <limits.h> exists even on freestanding compilers.
6779 # On the NeXT, cc -E runs the code through the compiler's parser,
6780 # not just through cpp. "Syntax error" is here to catch this case.
6781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6782/* end confdefs.h. */
6783#ifdef __STDC__
6784# include <limits.h>
6785#else
6786# include <assert.h>
6787#endif
6788 Syntax error
6789_ACEOF
6790if ac_fn_cxx_try_cpp "$LINENO"; then :
6791
6792else
6793 # Broken: fails on valid input.
6794continue
6795fi
6796rm -f conftest.err conftest.i conftest.$ac_ext
6797
6798 # OK, works on sane cases. Now check whether nonexistent headers
6799 # can be detected and how.
6800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6801/* end confdefs.h. */
6802#include <ac_nonexistent.h>
6803_ACEOF
6804if ac_fn_cxx_try_cpp "$LINENO"; then :
6805 # Broken: success on invalid input.
6806continue
6807else
6808 # Passes both tests.
6809ac_preproc_ok=:
6810break
6811fi
6812rm -f conftest.err conftest.i conftest.$ac_ext
6813
6814done
6815# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6816rm -f conftest.i conftest.err conftest.$ac_ext
6817if $ac_preproc_ok; then :
6818
6819else
6820 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6821$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6822as_fn_error $? "C++ preprocessor \"$CXXCPP_FOR_BUILD\" fails sanity check
6823See \`config.log' for more details" "$LINENO" 5; }
6824fi
6825
6826ac_ext=c
6827ac_cpp='$CPP $CPPFLAGS_FOR_BUILD'
6828ac_build_compile='$CC -c $CFLAGS $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
6829ac_build_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
6830ac_compiler_gnu=$ac_cv_c_compiler_gnu
6831
6832
6833ac_tool_prefix=$save_ac_tool_prefix
6834cross_compiling=$save_cross_compiling
6835
6836
6837
6838
6839
6840if test -n "$ac_tool_prefix"; then
6841 for ac_prog in ar lib "link -lib"
6842 do
6843 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6844set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6846$as_echo_n "checking for $ac_word... " >&6; }
6847if ${ac_cv_prog_AR+:} false; then :
6848 $as_echo_n "(cached) " >&6
6849else
6850 if test -n "$AR"; then
6851 ac_cv_prog_AR="$AR" # Let the user override the test.
6852else
6853as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6854for as_dir in $PATH
6855do
6856 IFS=$as_save_IFS
6857 test -z "$as_dir" && as_dir=.
6858 for ac_exec_ext in '' $ac_executable_extensions; do
6859 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6860 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6862 break 2
6863 fi
6864done
6865 done
6866IFS=$as_save_IFS
6867
6868fi
6869fi
6870AR=$ac_cv_prog_AR
6871if test -n "$AR"; then
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6873$as_echo "$AR" >&6; }
6874else
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6876$as_echo "no" >&6; }
6877fi
6878
6879
6880 test -n "$AR" && break
6881 done
a243b558
JF
6882fi
6883if test -z "$AR"; then
6884 ac_ct_AR=$AR
6885 for ac_prog in ar lib "link -lib"
6886do
6887 # Extract the first word of "$ac_prog", so it can be a program name with args.
6888set dummy $ac_prog; ac_word=$2
6889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6890$as_echo_n "checking for $ac_word... " >&6; }
6891if ${ac_cv_prog_ac_ct_AR+:} false; then :
6892 $as_echo_n "(cached) " >&6
6893else
6894 if test -n "$ac_ct_AR"; then
6895 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6896else
6897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6898for as_dir in $PATH
6899do
6900 IFS=$as_save_IFS
6901 test -z "$as_dir" && as_dir=.
6902 for ac_exec_ext in '' $ac_executable_extensions; do
6903 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6904 ac_cv_prog_ac_ct_AR="$ac_prog"
6905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6906 break 2
6907 fi
6908done
6909 done
6910IFS=$as_save_IFS
6911
6912fi
6913fi
6914ac_ct_AR=$ac_cv_prog_ac_ct_AR
6915if test -n "$ac_ct_AR"; then
6916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6917$as_echo "$ac_ct_AR" >&6; }
6918else
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6920$as_echo "no" >&6; }
6921fi
6922
6923
6924 test -n "$ac_ct_AR" && break
6925done
6926
6927 if test "x$ac_ct_AR" = x; then
6928 AR="false"
9c60689e
DWT
6929 else
6930 case $cross_compiling:$ac_tool_warned in
6931yes:)
6932{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6933$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6934ac_tool_warned=yes ;;
35fa52c0 6935esac
a243b558 6936 AR=$ac_ct_AR
9c60689e 6937 fi
a243b558
JF
6938fi
6939
6940: ${AR=ar}
6941
6942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
6943$as_echo_n "checking the archiver ($AR) interface... " >&6; }
6944if ${am_cv_ar_interface+:} false; then :
6945 $as_echo_n "(cached) " >&6
9c60689e 6946else
a93f15c0
JF
6947 ac_ext=c
6948ac_cpp='$CPP $CPPFLAGS'
6949ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6950ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6951ac_compiler_gnu=$ac_cv_c_compiler_gnu
6952
6953 am_cv_ar_interface=ar
a243b558
JF
6954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6955/* end confdefs.h. */
6956int some_variable = 0;
6957_ACEOF
6958if ac_fn_c_try_compile "$LINENO"; then :
6959 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
6960 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
6961 (eval $am_ar_try) 2>&5
6962 ac_status=$?
6963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6964 test $ac_status = 0; }
6965 if test "$ac_status" -eq 0; then
6966 am_cv_ar_interface=ar
6967 else
6968 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
6969 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
6970 (eval $am_ar_try) 2>&5
6971 ac_status=$?
6972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6973 test $ac_status = 0; }
6974 if test "$ac_status" -eq 0; then
6975 am_cv_ar_interface=lib
6976 else
6977 am_cv_ar_interface=unknown
6978 fi
6979 fi
6980 rm -f conftest.lib libconftest.a
6981
35fa52c0 6982fi
a243b558 6983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a93f15c0
JF
6984 ac_ext=c
6985ac_cpp='$CPP $CPPFLAGS'
6986ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6987ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6988ac_compiler_gnu=$ac_cv_c_compiler_gnu
35fa52c0 6989
a243b558
JF
6990fi
6991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
6992$as_echo "$am_cv_ar_interface" >&6; }
35fa52c0 6993
a243b558
JF
6994case $am_cv_ar_interface in
6995ar)
6996 ;;
6997lib)
6998 # Microsoft lib, so override with the ar-lib wrapper script.
6999 # FIXME: It is wrong to rewrite AR.
7000 # But if we don't then we get into trouble of one sort or another.
7001 # A longer-term fix would be to have automake use am__AR in this case,
7002 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
7003 # similar.
7004 AR="$am_aux_dir/ar-lib $AR"
7005 ;;
7006unknown)
7007 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
7008 ;;
7009esac
35fa52c0 7010
35fa52c0 7011
35fa52c0 7012
a243b558
JF
7013case `pwd` in
7014 *\ * | *\ *)
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7016$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7017esac
35fa52c0
DWT
7018
7019
7020
9d54db95
JF
7021macro_version='2.4.6'
7022macro_revision='2.4.6'
35fa52c0
DWT
7023
7024
7025
7026
7027
7028
7029
7030
7031
8d20f0f1
JF
7032
7033
7034
7035
7036ltmain=$ac_aux_dir/ltmain.sh
7037
a243b558
JF
7038# Backslashify metacharacters that are still active within
7039# double-quoted strings.
7040sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9c60689e 7041
a243b558
JF
7042# Same as above, but do not quote variable references.
7043double_quote_subst='s/\(["`\\]\)/\\\1/g'
9c60689e 7044
a243b558
JF
7045# Sed substitution to delay expansion of an escaped shell variable in a
7046# double_quote_subst'ed string.
7047delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9c60689e 7048
a243b558
JF
7049# Sed substitution to delay expansion of an escaped single quote.
7050delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9c60689e 7051
a243b558
JF
7052# Sed substitution to avoid accidental globbing in evaled expressions
7053no_glob_subst='s/\*/\\\*/g'
35fa52c0 7054
a243b558
JF
7055ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7056ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7057ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
ee134472 7058
a243b558
JF
7059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7060$as_echo_n "checking how to print strings... " >&6; }
7061# Test print first, because it will be a builtin if present.
7062if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7063 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7064 ECHO='print -r --'
7065elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7066 ECHO='printf %s\n'
7067else
7068 # Use this function as a fallback that always works.
7069 func_fallback_echo ()
7070 {
7071 eval 'cat <<_LTECHO_EOF
7072$1
7073_LTECHO_EOF'
7074 }
7075 ECHO='func_fallback_echo'
ee134472
JF
7076fi
7077
a243b558
JF
7078# func_echo_all arg...
7079# Invoke $ECHO with all args, space-separated.
7080func_echo_all ()
7081{
7082 $ECHO ""
7083}
35fa52c0 7084
9d54db95 7085case $ECHO in
a243b558
JF
7086 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7087$as_echo "printf" >&6; } ;;
7088 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7089$as_echo "print -r" >&6; } ;;
7090 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7091$as_echo "cat" >&6; } ;;
7092esac
35fa52c0 7093
35fa52c0 7094
ee134472
JF
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
35fa52c0 7105
9c60689e 7106
a243b558
JF
7107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7108$as_echo_n "checking for a sed that does not truncate output... " >&6; }
7109if ${ac_cv_path_SED+:} false; then :
9c60689e
DWT
7110 $as_echo_n "(cached) " >&6
7111else
a243b558
JF
7112 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7113 for ac_i in 1 2 3 4 5 6 7; do
7114 ac_script="$ac_script$as_nl$ac_script"
7115 done
7116 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7117 { ac_script=; unset ac_script;}
7118 if test -z "$SED"; then
7119 ac_path_SED_found=false
7120 # Loop through the user's path and test for each of PROGNAME-LIST
7121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9c60689e
DWT
7122for as_dir in $PATH
7123do
7124 IFS=$as_save_IFS
7125 test -z "$as_dir" && as_dir=.
a243b558 7126 for ac_prog in sed gsed; do
9c60689e 7127 for ac_exec_ext in '' $ac_executable_extensions; do
a243b558
JF
7128 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7129 as_fn_executable_p "$ac_path_SED" || continue
7130# Check for GNU ac_path_SED and select it if it is found.
7131 # Check for GNU $ac_path_SED
7132case `"$ac_path_SED" --version 2>&1` in
7133*GNU*)
7134 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7135*)
7136 ac_count=0
7137 $as_echo_n 0123456789 >"conftest.in"
7138 while :
7139 do
7140 cat "conftest.in" "conftest.in" >"conftest.tmp"
7141 mv "conftest.tmp" "conftest.in"
7142 cp "conftest.in" "conftest.nl"
7143 $as_echo '' >> "conftest.nl"
7144 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7145 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7146 as_fn_arith $ac_count + 1 && ac_count=$as_val
7147 if test $ac_count -gt ${ac_path_SED_max-0}; then
7148 # Best one so far, save it but keep looking for a better one
7149 ac_cv_path_SED="$ac_path_SED"
7150 ac_path_SED_max=$ac_count
7151 fi
7152 # 10*(2^10) chars as input seems more than enough
7153 test $ac_count -gt 10 && break
35fa52c0 7154 done
a243b558
JF
7155 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7156esac
9c60689e 7157
a243b558
JF
7158 $ac_path_SED_found && break 3
7159 done
7160 done
9c60689e
DWT
7161 done
7162IFS=$as_save_IFS
a243b558
JF
7163 if test -z "$ac_cv_path_SED"; then
7164 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
9c60689e
DWT
7165 fi
7166else
a243b558 7167 ac_cv_path_SED=$SED
9c60689e
DWT
7168fi
7169
a243b558
JF
7170fi
7171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7172$as_echo "$ac_cv_path_SED" >&6; }
7173 SED="$ac_cv_path_SED"
7174 rm -f conftest.sed
9c60689e 7175
a243b558
JF
7176test -z "$SED" && SED=sed
7177Xsed="$SED -e 1s/^X//"
9c60689e 7178
ee134472 7179
ee134472 7180
9c60689e
DWT
7181
7182
7183
7184
7185
7186
7187
7188
a243b558
JF
7189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
7190$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
7191if ${ac_cv_path_GREP+:} false; then :
9c60689e
DWT
7192 $as_echo_n "(cached) " >&6
7193else
a243b558
JF
7194 if test -z "$GREP"; then
7195 ac_path_GREP_found=false
7196 # Loop through the user's path and test for each of PROGNAME-LIST
7197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7198for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9c60689e
DWT
7199do
7200 IFS=$as_save_IFS
7201 test -z "$as_dir" && as_dir=.
a243b558 7202 for ac_prog in grep ggrep; do
9c60689e 7203 for ac_exec_ext in '' $ac_executable_extensions; do
a243b558
JF
7204 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7205 as_fn_executable_p "$ac_path_GREP" || continue
7206# Check for GNU ac_path_GREP and select it if it is found.
7207 # Check for GNU $ac_path_GREP
7208case `"$ac_path_GREP" --version 2>&1` in
7209*GNU*)
7210 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7211*)
7212 ac_count=0
7213 $as_echo_n 0123456789 >"conftest.in"
7214 while :
7215 do
7216 cat "conftest.in" "conftest.in" >"conftest.tmp"
7217 mv "conftest.tmp" "conftest.in"
7218 cp "conftest.in" "conftest.nl"
7219 $as_echo 'GREP' >> "conftest.nl"
7220 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7221 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7222 as_fn_arith $ac_count + 1 && ac_count=$as_val
7223 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7224 # Best one so far, save it but keep looking for a better one
7225 ac_cv_path_GREP="$ac_path_GREP"
7226 ac_path_GREP_max=$ac_count
7227 fi
7228 # 10*(2^10) chars as input seems more than enough
7229 test $ac_count -gt 10 && break
7230 done
7231 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7232esac
9c60689e 7233
a243b558
JF
7234 $ac_path_GREP_found && break 3
7235 done
ee134472 7236 done
a243b558
JF
7237 done
7238IFS=$as_save_IFS
7239 if test -z "$ac_cv_path_GREP"; then
7240 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7241 fi
7242else
7243 ac_cv_path_GREP=$GREP
9c60689e 7244fi
a243b558
JF
7245
7246fi
7247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
7248$as_echo "$ac_cv_path_GREP" >&6; }
7249 GREP="$ac_cv_path_GREP"
7250
7251
7252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
7253$as_echo_n "checking for egrep... " >&6; }
7254if ${ac_cv_path_EGREP+:} false; then :
9c60689e
DWT
7255 $as_echo_n "(cached) " >&6
7256else
a243b558
JF
7257 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7258 then ac_cv_path_EGREP="$GREP -E"
7259 else
7260 if test -z "$EGREP"; then
7261 ac_path_EGREP_found=false
7262 # Loop through the user's path and test for each of PROGNAME-LIST
7263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7264for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9c60689e
DWT
7265do
7266 IFS=$as_save_IFS
7267 test -z "$as_dir" && as_dir=.
a243b558 7268 for ac_prog in egrep; do
9c60689e 7269 for ac_exec_ext in '' $ac_executable_extensions; do
a243b558
JF
7270 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7271 as_fn_executable_p "$ac_path_EGREP" || continue
7272# Check for GNU ac_path_EGREP and select it if it is found.
7273 # Check for GNU $ac_path_EGREP
7274case `"$ac_path_EGREP" --version 2>&1` in
7275*GNU*)
7276 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7277*)
7278 ac_count=0
7279 $as_echo_n 0123456789 >"conftest.in"
7280 while :
7281 do
7282 cat "conftest.in" "conftest.in" >"conftest.tmp"
7283 mv "conftest.tmp" "conftest.in"
7284 cp "conftest.in" "conftest.nl"
7285 $as_echo 'EGREP' >> "conftest.nl"
7286 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7287 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7288 as_fn_arith $ac_count + 1 && ac_count=$as_val
7289 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7290 # Best one so far, save it but keep looking for a better one
7291 ac_cv_path_EGREP="$ac_path_EGREP"
7292 ac_path_EGREP_max=$ac_count
7293 fi
7294 # 10*(2^10) chars as input seems more than enough
7295 test $ac_count -gt 10 && break
9c60689e 7296 done
a243b558
JF
7297 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7298esac
9c60689e 7299
a243b558
JF
7300 $ac_path_EGREP_found && break 3
7301 done
7302 done
7303 done
7304IFS=$as_save_IFS
7305 if test -z "$ac_cv_path_EGREP"; then
7306 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7307 fi
9c60689e 7308else
a243b558 7309 ac_cv_path_EGREP=$EGREP
9c60689e
DWT
7310fi
7311
a243b558
JF
7312 fi
7313fi
7314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
7315$as_echo "$ac_cv_path_EGREP" >&6; }
7316 EGREP="$ac_cv_path_EGREP"
ee134472 7317
ee134472 7318
a243b558
JF
7319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7320$as_echo_n "checking for fgrep... " >&6; }
7321if ${ac_cv_path_FGREP+:} false; then :
7322 $as_echo_n "(cached) " >&6
7323else
7324 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7325 then ac_cv_path_FGREP="$GREP -F"
7326 else
7327 if test -z "$FGREP"; then
7328 ac_path_FGREP_found=false
7329 # Loop through the user's path and test for each of PROGNAME-LIST
7330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7331for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7332do
7333 IFS=$as_save_IFS
7334 test -z "$as_dir" && as_dir=.
7335 for ac_prog in fgrep; do
7336 for ac_exec_ext in '' $ac_executable_extensions; do
7337 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7338 as_fn_executable_p "$ac_path_FGREP" || continue
7339# Check for GNU ac_path_FGREP and select it if it is found.
7340 # Check for GNU $ac_path_FGREP
7341case `"$ac_path_FGREP" --version 2>&1` in
7342*GNU*)
7343 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7344*)
7345 ac_count=0
7346 $as_echo_n 0123456789 >"conftest.in"
7347 while :
7348 do
7349 cat "conftest.in" "conftest.in" >"conftest.tmp"
7350 mv "conftest.tmp" "conftest.in"
7351 cp "conftest.in" "conftest.nl"
7352 $as_echo 'FGREP' >> "conftest.nl"
7353 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7354 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7355 as_fn_arith $ac_count + 1 && ac_count=$as_val
7356 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7357 # Best one so far, save it but keep looking for a better one
7358 ac_cv_path_FGREP="$ac_path_FGREP"
7359 ac_path_FGREP_max=$ac_count
7360 fi
7361 # 10*(2^10) chars as input seems more than enough
7362 test $ac_count -gt 10 && break
7363 done
7364 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9c60689e 7365esac
a243b558
JF
7366
7367 $ac_path_FGREP_found && break 3
7368 done
7369 done
7370 done
7371IFS=$as_save_IFS
7372 if test -z "$ac_cv_path_FGREP"; then
7373 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
ee134472 7374 fi
a243b558
JF
7375else
7376 ac_cv_path_FGREP=$FGREP
ee134472
JF
7377fi
7378
a243b558
JF
7379 fi
7380fi
7381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7382$as_echo "$ac_cv_path_FGREP" >&6; }
7383 FGREP="$ac_cv_path_FGREP"
ee134472
JF
7384
7385
a243b558 7386test -z "$GREP" && GREP=grep
ee134472
JF
7387
7388
7389
7390
7391
7392
7393
ee134472 7394
ee134472 7395
ee134472 7396
ee134472 7397
ee134472 7398
ee134472
JF
7399
7400
7401
7402
7403
7404
7405
a243b558
JF
7406# Check whether --with-gnu-ld was given.
7407if test "${with_gnu_ld+set}" = set; then :
9d54db95 7408 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
a243b558
JF
7409else
7410 with_gnu_ld=no
7411fi
7412
7413ac_prog=ld
9d54db95 7414if test yes = "$GCC"; then
a243b558
JF
7415 # Check if gcc -print-prog-name=ld gives a path.
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7417$as_echo_n "checking for ld used by $CC... " >&6; }
7418 case $host in
7419 *-*-mingw*)
9d54db95 7420 # gcc leaves a trailing carriage return, which upsets mingw
a243b558
JF
7421 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7422 *)
7423 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7424 esac
7425 case $ac_prog in
7426 # Accept absolute paths.
7427 [\\/]* | ?:[\\/]*)
7428 re_direlt='/[^/][^/]*/\.\./'
7429 # Canonicalize the pathname of ld
7430 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7431 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7432 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7433 done
9d54db95 7434 test -z "$LD" && LD=$ac_prog
a243b558
JF
7435 ;;
7436 "")
7437 # If it fails, then pretend we aren't using GCC.
7438 ac_prog=ld
7439 ;;
7440 *)
7441 # If it is relative, then search for the first ld in PATH.
7442 with_gnu_ld=unknown
7443 ;;
7444 esac
9d54db95 7445elif test yes = "$with_gnu_ld"; then
a243b558
JF
7446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7447$as_echo_n "checking for GNU ld... " >&6; }
7448else
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7450$as_echo_n "checking for non-GNU ld... " >&6; }
7451fi
7452if ${lt_cv_path_LD+:} false; then :
7453 $as_echo_n "(cached) " >&6
7454else
7455 if test -z "$LD"; then
9d54db95 7456 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
a243b558 7457 for ac_dir in $PATH; do
9d54db95 7458 IFS=$lt_save_ifs
a243b558
JF
7459 test -z "$ac_dir" && ac_dir=.
7460 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9d54db95 7461 lt_cv_path_LD=$ac_dir/$ac_prog
a243b558
JF
7462 # Check to see if the program is GNU ld. I'd rather use --version,
7463 # but apparently some variants of GNU ld only accept -v.
7464 # Break only if it was the GNU/non-GNU ld that we prefer.
7465 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7466 *GNU* | *'with BFD'*)
9d54db95 7467 test no != "$with_gnu_ld" && break
a243b558
JF
7468 ;;
7469 *)
9d54db95 7470 test yes != "$with_gnu_ld" && break
a243b558
JF
7471 ;;
7472 esac
7473 fi
7474 done
9d54db95 7475 IFS=$lt_save_ifs
a243b558 7476else
9d54db95 7477 lt_cv_path_LD=$LD # Let the user override the test with a path.
a243b558
JF
7478fi
7479fi
7480
9d54db95 7481LD=$lt_cv_path_LD
a243b558
JF
7482if test -n "$LD"; then
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7484$as_echo "$LD" >&6; }
7485else
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7487$as_echo "no" >&6; }
7488fi
7489test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7491$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7492if ${lt_cv_prog_gnu_ld+:} false; then :
7493 $as_echo_n "(cached) " >&6
7494else
7495 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7496case `$LD -v 2>&1 </dev/null` in
7497*GNU* | *'with BFD'*)
7498 lt_cv_prog_gnu_ld=yes
7499 ;;
7500*)
7501 lt_cv_prog_gnu_ld=no
7502 ;;
7503esac
7504fi
7505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7506$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7507with_gnu_ld=$lt_cv_prog_gnu_ld
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7518$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7519if ${lt_cv_path_NM+:} false; then :
7520 $as_echo_n "(cached) " >&6
7521else
7522 if test -n "$NM"; then
7523 # Let the user override the test.
9d54db95 7524 lt_cv_path_NM=$NM
a243b558 7525else
9d54db95 7526 lt_nm_to_check=${ac_tool_prefix}nm
a243b558
JF
7527 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7528 lt_nm_to_check="$lt_nm_to_check nm"
7529 fi
7530 for lt_tmp_nm in $lt_nm_to_check; do
9d54db95 7531 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
a243b558 7532 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
9d54db95 7533 IFS=$lt_save_ifs
a243b558 7534 test -z "$ac_dir" && ac_dir=.
9d54db95
JF
7535 tmp_nm=$ac_dir/$lt_tmp_nm
7536 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
a243b558 7537 # Check to see if the nm accepts a BSD-compat flag.
9d54db95 7538 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
a243b558
JF
7539 # nm: unknown option "B" ignored
7540 # Tru64's nm complains that /dev/null is an invalid object file
9d54db95
JF
7541 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
7542 case $build_os in
7543 mingw*) lt_bad_file=conftest.nm/nofile ;;
7544 *) lt_bad_file=/dev/null ;;
7545 esac
7546 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
7547 *$lt_bad_file* | *'Invalid file or object type'*)
a243b558 7548 lt_cv_path_NM="$tmp_nm -B"
9d54db95 7549 break 2
a243b558
JF
7550 ;;
7551 *)
7552 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7553 */dev/null*)
7554 lt_cv_path_NM="$tmp_nm -p"
9d54db95 7555 break 2
a243b558
JF
7556 ;;
7557 *)
7558 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7559 continue # so that we can try to find one that supports BSD flags
7560 ;;
7561 esac
7562 ;;
7563 esac
7564 fi
7565 done
9d54db95 7566 IFS=$lt_save_ifs
a243b558
JF
7567 done
7568 : ${lt_cv_path_NM=no}
7569fi
7570fi
7571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7572$as_echo "$lt_cv_path_NM" >&6; }
9d54db95
JF
7573if test no != "$lt_cv_path_NM"; then
7574 NM=$lt_cv_path_NM
a243b558
JF
7575else
7576 # Didn't find any BSD compatible name lister, look for dumpbin.
7577 if test -n "$DUMPBIN"; then :
7578 # Let the user override the test.
7579 else
7580 if test -n "$ac_tool_prefix"; then
7581 for ac_prog in dumpbin "link -dump"
7582 do
7583 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7584set dummy $ac_tool_prefix$ac_prog; ac_word=$2
ee134472
JF
7585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7586$as_echo_n "checking for $ac_word... " >&6; }
a243b558 7587if ${ac_cv_prog_DUMPBIN+:} false; then :
ee134472
JF
7588 $as_echo_n "(cached) " >&6
7589else
a243b558
JF
7590 if test -n "$DUMPBIN"; then
7591 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
ee134472
JF
7592else
7593as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7594for as_dir in $PATH
7595do
7596 IFS=$as_save_IFS
7597 test -z "$as_dir" && as_dir=.
7598 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 7599 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 7600 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
ee134472
JF
7601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7602 break 2
7603 fi
7604done
7605 done
7606IFS=$as_save_IFS
7607
7608fi
7609fi
a243b558
JF
7610DUMPBIN=$ac_cv_prog_DUMPBIN
7611if test -n "$DUMPBIN"; then
7612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7613$as_echo "$DUMPBIN" >&6; }
ee134472
JF
7614else
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7616$as_echo "no" >&6; }
7617fi
7618
7619
a243b558
JF
7620 test -n "$DUMPBIN" && break
7621 done
ee134472 7622fi
a243b558
JF
7623if test -z "$DUMPBIN"; then
7624 ac_ct_DUMPBIN=$DUMPBIN
7625 for ac_prog in dumpbin "link -dump"
7626do
7627 # Extract the first word of "$ac_prog", so it can be a program name with args.
7628set dummy $ac_prog; ac_word=$2
ee134472
JF
7629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7630$as_echo_n "checking for $ac_word... " >&6; }
a243b558 7631if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
ee134472
JF
7632 $as_echo_n "(cached) " >&6
7633else
a243b558
JF
7634 if test -n "$ac_ct_DUMPBIN"; then
7635 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
ee134472
JF
7636else
7637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7638for as_dir in $PATH
7639do
7640 IFS=$as_save_IFS
7641 test -z "$as_dir" && as_dir=.
7642 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 7643 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 7644 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
ee134472
JF
7645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7646 break 2
7647 fi
7648done
7649 done
7650IFS=$as_save_IFS
7651
7652fi
7653fi
a243b558
JF
7654ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7655if test -n "$ac_ct_DUMPBIN"; then
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7657$as_echo "$ac_ct_DUMPBIN" >&6; }
ee134472
JF
7658else
7659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7660$as_echo "no" >&6; }
7661fi
7662
a243b558
JF
7663
7664 test -n "$ac_ct_DUMPBIN" && break
7665done
7666
7667 if test "x$ac_ct_DUMPBIN" = x; then
7668 DUMPBIN=":"
ee134472
JF
7669 else
7670 case $cross_compiling:$ac_tool_warned in
7671yes:)
7672{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7673$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7674ac_tool_warned=yes ;;
7675esac
a243b558 7676 DUMPBIN=$ac_ct_DUMPBIN
9c60689e 7677 fi
9c60689e
DWT
7678fi
7679
9d54db95 7680 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
a243b558 7681 *COFF*)
9d54db95 7682 DUMPBIN="$DUMPBIN -symbols -headers"
a243b558
JF
7683 ;;
7684 *)
7685 DUMPBIN=:
7686 ;;
7687 esac
7688 fi
9c60689e 7689
9d54db95
JF
7690 if test : != "$DUMPBIN"; then
7691 NM=$DUMPBIN
a243b558
JF
7692 fi
7693fi
7694test -z "$NM" && NM=nm
9c60689e
DWT
7695
7696
7697
7698
7699
a243b558
JF
7700
7701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7702$as_echo_n "checking the name lister ($NM) interface... " >&6; }
7703if ${lt_cv_nm_interface+:} false; then :
9c60689e
DWT
7704 $as_echo_n "(cached) " >&6
7705else
a243b558
JF
7706 lt_cv_nm_interface="BSD nm"
7707 echo "int some_variable = 0;" > conftest.$ac_ext
7708 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7709 (eval "$ac_compile" 2>conftest.err)
7710 cat conftest.err >&5
7711 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7712 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7713 cat conftest.err >&5
7714 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7715 cat conftest.out >&5
7716 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7717 lt_cv_nm_interface="MS dumpbin"
9c60689e 7718 fi
00a96142 7719 rm -rf conftest*
9c60689e 7720fi
a243b558
JF
7721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7722$as_echo "$lt_cv_nm_interface" >&6; }
7723
7724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7725$as_echo_n "checking whether ln -s works... " >&6; }
7726LN_S=$as_ln_s
7727if test "$LN_S" = "ln -s"; then
7728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7729$as_echo "yes" >&6; }
9c60689e 7730else
a243b558
JF
7731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7732$as_echo "no, using $LN_S" >&6; }
9c60689e
DWT
7733fi
7734
a243b558
JF
7735# find the maximum length of command line arguments
7736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7737$as_echo_n "checking the maximum length of command line arguments... " >&6; }
7738if ${lt_cv_sys_max_cmd_len+:} false; then :
9c60689e
DWT
7739 $as_echo_n "(cached) " >&6
7740else
a243b558 7741 i=0
9d54db95 7742 teststring=ABCD
9c60689e 7743
a243b558
JF
7744 case $build_os in
7745 msdosdjgpp*)
7746 # On DJGPP, this test can blow up pretty badly due to problems in libc
7747 # (any single argument exceeding 2000 bytes causes a buffer overrun
7748 # during glob expansion). Even if it were fixed, the result of this
7749 # check would be larger than it should be.
7750 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7751 ;;
9c60689e 7752
a243b558
JF
7753 gnu*)
7754 # Under GNU Hurd, this test is not required because there is
7755 # no limit to the length of command line arguments.
7756 # Libtool will interpret -1 as no limit whatsoever
7757 lt_cv_sys_max_cmd_len=-1;
7758 ;;
9c60689e 7759
a243b558
JF
7760 cygwin* | mingw* | cegcc*)
7761 # On Win9x/ME, this test blows up -- it succeeds, but takes
7762 # about 5 minutes as the teststring grows exponentially.
7763 # Worse, since 9x/ME are not pre-emptively multitasking,
7764 # you end up with a "frozen" computer, even though with patience
7765 # the test eventually succeeds (with a max line length of 256k).
7766 # Instead, let's just punt: use the minimum linelength reported by
7767 # all of the supported platforms: 8192 (on NT/2K/XP).
7768 lt_cv_sys_max_cmd_len=8192;
7769 ;;
9c60689e 7770
a243b558
JF
7771 mint*)
7772 # On MiNT this can take a long time and run out of memory.
7773 lt_cv_sys_max_cmd_len=8192;
7774 ;;
9c60689e 7775
a243b558
JF
7776 amigaos*)
7777 # On AmigaOS with pdksh, this test takes hours, literally.
7778 # So we just punt and use a minimum line length of 8192.
7779 lt_cv_sys_max_cmd_len=8192;
7780 ;;
9c60689e 7781
9d54db95 7782 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
a243b558
JF
7783 # This has been around since 386BSD, at least. Likely further.
7784 if test -x /sbin/sysctl; then
7785 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7786 elif test -x /usr/sbin/sysctl; then
7787 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7788 else
7789 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7790 fi
7791 # And add a safety zone
7792 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7793 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7794 ;;
9c60689e 7795
a243b558
JF
7796 interix*)
7797 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7798 lt_cv_sys_max_cmd_len=196608
7799 ;;
9c60689e 7800
a243b558
JF
7801 os2*)
7802 # The test takes a long time on OS/2.
7803 lt_cv_sys_max_cmd_len=8192
7804 ;;
9c60689e 7805
a243b558
JF
7806 osf*)
7807 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7808 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7809 # nice to cause kernel panics so lets avoid the loop below.
7810 # First set a reasonable default.
7811 lt_cv_sys_max_cmd_len=16384
7812 #
7813 if test -x /sbin/sysconfig; then
7814 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7815 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7816 esac
7817 fi
7818 ;;
7819 sco3.2v5*)
7820 lt_cv_sys_max_cmd_len=102400
7821 ;;
7822 sysv5* | sco5v6* | sysv4.2uw2*)
7823 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7824 if test -n "$kargmax"; then
7825 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7826 else
7827 lt_cv_sys_max_cmd_len=32768
7828 fi
9c60689e
DWT
7829 ;;
7830 *)
a243b558 7831 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
9d54db95
JF
7832 if test -n "$lt_cv_sys_max_cmd_len" && \
7833 test undefined != "$lt_cv_sys_max_cmd_len"; then
a243b558
JF
7834 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7835 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7836 else
7837 # Make teststring a little bigger before we do anything with it.
7838 # a 1K string should be a reasonable start.
9d54db95 7839 for i in 1 2 3 4 5 6 7 8; do
a243b558
JF
7840 teststring=$teststring$teststring
7841 done
7842 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7843 # If test is not a shell built-in, we'll probably end up computing a
7844 # maximum length that is only half of the actual maximum length, but
7845 # we can't tell.
9d54db95 7846 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
a243b558 7847 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
9d54db95 7848 test 17 != "$i" # 1/2 MB should be enough
a243b558
JF
7849 do
7850 i=`expr $i + 1`
7851 teststring=$teststring$teststring
7852 done
7853 # Only check the string length outside the loop.
7854 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7855 teststring=
7856 # Add a significant safety factor because C++ compilers can tack on
7857 # massive amounts of additional arguments before passing them to the
7858 # linker. It appears as though 1/2 is a usable value.
7859 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7860 fi
9c60689e
DWT
7861 ;;
7862 esac
ee134472 7863
a243b558 7864fi
ee134472 7865
9d54db95 7866if test -n "$lt_cv_sys_max_cmd_len"; then
a243b558
JF
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7868$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7869else
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7871$as_echo "none" >&6; }
7872fi
7873max_cmd_len=$lt_cv_sys_max_cmd_len
ee134472
JF
7874
7875
9c60689e
DWT
7876
7877
7878
7879
a243b558
JF
7880: ${CP="cp -f"}
7881: ${MV="mv -f"}
7882: ${RM="rm -f"}
9c60689e 7883
a243b558
JF
7884if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7885 lt_unset=unset
7886else
7887 lt_unset=false
7888fi
9c60689e
DWT
7889
7890
7891
7892
7893
a243b558
JF
7894# test EBCDIC or ASCII
7895case `echo X|tr X '\101'` in
7896 A) # ASCII based system
7897 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7898 lt_SP2NL='tr \040 \012'
7899 lt_NL2SP='tr \015\012 \040\040'
7900 ;;
7901 *) # EBCDIC based system
7902 lt_SP2NL='tr \100 \n'
7903 lt_NL2SP='tr \r\n \100\100'
7904 ;;
7905esac
9c60689e
DWT
7906
7907
7908
7909
7910
7911
7912
7913
7914
a243b558
JF
7915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7916$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7917if ${lt_cv_to_host_file_cmd+:} false; then :
7918 $as_echo_n "(cached) " >&6
7919else
7920 case $host in
7921 *-*-mingw* )
7922 case $build in
7923 *-*-mingw* ) # actually msys
7924 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7925 ;;
7926 *-*-cygwin* )
7927 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7928 ;;
7929 * ) # otherwise, assume *nix
7930 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7931 ;;
7932 esac
7933 ;;
7934 *-*-cygwin* )
7935 case $build in
7936 *-*-mingw* ) # actually msys
7937 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7938 ;;
7939 *-*-cygwin* )
7940 lt_cv_to_host_file_cmd=func_convert_file_noop
7941 ;;
7942 * ) # otherwise, assume *nix
7943 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7944 ;;
7945 esac
7946 ;;
7947 * ) # unhandled hosts (and "normal" native builds)
7948 lt_cv_to_host_file_cmd=func_convert_file_noop
7949 ;;
7950esac
9c60689e 7951
a243b558 7952fi
9c60689e 7953
a243b558
JF
7954to_host_file_cmd=$lt_cv_to_host_file_cmd
7955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7956$as_echo "$lt_cv_to_host_file_cmd" >&6; }
9c60689e
DWT
7957
7958
7959
7960
7961
a243b558
JF
7962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7963$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7964if ${lt_cv_to_tool_file_cmd+:} false; then :
7965 $as_echo_n "(cached) " >&6
7966else
7967 #assume ordinary cross tools, or native build.
7968lt_cv_to_tool_file_cmd=func_convert_file_noop
7969case $host in
7970 *-*-mingw* )
7971 case $build in
7972 *-*-mingw* ) # actually msys
7973 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7974 ;;
7975 esac
7976 ;;
7977esac
9c60689e 7978
a243b558 7979fi
9c60689e 7980
a243b558
JF
7981to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7983$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
9c60689e 7984
9c60689e 7985
9c60689e 7986
9c60689e
DWT
7987
7988
a243b558
JF
7989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7990$as_echo_n "checking for $LD option to reload object files... " >&6; }
7991if ${lt_cv_ld_reload_flag+:} false; then :
9c60689e
DWT
7992 $as_echo_n "(cached) " >&6
7993else
a243b558
JF
7994 lt_cv_ld_reload_flag='-r'
7995fi
7996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7997$as_echo "$lt_cv_ld_reload_flag" >&6; }
7998reload_flag=$lt_cv_ld_reload_flag
7999case $reload_flag in
8000"" | " "*) ;;
8001*) reload_flag=" $reload_flag" ;;
8002esac
8003reload_cmds='$LD$reload_flag -o $output$reload_objs'
9c60689e 8004case $host_os in
a243b558 8005 cygwin* | mingw* | pw32* | cegcc*)
9d54db95 8006 if test yes != "$GCC"; then
a243b558
JF
8007 reload_cmds=false
8008 fi
8009 ;;
8010 darwin*)
9d54db95
JF
8011 if test yes = "$GCC"; then
8012 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
a243b558
JF
8013 else
8014 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8015 fi
8016 ;;
9c60689e
DWT
8017esac
8018
9c60689e 8019
9c60689e 8020
9c60689e 8021
9c60689e 8022
9c60689e 8023
9c60689e 8024
9c60689e 8025
9c60689e 8026
a243b558
JF
8027if test -n "$ac_tool_prefix"; then
8028 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8029set dummy ${ac_tool_prefix}objdump; ac_word=$2
8030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8031$as_echo_n "checking for $ac_word... " >&6; }
8032if ${ac_cv_prog_OBJDUMP+:} false; then :
8033 $as_echo_n "(cached) " >&6
8034else
8035 if test -n "$OBJDUMP"; then
8036 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8037else
8038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8039for as_dir in $PATH
8040do
8041 IFS=$as_save_IFS
8042 test -z "$as_dir" && as_dir=.
8043 for ac_exec_ext in '' $ac_executable_extensions; do
8044 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8045 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8047 break 2
8048 fi
8049done
8050 done
8051IFS=$as_save_IFS
9c60689e 8052
a243b558
JF
8053fi
8054fi
8055OBJDUMP=$ac_cv_prog_OBJDUMP
8056if test -n "$OBJDUMP"; then
8057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8058$as_echo "$OBJDUMP" >&6; }
8059else
8060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8061$as_echo "no" >&6; }
8062fi
9c60689e 8063
9c60689e 8064
a243b558
JF
8065fi
8066if test -z "$ac_cv_prog_OBJDUMP"; then
8067 ac_ct_OBJDUMP=$OBJDUMP
8068 # Extract the first word of "objdump", so it can be a program name with args.
8069set dummy objdump; ac_word=$2
8070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8071$as_echo_n "checking for $ac_word... " >&6; }
8072if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8073 $as_echo_n "(cached) " >&6
8074else
8075 if test -n "$ac_ct_OBJDUMP"; then
8076 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8077else
8078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8079for as_dir in $PATH
8080do
8081 IFS=$as_save_IFS
8082 test -z "$as_dir" && as_dir=.
8083 for ac_exec_ext in '' $ac_executable_extensions; do
8084 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8085 ac_cv_prog_ac_ct_OBJDUMP="objdump"
8086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8087 break 2
9c60689e
DWT
8088 fi
8089done
a243b558
JF
8090 done
8091IFS=$as_save_IFS
9c60689e
DWT
8092
8093fi
9c60689e 8094fi
a243b558
JF
8095ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8096if test -n "$ac_ct_OBJDUMP"; then
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8098$as_echo "$ac_ct_OBJDUMP" >&6; }
9c60689e 8099else
a243b558
JF
8100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8101$as_echo "no" >&6; }
9c60689e
DWT
8102fi
8103
a243b558
JF
8104 if test "x$ac_ct_OBJDUMP" = x; then
8105 OBJDUMP="false"
8106 else
8107 case $cross_compiling:$ac_tool_warned in
8108yes:)
8109{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8110$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8111ac_tool_warned=yes ;;
8112esac
8113 OBJDUMP=$ac_ct_OBJDUMP
8114 fi
8115else
8116 OBJDUMP="$ac_cv_prog_OBJDUMP"
ee134472
JF
8117fi
8118
a243b558 8119test -z "$OBJDUMP" && OBJDUMP=objdump
ee134472
JF
8120
8121
8122
8123
8124
8125
8126
8127
8128
a243b558
JF
8129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8130$as_echo_n "checking how to recognize dependent libraries... " >&6; }
8131if ${lt_cv_deplibs_check_method+:} false; then :
8132 $as_echo_n "(cached) " >&6
8133else
8134 lt_cv_file_magic_cmd='$MAGIC_CMD'
8135lt_cv_file_magic_test_file=
8136lt_cv_deplibs_check_method='unknown'
8137# Need to set the preceding variable on all platforms that support
8138# interlibrary dependencies.
8139# 'none' -- dependencies not supported.
9d54db95 8140# 'unknown' -- same as none, but documents that we really don't know.
a243b558
JF
8141# 'pass_all' -- all dependencies passed with no checks.
8142# 'test_compile' -- check by making test program.
8143# 'file_magic [[regex]]' -- check by looking for files in library path
9d54db95
JF
8144# that responds to the $file_magic_cmd with a given extended regex.
8145# If you have 'file' or equivalent on your system and you're not sure
8146# whether 'pass_all' will *always* work, you probably want this one.
9c60689e 8147
a243b558
JF
8148case $host_os in
8149aix[4-9]*)
8150 lt_cv_deplibs_check_method=pass_all
8151 ;;
9c60689e 8152
a243b558
JF
8153beos*)
8154 lt_cv_deplibs_check_method=pass_all
8155 ;;
9c60689e 8156
a243b558
JF
8157bsdi[45]*)
8158 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8159 lt_cv_file_magic_cmd='/usr/bin/file -L'
8160 lt_cv_file_magic_test_file=/shlib/libc.so
8161 ;;
9c60689e 8162
a243b558
JF
8163cygwin*)
8164 # func_win32_libid is a shell function defined in ltmain.sh
8165 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8166 lt_cv_file_magic_cmd='func_win32_libid'
8167 ;;
9c60689e 8168
a243b558
JF
8169mingw* | pw32*)
8170 # Base MSYS/MinGW do not provide the 'file' command needed by
8171 # func_win32_libid shell function, so use a weaker test based on 'objdump',
8172 # unless we find 'file', for example because we are cross-compiling.
9d54db95 8173 if ( file / ) >/dev/null 2>&1; then
a243b558
JF
8174 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8175 lt_cv_file_magic_cmd='func_win32_libid'
8176 else
8177 # Keep this pattern in sync with the one in func_win32_libid.
8178 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8179 lt_cv_file_magic_cmd='$OBJDUMP -f'
8180 fi
8181 ;;
9c60689e 8182
a243b558
JF
8183cegcc*)
8184 # use the weaker test based on 'objdump'. See mingw*.
8185 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8186 lt_cv_file_magic_cmd='$OBJDUMP -f'
8187 ;;
9c60689e 8188
a243b558
JF
8189darwin* | rhapsody*)
8190 lt_cv_deplibs_check_method=pass_all
8191 ;;
9c60689e 8192
a243b558
JF
8193freebsd* | dragonfly*)
8194 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8195 case $host_cpu in
8196 i*86 )
8197 # Not sure whether the presence of OpenBSD here was a mistake.
8198 # Let's accept both of them until this is cleared up.
8199 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8200 lt_cv_file_magic_cmd=/usr/bin/file
8201 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8202 ;;
8203 esac
8204 else
8205 lt_cv_deplibs_check_method=pass_all
8206 fi
8207 ;;
9c60689e 8208
a243b558
JF
8209haiku*)
8210 lt_cv_deplibs_check_method=pass_all
8211 ;;
9c60689e 8212
a243b558
JF
8213hpux10.20* | hpux11*)
8214 lt_cv_file_magic_cmd=/usr/bin/file
8215 case $host_cpu in
8216 ia64*)
8217 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8218 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8219 ;;
8220 hppa*64*)
8221 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]'
8222 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8223 ;;
8224 *)
8225 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8226 lt_cv_file_magic_test_file=/usr/lib/libc.sl
8227 ;;
8228 esac
8229 ;;
9c60689e 8230
a243b558
JF
8231interix[3-9]*)
8232 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8233 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8234 ;;
9c60689e 8235
a243b558
JF
8236irix5* | irix6* | nonstopux*)
8237 case $LD in
8238 *-32|*"-32 ") libmagic=32-bit;;
8239 *-n32|*"-n32 ") libmagic=N32;;
8240 *-64|*"-64 ") libmagic=64-bit;;
8241 *) libmagic=never-match;;
8242 esac
8243 lt_cv_deplibs_check_method=pass_all
8244 ;;
9c60689e 8245
a243b558 8246# This must be glibc/ELF.
9d54db95 8247linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
a243b558
JF
8248 lt_cv_deplibs_check_method=pass_all
8249 ;;
9c60689e 8250
a243b558
JF
8251netbsd*)
8252 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8253 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8254 else
8255 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8256 fi
8257 ;;
9c60689e 8258
a243b558
JF
8259newos6*)
8260 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8261 lt_cv_file_magic_cmd=/usr/bin/file
8262 lt_cv_file_magic_test_file=/usr/lib/libnls.so
8263 ;;
9c60689e 8264
a243b558
JF
8265*nto* | *qnx*)
8266 lt_cv_deplibs_check_method=pass_all
8267 ;;
9c60689e 8268
9d54db95
JF
8269openbsd* | bitrig*)
8270 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
a243b558
JF
8271 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8272 else
8273 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8274 fi
8275 ;;
9c60689e 8276
a243b558
JF
8277osf3* | osf4* | osf5*)
8278 lt_cv_deplibs_check_method=pass_all
8279 ;;
9c60689e 8280
a243b558
JF
8281rdos*)
8282 lt_cv_deplibs_check_method=pass_all
9c60689e 8283 ;;
a243b558
JF
8284
8285solaris*)
8286 lt_cv_deplibs_check_method=pass_all
9c60689e
DWT
8287 ;;
8288
a243b558
JF
8289sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8290 lt_cv_deplibs_check_method=pass_all
9c60689e
DWT
8291 ;;
8292
a243b558
JF
8293sysv4 | sysv4.3*)
8294 case $host_vendor in
8295 motorola)
8296 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]'
8297 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8298 ;;
8299 ncr)
8300 lt_cv_deplibs_check_method=pass_all
8301 ;;
8302 sequent)
8303 lt_cv_file_magic_cmd='/bin/file'
8304 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8305 ;;
8306 sni)
8307 lt_cv_file_magic_cmd='/bin/file'
8308 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8309 lt_cv_file_magic_test_file=/lib/libc.so
8310 ;;
8311 siemens)
8312 lt_cv_deplibs_check_method=pass_all
8313 ;;
8314 pc)
8315 lt_cv_deplibs_check_method=pass_all
8316 ;;
8317 esac
8318 ;;
9c60689e 8319
a243b558
JF
8320tpf*)
8321 lt_cv_deplibs_check_method=pass_all
8322 ;;
9d54db95
JF
8323os2*)
8324 lt_cv_deplibs_check_method=pass_all
8325 ;;
a243b558 8326esac
9c60689e 8327
a243b558
JF
8328fi
8329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8330$as_echo "$lt_cv_deplibs_check_method" >&6; }
9c60689e 8331
a243b558
JF
8332file_magic_glob=
8333want_nocaseglob=no
8334if test "$build" = "$host"; then
8335 case $host_os in
8336 mingw* | pw32*)
8337 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8338 want_nocaseglob=yes
8339 else
8340 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8341 fi
8342 ;;
8343 esac
9c60689e 8344fi
9c60689e 8345
a243b558
JF
8346file_magic_cmd=$lt_cv_file_magic_cmd
8347deplibs_check_method=$lt_cv_deplibs_check_method
8348test -z "$deplibs_check_method" && deplibs_check_method=unknown
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
9c60689e 8369
9c60689e 8370
ee134472 8371if test -n "$ac_tool_prefix"; then
a243b558
JF
8372 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8373set dummy ${ac_tool_prefix}dlltool; ac_word=$2
ee134472
JF
8374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8375$as_echo_n "checking for $ac_word... " >&6; }
a243b558 8376if ${ac_cv_prog_DLLTOOL+:} false; then :
ee134472
JF
8377 $as_echo_n "(cached) " >&6
8378else
a243b558
JF
8379 if test -n "$DLLTOOL"; then
8380 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
ee134472
JF
8381else
8382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8383for as_dir in $PATH
8384do
8385 IFS=$as_save_IFS
8386 test -z "$as_dir" && as_dir=.
8387 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 8388 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 8389 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
ee134472
JF
8390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8391 break 2
8392 fi
8393done
8394 done
8395IFS=$as_save_IFS
8396
8397fi
8398fi
a243b558
JF
8399DLLTOOL=$ac_cv_prog_DLLTOOL
8400if test -n "$DLLTOOL"; then
8401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8402$as_echo "$DLLTOOL" >&6; }
ee134472
JF
8403else
8404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8405$as_echo "no" >&6; }
8406fi
8407
8408
8409fi
a243b558
JF
8410if test -z "$ac_cv_prog_DLLTOOL"; then
8411 ac_ct_DLLTOOL=$DLLTOOL
8412 # Extract the first word of "dlltool", so it can be a program name with args.
8413set dummy dlltool; ac_word=$2
ee134472
JF
8414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8415$as_echo_n "checking for $ac_word... " >&6; }
a243b558 8416if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
ee134472
JF
8417 $as_echo_n "(cached) " >&6
8418else
a243b558
JF
8419 if test -n "$ac_ct_DLLTOOL"; then
8420 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
ee134472
JF
8421else
8422as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8423for as_dir in $PATH
8424do
8425 IFS=$as_save_IFS
8426 test -z "$as_dir" && as_dir=.
8427 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 8428 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 8429 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
ee134472
JF
8430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8431 break 2
8432 fi
8433done
8434 done
8435IFS=$as_save_IFS
8436
8437fi
8438fi
a243b558
JF
8439ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8440if test -n "$ac_ct_DLLTOOL"; then
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8442$as_echo "$ac_ct_DLLTOOL" >&6; }
ee134472
JF
8443else
8444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8445$as_echo "no" >&6; }
8446fi
8447
a243b558
JF
8448 if test "x$ac_ct_DLLTOOL" = x; then
8449 DLLTOOL="false"
ee134472
JF
8450 else
8451 case $cross_compiling:$ac_tool_warned in
8452yes:)
8453{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8454$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8455ac_tool_warned=yes ;;
8456esac
a243b558 8457 DLLTOOL=$ac_ct_DLLTOOL
ee134472
JF
8458 fi
8459else
a243b558 8460 DLLTOOL="$ac_cv_prog_DLLTOOL"
ee134472
JF
8461fi
8462
a243b558
JF
8463test -z "$DLLTOOL" && DLLTOOL=dlltool
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8475$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
8476if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
ee134472
JF
8477 $as_echo_n "(cached) " >&6
8478else
a243b558
JF
8479 lt_cv_sharedlib_from_linklib_cmd='unknown'
8480
8481case $host_os in
8482cygwin* | mingw* | pw32* | cegcc*)
9d54db95
JF
8483 # two different shell functions defined in ltmain.sh;
8484 # decide which one to use based on capabilities of $DLLTOOL
a243b558
JF
8485 case `$DLLTOOL --help 2>&1` in
8486 *--identify-strict*)
8487 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8488 ;;
8489 *)
8490 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8491 ;;
8492 esac
8493 ;;
8494*)
8495 # fallback: assume linklib IS sharedlib
9d54db95 8496 lt_cv_sharedlib_from_linklib_cmd=$ECHO
a243b558
JF
8497 ;;
8498esac
8499
ee134472 8500fi
a243b558
JF
8501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8502$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8503sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8504test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
ee134472
JF
8505
8506
8507
8508
8509
9c60689e 8510
a243b558
JF
8511
8512if test -n "$ac_tool_prefix"; then
8513 for ac_prog in ar
8514 do
8515 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8516set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9c60689e
DWT
8517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8518$as_echo_n "checking for $ac_word... " >&6; }
a243b558 8519if ${ac_cv_prog_AR+:} false; then :
9c60689e
DWT
8520 $as_echo_n "(cached) " >&6
8521else
a243b558
JF
8522 if test -n "$AR"; then
8523 ac_cv_prog_AR="$AR" # Let the user override the test.
9c60689e
DWT
8524else
8525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8526for as_dir in $PATH
8527do
8528 IFS=$as_save_IFS
8529 test -z "$as_dir" && as_dir=.
8530 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 8531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 8532 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
9c60689e
DWT
8533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8534 break 2
8535 fi
8536done
8537 done
8538IFS=$as_save_IFS
8539
8540fi
8541fi
a243b558
JF
8542AR=$ac_cv_prog_AR
8543if test -n "$AR"; then
8544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8545$as_echo "$AR" >&6; }
9c60689e
DWT
8546else
8547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8548$as_echo "no" >&6; }
8549fi
8550
8551
a243b558
JF
8552 test -n "$AR" && break
8553 done
9c60689e 8554fi
a243b558
JF
8555if test -z "$AR"; then
8556 ac_ct_AR=$AR
8557 for ac_prog in ar
8558do
8559 # Extract the first word of "$ac_prog", so it can be a program name with args.
8560set dummy $ac_prog; ac_word=$2
9c60689e
DWT
8561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8562$as_echo_n "checking for $ac_word... " >&6; }
a243b558 8563if ${ac_cv_prog_ac_ct_AR+:} false; then :
9c60689e
DWT
8564 $as_echo_n "(cached) " >&6
8565else
a243b558
JF
8566 if test -n "$ac_ct_AR"; then
8567 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9c60689e
DWT
8568else
8569as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8570for as_dir in $PATH
8571do
8572 IFS=$as_save_IFS
8573 test -z "$as_dir" && as_dir=.
8574 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 8575 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 8576 ac_cv_prog_ac_ct_AR="$ac_prog"
9c60689e
DWT
8577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8578 break 2
8579 fi
8580done
8581 done
8582IFS=$as_save_IFS
8583
8584fi
8585fi
a243b558
JF
8586ac_ct_AR=$ac_cv_prog_ac_ct_AR
8587if test -n "$ac_ct_AR"; then
8588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8589$as_echo "$ac_ct_AR" >&6; }
9c60689e
DWT
8590else
8591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8592$as_echo "no" >&6; }
8593fi
8594
a243b558
JF
8595
8596 test -n "$ac_ct_AR" && break
8597done
8598
8599 if test "x$ac_ct_AR" = x; then
8600 AR="false"
9c60689e
DWT
8601 else
8602 case $cross_compiling:$ac_tool_warned in
8603yes:)
8604{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8605$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8606ac_tool_warned=yes ;;
8607esac
a243b558 8608 AR=$ac_ct_AR
9c60689e 8609 fi
a243b558
JF
8610fi
8611
8612: ${AR=ar}
8613: ${AR_FLAGS=cru}
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8626$as_echo_n "checking for archiver @FILE support... " >&6; }
8627if ${lt_cv_ar_at_file+:} false; then :
8628 $as_echo_n "(cached) " >&6
9c60689e 8629else
a243b558
JF
8630 lt_cv_ar_at_file=no
8631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8632/* end confdefs.h. */
8633
8634int
8635main ()
8636{
8637
8638 ;
8639 return 0;
8640}
8641_ACEOF
8642if ac_fn_c_try_compile "$LINENO"; then :
8643 echo conftest.$ac_objext > conftest.lst
8644 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8645 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8646 (eval $lt_ar_try) 2>&5
8647 ac_status=$?
8648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8649 test $ac_status = 0; }
9d54db95 8650 if test 0 -eq "$ac_status"; then
a243b558
JF
8651 # Ensure the archiver fails upon bogus file names.
8652 rm -f conftest.$ac_objext libconftest.a
8653 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8654 (eval $lt_ar_try) 2>&5
8655 ac_status=$?
8656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8657 test $ac_status = 0; }
9d54db95 8658 if test 0 -ne "$ac_status"; then
a243b558
JF
8659 lt_cv_ar_at_file=@
8660 fi
8661 fi
8662 rm -f conftest.* libconftest.a
8663
9c60689e 8664fi
a243b558 8665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9c60689e 8666
a243b558
JF
8667fi
8668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8669$as_echo "$lt_cv_ar_at_file" >&6; }
8670
9d54db95 8671if test no = "$lt_cv_ar_at_file"; then
a243b558
JF
8672 archiver_list_spec=
8673else
8674 archiver_list_spec=$lt_cv_ar_at_file
8675fi
8676
8677
8678
8679
8680
8681
8682
8683if test -n "$ac_tool_prefix"; then
8684 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8685set dummy ${ac_tool_prefix}strip; ac_word=$2
9c60689e
DWT
8686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8687$as_echo_n "checking for $ac_word... " >&6; }
a243b558 8688if ${ac_cv_prog_STRIP+:} false; then :
9c60689e
DWT
8689 $as_echo_n "(cached) " >&6
8690else
a243b558
JF
8691 if test -n "$STRIP"; then
8692 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9c60689e
DWT
8693else
8694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8695for as_dir in $PATH
8696do
8697 IFS=$as_save_IFS
8698 test -z "$as_dir" && as_dir=.
8699 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 8700 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 8701 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9c60689e
DWT
8702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8703 break 2
8704 fi
8705done
8706 done
8707IFS=$as_save_IFS
8708
8709fi
8710fi
a243b558
JF
8711STRIP=$ac_cv_prog_STRIP
8712if test -n "$STRIP"; then
8713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8714$as_echo "$STRIP" >&6; }
9c60689e
DWT
8715else
8716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8717$as_echo "no" >&6; }
8718fi
8719
8720
8721fi
a243b558
JF
8722if test -z "$ac_cv_prog_STRIP"; then
8723 ac_ct_STRIP=$STRIP
8724 # Extract the first word of "strip", so it can be a program name with args.
8725set dummy strip; ac_word=$2
9c60689e
DWT
8726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8727$as_echo_n "checking for $ac_word... " >&6; }
a243b558 8728if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
9c60689e
DWT
8729 $as_echo_n "(cached) " >&6
8730else
a243b558
JF
8731 if test -n "$ac_ct_STRIP"; then
8732 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9c60689e
DWT
8733else
8734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8735for as_dir in $PATH
8736do
8737 IFS=$as_save_IFS
8738 test -z "$as_dir" && as_dir=.
8739 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 8740 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 8741 ac_cv_prog_ac_ct_STRIP="strip"
9c60689e
DWT
8742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8743 break 2
8744 fi
8745done
8746 done
8747IFS=$as_save_IFS
8748
8749fi
8750fi
a243b558
JF
8751ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8752if test -n "$ac_ct_STRIP"; then
8753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8754$as_echo "$ac_ct_STRIP" >&6; }
9c60689e
DWT
8755else
8756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8757$as_echo "no" >&6; }
8758fi
8759
a243b558
JF
8760 if test "x$ac_ct_STRIP" = x; then
8761 STRIP=":"
9c60689e
DWT
8762 else
8763 case $cross_compiling:$ac_tool_warned in
8764yes:)
8765{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8766$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8767ac_tool_warned=yes ;;
8768esac
a243b558 8769 STRIP=$ac_ct_STRIP
9c60689e
DWT
8770 fi
8771else
a243b558 8772 STRIP="$ac_cv_prog_STRIP"
9c60689e
DWT
8773fi
8774
a243b558
JF
8775test -z "$STRIP" && STRIP=:
8776
8777
8778
8779
8780
8781
8782if test -n "$ac_tool_prefix"; then
8783 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8784set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9c60689e
DWT
8785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8786$as_echo_n "checking for $ac_word... " >&6; }
a243b558 8787if ${ac_cv_prog_RANLIB+:} false; then :
9c60689e
DWT
8788 $as_echo_n "(cached) " >&6
8789else
a243b558
JF
8790 if test -n "$RANLIB"; then
8791 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9c60689e
DWT
8792else
8793as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8794for as_dir in $PATH
8795do
8796 IFS=$as_save_IFS
8797 test -z "$as_dir" && as_dir=.
8798 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 8799 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 8800 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9c60689e
DWT
8801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8802 break 2
8803 fi
8804done
8805 done
8806IFS=$as_save_IFS
8807
8808fi
8809fi
a243b558
JF
8810RANLIB=$ac_cv_prog_RANLIB
8811if test -n "$RANLIB"; then
8812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8813$as_echo "$RANLIB" >&6; }
9c60689e
DWT
8814else
8815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8816$as_echo "no" >&6; }
8817fi
8818
8819
8820fi
a243b558
JF
8821if test -z "$ac_cv_prog_RANLIB"; then
8822 ac_ct_RANLIB=$RANLIB
8823 # Extract the first word of "ranlib", so it can be a program name with args.
8824set dummy ranlib; ac_word=$2
9c60689e
DWT
8825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8826$as_echo_n "checking for $ac_word... " >&6; }
a243b558 8827if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
9c60689e
DWT
8828 $as_echo_n "(cached) " >&6
8829else
a243b558
JF
8830 if test -n "$ac_ct_RANLIB"; then
8831 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9c60689e
DWT
8832else
8833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8834for as_dir in $PATH
8835do
8836 IFS=$as_save_IFS
8837 test -z "$as_dir" && as_dir=.
8838 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 8839 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 8840 ac_cv_prog_ac_ct_RANLIB="ranlib"
9c60689e
DWT
8841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8842 break 2
8843 fi
8844done
8845 done
8846IFS=$as_save_IFS
8847
8848fi
8849fi
a243b558
JF
8850ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8851if test -n "$ac_ct_RANLIB"; then
8852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8853$as_echo "$ac_ct_RANLIB" >&6; }
9c60689e
DWT
8854else
8855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8856$as_echo "no" >&6; }
8857fi
8858
a243b558
JF
8859 if test "x$ac_ct_RANLIB" = x; then
8860 RANLIB=":"
9c60689e
DWT
8861 else
8862 case $cross_compiling:$ac_tool_warned in
8863yes:)
8864{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8865$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8866ac_tool_warned=yes ;;
8867esac
a243b558 8868 RANLIB=$ac_ct_RANLIB
9c60689e
DWT
8869 fi
8870else
a243b558 8871 RANLIB="$ac_cv_prog_RANLIB"
9c60689e
DWT
8872fi
8873
a243b558
JF
8874test -z "$RANLIB" && RANLIB=:
8875
8876
9c60689e 8877
9c60689e
DWT
8878
8879
a243b558
JF
8880
8881# Determine commands to create old-style static archives.
8882old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8883old_postinstall_cmds='chmod 644 $oldlib'
8884old_postuninstall_cmds=
8885
8886if test -n "$RANLIB"; then
8887 case $host_os in
9d54db95 8888 bitrig* | openbsd*)
a243b558
JF
8889 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8890 ;;
8891 *)
8892 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8893 ;;
8894 esac
8895 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
9c60689e
DWT
8896fi
8897
a243b558
JF
8898case $host_os in
8899 darwin*)
8900 lock_old_archive_extraction=yes ;;
8901 *)
8902 lock_old_archive_extraction=no ;;
9c60689e 8903esac
9c60689e 8904
9c60689e 8905
9c60689e
DWT
8906
8907
9c60689e 8908
9c60689e 8909
9c60689e
DWT
8910
8911
8912
8913
8914
8915
8916
8917
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928
8929
8930
8931
8932
8933
8934
8935
8936
53ba6704 8937
9c60689e 8938
9c60689e 8939
9c60689e 8940
53ba6704 8941
a243b558
JF
8942
8943# If no C compiler was specified, use CC.
8944LTCC=${LTCC-"$CC"}
8945
8946# If no C compiler flags were specified, use CFLAGS.
8947LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8948
8949# Allow CC to be a program name with arguments.
8950compiler=$CC
8951
8952
8953# Check for command to grab the raw symbol name followed by C symbol from nm.
8954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8955$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8956if ${lt_cv_sys_global_symbol_pipe+:} false; then :
ee134472
JF
8957 $as_echo_n "(cached) " >&6
8958else
ee134472 8959
a243b558
JF
8960# These are sane defaults that work on at least a few old systems.
8961# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9c60689e 8962
a243b558
JF
8963# Character class describing NM global symbol codes.
8964symcode='[BCDEGRST]'
9c60689e 8965
a243b558
JF
8966# Regexp to match symbols that can be accessed directly from C.
8967sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9c60689e 8968
a243b558
JF
8969# Define system-specific variables.
8970case $host_os in
8971aix*)
8972 symcode='[BCDT]'
8973 ;;
8974cygwin* | mingw* | pw32* | cegcc*)
8975 symcode='[ABCDGISTW]'
8976 ;;
8977hpux*)
9d54db95 8978 if test ia64 = "$host_cpu"; then
a243b558
JF
8979 symcode='[ABCDEGRST]'
8980 fi
8981 ;;
8982irix* | nonstopux*)
8983 symcode='[BCDEGRST]'
8984 ;;
8985osf*)
8986 symcode='[BCDEGQRST]'
8987 ;;
8988solaris*)
8989 symcode='[BDRT]'
8990 ;;
8991sco3.2v5*)
8992 symcode='[DT]'
8993 ;;
8994sysv4.2uw2*)
8995 symcode='[DT]'
8996 ;;
8997sysv5* | sco5v6* | unixware* | OpenUNIX*)
8998 symcode='[ABDT]'
8999 ;;
9000sysv4)
9001 symcode='[DFNSTU]'
9002 ;;
9003esac
9c60689e 9004
a243b558
JF
9005# If we're using GNU nm, then use its standard symbol codes.
9006case `$NM -V 2>&1` in
9007*GNU* | *'with BFD'*)
9008 symcode='[ABCDGIRSTW]' ;;
9009esac
9c60689e 9010
9d54db95
JF
9011if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9012 # Gets list of data symbols to import.
9013 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
9014 # Adjust the below global symbol transforms to fixup imported variables.
9015 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
9016 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
9017 lt_c_name_lib_hook="\
9018 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
9019 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
9020else
9021 # Disable hooks by default.
9022 lt_cv_sys_global_symbol_to_import=
9023 lt_cdecl_hook=
9024 lt_c_name_hook=
9025 lt_c_name_lib_hook=
9026fi
9027
a243b558
JF
9028# Transform an extracted symbol line into a proper C declaration.
9029# Some systems (esp. on ia64) link data and code symbols differently,
9030# so use this general approach.
9d54db95
JF
9031lt_cv_sys_global_symbol_to_cdecl="sed -n"\
9032$lt_cdecl_hook\
9033" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
9034" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
9c60689e 9035
a243b558 9036# Transform an extracted symbol line into symbol name and symbol address
9d54db95
JF
9037lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
9038$lt_c_name_hook\
9039" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
9040" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
9041
9042# Transform an extracted symbol line into symbol name with lib prefix and
9043# symbol address.
9044lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
9045$lt_c_name_lib_hook\
9046" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
9047" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
9048" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
9c60689e 9049
a243b558
JF
9050# Handle CRLF in mingw tool chain
9051opt_cr=
9052case $build_os in
9053mingw*)
9054 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9055 ;;
9056esac
9c60689e 9057
a243b558
JF
9058# Try without a prefix underscore, then with it.
9059for ac_symprfx in "" "_"; do
9c60689e 9060
a243b558
JF
9061 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9062 symxfrm="\\1 $ac_symprfx\\2 \\2"
9c60689e 9063
a243b558
JF
9064 # Write the raw and C identifiers.
9065 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9d54db95
JF
9066 # Fake it for dumpbin and say T for any non-static function,
9067 # D for any global variable and I for any imported variable.
a243b558
JF
9068 # Also find C++ and __fastcall symbols from MSVC++,
9069 # which start with @ or ?.
9070 lt_cv_sys_global_symbol_pipe="$AWK '"\
9071" {last_section=section; section=\$ 3};"\
9072" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
9073" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9d54db95
JF
9074" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
9075" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
9076" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
a243b558
JF
9077" \$ 0!~/External *\|/{next};"\
9078" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9079" {if(hide[section]) next};"\
9d54db95
JF
9080" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
9081" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
9082" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
9083" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
a243b558
JF
9084" ' prfx=^$ac_symprfx"
9085 else
9086 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9087 fi
9088 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
9c60689e 9089
a243b558
JF
9090 # Check to see that the pipe works correctly.
9091 pipe_works=no
9c60689e 9092
00a96142 9093 rm -rf conftest*
a243b558
JF
9094 cat > conftest.$ac_ext <<_LT_EOF
9095#ifdef __cplusplus
9096extern "C" {
9097#endif
9098char nm_test_var;
9099void nm_test_func(void);
9100void nm_test_func(void){}
9101#ifdef __cplusplus
9102}
9103#endif
9104int main(){nm_test_var='a';nm_test_func();return(0);}
9105_LT_EOF
9c60689e 9106
a243b558
JF
9107 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9108 (eval $ac_compile) 2>&5
9109 ac_status=$?
9110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9111 test $ac_status = 0; }; then
9112 # Now try to grab the symbols.
9113 nlist=conftest.nm
9114 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
9115 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
9116 ac_status=$?
9117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9118 test $ac_status = 0; } && test -s "$nlist"; then
9119 # Try sorting and uniquifying the output.
9120 if sort "$nlist" | uniq > "$nlist"T; then
9121 mv -f "$nlist"T "$nlist"
9122 else
9123 rm -f "$nlist"T
9124 fi
9c60689e 9125
a243b558
JF
9126 # Make sure that we snagged all the symbols we need.
9127 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9128 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9129 cat <<_LT_EOF > conftest.$ac_ext
9130/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
9d54db95
JF
9131#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
9132/* DATA imports from DLLs on WIN32 can't be const, because runtime
a243b558
JF
9133 relocations are performed -- see ld's documentation on pseudo-relocs. */
9134# define LT_DLSYM_CONST
9d54db95 9135#elif defined __osf__
a243b558
JF
9136/* This system does not cope well with relocations in const data. */
9137# define LT_DLSYM_CONST
9138#else
9139# define LT_DLSYM_CONST const
9140#endif
9c60689e 9141
a243b558
JF
9142#ifdef __cplusplus
9143extern "C" {
9144#endif
9c60689e 9145
a243b558
JF
9146_LT_EOF
9147 # Now generate the symbol file.
9148 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9c60689e 9149
a243b558 9150 cat <<_LT_EOF >> conftest.$ac_ext
9c60689e 9151
a243b558
JF
9152/* The mapping between symbol names and symbols. */
9153LT_DLSYM_CONST struct {
9154 const char *name;
9155 void *address;
9156}
9157lt__PROGRAM__LTX_preloaded_symbols[] =
9158{
9159 { "@PROGRAM@", (void *) 0 },
9160_LT_EOF
9d54db95 9161 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
a243b558
JF
9162 cat <<\_LT_EOF >> conftest.$ac_ext
9163 {0, (void *) 0}
9164};
9c60689e 9165
a243b558
JF
9166/* This works around a problem in FreeBSD linker */
9167#ifdef FREEBSD_WORKAROUND
9168static const void *lt_preloaded_setup() {
9169 return lt__PROGRAM__LTX_preloaded_symbols;
9170}
9171#endif
9c60689e 9172
a243b558
JF
9173#ifdef __cplusplus
9174}
9175#endif
9176_LT_EOF
9177 # Now try linking the two files.
9178 mv conftest.$ac_objext conftstm.$ac_objext
9179 lt_globsym_save_LIBS=$LIBS
9180 lt_globsym_save_CFLAGS=$CFLAGS
9d54db95 9181 LIBS=conftstm.$ac_objext
a243b558
JF
9182 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9183 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9184 (eval $ac_link) 2>&5
9185 ac_status=$?
9186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9d54db95 9187 test $ac_status = 0; } && test -s conftest$ac_exeext; then
a243b558
JF
9188 pipe_works=yes
9189 fi
9190 LIBS=$lt_globsym_save_LIBS
9191 CFLAGS=$lt_globsym_save_CFLAGS
9192 else
9193 echo "cannot find nm_test_func in $nlist" >&5
9194 fi
9195 else
9196 echo "cannot find nm_test_var in $nlist" >&5
9197 fi
9198 else
9199 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9200 fi
9201 else
9202 echo "$progname: failed program was:" >&5
9203 cat conftest.$ac_ext >&5
9204 fi
9205 rm -rf conftest* conftst*
9c60689e 9206
a243b558 9207 # Do not use the global_symbol_pipe unless it works.
9d54db95 9208 if test yes = "$pipe_works"; then
a243b558
JF
9209 break
9210 else
9211 lt_cv_sys_global_symbol_pipe=
9212 fi
9213done
9c60689e 9214
9c60689e 9215fi
9c60689e 9216
a243b558
JF
9217if test -z "$lt_cv_sys_global_symbol_pipe"; then
9218 lt_cv_sys_global_symbol_to_cdecl=
9c60689e 9219fi
a243b558
JF
9220if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9222$as_echo "failed" >&6; }
9c60689e 9223else
a243b558
JF
9224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9225$as_echo "ok" >&6; }
9c60689e
DWT
9226fi
9227
a243b558
JF
9228# Response file support.
9229if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9230 nm_file_list_spec='@'
9231elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9232 nm_file_list_spec='@'
9c60689e 9233fi
9c60689e 9234
9c60689e 9235
9c60689e 9236
9c60689e 9237
9c60689e 9238
9c60689e
DWT
9239
9240
9c60689e 9241
9c60689e 9242
9c60689e
DWT
9243
9244
9245
ee134472
JF
9246
9247
9c60689e
DWT
9248
9249
9d54db95
JF
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9c60689e
DWT
9260
9261
9262
9263
9264
9265
9266
549f29b5 9267
549f29b5
DWT
9268
9269
549f29b5 9270
a243b558
JF
9271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9272$as_echo_n "checking for sysroot... " >&6; }
549f29b5 9273
a243b558
JF
9274# Check whether --with-sysroot was given.
9275if test "${with_sysroot+set}" = set; then :
9276 withval=$with_sysroot;
9c60689e 9277else
a243b558 9278 with_sysroot=no
9c60689e
DWT
9279fi
9280
9281
a243b558 9282lt_sysroot=
9d54db95 9283case $with_sysroot in #(
a243b558 9284 yes)
9d54db95 9285 if test yes = "$GCC"; then
a243b558
JF
9286 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
9287 fi
9288 ;; #(
9289 /*)
9290 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
9291 ;; #(
9292 no|'')
9293 ;; #(
9294 *)
9d54db95
JF
9295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
9296$as_echo "$with_sysroot" >&6; }
a243b558
JF
9297 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9298 ;;
9299esac
9c60689e 9300
a243b558
JF
9301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9302$as_echo "${lt_sysroot:-no}" >&6; }
9c60689e
DWT
9303
9304
9305
9306
9307
9d54db95
JF
9308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
9309$as_echo_n "checking for a working dd... " >&6; }
9310if ${ac_cv_path_lt_DD+:} false; then :
9311 $as_echo_n "(cached) " >&6
9312else
9313 printf 0123456789abcdef0123456789abcdef >conftest.i
9314cat conftest.i conftest.i >conftest2.i
9315: ${lt_DD:=$DD}
9316if test -z "$lt_DD"; then
9317 ac_path_lt_DD_found=false
9318 # Loop through the user's path and test for each of PROGNAME-LIST
9319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9320for as_dir in $PATH
9321do
9322 IFS=$as_save_IFS
9323 test -z "$as_dir" && as_dir=.
9324 for ac_prog in dd; do
9325 for ac_exec_ext in '' $ac_executable_extensions; do
9326 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
9327 as_fn_executable_p "$ac_path_lt_DD" || continue
9328if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9329 cmp -s conftest.i conftest.out \
9330 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
9331fi
9332 $ac_path_lt_DD_found && break 3
9333 done
9334 done
9335 done
9336IFS=$as_save_IFS
9337 if test -z "$ac_cv_path_lt_DD"; then
9338 :
9339 fi
9340else
9341 ac_cv_path_lt_DD=$lt_DD
9342fi
9343
9344rm -f conftest.i conftest2.i conftest.out
9345fi
9346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
9347$as_echo "$ac_cv_path_lt_DD" >&6; }
9348
9349
9350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
9351$as_echo_n "checking how to truncate binary pipes... " >&6; }
9352if ${lt_cv_truncate_bin+:} false; then :
9353 $as_echo_n "(cached) " >&6
9354else
9355 printf 0123456789abcdef0123456789abcdef >conftest.i
9356cat conftest.i conftest.i >conftest2.i
9357lt_cv_truncate_bin=
9358if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9359 cmp -s conftest.i conftest.out \
9360 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
9361fi
9362rm -f conftest.i conftest2.i conftest.out
9363test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
9364fi
9365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
9366$as_echo "$lt_cv_truncate_bin" >&6; }
9367
9368
9369
9370
9371
9372
9373
9374# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
9375func_cc_basename ()
9376{
9377 for cc_temp in $*""; do
9378 case $cc_temp in
9379 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9380 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9381 \-*) ;;
9382 *) break;;
9383 esac
9384 done
9385 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9386}
9387
a243b558
JF
9388# Check whether --enable-libtool-lock was given.
9389if test "${enable_libtool_lock+set}" = set; then :
9390 enableval=$enable_libtool_lock;
9c60689e
DWT
9391fi
9392
9d54db95 9393test no = "$enable_libtool_lock" || enable_libtool_lock=yes
9c60689e 9394
a243b558
JF
9395# Some flags need to be propagated to the compiler or linker for good
9396# libtool support.
9397case $host in
9398ia64-*-hpux*)
9d54db95
JF
9399 # Find out what ABI is being produced by ac_compile, and set mode
9400 # options accordingly.
a243b558
JF
9401 echo 'int i;' > conftest.$ac_ext
9402 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9403 (eval $ac_compile) 2>&5
9404 ac_status=$?
9405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9406 test $ac_status = 0; }; then
9407 case `/usr/bin/file conftest.$ac_objext` in
9408 *ELF-32*)
9d54db95 9409 HPUX_IA64_MODE=32
a243b558
JF
9410 ;;
9411 *ELF-64*)
9d54db95 9412 HPUX_IA64_MODE=64
a243b558
JF
9413 ;;
9414 esac
9415 fi
9416 rm -rf conftest*
9417 ;;
9418*-*-irix6*)
9d54db95
JF
9419 # Find out what ABI is being produced by ac_compile, and set linker
9420 # options accordingly.
a243b558
JF
9421 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9422 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9423 (eval $ac_compile) 2>&5
9424 ac_status=$?
9425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9426 test $ac_status = 0; }; then
9d54db95 9427 if test yes = "$lt_cv_prog_gnu_ld"; then
a243b558
JF
9428 case `/usr/bin/file conftest.$ac_objext` in
9429 *32-bit*)
9430 LD="${LD-ld} -melf32bsmip"
9431 ;;
9432 *N32*)
9433 LD="${LD-ld} -melf32bmipn32"
9434 ;;
9435 *64-bit*)
9436 LD="${LD-ld} -melf64bmip"
9437 ;;
9438 esac
9439 else
9440 case `/usr/bin/file conftest.$ac_objext` in
9441 *32-bit*)
9442 LD="${LD-ld} -32"
9443 ;;
9444 *N32*)
9445 LD="${LD-ld} -n32"
9446 ;;
9447 *64-bit*)
9448 LD="${LD-ld} -64"
9449 ;;
9450 esac
9451 fi
9452 fi
9453 rm -rf conftest*
9454 ;;
9c60689e 9455
9d54db95
JF
9456mips64*-*linux*)
9457 # Find out what ABI is being produced by ac_compile, and set linker
9458 # options accordingly.
9459 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9460 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9461 (eval $ac_compile) 2>&5
9462 ac_status=$?
9463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9464 test $ac_status = 0; }; then
9465 emul=elf
9466 case `/usr/bin/file conftest.$ac_objext` in
9467 *32-bit*)
9468 emul="${emul}32"
9469 ;;
9470 *64-bit*)
9471 emul="${emul}64"
9472 ;;
9473 esac
9474 case `/usr/bin/file conftest.$ac_objext` in
9475 *MSB*)
9476 emul="${emul}btsmip"
9477 ;;
9478 *LSB*)
9479 emul="${emul}ltsmip"
9480 ;;
9481 esac
9482 case `/usr/bin/file conftest.$ac_objext` in
9483 *N32*)
9484 emul="${emul}n32"
9485 ;;
9486 esac
9487 LD="${LD-ld} -m $emul"
9488 fi
9489 rm -rf conftest*
9490 ;;
9491
9492x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
a243b558 9493s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9d54db95
JF
9494 # Find out what ABI is being produced by ac_compile, and set linker
9495 # options accordingly. Note that the listed cases only cover the
9496 # situations where additional linker options are needed (such as when
9497 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
9498 # vice versa); the common cases where no linker options are needed do
9499 # not appear in the list.
a243b558
JF
9500 echo 'int i;' > conftest.$ac_ext
9501 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9502 (eval $ac_compile) 2>&5
9503 ac_status=$?
9504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9505 test $ac_status = 0; }; then
9506 case `/usr/bin/file conftest.o` in
9507 *32-bit*)
9508 case $host in
9509 x86_64-*kfreebsd*-gnu)
9510 LD="${LD-ld} -m elf_i386_fbsd"
9511 ;;
9512 x86_64-*linux*)
9d54db95
JF
9513 case `/usr/bin/file conftest.o` in
9514 *x86-64*)
9515 LD="${LD-ld} -m elf32_x86_64"
9516 ;;
9517 *)
9518 LD="${LD-ld} -m elf_i386"
9519 ;;
9520 esac
a243b558 9521 ;;
9d54db95
JF
9522 powerpc64le-*linux*)
9523 LD="${LD-ld} -m elf32lppclinux"
9524 ;;
9525 powerpc64-*linux*)
a243b558
JF
9526 LD="${LD-ld} -m elf32ppclinux"
9527 ;;
9528 s390x-*linux*)
9529 LD="${LD-ld} -m elf_s390"
9530 ;;
9531 sparc64-*linux*)
9532 LD="${LD-ld} -m elf32_sparc"
9533 ;;
9534 esac
9535 ;;
9536 *64-bit*)
9537 case $host in
9538 x86_64-*kfreebsd*-gnu)
9539 LD="${LD-ld} -m elf_x86_64_fbsd"
9540 ;;
9541 x86_64-*linux*)
9542 LD="${LD-ld} -m elf_x86_64"
9543 ;;
9d54db95
JF
9544 powerpcle-*linux*)
9545 LD="${LD-ld} -m elf64lppc"
9546 ;;
9547 powerpc-*linux*)
a243b558
JF
9548 LD="${LD-ld} -m elf64ppc"
9549 ;;
9550 s390*-*linux*|s390*-*tpf*)
9551 LD="${LD-ld} -m elf64_s390"
9552 ;;
9553 sparc*-*linux*)
9554 LD="${LD-ld} -m elf64_sparc"
9555 ;;
9556 esac
9557 ;;
9558 esac
9559 fi
9560 rm -rf conftest*
9561 ;;
9c60689e 9562
a243b558
JF
9563*-*-sco3.2v5*)
9564 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9d54db95 9565 SAVE_CFLAGS=$CFLAGS
a243b558
JF
9566 CFLAGS="$CFLAGS -belf"
9567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9568$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9569if ${lt_cv_cc_needs_belf+:} false; then :
9570 $as_echo_n "(cached) " >&6
9571else
9572 ac_ext=c
9573ac_cpp='$CPP $CPPFLAGS'
9574ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9575ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9576ac_compiler_gnu=$ac_cv_c_compiler_gnu
9c60689e 9577
a243b558
JF
9578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9579/* end confdefs.h. */
9c60689e 9580
a243b558
JF
9581int
9582main ()
9583{
9c60689e 9584
a243b558
JF
9585 ;
9586 return 0;
9587}
9588_ACEOF
9589if ac_fn_c_try_link "$LINENO"; then :
9590 lt_cv_cc_needs_belf=yes
9c60689e 9591else
a243b558 9592 lt_cv_cc_needs_belf=no
9c60689e 9593fi
a243b558
JF
9594rm -f core conftest.err conftest.$ac_objext \
9595 conftest$ac_exeext conftest.$ac_ext
9596 ac_ext=c
9597ac_cpp='$CPP $CPPFLAGS'
9598ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9599ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9600ac_compiler_gnu=$ac_cv_c_compiler_gnu
9c60689e 9601
a243b558
JF
9602fi
9603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9604$as_echo "$lt_cv_cc_needs_belf" >&6; }
9d54db95 9605 if test yes != "$lt_cv_cc_needs_belf"; then
a243b558 9606 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9d54db95 9607 CFLAGS=$SAVE_CFLAGS
a243b558
JF
9608 fi
9609 ;;
9610*-*solaris*)
9d54db95
JF
9611 # Find out what ABI is being produced by ac_compile, and set linker
9612 # options accordingly.
a243b558
JF
9613 echo 'int i;' > conftest.$ac_ext
9614 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9615 (eval $ac_compile) 2>&5
9616 ac_status=$?
9617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9618 test $ac_status = 0; }; then
9619 case `/usr/bin/file conftest.o` in
9620 *64-bit*)
9621 case $lt_cv_prog_gnu_ld in
9622 yes*)
9623 case $host in
9d54db95 9624 i?86-*-solaris*|x86_64-*-solaris*)
a243b558
JF
9625 LD="${LD-ld} -m elf_x86_64"
9626 ;;
9627 sparc*-*-solaris*)
9628 LD="${LD-ld} -m elf64_sparc"
9629 ;;
9630 esac
9631 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
9632 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
9d54db95 9633 LD=${LD-ld}_sol2
a243b558
JF
9634 fi
9635 ;;
9636 *)
9637 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9638 LD="${LD-ld} -64"
9639 fi
9640 ;;
9641 esac
9642 ;;
9643 esac
9644 fi
9645 rm -rf conftest*
9646 ;;
9647esac
9c60689e 9648
9d54db95 9649need_locks=$enable_libtool_lock
9c60689e 9650
a243b558
JF
9651if test -n "$ac_tool_prefix"; then
9652 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9653set dummy ${ac_tool_prefix}mt; ac_word=$2
9654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9655$as_echo_n "checking for $ac_word... " >&6; }
9656if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
9657 $as_echo_n "(cached) " >&6
9658else
9659 if test -n "$MANIFEST_TOOL"; then
9660 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9661else
9662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9663for as_dir in $PATH
9664do
9665 IFS=$as_save_IFS
9666 test -z "$as_dir" && as_dir=.
9667 for ac_exec_ext in '' $ac_executable_extensions; do
9668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9669 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9671 break 2
9672 fi
9673done
9674 done
9675IFS=$as_save_IFS
9c60689e 9676
a243b558
JF
9677fi
9678fi
9679MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9680if test -n "$MANIFEST_TOOL"; then
9681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9682$as_echo "$MANIFEST_TOOL" >&6; }
9683else
9684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9685$as_echo "no" >&6; }
9686fi
9c60689e
DWT
9687
9688
a243b558
JF
9689fi
9690if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9691 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9692 # Extract the first word of "mt", so it can be a program name with args.
9693set dummy mt; ac_word=$2
9694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9695$as_echo_n "checking for $ac_word... " >&6; }
9696if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
9697 $as_echo_n "(cached) " >&6
9698else
9699 if test -n "$ac_ct_MANIFEST_TOOL"; then
9700 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9701else
9702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9703for as_dir in $PATH
9704do
9705 IFS=$as_save_IFS
9706 test -z "$as_dir" && as_dir=.
9707 for ac_exec_ext in '' $ac_executable_extensions; do
9708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9709 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9711 break 2
9712 fi
9713done
9714 done
9715IFS=$as_save_IFS
9c60689e 9716
a243b558
JF
9717fi
9718fi
9719ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9720if test -n "$ac_ct_MANIFEST_TOOL"; then
9721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9722$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
9723else
9724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9725$as_echo "no" >&6; }
9726fi
9c60689e 9727
a243b558
JF
9728 if test "x$ac_ct_MANIFEST_TOOL" = x; then
9729 MANIFEST_TOOL=":"
9730 else
9731 case $cross_compiling:$ac_tool_warned in
9732yes:)
9733{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9734$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9735ac_tool_warned=yes ;;
9736esac
9737 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9738 fi
9739else
9740 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9741fi
9c60689e 9742
a243b558
JF
9743test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9745$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9746if ${lt_cv_path_mainfest_tool+:} false; then :
9747 $as_echo_n "(cached) " >&6
9748else
9749 lt_cv_path_mainfest_tool=no
9750 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9751 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9752 cat conftest.err >&5
9753 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9754 lt_cv_path_mainfest_tool=yes
9755 fi
00a96142 9756 rm -rf conftest*
a243b558
JF
9757fi
9758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
9759$as_echo "$lt_cv_path_mainfest_tool" >&6; }
9d54db95 9760if test yes != "$lt_cv_path_mainfest_tool"; then
a243b558
JF
9761 MANIFEST_TOOL=:
9762fi
9c60689e
DWT
9763
9764
9765
9766
9767
9768
a243b558
JF
9769 case $host_os in
9770 rhapsody* | darwin*)
9771 if test -n "$ac_tool_prefix"; then
9772 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9773set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9775$as_echo_n "checking for $ac_word... " >&6; }
9776if ${ac_cv_prog_DSYMUTIL+:} false; then :
9777 $as_echo_n "(cached) " >&6
9778else
9779 if test -n "$DSYMUTIL"; then
9780 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9781else
9782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9783for as_dir in $PATH
9784do
9785 IFS=$as_save_IFS
9786 test -z "$as_dir" && as_dir=.
9787 for ac_exec_ext in '' $ac_executable_extensions; do
9788 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9789 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9791 break 2
9792 fi
9793done
9794 done
9795IFS=$as_save_IFS
9c60689e 9796
a243b558
JF
9797fi
9798fi
9799DSYMUTIL=$ac_cv_prog_DSYMUTIL
9800if test -n "$DSYMUTIL"; then
9801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9802$as_echo "$DSYMUTIL" >&6; }
9803else
9804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9805$as_echo "no" >&6; }
9806fi
9c60689e
DWT
9807
9808
9c60689e 9809fi
a243b558
JF
9810if test -z "$ac_cv_prog_DSYMUTIL"; then
9811 ac_ct_DSYMUTIL=$DSYMUTIL
9812 # Extract the first word of "dsymutil", so it can be a program name with args.
9813set dummy dsymutil; ac_word=$2
9814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9815$as_echo_n "checking for $ac_word... " >&6; }
9816if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9c60689e
DWT
9817 $as_echo_n "(cached) " >&6
9818else
a243b558
JF
9819 if test -n "$ac_ct_DSYMUTIL"; then
9820 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9c60689e 9821else
a243b558
JF
9822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9823for as_dir in $PATH
9824do
9825 IFS=$as_save_IFS
9826 test -z "$as_dir" && as_dir=.
9827 for ac_exec_ext in '' $ac_executable_extensions; do
9828 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9829 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9831 break 2
9832 fi
9833done
9834 done
9835IFS=$as_save_IFS
9836
9c60689e 9837fi
9c60689e 9838fi
a243b558
JF
9839ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9840if test -n "$ac_ct_DSYMUTIL"; then
9841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9842$as_echo "$ac_ct_DSYMUTIL" >&6; }
9843else
9844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9845$as_echo "no" >&6; }
9846fi
9c60689e 9847
a243b558
JF
9848 if test "x$ac_ct_DSYMUTIL" = x; then
9849 DSYMUTIL=":"
9850 else
9851 case $cross_compiling:$ac_tool_warned in
9852yes:)
9853{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9854$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9855ac_tool_warned=yes ;;
9c60689e 9856esac
a243b558
JF
9857 DSYMUTIL=$ac_ct_DSYMUTIL
9858 fi
9859else
9860 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9861fi
9c60689e 9862
a243b558
JF
9863 if test -n "$ac_tool_prefix"; then
9864 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9865set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9867$as_echo_n "checking for $ac_word... " >&6; }
9868if ${ac_cv_prog_NMEDIT+:} false; then :
9c60689e
DWT
9869 $as_echo_n "(cached) " >&6
9870else
a243b558
JF
9871 if test -n "$NMEDIT"; then
9872 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9873else
9874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9875for as_dir in $PATH
9876do
9877 IFS=$as_save_IFS
9878 test -z "$as_dir" && as_dir=.
9879 for ac_exec_ext in '' $ac_executable_extensions; do
9880 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9881 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9883 break 2
9884 fi
9885done
9c60689e 9886 done
a243b558 9887IFS=$as_save_IFS
9c60689e 9888
a243b558
JF
9889fi
9890fi
9891NMEDIT=$ac_cv_prog_NMEDIT
9892if test -n "$NMEDIT"; then
9893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9894$as_echo "$NMEDIT" >&6; }
9c60689e
DWT
9895else
9896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9897$as_echo "no" >&6; }
9898fi
9899
9900
a243b558
JF
9901fi
9902if test -z "$ac_cv_prog_NMEDIT"; then
9903 ac_ct_NMEDIT=$NMEDIT
9904 # Extract the first word of "nmedit", so it can be a program name with args.
9905set dummy nmedit; ac_word=$2
9906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9907$as_echo_n "checking for $ac_word... " >&6; }
9908if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9c60689e
DWT
9909 $as_echo_n "(cached) " >&6
9910else
a243b558
JF
9911 if test -n "$ac_ct_NMEDIT"; then
9912 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9913else
9914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9915for as_dir in $PATH
9916do
9917 IFS=$as_save_IFS
9918 test -z "$as_dir" && as_dir=.
9919 for ac_exec_ext in '' $ac_executable_extensions; do
9920 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9921 ac_cv_prog_ac_ct_NMEDIT="nmedit"
9922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9923 break 2
9924 fi
9925done
9c60689e 9926 done
a243b558 9927IFS=$as_save_IFS
9c60689e 9928
a243b558
JF
9929fi
9930fi
9931ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9932if test -n "$ac_ct_NMEDIT"; then
9933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9934$as_echo "$ac_ct_NMEDIT" >&6; }
9c60689e
DWT
9935else
9936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9937$as_echo "no" >&6; }
9938fi
9939
a243b558
JF
9940 if test "x$ac_ct_NMEDIT" = x; then
9941 NMEDIT=":"
9c60689e 9942 else
a243b558
JF
9943 case $cross_compiling:$ac_tool_warned in
9944yes:)
9945{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9946$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9947ac_tool_warned=yes ;;
9948esac
9949 NMEDIT=$ac_ct_NMEDIT
9c60689e 9950 fi
a243b558
JF
9951else
9952 NMEDIT="$ac_cv_prog_NMEDIT"
9c60689e
DWT
9953fi
9954
a243b558
JF
9955 if test -n "$ac_tool_prefix"; then
9956 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9957set dummy ${ac_tool_prefix}lipo; ac_word=$2
9958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9959$as_echo_n "checking for $ac_word... " >&6; }
9960if ${ac_cv_prog_LIPO+:} false; then :
9961 $as_echo_n "(cached) " >&6
9962else
9963 if test -n "$LIPO"; then
9964 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9965else
9966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9967for as_dir in $PATH
9968do
9969 IFS=$as_save_IFS
9970 test -z "$as_dir" && as_dir=.
9971 for ac_exec_ext in '' $ac_executable_extensions; do
9972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9973 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9975 break 2
9976 fi
9977done
9978 done
9979IFS=$as_save_IFS
9c60689e 9980
a243b558
JF
9981fi
9982fi
9983LIPO=$ac_cv_prog_LIPO
9984if test -n "$LIPO"; then
9985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9986$as_echo "$LIPO" >&6; }
9987else
9988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9989$as_echo "no" >&6; }
9990fi
9c60689e 9991
9c60689e 9992
a243b558
JF
9993fi
9994if test -z "$ac_cv_prog_LIPO"; then
9995 ac_ct_LIPO=$LIPO
9996 # Extract the first word of "lipo", so it can be a program name with args.
9997set dummy lipo; ac_word=$2
9998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9999$as_echo_n "checking for $ac_word... " >&6; }
10000if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9c60689e
DWT
10001 $as_echo_n "(cached) " >&6
10002else
a243b558
JF
10003 if test -n "$ac_ct_LIPO"; then
10004 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10005else
10006as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10007for as_dir in $PATH
10008do
10009 IFS=$as_save_IFS
10010 test -z "$as_dir" && as_dir=.
10011 for ac_exec_ext in '' $ac_executable_extensions; do
10012 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10013 ac_cv_prog_ac_ct_LIPO="lipo"
10014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10015 break 2
10016 fi
10017done
10018 done
10019IFS=$as_save_IFS
9c60689e
DWT
10020
10021fi
a243b558
JF
10022fi
10023ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10024if test -n "$ac_ct_LIPO"; then
10025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10026$as_echo "$ac_ct_LIPO" >&6; }
9c60689e 10027else
a243b558
JF
10028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10029$as_echo "no" >&6; }
9c60689e
DWT
10030fi
10031
a243b558
JF
10032 if test "x$ac_ct_LIPO" = x; then
10033 LIPO=":"
10034 else
10035 case $cross_compiling:$ac_tool_warned in
10036yes:)
10037{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10038$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10039ac_tool_warned=yes ;;
10040esac
10041 LIPO=$ac_ct_LIPO
10042 fi
10043else
10044 LIPO="$ac_cv_prog_LIPO"
9c60689e
DWT
10045fi
10046
a243b558
JF
10047 if test -n "$ac_tool_prefix"; then
10048 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10049set dummy ${ac_tool_prefix}otool; ac_word=$2
10050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10051$as_echo_n "checking for $ac_word... " >&6; }
10052if ${ac_cv_prog_OTOOL+:} false; then :
10053 $as_echo_n "(cached) " >&6
10054else
10055 if test -n "$OTOOL"; then
10056 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10057else
10058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10059for as_dir in $PATH
10060do
10061 IFS=$as_save_IFS
10062 test -z "$as_dir" && as_dir=.
10063 for ac_exec_ext in '' $ac_executable_extensions; do
10064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10065 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10067 break 2
10068 fi
10069done
10070 done
10071IFS=$as_save_IFS
9c60689e 10072
a243b558
JF
10073fi
10074fi
10075OTOOL=$ac_cv_prog_OTOOL
10076if test -n "$OTOOL"; then
10077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10078$as_echo "$OTOOL" >&6; }
10079else
10080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10081$as_echo "no" >&6; }
10082fi
9c60689e
DWT
10083
10084
a243b558
JF
10085fi
10086if test -z "$ac_cv_prog_OTOOL"; then
10087 ac_ct_OTOOL=$OTOOL
10088 # Extract the first word of "otool", so it can be a program name with args.
10089set dummy otool; ac_word=$2
10090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10091$as_echo_n "checking for $ac_word... " >&6; }
10092if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
10093 $as_echo_n "(cached) " >&6
10094else
10095 if test -n "$ac_ct_OTOOL"; then
10096 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10097else
10098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10099for as_dir in $PATH
10100do
10101 IFS=$as_save_IFS
10102 test -z "$as_dir" && as_dir=.
10103 for ac_exec_ext in '' $ac_executable_extensions; do
10104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10105 ac_cv_prog_ac_ct_OTOOL="otool"
10106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10107 break 2
10108 fi
10109done
10110 done
10111IFS=$as_save_IFS
9c60689e 10112
a243b558
JF
10113fi
10114fi
10115ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10116if test -n "$ac_ct_OTOOL"; then
10117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10118$as_echo "$ac_ct_OTOOL" >&6; }
10119else
10120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10121$as_echo "no" >&6; }
10122fi
9c60689e 10123
a243b558
JF
10124 if test "x$ac_ct_OTOOL" = x; then
10125 OTOOL=":"
10126 else
10127 case $cross_compiling:$ac_tool_warned in
10128yes:)
10129{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10130$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10131ac_tool_warned=yes ;;
10132esac
10133 OTOOL=$ac_ct_OTOOL
10134 fi
10135else
10136 OTOOL="$ac_cv_prog_OTOOL"
10137fi
9c60689e 10138
a243b558
JF
10139 if test -n "$ac_tool_prefix"; then
10140 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10141set dummy ${ac_tool_prefix}otool64; ac_word=$2
10142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10143$as_echo_n "checking for $ac_word... " >&6; }
10144if ${ac_cv_prog_OTOOL64+:} false; then :
10145 $as_echo_n "(cached) " >&6
10146else
10147 if test -n "$OTOOL64"; then
10148 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10149else
10150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10151for as_dir in $PATH
10152do
10153 IFS=$as_save_IFS
10154 test -z "$as_dir" && as_dir=.
10155 for ac_exec_ext in '' $ac_executable_extensions; do
10156 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10157 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10159 break 2
10160 fi
10161done
10162 done
10163IFS=$as_save_IFS
9c60689e 10164
a243b558
JF
10165fi
10166fi
10167OTOOL64=$ac_cv_prog_OTOOL64
10168if test -n "$OTOOL64"; then
10169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10170$as_echo "$OTOOL64" >&6; }
10171else
10172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10173$as_echo "no" >&6; }
10174fi
9c60689e 10175
9c60689e 10176
a243b558
JF
10177fi
10178if test -z "$ac_cv_prog_OTOOL64"; then
10179 ac_ct_OTOOL64=$OTOOL64
10180 # Extract the first word of "otool64", so it can be a program name with args.
10181set dummy otool64; ac_word=$2
10182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10183$as_echo_n "checking for $ac_word... " >&6; }
10184if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
10185 $as_echo_n "(cached) " >&6
10186else
10187 if test -n "$ac_ct_OTOOL64"; then
10188 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10189else
10190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10191for as_dir in $PATH
10192do
10193 IFS=$as_save_IFS
10194 test -z "$as_dir" && as_dir=.
10195 for ac_exec_ext in '' $ac_executable_extensions; do
10196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10197 ac_cv_prog_ac_ct_OTOOL64="otool64"
10198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10199 break 2
10200 fi
10201done
10202 done
10203IFS=$as_save_IFS
9c60689e 10204
a243b558
JF
10205fi
10206fi
10207ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10208if test -n "$ac_ct_OTOOL64"; then
10209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10210$as_echo "$ac_ct_OTOOL64" >&6; }
10211else
10212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10213$as_echo "no" >&6; }
10214fi
9c60689e 10215
a243b558
JF
10216 if test "x$ac_ct_OTOOL64" = x; then
10217 OTOOL64=":"
10218 else
10219 case $cross_compiling:$ac_tool_warned in
10220yes:)
10221{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10222$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10223ac_tool_warned=yes ;;
10224esac
10225 OTOOL64=$ac_ct_OTOOL64
10226 fi
10227else
10228 OTOOL64="$ac_cv_prog_OTOOL64"
10229fi
ee134472 10230
9c60689e 10231
9c60689e 10232
9c60689e 10233
9c60689e 10234
9c60689e 10235
ee134472 10236
9c60689e 10237
9c60689e 10238
9c60689e 10239
9c60689e 10240
9c60689e 10241
9c60689e 10242
9c60689e 10243
9c60689e 10244
9c60689e 10245
9c60689e 10246
9c60689e 10247
9c60689e 10248
9c60689e 10249
9c60689e 10250
9c60689e 10251
9c60689e 10252
9c60689e 10253
9c60689e 10254
a243b558
JF
10255
10256
10257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10258$as_echo_n "checking for -single_module linker flag... " >&6; }
10259if ${lt_cv_apple_cc_single_mod+:} false; then :
ee134472
JF
10260 $as_echo_n "(cached) " >&6
10261else
a243b558 10262 lt_cv_apple_cc_single_mod=no
9d54db95 10263 if test -z "$LT_MULTI_MODULE"; then
a243b558
JF
10264 # By default we will add the -single_module flag. You can override
10265 # by either setting the environment variable LT_MULTI_MODULE
10266 # non-empty at configure time, or by adding -multi_module to the
10267 # link flags.
10268 rm -rf libconftest.dylib*
10269 echo "int foo(void){return 1;}" > conftest.c
10270 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10271-dynamiclib -Wl,-single_module conftest.c" >&5
10272 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10273 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10274 _lt_result=$?
10275 # If there is a non-empty error log, and "single_module"
10276 # appears in it, assume the flag caused a linker warning
10277 if test -s conftest.err && $GREP single_module conftest.err; then
10278 cat conftest.err >&5
10279 # Otherwise, if the output was created with a 0 exit code from
10280 # the compiler, it worked.
9d54db95 10281 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
a243b558
JF
10282 lt_cv_apple_cc_single_mod=yes
10283 else
10284 cat conftest.err >&5
10285 fi
10286 rm -rf libconftest.dylib*
10287 rm -f conftest.*
10288 fi
ee134472 10289fi
a243b558
JF
10290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10291$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9c60689e 10292
a243b558
JF
10293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10294$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10295if ${lt_cv_ld_exported_symbols_list+:} false; then :
9c60689e
DWT
10296 $as_echo_n "(cached) " >&6
10297else
a243b558
JF
10298 lt_cv_ld_exported_symbols_list=no
10299 save_LDFLAGS=$LDFLAGS
10300 echo "_main" > conftest.sym
10301 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10303/* end confdefs.h. */
9c60689e 10304
a243b558
JF
10305int
10306main ()
10307{
9c60689e 10308
a243b558
JF
10309 ;
10310 return 0;
10311}
10312_ACEOF
10313if ac_fn_c_try_link "$LINENO"; then :
10314 lt_cv_ld_exported_symbols_list=yes
9c60689e 10315else
a243b558 10316 lt_cv_ld_exported_symbols_list=no
9c60689e 10317fi
a243b558
JF
10318rm -f core conftest.err conftest.$ac_objext \
10319 conftest$ac_exeext conftest.$ac_ext
9d54db95 10320 LDFLAGS=$save_LDFLAGS
9c60689e
DWT
10321
10322fi
a243b558
JF
10323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10324$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9c60689e 10325
a243b558
JF
10326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10327$as_echo_n "checking for -force_load linker flag... " >&6; }
10328if ${lt_cv_ld_force_load+:} false; then :
9c60689e
DWT
10329 $as_echo_n "(cached) " >&6
10330else
a243b558
JF
10331 lt_cv_ld_force_load=no
10332 cat > conftest.c << _LT_EOF
10333int forced_loaded() { return 2;}
10334_LT_EOF
10335 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10336 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10337 echo "$AR cru libconftest.a conftest.o" >&5
10338 $AR cru libconftest.a conftest.o 2>&5
10339 echo "$RANLIB libconftest.a" >&5
10340 $RANLIB libconftest.a 2>&5
10341 cat > conftest.c << _LT_EOF
10342int main() { return 0;}
10343_LT_EOF
10344 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10345 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10346 _lt_result=$?
10347 if test -s conftest.err && $GREP force_load conftest.err; then
10348 cat conftest.err >&5
9d54db95 10349 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
a243b558
JF
10350 lt_cv_ld_force_load=yes
10351 else
10352 cat conftest.err >&5
10353 fi
10354 rm -f conftest.err libconftest.a conftest conftest.c
10355 rm -rf conftest.dSYM
9c60689e
DWT
10356
10357fi
a243b558
JF
10358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10359$as_echo "$lt_cv_ld_force_load" >&6; }
10360 case $host_os in
10361 rhapsody* | darwin1.[012])
9d54db95 10362 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
a243b558 10363 darwin1.*)
9d54db95 10364 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
a243b558
JF
10365 darwin*) # darwin 5.x on
10366 # if running on 10.5 or later, the deployment target defaults
10367 # to the OS version, if on x86, and 10.4, the deployment
10368 # target defaults to 10.4. Don't you love it?
10369 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10370 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9d54db95
JF
10371 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10372 10.[012][,.]*)
10373 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
a243b558 10374 10.*)
9d54db95 10375 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
a243b558
JF
10376 esac
10377 ;;
10378 esac
9d54db95 10379 if test yes = "$lt_cv_apple_cc_single_mod"; then
a243b558
JF
10380 _lt_dar_single_mod='$single_module'
10381 fi
9d54db95
JF
10382 if test yes = "$lt_cv_ld_exported_symbols_list"; then
10383 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
a243b558 10384 else
9d54db95 10385 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
a243b558 10386 fi
9d54db95 10387 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
a243b558
JF
10388 _lt_dsymutil='~$DSYMUTIL $lib || :'
10389 else
10390 _lt_dsymutil=
10391 fi
10392 ;;
10393 esac
9c60689e 10394
9d54db95
JF
10395# func_munge_path_list VARIABLE PATH
10396# -----------------------------------
10397# VARIABLE is name of variable containing _space_ separated list of
10398# directories to be munged by the contents of PATH, which is string
10399# having a format:
10400# "DIR[:DIR]:"
10401# string "DIR[ DIR]" will be prepended to VARIABLE
10402# ":DIR[:DIR]"
10403# string "DIR[ DIR]" will be appended to VARIABLE
10404# "DIRP[:DIRP]::[DIRA:]DIRA"
10405# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
10406# "DIRA[ DIRA]" will be appended to VARIABLE
10407# "DIR[:DIR]"
10408# VARIABLE will be replaced by "DIR[ DIR]"
10409func_munge_path_list ()
10410{
10411 case x$2 in
10412 x)
10413 ;;
10414 *:)
10415 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
10416 ;;
10417 x:*)
10418 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
10419 ;;
10420 *::*)
10421 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
10422 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
10423 ;;
10424 *)
10425 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
10426 ;;
10427 esac
10428}
10429
9c60689e 10430
a243b558
JF
10431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
10432$as_echo_n "checking for ANSI C header files... " >&6; }
10433if ${ac_cv_header_stdc+:} false; then :
9c60689e
DWT
10434 $as_echo_n "(cached) " >&6
10435else
a243b558
JF
10436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10437/* end confdefs.h. */
10438#include <stdlib.h>
10439#include <stdarg.h>
10440#include <string.h>
10441#include <float.h>
9c60689e 10442
a243b558
JF
10443int
10444main ()
10445{
9c60689e 10446
a243b558
JF
10447 ;
10448 return 0;
10449}
10450_ACEOF
10451if ac_fn_c_try_compile "$LINENO"; then :
10452 ac_cv_header_stdc=yes
10453else
10454 ac_cv_header_stdc=no
9c60689e 10455fi
a243b558
JF
10456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10457
10458if test $ac_cv_header_stdc = yes; then
10459 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10461/* end confdefs.h. */
10462#include <string.h>
9c60689e 10463
a243b558
JF
10464_ACEOF
10465if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10466 $EGREP "memchr" >/dev/null 2>&1; then :
9c60689e 10467
a243b558
JF
10468else
10469 ac_cv_header_stdc=no
10470fi
10471rm -f conftest*
9c60689e 10472
a243b558
JF
10473fi
10474
10475if test $ac_cv_header_stdc = yes; then
10476 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10478/* end confdefs.h. */
10479#include <stdlib.h>
10480
10481_ACEOF
10482if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10483 $EGREP "free" >/dev/null 2>&1; then :
9c60689e 10484
9c60689e 10485else
a243b558 10486 ac_cv_header_stdc=no
9c60689e 10487fi
a243b558 10488rm -f conftest*
9c60689e 10489
a243b558 10490fi
9c60689e 10491
a243b558
JF
10492if test $ac_cv_header_stdc = yes; then
10493 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10494 if test "$cross_compiling" = yes; then :
10495 :
10496else
10497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10498/* end confdefs.h. */
10499#include <ctype.h>
10500#include <stdlib.h>
10501#if ((' ' & 0x0FF) == 0x020)
10502# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10503# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10504#else
10505# define ISLOWER(c) \
10506 (('a' <= (c) && (c) <= 'i') \
10507 || ('j' <= (c) && (c) <= 'r') \
10508 || ('s' <= (c) && (c) <= 'z'))
10509# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10510#endif
9c60689e 10511
a243b558
JF
10512#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10513int
10514main ()
10515{
10516 int i;
10517 for (i = 0; i < 256; i++)
10518 if (XOR (islower (i), ISLOWER (i))
10519 || toupper (i) != TOUPPER (i))
10520 return 2;
10521 return 0;
10522}
10523_ACEOF
10524if ac_fn_c_try_run "$LINENO"; then :
9c60689e 10525
a243b558
JF
10526else
10527 ac_cv_header_stdc=no
10528fi
10529rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10530 conftest.$ac_objext conftest.beam conftest.$ac_ext
10531fi
9c60689e 10532
a243b558
JF
10533fi
10534fi
10535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
10536$as_echo "$ac_cv_header_stdc" >&6; }
10537if test $ac_cv_header_stdc = yes; then
9c60689e 10538
a243b558 10539$as_echo "#define STDC_HEADERS 1" >>confdefs.h
9c60689e 10540
a243b558 10541fi
9c60689e 10542
a243b558
JF
10543# On IRIX 5.3, sys/types and inttypes.h are conflicting.
10544for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
10545 inttypes.h stdint.h unistd.h
10546do :
10547 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10548ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
10549"
10550if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10551 cat >>confdefs.h <<_ACEOF
10552#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10553_ACEOF
9c60689e 10554
a243b558 10555fi
ee134472 10556
a243b558 10557done
ee134472 10558
9c60689e 10559
a243b558
JF
10560for ac_header in dlfcn.h
10561do :
10562 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10563"
10564if test "x$ac_cv_header_dlfcn_h" = xyes; then :
10565 cat >>confdefs.h <<_ACEOF
10566#define HAVE_DLFCN_H 1
10567_ACEOF
9c60689e 10568
a243b558 10569fi
9c60689e 10570
a243b558 10571done
9c60689e 10572
9c60689e 10573
9c60689e 10574
9c60689e 10575
a243b558
JF
10576func_stripname_cnf ()
10577{
9d54db95
JF
10578 case $2 in
10579 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
10580 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
a243b558
JF
10581 esac
10582} # func_stripname_cnf
9c60689e 10583
9c60689e 10584
ee134472 10585
a243b558
JF
10586
10587
10588# Set options
10589# Check whether --enable-static was given.
10590if test "${enable_static+set}" = set; then :
10591 enableval=$enable_static; p=${PACKAGE-default}
10592 case $enableval in
10593 yes) enable_static=yes ;;
10594 no) enable_static=no ;;
10595 *)
10596 enable_static=no
10597 # Look at the argument we got. We use all the common list separators.
9d54db95 10598 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
a243b558 10599 for pkg in $enableval; do
9d54db95 10600 IFS=$lt_save_ifs
a243b558
JF
10601 if test "X$pkg" = "X$p"; then
10602 enable_static=yes
10603 fi
10604 done
9d54db95 10605 IFS=$lt_save_ifs
9c60689e 10606 ;;
a243b558
JF
10607 esac
10608else
10609 enable_static=no
10610fi
9c60689e 10611
9c60689e 10612
9c60689e 10613
9c60689e 10614
9c60689e 10615
9c60689e 10616
9c60689e 10617
9c60689e 10618
9c60689e 10619
9c60689e 10620
a243b558 10621 enable_dlopen=no
9c60689e 10622
9c60689e 10623
a243b558
JF
10624 enable_win32_dll=no
10625
10626
10627 # Check whether --enable-shared was given.
10628if test "${enable_shared+set}" = set; then :
10629 enableval=$enable_shared; p=${PACKAGE-default}
10630 case $enableval in
10631 yes) enable_shared=yes ;;
10632 no) enable_shared=no ;;
9c60689e 10633 *)
a243b558
JF
10634 enable_shared=no
10635 # Look at the argument we got. We use all the common list separators.
9d54db95 10636 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
a243b558 10637 for pkg in $enableval; do
9d54db95 10638 IFS=$lt_save_ifs
a243b558
JF
10639 if test "X$pkg" = "X$p"; then
10640 enable_shared=yes
10641 fi
10642 done
9d54db95 10643 IFS=$lt_save_ifs
9c60689e
DWT
10644 ;;
10645 esac
a243b558
JF
10646else
10647 enable_shared=yes
10648fi
9c60689e 10649
9c60689e 10650
9c60689e 10651
9c60689e 10652
9c60689e 10653
9c60689e 10654
9c60689e 10655
9c60689e 10656
9c60689e 10657
9c60689e 10658
9c60689e 10659
a243b558
JF
10660# Check whether --with-pic was given.
10661if test "${with_pic+set}" = set; then :
10662 withval=$with_pic; lt_p=${PACKAGE-default}
10663 case $withval in
10664 yes|no) pic_mode=$withval ;;
10665 *)
10666 pic_mode=default
10667 # Look at the argument we got. We use all the common list separators.
9d54db95 10668 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
a243b558 10669 for lt_pkg in $withval; do
9d54db95 10670 IFS=$lt_save_ifs
a243b558
JF
10671 if test "X$lt_pkg" = "X$lt_p"; then
10672 pic_mode=yes
10673 fi
10674 done
9d54db95 10675 IFS=$lt_save_ifs
a243b558
JF
10676 ;;
10677 esac
10678else
10679 pic_mode=default
9c60689e 10680fi
ee134472 10681
ee134472 10682
9c60689e 10683
9c60689e 10684
9c60689e 10685
ee134472 10686
ee134472 10687
9c60689e 10688
a243b558
JF
10689 # Check whether --enable-fast-install was given.
10690if test "${enable_fast_install+set}" = set; then :
10691 enableval=$enable_fast_install; p=${PACKAGE-default}
10692 case $enableval in
10693 yes) enable_fast_install=yes ;;
10694 no) enable_fast_install=no ;;
10695 *)
10696 enable_fast_install=no
10697 # Look at the argument we got. We use all the common list separators.
9d54db95 10698 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
a243b558 10699 for pkg in $enableval; do
9d54db95 10700 IFS=$lt_save_ifs
a243b558
JF
10701 if test "X$pkg" = "X$p"; then
10702 enable_fast_install=yes
9c60689e 10703 fi
a243b558 10704 done
9d54db95 10705 IFS=$lt_save_ifs
9c60689e 10706 ;;
a243b558
JF
10707 esac
10708else
10709 enable_fast_install=yes
10710fi
9c60689e 10711
9c60689e 10712
9c60689e 10713
9c60689e 10714
9c60689e
DWT
10715
10716
53ba6704 10717
9c60689e 10718
9d54db95
JF
10719 shared_archive_member_spec=
10720case $host,$enable_shared in
10721power*-*-aix[5-9]*,yes)
10722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
10723$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
10724
10725# Check whether --with-aix-soname was given.
10726if test "${with_aix_soname+set}" = set; then :
10727 withval=$with_aix_soname; case $withval in
10728 aix|svr4|both)
10729 ;;
10730 *)
10731 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
10732 ;;
10733 esac
10734 lt_cv_with_aix_soname=$with_aix_soname
10735else
10736 if ${lt_cv_with_aix_soname+:} false; then :
10737 $as_echo_n "(cached) " >&6
10738else
10739 lt_cv_with_aix_soname=aix
10740fi
10741
10742 with_aix_soname=$lt_cv_with_aix_soname
10743fi
10744
10745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
10746$as_echo "$with_aix_soname" >&6; }
10747 if test aix != "$with_aix_soname"; then
10748 # For the AIX way of multilib, we name the shared archive member
10749 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
10750 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
10751 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
10752 # the AIX toolchain works better with OBJECT_MODE set (default 32).
10753 if test 64 = "${OBJECT_MODE-32}"; then
10754 shared_archive_member_spec=shr_64
10755 else
10756 shared_archive_member_spec=shr
10757 fi
10758 fi
10759 ;;
10760*)
10761 with_aix_soname=aix
10762 ;;
10763esac
10764
10765
10766
10767
10768
10769
10770
9c60689e 10771
9c60689e 10772
9c60689e 10773
a243b558 10774# This can be used to rebuild libtool when needed
9d54db95 10775LIBTOOL_DEPS=$ltmain
9c60689e 10776
a243b558
JF
10777# Always use our own libtool.
10778LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9c60689e 10779
9c60689e 10780
9c60689e 10781
9c60689e 10782
9c60689e 10783
ee134472 10784
ee134472 10785
ee134472 10786
ee134472 10787
9c60689e 10788
9c60689e 10789
9c60689e 10790
9c60689e 10791
9c60689e 10792
9c60689e 10793
9c60689e 10794
9c60689e 10795
9c60689e 10796
9c60689e 10797
9c60689e 10798
9c60689e 10799
9c60689e 10800
9c60689e 10801
9c60689e 10802
9c60689e 10803
9c60689e 10804
9c60689e 10805
9c60689e 10806
9c60689e 10807
9c60689e 10808
a243b558 10809test -z "$LN_S" && LN_S="ln -s"
9c60689e
DWT
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
9d54db95 10824if test -n "${ZSH_VERSION+set}"; then
a243b558
JF
10825 setopt NO_GLOB_SUBST
10826fi
9c60689e 10827
a243b558
JF
10828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10829$as_echo_n "checking for objdir... " >&6; }
10830if ${lt_cv_objdir+:} false; then :
ee134472
JF
10831 $as_echo_n "(cached) " >&6
10832else
a243b558
JF
10833 rm -f .libs 2>/dev/null
10834mkdir .libs 2>/dev/null
10835if test -d .libs; then
10836 lt_cv_objdir=.libs
10837else
10838 # MS-DOS does not allow filenames that begin with a dot.
10839 lt_cv_objdir=_libs
ee134472 10840fi
a243b558
JF
10841rmdir .libs 2>/dev/null
10842fi
10843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10844$as_echo "$lt_cv_objdir" >&6; }
10845objdir=$lt_cv_objdir
9c60689e
DWT
10846
10847
10848
10849
10850
a243b558
JF
10851cat >>confdefs.h <<_ACEOF
10852#define LT_OBJDIR "$lt_cv_objdir/"
10853_ACEOF
9c60689e
DWT
10854
10855
10856
10857
a243b558
JF
10858case $host_os in
10859aix3*)
10860 # AIX sometimes has problems with the GCC collect2 program. For some
10861 # reason, if we set the COLLECT_NAMES environment variable, the problems
10862 # vanish in a puff of smoke.
9d54db95 10863 if test set != "${COLLECT_NAMES+set}"; then
a243b558
JF
10864 COLLECT_NAMES=
10865 export COLLECT_NAMES
10866 fi
10867 ;;
10868esac
9c60689e 10869
a243b558
JF
10870# Global variables:
10871ofile=libtool
10872can_build_shared=yes
9c60689e 10873
9d54db95 10874# All known linkers require a '.a' archive for static linking (except MSVC,
a243b558
JF
10875# which needs '.lib').
10876libext=a
9c60689e 10877
9d54db95 10878with_gnu_ld=$lt_cv_prog_gnu_ld
9c60689e 10879
9d54db95
JF
10880old_CC=$CC
10881old_CFLAGS=$CFLAGS
9c60689e 10882
a243b558
JF
10883# Set sane defaults for various variables
10884test -z "$CC" && CC=cc
10885test -z "$LTCC" && LTCC=$CC
10886test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10887test -z "$LD" && LD=ld
10888test -z "$ac_objext" && ac_objext=o
9c60689e 10889
9d54db95
JF
10890func_cc_basename $compiler
10891cc_basename=$func_cc_basename_result
9c60689e
DWT
10892
10893
a243b558
JF
10894# Only perform the check for file, if the check method requires it
10895test -z "$MAGIC_CMD" && MAGIC_CMD=file
10896case $deplibs_check_method in
10897file_magic*)
10898 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10900$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10901if ${lt_cv_path_MAGIC_CMD+:} false; then :
10902 $as_echo_n "(cached) " >&6
10903else
10904 case $MAGIC_CMD in
10905[\\/*] | ?:[\\/]*)
9d54db95 10906 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
a243b558
JF
10907 ;;
10908*)
9d54db95
JF
10909 lt_save_MAGIC_CMD=$MAGIC_CMD
10910 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
a243b558
JF
10911 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10912 for ac_dir in $ac_dummy; do
9d54db95 10913 IFS=$lt_save_ifs
a243b558 10914 test -z "$ac_dir" && ac_dir=.
9d54db95
JF
10915 if test -f "$ac_dir/${ac_tool_prefix}file"; then
10916 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
a243b558
JF
10917 if test -n "$file_magic_test_file"; then
10918 case $deplibs_check_method in
10919 "file_magic "*)
10920 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9d54db95 10921 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
a243b558
JF
10922 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10923 $EGREP "$file_magic_regex" > /dev/null; then
10924 :
10925 else
10926 cat <<_LT_EOF 1>&2
9c60689e 10927
a243b558
JF
10928*** Warning: the command libtool uses to detect shared libraries,
10929*** $file_magic_cmd, produces output that libtool cannot recognize.
10930*** The result is that libtool may fail to recognize shared libraries
10931*** as such. This will affect the creation of libtool libraries that
10932*** depend on shared libraries, but programs linked with such libtool
10933*** libraries will work regardless of this problem. Nevertheless, you
10934*** may want to report the problem to your system manager and/or to
10935*** bug-libtool@gnu.org
9c60689e 10936
a243b558
JF
10937_LT_EOF
10938 fi ;;
10939 esac
10940 fi
10941 break
10942 fi
10943 done
9d54db95
JF
10944 IFS=$lt_save_ifs
10945 MAGIC_CMD=$lt_save_MAGIC_CMD
a243b558
JF
10946 ;;
10947esac
10948fi
9c60689e 10949
9d54db95 10950MAGIC_CMD=$lt_cv_path_MAGIC_CMD
a243b558
JF
10951if test -n "$MAGIC_CMD"; then
10952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10953$as_echo "$MAGIC_CMD" >&6; }
10954else
10955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10956$as_echo "no" >&6; }
10957fi
9c60689e
DWT
10958
10959
10960
10961
10962
a243b558
JF
10963if test -z "$lt_cv_path_MAGIC_CMD"; then
10964 if test -n "$ac_tool_prefix"; then
10965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10966$as_echo_n "checking for file... " >&6; }
10967if ${lt_cv_path_MAGIC_CMD+:} false; then :
10968 $as_echo_n "(cached) " >&6
10969else
10970 case $MAGIC_CMD in
10971[\\/*] | ?:[\\/]*)
9d54db95 10972 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
a243b558
JF
10973 ;;
10974*)
9d54db95
JF
10975 lt_save_MAGIC_CMD=$MAGIC_CMD
10976 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
a243b558
JF
10977 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10978 for ac_dir in $ac_dummy; do
9d54db95 10979 IFS=$lt_save_ifs
a243b558 10980 test -z "$ac_dir" && ac_dir=.
9d54db95
JF
10981 if test -f "$ac_dir/file"; then
10982 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
a243b558
JF
10983 if test -n "$file_magic_test_file"; then
10984 case $deplibs_check_method in
10985 "file_magic "*)
10986 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9d54db95 10987 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
a243b558
JF
10988 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10989 $EGREP "$file_magic_regex" > /dev/null; then
10990 :
10991 else
10992 cat <<_LT_EOF 1>&2
9c60689e 10993
a243b558
JF
10994*** Warning: the command libtool uses to detect shared libraries,
10995*** $file_magic_cmd, produces output that libtool cannot recognize.
10996*** The result is that libtool may fail to recognize shared libraries
10997*** as such. This will affect the creation of libtool libraries that
10998*** depend on shared libraries, but programs linked with such libtool
10999*** libraries will work regardless of this problem. Nevertheless, you
11000*** may want to report the problem to your system manager and/or to
11001*** bug-libtool@gnu.org
9c60689e 11002
a243b558
JF
11003_LT_EOF
11004 fi ;;
11005 esac
11006 fi
11007 break
11008 fi
11009 done
9d54db95
JF
11010 IFS=$lt_save_ifs
11011 MAGIC_CMD=$lt_save_MAGIC_CMD
a243b558
JF
11012 ;;
11013esac
11014fi
9c60689e 11015
9d54db95 11016MAGIC_CMD=$lt_cv_path_MAGIC_CMD
a243b558
JF
11017if test -n "$MAGIC_CMD"; then
11018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11019$as_echo "$MAGIC_CMD" >&6; }
11020else
11021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11022$as_echo "no" >&6; }
11023fi
9c60689e
DWT
11024
11025
a243b558
JF
11026 else
11027 MAGIC_CMD=:
11028 fi
11029fi
9c60689e 11030
a243b558
JF
11031 fi
11032 ;;
11033esac
9c60689e 11034
a243b558 11035# Use C for the default configuration in the libtool script
9c60689e 11036
9d54db95 11037lt_save_CC=$CC
a243b558
JF
11038ac_ext=c
11039ac_cpp='$CPP $CPPFLAGS'
11040ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11041ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11042ac_compiler_gnu=$ac_cv_c_compiler_gnu
9c60689e
DWT
11043
11044
a243b558
JF
11045# Source file extension for C test sources.
11046ac_ext=c
9c60689e 11047
a243b558
JF
11048# Object file extension for compiled C test sources.
11049objext=o
11050objext=$objext
9c60689e 11051
a243b558
JF
11052# Code to be used in simple compile tests
11053lt_simple_compile_test_code="int some_variable = 0;"
9c60689e 11054
a243b558
JF
11055# Code to be used in simple link tests
11056lt_simple_link_test_code='int main(){return(0);}'
9c60689e
DWT
11057
11058
11059
11060
11061
11062
11063
a243b558
JF
11064# If no C compiler was specified, use CC.
11065LTCC=${LTCC-"$CC"}
9c60689e 11066
a243b558
JF
11067# If no C compiler flags were specified, use CFLAGS.
11068LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9c60689e 11069
a243b558
JF
11070# Allow CC to be a program name with arguments.
11071compiler=$CC
9c60689e 11072
a243b558
JF
11073# Save the default compiler, since it gets overwritten when the other
11074# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11075compiler_DEFAULT=$CC
9c60689e 11076
a243b558
JF
11077# save warnings/boilerplate of simple test code
11078ac_outfile=conftest.$ac_objext
11079echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11080eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11081_lt_compiler_boilerplate=`cat conftest.err`
00a96142 11082$RM -r conftest*
9c60689e 11083
a243b558
JF
11084ac_outfile=conftest.$ac_objext
11085echo "$lt_simple_link_test_code" >conftest.$ac_ext
11086eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11087_lt_linker_boilerplate=`cat conftest.err`
11088$RM -r conftest*
9c60689e
DWT
11089
11090
a243b558
JF
11091## CAVEAT EMPTOR:
11092## There is no encapsulation within the following macros, do not change
11093## the running order or otherwise move them around unless you know exactly
11094## what you are doing...
11095if test -n "$compiler"; then
9c60689e 11096
a243b558 11097lt_prog_compiler_no_builtin_flag=
9c60689e 11098
9d54db95 11099if test yes = "$GCC"; then
a243b558
JF
11100 case $cc_basename in
11101 nvcc*)
11102 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
11103 *)
11104 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
11105 esac
9c60689e 11106
a243b558
JF
11107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11108$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11109if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
11110 $as_echo_n "(cached) " >&6
11111else
11112 lt_cv_prog_compiler_rtti_exceptions=no
11113 ac_outfile=conftest.$ac_objext
11114 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9d54db95 11115 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
a243b558
JF
11116 # Insert the option either (1) after the last *FLAGS variable, or
11117 # (2) before a word containing "conftest.", or (3) at the end.
11118 # Note that $ac_compile itself does not contain backslashes and begins
11119 # with a dollar sign (not a hyphen), so the echo should work correctly.
11120 # The option is referenced via a variable to avoid confusing sed.
11121 lt_compile=`echo "$ac_compile" | $SED \
11122 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11123 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11124 -e 's:$: $lt_compiler_flag:'`
11125 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11126 (eval "$lt_compile" 2>conftest.err)
11127 ac_status=$?
11128 cat conftest.err >&5
11129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11130 if (exit $ac_status) && test -s "$ac_outfile"; then
11131 # The compiler can only warn and ignore the option if not recognized
11132 # So say no if there are warnings other than the usual output.
11133 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11134 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11135 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11136 lt_cv_prog_compiler_rtti_exceptions=yes
11137 fi
11138 fi
00a96142 11139 $RM -r conftest*
9c60689e 11140
a243b558
JF
11141fi
11142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11143$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9c60689e 11144
9d54db95 11145if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
a243b558
JF
11146 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11147else
11148 :
11149fi
9c60689e 11150
a243b558 11151fi
9c60689e
DWT
11152
11153
11154
11155
11156
11157
a243b558
JF
11158 lt_prog_compiler_wl=
11159lt_prog_compiler_pic=
11160lt_prog_compiler_static=
9c60689e
DWT
11161
11162
9d54db95 11163 if test yes = "$GCC"; then
a243b558
JF
11164 lt_prog_compiler_wl='-Wl,'
11165 lt_prog_compiler_static='-static'
9c60689e 11166
a243b558
JF
11167 case $host_os in
11168 aix*)
11169 # All AIX code is PIC.
9d54db95 11170 if test ia64 = "$host_cpu"; then
a243b558
JF
11171 # AIX 5 now supports IA64 processor
11172 lt_prog_compiler_static='-Bstatic'
11173 fi
9d54db95 11174 lt_prog_compiler_pic='-fPIC'
a243b558 11175 ;;
9c60689e 11176
a243b558
JF
11177 amigaos*)
11178 case $host_cpu in
11179 powerpc)
11180 # see comment about AmigaOS4 .so support
11181 lt_prog_compiler_pic='-fPIC'
11182 ;;
11183 m68k)
11184 # FIXME: we need at least 68020 code to build shared libraries, but
9d54db95
JF
11185 # adding the '-m68020' flag to GCC prevents building anything better,
11186 # like '-m68040'.
a243b558
JF
11187 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11188 ;;
11189 esac
11190 ;;
9c60689e 11191
a243b558
JF
11192 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11193 # PIC is the default for these OSes.
11194 ;;
9c60689e 11195
a243b558
JF
11196 mingw* | cygwin* | pw32* | os2* | cegcc*)
11197 # This hack is so that the source file can tell whether it is being
11198 # built for inclusion in a dll (and should export symbols for example).
11199 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11200 # (--disable-auto-import) libraries
11201 lt_prog_compiler_pic='-DDLL_EXPORT'
9d54db95
JF
11202 case $host_os in
11203 os2*)
11204 lt_prog_compiler_static='$wl-static'
11205 ;;
11206 esac
a243b558 11207 ;;
9c60689e 11208
a243b558
JF
11209 darwin* | rhapsody*)
11210 # PIC is the default on this platform
11211 # Common symbols not allowed in MH_DYLIB files
11212 lt_prog_compiler_pic='-fno-common'
11213 ;;
9c60689e 11214
a243b558
JF
11215 haiku*)
11216 # PIC is the default for Haiku.
11217 # The "-static" flag exists, but is broken.
11218 lt_prog_compiler_static=
11219 ;;
9c60689e 11220
a243b558
JF
11221 hpux*)
11222 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11223 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11224 # sets the default TLS model and affects inlining.
11225 case $host_cpu in
11226 hppa*64*)
11227 # +Z the default
11228 ;;
11229 *)
11230 lt_prog_compiler_pic='-fPIC'
11231 ;;
11232 esac
11233 ;;
9c60689e 11234
a243b558
JF
11235 interix[3-9]*)
11236 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11237 # Instead, we relocate shared libraries at runtime.
11238 ;;
9c60689e 11239
a243b558
JF
11240 msdosdjgpp*)
11241 # Just because we use GCC doesn't mean we suddenly get shared libraries
11242 # on systems that don't support them.
11243 lt_prog_compiler_can_build_shared=no
11244 enable_shared=no
11245 ;;
9c60689e 11246
a243b558
JF
11247 *nto* | *qnx*)
11248 # QNX uses GNU C++, but need to define -shared option too, otherwise
11249 # it will coredump.
11250 lt_prog_compiler_pic='-fPIC -shared'
11251 ;;
9c60689e 11252
a243b558
JF
11253 sysv4*MP*)
11254 if test -d /usr/nec; then
11255 lt_prog_compiler_pic=-Kconform_pic
11256 fi
11257 ;;
9c60689e 11258
a243b558
JF
11259 *)
11260 lt_prog_compiler_pic='-fPIC'
11261 ;;
11262 esac
9c60689e 11263
a243b558
JF
11264 case $cc_basename in
11265 nvcc*) # Cuda Compiler Driver 2.2
11266 lt_prog_compiler_wl='-Xlinker '
11267 if test -n "$lt_prog_compiler_pic"; then
11268 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
11269 fi
11270 ;;
11271 esac
11272 else
11273 # PORTME Check for flag to pass linker flags through the system compiler.
11274 case $host_os in
11275 aix*)
11276 lt_prog_compiler_wl='-Wl,'
9d54db95 11277 if test ia64 = "$host_cpu"; then
a243b558
JF
11278 # AIX 5 now supports IA64 processor
11279 lt_prog_compiler_static='-Bstatic'
11280 else
11281 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11282 fi
11283 ;;
9c60689e 11284
9d54db95
JF
11285 darwin* | rhapsody*)
11286 # PIC is the default on this platform
11287 # Common symbols not allowed in MH_DYLIB files
11288 lt_prog_compiler_pic='-fno-common'
11289 case $cc_basename in
11290 nagfor*)
11291 # NAG Fortran compiler
11292 lt_prog_compiler_wl='-Wl,-Wl,,'
11293 lt_prog_compiler_pic='-PIC'
11294 lt_prog_compiler_static='-Bstatic'
11295 ;;
11296 esac
11297 ;;
11298
a243b558
JF
11299 mingw* | cygwin* | pw32* | os2* | cegcc*)
11300 # This hack is so that the source file can tell whether it is being
11301 # built for inclusion in a dll (and should export symbols for example).
11302 lt_prog_compiler_pic='-DDLL_EXPORT'
9d54db95
JF
11303 case $host_os in
11304 os2*)
11305 lt_prog_compiler_static='$wl-static'
11306 ;;
11307 esac
a243b558 11308 ;;
9c60689e 11309
a243b558
JF
11310 hpux9* | hpux10* | hpux11*)
11311 lt_prog_compiler_wl='-Wl,'
11312 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11313 # not for PA HP-UX.
11314 case $host_cpu in
11315 hppa*64*|ia64*)
11316 # +Z the default
11317 ;;
11318 *)
11319 lt_prog_compiler_pic='+Z'
11320 ;;
11321 esac
11322 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9d54db95 11323 lt_prog_compiler_static='$wl-a ${wl}archive'
a243b558 11324 ;;
9c60689e 11325
a243b558
JF
11326 irix5* | irix6* | nonstopux*)
11327 lt_prog_compiler_wl='-Wl,'
11328 # PIC (with -KPIC) is the default.
11329 lt_prog_compiler_static='-non_shared'
11330 ;;
9c60689e 11331
9d54db95 11332 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
a243b558 11333 case $cc_basename in
9d54db95 11334 # old Intel for x86_64, which still supported -KPIC.
a243b558
JF
11335 ecc*)
11336 lt_prog_compiler_wl='-Wl,'
11337 lt_prog_compiler_pic='-KPIC'
11338 lt_prog_compiler_static='-static'
11339 ;;
11340 # icc used to be incompatible with GCC.
11341 # ICC 10 doesn't accept -KPIC any more.
11342 icc* | ifort*)
11343 lt_prog_compiler_wl='-Wl,'
11344 lt_prog_compiler_pic='-fPIC'
11345 lt_prog_compiler_static='-static'
11346 ;;
11347 # Lahey Fortran 8.1.
11348 lf95*)
11349 lt_prog_compiler_wl='-Wl,'
11350 lt_prog_compiler_pic='--shared'
11351 lt_prog_compiler_static='--static'
11352 ;;
11353 nagfor*)
11354 # NAG Fortran compiler
11355 lt_prog_compiler_wl='-Wl,-Wl,,'
11356 lt_prog_compiler_pic='-PIC'
11357 lt_prog_compiler_static='-Bstatic'
11358 ;;
9d54db95
JF
11359 tcc*)
11360 # Fabrice Bellard et al's Tiny C Compiler
11361 lt_prog_compiler_wl='-Wl,'
11362 lt_prog_compiler_pic='-fPIC'
11363 lt_prog_compiler_static='-static'
11364 ;;
a243b558
JF
11365 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11366 # Portland Group compilers (*not* the Pentium gcc compiler,
11367 # which looks to be a dead project)
11368 lt_prog_compiler_wl='-Wl,'
11369 lt_prog_compiler_pic='-fpic'
11370 lt_prog_compiler_static='-Bstatic'
11371 ;;
11372 ccc*)
11373 lt_prog_compiler_wl='-Wl,'
11374 # All Alpha code is PIC.
11375 lt_prog_compiler_static='-non_shared'
11376 ;;
11377 xl* | bgxl* | bgf* | mpixl*)
11378 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11379 lt_prog_compiler_wl='-Wl,'
11380 lt_prog_compiler_pic='-qpic'
11381 lt_prog_compiler_static='-qstaticlink'
11382 ;;
11383 *)
11384 case `$CC -V 2>&1 | sed 5q` in
11385 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
11386 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11387 lt_prog_compiler_pic='-KPIC'
11388 lt_prog_compiler_static='-Bstatic'
11389 lt_prog_compiler_wl=''
11390 ;;
11391 *Sun\ F* | *Sun*Fortran*)
11392 lt_prog_compiler_pic='-KPIC'
11393 lt_prog_compiler_static='-Bstatic'
11394 lt_prog_compiler_wl='-Qoption ld '
11395 ;;
11396 *Sun\ C*)
11397 # Sun C 5.9
11398 lt_prog_compiler_pic='-KPIC'
11399 lt_prog_compiler_static='-Bstatic'
11400 lt_prog_compiler_wl='-Wl,'
11401 ;;
11402 *Intel*\ [CF]*Compiler*)
11403 lt_prog_compiler_wl='-Wl,'
11404 lt_prog_compiler_pic='-fPIC'
11405 lt_prog_compiler_static='-static'
11406 ;;
11407 *Portland\ Group*)
11408 lt_prog_compiler_wl='-Wl,'
11409 lt_prog_compiler_pic='-fpic'
11410 lt_prog_compiler_static='-Bstatic'
11411 ;;
11412 esac
11413 ;;
11414 esac
11415 ;;
9c60689e 11416
a243b558
JF
11417 newsos6)
11418 lt_prog_compiler_pic='-KPIC'
11419 lt_prog_compiler_static='-Bstatic'
11420 ;;
9c60689e 11421
a243b558
JF
11422 *nto* | *qnx*)
11423 # QNX uses GNU C++, but need to define -shared option too, otherwise
11424 # it will coredump.
11425 lt_prog_compiler_pic='-fPIC -shared'
11426 ;;
9c60689e 11427
a243b558
JF
11428 osf3* | osf4* | osf5*)
11429 lt_prog_compiler_wl='-Wl,'
11430 # All OSF/1 code is PIC.
11431 lt_prog_compiler_static='-non_shared'
11432 ;;
9c60689e 11433
a243b558
JF
11434 rdos*)
11435 lt_prog_compiler_static='-non_shared'
11436 ;;
9c60689e 11437
a243b558
JF
11438 solaris*)
11439 lt_prog_compiler_pic='-KPIC'
11440 lt_prog_compiler_static='-Bstatic'
11441 case $cc_basename in
11442 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
11443 lt_prog_compiler_wl='-Qoption ld ';;
11444 *)
11445 lt_prog_compiler_wl='-Wl,';;
11446 esac
11447 ;;
9c60689e 11448
a243b558
JF
11449 sunos4*)
11450 lt_prog_compiler_wl='-Qoption ld '
11451 lt_prog_compiler_pic='-PIC'
11452 lt_prog_compiler_static='-Bstatic'
11453 ;;
9c60689e 11454
a243b558
JF
11455 sysv4 | sysv4.2uw2* | sysv4.3*)
11456 lt_prog_compiler_wl='-Wl,'
11457 lt_prog_compiler_pic='-KPIC'
11458 lt_prog_compiler_static='-Bstatic'
11459 ;;
9c60689e 11460
a243b558 11461 sysv4*MP*)
9d54db95 11462 if test -d /usr/nec; then
a243b558
JF
11463 lt_prog_compiler_pic='-Kconform_pic'
11464 lt_prog_compiler_static='-Bstatic'
11465 fi
11466 ;;
9c60689e 11467
a243b558
JF
11468 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11469 lt_prog_compiler_wl='-Wl,'
11470 lt_prog_compiler_pic='-KPIC'
11471 lt_prog_compiler_static='-Bstatic'
11472 ;;
9c60689e 11473
a243b558
JF
11474 unicos*)
11475 lt_prog_compiler_wl='-Wl,'
11476 lt_prog_compiler_can_build_shared=no
11477 ;;
9c60689e 11478
a243b558
JF
11479 uts4*)
11480 lt_prog_compiler_pic='-pic'
11481 lt_prog_compiler_static='-Bstatic'
11482 ;;
9c60689e 11483
a243b558
JF
11484 *)
11485 lt_prog_compiler_can_build_shared=no
11486 ;;
11487 esac
11488 fi
9c60689e 11489
a243b558 11490case $host_os in
9d54db95 11491 # For platforms that do not support PIC, -DPIC is meaningless:
a243b558
JF
11492 *djgpp*)
11493 lt_prog_compiler_pic=
11494 ;;
11495 *)
11496 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11497 ;;
11498esac
9c60689e 11499
a243b558
JF
11500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11501$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11502if ${lt_cv_prog_compiler_pic+:} false; then :
11503 $as_echo_n "(cached) " >&6
11504else
11505 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
11506fi
11507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
11508$as_echo "$lt_cv_prog_compiler_pic" >&6; }
11509lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9c60689e 11510
a243b558
JF
11511#
11512# Check to make sure the PIC flag actually works.
11513#
11514if test -n "$lt_prog_compiler_pic"; then
11515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11516$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11517if ${lt_cv_prog_compiler_pic_works+:} false; then :
11518 $as_echo_n "(cached) " >&6
11519else
11520 lt_cv_prog_compiler_pic_works=no
11521 ac_outfile=conftest.$ac_objext
11522 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9d54db95 11523 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
a243b558
JF
11524 # Insert the option either (1) after the last *FLAGS variable, or
11525 # (2) before a word containing "conftest.", or (3) at the end.
11526 # Note that $ac_compile itself does not contain backslashes and begins
11527 # with a dollar sign (not a hyphen), so the echo should work correctly.
11528 # The option is referenced via a variable to avoid confusing sed.
11529 lt_compile=`echo "$ac_compile" | $SED \
11530 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11531 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11532 -e 's:$: $lt_compiler_flag:'`
11533 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11534 (eval "$lt_compile" 2>conftest.err)
11535 ac_status=$?
11536 cat conftest.err >&5
11537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11538 if (exit $ac_status) && test -s "$ac_outfile"; then
11539 # The compiler can only warn and ignore the option if not recognized
11540 # So say no if there are warnings other than the usual output.
11541 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11542 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11543 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11544 lt_cv_prog_compiler_pic_works=yes
11545 fi
11546 fi
00a96142 11547 $RM -r conftest*
9c60689e 11548
a243b558
JF
11549fi
11550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11551$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9c60689e 11552
9d54db95 11553if test yes = "$lt_cv_prog_compiler_pic_works"; then
a243b558
JF
11554 case $lt_prog_compiler_pic in
11555 "" | " "*) ;;
11556 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11557 esac
11558else
11559 lt_prog_compiler_pic=
11560 lt_prog_compiler_can_build_shared=no
11561fi
9c60689e 11562
a243b558 11563fi
9c60689e
DWT
11564
11565
11566
11567
11568
11569
9c60689e
DWT
11570
11571
11572
11573
11574
a243b558
JF
11575#
11576# Check to make sure the static flag actually works.
11577#
11578wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11580$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11581if ${lt_cv_prog_compiler_static_works+:} false; then :
11582 $as_echo_n "(cached) " >&6
11583else
11584 lt_cv_prog_compiler_static_works=no
9d54db95 11585 save_LDFLAGS=$LDFLAGS
a243b558
JF
11586 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11587 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11588 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11589 # The linker can only warn and ignore the option if not recognized
11590 # So say no if there are warnings
11591 if test -s conftest.err; then
11592 # Append any errors to the config.log.
11593 cat conftest.err 1>&5
11594 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11595 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11596 if diff conftest.exp conftest.er2 >/dev/null; then
11597 lt_cv_prog_compiler_static_works=yes
11598 fi
11599 else
11600 lt_cv_prog_compiler_static_works=yes
11601 fi
11602 fi
11603 $RM -r conftest*
9d54db95 11604 LDFLAGS=$save_LDFLAGS
9c60689e 11605
a243b558
JF
11606fi
11607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11608$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9c60689e 11609
9d54db95 11610if test yes = "$lt_cv_prog_compiler_static_works"; then
a243b558 11611 :
9c60689e 11612else
a243b558 11613 lt_prog_compiler_static=
9c60689e 11614fi
9c60689e 11615
9c60689e 11616
9c60689e 11617
9c60689e 11618
9c60689e 11619
9c60689e 11620
9c60689e 11621
a243b558
JF
11622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11623$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11624if ${lt_cv_prog_compiler_c_o+:} false; then :
11625 $as_echo_n "(cached) " >&6
11626else
11627 lt_cv_prog_compiler_c_o=no
11628 $RM -r conftest 2>/dev/null
11629 mkdir conftest
11630 cd conftest
11631 mkdir out
11632 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9c60689e 11633
a243b558
JF
11634 lt_compiler_flag="-o out/conftest2.$ac_objext"
11635 # Insert the option either (1) after the last *FLAGS variable, or
11636 # (2) before a word containing "conftest.", or (3) at the end.
11637 # Note that $ac_compile itself does not contain backslashes and begins
11638 # with a dollar sign (not a hyphen), so the echo should work correctly.
11639 lt_compile=`echo "$ac_compile" | $SED \
11640 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11641 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11642 -e 's:$: $lt_compiler_flag:'`
11643 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11644 (eval "$lt_compile" 2>out/conftest.err)
11645 ac_status=$?
11646 cat out/conftest.err >&5
11647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11648 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11649 then
11650 # The compiler can only warn and ignore the option if not recognized
11651 # So say no if there are warnings
11652 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11653 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11654 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11655 lt_cv_prog_compiler_c_o=yes
11656 fi
11657 fi
11658 chmod u+w . 2>&5
00a96142 11659 $RM -r conftest*
a243b558
JF
11660 # SGI C++ compiler will create directory out/ii_files/ for
11661 # template instantiation
11662 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11663 $RM out/* && rmdir out
11664 cd ..
11665 $RM -r conftest
00a96142 11666 $RM -r conftest*
9c60689e 11667
a243b558
JF
11668fi
11669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11670$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9c60689e 11671
ee134472 11672
ee134472 11673
ee134472 11674
ee134472 11675
9c60689e 11676
a243b558
JF
11677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11678$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11679if ${lt_cv_prog_compiler_c_o+:} false; then :
11680 $as_echo_n "(cached) " >&6
11681else
11682 lt_cv_prog_compiler_c_o=no
11683 $RM -r conftest 2>/dev/null
11684 mkdir conftest
11685 cd conftest
11686 mkdir out
11687 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9c60689e 11688
a243b558
JF
11689 lt_compiler_flag="-o out/conftest2.$ac_objext"
11690 # Insert the option either (1) after the last *FLAGS variable, or
11691 # (2) before a word containing "conftest.", or (3) at the end.
11692 # Note that $ac_compile itself does not contain backslashes and begins
11693 # with a dollar sign (not a hyphen), so the echo should work correctly.
11694 lt_compile=`echo "$ac_compile" | $SED \
11695 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11696 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11697 -e 's:$: $lt_compiler_flag:'`
11698 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11699 (eval "$lt_compile" 2>out/conftest.err)
11700 ac_status=$?
11701 cat out/conftest.err >&5
11702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11703 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11704 then
11705 # The compiler can only warn and ignore the option if not recognized
11706 # So say no if there are warnings
11707 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11708 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11709 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11710 lt_cv_prog_compiler_c_o=yes
11711 fi
11712 fi
11713 chmod u+w . 2>&5
00a96142 11714 $RM -r conftest*
a243b558
JF
11715 # SGI C++ compiler will create directory out/ii_files/ for
11716 # template instantiation
11717 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11718 $RM out/* && rmdir out
11719 cd ..
11720 $RM -r conftest
00a96142 11721 $RM -r conftest*
9c60689e 11722
a243b558
JF
11723fi
11724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11725$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9c60689e 11726
9c60689e 11727
a243b558
JF
11728
11729
9d54db95
JF
11730hard_links=nottested
11731if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
a243b558
JF
11732 # do not overwrite the value of need_locks provided by the user
11733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11734$as_echo_n "checking if we can lock with hard links... " >&6; }
11735 hard_links=yes
00a96142 11736 $RM -r conftest*
a243b558
JF
11737 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11738 touch conftest.a
11739 ln conftest.a conftest.b 2>&5 || hard_links=no
11740 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11742$as_echo "$hard_links" >&6; }
9d54db95
JF
11743 if test no = "$hard_links"; then
11744 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
11745$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
a243b558 11746 need_locks=warn
9c60689e 11747 fi
a243b558
JF
11748else
11749 need_locks=no
11750fi
9c60689e 11751
ee134472 11752
9c60689e 11753
9c60689e 11754
9c60689e 11755
a243b558
JF
11756
11757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11758$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11759
11760 runpath_var=
11761 allow_undefined_flag=
11762 always_export_symbols=no
11763 archive_cmds=
11764 archive_expsym_cmds=
11765 compiler_needs_object=no
11766 enable_shared_with_static_runtimes=no
11767 export_dynamic_flag_spec=
11768 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11769 hardcode_automatic=no
11770 hardcode_direct=no
11771 hardcode_direct_absolute=no
11772 hardcode_libdir_flag_spec=
11773 hardcode_libdir_separator=
11774 hardcode_minus_L=no
11775 hardcode_shlibpath_var=unsupported
11776 inherit_rpath=no
11777 link_all_deplibs=unknown
11778 module_cmds=
11779 module_expsym_cmds=
11780 old_archive_from_new_cmds=
11781 old_archive_from_expsyms_cmds=
11782 thread_safe_flag_spec=
11783 whole_archive_flag_spec=
11784 # include_expsyms should be a list of space-separated symbols to be *always*
11785 # included in the symbol list
11786 include_expsyms=
11787 # exclude_expsyms can be an extended regexp of symbols to exclude
9d54db95
JF
11788 # it will be wrapped by ' (' and ')$', so one must not match beginning or
11789 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
11790 # as well as any symbol that contains 'd'.
a243b558
JF
11791 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11792 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11793 # platforms (ab)use it in PIC code, but their linkers get confused if
11794 # the symbol is explicitly referenced. Since portable code cannot
11795 # rely on this symbol name, it's probably fine to never include it in
11796 # preloaded symbol tables.
11797 # Exclude shared library initialization/finalization symbols.
11798 extract_expsyms_cmds=
11799
9c60689e 11800 case $host_os in
a243b558
JF
11801 cygwin* | mingw* | pw32* | cegcc*)
11802 # FIXME: the MSVC++ port hasn't been tested in a loooong time
11803 # When not using gcc, we currently assume that we are using
11804 # Microsoft Visual C++.
9d54db95 11805 if test yes != "$GCC"; then
a243b558
JF
11806 with_gnu_ld=no
11807 fi
9c60689e 11808 ;;
a243b558
JF
11809 interix*)
11810 # we just hope/assume this is gcc and not c89 (= MSVC++)
11811 with_gnu_ld=yes
11812 ;;
9d54db95 11813 openbsd* | bitrig*)
a243b558 11814 with_gnu_ld=no
9c60689e
DWT
11815 ;;
11816 esac
9c60689e 11817
a243b558 11818 ld_shlibs=yes
ee134472 11819
a243b558
JF
11820 # On some targets, GNU ld is compatible enough with the native linker
11821 # that we're better off using the native interface for both.
11822 lt_use_gnu_ld_interface=no
9d54db95 11823 if test yes = "$with_gnu_ld"; then
a243b558
JF
11824 case $host_os in
11825 aix*)
11826 # The AIX port of GNU ld has always aspired to compatibility
11827 # with the native linker. However, as the warning in the GNU ld
11828 # block says, versions before 2.19.5* couldn't really create working
11829 # shared libraries, regardless of the interface used.
11830 case `$LD -v 2>&1` in
11831 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11832 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11833 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11834 *)
11835 lt_use_gnu_ld_interface=yes
11836 ;;
11837 esac
11838 ;;
11839 *)
11840 lt_use_gnu_ld_interface=yes
11841 ;;
11842 esac
11843 fi
9c60689e 11844
9d54db95 11845 if test yes = "$lt_use_gnu_ld_interface"; then
a243b558 11846 # If archive_cmds runs LD, not CC, wlarc should be empty
9d54db95 11847 wlarc='$wl'
9c60689e 11848
a243b558
JF
11849 # Set some defaults for GNU ld with shared library support. These
11850 # are reset later if shared libraries are not supported. Putting them
11851 # here allows them to be overridden if necessary.
11852 runpath_var=LD_RUN_PATH
9d54db95
JF
11853 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11854 export_dynamic_flag_spec='$wl--export-dynamic'
a243b558
JF
11855 # ancient GNU ld didn't support --whole-archive et. al.
11856 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9d54db95 11857 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
a243b558
JF
11858 else
11859 whole_archive_flag_spec=
11860 fi
11861 supports_anon_versioning=no
9d54db95 11862 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
a243b558
JF
11863 *GNU\ gold*) supports_anon_versioning=yes ;;
11864 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11865 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11866 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11867 *\ 2.11.*) ;; # other 2.11 versions
11868 *) supports_anon_versioning=yes ;;
11869 esac
ee134472 11870
a243b558
JF
11871 # See if GNU ld supports shared libraries.
11872 case $host_os in
11873 aix[3-9]*)
11874 # On AIX/PPC, the GNU linker is very broken
9d54db95 11875 if test ia64 != "$host_cpu"; then
a243b558
JF
11876 ld_shlibs=no
11877 cat <<_LT_EOF 1>&2
ee134472 11878
a243b558
JF
11879*** Warning: the GNU linker, at least up to release 2.19, is reported
11880*** to be unable to reliably create shared libraries on AIX.
11881*** Therefore, libtool is disabling shared libraries support. If you
11882*** really care for shared libraries, you may want to install binutils
11883*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11884*** You will then need to restart the configuration process.
9c60689e 11885
a243b558
JF
11886_LT_EOF
11887 fi
11888 ;;
9c60689e 11889
a243b558
JF
11890 amigaos*)
11891 case $host_cpu in
11892 powerpc)
11893 # see comment about AmigaOS4 .so support
9d54db95 11894 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
a243b558
JF
11895 archive_expsym_cmds=''
11896 ;;
11897 m68k)
11898 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)'
11899 hardcode_libdir_flag_spec='-L$libdir'
11900 hardcode_minus_L=yes
11901 ;;
11902 esac
11903 ;;
9c60689e 11904
a243b558
JF
11905 beos*)
11906 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11907 allow_undefined_flag=unsupported
11908 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11909 # support --undefined. This deserves some investigation. FIXME
9d54db95 11910 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
a243b558
JF
11911 else
11912 ld_shlibs=no
11913 fi
11914 ;;
9c60689e 11915
a243b558
JF
11916 cygwin* | mingw* | pw32* | cegcc*)
11917 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11918 # as there is no search path for DLLs.
11919 hardcode_libdir_flag_spec='-L$libdir'
9d54db95 11920 export_dynamic_flag_spec='$wl--export-all-symbols'
a243b558
JF
11921 allow_undefined_flag=unsupported
11922 always_export_symbols=no
11923 enable_shared_with_static_runtimes=yes
11924 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'
11925 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9c60689e 11926
a243b558 11927 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9d54db95
JF
11928 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11929 # If the export-symbols file already is a .def file, use it as
11930 # is; otherwise, prepend EXPORTS...
11931 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11932 cp $export_symbols $output_objdir/$soname.def;
11933 else
11934 echo EXPORTS > $output_objdir/$soname.def;
11935 cat $export_symbols >> $output_objdir/$soname.def;
11936 fi~
11937 $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
11938 else
11939 ld_shlibs=no
11940 fi
11941 ;;
9c60689e 11942
a243b558 11943 haiku*)
9d54db95 11944 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
a243b558
JF
11945 link_all_deplibs=yes
11946 ;;
9c60689e 11947
9d54db95
JF
11948 os2*)
11949 hardcode_libdir_flag_spec='-L$libdir'
11950 hardcode_minus_L=yes
11951 allow_undefined_flag=unsupported
11952 shrext_cmds=.dll
11953 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11954 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11955 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11956 $ECHO EXPORTS >> $output_objdir/$libname.def~
11957 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11958 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11959 emximp -o $lib $output_objdir/$libname.def'
11960 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11961 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11962 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11963 $ECHO EXPORTS >> $output_objdir/$libname.def~
11964 prefix_cmds="$SED"~
11965 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11966 prefix_cmds="$prefix_cmds -e 1d";
11967 fi~
11968 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11969 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11970 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11971 emximp -o $lib $output_objdir/$libname.def'
11972 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11973 enable_shared_with_static_runtimes=yes
11974 ;;
11975
a243b558
JF
11976 interix[3-9]*)
11977 hardcode_direct=no
11978 hardcode_shlibpath_var=no
9d54db95
JF
11979 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11980 export_dynamic_flag_spec='$wl-E'
a243b558
JF
11981 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11982 # Instead, shared libraries are loaded at an image base (0x10000000 by
11983 # default) and relocated if they conflict, which is a slow very memory
11984 # consuming and fragmenting process. To avoid this, we pick a random,
11985 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11986 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9d54db95
JF
11987 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11988 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 11989 ;;
9c60689e 11990
a243b558
JF
11991 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11992 tmp_diet=no
9d54db95 11993 if test linux-dietlibc = "$host_os"; then
a243b558
JF
11994 case $cc_basename in
11995 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11996 esac
11997 fi
11998 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9d54db95 11999 && test no = "$tmp_diet"
a243b558
JF
12000 then
12001 tmp_addflag=' $pic_flag'
12002 tmp_sharedflag='-shared'
12003 case $cc_basename,$host_cpu in
12004 pgcc*) # Portland Group C compiler
9d54db95 12005 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
12006 tmp_addflag=' $pic_flag'
12007 ;;
12008 pgf77* | pgf90* | pgf95* | pgfortran*)
12009 # Portland Group f77 and f90 compilers
9d54db95 12010 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
12011 tmp_addflag=' $pic_flag -Mnomain' ;;
12012 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12013 tmp_addflag=' -i_dynamic' ;;
12014 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12015 tmp_addflag=' -i_dynamic -nofor_main' ;;
12016 ifc* | ifort*) # Intel Fortran compiler
12017 tmp_addflag=' -nofor_main' ;;
12018 lf95*) # Lahey Fortran 8.1
12019 whole_archive_flag_spec=
12020 tmp_sharedflag='--shared' ;;
9d54db95
JF
12021 nagfor*) # NAGFOR 5.3
12022 tmp_sharedflag='-Wl,-shared' ;;
a243b558
JF
12023 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12024 tmp_sharedflag='-qmkshrobj'
12025 tmp_addflag= ;;
12026 nvcc*) # Cuda Compiler Driver 2.2
9d54db95 12027 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
12028 compiler_needs_object=yes
12029 ;;
12030 esac
12031 case `$CC -V 2>&1 | sed 5q` in
12032 *Sun\ C*) # Sun C 5.9
9d54db95 12033 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
12034 compiler_needs_object=yes
12035 tmp_sharedflag='-G' ;;
12036 *Sun\ F*) # Sun Fortran 8.3
12037 tmp_sharedflag='-G' ;;
12038 esac
9d54db95 12039 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9c60689e 12040
9d54db95 12041 if test yes = "$supports_anon_versioning"; then
a243b558 12042 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9d54db95
JF
12043 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12044 echo "local: *; };" >> $output_objdir/$libname.ver~
12045 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
a243b558 12046 fi
9c60689e 12047
a243b558 12048 case $cc_basename in
9d54db95
JF
12049 tcc*)
12050 export_dynamic_flag_spec='-rdynamic'
12051 ;;
a243b558
JF
12052 xlf* | bgf* | bgxlf* | mpixlf*)
12053 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12054 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9d54db95 12055 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
a243b558 12056 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9d54db95 12057 if test yes = "$supports_anon_versioning"; then
a243b558 12058 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9d54db95
JF
12059 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12060 echo "local: *; };" >> $output_objdir/$libname.ver~
12061 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
a243b558
JF
12062 fi
12063 ;;
12064 esac
12065 else
12066 ld_shlibs=no
12067 fi
12068 ;;
9c60689e 12069
a243b558
JF
12070 netbsd*)
12071 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12072 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12073 wlarc=
12074 else
9d54db95
JF
12075 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12076 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
12077 fi
12078 ;;
9c60689e 12079
a243b558
JF
12080 solaris*)
12081 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12082 ld_shlibs=no
12083 cat <<_LT_EOF 1>&2
9c60689e 12084
a243b558
JF
12085*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12086*** create shared libraries on Solaris systems. Therefore, libtool
12087*** is disabling shared libraries support. We urge you to upgrade GNU
12088*** binutils to release 2.9.1 or newer. Another option is to modify
12089*** your PATH or compiler configuration so that the native linker is
12090*** used, and then restart.
9c60689e 12091
a243b558
JF
12092_LT_EOF
12093 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9d54db95
JF
12094 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12095 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
12096 else
12097 ld_shlibs=no
12098 fi
12099 ;;
9c60689e 12100
a243b558
JF
12101 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12102 case `$LD -v 2>&1` in
12103 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12104 ld_shlibs=no
12105 cat <<_LT_EOF 1>&2
9c60689e 12106
9d54db95 12107*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
a243b558
JF
12108*** reliably create shared libraries on SCO systems. Therefore, libtool
12109*** is disabling shared libraries support. We urge you to upgrade GNU
12110*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12111*** your PATH or compiler configuration so that the native linker is
12112*** used, and then restart.
9c60689e 12113
a243b558
JF
12114_LT_EOF
12115 ;;
12116 *)
12117 # For security reasons, it is highly recommended that you always
12118 # use absolute paths for naming shared libraries, and exclude the
12119 # DT_RUNPATH tag from executables and libraries. But doing so
12120 # requires that you compile everything twice, which is a pain.
12121 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9d54db95
JF
12122 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12123 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12124 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
a243b558
JF
12125 else
12126 ld_shlibs=no
12127 fi
12128 ;;
12129 esac
12130 ;;
9c60689e 12131
a243b558
JF
12132 sunos4*)
12133 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12134 wlarc=
12135 hardcode_direct=yes
12136 hardcode_shlibpath_var=no
12137 ;;
9c60689e 12138
a243b558
JF
12139 *)
12140 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9d54db95
JF
12141 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12142 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
12143 else
12144 ld_shlibs=no
12145 fi
12146 ;;
12147 esac
9c60689e 12148
9d54db95 12149 if test no = "$ld_shlibs"; then
a243b558
JF
12150 runpath_var=
12151 hardcode_libdir_flag_spec=
12152 export_dynamic_flag_spec=
12153 whole_archive_flag_spec=
12154 fi
12155 else
12156 # PORTME fill in a description of your system's linker (not GNU ld)
12157 case $host_os in
12158 aix3*)
12159 allow_undefined_flag=unsupported
12160 always_export_symbols=yes
12161 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'
12162 # Note: this linker hardcodes the directories in LIBPATH if there
12163 # are no directories specified by -L.
12164 hardcode_minus_L=yes
9d54db95 12165 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
a243b558
JF
12166 # Neither direct hardcoding nor static linking is supported with a
12167 # broken collect2.
12168 hardcode_direct=unsupported
12169 fi
12170 ;;
9c60689e 12171
a243b558 12172 aix[4-9]*)
9d54db95 12173 if test ia64 = "$host_cpu"; then
a243b558
JF
12174 # On IA64, the linker does run time linking by default, so we don't
12175 # have to do anything special.
12176 aix_use_runtimelinking=no
12177 exp_sym_flag='-Bexport'
9d54db95 12178 no_entry_flag=
a243b558
JF
12179 else
12180 # If we're using GNU nm, then we don't want the "-C" option.
9d54db95
JF
12181 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
12182 # Without the "-l" option, or with the "-B" option, AIX nm treats
12183 # weak defined symbols like other global defined symbols, whereas
12184 # GNU nm marks them as "W".
12185 # While the 'weak' keyword is ignored in the Export File, we need
12186 # it in the Import File for the 'aix-soname' feature, so we have
12187 # to replace the "-B" option with "-P" for AIX nm.
a243b558 12188 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9d54db95 12189 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 12190 else
9d54db95 12191 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
12192 fi
12193 aix_use_runtimelinking=no
9c60689e 12194
a243b558
JF
12195 # Test if we are trying to use run time linking or normal
12196 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9d54db95
JF
12197 # have runtime linking enabled, and use it for executables.
12198 # For shared libraries, we enable/disable runtime linking
12199 # depending on the kind of the shared library created -
12200 # when "with_aix_soname,aix_use_runtimelinking" is:
12201 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
12202 # "aix,yes" lib.so shared, rtl:yes, for executables
12203 # lib.a static archive
12204 # "both,no" lib.so.V(shr.o) shared, rtl:yes
12205 # lib.a(lib.so.V) shared, rtl:no, for executables
12206 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
12207 # lib.a(lib.so.V) shared, rtl:no
12208 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
12209 # lib.a static archive
a243b558
JF
12210 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12211 for ld_flag in $LDFLAGS; do
9d54db95 12212 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
a243b558
JF
12213 aix_use_runtimelinking=yes
12214 break
12215 fi
12216 done
9d54db95
JF
12217 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
12218 # With aix-soname=svr4, we create the lib.so.V shared archives only,
12219 # so we don't have lib.a shared libs to link our executables.
12220 # We have to force runtime linking in this case.
12221 aix_use_runtimelinking=yes
12222 LDFLAGS="$LDFLAGS -Wl,-brtl"
12223 fi
a243b558
JF
12224 ;;
12225 esac
9c60689e 12226
a243b558
JF
12227 exp_sym_flag='-bexport'
12228 no_entry_flag='-bnoentry'
12229 fi
9c60689e 12230
a243b558
JF
12231 # When large executables or shared objects are built, AIX ld can
12232 # have problems creating the table of contents. If linking a library
12233 # or program results in "error TOC overflow" add -mminimal-toc to
12234 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12235 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9c60689e 12236
a243b558
JF
12237 archive_cmds=''
12238 hardcode_direct=yes
12239 hardcode_direct_absolute=yes
12240 hardcode_libdir_separator=':'
12241 link_all_deplibs=yes
9d54db95
JF
12242 file_list_spec='$wl-f,'
12243 case $with_aix_soname,$aix_use_runtimelinking in
12244 aix,*) ;; # traditional, no import file
12245 svr4,* | *,yes) # use import file
12246 # The Import File defines what to hardcode.
12247 hardcode_direct=no
12248 hardcode_direct_absolute=no
12249 ;;
12250 esac
9c60689e 12251
9d54db95 12252 if test yes = "$GCC"; then
a243b558
JF
12253 case $host_os in aix4.[012]|aix4.[012].*)
12254 # We only want to do this on AIX 4.2 and lower, the check
12255 # below for broken collect2 doesn't work under 4.3+
9d54db95 12256 collect2name=`$CC -print-prog-name=collect2`
a243b558
JF
12257 if test -f "$collect2name" &&
12258 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12259 then
12260 # We have reworked collect2
12261 :
12262 else
12263 # We have old collect2
12264 hardcode_direct=unsupported
12265 # It fails to find uninstalled libraries when the uninstalled
12266 # path is not listed in the libpath. Setting hardcode_minus_L
12267 # to unsupported forces relinking
12268 hardcode_minus_L=yes
12269 hardcode_libdir_flag_spec='-L$libdir'
12270 hardcode_libdir_separator=
12271 fi
12272 ;;
12273 esac
12274 shared_flag='-shared'
9d54db95
JF
12275 if test yes = "$aix_use_runtimelinking"; then
12276 shared_flag="$shared_flag "'$wl-G'
a243b558 12277 fi
9d54db95
JF
12278 # Need to ensure runtime linking is disabled for the traditional
12279 # shared library, or the linker may eventually find shared libraries
12280 # /with/ Import File - we do not want to mix them.
12281 shared_flag_aix='-shared'
12282 shared_flag_svr4='-shared $wl-G'
a243b558
JF
12283 else
12284 # not using gcc
9d54db95 12285 if test ia64 = "$host_cpu"; then
a243b558
JF
12286 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12287 # chokes on -Wl,-G. The following line is correct:
12288 shared_flag='-G'
12289 else
9d54db95
JF
12290 if test yes = "$aix_use_runtimelinking"; then
12291 shared_flag='$wl-G'
a243b558 12292 else
9d54db95 12293 shared_flag='$wl-bM:SRE'
a243b558 12294 fi
9d54db95
JF
12295 shared_flag_aix='$wl-bM:SRE'
12296 shared_flag_svr4='$wl-G'
a243b558
JF
12297 fi
12298 fi
9c60689e 12299
9d54db95 12300 export_dynamic_flag_spec='$wl-bexpall'
a243b558
JF
12301 # It seems that -bexpall does not export symbols beginning with
12302 # underscore (_), so it is better to generate a list of symbols to export.
12303 always_export_symbols=yes
9d54db95 12304 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
a243b558
JF
12305 # Warning - without using the other runtime loading flags (-brtl),
12306 # -berok will link without error, but may produce a broken library.
12307 allow_undefined_flag='-berok'
12308 # Determine the default libpath from the value encoded in an
12309 # empty executable.
9d54db95 12310 if test set = "${lt_cv_aix_libpath+set}"; then
a243b558 12311 aix_libpath=$lt_cv_aix_libpath
9c60689e 12312else
a243b558 12313 if ${lt_cv_aix_libpath_+:} false; then :
9c60689e
DWT
12314 $as_echo_n "(cached) " >&6
12315else
a243b558 12316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9c60689e
DWT
12317/* end confdefs.h. */
12318
9c60689e
DWT
12319int
12320main ()
12321{
a243b558 12322
9c60689e
DWT
12323 ;
12324 return 0;
12325}
12326_ACEOF
12327if ac_fn_c_try_link "$LINENO"; then :
a243b558
JF
12328
12329 lt_aix_libpath_sed='
12330 /Import File Strings/,/^$/ {
12331 /^0/ {
12332 s/^0 *\([^ ]*\) *$/\1/
12333 p
12334 }
12335 }'
12336 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12337 # Check for a 64-bit object if we didn't find anything.
12338 if test -z "$lt_cv_aix_libpath_"; then
12339 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12340 fi
9c60689e
DWT
12341fi
12342rm -f core conftest.err conftest.$ac_objext \
12343 conftest$ac_exeext conftest.$ac_ext
a243b558 12344 if test -z "$lt_cv_aix_libpath_"; then
9d54db95 12345 lt_cv_aix_libpath_=/usr/lib:/lib
a243b558 12346 fi
9c60689e
DWT
12347
12348fi
12349
a243b558
JF
12350 aix_libpath=$lt_cv_aix_libpath_
12351fi
9c60689e 12352
9d54db95
JF
12353 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12354 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 12355 else
9d54db95
JF
12356 if test ia64 = "$host_cpu"; then
12357 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
a243b558 12358 allow_undefined_flag="-z nodefs"
9d54db95 12359 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
12360 else
12361 # Determine the default libpath from the value encoded in an
12362 # empty executable.
9d54db95 12363 if test set = "${lt_cv_aix_libpath+set}"; then
a243b558 12364 aix_libpath=$lt_cv_aix_libpath
9c60689e 12365else
a243b558 12366 if ${lt_cv_aix_libpath_+:} false; then :
9c60689e
DWT
12367 $as_echo_n "(cached) " >&6
12368else
a243b558 12369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9c60689e
DWT
12370/* end confdefs.h. */
12371
9c60689e
DWT
12372int
12373main ()
12374{
a243b558 12375
9c60689e
DWT
12376 ;
12377 return 0;
12378}
12379_ACEOF
12380if ac_fn_c_try_link "$LINENO"; then :
9c60689e 12381
a243b558
JF
12382 lt_aix_libpath_sed='
12383 /Import File Strings/,/^$/ {
12384 /^0/ {
12385 s/^0 *\([^ ]*\) *$/\1/
12386 p
12387 }
12388 }'
12389 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12390 # Check for a 64-bit object if we didn't find anything.
12391 if test -z "$lt_cv_aix_libpath_"; then
12392 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12393 fi
9c60689e
DWT
12394fi
12395rm -f core conftest.err conftest.$ac_objext \
12396 conftest$ac_exeext conftest.$ac_ext
a243b558 12397 if test -z "$lt_cv_aix_libpath_"; then
9d54db95 12398 lt_cv_aix_libpath_=/usr/lib:/lib
a243b558
JF
12399 fi
12400
9c60689e 12401fi
9c60689e 12402
a243b558
JF
12403 aix_libpath=$lt_cv_aix_libpath_
12404fi
12405
9d54db95 12406 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
a243b558
JF
12407 # Warning - without using the other run time loading flags,
12408 # -berok will link without error, but may produce a broken library.
9d54db95
JF
12409 no_undefined_flag=' $wl-bernotok'
12410 allow_undefined_flag=' $wl-berok'
12411 if test yes = "$with_gnu_ld"; then
a243b558 12412 # We only use this code for GNU lds that support --whole-archive.
9d54db95 12413 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
a243b558
JF
12414 else
12415 # Exported symbols can be pulled into shared objects from archives
12416 whole_archive_flag_spec='$convenience'
12417 fi
12418 archive_cmds_need_lc=yes
9d54db95
JF
12419 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
12420 # -brtl affects multiple linker settings, -berok does not and is overridden later
12421 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
12422 if test svr4 != "$with_aix_soname"; then
12423 # This is similar to how AIX traditionally builds its shared libraries.
12424 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'
12425 fi
12426 if test aix != "$with_aix_soname"; then
12427 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'
12428 else
12429 # used by -dlpreopen to get the symbols
12430 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
12431 fi
12432 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
a243b558
JF
12433 fi
12434 fi
12435 ;;
12436
12437 amigaos*)
12438 case $host_cpu in
12439 powerpc)
12440 # see comment about AmigaOS4 .so support
9d54db95 12441 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
a243b558
JF
12442 archive_expsym_cmds=''
12443 ;;
12444 m68k)
12445 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)'
12446 hardcode_libdir_flag_spec='-L$libdir'
12447 hardcode_minus_L=yes
12448 ;;
12449 esac
12450 ;;
12451
12452 bsdi[45]*)
12453 export_dynamic_flag_spec=-rdynamic
12454 ;;
12455
12456 cygwin* | mingw* | pw32* | cegcc*)
12457 # When not using gcc, we currently assume that we are using
12458 # Microsoft Visual C++.
12459 # hardcode_libdir_flag_spec is actually meaningless, as there is
12460 # no search path for DLLs.
12461 case $cc_basename in
12462 cl*)
12463 # Native MSVC
12464 hardcode_libdir_flag_spec=' '
12465 allow_undefined_flag=unsupported
12466 always_export_symbols=yes
12467 file_list_spec='@'
12468 # Tell ltmain to make .lib files, not .a files.
12469 libext=lib
12470 # Tell ltmain to make .dll files, not .so files.
9d54db95 12471 shrext_cmds=.dll
a243b558 12472 # FIXME: Setting linknames here is a bad hack.
9d54db95
JF
12473 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
12474 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
12475 cp "$export_symbols" "$output_objdir/$soname.def";
12476 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
12477 else
12478 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
12479 fi~
12480 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12481 linknames='
a243b558
JF
12482 # The linker will not automatically build a static lib if we build a DLL.
12483 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
12484 enable_shared_with_static_runtimes=yes
12485 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
12486 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12487 # Don't use ranlib
12488 old_postinstall_cmds='chmod 644 $oldlib'
12489 postlink_cmds='lt_outputfile="@OUTPUT@"~
9d54db95
JF
12490 lt_tool_outputfile="@TOOL_OUTPUT@"~
12491 case $lt_outputfile in
12492 *.exe|*.EXE) ;;
12493 *)
12494 lt_outputfile=$lt_outputfile.exe
12495 lt_tool_outputfile=$lt_tool_outputfile.exe
12496 ;;
12497 esac~
12498 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
12499 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12500 $RM "$lt_outputfile.manifest";
12501 fi'
a243b558
JF
12502 ;;
12503 *)
12504 # Assume MSVC wrapper
12505 hardcode_libdir_flag_spec=' '
12506 allow_undefined_flag=unsupported
12507 # Tell ltmain to make .lib files, not .a files.
12508 libext=lib
12509 # Tell ltmain to make .dll files, not .so files.
9d54db95 12510 shrext_cmds=.dll
a243b558
JF
12511 # FIXME: Setting linknames here is a bad hack.
12512 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12513 # The linker will automatically build a .lib file if we build a DLL.
12514 old_archive_from_new_cmds='true'
12515 # FIXME: Should let the user specify the lib program.
12516 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12517 enable_shared_with_static_runtimes=yes
12518 ;;
12519 esac
12520 ;;
12521
12522 darwin* | rhapsody*)
12523
12524
12525 archive_cmds_need_lc=no
12526 hardcode_direct=no
12527 hardcode_automatic=yes
12528 hardcode_shlibpath_var=unsupported
9d54db95
JF
12529 if test yes = "$lt_cv_ld_force_load"; then
12530 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
12531
12532 else
12533 whole_archive_flag_spec=''
12534 fi
12535 link_all_deplibs=yes
9d54db95 12536 allow_undefined_flag=$_lt_dar_allow_undefined
a243b558 12537 case $cc_basename in
9d54db95 12538 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
a243b558
JF
12539 *) _lt_dar_can_shared=$GCC ;;
12540 esac
9d54db95 12541 if test yes = "$_lt_dar_can_shared"; then
a243b558 12542 output_verbose_link_cmd=func_echo_all
9d54db95
JF
12543 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
12544 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
12545 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"
12546 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
12547
12548 else
12549 ld_shlibs=no
12550 fi
12551
12552 ;;
12553
12554 dgux*)
12555 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12556 hardcode_libdir_flag_spec='-L$libdir'
12557 hardcode_shlibpath_var=no
12558 ;;
12559
12560 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12561 # support. Future versions do this automatically, but an explicit c++rt0.o
12562 # does not break anything, and helps significantly (at the cost of a little
12563 # extra space).
12564 freebsd2.2*)
12565 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12566 hardcode_libdir_flag_spec='-R$libdir'
12567 hardcode_direct=yes
12568 hardcode_shlibpath_var=no
12569 ;;
12570
12571 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12572 freebsd2.*)
12573 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12574 hardcode_direct=yes
12575 hardcode_minus_L=yes
12576 hardcode_shlibpath_var=no
12577 ;;
12578
12579 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12580 freebsd* | dragonfly*)
12581 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12582 hardcode_libdir_flag_spec='-R$libdir'
12583 hardcode_direct=yes
12584 hardcode_shlibpath_var=no
12585 ;;
12586
12587 hpux9*)
9d54db95
JF
12588 if test yes = "$GCC"; then
12589 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 12590 else
9d54db95 12591 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 12592 fi
9d54db95 12593 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
a243b558
JF
12594 hardcode_libdir_separator=:
12595 hardcode_direct=yes
12596
12597 # hardcode_minus_L: Not really in the search PATH,
12598 # but as the default location of the library.
12599 hardcode_minus_L=yes
9d54db95 12600 export_dynamic_flag_spec='$wl-E'
a243b558
JF
12601 ;;
12602
12603 hpux10*)
9d54db95
JF
12604 if test yes,no = "$GCC,$with_gnu_ld"; then
12605 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
a243b558
JF
12606 else
12607 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12608 fi
9d54db95
JF
12609 if test no = "$with_gnu_ld"; then
12610 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
a243b558
JF
12611 hardcode_libdir_separator=:
12612 hardcode_direct=yes
12613 hardcode_direct_absolute=yes
9d54db95 12614 export_dynamic_flag_spec='$wl-E'
a243b558
JF
12615 # hardcode_minus_L: Not really in the search PATH,
12616 # but as the default location of the library.
12617 hardcode_minus_L=yes
12618 fi
12619 ;;
12620
12621 hpux11*)
9d54db95 12622 if test yes,no = "$GCC,$with_gnu_ld"; then
a243b558
JF
12623 case $host_cpu in
12624 hppa*64*)
9d54db95 12625 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
a243b558
JF
12626 ;;
12627 ia64*)
9d54db95 12628 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
a243b558
JF
12629 ;;
12630 *)
9d54db95 12631 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
a243b558
JF
12632 ;;
12633 esac
12634 else
12635 case $host_cpu in
12636 hppa*64*)
9d54db95 12637 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
a243b558
JF
12638 ;;
12639 ia64*)
9d54db95 12640 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
a243b558
JF
12641 ;;
12642 *)
12643
12644 # Older versions of the 11.00 compiler do not understand -b yet
12645 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12647$as_echo_n "checking if $CC understands -b... " >&6; }
12648if ${lt_cv_prog_compiler__b+:} false; then :
12649 $as_echo_n "(cached) " >&6
12650else
12651 lt_cv_prog_compiler__b=no
9d54db95 12652 save_LDFLAGS=$LDFLAGS
a243b558
JF
12653 LDFLAGS="$LDFLAGS -b"
12654 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12655 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12656 # The linker can only warn and ignore the option if not recognized
12657 # So say no if there are warnings
12658 if test -s conftest.err; then
12659 # Append any errors to the config.log.
12660 cat conftest.err 1>&5
12661 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12662 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12663 if diff conftest.exp conftest.er2 >/dev/null; then
12664 lt_cv_prog_compiler__b=yes
12665 fi
12666 else
12667 lt_cv_prog_compiler__b=yes
12668 fi
12669 fi
12670 $RM -r conftest*
9d54db95 12671 LDFLAGS=$save_LDFLAGS
a243b558
JF
12672
12673fi
12674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12675$as_echo "$lt_cv_prog_compiler__b" >&6; }
12676
9d54db95
JF
12677if test yes = "$lt_cv_prog_compiler__b"; then
12678 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
a243b558
JF
12679else
12680 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12681fi
12682
12683 ;;
12684 esac
12685 fi
9d54db95
JF
12686 if test no = "$with_gnu_ld"; then
12687 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
a243b558
JF
12688 hardcode_libdir_separator=:
12689
12690 case $host_cpu in
12691 hppa*64*|ia64*)
12692 hardcode_direct=no
12693 hardcode_shlibpath_var=no
12694 ;;
12695 *)
12696 hardcode_direct=yes
12697 hardcode_direct_absolute=yes
9d54db95 12698 export_dynamic_flag_spec='$wl-E'
a243b558
JF
12699
12700 # hardcode_minus_L: Not really in the search PATH,
12701 # but as the default location of the library.
12702 hardcode_minus_L=yes
12703 ;;
12704 esac
12705 fi
12706 ;;
12707
12708 irix5* | irix6* | nonstopux*)
9d54db95
JF
12709 if test yes = "$GCC"; then
12710 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
12711 # Try to use the -exported_symbol ld option, if it does not
12712 # work, assume that -exports_file does not work either and
12713 # implicitly export all symbols.
12714 # This should be the same for all languages, so no per-tag cache variable.
12715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
12716$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
12717if ${lt_cv_irix_exported_symbol+:} false; then :
12718 $as_echo_n "(cached) " >&6
12719else
9d54db95
JF
12720 save_LDFLAGS=$LDFLAGS
12721 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
a243b558
JF
12722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12723/* end confdefs.h. */
12724int foo (void) { return 0; }
12725_ACEOF
12726if ac_fn_c_try_link "$LINENO"; then :
12727 lt_cv_irix_exported_symbol=yes
12728else
12729 lt_cv_irix_exported_symbol=no
12730fi
12731rm -f core conftest.err conftest.$ac_objext \
12732 conftest$ac_exeext conftest.$ac_ext
9d54db95 12733 LDFLAGS=$save_LDFLAGS
a243b558
JF
12734fi
12735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
12736$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9d54db95
JF
12737 if test yes = "$lt_cv_irix_exported_symbol"; then
12738 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
12739 fi
12740 else
9d54db95
JF
12741 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'
12742 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
12743 fi
12744 archive_cmds_need_lc='no'
9d54db95 12745 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
a243b558
JF
12746 hardcode_libdir_separator=:
12747 inherit_rpath=yes
12748 link_all_deplibs=yes
12749 ;;
12750
9d54db95
JF
12751 linux*)
12752 case $cc_basename in
12753 tcc*)
12754 # Fabrice Bellard et al's Tiny C Compiler
12755 ld_shlibs=yes
12756 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12757 ;;
12758 esac
12759 ;;
12760
a243b558
JF
12761 netbsd*)
12762 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12763 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12764 else
12765 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12766 fi
12767 hardcode_libdir_flag_spec='-R$libdir'
12768 hardcode_direct=yes
12769 hardcode_shlibpath_var=no
12770 ;;
12771
12772 newsos6)
12773 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12774 hardcode_direct=yes
9d54db95 12775 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
a243b558
JF
12776 hardcode_libdir_separator=:
12777 hardcode_shlibpath_var=no
12778 ;;
12779
12780 *nto* | *qnx*)
12781 ;;
12782
9d54db95 12783 openbsd* | bitrig*)
a243b558
JF
12784 if test -f /usr/libexec/ld.so; then
12785 hardcode_direct=yes
12786 hardcode_shlibpath_var=no
12787 hardcode_direct_absolute=yes
9d54db95 12788 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
a243b558 12789 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9d54db95
JF
12790 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
12791 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12792 export_dynamic_flag_spec='$wl-E'
a243b558 12793 else
9d54db95
JF
12794 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12795 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
a243b558
JF
12796 fi
12797 else
12798 ld_shlibs=no
12799 fi
12800 ;;
12801
12802 os2*)
12803 hardcode_libdir_flag_spec='-L$libdir'
12804 hardcode_minus_L=yes
12805 allow_undefined_flag=unsupported
9d54db95
JF
12806 shrext_cmds=.dll
12807 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12808 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12809 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12810 $ECHO EXPORTS >> $output_objdir/$libname.def~
12811 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12812 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12813 emximp -o $lib $output_objdir/$libname.def'
12814 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12815 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12816 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12817 $ECHO EXPORTS >> $output_objdir/$libname.def~
12818 prefix_cmds="$SED"~
12819 if test EXPORTS = "`$SED 1q $export_symbols`"; then
12820 prefix_cmds="$prefix_cmds -e 1d";
12821 fi~
12822 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12823 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12824 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12825 emximp -o $lib $output_objdir/$libname.def'
12826 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12827 enable_shared_with_static_runtimes=yes
a243b558
JF
12828 ;;
12829
12830 osf3*)
9d54db95
JF
12831 if test yes = "$GCC"; then
12832 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12833 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
12834 else
12835 allow_undefined_flag=' -expect_unresolved \*'
9d54db95 12836 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
12837 fi
12838 archive_cmds_need_lc='no'
9d54db95 12839 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
a243b558
JF
12840 hardcode_libdir_separator=:
12841 ;;
12842
12843 osf4* | osf5*) # as osf3* with the addition of -msym flag
9d54db95
JF
12844 if test yes = "$GCC"; then
12845 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12846 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'
12847 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
a243b558
JF
12848 else
12849 allow_undefined_flag=' -expect_unresolved \*'
9d54db95 12850 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 12851 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 12852 $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
12853
12854 # Both c and cxx compiler support -rpath directly
12855 hardcode_libdir_flag_spec='-rpath $libdir'
12856 fi
12857 archive_cmds_need_lc='no'
12858 hardcode_libdir_separator=:
12859 ;;
12860
12861 solaris*)
12862 no_undefined_flag=' -z defs'
9d54db95
JF
12863 if test yes = "$GCC"; then
12864 wlarc='$wl'
12865 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
a243b558 12866 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9d54db95 12867 $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
12868 else
12869 case `$CC -V 2>&1` in
12870 *"Compilers 5.0"*)
12871 wlarc=''
9d54db95 12872 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
a243b558 12873 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9d54db95 12874 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
a243b558
JF
12875 ;;
12876 *)
9d54db95
JF
12877 wlarc='$wl'
12878 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
a243b558 12879 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9d54db95 12880 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
a243b558
JF
12881 ;;
12882 esac
12883 fi
12884 hardcode_libdir_flag_spec='-R$libdir'
12885 hardcode_shlibpath_var=no
12886 case $host_os in
12887 solaris2.[0-5] | solaris2.[0-5].*) ;;
12888 *)
12889 # The compiler driver will combine and reorder linker options,
9d54db95 12890 # but understands '-z linker_flag'. GCC discards it without '$wl',
a243b558
JF
12891 # but is careful enough not to reorder.
12892 # Supported since Solaris 2.6 (maybe 2.5.1?)
9d54db95
JF
12893 if test yes = "$GCC"; then
12894 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
a243b558
JF
12895 else
12896 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12897 fi
12898 ;;
12899 esac
12900 link_all_deplibs=yes
12901 ;;
12902
12903 sunos4*)
9d54db95 12904 if test sequent = "$host_vendor"; then
a243b558
JF
12905 # Use $CC to link under sequent, because it throws in some extra .o
12906 # files that make .init and .fini sections work.
9d54db95 12907 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
a243b558
JF
12908 else
12909 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12910 fi
12911 hardcode_libdir_flag_spec='-L$libdir'
12912 hardcode_direct=yes
12913 hardcode_minus_L=yes
12914 hardcode_shlibpath_var=no
12915 ;;
12916
12917 sysv4)
12918 case $host_vendor in
12919 sni)
12920 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12921 hardcode_direct=yes # is this really true???
12922 ;;
12923 siemens)
12924 ## LD is ld it makes a PLAMLIB
12925 ## CC just makes a GrossModule.
12926 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12927 reload_cmds='$CC -r -o $output$reload_objs'
12928 hardcode_direct=no
12929 ;;
12930 motorola)
12931 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12932 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12933 ;;
12934 esac
12935 runpath_var='LD_RUN_PATH'
12936 hardcode_shlibpath_var=no
12937 ;;
12938
12939 sysv4.3*)
12940 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12941 hardcode_shlibpath_var=no
12942 export_dynamic_flag_spec='-Bexport'
12943 ;;
12944
12945 sysv4*MP*)
12946 if test -d /usr/nec; then
12947 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12948 hardcode_shlibpath_var=no
12949 runpath_var=LD_RUN_PATH
12950 hardcode_runpath_var=yes
12951 ld_shlibs=yes
12952 fi
12953 ;;
12954
12955 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9d54db95 12956 no_undefined_flag='$wl-z,text'
a243b558
JF
12957 archive_cmds_need_lc=no
12958 hardcode_shlibpath_var=no
12959 runpath_var='LD_RUN_PATH'
12960
9d54db95
JF
12961 if test yes = "$GCC"; then
12962 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12963 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
a243b558 12964 else
9d54db95
JF
12965 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12966 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
a243b558
JF
12967 fi
12968 ;;
12969
12970 sysv5* | sco3.2v5* | sco5v6*)
9d54db95 12971 # Note: We CANNOT use -z defs as we might desire, because we do not
a243b558
JF
12972 # link with -lc, and that would cause any symbols used from libc to
12973 # always be unresolved, which means just about no library would
12974 # ever link correctly. If we're not using GNU ld we use -z text
12975 # though, which does catch some bad symbols but isn't as heavy-handed
12976 # as -z defs.
9d54db95
JF
12977 no_undefined_flag='$wl-z,text'
12978 allow_undefined_flag='$wl-z,nodefs'
a243b558
JF
12979 archive_cmds_need_lc=no
12980 hardcode_shlibpath_var=no
9d54db95 12981 hardcode_libdir_flag_spec='$wl-R,$libdir'
a243b558
JF
12982 hardcode_libdir_separator=':'
12983 link_all_deplibs=yes
9d54db95 12984 export_dynamic_flag_spec='$wl-Bexport'
a243b558
JF
12985 runpath_var='LD_RUN_PATH'
12986
9d54db95
JF
12987 if test yes = "$GCC"; then
12988 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12989 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
a243b558 12990 else
9d54db95
JF
12991 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12992 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
a243b558
JF
12993 fi
12994 ;;
12995
12996 uts4*)
12997 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12998 hardcode_libdir_flag_spec='-L$libdir'
12999 hardcode_shlibpath_var=no
13000 ;;
13001
13002 *)
13003 ld_shlibs=no
13004 ;;
13005 esac
13006
9d54db95 13007 if test sni = "$host_vendor"; then
a243b558
JF
13008 case $host in
13009 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9d54db95 13010 export_dynamic_flag_spec='$wl-Blargedynsym'
a243b558
JF
13011 ;;
13012 esac
13013 fi
13014 fi
13015
13016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13017$as_echo "$ld_shlibs" >&6; }
9d54db95 13018test no = "$ld_shlibs" && can_build_shared=no
a243b558
JF
13019
13020with_gnu_ld=$with_gnu_ld
13021
13022
13023
13024
13025
13026
13027
13028
13029
13030
13031
13032
13033
13034
13035
13036#
13037# Do we need to explicitly link libc?
13038#
13039case "x$archive_cmds_need_lc" in
13040x|xyes)
13041 # Assume -lc should be added
13042 archive_cmds_need_lc=yes
13043
9d54db95 13044 if test yes,yes = "$GCC,$enable_shared"; then
a243b558
JF
13045 case $archive_cmds in
13046 *'~'*)
13047 # FIXME: we may have to deal with multi-command sequences.
13048 ;;
13049 '$CC '*)
13050 # Test whether the compiler implicitly links with -lc since on some
13051 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13052 # to ld, don't add -lc before -lgcc.
13053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13054$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13055if ${lt_cv_archive_cmds_need_lc+:} false; then :
13056 $as_echo_n "(cached) " >&6
13057else
00a96142 13058 $RM -r conftest*
a243b558
JF
13059 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13060
13061 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13062 (eval $ac_compile) 2>&5
13063 ac_status=$?
13064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13065 test $ac_status = 0; } 2>conftest.err; then
13066 soname=conftest
13067 lib=conftest
13068 libobjs=conftest.$ac_objext
13069 deplibs=
13070 wl=$lt_prog_compiler_wl
13071 pic_flag=$lt_prog_compiler_pic
13072 compiler_flags=-v
13073 linker_flags=-v
13074 verstring=
13075 output_objdir=.
13076 libname=conftest
13077 lt_save_allow_undefined_flag=$allow_undefined_flag
13078 allow_undefined_flag=
13079 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13080 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13081 ac_status=$?
13082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13083 test $ac_status = 0; }
13084 then
13085 lt_cv_archive_cmds_need_lc=no
13086 else
13087 lt_cv_archive_cmds_need_lc=yes
13088 fi
13089 allow_undefined_flag=$lt_save_allow_undefined_flag
13090 else
13091 cat conftest.err 1>&5
13092 fi
00a96142 13093 $RM -r conftest*
a243b558
JF
13094
13095fi
13096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
13097$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
13098 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
13099 ;;
13100 esac
13101 fi
13102 ;;
13103esac
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
13236
13237
13238
13239
13240
13241
13242
13243
13244
13245
13246
13247
13248
13249
13250
13251
13252
13253
13254
13255
13256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13257$as_echo_n "checking dynamic linker characteristics... " >&6; }
13258
9d54db95 13259if test yes = "$GCC"; then
a243b558 13260 case $host_os in
9d54db95
JF
13261 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
13262 *) lt_awk_arg='/^libraries:/' ;;
a243b558
JF
13263 esac
13264 case $host_os in
9d54db95
JF
13265 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
13266 *) lt_sed_strip_eq='s|=/|/|g' ;;
a243b558
JF
13267 esac
13268 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
13269 case $lt_search_path_spec in
13270 *\;*)
13271 # if the path contains ";" then we assume it to be the separator
13272 # otherwise default to the standard path separator (i.e. ":") - it is
13273 # assumed that no part of a normal pathname contains ";" but that should
13274 # okay in the real world where ";" in dirpaths is itself problematic.
13275 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
13276 ;;
13277 *)
13278 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
13279 ;;
13280 esac
13281 # Ok, now we have the path, separated by spaces, we can step through it
9d54db95 13282 # and add multilib dir if necessary...
a243b558 13283 lt_tmp_lt_search_path_spec=
9d54db95
JF
13284 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13285 # ...but if some path component already ends with the multilib dir we assume
13286 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
13287 case "$lt_multi_os_dir; $lt_search_path_spec " in
13288 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
13289 lt_multi_os_dir=
13290 ;;
13291 esac
a243b558 13292 for lt_sys_path in $lt_search_path_spec; do
9d54db95
JF
13293 if test -d "$lt_sys_path$lt_multi_os_dir"; then
13294 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
13295 elif test -n "$lt_multi_os_dir"; then
a243b558
JF
13296 test -d "$lt_sys_path" && \
13297 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13298 fi
13299 done
13300 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9d54db95
JF
13301BEGIN {RS = " "; FS = "/|\n";} {
13302 lt_foo = "";
13303 lt_count = 0;
a243b558
JF
13304 for (lt_i = NF; lt_i > 0; lt_i--) {
13305 if ($lt_i != "" && $lt_i != ".") {
13306 if ($lt_i == "..") {
13307 lt_count++;
13308 } else {
13309 if (lt_count == 0) {
9d54db95 13310 lt_foo = "/" $lt_i lt_foo;
a243b558
JF
13311 } else {
13312 lt_count--;
13313 }
13314 }
13315 }
13316 }
13317 if (lt_foo != "") { lt_freq[lt_foo]++; }
13318 if (lt_freq[lt_foo] == 1) { print lt_foo; }
13319}'`
13320 # AWK program above erroneously prepends '/' to C:/dos/paths
13321 # for these hosts.
13322 case $host_os in
13323 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9d54db95 13324 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
a243b558
JF
13325 esac
13326 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
13327else
13328 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13329fi
13330library_names_spec=
13331libname_spec='lib$name'
13332soname_spec=
9d54db95 13333shrext_cmds=.so
a243b558
JF
13334postinstall_cmds=
13335postuninstall_cmds=
13336finish_cmds=
13337finish_eval=
13338shlibpath_var=
13339shlibpath_overrides_runpath=unknown
13340version_type=none
13341dynamic_linker="$host_os ld.so"
13342sys_lib_dlsearch_path_spec="/lib /usr/lib"
13343need_lib_prefix=unknown
13344hardcode_into_libs=no
13345
13346# when you set need_version to no, make sure it does not cause -set_version
13347# flags to be left without arguments
13348need_version=unknown
13349
9d54db95
JF
13350
13351
a243b558
JF
13352case $host_os in
13353aix3*)
13354 version_type=linux # correct to gnu/linux during the next big refactor
9d54db95 13355 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
a243b558
JF
13356 shlibpath_var=LIBPATH
13357
13358 # AIX 3 has no versioning support, so we append a major version to the name.
9d54db95 13359 soname_spec='$libname$release$shared_ext$major'
a243b558
JF
13360 ;;
13361
13362aix[4-9]*)
13363 version_type=linux # correct to gnu/linux during the next big refactor
13364 need_lib_prefix=no
13365 need_version=no
13366 hardcode_into_libs=yes
9d54db95 13367 if test ia64 = "$host_cpu"; then
a243b558 13368 # AIX 5 supports IA64
9d54db95 13369 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
a243b558
JF
13370 shlibpath_var=LD_LIBRARY_PATH
13371 else
13372 # With GCC up to 2.95.x, collect2 would create an import file
13373 # for dependence libraries. The import file would start with
9d54db95
JF
13374 # the line '#! .'. This would cause the generated library to
13375 # depend on '.', always an invalid library. This was fixed in
a243b558
JF
13376 # development snapshots of GCC prior to 3.0.
13377 case $host_os in
13378 aix4 | aix4.[01] | aix4.[01].*)
13379 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13380 echo ' yes '
9d54db95 13381 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
a243b558
JF
13382 :
13383 else
13384 can_build_shared=no
13385 fi
13386 ;;
13387 esac
9d54db95
JF
13388 # Using Import Files as archive members, it is possible to support
13389 # filename-based versioning of shared library archives on AIX. While
13390 # this would work for both with and without runtime linking, it will
13391 # prevent static linking of such archives. So we do filename-based
13392 # shared library versioning with .so extension only, which is used
13393 # when both runtime linking and shared linking is enabled.
13394 # Unfortunately, runtime linking may impact performance, so we do
13395 # not want this to be the default eventually. Also, we use the
13396 # versioned .so libs for executables only if there is the -brtl
13397 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
13398 # To allow for filename-based versioning support, we need to create
13399 # libNAME.so.V as an archive file, containing:
13400 # *) an Import File, referring to the versioned filename of the
13401 # archive as well as the shared archive member, telling the
13402 # bitwidth (32 or 64) of that shared object, and providing the
13403 # list of exported symbols of that shared object, eventually
13404 # decorated with the 'weak' keyword
13405 # *) the shared object with the F_LOADONLY flag set, to really avoid
13406 # it being seen by the linker.
13407 # At run time we better use the real file rather than another symlink,
13408 # but for link time we create the symlink libNAME.so -> libNAME.so.V
13409
13410 case $with_aix_soname,$aix_use_runtimelinking in
13411 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
a243b558
JF
13412 # soname into executable. Probably we can add versioning support to
13413 # collect2, so additional links can be useful in future.
9d54db95
JF
13414 aix,yes) # traditional libtool
13415 dynamic_linker='AIX unversionable lib.so'
a243b558
JF
13416 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13417 # instead of lib<name>.a to let people know that these are not
13418 # typical AIX shared libraries.
9d54db95
JF
13419 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13420 ;;
13421 aix,no) # traditional AIX only
13422 dynamic_linker='AIX lib.a(lib.so.V)'
a243b558
JF
13423 # We preserve .a as extension for shared libraries through AIX4.2
13424 # and later when we are not doing run time linking.
9d54db95
JF
13425 library_names_spec='$libname$release.a $libname.a'
13426 soname_spec='$libname$release$shared_ext$major'
13427 ;;
13428 svr4,*) # full svr4 only
13429 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
13430 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13431 # We do not specify a path in Import Files, so LIBPATH fires.
13432 shlibpath_overrides_runpath=yes
13433 ;;
13434 *,yes) # both, prefer svr4
13435 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
13436 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13437 # unpreferred sharedlib libNAME.a needs extra handling
13438 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"'
13439 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"'
13440 # We do not specify a path in Import Files, so LIBPATH fires.
13441 shlibpath_overrides_runpath=yes
13442 ;;
13443 *,no) # both, prefer aix
13444 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
13445 library_names_spec='$libname$release.a $libname.a'
13446 soname_spec='$libname$release$shared_ext$major'
13447 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
13448 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)'
13449 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"'
13450 ;;
13451 esac
a243b558
JF
13452 shlibpath_var=LIBPATH
13453 fi
13454 ;;
13455
13456amigaos*)
13457 case $host_cpu in
13458 powerpc)
13459 # Since July 2007 AmigaOS4 officially supports .so libraries.
13460 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9d54db95 13461 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
a243b558
JF
13462 ;;
13463 m68k)
13464 library_names_spec='$libname.ixlibrary $libname.a'
13465 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9d54db95 13466 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
13467 ;;
13468 esac
13469 ;;
13470
13471beos*)
9d54db95 13472 library_names_spec='$libname$shared_ext'
a243b558
JF
13473 dynamic_linker="$host_os ld.so"
13474 shlibpath_var=LIBRARY_PATH
13475 ;;
13476
13477bsdi[45]*)
13478 version_type=linux # correct to gnu/linux during the next big refactor
13479 need_version=no
9d54db95
JF
13480 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13481 soname_spec='$libname$release$shared_ext$major'
a243b558
JF
13482 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13483 shlibpath_var=LD_LIBRARY_PATH
13484 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13485 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13486 # the default ld.so.conf also contains /usr/contrib/lib and
13487 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13488 # libtool to hard-code these into programs
13489 ;;
13490
13491cygwin* | mingw* | pw32* | cegcc*)
13492 version_type=windows
9d54db95 13493 shrext_cmds=.dll
a243b558
JF
13494 need_version=no
13495 need_lib_prefix=no
9c60689e 13496
a243b558
JF
13497 case $GCC,$cc_basename in
13498 yes,*)
13499 # gcc
13500 library_names_spec='$libname.dll.a'
13501 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9d54db95
JF
13502 postinstall_cmds='base_file=`basename \$file`~
13503 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
a243b558
JF
13504 dldir=$destdir/`dirname \$dlpath`~
13505 test -d \$dldir || mkdir -p \$dldir~
13506 $install_prog $dir/$dlname \$dldir/$dlname~
13507 chmod a+x \$dldir/$dlname~
13508 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13509 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13510 fi'
13511 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13512 dlpath=$dir/\$dldll~
13513 $RM \$dlpath'
13514 shlibpath_overrides_runpath=yes
9c60689e 13515
a243b558
JF
13516 case $host_os in
13517 cygwin*)
13518 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9d54db95 13519 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
9c60689e 13520
a243b558
JF
13521 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
13522 ;;
13523 mingw* | cegcc*)
13524 # MinGW DLLs use traditional 'lib' prefix
9d54db95 13525 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
a243b558
JF
13526 ;;
13527 pw32*)
13528 # pw32 DLLs use 'pw' prefix rather than 'lib'
9d54db95 13529 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
a243b558
JF
13530 ;;
13531 esac
13532 dynamic_linker='Win32 ld.exe'
13533 ;;
9c60689e 13534
a243b558
JF
13535 *,cl*)
13536 # Native MSVC
13537 libname_spec='$name'
9d54db95
JF
13538 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13539 library_names_spec='$libname.dll.lib'
9c60689e 13540
a243b558
JF
13541 case $build_os in
13542 mingw*)
13543 sys_lib_search_path_spec=
13544 lt_save_ifs=$IFS
13545 IFS=';'
13546 for lt_path in $LIB
13547 do
13548 IFS=$lt_save_ifs
13549 # Let DOS variable expansion print the short 8.3 style file name.
13550 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
13551 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
13552 done
13553 IFS=$lt_save_ifs
13554 # Convert to MSYS style.
13555 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
13556 ;;
13557 cygwin*)
13558 # Convert to unix form, then to dos form, then back to unix form
13559 # but this time dos style (no spaces!) so that the unix form looks
13560 # like /cygdrive/c/PROGRA~1:/cygdr...
13561 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
13562 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
13563 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13564 ;;
13565 *)
9d54db95 13566 sys_lib_search_path_spec=$LIB
a243b558
JF
13567 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13568 # It is most probably a Windows format PATH.
13569 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13570 else
13571 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13572 fi
13573 # FIXME: find the short name or the path components, as spaces are
13574 # common. (e.g. "Program Files" -> "PROGRA~1")
13575 ;;
13576 esac
13577
13578 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9d54db95
JF
13579 postinstall_cmds='base_file=`basename \$file`~
13580 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
a243b558
JF
13581 dldir=$destdir/`dirname \$dlpath`~
13582 test -d \$dldir || mkdir -p \$dldir~
13583 $install_prog $dir/$dlname \$dldir/$dlname'
13584 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13585 dlpath=$dir/\$dldll~
13586 $RM \$dlpath'
13587 shlibpath_overrides_runpath=yes
13588 dynamic_linker='Win32 link.exe'
13589 ;;
9c60689e 13590
a243b558
JF
13591 *)
13592 # Assume MSVC wrapper
9d54db95 13593 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
a243b558
JF
13594 dynamic_linker='Win32 ld.exe'
13595 ;;
13596 esac
13597 # FIXME: first we should search . and the directory the executable is in
13598 shlibpath_var=PATH
13599 ;;
9c60689e 13600
a243b558
JF
13601darwin* | rhapsody*)
13602 dynamic_linker="$host_os dyld"
13603 version_type=darwin
13604 need_lib_prefix=no
13605 need_version=no
9d54db95
JF
13606 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
13607 soname_spec='$libname$release$major$shared_ext'
a243b558
JF
13608 shlibpath_overrides_runpath=yes
13609 shlibpath_var=DYLD_LIBRARY_PATH
13610 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9c60689e 13611
a243b558
JF
13612 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13613 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13614 ;;
9c60689e 13615
a243b558
JF
13616dgux*)
13617 version_type=linux # correct to gnu/linux during the next big refactor
13618 need_lib_prefix=no
13619 need_version=no
9d54db95
JF
13620 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13621 soname_spec='$libname$release$shared_ext$major'
a243b558
JF
13622 shlibpath_var=LD_LIBRARY_PATH
13623 ;;
13624
13625freebsd* | dragonfly*)
13626 # DragonFly does not have aout. When/if they implement a new
13627 # versioning mechanism, adjust this.
13628 if test -x /usr/bin/objformat; then
13629 objformat=`/usr/bin/objformat`
13630 else
13631 case $host_os in
13632 freebsd[23].*) objformat=aout ;;
13633 *) objformat=elf ;;
13634 esac
13635 fi
13636 version_type=freebsd-$objformat
13637 case $version_type in
13638 freebsd-elf*)
9d54db95
JF
13639 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13640 soname_spec='$libname$release$shared_ext$major'
a243b558
JF
13641 need_version=no
13642 need_lib_prefix=no
13643 ;;
13644 freebsd-*)
9d54db95 13645 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
a243b558
JF
13646 need_version=yes
13647 ;;
13648 esac
13649 shlibpath_var=LD_LIBRARY_PATH
13650 case $host_os in
13651 freebsd2.*)
13652 shlibpath_overrides_runpath=yes
13653 ;;
13654 freebsd3.[01]* | freebsdelf3.[01]*)
13655 shlibpath_overrides_runpath=yes
13656 hardcode_into_libs=yes
13657 ;;
13658 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13659 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13660 shlibpath_overrides_runpath=no
13661 hardcode_into_libs=yes
13662 ;;
13663 *) # from 4.6 on, and DragonFly
13664 shlibpath_overrides_runpath=yes
13665 hardcode_into_libs=yes
13666 ;;
13667 esac
13668 ;;
9c60689e 13669
a243b558
JF
13670haiku*)
13671 version_type=linux # correct to gnu/linux during the next big refactor
13672 need_lib_prefix=no
13673 need_version=no
13674 dynamic_linker="$host_os runtime_loader"
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'
a243b558 13677 shlibpath_var=LIBRARY_PATH
9d54db95 13678 shlibpath_overrides_runpath=no
a243b558
JF
13679 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
13680 hardcode_into_libs=yes
13681 ;;
9c60689e 13682
a243b558
JF
13683hpux9* | hpux10* | hpux11*)
13684 # Give a soname corresponding to the major version so that dld.sl refuses to
13685 # link against other versions.
13686 version_type=sunos
13687 need_lib_prefix=no
13688 need_version=no
13689 case $host_cpu in
13690 ia64*)
13691 shrext_cmds='.so'
13692 hardcode_into_libs=yes
13693 dynamic_linker="$host_os dld.so"
13694 shlibpath_var=LD_LIBRARY_PATH
13695 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9d54db95
JF
13696 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13697 soname_spec='$libname$release$shared_ext$major'
13698 if test 32 = "$HPUX_IA64_MODE"; then
a243b558 13699 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9d54db95 13700 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
a243b558
JF
13701 else
13702 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9d54db95 13703 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
a243b558 13704 fi
a243b558
JF
13705 ;;
13706 hppa*64*)
13707 shrext_cmds='.sl'
13708 hardcode_into_libs=yes
13709 dynamic_linker="$host_os dld.sl"
13710 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13711 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9d54db95
JF
13712 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13713 soname_spec='$libname$release$shared_ext$major'
a243b558
JF
13714 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13715 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13716 ;;
13717 *)
13718 shrext_cmds='.sl'
13719 dynamic_linker="$host_os dld.sl"
13720 shlibpath_var=SHLIB_PATH
13721 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9d54db95
JF
13722 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13723 soname_spec='$libname$release$shared_ext$major'
9c60689e
DWT
13724 ;;
13725 esac
a243b558
JF
13726 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13727 postinstall_cmds='chmod 555 $lib'
13728 # or fails outright, so override atomically:
13729 install_override_mode=555
13730 ;;
9c60689e 13731
a243b558
JF
13732interix[3-9]*)
13733 version_type=linux # correct to gnu/linux during the next big refactor
13734 need_lib_prefix=no
13735 need_version=no
9d54db95
JF
13736 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13737 soname_spec='$libname$release$shared_ext$major'
a243b558
JF
13738 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13739 shlibpath_var=LD_LIBRARY_PATH
13740 shlibpath_overrides_runpath=no
13741 hardcode_into_libs=yes
13742 ;;
9c60689e 13743
a243b558
JF
13744irix5* | irix6* | nonstopux*)
13745 case $host_os in
13746 nonstopux*) version_type=nonstopux ;;
13747 *)
9d54db95 13748 if test yes = "$lt_cv_prog_gnu_ld"; then
a243b558
JF
13749 version_type=linux # correct to gnu/linux during the next big refactor
13750 else
13751 version_type=irix
13752 fi ;;
13753 esac
13754 need_lib_prefix=no
13755 need_version=no
9d54db95
JF
13756 soname_spec='$libname$release$shared_ext$major'
13757 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
a243b558
JF
13758 case $host_os in
13759 irix5* | nonstopux*)
13760 libsuff= shlibsuff=
13761 ;;
13762 *)
13763 case $LD in # libtool.m4 will add one of these switches to LD
13764 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13765 libsuff= shlibsuff= libmagic=32-bit;;
13766 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13767 libsuff=32 shlibsuff=N32 libmagic=N32;;
13768 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13769 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13770 *) libsuff= shlibsuff= libmagic=never-match;;
13771 esac
13772 ;;
13773 esac
13774 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13775 shlibpath_overrides_runpath=no
9d54db95
JF
13776 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
13777 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
a243b558
JF
13778 hardcode_into_libs=yes
13779 ;;
9c60689e 13780
a243b558
JF
13781# No shared lib support for Linux oldld, aout, or coff.
13782linux*oldld* | linux*aout* | linux*coff*)
13783 dynamic_linker=no
13784 ;;
9c60689e 13785
9d54db95
JF
13786linux*android*)
13787 version_type=none # Android doesn't support versioned libraries.
13788 need_lib_prefix=no
13789 need_version=no
13790 library_names_spec='$libname$release$shared_ext'
13791 soname_spec='$libname$release$shared_ext'
13792 finish_cmds=
13793 shlibpath_var=LD_LIBRARY_PATH
13794 shlibpath_overrides_runpath=yes
13795
13796 # This implies no fast_install, which is unacceptable.
13797 # Some rework will be needed to allow for fast_install
13798 # before this can be enabled.
13799 hardcode_into_libs=yes
13800
13801 dynamic_linker='Android linker'
13802 # Don't embed -rpath directories since the linker doesn't support them.
13803 hardcode_libdir_flag_spec='-L$libdir'
13804 ;;
13805
a243b558 13806# This must be glibc/ELF.
9d54db95 13807linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
a243b558
JF
13808 version_type=linux # correct to gnu/linux during the next big refactor
13809 need_lib_prefix=no
13810 need_version=no
9d54db95
JF
13811 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13812 soname_spec='$libname$release$shared_ext$major'
a243b558
JF
13813 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13814 shlibpath_var=LD_LIBRARY_PATH
13815 shlibpath_overrides_runpath=no
9c60689e 13816
a243b558
JF
13817 # Some binutils ld are patched to set DT_RUNPATH
13818 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
9c60689e
DWT
13819 $as_echo_n "(cached) " >&6
13820else
a243b558
JF
13821 lt_cv_shlibpath_overrides_runpath=no
13822 save_LDFLAGS=$LDFLAGS
13823 save_libdir=$libdir
13824 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13825 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13827/* end confdefs.h. */
ee134472 13828
a243b558
JF
13829int
13830main ()
9c60689e 13831{
9c60689e 13832
a243b558
JF
13833 ;
13834 return 0;
13835}
13836_ACEOF
13837if ac_fn_c_try_link "$LINENO"; then :
13838 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13839 lt_cv_shlibpath_overrides_runpath=yes
13840fi
13841fi
13842rm -f core conftest.err conftest.$ac_objext \
13843 conftest$ac_exeext conftest.$ac_ext
13844 LDFLAGS=$save_LDFLAGS
13845 libdir=$save_libdir
9c60689e 13846
a243b558 13847fi
9c60689e 13848
a243b558 13849 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
9c60689e 13850
a243b558
JF
13851 # This implies no fast_install, which is unacceptable.
13852 # Some rework will be needed to allow for fast_install
13853 # before this can be enabled.
13854 hardcode_into_libs=yes
9c60689e 13855
9d54db95
JF
13856 # Ideally, we could use ldconfig to report *all* directores which are
13857 # searched for libraries, however this is still not possible. Aside from not
13858 # being certain /sbin/ldconfig is available, command
13859 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
13860 # even though it is searched at run-time. Try to do the best guess by
13861 # appending ld.so.conf contents (and includes) to the search path.
a243b558
JF
13862 if test -f /etc/ld.so.conf; then
13863 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' ' '`
13864 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13865 fi
ee134472 13866
a243b558
JF
13867 # We used to test for /lib/ld.so.1 and disable shared libraries on
13868 # powerpc, because MkLinux only supported shared libraries with the
13869 # GNU dynamic linker. Since this was broken with cross compilers,
13870 # most powerpc-linux boxes support dynamic linking these days and
13871 # people can always --disable-shared, the test was removed, and we
13872 # assume the GNU/Linux dynamic linker is in use.
13873 dynamic_linker='GNU/Linux ld.so'
13874 ;;
9c60689e 13875
a243b558
JF
13876netbsd*)
13877 version_type=sunos
13878 need_lib_prefix=no
13879 need_version=no
13880 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9d54db95 13881 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
a243b558
JF
13882 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13883 dynamic_linker='NetBSD (a.out) ld.so'
9c60689e 13884 else
9d54db95
JF
13885 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13886 soname_spec='$libname$release$shared_ext$major'
a243b558 13887 dynamic_linker='NetBSD ld.elf_so'
9c60689e 13888 fi
a243b558
JF
13889 shlibpath_var=LD_LIBRARY_PATH
13890 shlibpath_overrides_runpath=yes
13891 hardcode_into_libs=yes
13892 ;;
9c60689e 13893
a243b558
JF
13894newsos6)
13895 version_type=linux # correct to gnu/linux during the next big refactor
9d54db95 13896 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
a243b558
JF
13897 shlibpath_var=LD_LIBRARY_PATH
13898 shlibpath_overrides_runpath=yes
13899 ;;
9c60689e 13900
a243b558
JF
13901*nto* | *qnx*)
13902 version_type=qnx
13903 need_lib_prefix=no
13904 need_version=no
9d54db95
JF
13905 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13906 soname_spec='$libname$release$shared_ext$major'
a243b558
JF
13907 shlibpath_var=LD_LIBRARY_PATH
13908 shlibpath_overrides_runpath=no
13909 hardcode_into_libs=yes
13910 dynamic_linker='ldqnx.so'
13911 ;;
9c60689e 13912
9d54db95 13913openbsd* | bitrig*)
a243b558 13914 version_type=sunos
9d54db95 13915 sys_lib_dlsearch_path_spec=/usr/lib
a243b558 13916 need_lib_prefix=no
9d54db95
JF
13917 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13918 need_version=no
a243b558 13919 else
9d54db95 13920 need_version=yes
a243b558 13921 fi
9d54db95
JF
13922 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13923 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13924 shlibpath_var=LD_LIBRARY_PATH
13925 shlibpath_overrides_runpath=yes
a243b558 13926 ;;
9c60689e 13927
a243b558
JF
13928os2*)
13929 libname_spec='$name'
9d54db95
JF
13930 version_type=windows
13931 shrext_cmds=.dll
13932 need_version=no
a243b558 13933 need_lib_prefix=no
9d54db95
JF
13934 # OS/2 can only load a DLL with a base name of 8 characters or less.
13935 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
13936 v=$($ECHO $release$versuffix | tr -d .-);
13937 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
13938 $ECHO $n$v`$shared_ext'
13939 library_names_spec='${libname}_dll.$libext'
a243b558 13940 dynamic_linker='OS/2 ld.exe'
9d54db95
JF
13941 shlibpath_var=BEGINLIBPATH
13942 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13943 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13944 postinstall_cmds='base_file=`basename \$file`~
13945 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
13946 dldir=$destdir/`dirname \$dlpath`~
13947 test -d \$dldir || mkdir -p \$dldir~
13948 $install_prog $dir/$dlname \$dldir/$dlname~
13949 chmod a+x \$dldir/$dlname~
13950 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13951 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13952 fi'
13953 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
13954 dlpath=$dir/\$dldll~
13955 $RM \$dlpath'
a243b558 13956 ;;
9c60689e 13957
a243b558
JF
13958osf3* | osf4* | osf5*)
13959 version_type=osf
13960 need_lib_prefix=no
13961 need_version=no
9d54db95
JF
13962 soname_spec='$libname$release$shared_ext$major'
13963 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
a243b558
JF
13964 shlibpath_var=LD_LIBRARY_PATH
13965 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9d54db95 13966 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
a243b558
JF
13967 ;;
13968
13969rdos*)
13970 dynamic_linker=no
13971 ;;
13972
13973solaris*)
13974 version_type=linux # correct to gnu/linux during the next big refactor
13975 need_lib_prefix=no
13976 need_version=no
9d54db95
JF
13977 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13978 soname_spec='$libname$release$shared_ext$major'
a243b558
JF
13979 shlibpath_var=LD_LIBRARY_PATH
13980 shlibpath_overrides_runpath=yes
13981 hardcode_into_libs=yes
13982 # ldd complains unless libraries are executable
13983 postinstall_cmds='chmod +x $lib'
13984 ;;
9c60689e 13985
a243b558
JF
13986sunos4*)
13987 version_type=sunos
9d54db95 13988 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
a243b558
JF
13989 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13990 shlibpath_var=LD_LIBRARY_PATH
13991 shlibpath_overrides_runpath=yes
9d54db95 13992 if test yes = "$with_gnu_ld"; then
a243b558
JF
13993 need_lib_prefix=no
13994 fi
13995 need_version=yes
13996 ;;
9c60689e 13997
a243b558
JF
13998sysv4 | sysv4.3*)
13999 version_type=linux # correct to gnu/linux during the next big refactor
9d54db95
JF
14000 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14001 soname_spec='$libname$release$shared_ext$major'
a243b558
JF
14002 shlibpath_var=LD_LIBRARY_PATH
14003 case $host_vendor in
14004 sni)
14005 shlibpath_overrides_runpath=no
14006 need_lib_prefix=no
14007 runpath_var=LD_RUN_PATH
14008 ;;
14009 siemens)
14010 need_lib_prefix=no
14011 ;;
14012 motorola)
14013 need_lib_prefix=no
14014 need_version=no
14015 shlibpath_overrides_runpath=no
14016 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14017 ;;
14018 esac
14019 ;;
9c60689e 14020
a243b558 14021sysv4*MP*)
9d54db95 14022 if test -d /usr/nec; then
a243b558 14023 version_type=linux # correct to gnu/linux during the next big refactor
9d54db95
JF
14024 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
14025 soname_spec='$libname$shared_ext.$major'
a243b558
JF
14026 shlibpath_var=LD_LIBRARY_PATH
14027 fi
14028 ;;
9c60689e 14029
a243b558 14030sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9d54db95 14031 version_type=sco
a243b558
JF
14032 need_lib_prefix=no
14033 need_version=no
9d54db95
JF
14034 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
14035 soname_spec='$libname$release$shared_ext$major'
a243b558
JF
14036 shlibpath_var=LD_LIBRARY_PATH
14037 shlibpath_overrides_runpath=yes
14038 hardcode_into_libs=yes
9d54db95 14039 if test yes = "$with_gnu_ld"; then
a243b558
JF
14040 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14041 else
14042 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14043 case $host_os in
14044 sco3.2v5*)
14045 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14046 ;;
14047 esac
14048 fi
14049 sys_lib_dlsearch_path_spec='/usr/lib'
14050 ;;
9c60689e 14051
a243b558
JF
14052tpf*)
14053 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14054 version_type=linux # correct to gnu/linux during the next big refactor
14055 need_lib_prefix=no
14056 need_version=no
9d54db95 14057 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
a243b558
JF
14058 shlibpath_var=LD_LIBRARY_PATH
14059 shlibpath_overrides_runpath=no
14060 hardcode_into_libs=yes
14061 ;;
9c60689e 14062
a243b558
JF
14063uts4*)
14064 version_type=linux # correct to gnu/linux during the next big refactor
9d54db95
JF
14065 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14066 soname_spec='$libname$release$shared_ext$major'
a243b558
JF
14067 shlibpath_var=LD_LIBRARY_PATH
14068 ;;
9c60689e 14069
a243b558
JF
14070*)
14071 dynamic_linker=no
14072 ;;
14073esac
14074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14075$as_echo "$dynamic_linker" >&6; }
9d54db95 14076test no = "$dynamic_linker" && can_build_shared=no
9c60689e 14077
a243b558 14078variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9d54db95 14079if test yes = "$GCC"; then
a243b558
JF
14080 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14081fi
9c60689e 14082
9d54db95
JF
14083if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
14084 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
a243b558 14085fi
9d54db95
JF
14086
14087if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
14088 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
a243b558 14089fi
9c60689e 14090
9d54db95
JF
14091# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
14092configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
14093
14094# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
14095func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
14096
14097# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
14098configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
14099
14100
14101
14102
14103
14104
9c60689e
DWT
14105
14106
14107
14108
14109
14110
14111
9c60689e
DWT
14112
14113
14114
14115
14116
14117
14118
14119
14120
14121
14122
14123
9c60689e 14124
9c60689e 14125
9c60689e 14126
9c60689e 14127
9c60689e
DWT
14128
14129
14130
14131
9c60689e 14132
9c60689e
DWT
14133
14134
14135
14136
14137
14138
14139
14140
14141
14142
14143
14144
14145
53ba6704
JF
14146
14147
9c60689e
DWT
14148
14149
14150
14151
9c60689e
DWT
14152
14153
3fd51f51 14154
66170b30
JF
14155
14156
14157
3fd51f51 14158
12833ad8
JF
14159
14160
14161
14162
3fd51f51 14163
3fd51f51
DWT
14164
14165
3fd51f51 14166
3fd51f51 14167
3fd51f51 14168
66170b30 14169
632b71ea 14170
632b71ea
DWT
14171
14172
790e5246 14173
66170b30 14174
9c60689e 14175
9c60689e
DWT
14176
14177
9c60689e 14178
9c60689e
DWT
14179
14180
66170b30 14181
66170b30 14182
9c60689e 14183
e9c9a47c
DWT
14184
14185
14186
66170b30
JF
14187
14188
66170b30 14189
e9c9a47c 14190
a243b558
JF
14191
14192
14193
14194
14195
14196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14197$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14198hardcode_action=
14199if test -n "$hardcode_libdir_flag_spec" ||
14200 test -n "$runpath_var" ||
9d54db95 14201 test yes = "$hardcode_automatic"; then
a243b558
JF
14202
14203 # We can hardcode non-existent directories.
9d54db95 14204 if test no != "$hardcode_direct" &&
a243b558
JF
14205 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14206 # have to relink, otherwise we might link with an installed library
14207 # when we should be linking with a yet-to-be-installed one
9d54db95
JF
14208 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
14209 test no != "$hardcode_minus_L"; then
a243b558
JF
14210 # Linking always hardcodes the temporary library directory.
14211 hardcode_action=relink
14212 else
14213 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14214 hardcode_action=immediate
9c60689e 14215 fi
e9c9a47c 14216else
a243b558
JF
14217 # We cannot hardcode anything, or else we can only hardcode existing
14218 # directories.
14219 hardcode_action=unsupported
14220fi
14221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14222$as_echo "$hardcode_action" >&6; }
14223
9d54db95
JF
14224if test relink = "$hardcode_action" ||
14225 test yes = "$inherit_rpath"; then
a243b558
JF
14226 # Fast installation is not supported
14227 enable_fast_install=no
9d54db95
JF
14228elif test yes = "$shlibpath_overrides_runpath" ||
14229 test no = "$enable_shared"; then
a243b558
JF
14230 # Fast installation is not necessary
14231 enable_fast_install=needless
9c60689e 14232fi
9c60689e 14233
9c60689e 14234
66170b30 14235
66170b30 14236
9c60689e 14237
a243b558 14238
9d54db95 14239 if test yes != "$enable_dlopen"; then
a243b558
JF
14240 enable_dlopen=unknown
14241 enable_dlopen_self=unknown
14242 enable_dlopen_self_static=unknown
66170b30 14243else
a243b558
JF
14244 lt_cv_dlopen=no
14245 lt_cv_dlopen_libs=
66170b30 14246
a243b558
JF
14247 case $host_os in
14248 beos*)
9d54db95 14249 lt_cv_dlopen=load_add_on
a243b558
JF
14250 lt_cv_dlopen_libs=
14251 lt_cv_dlopen_self=yes
14252 ;;
66170b30 14253
a243b558 14254 mingw* | pw32* | cegcc*)
9d54db95 14255 lt_cv_dlopen=LoadLibrary
a243b558
JF
14256 lt_cv_dlopen_libs=
14257 ;;
66170b30 14258
a243b558 14259 cygwin*)
9d54db95 14260 lt_cv_dlopen=dlopen
a243b558
JF
14261 lt_cv_dlopen_libs=
14262 ;;
66170b30 14263
a243b558 14264 darwin*)
9d54db95 14265 # if libdl is installed we need to link against it
a243b558
JF
14266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14267$as_echo_n "checking for dlopen in -ldl... " >&6; }
14268if ${ac_cv_lib_dl_dlopen+:} false; then :
14269 $as_echo_n "(cached) " >&6
14270else
14271 ac_check_lib_save_LIBS=$LIBS
14272LIBS="-ldl $LIBS"
14273cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14274/* end confdefs.h. */
66170b30 14275
a243b558
JF
14276/* Override any GCC internal prototype to avoid an error.
14277 Use char because int might match the return type of a GCC
14278 builtin and then its argument prototype would still apply. */
14279#ifdef __cplusplus
14280extern "C"
14281#endif
14282char dlopen ();
14283int
14284main ()
14285{
14286return dlopen ();
14287 ;
14288 return 0;
14289}
14290_ACEOF
14291if ac_fn_c_try_link "$LINENO"; then :
14292 ac_cv_lib_dl_dlopen=yes
14293else
14294 ac_cv_lib_dl_dlopen=no
66170b30 14295fi
a243b558
JF
14296rm -f core conftest.err conftest.$ac_objext \
14297 conftest$ac_exeext conftest.$ac_ext
14298LIBS=$ac_check_lib_save_LIBS
66170b30 14299fi
a243b558
JF
14300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14301$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14302if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
9d54db95 14303 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
a243b558 14304else
66170b30 14305
9d54db95 14306 lt_cv_dlopen=dyld
a243b558
JF
14307 lt_cv_dlopen_libs=
14308 lt_cv_dlopen_self=yes
66170b30 14309
a243b558 14310fi
9c60689e 14311
a243b558 14312 ;;
9c60689e 14313
9d54db95
JF
14314 tpf*)
14315 # Don't try to run any link tests for TPF. We know it's impossible
14316 # because TPF is a cross-compiler, and we know how we open DSOs.
14317 lt_cv_dlopen=dlopen
14318 lt_cv_dlopen_libs=
14319 lt_cv_dlopen_self=no
14320 ;;
14321
a243b558
JF
14322 *)
14323 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14324if test "x$ac_cv_func_shl_load" = xyes; then :
9d54db95 14325 lt_cv_dlopen=shl_load
a243b558
JF
14326else
14327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14328$as_echo_n "checking for shl_load in -ldld... " >&6; }
14329if ${ac_cv_lib_dld_shl_load+:} false; then :
14330 $as_echo_n "(cached) " >&6
14331else
14332 ac_check_lib_save_LIBS=$LIBS
14333LIBS="-ldld $LIBS"
14334cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14335/* end confdefs.h. */
66170b30 14336
a243b558
JF
14337/* Override any GCC internal prototype to avoid an error.
14338 Use char because int might match the return type of a GCC
14339 builtin and then its argument prototype would still apply. */
14340#ifdef __cplusplus
14341extern "C"
14342#endif
14343char shl_load ();
14344int
14345main ()
14346{
14347return shl_load ();
14348 ;
14349 return 0;
14350}
14351_ACEOF
14352if ac_fn_c_try_link "$LINENO"; then :
14353 ac_cv_lib_dld_shl_load=yes
66170b30 14354else
a243b558
JF
14355 ac_cv_lib_dld_shl_load=no
14356fi
14357rm -f core conftest.err conftest.$ac_objext \
14358 conftest$ac_exeext conftest.$ac_ext
14359LIBS=$ac_check_lib_save_LIBS
66170b30 14360fi
a243b558
JF
14361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14362$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
14363if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
9d54db95 14364 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
a243b558
JF
14365else
14366 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14367if test "x$ac_cv_func_dlopen" = xyes; then :
9d54db95 14368 lt_cv_dlopen=dlopen
a243b558
JF
14369else
14370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14371$as_echo_n "checking for dlopen in -ldl... " >&6; }
14372if ${ac_cv_lib_dl_dlopen+:} false; then :
14373 $as_echo_n "(cached) " >&6
14374else
14375 ac_check_lib_save_LIBS=$LIBS
14376LIBS="-ldl $LIBS"
14377cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14378/* end confdefs.h. */
e9c9a47c 14379
a243b558
JF
14380/* Override any GCC internal prototype to avoid an error.
14381 Use char because int might match the return type of a GCC
14382 builtin and then its argument prototype would still apply. */
14383#ifdef __cplusplus
14384extern "C"
14385#endif
14386char dlopen ();
14387int
14388main ()
14389{
14390return dlopen ();
14391 ;
14392 return 0;
14393}
14394_ACEOF
14395if ac_fn_c_try_link "$LINENO"; then :
14396 ac_cv_lib_dl_dlopen=yes
14397else
14398 ac_cv_lib_dl_dlopen=no
14399fi
14400rm -f core conftest.err conftest.$ac_objext \
14401 conftest$ac_exeext conftest.$ac_ext
14402LIBS=$ac_check_lib_save_LIBS
14403fi
14404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14405$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14406if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
9d54db95 14407 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
a243b558
JF
14408else
14409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14410$as_echo_n "checking for dlopen in -lsvld... " >&6; }
14411if ${ac_cv_lib_svld_dlopen+:} false; then :
14412 $as_echo_n "(cached) " >&6
14413else
14414 ac_check_lib_save_LIBS=$LIBS
14415LIBS="-lsvld $LIBS"
14416cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14417/* end confdefs.h. */
14418
14419/* Override any GCC internal prototype to avoid an error.
14420 Use char because int might match the return type of a GCC
14421 builtin and then its argument prototype would still apply. */
14422#ifdef __cplusplus
14423extern "C"
14424#endif
14425char dlopen ();
14426int
14427main ()
14428{
14429return dlopen ();
14430 ;
14431 return 0;
14432}
14433_ACEOF
14434if ac_fn_c_try_link "$LINENO"; then :
14435 ac_cv_lib_svld_dlopen=yes
14436else
14437 ac_cv_lib_svld_dlopen=no
14438fi
14439rm -f core conftest.err conftest.$ac_objext \
14440 conftest$ac_exeext conftest.$ac_ext
14441LIBS=$ac_check_lib_save_LIBS
14442fi
14443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14444$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
14445if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
9d54db95 14446 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
a243b558
JF
14447else
14448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14449$as_echo_n "checking for dld_link in -ldld... " >&6; }
14450if ${ac_cv_lib_dld_dld_link+:} false; then :
14451 $as_echo_n "(cached) " >&6
14452else
14453 ac_check_lib_save_LIBS=$LIBS
14454LIBS="-ldld $LIBS"
14455cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14456/* end confdefs.h. */
14457
14458/* Override any GCC internal prototype to avoid an error.
14459 Use char because int might match the return type of a GCC
14460 builtin and then its argument prototype would still apply. */
14461#ifdef __cplusplus
14462extern "C"
14463#endif
14464char dld_link ();
14465int
14466main ()
14467{
14468return dld_link ();
14469 ;
14470 return 0;
14471}
14472_ACEOF
14473if ac_fn_c_try_link "$LINENO"; then :
14474 ac_cv_lib_dld_dld_link=yes
9c60689e 14475else
a243b558
JF
14476 ac_cv_lib_dld_dld_link=no
14477fi
14478rm -f core conftest.err conftest.$ac_objext \
14479 conftest$ac_exeext conftest.$ac_ext
14480LIBS=$ac_check_lib_save_LIBS
14481fi
14482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14483$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
14484if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
9d54db95 14485 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
9c60689e
DWT
14486fi
14487
14488
a243b558 14489fi
66170b30 14490
66170b30 14491
a243b558 14492fi
66170b30 14493
66170b30
JF
14494
14495fi
e9c9a47c 14496
66170b30 14497
a243b558 14498fi
66170b30 14499
66170b30 14500
66170b30 14501fi
e9c9a47c 14502
a243b558
JF
14503 ;;
14504 esac
9c60689e 14505
9d54db95 14506 if test no = "$lt_cv_dlopen"; then
a243b558 14507 enable_dlopen=no
9d54db95
JF
14508 else
14509 enable_dlopen=yes
a243b558 14510 fi
9c60689e 14511
a243b558
JF
14512 case $lt_cv_dlopen in
14513 dlopen)
9d54db95
JF
14514 save_CPPFLAGS=$CPPFLAGS
14515 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
66170b30 14516
9d54db95 14517 save_LDFLAGS=$LDFLAGS
a243b558 14518 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
66170b30 14519
9d54db95 14520 save_LIBS=$LIBS
a243b558 14521 LIBS="$lt_cv_dlopen_libs $LIBS"
3fd51f51 14522
a243b558
JF
14523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14524$as_echo_n "checking whether a program can dlopen itself... " >&6; }
14525if ${lt_cv_dlopen_self+:} false; then :
14526 $as_echo_n "(cached) " >&6
e9c9a47c 14527else
9d54db95 14528 if test yes = "$cross_compiling"; then :
a243b558
JF
14529 lt_cv_dlopen_self=cross
14530else
14531 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14532 lt_status=$lt_dlunknown
14533 cat > conftest.$ac_ext <<_LT_EOF
14534#line $LINENO "configure"
14535#include "confdefs.h"
e9c9a47c 14536
a243b558
JF
14537#if HAVE_DLFCN_H
14538#include <dlfcn.h>
14539#endif
e9c9a47c 14540
a243b558 14541#include <stdio.h>
66170b30 14542
a243b558
JF
14543#ifdef RTLD_GLOBAL
14544# define LT_DLGLOBAL RTLD_GLOBAL
14545#else
14546# ifdef DL_GLOBAL
14547# define LT_DLGLOBAL DL_GLOBAL
14548# else
14549# define LT_DLGLOBAL 0
14550# endif
14551#endif
66170b30 14552
a243b558
JF
14553/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14554 find out it does not work in some platform. */
14555#ifndef LT_DLLAZY_OR_NOW
14556# ifdef RTLD_LAZY
14557# define LT_DLLAZY_OR_NOW RTLD_LAZY
14558# else
14559# ifdef DL_LAZY
14560# define LT_DLLAZY_OR_NOW DL_LAZY
14561# else
14562# ifdef RTLD_NOW
14563# define LT_DLLAZY_OR_NOW RTLD_NOW
14564# else
14565# ifdef DL_NOW
14566# define LT_DLLAZY_OR_NOW DL_NOW
14567# else
14568# define LT_DLLAZY_OR_NOW 0
14569# endif
14570# endif
14571# endif
14572# endif
14573#endif
e9c9a47c 14574
9d54db95 14575/* When -fvisibility=hidden is used, assume the code has been annotated
a243b558 14576 correspondingly for the symbols needed. */
9d54db95 14577#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
a243b558
JF
14578int fnord () __attribute__((visibility("default")));
14579#endif
e9c9a47c 14580
a243b558
JF
14581int fnord () { return 42; }
14582int main ()
14583{
14584 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14585 int status = $lt_dlunknown;
e9c9a47c 14586
a243b558
JF
14587 if (self)
14588 {
14589 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14590 else
14591 {
14592 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14593 else puts (dlerror ());
14594 }
14595 /* dlclose (self); */
14596 }
14597 else
14598 puts (dlerror ());
e9c9a47c 14599
a243b558
JF
14600 return status;
14601}
14602_LT_EOF
14603 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14604 (eval $ac_link) 2>&5
14605 ac_status=$?
14606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9d54db95 14607 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
a243b558
JF
14608 (./conftest; exit; ) >&5 2>/dev/null
14609 lt_status=$?
14610 case x$lt_status in
14611 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14612 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14613 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14614 esac
14615 else :
14616 # compilation failed
14617 lt_cv_dlopen_self=no
14618 fi
14619fi
14620rm -fr conftest*
e9c9a47c 14621
e9c9a47c 14622
e9c9a47c 14623fi
a243b558
JF
14624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14625$as_echo "$lt_cv_dlopen_self" >&6; }
e9c9a47c 14626
9d54db95 14627 if test yes = "$lt_cv_dlopen_self"; then
a243b558
JF
14628 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14630$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
14631if ${lt_cv_dlopen_self_static+:} false; then :
14632 $as_echo_n "(cached) " >&6
e9c9a47c 14633else
9d54db95 14634 if test yes = "$cross_compiling"; then :
a243b558
JF
14635 lt_cv_dlopen_self_static=cross
14636else
14637 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14638 lt_status=$lt_dlunknown
14639 cat > conftest.$ac_ext <<_LT_EOF
14640#line $LINENO "configure"
14641#include "confdefs.h"
14642
14643#if HAVE_DLFCN_H
14644#include <dlfcn.h>
14645#endif
14646
14647#include <stdio.h>
e9c9a47c 14648
a243b558
JF
14649#ifdef RTLD_GLOBAL
14650# define LT_DLGLOBAL RTLD_GLOBAL
14651#else
14652# ifdef DL_GLOBAL
14653# define LT_DLGLOBAL DL_GLOBAL
14654# else
14655# define LT_DLGLOBAL 0
14656# endif
14657#endif
e9c9a47c 14658
a243b558
JF
14659/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14660 find out it does not work in some platform. */
14661#ifndef LT_DLLAZY_OR_NOW
14662# ifdef RTLD_LAZY
14663# define LT_DLLAZY_OR_NOW RTLD_LAZY
14664# else
14665# ifdef DL_LAZY
14666# define LT_DLLAZY_OR_NOW DL_LAZY
14667# else
14668# ifdef RTLD_NOW
14669# define LT_DLLAZY_OR_NOW RTLD_NOW
14670# else
14671# ifdef DL_NOW
14672# define LT_DLLAZY_OR_NOW DL_NOW
14673# else
14674# define LT_DLLAZY_OR_NOW 0
14675# endif
14676# endif
14677# endif
14678# endif
14679#endif
66170b30 14680
9d54db95 14681/* When -fvisibility=hidden is used, assume the code has been annotated
a243b558 14682 correspondingly for the symbols needed. */
9d54db95 14683#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
a243b558
JF
14684int fnord () __attribute__((visibility("default")));
14685#endif
e9c9a47c 14686
a243b558
JF
14687int fnord () { return 42; }
14688int main ()
14689{
14690 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14691 int status = $lt_dlunknown;
e9c9a47c 14692
a243b558
JF
14693 if (self)
14694 {
14695 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14696 else
14697 {
14698 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14699 else puts (dlerror ());
14700 }
14701 /* dlclose (self); */
14702 }
14703 else
14704 puts (dlerror ());
e9c9a47c 14705
a243b558
JF
14706 return status;
14707}
14708_LT_EOF
14709 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14710 (eval $ac_link) 2>&5
14711 ac_status=$?
14712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9d54db95 14713 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
a243b558
JF
14714 (./conftest; exit; ) >&5 2>/dev/null
14715 lt_status=$?
14716 case x$lt_status in
14717 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14718 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14719 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14720 esac
14721 else :
14722 # compilation failed
14723 lt_cv_dlopen_self_static=no
14724 fi
14725fi
14726rm -fr conftest*
e9c9a47c 14727
b65019fe 14728
a243b558
JF
14729fi
14730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14731$as_echo "$lt_cv_dlopen_self_static" >&6; }
14732 fi
66170b30 14733
9d54db95
JF
14734 CPPFLAGS=$save_CPPFLAGS
14735 LDFLAGS=$save_LDFLAGS
14736 LIBS=$save_LIBS
a243b558
JF
14737 ;;
14738 esac
66170b30 14739
a243b558
JF
14740 case $lt_cv_dlopen_self in
14741 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14742 *) enable_dlopen_self=unknown ;;
14743 esac
14744
14745 case $lt_cv_dlopen_self_static in
14746 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14747 *) enable_dlopen_self_static=unknown ;;
14748 esac
b65019fe
DWT
14749fi
14750
14751
66170b30 14752
b65019fe 14753
e9c9a47c 14754
e9c9a47c
DWT
14755
14756
e9c9a47c 14757
e9c9a47c
DWT
14758
14759
e9c9a47c 14760
e9c9a47c 14761
3530897b 14762
47aaa820 14763
47aaa820 14764
a243b558
JF
14765
14766
14767striplib=
14768old_striplib=
14769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14770$as_echo_n "checking whether stripping libraries is possible... " >&6; }
14771if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14772 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14773 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14775$as_echo "yes" >&6; }
47aaa820 14776else
a243b558
JF
14777# FIXME - insert some real tests, host_os isn't really good enough
14778 case $host_os in
14779 darwin*)
9d54db95 14780 if test -n "$STRIP"; then
a243b558
JF
14781 striplib="$STRIP -x"
14782 old_striplib="$STRIP -S"
14783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14784$as_echo "yes" >&6; }
14785 else
14786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14787$as_echo "no" >&6; }
14788 fi
14789 ;;
14790 *)
14791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14792$as_echo "no" >&6; }
14793 ;;
14794 esac
3530897b 14795fi
47aaa820 14796
3530897b
DWT
14797
14798
9c60689e 14799
9c60689e 14800
9c60689e 14801
9c60689e 14802
9c60689e 14803
66170b30 14804
66170b30 14805
66170b30 14806
66170b30 14807
9d54db95 14808 # Report what library types will actually be built
a243b558
JF
14809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14810$as_echo_n "checking if libtool supports shared libraries... " >&6; }
14811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14812$as_echo "$can_build_shared" >&6; }
66170b30 14813
a243b558
JF
14814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14815$as_echo_n "checking whether to build shared libraries... " >&6; }
9d54db95 14816 test no = "$can_build_shared" && enable_shared=no
66170b30 14817
a243b558
JF
14818 # On AIX, shared libraries and static libraries use the same namespace, and
14819 # are all built from PIC.
14820 case $host_os in
14821 aix3*)
9d54db95 14822 test yes = "$enable_shared" && enable_static=no
a243b558
JF
14823 if test -n "$RANLIB"; then
14824 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14825 postinstall_cmds='$RANLIB $lib'
14826 fi
14827 ;;
66170b30 14828
a243b558 14829 aix[4-9]*)
9d54db95
JF
14830 if test ia64 != "$host_cpu"; then
14831 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
14832 yes,aix,yes) ;; # shared object as lib.so file only
14833 yes,svr4,*) ;; # shared object as lib.so archive member only
14834 yes,*) enable_static=no ;; # shared object in lib.a archive as well
14835 esac
a243b558
JF
14836 fi
14837 ;;
14838 esac
14839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14840$as_echo "$enable_shared" >&6; }
66170b30 14841
a243b558
JF
14842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14843$as_echo_n "checking whether to build static libraries... " >&6; }
14844 # Make sure either enable_shared or enable_static is yes.
9d54db95 14845 test yes = "$enable_shared" || enable_static=yes
a243b558
JF
14846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14847$as_echo "$enable_static" >&6; }
66170b30 14848
9c60689e 14849
e9c9a47c 14850
9c60689e 14851
a243b558
JF
14852fi
14853ac_ext=c
14854ac_cpp='$CPP $CPPFLAGS'
14855ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14856ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14857ac_compiler_gnu=$ac_cv_c_compiler_gnu
14858
9d54db95 14859CC=$lt_save_CC
e9c9a47c 14860
9d54db95
JF
14861 if test -n "$CXX" && ( test no != "$CXX" &&
14862 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
14863 (test g++ != "$CXX"))); then
e9c9a47c
DWT
14864 ac_ext=cpp
14865ac_cpp='$CXXCPP $CPPFLAGS'
14866ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14867ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14868ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
14870$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
14871if test -z "$CXXCPP"; then
ee134472 14872 if ${ac_cv_prog_CXXCPP+:} false; then :
e9c9a47c
DWT
14873 $as_echo_n "(cached) " >&6
14874else
14875 # Double quotes because CXXCPP needs to be expanded
14876 for CXXCPP in "$CXX -E" "/lib/cpp"
14877 do
14878 ac_preproc_ok=false
14879for ac_cxx_preproc_warn_flag in '' yes
14880do
14881 # Use a header file that comes with gcc, so configuring glibc
14882 # with a fresh cross-compiler works.
14883 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14884 # <limits.h> exists even on freestanding compilers.
14885 # On the NeXT, cc -E runs the code through the compiler's parser,
14886 # not just through cpp. "Syntax error" is here to catch this case.
14887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14888/* end confdefs.h. */
14889#ifdef __STDC__
14890# include <limits.h>
14891#else
14892# include <assert.h>
14893#endif
14894 Syntax error
14895_ACEOF
14896if ac_fn_cxx_try_cpp "$LINENO"; then :
14897
14898else
14899 # Broken: fails on valid input.
14900continue
14901fi
12833ad8 14902rm -f conftest.err conftest.i conftest.$ac_ext
e9c9a47c
DWT
14903
14904 # OK, works on sane cases. Now check whether nonexistent headers
14905 # can be detected and how.
14906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14907/* end confdefs.h. */
14908#include <ac_nonexistent.h>
14909_ACEOF
14910if ac_fn_cxx_try_cpp "$LINENO"; then :
14911 # Broken: success on invalid input.
14912continue
14913else
14914 # Passes both tests.
14915ac_preproc_ok=:
14916break
14917fi
12833ad8 14918rm -f conftest.err conftest.i conftest.$ac_ext
e9c9a47c
DWT
14919
14920done
14921# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12833ad8 14922rm -f conftest.i conftest.err conftest.$ac_ext
e9c9a47c
DWT
14923if $ac_preproc_ok; then :
14924 break
14925fi
14926
14927 done
14928 ac_cv_prog_CXXCPP=$CXXCPP
14929
14930fi
14931 CXXCPP=$ac_cv_prog_CXXCPP
14932else
14933 ac_cv_prog_CXXCPP=$CXXCPP
14934fi
14935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
14936$as_echo "$CXXCPP" >&6; }
14937ac_preproc_ok=false
14938for ac_cxx_preproc_warn_flag in '' yes
14939do
14940 # Use a header file that comes with gcc, so configuring glibc
14941 # with a fresh cross-compiler works.
14942 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14943 # <limits.h> exists even on freestanding compilers.
14944 # On the NeXT, cc -E runs the code through the compiler's parser,
14945 # not just through cpp. "Syntax error" is here to catch this case.
14946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14947/* end confdefs.h. */
14948#ifdef __STDC__
14949# include <limits.h>
14950#else
14951# include <assert.h>
14952#endif
14953 Syntax error
14954_ACEOF
14955if ac_fn_cxx_try_cpp "$LINENO"; then :
14956
14957else
14958 # Broken: fails on valid input.
14959continue
14960fi
12833ad8 14961rm -f conftest.err conftest.i conftest.$ac_ext
e9c9a47c
DWT
14962
14963 # OK, works on sane cases. Now check whether nonexistent headers
14964 # can be detected and how.
14965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14966/* end confdefs.h. */
14967#include <ac_nonexistent.h>
14968_ACEOF
14969if ac_fn_cxx_try_cpp "$LINENO"; then :
14970 # Broken: success on invalid input.
14971continue
14972else
14973 # Passes both tests.
14974ac_preproc_ok=:
14975break
14976fi
12833ad8 14977rm -f conftest.err conftest.i conftest.$ac_ext
e9c9a47c
DWT
14978
14979done
14980# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12833ad8 14981rm -f conftest.i conftest.err conftest.$ac_ext
e9c9a47c
DWT
14982if $ac_preproc_ok; then :
14983
14984else
14985 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14986$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
ee134472
JF
14987as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
14988See \`config.log' for more details" "$LINENO" 5; }
e9c9a47c
DWT
14989fi
14990
a243b558
JF
14991ac_ext=c
14992ac_cpp='$CPP $CPPFLAGS'
14993ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14994ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14995ac_compiler_gnu=$ac_cv_c_compiler_gnu
66170b30
JF
14996
14997else
e9c9a47c
DWT
14998 _lt_caught_CXX_error=yes
14999fi
15000
9c60689e
DWT
15001ac_ext=cpp
15002ac_cpp='$CXXCPP $CPPFLAGS'
15003ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15004ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15005ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9c60689e 15006
47aaa820
DWT
15007archive_cmds_need_lc_CXX=no
15008allow_undefined_flag_CXX=
15009always_export_symbols_CXX=no
15010archive_expsym_cmds_CXX=
15011compiler_needs_object_CXX=no
15012export_dynamic_flag_spec_CXX=
15013hardcode_direct_CXX=no
15014hardcode_direct_absolute_CXX=no
15015hardcode_libdir_flag_spec_CXX=
47aaa820
DWT
15016hardcode_libdir_separator_CXX=
15017hardcode_minus_L_CXX=no
15018hardcode_shlibpath_var_CXX=unsupported
15019hardcode_automatic_CXX=no
15020inherit_rpath_CXX=no
15021module_cmds_CXX=
15022module_expsym_cmds_CXX=
15023link_all_deplibs_CXX=unknown
15024old_archive_cmds_CXX=$old_archive_cmds
ee134472
JF
15025reload_flag_CXX=$reload_flag
15026reload_cmds_CXX=$reload_cmds
47aaa820
DWT
15027no_undefined_flag_CXX=
15028whole_archive_flag_spec_CXX=
15029enable_shared_with_static_runtimes_CXX=no
9c60689e 15030
47aaa820
DWT
15031# Source file extension for C++ test sources.
15032ac_ext=cpp
9c60689e 15033
47aaa820
DWT
15034# Object file extension for compiled C++ test sources.
15035objext=o
15036objext_CXX=$objext
9c60689e 15037
47aaa820
DWT
15038# No sense in running all these tests if we already determined that
15039# the CXX compiler isn't working. Some variables (like enable_shared)
15040# are currently assumed to apply to all compilers on this platform,
15041# and will be corrupted by setting them based on a non-working compiler.
9d54db95 15042if test yes != "$_lt_caught_CXX_error"; then
47aaa820
DWT
15043 # Code to be used in simple compile tests
15044 lt_simple_compile_test_code="int some_variable = 0;"
9c60689e 15045
47aaa820
DWT
15046 # Code to be used in simple link tests
15047 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
9c60689e 15048
47aaa820 15049 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9c60689e 15050
9c60689e 15051
9c60689e 15052
9c60689e 15053
9c60689e 15054
9c60689e 15055
47aaa820
DWT
15056# If no C compiler was specified, use CC.
15057LTCC=${LTCC-"$CC"}
9c60689e 15058
47aaa820
DWT
15059# If no C compiler flags were specified, use CFLAGS.
15060LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9c60689e 15061
47aaa820
DWT
15062# Allow CC to be a program name with arguments.
15063compiler=$CC
9c60689e 15064
9c60689e 15065
47aaa820
DWT
15066 # save warnings/boilerplate of simple test code
15067 ac_outfile=conftest.$ac_objext
15068echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15069eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15070_lt_compiler_boilerplate=`cat conftest.err`
00a96142 15071$RM -r conftest*
9c60689e 15072
47aaa820
DWT
15073 ac_outfile=conftest.$ac_objext
15074echo "$lt_simple_link_test_code" >conftest.$ac_ext
15075eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15076_lt_linker_boilerplate=`cat conftest.err`
15077$RM -r conftest*
9c60689e 15078
9c60689e 15079
47aaa820
DWT
15080 # Allow CC to be a program name with arguments.
15081 lt_save_CC=$CC
ee134472 15082 lt_save_CFLAGS=$CFLAGS
47aaa820
DWT
15083 lt_save_LD=$LD
15084 lt_save_GCC=$GCC
15085 GCC=$GXX
15086 lt_save_with_gnu_ld=$with_gnu_ld
15087 lt_save_path_LD=$lt_cv_path_LD
15088 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15089 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9c60689e 15090 else
47aaa820 15091 $as_unset lt_cv_prog_gnu_ld
9c60689e 15092 fi
47aaa820
DWT
15093 if test -n "${lt_cv_path_LDCXX+set}"; then
15094 lt_cv_path_LD=$lt_cv_path_LDCXX
9c60689e 15095 else
47aaa820 15096 $as_unset lt_cv_path_LD
9c60689e 15097 fi
47aaa820
DWT
15098 test -z "${LDCXX+set}" || LD=$LDCXX
15099 CC=${CXX-"c++"}
ee134472 15100 CFLAGS=$CXXFLAGS
47aaa820
DWT
15101 compiler=$CC
15102 compiler_CXX=$CC
9d54db95
JF
15103 func_cc_basename $compiler
15104cc_basename=$func_cc_basename_result
9c60689e
DWT
15105
15106
47aaa820
DWT
15107 if test -n "$compiler"; then
15108 # We don't want -fno-exception when compiling C++ code, so set the
15109 # no_builtin_flag separately
9d54db95 15110 if test yes = "$GXX"; then
47aaa820
DWT
15111 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15112 else
15113 lt_prog_compiler_no_builtin_flag_CXX=
15114 fi
9c60689e 15115
9d54db95 15116 if test yes = "$GXX"; then
47aaa820
DWT
15117 # Set up default GNU C++ configuration
15118
15119
15120
15121# Check whether --with-gnu-ld was given.
15122if test "${with_gnu_ld+set}" = set; then :
9d54db95 15123 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
9c60689e 15124else
47aaa820 15125 with_gnu_ld=no
9c60689e
DWT
15126fi
15127
47aaa820 15128ac_prog=ld
9d54db95 15129if test yes = "$GCC"; then
47aaa820
DWT
15130 # Check if gcc -print-prog-name=ld gives a path.
15131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
15132$as_echo_n "checking for ld used by $CC... " >&6; }
15133 case $host in
15134 *-*-mingw*)
9d54db95 15135 # gcc leaves a trailing carriage return, which upsets mingw
47aaa820
DWT
15136 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15137 *)
15138 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15139 esac
15140 case $ac_prog in
15141 # Accept absolute paths.
15142 [\\/]* | ?:[\\/]*)
15143 re_direlt='/[^/][^/]*/\.\./'
15144 # Canonicalize the pathname of ld
15145 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15146 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
15147 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15148 done
9d54db95 15149 test -z "$LD" && LD=$ac_prog
47aaa820
DWT
15150 ;;
15151 "")
15152 # If it fails, then pretend we aren't using GCC.
15153 ac_prog=ld
15154 ;;
15155 *)
15156 # If it is relative, then search for the first ld in PATH.
15157 with_gnu_ld=unknown
15158 ;;
15159 esac
9d54db95 15160elif test yes = "$with_gnu_ld"; then
47aaa820
DWT
15161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15162$as_echo_n "checking for GNU ld... " >&6; }
15163else
15164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15165$as_echo_n "checking for non-GNU ld... " >&6; }
9c60689e 15166fi
ee134472 15167if ${lt_cv_path_LD+:} false; then :
9c60689e
DWT
15168 $as_echo_n "(cached) " >&6
15169else
47aaa820 15170 if test -z "$LD"; then
9d54db95 15171 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
47aaa820 15172 for ac_dir in $PATH; do
9d54db95 15173 IFS=$lt_save_ifs
47aaa820
DWT
15174 test -z "$ac_dir" && ac_dir=.
15175 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9d54db95 15176 lt_cv_path_LD=$ac_dir/$ac_prog
47aaa820
DWT
15177 # Check to see if the program is GNU ld. I'd rather use --version,
15178 # but apparently some variants of GNU ld only accept -v.
15179 # Break only if it was the GNU/non-GNU ld that we prefer.
15180 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15181 *GNU* | *'with BFD'*)
9d54db95 15182 test no != "$with_gnu_ld" && break
47aaa820
DWT
15183 ;;
15184 *)
9d54db95 15185 test yes != "$with_gnu_ld" && break
47aaa820
DWT
15186 ;;
15187 esac
15188 fi
9c60689e 15189 done
9d54db95 15190 IFS=$lt_save_ifs
47aaa820 15191else
9d54db95 15192 lt_cv_path_LD=$LD # Let the user override the test with a path.
9c60689e
DWT
15193fi
15194fi
47aaa820 15195
9d54db95 15196LD=$lt_cv_path_LD
47aaa820
DWT
15197if test -n "$LD"; then
15198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15199$as_echo "$LD" >&6; }
9c60689e
DWT
15200else
15201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15202$as_echo "no" >&6; }
15203fi
12833ad8 15204test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
47aaa820
DWT
15205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15206$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
ee134472 15207if ${lt_cv_prog_gnu_ld+:} false; then :
47aaa820
DWT
15208 $as_echo_n "(cached) " >&6
15209else
15210 # I'd rather use --version here, but apparently some GNU lds only accept -v.
15211case `$LD -v 2>&1 </dev/null` in
15212*GNU* | *'with BFD'*)
15213 lt_cv_prog_gnu_ld=yes
15214 ;;
15215*)
15216 lt_cv_prog_gnu_ld=no
15217 ;;
15218esac
15219fi
15220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
15221$as_echo "$lt_cv_prog_gnu_ld" >&6; }
15222with_gnu_ld=$lt_cv_prog_gnu_ld
9c60689e
DWT
15223
15224
9c60689e 15225
9c60689e 15226
9c60689e 15227
9c60689e 15228
9c60689e 15229
47aaa820
DWT
15230 # Check if GNU C++ uses GNU ld as the underlying linker, since the
15231 # archiving commands below assume that GNU ld is being used.
9d54db95
JF
15232 if test yes = "$with_gnu_ld"; then
15233 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15234 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 15235
9d54db95
JF
15236 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15237 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
9c60689e 15238
47aaa820
DWT
15239 # If archive_cmds runs LD, not CC, wlarc should be empty
15240 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15241 # investigate it a little bit more. (MM)
9d54db95 15242 wlarc='$wl'
9c60689e 15243
47aaa820
DWT
15244 # ancient GNU ld didn't support --whole-archive et. al.
15245 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
15246 $GREP 'no-whole-archive' > /dev/null; then
9d54db95 15247 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
47aaa820
DWT
15248 else
15249 whole_archive_flag_spec_CXX=
15250 fi
15251 else
15252 with_gnu_ld=no
15253 wlarc=
15254
15255 # A generic and very simple default shared library creation
15256 # command for GNU C++ for the case where it uses the native
15257 # linker, instead of GNU ld. If possible, this setting should
15258 # overridden to take advantage of the native linker features on
15259 # the platform it is being used on.
15260 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15261 fi
15262
15263 # Commands to make compiler produce verbose output that lists
15264 # what "hidden" libraries, object files and flags are used when
15265 # linking a shared library.
ee134472 15266 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
47aaa820
DWT
15267
15268 else
15269 GXX=no
15270 with_gnu_ld=no
15271 wlarc=
15272 fi
15273
15274 # PORTME: fill in a description of your system's C++ link characteristics
15275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15276$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15277 ld_shlibs_CXX=yes
15278 case $host_os in
15279 aix3*)
15280 # FIXME: insert proper C++ library support
15281 ld_shlibs_CXX=no
15282 ;;
15283 aix[4-9]*)
9d54db95 15284 if test ia64 = "$host_cpu"; then
47aaa820
DWT
15285 # On IA64, the linker does run time linking by default, so we don't
15286 # have to do anything special.
15287 aix_use_runtimelinking=no
15288 exp_sym_flag='-Bexport'
9d54db95 15289 no_entry_flag=
47aaa820
DWT
15290 else
15291 aix_use_runtimelinking=no
15292
15293 # Test if we are trying to use run time linking or normal
15294 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9d54db95
JF
15295 # have runtime linking enabled, and use it for executables.
15296 # For shared libraries, we enable/disable runtime linking
15297 # depending on the kind of the shared library created -
15298 # when "with_aix_soname,aix_use_runtimelinking" is:
15299 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
15300 # "aix,yes" lib.so shared, rtl:yes, for executables
15301 # lib.a static archive
15302 # "both,no" lib.so.V(shr.o) shared, rtl:yes
15303 # lib.a(lib.so.V) shared, rtl:no, for executables
15304 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
15305 # lib.a(lib.so.V) shared, rtl:no
15306 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
15307 # lib.a static archive
47aaa820
DWT
15308 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15309 for ld_flag in $LDFLAGS; do
15310 case $ld_flag in
15311 *-brtl*)
15312 aix_use_runtimelinking=yes
15313 break
15314 ;;
15315 esac
15316 done
9d54db95
JF
15317 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
15318 # With aix-soname=svr4, we create the lib.so.V shared archives only,
15319 # so we don't have lib.a shared libs to link our executables.
15320 # We have to force runtime linking in this case.
15321 aix_use_runtimelinking=yes
15322 LDFLAGS="$LDFLAGS -Wl,-brtl"
15323 fi
47aaa820
DWT
15324 ;;
15325 esac
15326
15327 exp_sym_flag='-bexport'
15328 no_entry_flag='-bnoentry'
15329 fi
15330
15331 # When large executables or shared objects are built, AIX ld can
15332 # have problems creating the table of contents. If linking a library
15333 # or program results in "error TOC overflow" add -mminimal-toc to
15334 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15335 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15336
15337 archive_cmds_CXX=''
15338 hardcode_direct_CXX=yes
15339 hardcode_direct_absolute_CXX=yes
15340 hardcode_libdir_separator_CXX=':'
15341 link_all_deplibs_CXX=yes
9d54db95
JF
15342 file_list_spec_CXX='$wl-f,'
15343 case $with_aix_soname,$aix_use_runtimelinking in
15344 aix,*) ;; # no import file
15345 svr4,* | *,yes) # use import file
15346 # The Import File defines what to hardcode.
15347 hardcode_direct_CXX=no
15348 hardcode_direct_absolute_CXX=no
15349 ;;
15350 esac
47aaa820 15351
9d54db95 15352 if test yes = "$GXX"; then
47aaa820
DWT
15353 case $host_os in aix4.[012]|aix4.[012].*)
15354 # We only want to do this on AIX 4.2 and lower, the check
15355 # below for broken collect2 doesn't work under 4.3+
9d54db95 15356 collect2name=`$CC -print-prog-name=collect2`
47aaa820
DWT
15357 if test -f "$collect2name" &&
15358 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15359 then
15360 # We have reworked collect2
15361 :
15362 else
15363 # We have old collect2
15364 hardcode_direct_CXX=unsupported
15365 # It fails to find uninstalled libraries when the uninstalled
15366 # path is not listed in the libpath. Setting hardcode_minus_L
15367 # to unsupported forces relinking
15368 hardcode_minus_L_CXX=yes
15369 hardcode_libdir_flag_spec_CXX='-L$libdir'
15370 hardcode_libdir_separator_CXX=
15371 fi
15372 esac
15373 shared_flag='-shared'
9d54db95
JF
15374 if test yes = "$aix_use_runtimelinking"; then
15375 shared_flag=$shared_flag' $wl-G'
47aaa820 15376 fi
9d54db95
JF
15377 # Need to ensure runtime linking is disabled for the traditional
15378 # shared library, or the linker may eventually find shared libraries
15379 # /with/ Import File - we do not want to mix them.
15380 shared_flag_aix='-shared'
15381 shared_flag_svr4='-shared $wl-G'
47aaa820
DWT
15382 else
15383 # not using gcc
9d54db95 15384 if test ia64 = "$host_cpu"; then
47aaa820
DWT
15385 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15386 # chokes on -Wl,-G. The following line is correct:
15387 shared_flag='-G'
15388 else
9d54db95
JF
15389 if test yes = "$aix_use_runtimelinking"; then
15390 shared_flag='$wl-G'
47aaa820 15391 else
9d54db95 15392 shared_flag='$wl-bM:SRE'
47aaa820 15393 fi
9d54db95
JF
15394 shared_flag_aix='$wl-bM:SRE'
15395 shared_flag_svr4='$wl-G'
47aaa820
DWT
15396 fi
15397 fi
15398
9d54db95 15399 export_dynamic_flag_spec_CXX='$wl-bexpall'
47aaa820
DWT
15400 # It seems that -bexpall does not export symbols beginning with
15401 # underscore (_), so it is better to generate a list of symbols to
15402 # export.
15403 always_export_symbols_CXX=yes
9d54db95 15404 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
47aaa820
DWT
15405 # Warning - without using the other runtime loading flags (-brtl),
15406 # -berok will link without error, but may produce a broken library.
9d54db95
JF
15407 # The "-G" linker flag allows undefined symbols.
15408 no_undefined_flag_CXX='-bernotok'
47aaa820
DWT
15409 # Determine the default libpath from the value encoded in an empty
15410 # executable.
9d54db95 15411 if test set = "${lt_cv_aix_libpath+set}"; then
ee134472
JF
15412 aix_libpath=$lt_cv_aix_libpath
15413else
15414 if ${lt_cv_aix_libpath__CXX+:} false; then :
15415 $as_echo_n "(cached) " >&6
15416else
15417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9c60689e
DWT
15418/* end confdefs.h. */
15419
15420int
15421main ()
15422{
15423
15424 ;
15425 return 0;
15426}
15427_ACEOF
47aaa820 15428if ac_fn_cxx_try_link "$LINENO"; then :
9c60689e 15429
ee134472
JF
15430 lt_aix_libpath_sed='
15431 /Import File Strings/,/^$/ {
15432 /^0/ {
15433 s/^0 *\([^ ]*\) *$/\1/
15434 p
15435 }
15436 }'
15437 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15438 # Check for a 64-bit object if we didn't find anything.
15439 if test -z "$lt_cv_aix_libpath__CXX"; then
15440 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15441 fi
47aaa820
DWT
15442fi
15443rm -f core conftest.err conftest.$ac_objext \
15444 conftest$ac_exeext conftest.$ac_ext
ee134472 15445 if test -z "$lt_cv_aix_libpath__CXX"; then
9d54db95 15446 lt_cv_aix_libpath__CXX=/usr/lib:/lib
ee134472
JF
15447 fi
15448
15449fi
15450
15451 aix_libpath=$lt_cv_aix_libpath__CXX
15452fi
47aaa820 15453
9d54db95 15454 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
47aaa820 15455
9d54db95 15456 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 15457 else
9d54db95
JF
15458 if test ia64 = "$host_cpu"; then
15459 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
47aaa820 15460 allow_undefined_flag_CXX="-z nodefs"
9d54db95 15461 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
15462 else
15463 # Determine the default libpath from the value encoded in an
15464 # empty executable.
9d54db95 15465 if test set = "${lt_cv_aix_libpath+set}"; then
ee134472
JF
15466 aix_libpath=$lt_cv_aix_libpath
15467else
15468 if ${lt_cv_aix_libpath__CXX+:} false; then :
15469 $as_echo_n "(cached) " >&6
15470else
15471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9c60689e
DWT
15472/* end confdefs.h. */
15473
15474int
15475main ()
15476{
15477
15478 ;
15479 return 0;
15480}
15481_ACEOF
47aaa820 15482if ac_fn_cxx_try_link "$LINENO"; then :
9c60689e 15483
ee134472
JF
15484 lt_aix_libpath_sed='
15485 /Import File Strings/,/^$/ {
15486 /^0/ {
15487 s/^0 *\([^ ]*\) *$/\1/
15488 p
15489 }
15490 }'
15491 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15492 # Check for a 64-bit object if we didn't find anything.
15493 if test -z "$lt_cv_aix_libpath__CXX"; then
15494 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15495 fi
9c60689e 15496fi
47aaa820
DWT
15497rm -f core conftest.err conftest.$ac_objext \
15498 conftest$ac_exeext conftest.$ac_ext
ee134472 15499 if test -z "$lt_cv_aix_libpath__CXX"; then
9d54db95 15500 lt_cv_aix_libpath__CXX=/usr/lib:/lib
ee134472
JF
15501 fi
15502
15503fi
15504
15505 aix_libpath=$lt_cv_aix_libpath__CXX
15506fi
9c60689e 15507
9d54db95 15508 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
47aaa820
DWT
15509 # Warning - without using the other run time loading flags,
15510 # -berok will link without error, but may produce a broken library.
9d54db95
JF
15511 no_undefined_flag_CXX=' $wl-bernotok'
15512 allow_undefined_flag_CXX=' $wl-berok'
15513 if test yes = "$with_gnu_ld"; then
ee134472 15514 # We only use this code for GNU lds that support --whole-archive.
9d54db95 15515 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
ee134472
JF
15516 else
15517 # Exported symbols can be pulled into shared objects from archives
15518 whole_archive_flag_spec_CXX='$convenience'
15519 fi
47aaa820 15520 archive_cmds_need_lc_CXX=yes
9d54db95
JF
15521 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
15522 # -brtl affects multiple linker settings, -berok does not and is overridden later
15523 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
15524 if test svr4 != "$with_aix_soname"; then
15525 # This is similar to how AIX traditionally builds its shared
15526 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
15527 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'
15528 fi
15529 if test aix != "$with_aix_soname"; then
15530 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'
15531 else
15532 # used by -dlpreopen to get the symbols
15533 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
15534 fi
15535 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
47aaa820
DWT
15536 fi
15537 fi
15538 ;;
9c60689e 15539
47aaa820
DWT
15540 beos*)
15541 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15542 allow_undefined_flag_CXX=unsupported
15543 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15544 # support --undefined. This deserves some investigation. FIXME
9d54db95 15545 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
47aaa820
DWT
15546 else
15547 ld_shlibs_CXX=no
15548 fi
15549 ;;
9c60689e 15550
47aaa820
DWT
15551 chorus*)
15552 case $cc_basename in
15553 *)
15554 # FIXME: insert proper C++ library support
15555 ld_shlibs_CXX=no
15556 ;;
15557 esac
15558 ;;
9c60689e 15559
47aaa820 15560 cygwin* | mingw* | pw32* | cegcc*)
ee134472
JF
15561 case $GXX,$cc_basename in
15562 ,cl* | no,cl*)
15563 # Native MSVC
15564 # hardcode_libdir_flag_spec is actually meaningless, as there is
15565 # no search path for DLLs.
15566 hardcode_libdir_flag_spec_CXX=' '
15567 allow_undefined_flag_CXX=unsupported
15568 always_export_symbols_CXX=yes
15569 file_list_spec_CXX='@'
15570 # Tell ltmain to make .lib files, not .a files.
15571 libext=lib
15572 # Tell ltmain to make .dll files, not .so files.
9d54db95 15573 shrext_cmds=.dll
ee134472 15574 # FIXME: Setting linknames here is a bad hack.
9d54db95
JF
15575 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
15576 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
15577 cp "$export_symbols" "$output_objdir/$soname.def";
15578 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
15579 else
15580 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
15581 fi~
15582 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15583 linknames='
ee134472
JF
15584 # The linker will not automatically build a static lib if we build a DLL.
15585 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
15586 enable_shared_with_static_runtimes_CXX=yes
15587 # Don't use ranlib
15588 old_postinstall_cmds_CXX='chmod 644 $oldlib'
15589 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
9d54db95
JF
15590 lt_tool_outputfile="@TOOL_OUTPUT@"~
15591 case $lt_outputfile in
15592 *.exe|*.EXE) ;;
15593 *)
15594 lt_outputfile=$lt_outputfile.exe
15595 lt_tool_outputfile=$lt_tool_outputfile.exe
15596 ;;
15597 esac~
15598 func_to_tool_file "$lt_outputfile"~
15599 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
15600 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15601 $RM "$lt_outputfile.manifest";
15602 fi'
ee134472
JF
15603 ;;
15604 *)
15605 # g++
15606 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15607 # as there is no search path for DLLs.
15608 hardcode_libdir_flag_spec_CXX='-L$libdir'
9d54db95 15609 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
ee134472
JF
15610 allow_undefined_flag_CXX=unsupported
15611 always_export_symbols_CXX=no
15612 enable_shared_with_static_runtimes_CXX=yes
15613
15614 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9d54db95
JF
15615 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'
15616 # If the export-symbols file already is a .def file, use it as
15617 # is; otherwise, prepend EXPORTS...
15618 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
15619 cp $export_symbols $output_objdir/$soname.def;
15620 else
15621 echo EXPORTS > $output_objdir/$soname.def;
15622 cat $export_symbols >> $output_objdir/$soname.def;
15623 fi~
15624 $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
15625 else
15626 ld_shlibs_CXX=no
15627 fi
15628 ;;
15629 esac
15630 ;;
47aaa820 15631 darwin* | rhapsody*)
9c60689e 15632
9c60689e 15633
47aaa820
DWT
15634 archive_cmds_need_lc_CXX=no
15635 hardcode_direct_CXX=no
15636 hardcode_automatic_CXX=yes
15637 hardcode_shlibpath_var_CXX=unsupported
9d54db95
JF
15638 if test yes = "$lt_cv_ld_force_load"; then
15639 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 15640
ee134472
JF
15641 else
15642 whole_archive_flag_spec_CXX=''
15643 fi
47aaa820 15644 link_all_deplibs_CXX=yes
9d54db95 15645 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
47aaa820 15646 case $cc_basename in
9d54db95 15647 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
47aaa820
DWT
15648 *) _lt_dar_can_shared=$GCC ;;
15649 esac
9d54db95 15650 if test yes = "$_lt_dar_can_shared"; then
ee134472 15651 output_verbose_link_cmd=func_echo_all
9d54db95
JF
15652 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"
15653 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
15654 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"
15655 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"
15656 if test yes != "$lt_cv_apple_cc_single_mod"; then
15657 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"
15658 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 15659 fi
9c60689e 15660
47aaa820
DWT
15661 else
15662 ld_shlibs_CXX=no
15663 fi
9c60689e 15664
47aaa820 15665 ;;
9c60689e 15666
9d54db95
JF
15667 os2*)
15668 hardcode_libdir_flag_spec_CXX='-L$libdir'
15669 hardcode_minus_L_CXX=yes
15670 allow_undefined_flag_CXX=unsupported
15671 shrext_cmds=.dll
15672 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15673 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15674 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15675 $ECHO EXPORTS >> $output_objdir/$libname.def~
15676 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
15677 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15678 emximp -o $lib $output_objdir/$libname.def'
15679 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15680 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15681 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15682 $ECHO EXPORTS >> $output_objdir/$libname.def~
15683 prefix_cmds="$SED"~
15684 if test EXPORTS = "`$SED 1q $export_symbols`"; then
15685 prefix_cmds="$prefix_cmds -e 1d";
15686 fi~
15687 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
15688 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
15689 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15690 emximp -o $lib $output_objdir/$libname.def'
15691 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
15692 enable_shared_with_static_runtimes_CXX=yes
15693 ;;
15694
47aaa820
DWT
15695 dgux*)
15696 case $cc_basename in
15697 ec++*)
15698 # FIXME: insert proper C++ library support
15699 ld_shlibs_CXX=no
15700 ;;
15701 ghcx*)
15702 # Green Hills C++ Compiler
15703 # FIXME: insert proper C++ library support
15704 ld_shlibs_CXX=no
15705 ;;
15706 *)
15707 # FIXME: insert proper C++ library support
15708 ld_shlibs_CXX=no
15709 ;;
15710 esac
15711 ;;
9c60689e 15712
53ba6704 15713 freebsd2.*)
47aaa820
DWT
15714 # C++ shared libraries reported to be fairly broken before
15715 # switch to ELF
15716 ld_shlibs_CXX=no
15717 ;;
9c60689e 15718
47aaa820
DWT
15719 freebsd-elf*)
15720 archive_cmds_need_lc_CXX=no
15721 ;;
9c60689e 15722
47aaa820
DWT
15723 freebsd* | dragonfly*)
15724 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15725 # conventions
15726 ld_shlibs_CXX=yes
15727 ;;
9c60689e 15728
ee134472 15729 haiku*)
9d54db95 15730 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
ee134472
JF
15731 link_all_deplibs_CXX=yes
15732 ;;
15733
47aaa820 15734 hpux9*)
9d54db95 15735 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
47aaa820 15736 hardcode_libdir_separator_CXX=:
9d54db95 15737 export_dynamic_flag_spec_CXX='$wl-E'
47aaa820
DWT
15738 hardcode_direct_CXX=yes
15739 hardcode_minus_L_CXX=yes # Not in the search PATH,
15740 # but as the default
15741 # location of the library.
9c60689e 15742
47aaa820
DWT
15743 case $cc_basename in
15744 CC*)
15745 # FIXME: insert proper C++ library support
15746 ld_shlibs_CXX=no
15747 ;;
15748 aCC*)
9d54db95 15749 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
15750 # Commands to make compiler produce verbose output that lists
15751 # what "hidden" libraries, object files and flags are used when
15752 # linking a shared library.
15753 #
15754 # There doesn't appear to be a way to prevent this compiler from
15755 # explicitly linking system object files so we need to strip them
15756 # from the output so that they don't get included in the library
15757 # dependencies.
9d54db95 15758 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
15759 ;;
15760 *)
9d54db95
JF
15761 if test yes = "$GXX"; then
15762 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
15763 else
15764 # FIXME: insert proper C++ library support
15765 ld_shlibs_CXX=no
15766 fi
15767 ;;
15768 esac
15769 ;;
9c60689e 15770
47aaa820 15771 hpux10*|hpux11*)
9d54db95
JF
15772 if test no = "$with_gnu_ld"; then
15773 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
47aaa820 15774 hardcode_libdir_separator_CXX=:
9c60689e 15775
47aaa820
DWT
15776 case $host_cpu in
15777 hppa*64*|ia64*)
15778 ;;
15779 *)
9d54db95 15780 export_dynamic_flag_spec_CXX='$wl-E'
47aaa820
DWT
15781 ;;
15782 esac
15783 fi
15784 case $host_cpu in
15785 hppa*64*|ia64*)
15786 hardcode_direct_CXX=no
15787 hardcode_shlibpath_var_CXX=no
15788 ;;
15789 *)
15790 hardcode_direct_CXX=yes
15791 hardcode_direct_absolute_CXX=yes
15792 hardcode_minus_L_CXX=yes # Not in the search PATH,
15793 # but as the default
15794 # location of the library.
15795 ;;
15796 esac
9c60689e 15797
47aaa820
DWT
15798 case $cc_basename in
15799 CC*)
15800 # FIXME: insert proper C++ library support
15801 ld_shlibs_CXX=no
15802 ;;
15803 aCC*)
15804 case $host_cpu in
15805 hppa*64*)
9d54db95 15806 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
47aaa820
DWT
15807 ;;
15808 ia64*)
9d54db95 15809 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
47aaa820
DWT
15810 ;;
15811 *)
9d54db95 15812 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
15813 ;;
15814 esac
15815 # Commands to make compiler produce verbose output that lists
15816 # what "hidden" libraries, object files and flags are used when
15817 # linking a shared library.
15818 #
15819 # There doesn't appear to be a way to prevent this compiler from
15820 # explicitly linking system object files so we need to strip them
15821 # from the output so that they don't get included in the library
15822 # dependencies.
9d54db95 15823 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
15824 ;;
15825 *)
9d54db95
JF
15826 if test yes = "$GXX"; then
15827 if test no = "$with_gnu_ld"; then
47aaa820
DWT
15828 case $host_cpu in
15829 hppa*64*)
9d54db95 15830 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
47aaa820
DWT
15831 ;;
15832 ia64*)
9d54db95 15833 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
15834 ;;
15835 *)
9d54db95 15836 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
15837 ;;
15838 esac
15839 fi
15840 else
15841 # FIXME: insert proper C++ library support
15842 ld_shlibs_CXX=no
15843 fi
15844 ;;
15845 esac
15846 ;;
9c60689e 15847
47aaa820
DWT
15848 interix[3-9]*)
15849 hardcode_direct_CXX=no
15850 hardcode_shlibpath_var_CXX=no
9d54db95
JF
15851 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15852 export_dynamic_flag_spec_CXX='$wl-E'
47aaa820
DWT
15853 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15854 # Instead, shared libraries are loaded at an image base (0x10000000 by
15855 # default) and relocated if they conflict, which is a slow very memory
15856 # consuming and fragmenting process. To avoid this, we pick a random,
15857 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15858 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9d54db95
JF
15859 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'
15860 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
15861 ;;
15862 irix5* | irix6*)
15863 case $cc_basename in
15864 CC*)
15865 # SGI C++
9d54db95 15866 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 15867
47aaa820
DWT
15868 # Archives containing C++ object files must be created using
15869 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
15870 # necessary to make sure instantiated templates are included
15871 # in the archive.
15872 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15873 ;;
15874 *)
9d54db95
JF
15875 if test yes = "$GXX"; then
15876 if test no = "$with_gnu_ld"; then
15877 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 15878 else
9d54db95 15879 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
15880 fi
15881 fi
15882 link_all_deplibs_CXX=yes
15883 ;;
15884 esac
9d54db95 15885 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
47aaa820
DWT
15886 hardcode_libdir_separator_CXX=:
15887 inherit_rpath_CXX=yes
15888 ;;
9c60689e 15889
9d54db95 15890 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
47aaa820
DWT
15891 case $cc_basename in
15892 KCC*)
15893 # Kuck and Associates, Inc. (KAI) C++ Compiler
9c60689e 15894
47aaa820
DWT
15895 # KCC will only create a shared library if the output file
15896 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15897 # to its proper name (with version) after linking.
9d54db95
JF
15898 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'
15899 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
15900 # Commands to make compiler produce verbose output that lists
15901 # what "hidden" libraries, object files and flags are used when
15902 # linking a shared library.
15903 #
15904 # There doesn't appear to be a way to prevent this compiler from
15905 # explicitly linking system object files so we need to strip them
15906 # from the output so that they don't get included in the library
15907 # dependencies.
9d54db95 15908 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 15909
9d54db95
JF
15910 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15911 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
9c60689e 15912
47aaa820
DWT
15913 # Archives containing C++ object files must be created using
15914 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15915 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15916 ;;
15917 icpc* | ecpc* )
15918 # Intel C++
15919 with_gnu_ld=yes
15920 # version 8.0 and above of icpc choke on multiply defined symbols
15921 # if we add $predep_objects and $postdep_objects, however 7.1 and
15922 # earlier do not add the objects themselves.
15923 case `$CC -V 2>&1` in
15924 *"Version 7."*)
9d54db95
JF
15925 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15926 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
15927 ;;
15928 *) # Version 8.0 or newer
15929 tmp_idyn=
15930 case $host_cpu in
15931 ia64*) tmp_idyn=' -i_dynamic';;
15932 esac
9d54db95
JF
15933 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15934 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
15935 ;;
15936 esac
15937 archive_cmds_need_lc_CXX=no
9d54db95
JF
15938 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15939 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15940 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
47aaa820
DWT
15941 ;;
15942 pgCC* | pgcpp*)
15943 # Portland Group C++ compiler
15944 case `$CC -V` in
ee134472 15945 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
47aaa820 15946 prelink_cmds_CXX='tpldir=Template.dir~
9d54db95
JF
15947 rm -rf $tpldir~
15948 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
15949 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
47aaa820 15950 old_archive_cmds_CXX='tpldir=Template.dir~
9d54db95
JF
15951 rm -rf $tpldir~
15952 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
15953 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
15954 $RANLIB $oldlib'
47aaa820 15955 archive_cmds_CXX='tpldir=Template.dir~
9d54db95
JF
15956 rm -rf $tpldir~
15957 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15958 $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 15959 archive_expsym_cmds_CXX='tpldir=Template.dir~
9d54db95
JF
15960 rm -rf $tpldir~
15961 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15962 $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 15963 ;;
ee134472 15964 *) # Version 6 and above use weak symbols
9d54db95
JF
15965 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15966 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
15967 ;;
15968 esac
9c60689e 15969
9d54db95
JF
15970 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
15971 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15972 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
15973 ;;
15974 cxx*)
15975 # Compaq C++
9d54db95
JF
15976 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15977 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 15978
47aaa820
DWT
15979 runpath_var=LD_RUN_PATH
15980 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15981 hardcode_libdir_separator_CXX=:
9c60689e 15982
47aaa820
DWT
15983 # Commands to make compiler produce verbose output that lists
15984 # what "hidden" libraries, object files and flags are used when
15985 # linking a shared library.
15986 #
15987 # There doesn't appear to be a way to prevent this compiler from
15988 # explicitly linking system object files so we need to strip them
15989 # from the output so that they don't get included in the library
15990 # dependencies.
9d54db95 15991 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 15992 ;;
ee134472 15993 xl* | mpixl* | bgxl*)
47aaa820 15994 # IBM XL 8.0 on PPC, with GNU ld
9d54db95
JF
15995 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15996 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15997 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15998 if test yes = "$supports_anon_versioning"; then
47aaa820 15999 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
9d54db95
JF
16000 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16001 echo "local: *; };" >> $output_objdir/$libname.ver~
16002 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
47aaa820
DWT
16003 fi
16004 ;;
16005 *)
16006 case `$CC -V 2>&1 | sed 5q` in
16007 *Sun\ C*)
16008 # Sun C++ 5.9
16009 no_undefined_flag_CXX=' -zdefs'
9d54db95
JF
16010 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16011 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 16012 hardcode_libdir_flag_spec_CXX='-R$libdir'
9d54db95 16013 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 16014 compiler_needs_object_CXX=yes
9c60689e 16015
47aaa820
DWT
16016 # Not sure whether something based on
16017 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
16018 # would be better.
ee134472 16019 output_verbose_link_cmd='func_echo_all'
9c60689e 16020
47aaa820
DWT
16021 # Archives containing C++ object files must be created using
16022 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16023 # necessary to make sure instantiated templates are included
16024 # in the archive.
16025 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16026 ;;
16027 esac
16028 ;;
16029 esac
16030 ;;
9c60689e 16031
47aaa820
DWT
16032 lynxos*)
16033 # FIXME: insert proper C++ library support
16034 ld_shlibs_CXX=no
16035 ;;
9c60689e 16036
47aaa820
DWT
16037 m88k*)
16038 # FIXME: insert proper C++ library support
16039 ld_shlibs_CXX=no
16040 ;;
9c60689e 16041
47aaa820
DWT
16042 mvs*)
16043 case $cc_basename in
16044 cxx*)
16045 # FIXME: insert proper C++ library support
16046 ld_shlibs_CXX=no
16047 ;;
16048 *)
16049 # FIXME: insert proper C++ library support
16050 ld_shlibs_CXX=no
16051 ;;
16052 esac
16053 ;;
9c60689e 16054
47aaa820
DWT
16055 netbsd*)
16056 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16057 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16058 wlarc=
16059 hardcode_libdir_flag_spec_CXX='-R$libdir'
16060 hardcode_direct_CXX=yes
16061 hardcode_shlibpath_var_CXX=no
16062 fi
16063 # Workaround some broken pre-1.5 toolchains
16064 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
9c60689e 16065 ;;
47aaa820
DWT
16066
16067 *nto* | *qnx*)
16068 ld_shlibs_CXX=yes
9c60689e 16069 ;;
9c60689e 16070
9d54db95 16071 openbsd* | bitrig*)
47aaa820
DWT
16072 if test -f /usr/libexec/ld.so; then
16073 hardcode_direct_CXX=yes
16074 hardcode_shlibpath_var_CXX=no
16075 hardcode_direct_absolute_CXX=yes
16076 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9d54db95
JF
16077 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16078 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
16079 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
16080 export_dynamic_flag_spec_CXX='$wl-E'
16081 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
47aaa820 16082 fi
ee134472 16083 output_verbose_link_cmd=func_echo_all
47aaa820
DWT
16084 else
16085 ld_shlibs_CXX=no
16086 fi
16087 ;;
9c60689e 16088
47aaa820
DWT
16089 osf3* | osf4* | osf5*)
16090 case $cc_basename in
16091 KCC*)
16092 # Kuck and Associates, Inc. (KAI) C++ Compiler
9c60689e 16093
47aaa820
DWT
16094 # KCC will only create a shared library if the output file
16095 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16096 # to its proper name (with version) after linking.
9d54db95 16097 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 16098
9d54db95 16099 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
47aaa820 16100 hardcode_libdir_separator_CXX=:
9c60689e 16101
47aaa820
DWT
16102 # Archives containing C++ object files must be created using
16103 # the KAI C++ compiler.
16104 case $host in
16105 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
16106 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
16107 esac
16108 ;;
16109 RCC*)
16110 # Rational C++ 2.4.1
16111 # FIXME: insert proper C++ library support
16112 ld_shlibs_CXX=no
16113 ;;
16114 cxx*)
16115 case $host in
16116 osf3*)
9d54db95
JF
16117 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
16118 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'
16119 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
47aaa820
DWT
16120 ;;
16121 *)
16122 allow_undefined_flag_CXX=' -expect_unresolved \*'
9d54db95 16123 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 16124 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
9d54db95
JF
16125 echo "-hidden">> $lib.exp~
16126 $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~
16127 $RM $lib.exp'
47aaa820
DWT
16128 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16129 ;;
16130 esac
9c60689e 16131
47aaa820 16132 hardcode_libdir_separator_CXX=:
9c60689e 16133
47aaa820
DWT
16134 # Commands to make compiler produce verbose output that lists
16135 # what "hidden" libraries, object files and flags are used when
16136 # linking a shared library.
16137 #
16138 # There doesn't appear to be a way to prevent this compiler from
16139 # explicitly linking system object files so we need to strip them
16140 # from the output so that they don't get included in the library
16141 # dependencies.
9d54db95 16142 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
16143 ;;
16144 *)
9d54db95
JF
16145 if test yes,no = "$GXX,$with_gnu_ld"; then
16146 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
47aaa820
DWT
16147 case $host in
16148 osf3*)
9d54db95 16149 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
16150 ;;
16151 *)
9d54db95 16152 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
16153 ;;
16154 esac
9c60689e 16155
9d54db95 16156 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
47aaa820 16157 hardcode_libdir_separator_CXX=:
9c60689e 16158
47aaa820
DWT
16159 # Commands to make compiler produce verbose output that lists
16160 # what "hidden" libraries, object files and flags are used when
16161 # linking a shared library.
ee134472 16162 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
9c60689e 16163
47aaa820
DWT
16164 else
16165 # FIXME: insert proper C++ library support
16166 ld_shlibs_CXX=no
16167 fi
16168 ;;
16169 esac
16170 ;;
9c60689e 16171
47aaa820 16172 psos*)
9c60689e
DWT
16173 # FIXME: insert proper C++ library support
16174 ld_shlibs_CXX=no
16175 ;;
9c60689e 16176
47aaa820
DWT
16177 sunos4*)
16178 case $cc_basename in
16179 CC*)
16180 # Sun C++ 4.x
16181 # FIXME: insert proper C++ library support
16182 ld_shlibs_CXX=no
9c60689e 16183 ;;
47aaa820
DWT
16184 lcc*)
16185 # Lucid
16186 # FIXME: insert proper C++ library support
16187 ld_shlibs_CXX=no
16188 ;;
16189 *)
16190 # FIXME: insert proper C++ library support
16191 ld_shlibs_CXX=no
16192 ;;
16193 esac
16194 ;;
9c60689e 16195
47aaa820
DWT
16196 solaris*)
16197 case $cc_basename in
ee134472 16198 CC* | sunCC*)
47aaa820
DWT
16199 # Sun C++ 4.2, 5.x and Centerline C++
16200 archive_cmds_need_lc_CXX=yes
16201 no_undefined_flag_CXX=' -zdefs'
9d54db95 16202 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
47aaa820 16203 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9d54db95 16204 $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 16205
47aaa820
DWT
16206 hardcode_libdir_flag_spec_CXX='-R$libdir'
16207 hardcode_shlibpath_var_CXX=no
16208 case $host_os in
16209 solaris2.[0-5] | solaris2.[0-5].*) ;;
16210 *)
16211 # The compiler driver will combine and reorder linker options,
9d54db95 16212 # but understands '-z linker_flag'.
47aaa820
DWT
16213 # Supported since Solaris 2.6 (maybe 2.5.1?)
16214 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
16215 ;;
16216 esac
16217 link_all_deplibs_CXX=yes
9c60689e 16218
ee134472 16219 output_verbose_link_cmd='func_echo_all'
9c60689e 16220
47aaa820
DWT
16221 # Archives containing C++ object files must be created using
16222 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16223 # necessary to make sure instantiated templates are included
16224 # in the archive.
16225 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16226 ;;
16227 gcx*)
16228 # Green Hills C++ Compiler
9d54db95 16229 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
9c60689e 16230
47aaa820
DWT
16231 # The C++ compiler must be used to create the archive.
16232 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16233 ;;
16234 *)
16235 # GNU C++ compiler with Solaris linker
9d54db95
JF
16236 if test yes,no = "$GXX,$with_gnu_ld"; then
16237 no_undefined_flag_CXX=' $wl-z ${wl}defs'
47aaa820 16238 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
9d54db95 16239 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
47aaa820 16240 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9d54db95 16241 $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 16242
47aaa820
DWT
16243 # Commands to make compiler produce verbose output that lists
16244 # what "hidden" libraries, object files and flags are used when
16245 # linking a shared library.
ee134472 16246 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
47aaa820 16247 else
9d54db95 16248 # g++ 2.7 appears to require '-G' NOT '-shared' on this
47aaa820 16249 # platform.
9d54db95 16250 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
47aaa820 16251 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9d54db95 16252 $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 16253
47aaa820
DWT
16254 # Commands to make compiler produce verbose output that lists
16255 # what "hidden" libraries, object files and flags are used when
16256 # linking a shared library.
ee134472 16257 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
47aaa820 16258 fi
9c60689e 16259
9d54db95 16260 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
47aaa820
DWT
16261 case $host_os in
16262 solaris2.[0-5] | solaris2.[0-5].*) ;;
16263 *)
9d54db95 16264 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
47aaa820
DWT
16265 ;;
16266 esac
16267 fi
16268 ;;
16269 esac
16270 ;;
9c60689e 16271
47aaa820 16272 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9d54db95 16273 no_undefined_flag_CXX='$wl-z,text'
47aaa820
DWT
16274 archive_cmds_need_lc_CXX=no
16275 hardcode_shlibpath_var_CXX=no
16276 runpath_var='LD_RUN_PATH'
9c60689e 16277
47aaa820
DWT
16278 case $cc_basename in
16279 CC*)
9d54db95
JF
16280 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16281 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
47aaa820
DWT
16282 ;;
16283 *)
9d54db95
JF
16284 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16285 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
47aaa820
DWT
16286 ;;
16287 esac
16288 ;;
9c60689e 16289
47aaa820 16290 sysv5* | sco3.2v5* | sco5v6*)
9d54db95 16291 # Note: We CANNOT use -z defs as we might desire, because we do not
47aaa820
DWT
16292 # link with -lc, and that would cause any symbols used from libc to
16293 # always be unresolved, which means just about no library would
16294 # ever link correctly. If we're not using GNU ld we use -z text
16295 # though, which does catch some bad symbols but isn't as heavy-handed
16296 # as -z defs.
9d54db95
JF
16297 no_undefined_flag_CXX='$wl-z,text'
16298 allow_undefined_flag_CXX='$wl-z,nodefs'
47aaa820
DWT
16299 archive_cmds_need_lc_CXX=no
16300 hardcode_shlibpath_var_CXX=no
9d54db95 16301 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
47aaa820
DWT
16302 hardcode_libdir_separator_CXX=':'
16303 link_all_deplibs_CXX=yes
9d54db95 16304 export_dynamic_flag_spec_CXX='$wl-Bexport'
47aaa820 16305 runpath_var='LD_RUN_PATH'
9c60689e 16306
47aaa820
DWT
16307 case $cc_basename in
16308 CC*)
9d54db95
JF
16309 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16310 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
ee134472 16311 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
9d54db95 16312 '"$old_archive_cmds_CXX"
ee134472 16313 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
9d54db95 16314 '"$reload_cmds_CXX"
47aaa820
DWT
16315 ;;
16316 *)
9d54db95
JF
16317 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16318 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
47aaa820
DWT
16319 ;;
16320 esac
16321 ;;
9c60689e 16322
47aaa820 16323 tandem*)
9c60689e 16324 case $cc_basename in
47aaa820
DWT
16325 NCC*)
16326 # NonStop-UX NCC 3.20
16327 # FIXME: insert proper C++ library support
16328 ld_shlibs_CXX=no
16329 ;;
9c60689e 16330 *)
47aaa820
DWT
16331 # FIXME: insert proper C++ library support
16332 ld_shlibs_CXX=no
16333 ;;
9c60689e
DWT
16334 esac
16335 ;;
16336
47aaa820
DWT
16337 vxworks*)
16338 # FIXME: insert proper C++ library support
16339 ld_shlibs_CXX=no
16340 ;;
9c60689e 16341
47aaa820
DWT
16342 *)
16343 # FIXME: insert proper C++ library support
16344 ld_shlibs_CXX=no
9c60689e 16345 ;;
47aaa820 16346 esac
9c60689e 16347
47aaa820
DWT
16348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16349$as_echo "$ld_shlibs_CXX" >&6; }
9d54db95 16350 test no = "$ld_shlibs_CXX" && can_build_shared=no
9c60689e 16351
9d54db95
JF
16352 GCC_CXX=$GXX
16353 LD_CXX=$LD
9c60689e 16354
47aaa820
DWT
16355 ## CAVEAT EMPTOR:
16356 ## There is no encapsulation within the following macros, do not change
16357 ## the running order or otherwise move them around unless you know exactly
16358 ## what you are doing...
16359 # Dependencies to place before and after the object being linked:
16360predep_objects_CXX=
16361postdep_objects_CXX=
16362predeps_CXX=
16363postdeps_CXX=
16364compiler_lib_search_path_CXX=
9c60689e 16365
47aaa820
DWT
16366cat > conftest.$ac_ext <<_LT_EOF
16367class Foo
16368{
16369public:
16370 Foo (void) { a = 0; }
16371private:
16372 int a;
16373};
16374_LT_EOF
9c60689e 16375
ee134472
JF
16376
16377_lt_libdeps_save_CFLAGS=$CFLAGS
16378case "$CC $CFLAGS " in #(
16379*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
16380*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
53ba6704 16381*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
ee134472
JF
16382esac
16383
47aaa820
DWT
16384if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16385 (eval $ac_compile) 2>&5
16386 ac_status=$?
16387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16388 test $ac_status = 0; }; then
16389 # Parse the compiler output and extract the necessary
16390 # objects, libraries and library flags.
9c60689e 16391
47aaa820
DWT
16392 # Sentinel used to keep track of whether or not we are before
16393 # the conftest object file.
16394 pre_test_object_deps_done=no
9c60689e 16395
47aaa820 16396 for p in `eval "$output_verbose_link_cmd"`; do
9d54db95 16397 case $prev$p in
9c60689e 16398
47aaa820
DWT
16399 -L* | -R* | -l*)
16400 # Some compilers place space between "-{L,R}" and the path.
16401 # Remove the space.
9d54db95
JF
16402 if test x-L = "$p" ||
16403 test x-R = "$p"; then
47aaa820
DWT
16404 prev=$p
16405 continue
47aaa820 16406 fi
9c60689e 16407
ee134472
JF
16408 # Expand the sysroot to ease extracting the directories later.
16409 if test -z "$prev"; then
16410 case $p in
16411 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
16412 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
16413 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
16414 esac
16415 fi
16416 case $p in
16417 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
16418 esac
9d54db95
JF
16419 if test no = "$pre_test_object_deps_done"; then
16420 case $prev in
ee134472 16421 -L | -R)
47aaa820
DWT
16422 # Internal compiler library paths should come after those
16423 # provided the user. The postdeps already come after the
16424 # user supplied libs so there is no need to process them.
16425 if test -z "$compiler_lib_search_path_CXX"; then
9d54db95 16426 compiler_lib_search_path_CXX=$prev$p
47aaa820 16427 else
9d54db95 16428 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
47aaa820
DWT
16429 fi
16430 ;;
16431 # The "-l" case would never come before the object being
16432 # linked, so don't bother handling this case.
16433 esac
16434 else
16435 if test -z "$postdeps_CXX"; then
9d54db95 16436 postdeps_CXX=$prev$p
47aaa820 16437 else
9d54db95 16438 postdeps_CXX="${postdeps_CXX} $prev$p"
47aaa820
DWT
16439 fi
16440 fi
ee134472 16441 prev=
47aaa820 16442 ;;
9c60689e 16443
ee134472 16444 *.lto.$objext) ;; # Ignore GCC LTO objects
47aaa820
DWT
16445 *.$objext)
16446 # This assumes that the test object file only shows up
16447 # once in the compiler output.
16448 if test "$p" = "conftest.$objext"; then
16449 pre_test_object_deps_done=yes
16450 continue
16451 fi
9c60689e 16452
9d54db95 16453 if test no = "$pre_test_object_deps_done"; then
47aaa820 16454 if test -z "$predep_objects_CXX"; then
9d54db95 16455 predep_objects_CXX=$p
47aaa820
DWT
16456 else
16457 predep_objects_CXX="$predep_objects_CXX $p"
16458 fi
16459 else
16460 if test -z "$postdep_objects_CXX"; then
9d54db95 16461 postdep_objects_CXX=$p
47aaa820
DWT
16462 else
16463 postdep_objects_CXX="$postdep_objects_CXX $p"
16464 fi
16465 fi
16466 ;;
9c60689e 16467
47aaa820 16468 *) ;; # Ignore the rest.
9c60689e 16469
47aaa820
DWT
16470 esac
16471 done
9c60689e 16472
47aaa820
DWT
16473 # Clean up.
16474 rm -f a.out a.exe
16475else
16476 echo "libtool.m4: error: problem compiling CXX test program"
16477fi
9c60689e 16478
47aaa820 16479$RM -f confest.$objext
ee134472 16480CFLAGS=$_lt_libdeps_save_CFLAGS
9c60689e 16481
47aaa820
DWT
16482# PORTME: override above test on systems where it is broken
16483case $host_os in
16484interix[3-9]*)
16485 # Interix 3.5 installs completely hosed .la files for C++, so rather than
16486 # hack all around it, let's just trust "g++" to DTRT.
16487 predep_objects_CXX=
16488 postdep_objects_CXX=
16489 postdeps_CXX=
16490 ;;
47aaa820 16491esac
9c60689e 16492
9c60689e 16493
47aaa820
DWT
16494case " $postdeps_CXX " in
16495*" -lc "*) archive_cmds_need_lc_CXX=no ;;
16496esac
16497 compiler_lib_search_dirs_CXX=
16498if test -n "${compiler_lib_search_path_CXX}"; then
9d54db95 16499 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
47aaa820 16500fi
9c60689e 16501
9c60689e 16502
9c60689e 16503
9c60689e 16504
9c60689e 16505
9c60689e 16506
9c60689e 16507
9c60689e 16508
9c60689e 16509
9c60689e 16510
9c60689e 16511
9c60689e 16512
9c60689e 16513
9c60689e 16514
9c60689e 16515
9c60689e 16516
9c60689e 16517
9c60689e 16518
9c60689e 16519
9c60689e 16520
9c60689e 16521
9c60689e 16522
9c60689e 16523
9c60689e 16524
9c60689e 16525
9c60689e 16526
9c60689e 16527
9c60689e 16528
9c60689e 16529
9c60689e 16530
9c60689e 16531
47aaa820
DWT
16532 lt_prog_compiler_wl_CXX=
16533lt_prog_compiler_pic_CXX=
16534lt_prog_compiler_static_CXX=
9c60689e 16535
9c60689e
DWT
16536
16537 # C++ specific cases for pic, static, wl, etc.
9d54db95 16538 if test yes = "$GXX"; then
9c60689e
DWT
16539 lt_prog_compiler_wl_CXX='-Wl,'
16540 lt_prog_compiler_static_CXX='-static'
16541
16542 case $host_os in
16543 aix*)
16544 # All AIX code is PIC.
9d54db95 16545 if test ia64 = "$host_cpu"; then
9c60689e
DWT
16546 # AIX 5 now supports IA64 processor
16547 lt_prog_compiler_static_CXX='-Bstatic'
16548 fi
9d54db95 16549 lt_prog_compiler_pic_CXX='-fPIC'
9c60689e
DWT
16550 ;;
16551
16552 amigaos*)
16553 case $host_cpu in
16554 powerpc)
16555 # see comment about AmigaOS4 .so support
16556 lt_prog_compiler_pic_CXX='-fPIC'
16557 ;;
16558 m68k)
16559 # FIXME: we need at least 68020 code to build shared libraries, but
9d54db95
JF
16560 # adding the '-m68020' flag to GCC prevents building anything better,
16561 # like '-m68040'.
9c60689e
DWT
16562 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16563 ;;
16564 esac
16565 ;;
16566
16567 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16568 # PIC is the default for these OSes.
16569 ;;
16570 mingw* | cygwin* | os2* | pw32* | cegcc*)
16571 # This hack is so that the source file can tell whether it is being
16572 # built for inclusion in a dll (and should export symbols for example).
16573 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16574 # (--disable-auto-import) libraries
16575 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
9d54db95
JF
16576 case $host_os in
16577 os2*)
16578 lt_prog_compiler_static_CXX='$wl-static'
16579 ;;
16580 esac
9c60689e
DWT
16581 ;;
16582 darwin* | rhapsody*)
16583 # PIC is the default on this platform
16584 # Common symbols not allowed in MH_DYLIB files
16585 lt_prog_compiler_pic_CXX='-fno-common'
16586 ;;
16587 *djgpp*)
16588 # DJGPP does not support shared libraries at all
16589 lt_prog_compiler_pic_CXX=
16590 ;;
ee134472
JF
16591 haiku*)
16592 # PIC is the default for Haiku.
16593 # The "-static" flag exists, but is broken.
16594 lt_prog_compiler_static_CXX=
16595 ;;
9c60689e
DWT
16596 interix[3-9]*)
16597 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16598 # Instead, we relocate shared libraries at runtime.
16599 ;;
16600 sysv4*MP*)
16601 if test -d /usr/nec; then
16602 lt_prog_compiler_pic_CXX=-Kconform_pic
16603 fi
16604 ;;
16605 hpux*)
16606 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16607 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
16608 # sets the default TLS model and affects inlining.
16609 case $host_cpu in
16610 hppa*64*)
16611 ;;
16612 *)
16613 lt_prog_compiler_pic_CXX='-fPIC'
16614 ;;
16615 esac
16616 ;;
16617 *qnx* | *nto*)
16618 # QNX uses GNU C++, but need to define -shared option too, otherwise
16619 # it will coredump.
16620 lt_prog_compiler_pic_CXX='-fPIC -shared'
16621 ;;
16622 *)
16623 lt_prog_compiler_pic_CXX='-fPIC'
16624 ;;
16625 esac
16626 else
16627 case $host_os in
16628 aix[4-9]*)
16629 # All AIX code is PIC.
9d54db95 16630 if test ia64 = "$host_cpu"; then
9c60689e
DWT
16631 # AIX 5 now supports IA64 processor
16632 lt_prog_compiler_static_CXX='-Bstatic'
16633 else
16634 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16635 fi
16636 ;;
16637 chorus*)
16638 case $cc_basename in
16639 cxch68*)
16640 # Green Hills C++ Compiler
16641 # _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"
16642 ;;
16643 esac
16644 ;;
ee134472
JF
16645 mingw* | cygwin* | os2* | pw32* | cegcc*)
16646 # This hack is so that the source file can tell whether it is being
16647 # built for inclusion in a dll (and should export symbols for example).
16648 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16649 ;;
9c60689e
DWT
16650 dgux*)
16651 case $cc_basename in
16652 ec++*)
16653 lt_prog_compiler_pic_CXX='-KPIC'
16654 ;;
16655 ghcx*)
16656 # Green Hills C++ Compiler
16657 lt_prog_compiler_pic_CXX='-pic'
16658 ;;
16659 *)
16660 ;;
16661 esac
16662 ;;
16663 freebsd* | dragonfly*)
16664 # FreeBSD uses GNU C++
16665 ;;
16666 hpux9* | hpux10* | hpux11*)
16667 case $cc_basename in
16668 CC*)
16669 lt_prog_compiler_wl_CXX='-Wl,'
9d54db95
JF
16670 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
16671 if test ia64 != "$host_cpu"; then
9c60689e
DWT
16672 lt_prog_compiler_pic_CXX='+Z'
16673 fi
16674 ;;
16675 aCC*)
16676 lt_prog_compiler_wl_CXX='-Wl,'
9d54db95 16677 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
9c60689e
DWT
16678 case $host_cpu in
16679 hppa*64*|ia64*)
16680 # +Z the default
16681 ;;
16682 *)
16683 lt_prog_compiler_pic_CXX='+Z'
16684 ;;
16685 esac
16686 ;;
16687 *)
16688 ;;
16689 esac
16690 ;;
16691 interix*)
16692 # This is c89, which is MS Visual C++ (no shared libs)
16693 # Anyone wants to do a port?
16694 ;;
16695 irix5* | irix6* | nonstopux*)
16696 case $cc_basename in
16697 CC*)
16698 lt_prog_compiler_wl_CXX='-Wl,'
16699 lt_prog_compiler_static_CXX='-non_shared'
16700 # CC pic flag -KPIC is the default.
16701 ;;
16702 *)
16703 ;;
16704 esac
16705 ;;
9d54db95 16706 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9c60689e
DWT
16707 case $cc_basename in
16708 KCC*)
16709 # KAI C++ Compiler
16710 lt_prog_compiler_wl_CXX='--backend -Wl,'
16711 lt_prog_compiler_pic_CXX='-fPIC'
16712 ;;
16713 ecpc* )
9d54db95 16714 # old Intel C++ for x86_64, which still supported -KPIC.
9c60689e
DWT
16715 lt_prog_compiler_wl_CXX='-Wl,'
16716 lt_prog_compiler_pic_CXX='-KPIC'
16717 lt_prog_compiler_static_CXX='-static'
16718 ;;
16719 icpc* )
16720 # Intel C++, used to be incompatible with GCC.
16721 # ICC 10 doesn't accept -KPIC any more.
16722 lt_prog_compiler_wl_CXX='-Wl,'
16723 lt_prog_compiler_pic_CXX='-fPIC'
16724 lt_prog_compiler_static_CXX='-static'
16725 ;;
16726 pgCC* | pgcpp*)
16727 # Portland Group C++ compiler
16728 lt_prog_compiler_wl_CXX='-Wl,'
16729 lt_prog_compiler_pic_CXX='-fpic'
16730 lt_prog_compiler_static_CXX='-Bstatic'
16731 ;;
16732 cxx*)
16733 # Compaq C++
16734 # Make sure the PIC flag is empty. It appears that all Alpha
16735 # Linux and Compaq Tru64 Unix objects are PIC.
16736 lt_prog_compiler_pic_CXX=
16737 lt_prog_compiler_static_CXX='-non_shared'
16738 ;;
ee134472
JF
16739 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
16740 # IBM XL 8.0, 9.0 on PPC and BlueGene
9c60689e
DWT
16741 lt_prog_compiler_wl_CXX='-Wl,'
16742 lt_prog_compiler_pic_CXX='-qpic'
16743 lt_prog_compiler_static_CXX='-qstaticlink'
16744 ;;
16745 *)
16746 case `$CC -V 2>&1 | sed 5q` in
16747 *Sun\ C*)
16748 # Sun C++ 5.9
16749 lt_prog_compiler_pic_CXX='-KPIC'
16750 lt_prog_compiler_static_CXX='-Bstatic'
16751 lt_prog_compiler_wl_CXX='-Qoption ld '
16752 ;;
16753 esac
16754 ;;
16755 esac
16756 ;;
16757 lynxos*)
16758 ;;
16759 m88k*)
16760 ;;
16761 mvs*)
16762 case $cc_basename in
16763 cxx*)
16764 lt_prog_compiler_pic_CXX='-W c,exportall'
16765 ;;
16766 *)
16767 ;;
16768 esac
16769 ;;
53ba6704 16770 netbsd*)
9c60689e
DWT
16771 ;;
16772 *qnx* | *nto*)
16773 # QNX uses GNU C++, but need to define -shared option too, otherwise
16774 # it will coredump.
16775 lt_prog_compiler_pic_CXX='-fPIC -shared'
16776 ;;
16777 osf3* | osf4* | osf5*)
16778 case $cc_basename in
16779 KCC*)
16780 lt_prog_compiler_wl_CXX='--backend -Wl,'
16781 ;;
16782 RCC*)
16783 # Rational C++ 2.4.1
16784 lt_prog_compiler_pic_CXX='-pic'
16785 ;;
16786 cxx*)
16787 # Digital/Compaq C++
16788 lt_prog_compiler_wl_CXX='-Wl,'
16789 # Make sure the PIC flag is empty. It appears that all Alpha
16790 # Linux and Compaq Tru64 Unix objects are PIC.
16791 lt_prog_compiler_pic_CXX=
16792 lt_prog_compiler_static_CXX='-non_shared'
16793 ;;
16794 *)
16795 ;;
16796 esac
16797 ;;
16798 psos*)
16799 ;;
16800 solaris*)
16801 case $cc_basename in
ee134472 16802 CC* | sunCC*)
9c60689e
DWT
16803 # Sun C++ 4.2, 5.x and Centerline C++
16804 lt_prog_compiler_pic_CXX='-KPIC'
16805 lt_prog_compiler_static_CXX='-Bstatic'
16806 lt_prog_compiler_wl_CXX='-Qoption ld '
16807 ;;
16808 gcx*)
16809 # Green Hills C++ Compiler
16810 lt_prog_compiler_pic_CXX='-PIC'
16811 ;;
16812 *)
16813 ;;
16814 esac
16815 ;;
16816 sunos4*)
16817 case $cc_basename in
16818 CC*)
16819 # Sun C++ 4.x
16820 lt_prog_compiler_pic_CXX='-pic'
16821 lt_prog_compiler_static_CXX='-Bstatic'
16822 ;;
16823 lcc*)
16824 # Lucid
16825 lt_prog_compiler_pic_CXX='-pic'
16826 ;;
16827 *)
16828 ;;
16829 esac
16830 ;;
16831 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16832 case $cc_basename in
16833 CC*)
16834 lt_prog_compiler_wl_CXX='-Wl,'
16835 lt_prog_compiler_pic_CXX='-KPIC'
16836 lt_prog_compiler_static_CXX='-Bstatic'
16837 ;;
16838 esac
16839 ;;
16840 tandem*)
16841 case $cc_basename in
16842 NCC*)
16843 # NonStop-UX NCC 3.20
16844 lt_prog_compiler_pic_CXX='-KPIC'
16845 ;;
16846 *)
16847 ;;
16848 esac
16849 ;;
16850 vxworks*)
16851 ;;
16852 *)
16853 lt_prog_compiler_can_build_shared_CXX=no
16854 ;;
16855 esac
16856 fi
16857
16858case $host_os in
9d54db95 16859 # For platforms that do not support PIC, -DPIC is meaningless:
9c60689e
DWT
16860 *djgpp*)
16861 lt_prog_compiler_pic_CXX=
16862 ;;
16863 *)
16864 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16865 ;;
16866esac
9c60689e 16867
ee134472
JF
16868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16869$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16870if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
16871 $as_echo_n "(cached) " >&6
16872else
16873 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
16874fi
16875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
16876$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
16877lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
9c60689e
DWT
16878
16879#
16880# Check to make sure the PIC flag actually works.
16881#
16882if test -n "$lt_prog_compiler_pic_CXX"; then
16883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16884$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
ee134472 16885if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
9c60689e
DWT
16886 $as_echo_n "(cached) " >&6
16887else
16888 lt_cv_prog_compiler_pic_works_CXX=no
16889 ac_outfile=conftest.$ac_objext
16890 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9d54db95 16891 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
9c60689e
DWT
16892 # Insert the option either (1) after the last *FLAGS variable, or
16893 # (2) before a word containing "conftest.", or (3) at the end.
16894 # Note that $ac_compile itself does not contain backslashes and begins
16895 # with a dollar sign (not a hyphen), so the echo should work correctly.
16896 # The option is referenced via a variable to avoid confusing sed.
16897 lt_compile=`echo "$ac_compile" | $SED \
16898 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16899 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16900 -e 's:$: $lt_compiler_flag:'`
ee134472 16901 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9c60689e
DWT
16902 (eval "$lt_compile" 2>conftest.err)
16903 ac_status=$?
16904 cat conftest.err >&5
ee134472 16905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9c60689e
DWT
16906 if (exit $ac_status) && test -s "$ac_outfile"; then
16907 # The compiler can only warn and ignore the option if not recognized
16908 # So say no if there are warnings other than the usual output.
ee134472 16909 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9c60689e
DWT
16910 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16911 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16912 lt_cv_prog_compiler_pic_works_CXX=yes
16913 fi
16914 fi
00a96142 16915 $RM -r conftest*
9c60689e
DWT
16916
16917fi
16918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
16919$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
16920
9d54db95 16921if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
9c60689e
DWT
16922 case $lt_prog_compiler_pic_CXX in
16923 "" | " "*) ;;
16924 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16925 esac
16926else
16927 lt_prog_compiler_pic_CXX=
16928 lt_prog_compiler_can_build_shared_CXX=no
16929fi
16930
16931fi
16932
16933
16934
ee134472
JF
16935
16936
47aaa820
DWT
16937#
16938# Check to make sure the static flag actually works.
16939#
16940wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
16941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16942$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
ee134472 16943if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
47aaa820
DWT
16944 $as_echo_n "(cached) " >&6
16945else
16946 lt_cv_prog_compiler_static_works_CXX=no
9d54db95 16947 save_LDFLAGS=$LDFLAGS
47aaa820
DWT
16948 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16949 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16950 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16951 # The linker can only warn and ignore the option if not recognized
16952 # So say no if there are warnings
16953 if test -s conftest.err; then
16954 # Append any errors to the config.log.
16955 cat conftest.err 1>&5
ee134472 16956 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
47aaa820
DWT
16957 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16958 if diff conftest.exp conftest.er2 >/dev/null; then
16959 lt_cv_prog_compiler_static_works_CXX=yes
16960 fi
16961 else
16962 lt_cv_prog_compiler_static_works_CXX=yes
16963 fi
16964 fi
16965 $RM -r conftest*
9d54db95 16966 LDFLAGS=$save_LDFLAGS
47aaa820
DWT
16967
16968fi
16969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
16970$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
16971
9d54db95 16972if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
47aaa820
DWT
16973 :
16974else
16975 lt_prog_compiler_static_CXX=
16976fi
16977
16978
16979
16980
16981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16982$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
ee134472 16983if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
47aaa820
DWT
16984 $as_echo_n "(cached) " >&6
16985else
16986 lt_cv_prog_compiler_c_o_CXX=no
16987 $RM -r conftest 2>/dev/null
16988 mkdir conftest
16989 cd conftest
16990 mkdir out
16991 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16992
16993 lt_compiler_flag="-o out/conftest2.$ac_objext"
16994 # Insert the option either (1) after the last *FLAGS variable, or
16995 # (2) before a word containing "conftest.", or (3) at the end.
16996 # Note that $ac_compile itself does not contain backslashes and begins
16997 # with a dollar sign (not a hyphen), so the echo should work correctly.
16998 lt_compile=`echo "$ac_compile" | $SED \
16999 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17000 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17001 -e 's:$: $lt_compiler_flag:'`
ee134472 17002 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
47aaa820
DWT
17003 (eval "$lt_compile" 2>out/conftest.err)
17004 ac_status=$?
17005 cat out/conftest.err >&5
ee134472 17006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47aaa820
DWT
17007 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17008 then
17009 # The compiler can only warn and ignore the option if not recognized
17010 # So say no if there are warnings
ee134472 17011 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
47aaa820
DWT
17012 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17013 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17014 lt_cv_prog_compiler_c_o_CXX=yes
17015 fi
17016 fi
17017 chmod u+w . 2>&5
00a96142 17018 $RM -r conftest*
47aaa820
DWT
17019 # SGI C++ compiler will create directory out/ii_files/ for
17020 # template instantiation
17021 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17022 $RM out/* && rmdir out
17023 cd ..
17024 $RM -r conftest
00a96142 17025 $RM -r conftest*
47aaa820
DWT
17026
17027fi
17028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17029$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17030
17031
17032
17033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17034$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
ee134472 17035if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
47aaa820
DWT
17036 $as_echo_n "(cached) " >&6
17037else
17038 lt_cv_prog_compiler_c_o_CXX=no
17039 $RM -r conftest 2>/dev/null
17040 mkdir conftest
17041 cd conftest
17042 mkdir out
17043 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17044
17045 lt_compiler_flag="-o out/conftest2.$ac_objext"
17046 # Insert the option either (1) after the last *FLAGS variable, or
17047 # (2) before a word containing "conftest.", or (3) at the end.
17048 # Note that $ac_compile itself does not contain backslashes and begins
17049 # with a dollar sign (not a hyphen), so the echo should work correctly.
17050 lt_compile=`echo "$ac_compile" | $SED \
17051 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17052 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17053 -e 's:$: $lt_compiler_flag:'`
ee134472 17054 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
47aaa820
DWT
17055 (eval "$lt_compile" 2>out/conftest.err)
17056 ac_status=$?
17057 cat out/conftest.err >&5
ee134472 17058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47aaa820
DWT
17059 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17060 then
17061 # The compiler can only warn and ignore the option if not recognized
17062 # So say no if there are warnings
ee134472 17063 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
47aaa820
DWT
17064 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17065 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17066 lt_cv_prog_compiler_c_o_CXX=yes
17067 fi
17068 fi
17069 chmod u+w . 2>&5
00a96142 17070 $RM -r conftest*
47aaa820
DWT
17071 # SGI C++ compiler will create directory out/ii_files/ for
17072 # template instantiation
17073 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17074 $RM out/* && rmdir out
17075 cd ..
17076 $RM -r conftest
00a96142 17077 $RM -r conftest*
47aaa820
DWT
17078
17079fi
17080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17081$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17082
17083
17084
17085
9d54db95
JF
17086hard_links=nottested
17087if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
47aaa820
DWT
17088 # do not overwrite the value of need_locks provided by the user
17089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17090$as_echo_n "checking if we can lock with hard links... " >&6; }
17091 hard_links=yes
00a96142 17092 $RM -r conftest*
47aaa820
DWT
17093 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17094 touch conftest.a
17095 ln conftest.a conftest.b 2>&5 || hard_links=no
17096 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17098$as_echo "$hard_links" >&6; }
9d54db95
JF
17099 if test no = "$hard_links"; then
17100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
17101$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
47aaa820
DWT
17102 need_locks=warn
17103 fi
17104else
17105 need_locks=no
17106fi
17107
17108
17109
17110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17111$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17112
17113 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
ee134472 17114 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
47aaa820
DWT
17115 case $host_os in
17116 aix[4-9]*)
17117 # If we're using GNU nm, then we don't want the "-C" option.
9d54db95
JF
17118 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
17119 # Without the "-l" option, or with the "-B" option, AIX nm treats
17120 # weak defined symbols like other global defined symbols, whereas
17121 # GNU nm marks them as "W".
17122 # While the 'weak' keyword is ignored in the Export File, we need
17123 # it in the Import File for the 'aix-soname' feature, so we have
17124 # to replace the "-B" option with "-P" for AIX nm.
47aaa820 17125 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9d54db95 17126 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 17127 else
9d54db95 17128 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
17129 fi
17130 ;;
17131 pw32*)
9d54db95 17132 export_symbols_cmds_CXX=$ltdll_cmds
ee134472 17133 ;;
47aaa820 17134 cygwin* | mingw* | cegcc*)
ee134472 17135 case $cc_basename in
53ba6704
JF
17136 cl*)
17137 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
17138 ;;
ee134472
JF
17139 *)
17140 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'
17141 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
17142 ;;
17143 esac
17144 ;;
47aaa820
DWT
17145 *)
17146 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
ee134472 17147 ;;
47aaa820 17148 esac
47aaa820
DWT
17149
17150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17151$as_echo "$ld_shlibs_CXX" >&6; }
9d54db95 17152test no = "$ld_shlibs_CXX" && can_build_shared=no
47aaa820
DWT
17153
17154with_gnu_ld_CXX=$with_gnu_ld
17155
17156
17157
17158
17159
17160
17161#
17162# Do we need to explicitly link libc?
17163#
17164case "x$archive_cmds_need_lc_CXX" in
17165x|xyes)
17166 # Assume -lc should be added
17167 archive_cmds_need_lc_CXX=yes
17168
9d54db95 17169 if test yes,yes = "$GCC,$enable_shared"; then
47aaa820
DWT
17170 case $archive_cmds_CXX in
17171 *'~'*)
17172 # FIXME: we may have to deal with multi-command sequences.
17173 ;;
17174 '$CC '*)
17175 # Test whether the compiler implicitly links with -lc since on some
17176 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17177 # to ld, don't add -lc before -lgcc.
17178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17179$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
ee134472
JF
17180if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
17181 $as_echo_n "(cached) " >&6
17182else
00a96142 17183 $RM -r conftest*
ee134472 17184 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
47aaa820 17185
ee134472 17186 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
47aaa820
DWT
17187 (eval $ac_compile) 2>&5
17188 ac_status=$?
17189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17190 test $ac_status = 0; } 2>conftest.err; then
ee134472
JF
17191 soname=conftest
17192 lib=conftest
17193 libobjs=conftest.$ac_objext
17194 deplibs=
17195 wl=$lt_prog_compiler_wl_CXX
17196 pic_flag=$lt_prog_compiler_pic_CXX
17197 compiler_flags=-v
17198 linker_flags=-v
17199 verstring=
17200 output_objdir=.
17201 libname=conftest
17202 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17203 allow_undefined_flag_CXX=
17204 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
47aaa820
DWT
17205 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17206 ac_status=$?
17207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17208 test $ac_status = 0; }
ee134472
JF
17209 then
17210 lt_cv_archive_cmds_need_lc_CXX=no
17211 else
17212 lt_cv_archive_cmds_need_lc_CXX=yes
17213 fi
17214 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17215 else
17216 cat conftest.err 1>&5
17217 fi
00a96142 17218 $RM -r conftest*
ee134472
JF
17219
17220fi
17221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
17222$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
17223 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
47aaa820
DWT
17224 ;;
17225 esac
17226 fi
17227 ;;
17228esac
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
17267
17268
17269
17270
17271
17272
17273
17274
17275
17276
17277
17278
17279
17280
17281
17282
17283
17284
17285
17286
17287
47aaa820
DWT
17288
17289
17290
17291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17292$as_echo_n "checking dynamic linker characteristics... " >&6; }
17293
17294library_names_spec=
17295libname_spec='lib$name'
17296soname_spec=
9d54db95 17297shrext_cmds=.so
47aaa820
DWT
17298postinstall_cmds=
17299postuninstall_cmds=
17300finish_cmds=
17301finish_eval=
17302shlibpath_var=
17303shlibpath_overrides_runpath=unknown
17304version_type=none
17305dynamic_linker="$host_os ld.so"
17306sys_lib_dlsearch_path_spec="/lib /usr/lib"
17307need_lib_prefix=unknown
17308hardcode_into_libs=no
17309
17310# when you set need_version to no, make sure it does not cause -set_version
17311# flags to be left without arguments
17312need_version=unknown
17313
9d54db95
JF
17314
17315
47aaa820
DWT
17316case $host_os in
17317aix3*)
53ba6704 17318 version_type=linux # correct to gnu/linux during the next big refactor
9d54db95 17319 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
47aaa820
DWT
17320 shlibpath_var=LIBPATH
17321
17322 # AIX 3 has no versioning support, so we append a major version to the name.
9d54db95 17323 soname_spec='$libname$release$shared_ext$major'
47aaa820
DWT
17324 ;;
17325
17326aix[4-9]*)
53ba6704 17327 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
17328 need_lib_prefix=no
17329 need_version=no
17330 hardcode_into_libs=yes
9d54db95 17331 if test ia64 = "$host_cpu"; then
47aaa820 17332 # AIX 5 supports IA64
9d54db95 17333 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
47aaa820
DWT
17334 shlibpath_var=LD_LIBRARY_PATH
17335 else
17336 # With GCC up to 2.95.x, collect2 would create an import file
17337 # for dependence libraries. The import file would start with
9d54db95
JF
17338 # the line '#! .'. This would cause the generated library to
17339 # depend on '.', always an invalid library. This was fixed in
47aaa820
DWT
17340 # development snapshots of GCC prior to 3.0.
17341 case $host_os in
17342 aix4 | aix4.[01] | aix4.[01].*)
17343 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17344 echo ' yes '
9d54db95 17345 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
47aaa820
DWT
17346 :
17347 else
17348 can_build_shared=no
17349 fi
17350 ;;
17351 esac
9d54db95
JF
17352 # Using Import Files as archive members, it is possible to support
17353 # filename-based versioning of shared library archives on AIX. While
17354 # this would work for both with and without runtime linking, it will
17355 # prevent static linking of such archives. So we do filename-based
17356 # shared library versioning with .so extension only, which is used
17357 # when both runtime linking and shared linking is enabled.
17358 # Unfortunately, runtime linking may impact performance, so we do
17359 # not want this to be the default eventually. Also, we use the
17360 # versioned .so libs for executables only if there is the -brtl
17361 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
17362 # To allow for filename-based versioning support, we need to create
17363 # libNAME.so.V as an archive file, containing:
17364 # *) an Import File, referring to the versioned filename of the
17365 # archive as well as the shared archive member, telling the
17366 # bitwidth (32 or 64) of that shared object, and providing the
17367 # list of exported symbols of that shared object, eventually
17368 # decorated with the 'weak' keyword
17369 # *) the shared object with the F_LOADONLY flag set, to really avoid
17370 # it being seen by the linker.
17371 # At run time we better use the real file rather than another symlink,
17372 # but for link time we create the symlink libNAME.so -> libNAME.so.V
17373
17374 case $with_aix_soname,$aix_use_runtimelinking in
17375 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
47aaa820
DWT
17376 # soname into executable. Probably we can add versioning support to
17377 # collect2, so additional links can be useful in future.
9d54db95
JF
17378 aix,yes) # traditional libtool
17379 dynamic_linker='AIX unversionable lib.so'
47aaa820
DWT
17380 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17381 # instead of lib<name>.a to let people know that these are not
17382 # typical AIX shared libraries.
9d54db95
JF
17383 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17384 ;;
17385 aix,no) # traditional AIX only
17386 dynamic_linker='AIX lib.a(lib.so.V)'
47aaa820
DWT
17387 # We preserve .a as extension for shared libraries through AIX4.2
17388 # and later when we are not doing run time linking.
9d54db95
JF
17389 library_names_spec='$libname$release.a $libname.a'
17390 soname_spec='$libname$release$shared_ext$major'
17391 ;;
17392 svr4,*) # full svr4 only
17393 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
17394 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17395 # We do not specify a path in Import Files, so LIBPATH fires.
17396 shlibpath_overrides_runpath=yes
17397 ;;
17398 *,yes) # both, prefer svr4
17399 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
17400 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17401 # unpreferred sharedlib libNAME.a needs extra handling
17402 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"'
17403 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"'
17404 # We do not specify a path in Import Files, so LIBPATH fires.
17405 shlibpath_overrides_runpath=yes
17406 ;;
17407 *,no) # both, prefer aix
17408 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
17409 library_names_spec='$libname$release.a $libname.a'
17410 soname_spec='$libname$release$shared_ext$major'
17411 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
17412 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)'
17413 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"'
17414 ;;
17415 esac
47aaa820
DWT
17416 shlibpath_var=LIBPATH
17417 fi
17418 ;;
17419
17420amigaos*)
17421 case $host_cpu in
17422 powerpc)
17423 # Since July 2007 AmigaOS4 officially supports .so libraries.
17424 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9d54db95 17425 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
47aaa820
DWT
17426 ;;
17427 m68k)
17428 library_names_spec='$libname.ixlibrary $libname.a'
17429 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9d54db95 17430 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
17431 ;;
17432 esac
17433 ;;
17434
17435beos*)
9d54db95 17436 library_names_spec='$libname$shared_ext'
47aaa820
DWT
17437 dynamic_linker="$host_os ld.so"
17438 shlibpath_var=LIBRARY_PATH
17439 ;;
17440
17441bsdi[45]*)
53ba6704 17442 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820 17443 need_version=no
9d54db95
JF
17444 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17445 soname_spec='$libname$release$shared_ext$major'
47aaa820
DWT
17446 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17447 shlibpath_var=LD_LIBRARY_PATH
17448 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17449 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17450 # the default ld.so.conf also contains /usr/contrib/lib and
17451 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17452 # libtool to hard-code these into programs
17453 ;;
9c60689e 17454
47aaa820
DWT
17455cygwin* | mingw* | pw32* | cegcc*)
17456 version_type=windows
9d54db95 17457 shrext_cmds=.dll
47aaa820
DWT
17458 need_version=no
17459 need_lib_prefix=no
9c60689e 17460
ee134472
JF
17461 case $GCC,$cc_basename in
17462 yes,*)
17463 # gcc
47aaa820
DWT
17464 library_names_spec='$libname.dll.a'
17465 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9d54db95
JF
17466 postinstall_cmds='base_file=`basename \$file`~
17467 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
47aaa820
DWT
17468 dldir=$destdir/`dirname \$dlpath`~
17469 test -d \$dldir || mkdir -p \$dldir~
17470 $install_prog $dir/$dlname \$dldir/$dlname~
17471 chmod a+x \$dldir/$dlname~
17472 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17473 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17474 fi'
17475 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17476 dlpath=$dir/\$dldll~
17477 $RM \$dlpath'
17478 shlibpath_overrides_runpath=yes
9c60689e 17479
47aaa820
DWT
17480 case $host_os in
17481 cygwin*)
17482 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9d54db95 17483 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
ee134472 17484
47aaa820
DWT
17485 ;;
17486 mingw* | cegcc*)
17487 # MinGW DLLs use traditional 'lib' prefix
9d54db95 17488 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
47aaa820
DWT
17489 ;;
17490 pw32*)
17491 # pw32 DLLs use 'pw' prefix rather than 'lib'
9d54db95 17492 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
47aaa820
DWT
17493 ;;
17494 esac
ee134472
JF
17495 dynamic_linker='Win32 ld.exe'
17496 ;;
17497
17498 *,cl*)
17499 # Native MSVC
17500 libname_spec='$name'
9d54db95
JF
17501 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17502 library_names_spec='$libname.dll.lib'
ee134472
JF
17503
17504 case $build_os in
17505 mingw*)
17506 sys_lib_search_path_spec=
17507 lt_save_ifs=$IFS
17508 IFS=';'
17509 for lt_path in $LIB
17510 do
17511 IFS=$lt_save_ifs
17512 # Let DOS variable expansion print the short 8.3 style file name.
17513 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17514 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17515 done
17516 IFS=$lt_save_ifs
17517 # Convert to MSYS style.
17518 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17519 ;;
17520 cygwin*)
17521 # Convert to unix form, then to dos form, then back to unix form
17522 # but this time dos style (no spaces!) so that the unix form looks
17523 # like /cygdrive/c/PROGRA~1:/cygdr...
17524 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17525 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17526 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17527 ;;
17528 *)
9d54db95 17529 sys_lib_search_path_spec=$LIB
ee134472
JF
17530 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17531 # It is most probably a Windows format PATH.
17532 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17533 else
17534 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17535 fi
17536 # FIXME: find the short name or the path components, as spaces are
17537 # common. (e.g. "Program Files" -> "PROGRA~1")
17538 ;;
17539 esac
17540
17541 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9d54db95
JF
17542 postinstall_cmds='base_file=`basename \$file`~
17543 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
ee134472
JF
17544 dldir=$destdir/`dirname \$dlpath`~
17545 test -d \$dldir || mkdir -p \$dldir~
17546 $install_prog $dir/$dlname \$dldir/$dlname'
17547 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17548 dlpath=$dir/\$dldll~
17549 $RM \$dlpath'
17550 shlibpath_overrides_runpath=yes
17551 dynamic_linker='Win32 link.exe'
47aaa820 17552 ;;
9c60689e 17553
47aaa820 17554 *)
ee134472 17555 # Assume MSVC wrapper
9d54db95 17556 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
ee134472 17557 dynamic_linker='Win32 ld.exe'
47aaa820
DWT
17558 ;;
17559 esac
47aaa820
DWT
17560 # FIXME: first we should search . and the directory the executable is in
17561 shlibpath_var=PATH
17562 ;;
9c60689e 17563
47aaa820
DWT
17564darwin* | rhapsody*)
17565 dynamic_linker="$host_os dyld"
17566 version_type=darwin
17567 need_lib_prefix=no
17568 need_version=no
9d54db95
JF
17569 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
17570 soname_spec='$libname$release$major$shared_ext'
47aaa820
DWT
17571 shlibpath_overrides_runpath=yes
17572 shlibpath_var=DYLD_LIBRARY_PATH
17573 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9c60689e 17574
47aaa820
DWT
17575 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17576 ;;
9c60689e 17577
47aaa820 17578dgux*)
53ba6704 17579 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
17580 need_lib_prefix=no
17581 need_version=no
9d54db95
JF
17582 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17583 soname_spec='$libname$release$shared_ext$major'
47aaa820
DWT
17584 shlibpath_var=LD_LIBRARY_PATH
17585 ;;
9c60689e 17586
47aaa820
DWT
17587freebsd* | dragonfly*)
17588 # DragonFly does not have aout. When/if they implement a new
17589 # versioning mechanism, adjust this.
17590 if test -x /usr/bin/objformat; then
17591 objformat=`/usr/bin/objformat`
17592 else
17593 case $host_os in
53ba6704 17594 freebsd[23].*) objformat=aout ;;
47aaa820
DWT
17595 *) objformat=elf ;;
17596 esac
17597 fi
17598 version_type=freebsd-$objformat
17599 case $version_type in
17600 freebsd-elf*)
9d54db95
JF
17601 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17602 soname_spec='$libname$release$shared_ext$major'
47aaa820
DWT
17603 need_version=no
17604 need_lib_prefix=no
17605 ;;
17606 freebsd-*)
9d54db95 17607 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
47aaa820
DWT
17608 need_version=yes
17609 ;;
17610 esac
17611 shlibpath_var=LD_LIBRARY_PATH
17612 case $host_os in
53ba6704 17613 freebsd2.*)
47aaa820
DWT
17614 shlibpath_overrides_runpath=yes
17615 ;;
17616 freebsd3.[01]* | freebsdelf3.[01]*)
17617 shlibpath_overrides_runpath=yes
17618 hardcode_into_libs=yes
17619 ;;
17620 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17621 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17622 shlibpath_overrides_runpath=no
17623 hardcode_into_libs=yes
17624 ;;
17625 *) # from 4.6 on, and DragonFly
17626 shlibpath_overrides_runpath=yes
17627 hardcode_into_libs=yes
17628 ;;
17629 esac
17630 ;;
9c60689e 17631
ee134472 17632haiku*)
53ba6704 17633 version_type=linux # correct to gnu/linux during the next big refactor
ee134472
JF
17634 need_lib_prefix=no
17635 need_version=no
17636 dynamic_linker="$host_os runtime_loader"
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'
ee134472 17639 shlibpath_var=LIBRARY_PATH
9d54db95 17640 shlibpath_overrides_runpath=no
ee134472 17641 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
47aaa820
DWT
17642 hardcode_into_libs=yes
17643 ;;
9c60689e 17644
47aaa820
DWT
17645hpux9* | hpux10* | hpux11*)
17646 # Give a soname corresponding to the major version so that dld.sl refuses to
17647 # link against other versions.
17648 version_type=sunos
17649 need_lib_prefix=no
17650 need_version=no
17651 case $host_cpu in
17652 ia64*)
17653 shrext_cmds='.so'
17654 hardcode_into_libs=yes
17655 dynamic_linker="$host_os dld.so"
17656 shlibpath_var=LD_LIBRARY_PATH
17657 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9d54db95
JF
17658 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17659 soname_spec='$libname$release$shared_ext$major'
17660 if test 32 = "$HPUX_IA64_MODE"; then
47aaa820 17661 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9d54db95 17662 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
47aaa820
DWT
17663 else
17664 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9d54db95 17665 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
47aaa820 17666 fi
47aaa820
DWT
17667 ;;
17668 hppa*64*)
17669 shrext_cmds='.sl'
17670 hardcode_into_libs=yes
17671 dynamic_linker="$host_os dld.sl"
17672 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17673 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9d54db95
JF
17674 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17675 soname_spec='$libname$release$shared_ext$major'
47aaa820
DWT
17676 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17677 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17678 ;;
17679 *)
17680 shrext_cmds='.sl'
17681 dynamic_linker="$host_os dld.sl"
17682 shlibpath_var=SHLIB_PATH
17683 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9d54db95
JF
17684 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17685 soname_spec='$libname$release$shared_ext$major'
47aaa820
DWT
17686 ;;
17687 esac
ee134472 17688 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
47aaa820 17689 postinstall_cmds='chmod 555 $lib'
ee134472
JF
17690 # or fails outright, so override atomically:
17691 install_override_mode=555
47aaa820 17692 ;;
9c60689e 17693
47aaa820 17694interix[3-9]*)
53ba6704 17695 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
17696 need_lib_prefix=no
17697 need_version=no
9d54db95
JF
17698 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17699 soname_spec='$libname$release$shared_ext$major'
47aaa820
DWT
17700 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17701 shlibpath_var=LD_LIBRARY_PATH
17702 shlibpath_overrides_runpath=no
17703 hardcode_into_libs=yes
17704 ;;
9c60689e 17705
47aaa820
DWT
17706irix5* | irix6* | nonstopux*)
17707 case $host_os in
17708 nonstopux*) version_type=nonstopux ;;
17709 *)
9d54db95 17710 if test yes = "$lt_cv_prog_gnu_ld"; then
53ba6704 17711 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
17712 else
17713 version_type=irix
17714 fi ;;
17715 esac
17716 need_lib_prefix=no
17717 need_version=no
9d54db95
JF
17718 soname_spec='$libname$release$shared_ext$major'
17719 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
47aaa820
DWT
17720 case $host_os in
17721 irix5* | nonstopux*)
17722 libsuff= shlibsuff=
17723 ;;
17724 *)
17725 case $LD in # libtool.m4 will add one of these switches to LD
17726 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17727 libsuff= shlibsuff= libmagic=32-bit;;
17728 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17729 libsuff=32 shlibsuff=N32 libmagic=N32;;
17730 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17731 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17732 *) libsuff= shlibsuff= libmagic=never-match;;
17733 esac
17734 ;;
17735 esac
17736 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17737 shlibpath_overrides_runpath=no
9d54db95
JF
17738 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
17739 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
47aaa820
DWT
17740 hardcode_into_libs=yes
17741 ;;
9c60689e 17742
47aaa820
DWT
17743# No shared lib support for Linux oldld, aout, or coff.
17744linux*oldld* | linux*aout* | linux*coff*)
17745 dynamic_linker=no
17746 ;;
9c60689e 17747
9d54db95
JF
17748linux*android*)
17749 version_type=none # Android doesn't support versioned libraries.
17750 need_lib_prefix=no
17751 need_version=no
17752 library_names_spec='$libname$release$shared_ext'
17753 soname_spec='$libname$release$shared_ext'
17754 finish_cmds=
17755 shlibpath_var=LD_LIBRARY_PATH
17756 shlibpath_overrides_runpath=yes
17757
17758 # This implies no fast_install, which is unacceptable.
17759 # Some rework will be needed to allow for fast_install
17760 # before this can be enabled.
17761 hardcode_into_libs=yes
17762
17763 dynamic_linker='Android linker'
17764 # Don't embed -rpath directories since the linker doesn't support them.
17765 hardcode_libdir_flag_spec_CXX='-L$libdir'
17766 ;;
17767
53ba6704 17768# This must be glibc/ELF.
9d54db95 17769linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
53ba6704 17770 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
17771 need_lib_prefix=no
17772 need_version=no
9d54db95
JF
17773 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17774 soname_spec='$libname$release$shared_ext$major'
47aaa820
DWT
17775 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17776 shlibpath_var=LD_LIBRARY_PATH
17777 shlibpath_overrides_runpath=no
ee134472 17778
47aaa820 17779 # Some binutils ld are patched to set DT_RUNPATH
ee134472
JF
17780 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
17781 $as_echo_n "(cached) " >&6
17782else
17783 lt_cv_shlibpath_overrides_runpath=no
17784 save_LDFLAGS=$LDFLAGS
17785 save_libdir=$libdir
17786 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
17787 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
17788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47aaa820 17789/* end confdefs.h. */
9c60689e 17790
47aaa820
DWT
17791int
17792main ()
17793{
9c60689e 17794
47aaa820
DWT
17795 ;
17796 return 0;
17797}
17798_ACEOF
17799if ac_fn_cxx_try_link "$LINENO"; then :
17800 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
ee134472 17801 lt_cv_shlibpath_overrides_runpath=yes
9c60689e 17802fi
47aaa820
DWT
17803fi
17804rm -f core conftest.err conftest.$ac_objext \
17805 conftest$ac_exeext conftest.$ac_ext
ee134472
JF
17806 LDFLAGS=$save_LDFLAGS
17807 libdir=$save_libdir
17808
17809fi
17810
17811 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
9c60689e 17812
47aaa820
DWT
17813 # This implies no fast_install, which is unacceptable.
17814 # Some rework will be needed to allow for fast_install
17815 # before this can be enabled.
17816 hardcode_into_libs=yes
9c60689e 17817
9d54db95
JF
17818 # Ideally, we could use ldconfig to report *all* directores which are
17819 # searched for libraries, however this is still not possible. Aside from not
17820 # being certain /sbin/ldconfig is available, command
17821 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
17822 # even though it is searched at run-time. Try to do the best guess by
17823 # appending ld.so.conf contents (and includes) to the search path.
47aaa820 17824 if test -f /etc/ld.so.conf; then
ee134472 17825 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
17826 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17827 fi
9c60689e 17828
47aaa820
DWT
17829 # We used to test for /lib/ld.so.1 and disable shared libraries on
17830 # powerpc, because MkLinux only supported shared libraries with the
17831 # GNU dynamic linker. Since this was broken with cross compilers,
17832 # most powerpc-linux boxes support dynamic linking these days and
17833 # people can always --disable-shared, the test was removed, and we
17834 # assume the GNU/Linux dynamic linker is in use.
17835 dynamic_linker='GNU/Linux ld.so'
9c60689e 17836 ;;
47aaa820 17837
47aaa820
DWT
17838netbsd*)
17839 version_type=sunos
17840 need_lib_prefix=no
17841 need_version=no
17842 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9d54db95 17843 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
47aaa820
DWT
17844 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17845 dynamic_linker='NetBSD (a.out) ld.so'
17846 else
9d54db95
JF
17847 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17848 soname_spec='$libname$release$shared_ext$major'
47aaa820
DWT
17849 dynamic_linker='NetBSD ld.elf_so'
17850 fi
17851 shlibpath_var=LD_LIBRARY_PATH
17852 shlibpath_overrides_runpath=yes
17853 hardcode_into_libs=yes
9c60689e 17854 ;;
9c60689e 17855
47aaa820 17856newsos6)
53ba6704 17857 version_type=linux # correct to gnu/linux during the next big refactor
9d54db95 17858 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
47aaa820
DWT
17859 shlibpath_var=LD_LIBRARY_PATH
17860 shlibpath_overrides_runpath=yes
17861 ;;
9c60689e 17862
47aaa820
DWT
17863*nto* | *qnx*)
17864 version_type=qnx
17865 need_lib_prefix=no
17866 need_version=no
9d54db95
JF
17867 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17868 soname_spec='$libname$release$shared_ext$major'
47aaa820
DWT
17869 shlibpath_var=LD_LIBRARY_PATH
17870 shlibpath_overrides_runpath=no
17871 hardcode_into_libs=yes
17872 dynamic_linker='ldqnx.so'
17873 ;;
9c60689e 17874
9d54db95 17875openbsd* | bitrig*)
47aaa820 17876 version_type=sunos
9d54db95 17877 sys_lib_dlsearch_path_spec=/usr/lib
47aaa820 17878 need_lib_prefix=no
9d54db95
JF
17879 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
17880 need_version=no
47aaa820 17881 else
9d54db95 17882 need_version=yes
47aaa820 17883 fi
9d54db95
JF
17884 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17885 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17886 shlibpath_var=LD_LIBRARY_PATH
17887 shlibpath_overrides_runpath=yes
47aaa820 17888 ;;
9c60689e 17889
47aaa820
DWT
17890os2*)
17891 libname_spec='$name'
9d54db95
JF
17892 version_type=windows
17893 shrext_cmds=.dll
17894 need_version=no
47aaa820 17895 need_lib_prefix=no
9d54db95
JF
17896 # OS/2 can only load a DLL with a base name of 8 characters or less.
17897 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
17898 v=$($ECHO $release$versuffix | tr -d .-);
17899 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
17900 $ECHO $n$v`$shared_ext'
17901 library_names_spec='${libname}_dll.$libext'
47aaa820 17902 dynamic_linker='OS/2 ld.exe'
9d54db95
JF
17903 shlibpath_var=BEGINLIBPATH
17904 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17905 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17906 postinstall_cmds='base_file=`basename \$file`~
17907 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
17908 dldir=$destdir/`dirname \$dlpath`~
17909 test -d \$dldir || mkdir -p \$dldir~
17910 $install_prog $dir/$dlname \$dldir/$dlname~
17911 chmod a+x \$dldir/$dlname~
17912 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17913 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17914 fi'
17915 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
17916 dlpath=$dir/\$dldll~
17917 $RM \$dlpath'
47aaa820 17918 ;;
9c60689e 17919
47aaa820
DWT
17920osf3* | osf4* | osf5*)
17921 version_type=osf
17922 need_lib_prefix=no
17923 need_version=no
9d54db95
JF
17924 soname_spec='$libname$release$shared_ext$major'
17925 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
47aaa820
DWT
17926 shlibpath_var=LD_LIBRARY_PATH
17927 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9d54db95 17928 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
47aaa820 17929 ;;
9c60689e 17930
47aaa820
DWT
17931rdos*)
17932 dynamic_linker=no
17933 ;;
9c60689e 17934
47aaa820 17935solaris*)
53ba6704 17936 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
17937 need_lib_prefix=no
17938 need_version=no
9d54db95
JF
17939 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17940 soname_spec='$libname$release$shared_ext$major'
47aaa820
DWT
17941 shlibpath_var=LD_LIBRARY_PATH
17942 shlibpath_overrides_runpath=yes
17943 hardcode_into_libs=yes
17944 # ldd complains unless libraries are executable
17945 postinstall_cmds='chmod +x $lib'
17946 ;;
9c60689e 17947
47aaa820
DWT
17948sunos4*)
17949 version_type=sunos
9d54db95 17950 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
47aaa820
DWT
17951 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17952 shlibpath_var=LD_LIBRARY_PATH
17953 shlibpath_overrides_runpath=yes
9d54db95 17954 if test yes = "$with_gnu_ld"; then
47aaa820
DWT
17955 need_lib_prefix=no
17956 fi
17957 need_version=yes
17958 ;;
9c60689e 17959
47aaa820 17960sysv4 | sysv4.3*)
53ba6704 17961 version_type=linux # correct to gnu/linux during the next big refactor
9d54db95
JF
17962 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17963 soname_spec='$libname$release$shared_ext$major'
47aaa820
DWT
17964 shlibpath_var=LD_LIBRARY_PATH
17965 case $host_vendor in
17966 sni)
17967 shlibpath_overrides_runpath=no
17968 need_lib_prefix=no
17969 runpath_var=LD_RUN_PATH
9c60689e 17970 ;;
47aaa820
DWT
17971 siemens)
17972 need_lib_prefix=no
9c60689e 17973 ;;
47aaa820
DWT
17974 motorola)
17975 need_lib_prefix=no
17976 need_version=no
17977 shlibpath_overrides_runpath=no
17978 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17979 ;;
17980 esac
9c60689e 17981 ;;
9c60689e 17982
47aaa820 17983sysv4*MP*)
9d54db95 17984 if test -d /usr/nec; then
53ba6704 17985 version_type=linux # correct to gnu/linux during the next big refactor
9d54db95
JF
17986 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
17987 soname_spec='$libname$shared_ext.$major'
47aaa820
DWT
17988 shlibpath_var=LD_LIBRARY_PATH
17989 fi
17990 ;;
9c60689e 17991
47aaa820 17992sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9d54db95 17993 version_type=sco
47aaa820
DWT
17994 need_lib_prefix=no
17995 need_version=no
9d54db95
JF
17996 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
17997 soname_spec='$libname$release$shared_ext$major'
47aaa820
DWT
17998 shlibpath_var=LD_LIBRARY_PATH
17999 shlibpath_overrides_runpath=yes
18000 hardcode_into_libs=yes
9d54db95 18001 if test yes = "$with_gnu_ld"; then
47aaa820
DWT
18002 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18003 else
18004 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18005 case $host_os in
18006 sco3.2v5*)
18007 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18008 ;;
18009 esac
18010 fi
18011 sys_lib_dlsearch_path_spec='/usr/lib'
18012 ;;
9c60689e 18013
47aaa820
DWT
18014tpf*)
18015 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
53ba6704 18016 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
18017 need_lib_prefix=no
18018 need_version=no
9d54db95 18019 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
47aaa820
DWT
18020 shlibpath_var=LD_LIBRARY_PATH
18021 shlibpath_overrides_runpath=no
18022 hardcode_into_libs=yes
18023 ;;
9c60689e 18024
47aaa820 18025uts4*)
53ba6704 18026 version_type=linux # correct to gnu/linux during the next big refactor
9d54db95
JF
18027 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18028 soname_spec='$libname$release$shared_ext$major'
47aaa820
DWT
18029 shlibpath_var=LD_LIBRARY_PATH
18030 ;;
9c60689e 18031
47aaa820
DWT
18032*)
18033 dynamic_linker=no
e9c9a47c
DWT
18034 ;;
18035esac
18036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18037$as_echo "$dynamic_linker" >&6; }
9d54db95 18038test no = "$dynamic_linker" && can_build_shared=no
e9c9a47c
DWT
18039
18040variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9d54db95 18041if test yes = "$GCC"; then
e9c9a47c 18042 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
47aaa820 18043fi
9c60689e 18044
9d54db95
JF
18045if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
18046 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
47aaa820 18047fi
9d54db95
JF
18048
18049if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
18050 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
47aaa820 18051fi
9c60689e 18052
9d54db95
JF
18053# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
18054configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
18055
18056# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
18057func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
18058
18059# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
18060configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
18061
18062
18063
9c60689e 18064
9c60689e 18065
9c60689e 18066
47aaa820 18067
47aaa820 18068
47aaa820 18069
9c60689e 18070
9c60689e 18071
47aaa820 18072
47aaa820 18073
47aaa820 18074
47aaa820 18075
47aaa820 18076
47aaa820 18077
47aaa820 18078
47aaa820 18079
9c60689e 18080
9c60689e 18081
9c60689e 18082
9c60689e 18083
9c60689e 18084
e9c9a47c
DWT
18085
18086
18087
18088
18089
18090
18091
18092
18093
18094
18095
ee134472
JF
18096
18097
e9c9a47c
DWT
18098
18099
18100
18101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18102$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18103hardcode_action_CXX=
18104if test -n "$hardcode_libdir_flag_spec_CXX" ||
18105 test -n "$runpath_var_CXX" ||
9d54db95 18106 test yes = "$hardcode_automatic_CXX"; then
e9c9a47c
DWT
18107
18108 # We can hardcode non-existent directories.
9d54db95 18109 if test no != "$hardcode_direct_CXX" &&
e9c9a47c
DWT
18110 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18111 # have to relink, otherwise we might link with an installed library
18112 # when we should be linking with a yet-to-be-installed one
9d54db95
JF
18113 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
18114 test no != "$hardcode_minus_L_CXX"; then
e9c9a47c
DWT
18115 # Linking always hardcodes the temporary library directory.
18116 hardcode_action_CXX=relink
18117 else
18118 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18119 hardcode_action_CXX=immediate
18120 fi
18121else
18122 # We cannot hardcode anything, or else we can only hardcode existing
18123 # directories.
18124 hardcode_action_CXX=unsupported
18125fi
18126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
18127$as_echo "$hardcode_action_CXX" >&6; }
18128
9d54db95
JF
18129if test relink = "$hardcode_action_CXX" ||
18130 test yes = "$inherit_rpath_CXX"; then
e9c9a47c
DWT
18131 # Fast installation is not supported
18132 enable_fast_install=no
9d54db95
JF
18133elif test yes = "$shlibpath_overrides_runpath" ||
18134 test no = "$enable_shared"; then
e9c9a47c
DWT
18135 # Fast installation is not necessary
18136 enable_fast_install=needless
47aaa820 18137fi
9c60689e 18138
47aaa820 18139
47aaa820 18140
e9c9a47c
DWT
18141
18142
18143
18144
a243b558
JF
18145 fi # test -n "$compiler"
18146
18147 CC=$lt_save_CC
18148 CFLAGS=$lt_save_CFLAGS
18149 LDCXX=$LD
18150 LD=$lt_save_LD
18151 GCC=$lt_save_GCC
18152 with_gnu_ld=$lt_save_with_gnu_ld
18153 lt_cv_path_LDCXX=$lt_cv_path_LD
18154 lt_cv_path_LD=$lt_save_path_LD
18155 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18156 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
9d54db95 18157fi # test yes != "$_lt_caught_CXX_error"
a243b558
JF
18158
18159ac_ext=c
18160ac_cpp='$CPP $CPPFLAGS'
18161ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18162ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18163ac_compiler_gnu=$ac_cv_c_compiler_gnu
18164
18165
18166
18167
18168
18169
18170
18171
18172
18173
18174
18175
18176
18177
18178
18179 ac_config_commands="$ac_config_commands libtool"
18180
18181
18182
18183
18184# Only expand once:
18185
18186
18187
18188ac_ext=cpp
18189ac_cpp='$CXXCPP $CPPFLAGS'
18190ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18191ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18192ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18193
18194
1771224f
JF
18195 ax_cxx_compile_cxx11_required=true
18196 ac_ext=cpp
18197ac_cpp='$CXXCPP $CPPFLAGS'
18198ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18199ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18200ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18201 ac_success=no
18202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
18203$as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
18204if ${ax_cv_cxx_compile_cxx11+:} false; then :
18205 $as_echo_n "(cached) " >&6
18206else
18207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18208/* end confdefs.h. */
18209
18210 template <typename T>
18211 struct check
18212 {
18213 static_assert(sizeof(int) <= sizeof(T), "not big enough");
18214 };
18215
18216 struct Base {
18217 virtual void f() {}
18218 };
18219 struct Child : public Base {
18220 virtual void f() override {}
18221 };
18222
18223 typedef check<check<bool>> right_angle_brackets;
18224
18225 int a;
18226 decltype(a) b;
18227
18228 typedef check<int> check_type;
18229 check_type c;
18230 check_type&& cr = static_cast<check_type&&>(c);
18231
18232 auto d = a;
18233 auto l = [](){};
18234
18235_ACEOF
18236if ac_fn_cxx_try_compile "$LINENO"; then :
18237 ax_cv_cxx_compile_cxx11=yes
18238else
18239 ax_cv_cxx_compile_cxx11=no
18240fi
18241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18242fi
18243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
18244$as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
18245 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
18246 ac_success=yes
18247 fi
18248
18249 if test x$ac_success = xno; then
18250 for switch in -std=gnu++11 -std=gnu++0x; do
18251 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
18252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
18253$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
18254if eval \${$cachevar+:} false; then :
18255 $as_echo_n "(cached) " >&6
18256else
18257 ac_save_CXXFLAGS="$CXXFLAGS"
18258 CXXFLAGS="$CXXFLAGS $switch"
18259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18260/* end confdefs.h. */
18261
18262 template <typename T>
18263 struct check
18264 {
18265 static_assert(sizeof(int) <= sizeof(T), "not big enough");
18266 };
18267
18268 struct Base {
18269 virtual void f() {}
18270 };
18271 struct Child : public Base {
18272 virtual void f() override {}
18273 };
18274
18275 typedef check<check<bool>> right_angle_brackets;
18276
18277 int a;
18278 decltype(a) b;
18279
18280 typedef check<int> check_type;
18281 check_type c;
18282 check_type&& cr = static_cast<check_type&&>(c);
18283
18284 auto d = a;
18285 auto l = [](){};
18286
18287_ACEOF
18288if ac_fn_cxx_try_compile "$LINENO"; then :
18289 eval $cachevar=yes
18290else
18291 eval $cachevar=no
18292fi
18293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18294 CXXFLAGS="$ac_save_CXXFLAGS"
18295fi
18296eval ac_res=\$$cachevar
18297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18298$as_echo "$ac_res" >&6; }
18299 if eval test x\$$cachevar = xyes; then
18300 CXXFLAGS="$CXXFLAGS $switch"
18301 ac_success=yes
18302 break
18303 fi
18304 done
18305 fi
18306
18307
18308 ac_ext=cpp
18309ac_cpp='$CXXCPP $CPPFLAGS'
18310ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18311ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18312ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18313
18314 if test x$ax_cxx_compile_cxx11_required = xtrue; then
18315 if test x$ac_success = xno; then
18316 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
18317 fi
18318 else
18319 if test x$ac_success = xno; then
18320 HAVE_CXX11=0
18321 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
18322$as_echo "$as_me: No compiler with C++11 support was found" >&6;}
18323 else
18324 HAVE_CXX11=1
18325
18326$as_echo "#define HAVE_CXX11 1" >>confdefs.h
18327
18328 fi
18329
18330
18331 fi
18332
18333OBJCXXFLAGS="${OBJCXXFLAGS} ${CXXFLAGS##*' '}"
18334
a243b558
JF
18335
18336
18337
18338
18339
18340
83c6fec8 18341
a243b558
JF
18342if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
18343 if test -n "$ac_tool_prefix"; then
18344 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
18345set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
18346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18347$as_echo_n "checking for $ac_word... " >&6; }
18348if ${ac_cv_path_PKG_CONFIG+:} false; then :
18349 $as_echo_n "(cached) " >&6
18350else
18351 case $PKG_CONFIG in
18352 [\\/]* | ?:[\\/]*)
18353 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18354 ;;
18355 *)
18356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18357for as_dir in $PATH
18358do
18359 IFS=$as_save_IFS
18360 test -z "$as_dir" && as_dir=.
18361 for ac_exec_ext in '' $ac_executable_extensions; do
18362 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18363 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18365 break 2
18366 fi
18367done
18368 done
18369IFS=$as_save_IFS
18370
18371 ;;
18372esac
18373fi
18374PKG_CONFIG=$ac_cv_path_PKG_CONFIG
18375if test -n "$PKG_CONFIG"; then
18376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
18377$as_echo "$PKG_CONFIG" >&6; }
18378else
18379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18380$as_echo "no" >&6; }
18381fi
18382
18383
18384fi
18385if test -z "$ac_cv_path_PKG_CONFIG"; then
18386 ac_pt_PKG_CONFIG=$PKG_CONFIG
18387 # Extract the first word of "pkg-config", so it can be a program name with args.
18388set dummy pkg-config; ac_word=$2
18389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18390$as_echo_n "checking for $ac_word... " >&6; }
18391if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
18392 $as_echo_n "(cached) " >&6
18393else
18394 case $ac_pt_PKG_CONFIG in
18395 [\\/]* | ?:[\\/]*)
18396 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
18397 ;;
18398 *)
18399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18400for as_dir in $PATH
18401do
18402 IFS=$as_save_IFS
18403 test -z "$as_dir" && as_dir=.
18404 for ac_exec_ext in '' $ac_executable_extensions; do
18405 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18406 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18408 break 2
18409 fi
18410done
18411 done
18412IFS=$as_save_IFS
18413
18414 ;;
18415esac
18416fi
18417ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
18418if test -n "$ac_pt_PKG_CONFIG"; then
18419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
18420$as_echo "$ac_pt_PKG_CONFIG" >&6; }
18421else
18422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18423$as_echo "no" >&6; }
18424fi
18425
18426 if test "x$ac_pt_PKG_CONFIG" = x; then
18427 PKG_CONFIG=""
18428 else
18429 case $cross_compiling:$ac_tool_warned in
18430yes:)
18431{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18432$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18433ac_tool_warned=yes ;;
18434esac
18435 PKG_CONFIG=$ac_pt_PKG_CONFIG
18436 fi
18437else
18438 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
18439fi
18440
18441fi
18442if test -n "$PKG_CONFIG"; then
18443 _pkg_min_version=0.22
18444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
18445$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
18446 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
18447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18448$as_echo "yes" >&6; }
18449 else
18450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18451$as_echo "no" >&6; }
18452 PKG_CONFIG=""
18453 fi
18454fi
18455
a243b558
JF
18456# Extract the first word of "git", so it can be a program name with args.
18457set dummy git; ac_word=$2
18458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18459$as_echo_n "checking for $ac_word... " >&6; }
18460if ${ac_cv_path_GIT+:} false; then :
18461 $as_echo_n "(cached) " >&6
18462else
18463 case $GIT in
18464 [\\/]* | ?:[\\/]*)
18465 ac_cv_path_GIT="$GIT" # Let the user override the test with a path.
18466 ;;
18467 *)
18468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18469for as_dir in $PATH
18470do
18471 IFS=$as_save_IFS
18472 test -z "$as_dir" && as_dir=.
18473 for ac_exec_ext in '' $ac_executable_extensions; do
18474 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18475 ac_cv_path_GIT="$as_dir/$ac_word$ac_exec_ext"
18476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18477 break 2
18478 fi
18479done
18480 done
18481IFS=$as_save_IFS
e9c9a47c 18482
a243b558
JF
18483 ;;
18484esac
18485fi
18486GIT=$ac_cv_path_GIT
18487if test -n "$GIT"; then
18488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
18489$as_echo "$GIT" >&6; }
18490else
18491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18492$as_echo "no" >&6; }
18493fi
e9c9a47c
DWT
18494
18495
a243b558
JF
18496# Extract the first word of "time", so it can be a program name with args.
18497set dummy time; ac_word=$2
632b71ea
DWT
18498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18499$as_echo_n "checking for $ac_word... " >&6; }
a243b558 18500if ${ac_cv_path_TIME+:} false; then :
632b71ea
DWT
18501 $as_echo_n "(cached) " >&6
18502else
a243b558
JF
18503 case $TIME in
18504 [\\/]* | ?:[\\/]*)
18505 ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
18506 ;;
18507 *)
18508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
632b71ea
DWT
18509for as_dir in $PATH
18510do
18511 IFS=$as_save_IFS
18512 test -z "$as_dir" && as_dir=.
18513 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 18514 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 18515 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
632b71ea
DWT
18516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18517 break 2
18518 fi
18519done
18520 done
18521IFS=$as_save_IFS
18522
a243b558
JF
18523 ;;
18524esac
632b71ea 18525fi
a243b558
JF
18526TIME=$ac_cv_path_TIME
18527if test -n "$TIME"; then
18528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
18529$as_echo "$TIME" >&6; }
632b71ea
DWT
18530else
18531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18532$as_echo "no" >&6; }
18533fi
18534
18535
a243b558
JF
18536
18537
18538
18539
18540
6ce9ac92
JF
18541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bison >= 3.0" >&5
18542$as_echo_n "checking for bison >= 3.0... " >&6; }
a243b558
JF
18543 if test -z "$BISON"; then
18544 ac_path_BISON_found=false
18545 # Loop through the user's path and test for each of PROGNAME-LIST
18546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18547for as_dir in $PATH
18548do
18549 IFS=$as_save_IFS
18550 test -z "$as_dir" && as_dir=.
18551 for ac_prog in bison; do
18552 for ac_exec_ext in '' $ac_executable_extensions; do
18553 ac_path_BISON="$as_dir/$ac_prog$ac_exec_ext"
18554 as_fn_executable_p "$ac_path_BISON" || continue
18555version=`$ac_path_BISON -V | $SED -e '1 s/^bison (GNU Bison) \(.*\)$/\1/p;d'`
18556 if ${version:+false} :; then :
18557
18558else
18559 as_awk_strverscmp='
18560 # Use only awk features that work with 7th edition Unix awk (1978).
18561 # My, what an old awk you have, Mr. Solaris!
18562 END {
18563 while (length(v1) && length(v2)) {
18564 # Set d1 to be the next thing to compare from v1, and likewise for d2.
18565 # Normally this is a single character, but if v1 and v2 contain digits,
18566 # compare them as integers and fractions as strverscmp does.
18567 if (v1 ~ /^0-9/ && v2 ~ /^0-9/) {
18568 # Split v1 and v2 into their leading digit string components d1 and d2,
18569 # and advance v1 and v2 past the leading digit strings.
18570 for (len1 = 1; substr(v1, len1 + 1) ~ /^0-9/; len1++) continue
18571 for (len2 = 1; substr(v2, len2 + 1) ~ /^0-9/; len2++) continue
18572 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
18573 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
18574 if (d1 ~ /^0/) {
18575 if (d2 ~ /^0/) {
18576 # Compare two fractions.
18577 while (d1 ~ /^0/ && d2 ~ /^0/) {
18578 d1 = substr(d1, 2); len1--
18579 d2 = substr(d2, 2); len2--
18580 }
18581 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
18582 # The two components differ in length, and the common prefix
18583 # contains only leading zeros. Consider the longer to be less.
18584 d1 = -len1
18585 d2 = -len2
18586 } else {
18587 # Otherwise, compare as strings.
18588 d1 = "x" d1
18589 d2 = "x" d2
18590 }
18591 } else {
18592 # A fraction is less than an integer.
18593 exit 1
18594 }
18595 } else {
18596 if (d2 ~ /^0/) {
18597 # An integer is greater than a fraction.
18598 exit 2
18599 } else {
18600 # Compare two integers.
18601 d1 += 0
18602 d2 += 0
18603 }
18604 }
18605 } else {
18606 # The normal case, without worrying about digits.
18607 d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
18608 d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
18609 }
18610 if (d1 < d2) exit 1
18611 if (d1 > d2) exit 2
18612 }
18613 # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
18614 # which mishandles some comparisons of empty strings to integers.
18615 if (length(v2)) exit 1
18616 if (length(v1)) exit 2
18617 }
18618'
18619as_arg_v1=$version
6ce9ac92 18620as_arg_v2=3.0
a243b558
JF
18621awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
18622case $? in #(
18623 1) :
18624 ;; #(
18625 0) :
18626 ac_cv_path_BISON=$ac_path_BISON ;; #(
18627 2) :
18628 ac_cv_path_BISON=$ac_path_BISON ;; #(
18629 *) :
18630 ;;
18631esac
18632fi
18633
18634 $ac_path_BISON_found && break 3
18635 done
18636 done
e9c9a47c 18637 done
a243b558
JF
18638IFS=$as_save_IFS
18639 if test -z "$ac_cv_path_BISON"; then
18640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18641$as_echo "no" >&6; }
18642 fi
18643else
18644 ac_cv_path_BISON=$BISON
632b71ea 18645fi
a243b558
JF
18646
18647
18648 if true; then :
18649
18650 BISON=$ac_cv_path_BISON
18651
18652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
18653$as_echo "$BISON" >&6; }
18654
47aaa820 18655else
a243b558
JF
18656 if true; then :
18657
6ce9ac92 18658 as_fn_error $? "You need bison 3.0 or greater" "$LINENO" 5
a243b558 18659
47aaa820 18660else
a243b558
JF
18661
18662 BISON=:
18663
18664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18665$as_echo "no" >&6; }
18666
18667fi
18668fi
18669
18670
18671
18672
18673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flex >= 2.5.33" >&5
18674$as_echo_n "checking for flex >= 2.5.33... " >&6; }
18675 if test -z "$FLEX"; then
18676 ac_path_FLEX_found=false
18677 # Loop through the user's path and test for each of PROGNAME-LIST
18678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47aaa820
DWT
18679for as_dir in $PATH
18680do
18681 IFS=$as_save_IFS
18682 test -z "$as_dir" && as_dir=.
a243b558 18683 for ac_prog in flex; do
47aaa820 18684 for ac_exec_ext in '' $ac_executable_extensions; do
a243b558
JF
18685 ac_path_FLEX="$as_dir/$ac_prog$ac_exec_ext"
18686 as_fn_executable_p "$ac_path_FLEX" || continue
18687version=`$ac_path_FLEX --version | $SED -e '1 s/^[^0-9.]* \([0-9.]*\).*$/\1/p;d'`
18688 if ${version:+false} :; then :
9c60689e 18689
47aaa820 18690else
a243b558
JF
18691 as_arg_v1=$version
18692as_arg_v2=2.5.33
18693awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
18694case $? in #(
18695 1) :
18696 ;; #(
18697 0) :
18698 ac_cv_path_FLEX=$ac_path_FLEX ;; #(
18699 2) :
18700 ac_cv_path_FLEX=$ac_path_FLEX ;; #(
18701 *) :
18702 ;;
18703esac
18704fi
18705
18706 $ac_path_FLEX_found && break 3
18707 done
18708 done
18709 done
18710IFS=$as_save_IFS
18711 if test -z "$ac_cv_path_FLEX"; then
18712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47aaa820 18713$as_echo "no" >&6; }
a243b558
JF
18714 fi
18715else
18716 ac_cv_path_FLEX=$FLEX
9c60689e
DWT
18717fi
18718
18719
a243b558 18720 if true; then :
e9c9a47c 18721
a243b558 18722 FLEX=$ac_cv_path_FLEX
e9c9a47c 18723
a243b558
JF
18724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
18725$as_echo "$FLEX" >&6; }
9c60689e 18726
632b71ea 18727else
a243b558 18728 if true; then :
e9c9a47c 18729
a243b558 18730 as_fn_error $? "You need flex 2.5.33 or greater" "$LINENO" 5
e9c9a47c 18731
e9c9a47c 18732else
a243b558
JF
18733
18734 FLEX=:
18735
18736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18737$as_echo "no" >&6; }
9c60689e 18738
632b71ea 18739fi
a243b558
JF
18740fi
18741
18742
18743
18744
18745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gperf >= 3.0.3" >&5
18746$as_echo_n "checking for gperf >= 3.0.3... " >&6; }
18747 if test -z "$GPERF"; then
18748 ac_path_GPERF_found=false
18749 # Loop through the user's path and test for each of PROGNAME-LIST
18750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18751for as_dir in $PATH
18752do
18753 IFS=$as_save_IFS
18754 test -z "$as_dir" && as_dir=.
18755 for ac_prog in gperf; do
18756 for ac_exec_ext in '' $ac_executable_extensions; do
18757 ac_path_GPERF="$as_dir/$ac_prog$ac_exec_ext"
18758 as_fn_executable_p "$ac_path_GPERF" || continue
18759version=`$ac_path_GPERF --version | $SED -e '1 s/^.* \([0-9.]*\)$/\1/p;d'`
18760 if ${version:+false} :; then :
18761
e9c9a47c 18762else
a243b558
JF
18763 as_arg_v1=$version
18764as_arg_v2=3.0.3
18765awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
18766case $? in #(
18767 1) :
18768 ;; #(
18769 0) :
18770 ac_cv_path_GPERF=$ac_path_GPERF ;; #(
18771 2) :
18772 ac_cv_path_GPERF=$ac_path_GPERF ;; #(
18773 *) :
18774 ;;
18775esac
632b71ea 18776fi
a243b558
JF
18777
18778 $ac_path_GPERF_found && break 3
18779 done
18780 done
18781 done
18782IFS=$as_save_IFS
18783 if test -z "$ac_cv_path_GPERF"; then
18784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18785$as_echo "no" >&6; }
18786 fi
47aaa820 18787else
a243b558
JF
18788 ac_cv_path_GPERF=$GPERF
18789fi
9c60689e
DWT
18790
18791
a243b558 18792 if true; then :
9c60689e 18793
a243b558 18794 GPERF=$ac_cv_path_GPERF
9c60689e 18795
a243b558
JF
18796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPERF" >&5
18797$as_echo "$GPERF" >&6; }
9c60689e 18798
47aaa820 18799else
a243b558 18800 if true; then :
9c60689e 18801
a243b558
JF
18802 as_fn_error $? "You need gperf 3.0.3 or greater" "$LINENO" 5
18803
18804else
18805
18806 GPERF=:
18807
18808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18809$as_echo "no" >&6; }
9c60689e 18810
47aaa820 18811fi
47aaa820 18812fi
a243b558
JF
18813
18814
18815
18816
18817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tar gtar gnutar >= 1.19" >&5
18818$as_echo_n "checking for tar gtar gnutar >= 1.19... " >&6; }
18819 if test -z "$GNUTAR"; then
18820 ac_path_GNUTAR_found=false
18821 # Loop through the user's path and test for each of PROGNAME-LIST
18822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18823for as_dir in $PATH
18824do
18825 IFS=$as_save_IFS
18826 test -z "$as_dir" && as_dir=.
18827 for ac_prog in tar gtar gnutar; do
18828 for ac_exec_ext in '' $ac_executable_extensions; do
18829 ac_path_GNUTAR="$as_dir/$ac_prog$ac_exec_ext"
18830 as_fn_executable_p "$ac_path_GNUTAR" || continue
18831version=`$ac_path_GNUTAR --version | $SED -e '1 s/^tar (GNU tar) \(.*\)$/\1/p;d'`
18832 if ${version:+false} :; then :
18833
18834else
18835 as_arg_v1=$version
18836as_arg_v2=1.19
18837awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
18838case $? in #(
18839 1) :
18840 ;; #(
18841 0) :
18842 ac_cv_path_GNUTAR=$ac_path_GNUTAR ;; #(
18843 2) :
18844 ac_cv_path_GNUTAR=$ac_path_GNUTAR ;; #(
18845 *) :
18846 ;;
18847esac
790e5246 18848fi
a243b558
JF
18849
18850 $ac_path_GNUTAR_found && break 3
18851 done
18852 done
18853 done
18854IFS=$as_save_IFS
18855 if test -z "$ac_cv_path_GNUTAR"; then
18856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18857$as_echo "no" >&6; }
632b71ea 18858 fi
632b71ea 18859else
a243b558 18860 ac_cv_path_GNUTAR=$GNUTAR
632b71ea 18861fi
66170b30 18862
66170b30 18863
a243b558 18864 if true; then :
66170b30 18865
a243b558 18866 GNUTAR=$ac_cv_path_GNUTAR
66170b30 18867
a243b558
JF
18868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUTAR" >&5
18869$as_echo "$GNUTAR" >&6; }
66170b30 18870
a243b558
JF
18871else
18872 if true; then :
66170b30 18873
a243b558 18874 as_fn_error $? "You need tar gtar gnutar 1.19 or greater" "$LINENO" 5
66170b30 18875
66170b30 18876else
66170b30 18877
a243b558 18878 GNUTAR=:
66170b30 18879
a243b558
JF
18880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18881$as_echo "no" >&6; }
66170b30 18882
a243b558
JF
18883fi
18884fi
66170b30
JF
18885
18886
18887
18888
18889
18890
18891
77578fdd
JF
18892if test "x$LFLAGS" = x; then :
18893 LFLAGS="--full --ecs"
18894fi
18895
18896
66170b30
JF
18897
18898
18899
e9c9a47c
DWT
18900ac_ext=c
18901ac_cpp='$CPP $CPPFLAGS'
18902ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18903ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18904ac_compiler_gnu=$ac_cv_c_compiler_gnu
632b71ea 18905
66170b30
JF
18906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
18907$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
18908if ${ac_cv_cflags_warn_all+:} false; then :
18909 $as_echo_n "(cached) " >&6
18910else
18911 ac_cv_cflags_warn_all="no, unknown"
18912ac_save_CFLAGS="$CFLAGS"
18913for 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" #
18914do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
18915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18916/* end confdefs.h. */
18917
18918int
18919main ()
18920{
18921
18922 ;
18923 return 0;
18924}
18925_ACEOF
18926if ac_fn_c_try_compile "$LINENO"; then :
18927 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
18928fi
18929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18930done
18931CFLAGS="$ac_save_CFLAGS"
18932
18933fi
18934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
18935$as_echo "$ac_cv_cflags_warn_all" >&6; }
18936
83c6fec8 18937
66170b30
JF
18938case ".$ac_cv_cflags_warn_all" in
18939 .ok|.ok,*) ;;
18940 .|.no|.no,*) ;;
18941 *) if ${CFLAGS+:} false; then :
18942 case " $CFLAGS " in
18943 *" $ac_cv_cflags_warn_all "*)
18944 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5
18945 (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5
18946 ac_status=$?
18947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18948 test $ac_status = 0; }
18949 ;;
18950 *)
18951 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
18952 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
18953 ac_status=$?
18954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18955 test $ac_status = 0; }
18956 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
18957 ;;
18958 esac
18959else
18960 CFLAGS="$ac_cv_cflags_warn_all"
18961fi
18962 ;;
18963esac
18964
b816329d
JF
18965ac_ext=cpp
18966ac_cpp='$CXXCPP $CPPFLAGS'
18967ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18968ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18969ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18970
9c60689e 18971
66170b30
JF
18972ac_ext=cpp
18973ac_cpp='$CXXCPP $CPPFLAGS'
18974ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18975ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18976ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1504c9b8 18977
66170b30
JF
18978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for maximum warnings" >&5
18979$as_echo_n "checking CXXFLAGS for maximum warnings... " >&6; }
18980if ${ac_cv_cxxflags_warn_all+:} false; then :
18981 $as_echo_n "(cached) " >&6
18982else
18983 ac_cv_cxxflags_warn_all="no, unknown"
18984ac_save_CXXFLAGS="$CXXFLAGS"
18985for 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" #
18986do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
18987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18988/* end confdefs.h. */
1504c9b8 18989
66170b30
JF
18990int
18991main ()
18992{
1504c9b8 18993
66170b30
JF
18994 ;
18995 return 0;
18996}
18997_ACEOF
18998if ac_fn_cxx_try_compile "$LINENO"; then :
18999 ac_cv_cxxflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
19000fi
19001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19002done
19003CXXFLAGS="$ac_save_CXXFLAGS"
1504c9b8 19004
66170b30
JF
19005fi
19006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxxflags_warn_all" >&5
19007$as_echo "$ac_cv_cxxflags_warn_all" >&6; }
19008
83c6fec8 19009
66170b30
JF
19010case ".$ac_cv_cxxflags_warn_all" in
19011 .ok|.ok,*) ;;
19012 .|.no|.no,*) ;;
19013 *) if ${CXXFLAGS+:} false; then :
19014 case " $CXXFLAGS " in
19015 *" $ac_cv_cxxflags_warn_all "*)
19016 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$ac_cv_cxxflags_warn_all"; } >&5
19017 (: CXXFLAGS already contains $ac_cv_cxxflags_warn_all) 2>&5
19018 ac_status=$?
19019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19020 test $ac_status = 0; }
19021 ;;
19022 *)
19023 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$ac_cv_cxxflags_warn_all\""; } >&5
19024 (: CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all") 2>&5
19025 ac_status=$?
19026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19027 test $ac_status = 0; }
19028 CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all"
19029 ;;
19030 esac
19031else
19032 CXXFLAGS="$ac_cv_cxxflags_warn_all"
19033fi
19034 ;;
19035esac
19036
19037ac_ext=cpp
19038ac_cpp='$CXXCPP $CPPFLAGS'
19039ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19040ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19041ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19042
19043
babf7fe8
JF
19044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for maximum warnings" >&5
19045$as_echo_n "checking CXXFLAGS for maximum warnings... " >&6; }
19046if ${ac_cv_cxxflags_warn_all+:} false; then :
19047 $as_echo_n "(cached) " >&6
19048else
19049 ac_cv_cxxflags_warn_all="no, unknown"
19050ac_save_CXXFLAGS="$CXXFLAGS"
19051for 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" #
19052do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
19053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19054/* end confdefs.h. */
19055
19056int
19057main ()
19058{
19059
19060 ;
19061 return 0;
19062}
19063_ACEOF
19064if ac_fn_cxx_try_compile "$LINENO"; then :
19065 ac_cv_cxxflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
19066fi
19067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19068done
19069CXXFLAGS="$ac_save_CXXFLAGS"
19070
19071fi
19072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxxflags_warn_all" >&5
19073$as_echo "$ac_cv_cxxflags_warn_all" >&6; }
19074
83c6fec8 19075
babf7fe8
JF
19076case ".$ac_cv_cxxflags_warn_all" in
19077 .ok|.ok,*) ;;
19078 .|.no|.no,*) ;;
19079 *) if ${CXXFLAGS+:} false; then :
19080 case " $CXXFLAGS " in
19081 *" $ac_cv_cxxflags_warn_all "*)
19082 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$ac_cv_cxxflags_warn_all"; } >&5
19083 (: CXXFLAGS already contains $ac_cv_cxxflags_warn_all) 2>&5
19084 ac_status=$?
19085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19086 test $ac_status = 0; }
19087 ;;
19088 *)
19089 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$ac_cv_cxxflags_warn_all\""; } >&5
19090 (: CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all") 2>&5
19091 ac_status=$?
19092 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19093 test $ac_status = 0; }
19094 CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all"
19095 ;;
19096 esac
19097else
19098 CXXFLAGS="$ac_cv_cxxflags_warn_all"
19099fi
19100 ;;
19101esac
19102
66170b30
JF
19103
19104
66170b30 19105
66170b30 19106
c10a2228
JF
19107 ac_ext=c
19108ac_cpp='$CPP $CPPFLAGS'
19109ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19110ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19111ac_compiler_gnu=$ac_cv_c_compiler_gnu
19112
babf7fe8
JF
19113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Werror" >&5
19114$as_echo_n "checking for cc -Werror... " >&6; }
c10a2228
JF
19115
19116 cy_save=$CFLAGS
19117
babf7fe8 19118 for element in -Werror; do
c10a2228
JF
19119 haveit=
19120 for x in $CFLAGS; do
19121
19122 acl_save_prefix="$prefix"
19123 prefix="$acl_final_prefix"
19124 acl_save_exec_prefix="$exec_prefix"
19125 exec_prefix="$acl_final_exec_prefix"
19126 eval x=\"$x\"
19127 exec_prefix="$acl_save_exec_prefix"
19128 prefix="$acl_save_prefix"
19129
19130 if test "X$x" = "X$element"; then
19131 haveit=yes
19132 break
19133 fi
19134 done
19135 if test -z "$haveit"; then
19136 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
19137 fi
19138 done
19139
19140
19141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19142/* end confdefs.h. */
19143
19144_ACEOF
19145if ac_fn_c_try_compile "$LINENO"; then :
19146 cy_good=1
19147else
19148 cy_good=0
19149fi
19150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19151
19152 CFLAGS=$cy_save
19153 if test "x$cy_good" = x1; then :
19154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19155$as_echo "yes" >&6; }
19156
babf7fe8 19157 for element in -Werror; do
c10a2228
JF
19158 haveit=
19159 for x in $CFLAGS; do
19160
19161 acl_save_prefix="$prefix"
19162 prefix="$acl_final_prefix"
19163 acl_save_exec_prefix="$exec_prefix"
19164 exec_prefix="$acl_final_exec_prefix"
19165 eval x=\"$x\"
19166 exec_prefix="$acl_save_exec_prefix"
19167 prefix="$acl_save_prefix"
19168
19169 if test "X$x" = "X$element"; then
19170 haveit=yes
19171 break
19172 fi
19173 done
19174 if test -z "$haveit"; then
19175 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
19176 fi
19177 done
19178
19179
19180else
19181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19182$as_echo "no" >&6; }
19183fi
19184
19185 ac_ext=cpp
19186ac_cpp='$CXXCPP $CPPFLAGS'
19187ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19188ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19189ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19190
19191
19192
19193 ac_ext=cpp
19194ac_cpp='$CXXCPP $CPPFLAGS'
19195ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19196ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19197ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19198
babf7fe8
JF
19199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Werror" >&5
19200$as_echo_n "checking for c++ -Werror... " >&6; }
c10a2228
JF
19201
19202 cy_save=$CXXFLAGS
19203
babf7fe8 19204 for element in -Werror; do
c10a2228
JF
19205 haveit=
19206 for x in $CXXFLAGS; do
19207
19208 acl_save_prefix="$prefix"
19209 prefix="$acl_final_prefix"
19210 acl_save_exec_prefix="$exec_prefix"
19211 exec_prefix="$acl_final_exec_prefix"
19212 eval x=\"$x\"
19213 exec_prefix="$acl_save_exec_prefix"
19214 prefix="$acl_save_prefix"
19215
19216 if test "X$x" = "X$element"; then
19217 haveit=yes
19218 break
19219 fi
19220 done
19221 if test -z "$haveit"; then
19222 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
19223 fi
19224 done
19225
19226
19227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19228/* end confdefs.h. */
19229
19230_ACEOF
19231if ac_fn_cxx_try_compile "$LINENO"; then :
19232 cy_good=1
19233else
19234 cy_good=0
19235fi
19236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19237
19238 CXXFLAGS=$cy_save
19239 if test "x$cy_good" = x1; then :
19240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19241$as_echo "yes" >&6; }
19242
babf7fe8 19243 for element in -Werror; do
c10a2228
JF
19244 haveit=
19245 for x in $CXXFLAGS; do
19246
19247 acl_save_prefix="$prefix"
19248 prefix="$acl_final_prefix"
19249 acl_save_exec_prefix="$exec_prefix"
19250 exec_prefix="$acl_final_exec_prefix"
19251 eval x=\"$x\"
19252 exec_prefix="$acl_save_exec_prefix"
19253 prefix="$acl_save_prefix"
19254
19255 if test "X$x" = "X$element"; then
19256 haveit=yes
19257 break
19258 fi
19259 done
19260 if test -z "$haveit"; then
19261 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
19262 fi
19263 done
19264
19265
19266else
19267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19268$as_echo "no" >&6; }
19269fi
19270
19271 ac_ext=cpp
19272ac_cpp='$CXXCPP $CPPFLAGS'
19273ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19274ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19275ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19276
19277
19278
19279 ac_ext=mm
19280ac_cpp='$OBJCXXCPP $CPPFLAGS'
19281ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19282ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19283ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
19284
babf7fe8
JF
19285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Werror" >&5
19286$as_echo_n "checking for c++ -ObjC -Werror... " >&6; }
c10a2228
JF
19287
19288 cy_save=$OBJCXXFLAGS
19289
babf7fe8 19290 for element in -Werror; do
c10a2228
JF
19291 haveit=
19292 for x in $OBJCXXFLAGS; do
19293
19294 acl_save_prefix="$prefix"
19295 prefix="$acl_final_prefix"
19296 acl_save_exec_prefix="$exec_prefix"
19297 exec_prefix="$acl_final_exec_prefix"
19298 eval x=\"$x\"
19299 exec_prefix="$acl_save_exec_prefix"
19300 prefix="$acl_save_prefix"
19301
19302 if test "X$x" = "X$element"; then
19303 haveit=yes
19304 break
19305 fi
19306 done
19307 if test -z "$haveit"; then
19308 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
19309 fi
19310 done
19311
19312
19313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19314/* end confdefs.h. */
19315
19316_ACEOF
19317if ac_fn_objcxx_try_compile "$LINENO"; then :
19318 cy_good=1
19319else
19320 cy_good=0
19321fi
19322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19323
19324 OBJCXXFLAGS=$cy_save
19325 if test "x$cy_good" = x1; then :
19326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19327$as_echo "yes" >&6; }
19328
babf7fe8 19329 for element in -Werror; do
c10a2228
JF
19330 haveit=
19331 for x in $OBJCXXFLAGS; do
19332
19333 acl_save_prefix="$prefix"
19334 prefix="$acl_final_prefix"
19335 acl_save_exec_prefix="$exec_prefix"
19336 exec_prefix="$acl_final_exec_prefix"
19337 eval x=\"$x\"
19338 exec_prefix="$acl_save_exec_prefix"
19339 prefix="$acl_save_prefix"
19340
19341 if test "X$x" = "X$element"; then
19342 haveit=yes
19343 break
19344 fi
19345 done
19346 if test -z "$haveit"; then
19347 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
19348 fi
19349 done
19350
19351
19352else
19353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19354$as_echo "no" >&6; }
19355fi
19356
19357 ac_ext=cpp
19358ac_cpp='$CXXCPP $CPPFLAGS'
19359ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19360ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19361ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19362
19363
19364
19365
19366
19367
19368 ac_ext=c
19369ac_cpp='$CPP $CPPFLAGS'
19370ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19371ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19372ac_compiler_gnu=$ac_cv_c_compiler_gnu
19373
babf7fe8
JF
19374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-deprecated-declarations" >&5
19375$as_echo_n "checking for cc -Wno-deprecated-declarations... " >&6; }
c10a2228
JF
19376
19377 cy_save=$CFLAGS
19378
babf7fe8 19379 for element in -Wno-deprecated-declarations; do
c10a2228
JF
19380 haveit=
19381 for x in $CFLAGS; do
19382
19383 acl_save_prefix="$prefix"
19384 prefix="$acl_final_prefix"
19385 acl_save_exec_prefix="$exec_prefix"
19386 exec_prefix="$acl_final_exec_prefix"
19387 eval x=\"$x\"
19388 exec_prefix="$acl_save_exec_prefix"
19389 prefix="$acl_save_prefix"
19390
19391 if test "X$x" = "X$element"; then
19392 haveit=yes
19393 break
19394 fi
19395 done
19396 if test -z "$haveit"; then
19397 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
19398 fi
19399 done
19400
19401
19402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19403/* end confdefs.h. */
19404
19405_ACEOF
19406if ac_fn_c_try_compile "$LINENO"; then :
19407 cy_good=1
19408else
19409 cy_good=0
19410fi
19411rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19412
19413 CFLAGS=$cy_save
19414 if test "x$cy_good" = x1; then :
19415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19416$as_echo "yes" >&6; }
19417
babf7fe8 19418 for element in -Wno-deprecated-declarations; do
c10a2228
JF
19419 haveit=
19420 for x in $CFLAGS; do
19421
19422 acl_save_prefix="$prefix"
19423 prefix="$acl_final_prefix"
19424 acl_save_exec_prefix="$exec_prefix"
19425 exec_prefix="$acl_final_exec_prefix"
19426 eval x=\"$x\"
19427 exec_prefix="$acl_save_exec_prefix"
19428 prefix="$acl_save_prefix"
19429
19430 if test "X$x" = "X$element"; then
19431 haveit=yes
19432 break
19433 fi
19434 done
19435 if test -z "$haveit"; then
19436 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
19437 fi
19438 done
19439
19440
19441else
19442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19443$as_echo "no" >&6; }
19444fi
19445
19446 ac_ext=cpp
19447ac_cpp='$CXXCPP $CPPFLAGS'
19448ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19449ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19450ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19451
19452
19453
19454 ac_ext=cpp
19455ac_cpp='$CXXCPP $CPPFLAGS'
19456ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19457ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19458ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19459
babf7fe8
JF
19460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-deprecated-declarations" >&5
19461$as_echo_n "checking for c++ -Wno-deprecated-declarations... " >&6; }
c10a2228
JF
19462
19463 cy_save=$CXXFLAGS
19464
babf7fe8 19465 for element in -Wno-deprecated-declarations; do
c10a2228
JF
19466 haveit=
19467 for x in $CXXFLAGS; do
19468
19469 acl_save_prefix="$prefix"
19470 prefix="$acl_final_prefix"
19471 acl_save_exec_prefix="$exec_prefix"
19472 exec_prefix="$acl_final_exec_prefix"
19473 eval x=\"$x\"
19474 exec_prefix="$acl_save_exec_prefix"
19475 prefix="$acl_save_prefix"
19476
19477 if test "X$x" = "X$element"; then
19478 haveit=yes
19479 break
19480 fi
19481 done
19482 if test -z "$haveit"; then
19483 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
19484 fi
19485 done
19486
19487
19488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19489/* end confdefs.h. */
19490
19491_ACEOF
19492if ac_fn_cxx_try_compile "$LINENO"; then :
19493 cy_good=1
19494else
19495 cy_good=0
19496fi
19497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19498
19499 CXXFLAGS=$cy_save
19500 if test "x$cy_good" = x1; then :
19501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19502$as_echo "yes" >&6; }
19503
babf7fe8 19504 for element in -Wno-deprecated-declarations; do
c10a2228
JF
19505 haveit=
19506 for x in $CXXFLAGS; do
19507
19508 acl_save_prefix="$prefix"
19509 prefix="$acl_final_prefix"
19510 acl_save_exec_prefix="$exec_prefix"
19511 exec_prefix="$acl_final_exec_prefix"
19512 eval x=\"$x\"
19513 exec_prefix="$acl_save_exec_prefix"
19514 prefix="$acl_save_prefix"
19515
19516 if test "X$x" = "X$element"; then
19517 haveit=yes
19518 break
19519 fi
19520 done
19521 if test -z "$haveit"; then
19522 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
19523 fi
19524 done
19525
19526
19527else
19528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19529$as_echo "no" >&6; }
19530fi
19531
19532 ac_ext=cpp
19533ac_cpp='$CXXCPP $CPPFLAGS'
19534ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19535ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19536ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19537
19538
19539
19540 ac_ext=mm
19541ac_cpp='$OBJCXXCPP $CPPFLAGS'
19542ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19543ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19544ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
19545
babf7fe8
JF
19546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-deprecated-declarations" >&5
19547$as_echo_n "checking for c++ -ObjC -Wno-deprecated-declarations... " >&6; }
c10a2228
JF
19548
19549 cy_save=$OBJCXXFLAGS
19550
babf7fe8 19551 for element in -Wno-deprecated-declarations; do
c10a2228
JF
19552 haveit=
19553 for x in $OBJCXXFLAGS; do
19554
19555 acl_save_prefix="$prefix"
19556 prefix="$acl_final_prefix"
19557 acl_save_exec_prefix="$exec_prefix"
19558 exec_prefix="$acl_final_exec_prefix"
19559 eval x=\"$x\"
19560 exec_prefix="$acl_save_exec_prefix"
19561 prefix="$acl_save_prefix"
19562
19563 if test "X$x" = "X$element"; then
19564 haveit=yes
19565 break
19566 fi
19567 done
19568 if test -z "$haveit"; then
19569 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
19570 fi
19571 done
19572
19573
19574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19575/* end confdefs.h. */
19576
19577_ACEOF
19578if ac_fn_objcxx_try_compile "$LINENO"; then :
19579 cy_good=1
19580else
19581 cy_good=0
19582fi
19583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19584
19585 OBJCXXFLAGS=$cy_save
19586 if test "x$cy_good" = x1; then :
19587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19588$as_echo "yes" >&6; }
19589
babf7fe8 19590 for element in -Wno-deprecated-declarations; do
c10a2228
JF
19591 haveit=
19592 for x in $OBJCXXFLAGS; do
19593
19594 acl_save_prefix="$prefix"
19595 prefix="$acl_final_prefix"
19596 acl_save_exec_prefix="$exec_prefix"
19597 exec_prefix="$acl_final_exec_prefix"
19598 eval x=\"$x\"
19599 exec_prefix="$acl_save_exec_prefix"
19600 prefix="$acl_save_prefix"
19601
19602 if test "X$x" = "X$element"; then
19603 haveit=yes
19604 break
19605 fi
19606 done
19607 if test -z "$haveit"; then
19608 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
19609 fi
19610 done
19611
19612
19613else
19614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19615$as_echo "no" >&6; }
19616fi
19617
19618 ac_ext=cpp
19619ac_cpp='$CXXCPP $CPPFLAGS'
19620ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19621ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19622ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19623
19624
19625
19626
19627
babf7fe8 19628
c10a2228
JF
19629 ac_ext=c
19630ac_cpp='$CPP $CPPFLAGS'
19631ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19632ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19633ac_compiler_gnu=$ac_cv_c_compiler_gnu
19634
babf7fe8
JF
19635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-dangling-else" >&5
19636$as_echo_n "checking for cc -Wno-dangling-else... " >&6; }
c10a2228
JF
19637
19638 cy_save=$CFLAGS
19639
babf7fe8 19640 for element in -Wno-dangling-else; do
c10a2228
JF
19641 haveit=
19642 for x in $CFLAGS; do
19643
19644 acl_save_prefix="$prefix"
19645 prefix="$acl_final_prefix"
19646 acl_save_exec_prefix="$exec_prefix"
19647 exec_prefix="$acl_final_exec_prefix"
19648 eval x=\"$x\"
19649 exec_prefix="$acl_save_exec_prefix"
19650 prefix="$acl_save_prefix"
19651
19652 if test "X$x" = "X$element"; then
19653 haveit=yes
19654 break
19655 fi
19656 done
19657 if test -z "$haveit"; then
19658 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
19659 fi
19660 done
19661
19662
19663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19664/* end confdefs.h. */
19665
19666_ACEOF
19667if ac_fn_c_try_compile "$LINENO"; then :
19668 cy_good=1
19669else
19670 cy_good=0
19671fi
19672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19673
19674 CFLAGS=$cy_save
19675 if test "x$cy_good" = x1; then :
19676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19677$as_echo "yes" >&6; }
19678
babf7fe8 19679 for element in -Wno-dangling-else; do
c10a2228
JF
19680 haveit=
19681 for x in $CFLAGS; do
19682
19683 acl_save_prefix="$prefix"
19684 prefix="$acl_final_prefix"
19685 acl_save_exec_prefix="$exec_prefix"
19686 exec_prefix="$acl_final_exec_prefix"
19687 eval x=\"$x\"
19688 exec_prefix="$acl_save_exec_prefix"
19689 prefix="$acl_save_prefix"
19690
19691 if test "X$x" = "X$element"; then
19692 haveit=yes
19693 break
19694 fi
19695 done
19696 if test -z "$haveit"; then
19697 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
19698 fi
19699 done
19700
19701
19702else
19703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19704$as_echo "no" >&6; }
19705fi
19706
19707 ac_ext=cpp
19708ac_cpp='$CXXCPP $CPPFLAGS'
19709ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19710ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19711ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19712
19713
19714
19715 ac_ext=cpp
19716ac_cpp='$CXXCPP $CPPFLAGS'
19717ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19718ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19719ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19720
babf7fe8
JF
19721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-dangling-else" >&5
19722$as_echo_n "checking for c++ -Wno-dangling-else... " >&6; }
c10a2228
JF
19723
19724 cy_save=$CXXFLAGS
19725
babf7fe8 19726 for element in -Wno-dangling-else; do
c10a2228
JF
19727 haveit=
19728 for x in $CXXFLAGS; do
19729
19730 acl_save_prefix="$prefix"
19731 prefix="$acl_final_prefix"
19732 acl_save_exec_prefix="$exec_prefix"
19733 exec_prefix="$acl_final_exec_prefix"
19734 eval x=\"$x\"
19735 exec_prefix="$acl_save_exec_prefix"
19736 prefix="$acl_save_prefix"
19737
19738 if test "X$x" = "X$element"; then
19739 haveit=yes
19740 break
19741 fi
19742 done
19743 if test -z "$haveit"; then
19744 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
19745 fi
19746 done
19747
19748
19749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19750/* end confdefs.h. */
19751
19752_ACEOF
19753if ac_fn_cxx_try_compile "$LINENO"; then :
19754 cy_good=1
19755else
19756 cy_good=0
19757fi
19758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19759
19760 CXXFLAGS=$cy_save
19761 if test "x$cy_good" = x1; then :
19762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19763$as_echo "yes" >&6; }
19764
babf7fe8 19765 for element in -Wno-dangling-else; do
c10a2228
JF
19766 haveit=
19767 for x in $CXXFLAGS; do
19768
19769 acl_save_prefix="$prefix"
19770 prefix="$acl_final_prefix"
19771 acl_save_exec_prefix="$exec_prefix"
19772 exec_prefix="$acl_final_exec_prefix"
19773 eval x=\"$x\"
19774 exec_prefix="$acl_save_exec_prefix"
19775 prefix="$acl_save_prefix"
19776
19777 if test "X$x" = "X$element"; then
19778 haveit=yes
19779 break
19780 fi
19781 done
19782 if test -z "$haveit"; then
19783 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
19784 fi
19785 done
19786
19787
19788else
19789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19790$as_echo "no" >&6; }
19791fi
19792
19793 ac_ext=cpp
19794ac_cpp='$CXXCPP $CPPFLAGS'
19795ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19796ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19797ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19798
19799
19800
19801 ac_ext=mm
19802ac_cpp='$OBJCXXCPP $CPPFLAGS'
19803ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19804ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19805ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
19806
babf7fe8
JF
19807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-dangling-else" >&5
19808$as_echo_n "checking for c++ -ObjC -Wno-dangling-else... " >&6; }
c10a2228
JF
19809
19810 cy_save=$OBJCXXFLAGS
19811
babf7fe8 19812 for element in -Wno-dangling-else; do
c10a2228
JF
19813 haveit=
19814 for x in $OBJCXXFLAGS; do
19815
19816 acl_save_prefix="$prefix"
19817 prefix="$acl_final_prefix"
19818 acl_save_exec_prefix="$exec_prefix"
19819 exec_prefix="$acl_final_exec_prefix"
19820 eval x=\"$x\"
19821 exec_prefix="$acl_save_exec_prefix"
19822 prefix="$acl_save_prefix"
19823
19824 if test "X$x" = "X$element"; then
19825 haveit=yes
19826 break
19827 fi
19828 done
19829 if test -z "$haveit"; then
19830 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
19831 fi
19832 done
19833
19834
19835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19836/* end confdefs.h. */
19837
19838_ACEOF
19839if ac_fn_objcxx_try_compile "$LINENO"; then :
19840 cy_good=1
19841else
19842 cy_good=0
19843fi
19844rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19845
19846 OBJCXXFLAGS=$cy_save
19847 if test "x$cy_good" = x1; then :
19848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19849$as_echo "yes" >&6; }
19850
babf7fe8 19851 for element in -Wno-dangling-else; do
c10a2228
JF
19852 haveit=
19853 for x in $OBJCXXFLAGS; do
19854
19855 acl_save_prefix="$prefix"
19856 prefix="$acl_final_prefix"
19857 acl_save_exec_prefix="$exec_prefix"
19858 exec_prefix="$acl_final_exec_prefix"
19859 eval x=\"$x\"
19860 exec_prefix="$acl_save_exec_prefix"
19861 prefix="$acl_save_prefix"
19862
19863 if test "X$x" = "X$element"; then
19864 haveit=yes
19865 break
19866 fi
19867 done
19868 if test -z "$haveit"; then
19869 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
19870 fi
19871 done
19872
19873
19874else
19875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19876$as_echo "no" >&6; }
19877fi
19878
19879 ac_ext=cpp
19880ac_cpp='$CXXCPP $CPPFLAGS'
19881ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19882ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19883ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19884
19885
19886
19887
19888
2ada0541
JF
19889 ac_ext=c
19890ac_cpp='$CPP $CPPFLAGS'
19891ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19892ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19893ac_compiler_gnu=$ac_cv_c_compiler_gnu
19894
19895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-empty-body" >&5
19896$as_echo_n "checking for cc -Wno-empty-body... " >&6; }
19897
19898 cy_save=$CFLAGS
19899
19900 for element in -Wno-empty-body; do
19901 haveit=
19902 for x in $CFLAGS; do
19903
19904 acl_save_prefix="$prefix"
19905 prefix="$acl_final_prefix"
19906 acl_save_exec_prefix="$exec_prefix"
19907 exec_prefix="$acl_final_exec_prefix"
19908 eval x=\"$x\"
19909 exec_prefix="$acl_save_exec_prefix"
19910 prefix="$acl_save_prefix"
19911
19912 if test "X$x" = "X$element"; then
19913 haveit=yes
19914 break
19915 fi
19916 done
19917 if test -z "$haveit"; then
19918 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
19919 fi
19920 done
19921
19922
19923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19924/* end confdefs.h. */
19925
19926_ACEOF
19927if ac_fn_c_try_compile "$LINENO"; then :
19928 cy_good=1
19929else
19930 cy_good=0
19931fi
19932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19933
19934 CFLAGS=$cy_save
19935 if test "x$cy_good" = x1; then :
19936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19937$as_echo "yes" >&6; }
19938
19939 for element in -Wno-empty-body; do
19940 haveit=
19941 for x in $CFLAGS; do
19942
19943 acl_save_prefix="$prefix"
19944 prefix="$acl_final_prefix"
19945 acl_save_exec_prefix="$exec_prefix"
19946 exec_prefix="$acl_final_exec_prefix"
19947 eval x=\"$x\"
19948 exec_prefix="$acl_save_exec_prefix"
19949 prefix="$acl_save_prefix"
19950
19951 if test "X$x" = "X$element"; then
19952 haveit=yes
19953 break
19954 fi
19955 done
19956 if test -z "$haveit"; then
19957 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
19958 fi
19959 done
19960
19961
19962else
19963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19964$as_echo "no" >&6; }
19965fi
19966
19967 ac_ext=cpp
19968ac_cpp='$CXXCPP $CPPFLAGS'
19969ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19970ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19971ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19972
19973
19974
19975 ac_ext=cpp
19976ac_cpp='$CXXCPP $CPPFLAGS'
19977ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19978ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19979ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19980
19981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-empty-body" >&5
19982$as_echo_n "checking for c++ -Wno-empty-body... " >&6; }
19983
19984 cy_save=$CXXFLAGS
19985
19986 for element in -Wno-empty-body; do
19987 haveit=
19988 for x in $CXXFLAGS; do
19989
19990 acl_save_prefix="$prefix"
19991 prefix="$acl_final_prefix"
19992 acl_save_exec_prefix="$exec_prefix"
19993 exec_prefix="$acl_final_exec_prefix"
19994 eval x=\"$x\"
19995 exec_prefix="$acl_save_exec_prefix"
19996 prefix="$acl_save_prefix"
19997
19998 if test "X$x" = "X$element"; then
19999 haveit=yes
20000 break
20001 fi
20002 done
20003 if test -z "$haveit"; then
20004 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
20005 fi
20006 done
20007
20008
20009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20010/* end confdefs.h. */
20011
20012_ACEOF
20013if ac_fn_cxx_try_compile "$LINENO"; then :
20014 cy_good=1
20015else
20016 cy_good=0
20017fi
20018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20019
20020 CXXFLAGS=$cy_save
20021 if test "x$cy_good" = x1; then :
20022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20023$as_echo "yes" >&6; }
20024
20025 for element in -Wno-empty-body; do
20026 haveit=
20027 for x in $CXXFLAGS; do
20028
20029 acl_save_prefix="$prefix"
20030 prefix="$acl_final_prefix"
20031 acl_save_exec_prefix="$exec_prefix"
20032 exec_prefix="$acl_final_exec_prefix"
20033 eval x=\"$x\"
20034 exec_prefix="$acl_save_exec_prefix"
20035 prefix="$acl_save_prefix"
20036
20037 if test "X$x" = "X$element"; then
20038 haveit=yes
20039 break
20040 fi
20041 done
20042 if test -z "$haveit"; then
20043 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
20044 fi
20045 done
20046
20047
20048else
20049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20050$as_echo "no" >&6; }
20051fi
20052
20053 ac_ext=cpp
20054ac_cpp='$CXXCPP $CPPFLAGS'
20055ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20056ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20057ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20058
20059
20060
20061 ac_ext=mm
20062ac_cpp='$OBJCXXCPP $CPPFLAGS'
20063ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20064ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20065ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
20066
20067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-empty-body" >&5
20068$as_echo_n "checking for c++ -ObjC -Wno-empty-body... " >&6; }
20069
20070 cy_save=$OBJCXXFLAGS
20071
20072 for element in -Wno-empty-body; do
20073 haveit=
20074 for x in $OBJCXXFLAGS; do
20075
20076 acl_save_prefix="$prefix"
20077 prefix="$acl_final_prefix"
20078 acl_save_exec_prefix="$exec_prefix"
20079 exec_prefix="$acl_final_exec_prefix"
20080 eval x=\"$x\"
20081 exec_prefix="$acl_save_exec_prefix"
20082 prefix="$acl_save_prefix"
20083
20084 if test "X$x" = "X$element"; then
20085 haveit=yes
20086 break
20087 fi
20088 done
20089 if test -z "$haveit"; then
20090 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
20091 fi
20092 done
20093
20094
20095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20096/* end confdefs.h. */
20097
20098_ACEOF
20099if ac_fn_objcxx_try_compile "$LINENO"; then :
20100 cy_good=1
20101else
20102 cy_good=0
20103fi
20104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20105
20106 OBJCXXFLAGS=$cy_save
20107 if test "x$cy_good" = x1; then :
20108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20109$as_echo "yes" >&6; }
20110
20111 for element in -Wno-empty-body; do
20112 haveit=
20113 for x in $OBJCXXFLAGS; do
20114
20115 acl_save_prefix="$prefix"
20116 prefix="$acl_final_prefix"
20117 acl_save_exec_prefix="$exec_prefix"
20118 exec_prefix="$acl_final_exec_prefix"
20119 eval x=\"$x\"
20120 exec_prefix="$acl_save_exec_prefix"
20121 prefix="$acl_save_prefix"
20122
20123 if test "X$x" = "X$element"; then
20124 haveit=yes
20125 break
20126 fi
20127 done
20128 if test -z "$haveit"; then
20129 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
20130 fi
20131 done
20132
20133
20134else
20135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20136$as_echo "no" >&6; }
20137fi
20138
20139 ac_ext=cpp
20140ac_cpp='$CXXCPP $CPPFLAGS'
20141ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20142ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20143ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20144
20145
20146
20147
20148
c10a2228
JF
20149 ac_ext=c
20150ac_cpp='$CPP $CPPFLAGS'
20151ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20152ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20153ac_compiler_gnu=$ac_cv_c_compiler_gnu
20154
babf7fe8
JF
20155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-overloaded-virtual" >&5
20156$as_echo_n "checking for cc -Wno-overloaded-virtual... " >&6; }
c10a2228
JF
20157
20158 cy_save=$CFLAGS
20159
babf7fe8 20160 for element in -Wno-overloaded-virtual; do
1504c9b8 20161 haveit=
c10a2228 20162 for x in $CFLAGS; do
1504c9b8
DWT
20163
20164 acl_save_prefix="$prefix"
20165 prefix="$acl_final_prefix"
20166 acl_save_exec_prefix="$exec_prefix"
20167 exec_prefix="$acl_final_exec_prefix"
20168 eval x=\"$x\"
20169 exec_prefix="$acl_save_exec_prefix"
20170 prefix="$acl_save_prefix"
20171
20172 if test "X$x" = "X$element"; then
20173 haveit=yes
20174 break
20175 fi
20176 done
20177 if test -z "$haveit"; then
c10a2228 20178 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
1504c9b8
DWT
20179 fi
20180 done
20181
66170b30
JF
20182
20183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1504c9b8
DWT
20184/* end confdefs.h. */
20185
66170b30 20186_ACEOF
c10a2228 20187if ac_fn_c_try_compile "$LINENO"; then :
66170b30
JF
20188 cy_good=1
20189else
20190 cy_good=0
20191fi
20192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20193
c10a2228 20194 CFLAGS=$cy_save
66170b30
JF
20195 if test "x$cy_good" = x1; then :
20196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20197$as_echo "yes" >&6; }
20198
babf7fe8 20199 for element in -Wno-overloaded-virtual; do
66170b30
JF
20200 haveit=
20201 for x in $CFLAGS; do
20202
20203 acl_save_prefix="$prefix"
20204 prefix="$acl_final_prefix"
20205 acl_save_exec_prefix="$exec_prefix"
20206 exec_prefix="$acl_final_exec_prefix"
20207 eval x=\"$x\"
20208 exec_prefix="$acl_save_exec_prefix"
20209 prefix="$acl_save_prefix"
20210
20211 if test "X$x" = "X$element"; then
20212 haveit=yes
20213 break
20214 fi
20215 done
20216 if test -z "$haveit"; then
20217 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
20218 fi
20219 done
20220
20221
c10a2228
JF
20222else
20223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20224$as_echo "no" >&6; }
20225fi
20226
20227 ac_ext=cpp
20228ac_cpp='$CXXCPP $CPPFLAGS'
20229ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20230ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20231ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20232
20233
20234
20235 ac_ext=cpp
20236ac_cpp='$CXXCPP $CPPFLAGS'
20237ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20238ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20239ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20240
babf7fe8
JF
20241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-overloaded-virtual" >&5
20242$as_echo_n "checking for c++ -Wno-overloaded-virtual... " >&6; }
c10a2228
JF
20243
20244 cy_save=$CXXFLAGS
20245
babf7fe8 20246 for element in -Wno-overloaded-virtual; do
66170b30
JF
20247 haveit=
20248 for x in $CXXFLAGS; do
20249
20250 acl_save_prefix="$prefix"
20251 prefix="$acl_final_prefix"
20252 acl_save_exec_prefix="$exec_prefix"
20253 exec_prefix="$acl_final_exec_prefix"
20254 eval x=\"$x\"
20255 exec_prefix="$acl_save_exec_prefix"
20256 prefix="$acl_save_prefix"
20257
20258 if test "X$x" = "X$element"; then
20259 haveit=yes
20260 break
20261 fi
20262 done
20263 if test -z "$haveit"; then
20264 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
20265 fi
20266 done
20267
20268
c10a2228
JF
20269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20270/* end confdefs.h. */
20271
20272_ACEOF
20273if ac_fn_cxx_try_compile "$LINENO"; then :
20274 cy_good=1
20275else
20276 cy_good=0
20277fi
20278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20279
20280 CXXFLAGS=$cy_save
20281 if test "x$cy_good" = x1; then :
20282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20283$as_echo "yes" >&6; }
20284
babf7fe8 20285 for element in -Wno-overloaded-virtual; do
66170b30 20286 haveit=
c10a2228 20287 for x in $CXXFLAGS; do
66170b30
JF
20288
20289 acl_save_prefix="$prefix"
20290 prefix="$acl_final_prefix"
20291 acl_save_exec_prefix="$exec_prefix"
20292 exec_prefix="$acl_final_exec_prefix"
20293 eval x=\"$x\"
20294 exec_prefix="$acl_save_exec_prefix"
20295 prefix="$acl_save_prefix"
20296
20297 if test "X$x" = "X$element"; then
20298 haveit=yes
20299 break
20300 fi
20301 done
20302 if test -z "$haveit"; then
c10a2228 20303 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
66170b30
JF
20304 fi
20305 done
20306
20307
66170b30
JF
20308else
20309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20310$as_echo "no" >&6; }
20311fi
20312
c10a2228
JF
20313 ac_ext=cpp
20314ac_cpp='$CXXCPP $CPPFLAGS'
20315ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20316ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20317ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20318
66170b30
JF
20319
20320
c10a2228
JF
20321 ac_ext=mm
20322ac_cpp='$OBJCXXCPP $CPPFLAGS'
20323ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20324ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20325ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
20326
babf7fe8
JF
20327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-overloaded-virtual" >&5
20328$as_echo_n "checking for c++ -ObjC -Wno-overloaded-virtual... " >&6; }
66170b30 20329
c10a2228 20330 cy_save=$OBJCXXFLAGS
66170b30 20331
babf7fe8 20332 for element in -Wno-overloaded-virtual; do
66170b30 20333 haveit=
c10a2228 20334 for x in $OBJCXXFLAGS; do
66170b30
JF
20335
20336 acl_save_prefix="$prefix"
20337 prefix="$acl_final_prefix"
20338 acl_save_exec_prefix="$exec_prefix"
20339 exec_prefix="$acl_final_exec_prefix"
20340 eval x=\"$x\"
20341 exec_prefix="$acl_save_exec_prefix"
20342 prefix="$acl_save_prefix"
20343
20344 if test "X$x" = "X$element"; then
20345 haveit=yes
20346 break
20347 fi
20348 done
20349 if test -z "$haveit"; then
c10a2228 20350 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
66170b30
JF
20351 fi
20352 done
20353
20354
20355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20356/* end confdefs.h. */
1504c9b8 20357
1504c9b8 20358_ACEOF
c10a2228 20359if ac_fn_objcxx_try_compile "$LINENO"; then :
66170b30
JF
20360 cy_good=1
20361else
20362 cy_good=0
20363fi
20364rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20365
c10a2228 20366 OBJCXXFLAGS=$cy_save
66170b30
JF
20367 if test "x$cy_good" = x1; then :
20368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20369$as_echo "yes" >&6; }
1504c9b8 20370
babf7fe8 20371 for element in -Wno-overloaded-virtual; do
1504c9b8 20372 haveit=
c10a2228 20373 for x in $OBJCXXFLAGS; do
1504c9b8
DWT
20374
20375 acl_save_prefix="$prefix"
20376 prefix="$acl_final_prefix"
20377 acl_save_exec_prefix="$exec_prefix"
20378 exec_prefix="$acl_final_exec_prefix"
20379 eval x=\"$x\"
20380 exec_prefix="$acl_save_exec_prefix"
20381 prefix="$acl_save_prefix"
20382
20383 if test "X$x" = "X$element"; then
20384 haveit=yes
20385 break
20386 fi
20387 done
20388 if test -z "$haveit"; then
c10a2228 20389 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
1504c9b8
DWT
20390 fi
20391 done
20392
20393
c10a2228
JF
20394else
20395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20396$as_echo "no" >&6; }
20397fi
20398
20399 ac_ext=cpp
20400ac_cpp='$CXXCPP $CPPFLAGS'
20401ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20402ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20403ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20404
20405
20406
20407
20408
20409 ac_ext=c
20410ac_cpp='$CPP $CPPFLAGS'
20411ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20412ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20413ac_compiler_gnu=$ac_cv_c_compiler_gnu
20414
babf7fe8
JF
20415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-parentheses" >&5
20416$as_echo_n "checking for cc -Wno-parentheses... " >&6; }
c10a2228
JF
20417
20418 cy_save=$CFLAGS
20419
babf7fe8 20420 for element in -Wno-parentheses; do
66170b30 20421 haveit=
c10a2228 20422 for x in $CFLAGS; do
66170b30
JF
20423
20424 acl_save_prefix="$prefix"
20425 prefix="$acl_final_prefix"
20426 acl_save_exec_prefix="$exec_prefix"
20427 exec_prefix="$acl_final_exec_prefix"
20428 eval x=\"$x\"
20429 exec_prefix="$acl_save_exec_prefix"
20430 prefix="$acl_save_prefix"
20431
20432 if test "X$x" = "X$element"; then
20433 haveit=yes
20434 break
20435 fi
20436 done
20437 if test -z "$haveit"; then
c10a2228 20438 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
66170b30
JF
20439 fi
20440 done
20441
20442
c10a2228
JF
20443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20444/* end confdefs.h. */
20445
20446_ACEOF
20447if ac_fn_c_try_compile "$LINENO"; then :
20448 cy_good=1
20449else
20450 cy_good=0
20451fi
20452rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20453
20454 CFLAGS=$cy_save
20455 if test "x$cy_good" = x1; then :
20456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20457$as_echo "yes" >&6; }
20458
babf7fe8 20459 for element in -Wno-parentheses; do
66170b30 20460 haveit=
c10a2228 20461 for x in $CFLAGS; do
66170b30
JF
20462
20463 acl_save_prefix="$prefix"
20464 prefix="$acl_final_prefix"
20465 acl_save_exec_prefix="$exec_prefix"
20466 exec_prefix="$acl_final_exec_prefix"
20467 eval x=\"$x\"
20468 exec_prefix="$acl_save_exec_prefix"
20469 prefix="$acl_save_prefix"
20470
20471 if test "X$x" = "X$element"; then
20472 haveit=yes
20473 break
20474 fi
20475 done
20476 if test -z "$haveit"; then
c10a2228 20477 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
66170b30
JF
20478 fi
20479 done
20480
20481
66170b30
JF
20482else
20483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20484$as_echo "no" >&6; }
20485fi
20486
c10a2228
JF
20487 ac_ext=cpp
20488ac_cpp='$CXXCPP $CPPFLAGS'
20489ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20490ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20491ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20492
66170b30
JF
20493
20494
c10a2228
JF
20495 ac_ext=cpp
20496ac_cpp='$CXXCPP $CPPFLAGS'
20497ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20498ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20499ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20500
babf7fe8
JF
20501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-parentheses" >&5
20502$as_echo_n "checking for c++ -Wno-parentheses... " >&6; }
66170b30
JF
20503
20504 cy_save=$CXXFLAGS
20505
babf7fe8 20506 for element in -Wno-parentheses; do
66170b30
JF
20507 haveit=
20508 for x in $CXXFLAGS; do
20509
20510 acl_save_prefix="$prefix"
20511 prefix="$acl_final_prefix"
20512 acl_save_exec_prefix="$exec_prefix"
20513 exec_prefix="$acl_final_exec_prefix"
20514 eval x=\"$x\"
20515 exec_prefix="$acl_save_exec_prefix"
20516 prefix="$acl_save_prefix"
20517
20518 if test "X$x" = "X$element"; then
20519 haveit=yes
20520 break
20521 fi
20522 done
20523 if test -z "$haveit"; then
20524 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
20525 fi
20526 done
20527
20528
20529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20530/* end confdefs.h. */
20531
20532_ACEOF
20533if ac_fn_cxx_try_compile "$LINENO"; then :
20534 cy_good=1
20535else
20536 cy_good=0
20537fi
20538rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20539
20540 CXXFLAGS=$cy_save
20541 if test "x$cy_good" = x1; then :
20542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20543$as_echo "yes" >&6; }
20544
babf7fe8 20545 for element in -Wno-parentheses; do
1504c9b8 20546 haveit=
c10a2228 20547 for x in $CXXFLAGS; do
1504c9b8
DWT
20548
20549 acl_save_prefix="$prefix"
20550 prefix="$acl_final_prefix"
20551 acl_save_exec_prefix="$exec_prefix"
20552 exec_prefix="$acl_final_exec_prefix"
20553 eval x=\"$x\"
20554 exec_prefix="$acl_save_exec_prefix"
20555 prefix="$acl_save_prefix"
20556
20557 if test "X$x" = "X$element"; then
20558 haveit=yes
20559 break
20560 fi
20561 done
20562 if test -z "$haveit"; then
c10a2228 20563 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
1504c9b8
DWT
20564 fi
20565 done
20566
20567
c10a2228
JF
20568else
20569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20570$as_echo "no" >&6; }
20571fi
20572
20573 ac_ext=cpp
20574ac_cpp='$CXXCPP $CPPFLAGS'
20575ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20576ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20577ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20578
20579
20580
20581 ac_ext=mm
20582ac_cpp='$OBJCXXCPP $CPPFLAGS'
20583ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20584ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20585ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
20586
babf7fe8
JF
20587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-parentheses" >&5
20588$as_echo_n "checking for c++ -ObjC -Wno-parentheses... " >&6; }
c10a2228
JF
20589
20590 cy_save=$OBJCXXFLAGS
20591
babf7fe8 20592 for element in -Wno-parentheses; do
1504c9b8 20593 haveit=
c10a2228 20594 for x in $OBJCXXFLAGS; do
1504c9b8
DWT
20595
20596 acl_save_prefix="$prefix"
20597 prefix="$acl_final_prefix"
20598 acl_save_exec_prefix="$exec_prefix"
20599 exec_prefix="$acl_final_exec_prefix"
20600 eval x=\"$x\"
20601 exec_prefix="$acl_save_exec_prefix"
20602 prefix="$acl_save_prefix"
20603
20604 if test "X$x" = "X$element"; then
20605 haveit=yes
20606 break
20607 fi
20608 done
20609 if test -z "$haveit"; then
c10a2228 20610 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
1504c9b8
DWT
20611 fi
20612 done
20613
20614
c10a2228
JF
20615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20616/* end confdefs.h. */
20617
20618_ACEOF
20619if ac_fn_objcxx_try_compile "$LINENO"; then :
20620 cy_good=1
20621else
20622 cy_good=0
20623fi
20624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20625
20626 OBJCXXFLAGS=$cy_save
20627 if test "x$cy_good" = x1; then :
20628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20629$as_echo "yes" >&6; }
20630
babf7fe8 20631 for element in -Wno-parentheses; do
1504c9b8 20632 haveit=
c10a2228 20633 for x in $OBJCXXFLAGS; do
1504c9b8
DWT
20634
20635 acl_save_prefix="$prefix"
20636 prefix="$acl_final_prefix"
20637 acl_save_exec_prefix="$exec_prefix"
2ada0541
JF
20638 exec_prefix="$acl_final_exec_prefix"
20639 eval x=\"$x\"
20640 exec_prefix="$acl_save_exec_prefix"
20641 prefix="$acl_save_prefix"
20642
20643 if test "X$x" = "X$element"; then
20644 haveit=yes
20645 break
20646 fi
20647 done
20648 if test -z "$haveit"; then
20649 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
20650 fi
20651 done
20652
20653
20654else
20655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20656$as_echo "no" >&6; }
20657fi
20658
20659 ac_ext=cpp
20660ac_cpp='$CXXCPP $CPPFLAGS'
20661ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20662ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20663ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20664
20665
20666
20667
20668
20669 ac_ext=c
20670ac_cpp='$CPP $CPPFLAGS'
20671ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20672ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20673ac_compiler_gnu=$ac_cv_c_compiler_gnu
20674
20675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-tautological-undefined-compare" >&5
20676$as_echo_n "checking for cc -Wno-tautological-undefined-compare... " >&6; }
20677
20678 cy_save=$CFLAGS
20679
20680 for element in -Wno-tautological-undefined-compare; do
20681 haveit=
20682 for x in $CFLAGS; do
20683
20684 acl_save_prefix="$prefix"
20685 prefix="$acl_final_prefix"
20686 acl_save_exec_prefix="$exec_prefix"
20687 exec_prefix="$acl_final_exec_prefix"
20688 eval x=\"$x\"
20689 exec_prefix="$acl_save_exec_prefix"
20690 prefix="$acl_save_prefix"
20691
20692 if test "X$x" = "X$element"; then
20693 haveit=yes
20694 break
20695 fi
20696 done
20697 if test -z "$haveit"; then
20698 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
20699 fi
20700 done
20701
20702
20703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20704/* end confdefs.h. */
20705
20706_ACEOF
20707if ac_fn_c_try_compile "$LINENO"; then :
20708 cy_good=1
20709else
20710 cy_good=0
20711fi
20712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20713
20714 CFLAGS=$cy_save
20715 if test "x$cy_good" = x1; then :
20716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20717$as_echo "yes" >&6; }
20718
20719 for element in -Wno-tautological-undefined-compare; do
20720 haveit=
20721 for x in $CFLAGS; do
20722
20723 acl_save_prefix="$prefix"
20724 prefix="$acl_final_prefix"
20725 acl_save_exec_prefix="$exec_prefix"
20726 exec_prefix="$acl_final_exec_prefix"
20727 eval x=\"$x\"
20728 exec_prefix="$acl_save_exec_prefix"
20729 prefix="$acl_save_prefix"
20730
20731 if test "X$x" = "X$element"; then
20732 haveit=yes
20733 break
20734 fi
20735 done
20736 if test -z "$haveit"; then
20737 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
20738 fi
20739 done
20740
20741
20742else
20743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20744$as_echo "no" >&6; }
20745fi
20746
20747 ac_ext=cpp
20748ac_cpp='$CXXCPP $CPPFLAGS'
20749ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20750ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20751ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20752
20753
20754
20755 ac_ext=cpp
20756ac_cpp='$CXXCPP $CPPFLAGS'
20757ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20758ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20759ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20760
20761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-tautological-undefined-compare" >&5
20762$as_echo_n "checking for c++ -Wno-tautological-undefined-compare... " >&6; }
20763
20764 cy_save=$CXXFLAGS
20765
20766 for element in -Wno-tautological-undefined-compare; do
20767 haveit=
20768 for x in $CXXFLAGS; do
20769
20770 acl_save_prefix="$prefix"
20771 prefix="$acl_final_prefix"
20772 acl_save_exec_prefix="$exec_prefix"
20773 exec_prefix="$acl_final_exec_prefix"
20774 eval x=\"$x\"
20775 exec_prefix="$acl_save_exec_prefix"
20776 prefix="$acl_save_prefix"
20777
20778 if test "X$x" = "X$element"; then
20779 haveit=yes
20780 break
20781 fi
20782 done
20783 if test -z "$haveit"; then
20784 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
20785 fi
20786 done
20787
20788
20789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20790/* end confdefs.h. */
20791
20792_ACEOF
20793if ac_fn_cxx_try_compile "$LINENO"; then :
20794 cy_good=1
20795else
20796 cy_good=0
20797fi
20798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20799
20800 CXXFLAGS=$cy_save
20801 if test "x$cy_good" = x1; then :
20802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20803$as_echo "yes" >&6; }
20804
20805 for element in -Wno-tautological-undefined-compare; do
20806 haveit=
20807 for x in $CXXFLAGS; do
20808
20809 acl_save_prefix="$prefix"
20810 prefix="$acl_final_prefix"
20811 acl_save_exec_prefix="$exec_prefix"
20812 exec_prefix="$acl_final_exec_prefix"
20813 eval x=\"$x\"
20814 exec_prefix="$acl_save_exec_prefix"
20815 prefix="$acl_save_prefix"
20816
20817 if test "X$x" = "X$element"; then
20818 haveit=yes
20819 break
20820 fi
20821 done
20822 if test -z "$haveit"; then
20823 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
20824 fi
20825 done
20826
20827
20828else
20829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20830$as_echo "no" >&6; }
20831fi
20832
20833 ac_ext=cpp
20834ac_cpp='$CXXCPP $CPPFLAGS'
20835ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20836ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20837ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20838
20839
20840
20841 ac_ext=mm
20842ac_cpp='$OBJCXXCPP $CPPFLAGS'
20843ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20844ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20845ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
20846
20847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-tautological-undefined-compare" >&5
20848$as_echo_n "checking for c++ -ObjC -Wno-tautological-undefined-compare... " >&6; }
20849
20850 cy_save=$OBJCXXFLAGS
20851
20852 for element in -Wno-tautological-undefined-compare; do
20853 haveit=
20854 for x in $OBJCXXFLAGS; do
20855
20856 acl_save_prefix="$prefix"
20857 prefix="$acl_final_prefix"
20858 acl_save_exec_prefix="$exec_prefix"
20859 exec_prefix="$acl_final_exec_prefix"
20860 eval x=\"$x\"
20861 exec_prefix="$acl_save_exec_prefix"
20862 prefix="$acl_save_prefix"
20863
20864 if test "X$x" = "X$element"; then
20865 haveit=yes
20866 break
20867 fi
20868 done
20869 if test -z "$haveit"; then
20870 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
20871 fi
20872 done
20873
20874
20875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20876/* end confdefs.h. */
20877
20878_ACEOF
20879if ac_fn_objcxx_try_compile "$LINENO"; then :
20880 cy_good=1
20881else
20882 cy_good=0
20883fi
20884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20885
20886 OBJCXXFLAGS=$cy_save
20887 if test "x$cy_good" = x1; then :
20888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20889$as_echo "yes" >&6; }
20890
20891 for element in -Wno-tautological-undefined-compare; do
20892 haveit=
20893 for x in $OBJCXXFLAGS; do
20894
20895 acl_save_prefix="$prefix"
20896 prefix="$acl_final_prefix"
20897 acl_save_exec_prefix="$exec_prefix"
1504c9b8
DWT
20898 exec_prefix="$acl_final_exec_prefix"
20899 eval x=\"$x\"
20900 exec_prefix="$acl_save_exec_prefix"
20901 prefix="$acl_save_prefix"
20902
20903 if test "X$x" = "X$element"; then
20904 haveit=yes
20905 break
20906 fi
20907 done
20908 if test -z "$haveit"; then
c10a2228 20909 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
1504c9b8
DWT
20910 fi
20911 done
20912
20913
66170b30
JF
20914else
20915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20916$as_echo "no" >&6; }
1504c9b8 20917fi
1504c9b8 20918
c10a2228
JF
20919 ac_ext=cpp
20920ac_cpp='$CXXCPP $CPPFLAGS'
20921ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20922ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20923ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20924
20925
1504c9b8 20926
1504c9b8 20927
1504c9b8 20928
babf7fe8
JF
20929 ac_ext=c
20930ac_cpp='$CPP $CPPFLAGS'
20931ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20932ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20933ac_compiler_gnu=$ac_cv_c_compiler_gnu
1504c9b8 20934
babf7fe8
JF
20935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-unneeded-internal-declaration" >&5
20936$as_echo_n "checking for cc -Wno-unneeded-internal-declaration... " >&6; }
20937
20938 cy_save=$CFLAGS
20939
20940 for element in -Wno-unneeded-internal-declaration; do
1504c9b8 20941 haveit=
babf7fe8 20942 for x in $CFLAGS; do
1504c9b8
DWT
20943
20944 acl_save_prefix="$prefix"
20945 prefix="$acl_final_prefix"
20946 acl_save_exec_prefix="$exec_prefix"
20947 exec_prefix="$acl_final_exec_prefix"
20948 eval x=\"$x\"
20949 exec_prefix="$acl_save_exec_prefix"
20950 prefix="$acl_save_prefix"
20951
20952 if test "X$x" = "X$element"; then
20953 haveit=yes
20954 break
20955 fi
20956 done
20957 if test -z "$haveit"; then
babf7fe8 20958 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
1504c9b8
DWT
20959 fi
20960 done
20961
66170b30
JF
20962
20963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1504c9b8
DWT
20964/* end confdefs.h. */
20965
a243b558 20966_ACEOF
babf7fe8 20967if ac_fn_c_try_compile "$LINENO"; then :
a243b558
JF
20968 cy_good=1
20969else
20970 cy_good=0
20971fi
babf7fe8 20972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1504c9b8 20973
babf7fe8 20974 CFLAGS=$cy_save
a243b558
JF
20975 if test "x$cy_good" = x1; then :
20976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20977$as_echo "yes" >&6; }
66170b30 20978
babf7fe8 20979 for element in -Wno-unneeded-internal-declaration; do
1504c9b8 20980 haveit=
babf7fe8 20981 for x in $CFLAGS; do
1504c9b8
DWT
20982
20983 acl_save_prefix="$prefix"
20984 prefix="$acl_final_prefix"
20985 acl_save_exec_prefix="$exec_prefix"
20986 exec_prefix="$acl_final_exec_prefix"
20987 eval x=\"$x\"
20988 exec_prefix="$acl_save_exec_prefix"
20989 prefix="$acl_save_prefix"
20990
20991 if test "X$x" = "X$element"; then
20992 haveit=yes
20993 break
20994 fi
20995 done
20996 if test -z "$haveit"; then
babf7fe8 20997 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
1504c9b8
DWT
20998 fi
20999 done
21000
21001
21002else
66170b30
JF
21003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21004$as_echo "no" >&6; }
1504c9b8
DWT
21005fi
21006
babf7fe8
JF
21007 ac_ext=cpp
21008ac_cpp='$CXXCPP $CPPFLAGS'
21009ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21010ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21011ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
296ee9a6 21012
9c60689e 21013
632b71ea 21014
babf7fe8
JF
21015 ac_ext=cpp
21016ac_cpp='$CXXCPP $CPPFLAGS'
21017ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21018ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21019ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
632b71ea 21020
babf7fe8
JF
21021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-unneeded-internal-declaration" >&5
21022$as_echo_n "checking for c++ -Wno-unneeded-internal-declaration... " >&6; }
9c60689e 21023
babf7fe8 21024 cy_save=$CXXFLAGS
9c60689e 21025
babf7fe8
JF
21026 for element in -Wno-unneeded-internal-declaration; do
21027 haveit=
21028 for x in $CXXFLAGS; do
9c60689e 21029
babf7fe8
JF
21030 acl_save_prefix="$prefix"
21031 prefix="$acl_final_prefix"
21032 acl_save_exec_prefix="$exec_prefix"
21033 exec_prefix="$acl_final_exec_prefix"
21034 eval x=\"$x\"
21035 exec_prefix="$acl_save_exec_prefix"
21036 prefix="$acl_save_prefix"
66170b30 21037
babf7fe8
JF
21038 if test "X$x" = "X$element"; then
21039 haveit=yes
21040 break
21041 fi
21042 done
21043 if test -z "$haveit"; then
21044 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
21045 fi
21046 done
7eda51e0 21047
7eda51e0 21048
babf7fe8
JF
21049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21050/* end confdefs.h. */
7eda51e0 21051
7eda51e0 21052_ACEOF
babf7fe8
JF
21053if ac_fn_cxx_try_compile "$LINENO"; then :
21054 cy_good=1
9c60689e 21055else
babf7fe8 21056 cy_good=0
9c60689e 21057fi
babf7fe8 21058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7eda51e0 21059
babf7fe8
JF
21060 CXXFLAGS=$cy_save
21061 if test "x$cy_good" = x1; then :
21062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21063$as_echo "yes" >&6; }
7eda51e0 21064
babf7fe8 21065 for element in -Wno-unneeded-internal-declaration; do
7eda51e0 21066 haveit=
babf7fe8 21067 for x in $CXXFLAGS; do
9c60689e 21068
7eda51e0
JF
21069 acl_save_prefix="$prefix"
21070 prefix="$acl_final_prefix"
21071 acl_save_exec_prefix="$exec_prefix"
21072 exec_prefix="$acl_final_exec_prefix"
21073 eval x=\"$x\"
21074 exec_prefix="$acl_save_exec_prefix"
21075 prefix="$acl_save_prefix"
9c60689e 21076
7eda51e0
JF
21077 if test "X$x" = "X$element"; then
21078 haveit=yes
21079 break
21080 fi
21081 done
21082 if test -z "$haveit"; then
babf7fe8 21083 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
7eda51e0
JF
21084 fi
21085 done
9c60689e 21086
9c60689e 21087
5053a6d1 21088else
babf7fe8
JF
21089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21090$as_echo "no" >&6; }
632b71ea
DWT
21091fi
21092
babf7fe8
JF
21093 ac_ext=cpp
21094ac_cpp='$CXXCPP $CPPFLAGS'
21095ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21096ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21097ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
632b71ea
DWT
21098
21099
5053a6d1 21100
babf7fe8
JF
21101 ac_ext=mm
21102ac_cpp='$OBJCXXCPP $CPPFLAGS'
21103ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21104ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21105ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
5053a6d1 21106
babf7fe8
JF
21107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-unneeded-internal-declaration" >&5
21108$as_echo_n "checking for c++ -ObjC -Wno-unneeded-internal-declaration... " >&6; }
632b71ea 21109
babf7fe8 21110 cy_save=$OBJCXXFLAGS
632b71ea 21111
babf7fe8 21112 for element in -Wno-unneeded-internal-declaration; do
5053a6d1 21113 haveit=
babf7fe8 21114 for x in $OBJCXXFLAGS; do
632b71ea
DWT
21115
21116 acl_save_prefix="$prefix"
21117 prefix="$acl_final_prefix"
21118 acl_save_exec_prefix="$exec_prefix"
21119 exec_prefix="$acl_final_exec_prefix"
5053a6d1 21120 eval x=\"$x\"
632b71ea
DWT
21121 exec_prefix="$acl_save_exec_prefix"
21122 prefix="$acl_save_prefix"
21123
5053a6d1
DWT
21124 if test "X$x" = "X$element"; then
21125 haveit=yes
21126 break
21127 fi
21128 done
21129 if test -z "$haveit"; then
babf7fe8 21130 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
5053a6d1
DWT
21131 fi
21132 done
21133
66170b30 21134
babf7fe8
JF
21135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21136/* end confdefs.h. */
21137
21138_ACEOF
21139if ac_fn_objcxx_try_compile "$LINENO"; then :
21140 cy_good=1
21141else
21142 cy_good=0
21143fi
21144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21145
21146 OBJCXXFLAGS=$cy_save
21147 if test "x$cy_good" = x1; then :
21148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21149$as_echo "yes" >&6; }
21150
21151 for element in -Wno-unneeded-internal-declaration; do
7eda51e0 21152 haveit=
babf7fe8 21153 for x in $OBJCXXFLAGS; do
7eda51e0
JF
21154
21155 acl_save_prefix="$prefix"
21156 prefix="$acl_final_prefix"
21157 acl_save_exec_prefix="$exec_prefix"
21158 exec_prefix="$acl_final_exec_prefix"
21159 eval x=\"$x\"
21160 exec_prefix="$acl_save_exec_prefix"
21161 prefix="$acl_save_prefix"
21162
21163 if test "X$x" = "X$element"; then
21164 haveit=yes
21165 break
21166 fi
21167 done
21168 if test -z "$haveit"; then
babf7fe8 21169 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
7eda51e0
JF
21170 fi
21171 done
66170b30
JF
21172
21173
babf7fe8
JF
21174else
21175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21176$as_echo "no" >&6; }
5053a6d1 21177fi
7eda51e0 21178
babf7fe8
JF
21179 ac_ext=cpp
21180ac_cpp='$CXXCPP $CPPFLAGS'
21181ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21182ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21183ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5053a6d1 21184
5053a6d1
DWT
21185
21186
5053a6d1 21187
babf7fe8
JF
21188
21189
2ca4dab3 21190
be2fde87
JF
21191ac_ext=c
21192ac_cpp='$CPP $CPPFLAGS'
21193ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21194ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21195ac_compiler_gnu=$ac_cv_c_compiler_gnu
21196
21197ax_pthread_ok=no
21198
21199# We used to check for pthread.h first, but this fails if pthread.h
2ca4dab3 21200# requires special compiler flags (e.g. on Tru64 or Sequent).
be2fde87
JF
21201# It gets checked for in the link test anyway.
21202
21203# First of all, check if the user has set any of the PTHREAD_LIBS,
21204# etcetera environment variables, and if threads linking works using
21205# them:
21206if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
21207 save_CFLAGS="$CFLAGS"
21208 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
21209 save_LIBS="$LIBS"
21210 LIBS="$PTHREAD_LIBS $LIBS"
2ca4dab3
JF
21211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
21212$as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
be2fde87
JF
21213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21214/* end confdefs.h. */
21215
21216/* Override any GCC internal prototype to avoid an error.
21217 Use char because int might match the return type of a GCC
21218 builtin and then its argument prototype would still apply. */
21219#ifdef __cplusplus
21220extern "C"
21221#endif
21222char pthread_join ();
21223int
21224main ()
21225{
21226return pthread_join ();
21227 ;
21228 return 0;
21229}
21230_ACEOF
21231if ac_fn_c_try_link "$LINENO"; then :
21232 ax_pthread_ok=yes
21233fi
21234rm -f core conftest.err conftest.$ac_objext \
21235 conftest$ac_exeext conftest.$ac_ext
21236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
21237$as_echo "$ax_pthread_ok" >&6; }
21238 if test x"$ax_pthread_ok" = xno; then
21239 PTHREAD_LIBS=""
21240 PTHREAD_CFLAGS=""
21241 fi
21242 LIBS="$save_LIBS"
21243 CFLAGS="$save_CFLAGS"
21244fi
21245
21246# We must check for the threads library under a number of different
21247# names; the ordering is very important because some systems
21248# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
21249# libraries is broken (non-POSIX).
21250
21251# Create a list of thread flags to try. Items starting with a "-" are
21252# C compiler flags, and other items are library names, except for "none"
21253# which indicates that we try without any flags at all, and "pthread-config"
21254# which is a program returning the flags for the Pth emulation library.
21255
2ca4dab3 21256ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mt -mthreads pthread --thread-safe pthread-config"
be2fde87
JF
21257
21258# The ordering *is* (sometimes) important. Some notes on the
21259# individual items follow:
21260
21261# pthreads: AIX (must check this before -lpthread)
21262# none: in case threads are in libc; should be tried before -Kthread and
21263# other compiler flags to prevent continual compiler warnings
21264# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
21265# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
21266# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
2ca4dab3 21267# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
be2fde87 21268# -pthreads: Solaris/gcc
be2fde87 21269# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
2ca4dab3
JF
21270# doesn't hurt to check since this sometimes defines pthreads and
21271# -D_REENTRANT too), HP C (must be checked before -lpthread, which
21272# is present but should not be used directly)
21273# -mthreads: Mingw32/gcc, Lynx/gcc
be2fde87
JF
21274# pthread: Linux, etcetera
21275# --thread-safe: KAI C++
21276# pthread-config: use pthread-config program (for GNU Pth library)
21277
2ca4dab3
JF
21278case $host_os in
21279
21280 hpux*)
21281
21282 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
21283 # multi-threading and also sets -lpthread."
21284
21285 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
21286 ;;
21287
21288 openedition*)
21289
21290 # IBM z/OS requires a feature-test macro to be defined in order to
21291 # enable POSIX threads at all, so give the user a hint if this is
21292 # not set. (We don't define these ourselves, as they can affect
21293 # other portions of the system API in unpredictable ways.)
21294
21295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21296/* end confdefs.h. */
21297
21298# if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
21299 AX_PTHREAD_ZOS_MISSING
21300# endif
21301
21302_ACEOF
21303if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21304 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
21305 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
21306$as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
21307fi
21308rm -f conftest*
21309
21310 ;;
21311
be2fde87
JF
21312 solaris*)
21313
2ca4dab3
JF
21314 # Newer versions of Solaris require the "-mt -lpthread" pair, and we
21315 # check that first. On some older versions, libc contains stubbed
be2fde87
JF
21316 # (non-functional) versions of the pthreads routines, so link-based
21317 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
21318 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
21319 # a function called by this macro, so we could check for that, but
2ca4dab3
JF
21320 # who knows whether they'll stub that too in a future libc.) So
21321 # we'll look for -pthreads and -lpthread shortly thereafter.
be2fde87 21322
2ca4dab3 21323 ax_pthread_flags="-mt,pthread -pthreads -pthread pthread $ax_pthread_flags"
be2fde87
JF
21324 ;;
21325esac
21326
2ca4dab3
JF
21327# Older versions of Clang only give a warning instead of an error for an
21328# unrecognized option, unless we specify -Werror. (We throw in some extra
21329# Clang warning flags for good measure.)
be2fde87 21330
2ca4dab3
JF
21331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs certain flags to reject unknown flags" >&5
21332$as_echo_n "checking if compiler needs certain flags to reject unknown flags... " >&6; }
21333if ${ax_cv_PTHREAD_REJECT_UNKNOWN+:} false; then :
21334 $as_echo_n "(cached) " >&6
21335else
21336 ax_cv_PTHREAD_REJECT_UNKNOWN=unknown
21337 save_CFLAGS="$CFLAGS"
21338 ax_pthread_extra_flags="-Wunknown-warning-option -Wunused-command-line-argument"
21339 CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wfoobaz -foobaz"
21340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
be2fde87
JF
21341/* end confdefs.h. */
21342int foo(void);
21343int
21344main ()
21345{
21346foo()
21347 ;
21348 return 0;
21349}
21350_ACEOF
21351if ac_fn_c_try_compile "$LINENO"; then :
2ca4dab3 21352 ax_cv_PTHREAD_REJECT_UNKNOWN="-Werror $ax_pthread_extra_flags"
be2fde87 21353else
2ca4dab3 21354 ax_cv_PTHREAD_REJECT_UNKNOWN=no
be2fde87
JF
21355fi
21356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2ca4dab3
JF
21357 CFLAGS="$save_CFLAGS"
21358
21359fi
21360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_REJECT_UNKNOWN" >&5
21361$as_echo "$ax_cv_PTHREAD_REJECT_UNKNOWN" >&6; }
21362ax_pthread_extra_flags=
21363if test "x$ax_cv_PTHREAD_REJECT_UNKNOWN" != "xno"; then :
21364 ax_pthread_extra_flags="$ax_cv_PTHREAD_REJECT_UNKNOWN"
21365fi
be2fde87
JF
21366
21367if test x"$ax_pthread_ok" = xno; then
21368for flag in $ax_pthread_flags; do
21369
21370 case $flag in
21371 none)
21372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
21373$as_echo_n "checking whether pthreads work without any flags... " >&6; }
21374 ;;
21375
2ca4dab3
JF
21376 -mt,pthread)
21377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
21378$as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
21379 PTHREAD_CFLAGS="-mt"
21380 PTHREAD_LIBS="-lpthread"
21381 ;;
21382
be2fde87
JF
21383 -*)
21384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
21385$as_echo_n "checking whether pthreads work with $flag... " >&6; }
21386 PTHREAD_CFLAGS="$flag"
21387 ;;
21388
21389 pthread-config)
21390 # Extract the first word of "pthread-config", so it can be a program name with args.
21391set dummy pthread-config; ac_word=$2
21392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21393$as_echo_n "checking for $ac_word... " >&6; }
21394if ${ac_cv_prog_ax_pthread_config+:} false; then :
21395 $as_echo_n "(cached) " >&6
21396else
21397 if test -n "$ax_pthread_config"; then
21398 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
21399else
21400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21401for as_dir in $PATH
21402do
21403 IFS=$as_save_IFS
21404 test -z "$as_dir" && as_dir=.
21405 for ac_exec_ext in '' $ac_executable_extensions; do
21406 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21407 ac_cv_prog_ax_pthread_config="yes"
21408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21409 break 2
21410 fi
21411done
21412 done
21413IFS=$as_save_IFS
21414
21415 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
21416fi
21417fi
21418ax_pthread_config=$ac_cv_prog_ax_pthread_config
21419if test -n "$ax_pthread_config"; then
21420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
21421$as_echo "$ax_pthread_config" >&6; }
21422else
21423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21424$as_echo "no" >&6; }
21425fi
21426
21427
21428 if test x"$ax_pthread_config" = xno; then continue; fi
21429 PTHREAD_CFLAGS="`pthread-config --cflags`"
21430 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
21431 ;;
21432
21433 *)
21434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
21435$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
21436 PTHREAD_LIBS="-l$flag"
21437 ;;
21438 esac
21439
21440 save_LIBS="$LIBS"
21441 save_CFLAGS="$CFLAGS"
21442 LIBS="$PTHREAD_LIBS $LIBS"
21443 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
21444
21445 # Check for various functions. We must include pthread.h,
21446 # since some functions may be macros. (On the Sequent, we
21447 # need a special flag -Kthread to make this header compile.)
21448 # We check for pthread_join because it is in -lpthread on IRIX
21449 # while pthread_create is in libc. We check for pthread_attr_init
21450 # due to DEC craziness with -lpthreads. We check for
21451 # pthread_cleanup_push because it is one of the few pthread
21452 # functions on Solaris that doesn't have a non-functional libc stub.
21453 # We try pthread_create on general principles.
21454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21455/* end confdefs.h. */
21456#include <pthread.h>
21457 static void routine(void *a) { a = 0; }
21458 static void *start_routine(void *a) { return a; }
21459int
21460main ()
21461{
21462pthread_t th; pthread_attr_t attr;
21463 pthread_create(&th, 0, start_routine, 0);
21464 pthread_join(th, 0);
21465 pthread_attr_init(&attr);
21466 pthread_cleanup_push(routine, 0);
21467 pthread_cleanup_pop(0) /* ; */
21468 ;
21469 return 0;
21470}
21471_ACEOF
21472if ac_fn_c_try_link "$LINENO"; then :
21473 ax_pthread_ok=yes
21474fi
21475rm -f core conftest.err conftest.$ac_objext \
21476 conftest$ac_exeext conftest.$ac_ext
21477
21478 LIBS="$save_LIBS"
21479 CFLAGS="$save_CFLAGS"
21480
21481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
21482$as_echo "$ax_pthread_ok" >&6; }
21483 if test "x$ax_pthread_ok" = xyes; then
21484 break;
21485 fi
21486
21487 PTHREAD_LIBS=""
21488 PTHREAD_CFLAGS=""
21489done
21490fi
21491
21492# Various other checks:
21493if test "x$ax_pthread_ok" = xyes; then
21494 save_LIBS="$LIBS"
21495 LIBS="$PTHREAD_LIBS $LIBS"
21496 save_CFLAGS="$CFLAGS"
21497 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
21498
21499 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
21500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
21501$as_echo_n "checking for joinable pthread attribute... " >&6; }
2ca4dab3
JF
21502if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
21503 $as_echo_n "(cached) " >&6
21504else
21505 ax_cv_PTHREAD_JOINABLE_ATTR=unknown
21506 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
21507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
be2fde87
JF
21508/* end confdefs.h. */
21509#include <pthread.h>
21510int
21511main ()
21512{
21513int attr = $attr; return attr /* ; */
21514 ;
21515 return 0;
21516}
21517_ACEOF
21518if ac_fn_c_try_link "$LINENO"; then :
2ca4dab3 21519 ax_cv_PTHREAD_JOINABLE_ATTR=$attr; break
be2fde87
JF
21520fi
21521rm -f core conftest.err conftest.$ac_objext \
21522 conftest$ac_exeext conftest.$ac_ext
2ca4dab3
JF
21523 done
21524
21525fi
21526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
21527$as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
21528 if test "$ax_cv_PTHREAD_JOINABLE_ATTR" != unknown && \
21529 test "$ax_cv_PTHREAD_JOINABLE_ATTR" != PTHREAD_CREATE_JOINABLE; then :
be2fde87
JF
21530
21531cat >>confdefs.h <<_ACEOF
2ca4dab3 21532#define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
be2fde87
JF
21533_ACEOF
21534
2ca4dab3 21535fi
be2fde87
JF
21536
21537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
21538$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
2ca4dab3
JF
21539if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
21540 $as_echo_n "(cached) " >&6
21541else
21542 ax_cv_PTHREAD_SPECIAL_FLAGS=no
21543 ax_pthread_special_flags_added=no
21544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21545/* end confdefs.h. */
21546
21547# if !defined(_REENTRANT) && !defined(_THREAD_SAFE)
21548 AX_PTHREAD_NEED_SPECIAL_FLAG
21549# endif
21550
21551_ACEOF
21552if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21553 $EGREP "AX_PTHREAD_NEED_SPECIAL_FLAG" >/dev/null 2>&1; then :
21554 case $host_os in
21555 aix* | freebsd*)
21556 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_THREAD_SAFE"
21557 ;;
21558 darwin* | hpux* | osf* | solaris*)
21559 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_REENTRANT"
21560 ;;
21561 esac
21562
21563fi
21564rm -f conftest*
21565
21566
21567fi
21568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
21569$as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
21570 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
21571 test "x$ax_pthread_special_flags_added" != "xyes"; then :
21572 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
21573 ax_pthread_special_flags_added=yes
21574fi
be2fde87
JF
21575
21576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
21577$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
21578if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
21579 $as_echo_n "(cached) " >&6
21580else
2ca4dab3 21581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
be2fde87
JF
21582/* end confdefs.h. */
21583#include <pthread.h>
21584int
21585main ()
21586{
21587int i = PTHREAD_PRIO_INHERIT;
21588 ;
21589 return 0;
21590}
21591_ACEOF
21592if ac_fn_c_try_link "$LINENO"; then :
21593 ax_cv_PTHREAD_PRIO_INHERIT=yes
21594else
21595 ax_cv_PTHREAD_PRIO_INHERIT=no
21596fi
21597rm -f core conftest.err conftest.$ac_objext \
21598 conftest$ac_exeext conftest.$ac_ext
21599
21600fi
21601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
21602$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
21603 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
21604
21605$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
21606
21607fi
21608
21609 LIBS="$save_LIBS"
21610 CFLAGS="$save_CFLAGS"
21611
21612 # More AIX lossage: compile with *_r variant
21613 if test "x$GCC" != xyes; then
21614 case $host_os in
21615 aix*)
21616 case "x/$CC" in #(
21617 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
21618 #handle absolute path differently from PATH based program lookup
21619 case "x$CC" in #(
21620 x/*) :
21621 if as_fn_executable_p ${CC}_r; then :
21622 PTHREAD_CC="${CC}_r"
21623fi ;; #(
21624 *) :
21625 for ac_prog in ${CC}_r
21626do
21627 # Extract the first word of "$ac_prog", so it can be a program name with args.
21628set dummy $ac_prog; ac_word=$2
21629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21630$as_echo_n "checking for $ac_word... " >&6; }
21631if ${ac_cv_prog_PTHREAD_CC+:} false; then :
21632 $as_echo_n "(cached) " >&6
21633else
21634 if test -n "$PTHREAD_CC"; then
21635 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
21636else
21637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21638for as_dir in $PATH
21639do
21640 IFS=$as_save_IFS
21641 test -z "$as_dir" && as_dir=.
21642 for ac_exec_ext in '' $ac_executable_extensions; do
21643 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21644 ac_cv_prog_PTHREAD_CC="$ac_prog"
21645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21646 break 2
21647 fi
21648done
21649 done
21650IFS=$as_save_IFS
21651
21652fi
21653fi
21654PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
21655if test -n "$PTHREAD_CC"; then
21656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
21657$as_echo "$PTHREAD_CC" >&6; }
21658else
21659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21660$as_echo "no" >&6; }
21661fi
21662
21663
21664 test -n "$PTHREAD_CC" && break
21665done
21666test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
21667 ;;
21668esac ;; #(
21669 *) :
21670 ;;
21671esac
21672 ;;
21673 esac
21674 fi
21675fi
21676
21677test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
21678
21679
21680
21681
21682
21683# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
21684if test x"$ax_pthread_ok" = xyes; then
21685
21686$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
21687
21688 :
21689else
21690 ax_pthread_ok=no
21691
21692fi
21693ac_ext=cpp
21694ac_cpp='$CXXCPP $CPPFLAGS'
21695ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21696ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21697ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21698
21699
21700
21701
21702
babf7fe8
JF
21703
21704
21705
21706
21707# Check whether --enable-javascript was given.
21708if test "${enable_javascript+set}" = set; then :
21709 enableval=$enable_javascript;
21710 case $enableval in #(
21711 yes) :
21712
21713
21714
21715
21716 cy_save=$LIBS
21717 LIBS=
9918a0fa
JF
21718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing JSEvaluateScript" >&5
21719$as_echo_n "checking for library containing JSEvaluateScript... " >&6; }
21720if ${ac_cv_search_JSEvaluateScript+:} false; then :
21721 $as_echo_n "(cached) " >&6
21722else
21723 ac_func_search_save_LIBS=$LIBS
21724cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21725/* end confdefs.h. */
21726
21727/* Override any GCC internal prototype to avoid an error.
21728 Use char because int might match the return type of a GCC
21729 builtin and then its argument prototype would still apply. */
21730#ifdef __cplusplus
21731extern "C"
21732#endif
21733char JSEvaluateScript ();
21734int
21735main ()
21736{
21737return JSEvaluateScript ();
21738 ;
21739 return 0;
21740}
21741_ACEOF
21742for ac_lib in '' JavaScriptCore; do
21743 if test -z "$ac_lib"; then
21744 ac_res="none required"
21745 else
21746 ac_res=-l$ac_lib
21747 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21748 fi
21749 if ac_fn_cxx_try_link "$LINENO"; then :
21750 ac_cv_search_JSEvaluateScript=$ac_res
21751fi
21752rm -f core conftest.err conftest.$ac_objext \
21753 conftest$ac_exeext
21754 if ${ac_cv_search_JSEvaluateScript+:} false; then :
21755 break
21756fi
21757done
21758if ${ac_cv_search_JSEvaluateScript+:} false; then :
21759
21760else
21761 ac_cv_search_JSEvaluateScript=no
21762fi
21763rm conftest.$ac_ext
21764LIBS=$ac_func_search_save_LIBS
21765fi
21766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_JSEvaluateScript" >&5
21767$as_echo "$ac_cv_search_JSEvaluateScript" >&6; }
21768ac_res=$ac_cv_search_JSEvaluateScript
21769if test "$ac_res" != no; then :
21770 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21771
21772 CY_EXECUTE=1
21773
21774
21775else
babf7fe8
JF
21776
21777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
21778$as_echo_n "checking for framework JavaScriptCore... " >&6; }
21779if ${ac_cv_framework_JavaScriptCore+:} false; then :
21780 $as_echo_n "(cached) " >&6
21781else
21782
21783 ac_check_framework_save_LIBS=$LIBS
21784 LIBS="-framework JavaScriptCore $LIBS"
21785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21786/* end confdefs.h. */
21787
21788 #include <JavaScriptCore/JSBase.h>
21789
21790int
21791main ()
21792{
21793
21794 JSEvaluateScript(0, 0, 0, 0, 0, 0);
21795
21796 ;
21797 return 0;
21798}
21799_ACEOF
21800if ac_fn_cxx_try_link "$LINENO"; then :
21801
21802 ac_cv_framework_JavaScriptCore=yes
21803
21804else
21805 ac_cv_framework_JavaScriptCore=no
21806fi
21807rm -f core conftest.err conftest.$ac_objext \
21808 conftest$ac_exeext conftest.$ac_ext
21809 LIBS=$ac_check_framework_save_LIBS
21810
21811fi
21812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
21813$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
21814 if test $ac_cv_framework_JavaScriptCore = yes; then :
21815
21816
21817 for element in "-framework JavaScriptCore"; do
21818 haveit=
21819 for x in $LIBS; do
21820
21821 acl_save_prefix="$prefix"
21822 prefix="$acl_final_prefix"
21823 acl_save_exec_prefix="$exec_prefix"
21824 exec_prefix="$acl_final_exec_prefix"
21825 eval x=\"$x\"
21826 exec_prefix="$acl_save_exec_prefix"
21827 prefix="$acl_save_prefix"
21828
21829 if test "X$x" = "X$element"; then
21830 haveit=yes
21831 break
21832 fi
21833 done
21834 if test -z "$haveit"; then
21835 LIBS="${LIBS}${LIBS:+ }$element"
21836 fi
21837 done
21838
21839
21840 CY_EXECUTE=1
21841
21842
21843
21844else
21845
ccb4e34c 21846 for cy_webkit_pkg in "javascriptcoregtk-4.0"; do
babf7fe8
JF
21847
21848pkg_failed=no
21849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
7eda51e0 21850$as_echo_n "checking for WEBKIT... " >&6; }
5053a6d1 21851
7eda51e0
JF
21852if test -n "$WEBKIT_CFLAGS"; then
21853 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
21854 elif test -n "$PKG_CONFIG"; then
21855 if test -n "$PKG_CONFIG" && \
21856 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
21857 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
21858 ac_status=$?
21859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21860 test $ac_status = 0; }; then
21861 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "$cy_webkit_pkg" 2>/dev/null`
83c6fec8 21862 test "x$?" != "x0" && pkg_failed=yes
7eda51e0
JF
21863else
21864 pkg_failed=yes
21865fi
21866 else
21867 pkg_failed=untried
21868fi
21869if test -n "$WEBKIT_LIBS"; then
21870 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
21871 elif test -n "$PKG_CONFIG"; then
21872 if test -n "$PKG_CONFIG" && \
21873 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
21874 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
21875 ac_status=$?
21876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21877 test $ac_status = 0; }; then
21878 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "$cy_webkit_pkg" 2>/dev/null`
83c6fec8 21879 test "x$?" != "x0" && pkg_failed=yes
7eda51e0
JF
21880else
21881 pkg_failed=yes
21882fi
21883 else
21884 pkg_failed=untried
21885fi
632b71ea 21886
7eda51e0
JF
21887
21888
21889if test $pkg_failed = yes; then
21890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21891$as_echo "no" >&6; }
21892
21893if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21894 _pkg_short_errors_supported=yes
21895else
21896 _pkg_short_errors_supported=no
21897fi
21898 if test $_pkg_short_errors_supported = yes; then
83c6fec8 21899 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1`
7eda51e0 21900 else
83c6fec8 21901 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1`
7eda51e0
JF
21902 fi
21903 # Put the nasty error message in config.log where it belongs
21904 echo "$WEBKIT_PKG_ERRORS" >&5
21905
21906 :
21907elif test $pkg_failed = untried; then
21908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21909$as_echo "no" >&6; }
21910 :
21911else
21912 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
21913 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
21914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21915$as_echo "yes" >&6; }
21916
21917 CY_EXECUTE=1
21918
21919
7eda51e0
JF
21920 for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do
21921 haveit=
d70419f1 21922 for x in $CPPFLAGS; do
5053a6d1 21923
7eda51e0
JF
21924 acl_save_prefix="$prefix"
21925 prefix="$acl_final_prefix"
21926 acl_save_exec_prefix="$exec_prefix"
21927 exec_prefix="$acl_final_exec_prefix"
21928 eval x=\"$x\"
21929 exec_prefix="$acl_save_exec_prefix"
21930 prefix="$acl_save_prefix"
5053a6d1 21931
7eda51e0
JF
21932 if test "X$x" = "X$element"; then
21933 haveit=yes
21934 break
21935 fi
21936 done
21937 if test -z "$haveit"; then
d70419f1 21938 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7eda51e0
JF
21939 fi
21940 done
5053a6d1 21941
5053a6d1 21942
7eda51e0 21943 for element in `$PKG_CONFIG --libs $cy_webkit_pkg`; do
632b71ea 21944 haveit=
5053a6d1 21945 for x in $LIBS; do
9c60689e 21946
632b71ea
DWT
21947 acl_save_prefix="$prefix"
21948 prefix="$acl_final_prefix"
21949 acl_save_exec_prefix="$exec_prefix"
21950 exec_prefix="$acl_final_exec_prefix"
21951 eval x=\"$x\"
21952 exec_prefix="$acl_save_exec_prefix"
21953 prefix="$acl_save_prefix"
21954
21955 if test "X$x" = "X$element"; then
21956 haveit=yes
21957 break
21958 fi
21959 done
21960 if test -z "$haveit"; then
5053a6d1 21961 LIBS="${LIBS}${LIBS:+ }$element"
632b71ea
DWT
21962 fi
21963 done
b128dfee 21964
66170b30 21965
7eda51e0
JF
21966fi; if test "x$CY_EXECUTE" = x1; then break; fi
21967 done
5053a6d1
DWT
21968
21969fi
9918a0fa
JF
21970fi
21971
babf7fe8
JF
21972 LTJAVASCRIPTCORE=$LIBS
21973 LIBS=$cy_save
21974
21975
7eda51e0 21976 ;; #(
babf7fe8 21977 no) :
7eda51e0 21978
babf7fe8
JF
21979 CY_EXECUTE=0
21980 ;; #(
21981 JavaScriptCore) :
c823f118 21982
5053a6d1
DWT
21983
21984
babf7fe8
JF
21985 cy_save=$LIBS
21986 LIBS=
9918a0fa
JF
21987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing JSEvaluateScript" >&5
21988$as_echo_n "checking for library containing JSEvaluateScript... " >&6; }
21989if ${ac_cv_search_JSEvaluateScript+:} false; then :
21990 $as_echo_n "(cached) " >&6
21991else
21992 ac_func_search_save_LIBS=$LIBS
21993cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21994/* end confdefs.h. */
21995
21996/* Override any GCC internal prototype to avoid an error.
21997 Use char because int might match the return type of a GCC
21998 builtin and then its argument prototype would still apply. */
21999#ifdef __cplusplus
22000extern "C"
22001#endif
22002char JSEvaluateScript ();
22003int
22004main ()
22005{
22006return JSEvaluateScript ();
22007 ;
22008 return 0;
22009}
22010_ACEOF
22011for ac_lib in '' JavaScriptCore; do
22012 if test -z "$ac_lib"; then
22013 ac_res="none required"
22014 else
22015 ac_res=-l$ac_lib
22016 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22017 fi
22018 if ac_fn_cxx_try_link "$LINENO"; then :
22019 ac_cv_search_JSEvaluateScript=$ac_res
22020fi
22021rm -f core conftest.err conftest.$ac_objext \
22022 conftest$ac_exeext
22023 if ${ac_cv_search_JSEvaluateScript+:} false; then :
22024 break
22025fi
22026done
22027if ${ac_cv_search_JSEvaluateScript+:} false; then :
22028
22029else
22030 ac_cv_search_JSEvaluateScript=no
22031fi
22032rm conftest.$ac_ext
22033LIBS=$ac_func_search_save_LIBS
22034fi
22035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_JSEvaluateScript" >&5
22036$as_echo "$ac_cv_search_JSEvaluateScript" >&6; }
22037ac_res=$ac_cv_search_JSEvaluateScript
22038if test "$ac_res" != no; then :
22039 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22040
22041 CY_EXECUTE=1
22042
22043
22044else
babf7fe8 22045
5053a6d1
DWT
22046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
22047$as_echo_n "checking for framework JavaScriptCore... " >&6; }
ee134472 22048if ${ac_cv_framework_JavaScriptCore+:} false; then :
c823f118
DWT
22049 $as_echo_n "(cached) " >&6
22050else
22051
5053a6d1
DWT
22052 ac_check_framework_save_LIBS=$LIBS
22053 LIBS="-framework JavaScriptCore $LIBS"
22054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
632b71ea 22055/* end confdefs.h. */
5053a6d1 22056
7eda51e0 22057 #include <JavaScriptCore/JSBase.h>
5053a6d1 22058
632b71ea
DWT
22059int
22060main ()
22061{
66170b30 22062
7eda51e0 22063 JSEvaluateScript(0, 0, 0, 0, 0, 0);
66170b30 22064
632b71ea
DWT
22065 ;
22066 return 0;
22067}
22068_ACEOF
5053a6d1
DWT
22069if ac_fn_cxx_try_link "$LINENO"; then :
22070
22071 ac_cv_framework_JavaScriptCore=yes
22072
22073else
22074 ac_cv_framework_JavaScriptCore=no
632b71ea
DWT
22075fi
22076rm -f core conftest.err conftest.$ac_objext \
22077 conftest$ac_exeext conftest.$ac_ext
5053a6d1 22078 LIBS=$ac_check_framework_save_LIBS
b128dfee 22079
c823f118 22080fi
5053a6d1
DWT
22081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
22082$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
22083 if test $ac_cv_framework_JavaScriptCore = yes; then :
c823f118
DWT
22084
22085
7eda51e0 22086 for element in "-framework JavaScriptCore"; do
5053a6d1
DWT
22087 haveit=
22088 for x in $LIBS; do
22089
22090 acl_save_prefix="$prefix"
22091 prefix="$acl_final_prefix"
22092 acl_save_exec_prefix="$exec_prefix"
22093 exec_prefix="$acl_final_exec_prefix"
22094 eval x=\"$x\"
22095 exec_prefix="$acl_save_exec_prefix"
22096 prefix="$acl_save_prefix"
22097
22098 if test "X$x" = "X$element"; then
22099 haveit=yes
22100 break
22101 fi
22102 done
22103 if test -z "$haveit"; then
22104 LIBS="${LIBS}${LIBS:+ }$element"
22105 fi
22106 done
c823f118 22107
66170b30 22108
7eda51e0
JF
22109 CY_EXECUTE=1
22110
22111
22112
22113else
22114
ccb4e34c 22115 for cy_webkit_pkg in "javascriptcoregtk-4.0"; do
7eda51e0
JF
22116
22117pkg_failed=no
22118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
22119$as_echo_n "checking for WEBKIT... " >&6; }
22120
22121if test -n "$WEBKIT_CFLAGS"; then
22122 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
22123 elif test -n "$PKG_CONFIG"; then
22124 if test -n "$PKG_CONFIG" && \
22125 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
22126 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
22127 ac_status=$?
22128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22129 test $ac_status = 0; }; then
22130 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "$cy_webkit_pkg" 2>/dev/null`
83c6fec8 22131 test "x$?" != "x0" && pkg_failed=yes
7eda51e0
JF
22132else
22133 pkg_failed=yes
22134fi
22135 else
22136 pkg_failed=untried
22137fi
22138if test -n "$WEBKIT_LIBS"; then
22139 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
22140 elif test -n "$PKG_CONFIG"; then
22141 if test -n "$PKG_CONFIG" && \
22142 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
22143 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
22144 ac_status=$?
22145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22146 test $ac_status = 0; }; then
22147 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "$cy_webkit_pkg" 2>/dev/null`
83c6fec8 22148 test "x$?" != "x0" && pkg_failed=yes
7eda51e0
JF
22149else
22150 pkg_failed=yes
22151fi
22152 else
22153 pkg_failed=untried
22154fi
22155
66170b30
JF
22156
22157
7eda51e0
JF
22158if test $pkg_failed = yes; then
22159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22160$as_echo "no" >&6; }
b128dfee 22161
7eda51e0
JF
22162if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22163 _pkg_short_errors_supported=yes
22164else
22165 _pkg_short_errors_supported=no
632b71ea 22166fi
7eda51e0 22167 if test $_pkg_short_errors_supported = yes; then
83c6fec8 22168 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1`
7eda51e0 22169 else
83c6fec8 22170 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1`
7eda51e0
JF
22171 fi
22172 # Put the nasty error message in config.log where it belongs
22173 echo "$WEBKIT_PKG_ERRORS" >&5
c823f118 22174
7eda51e0
JF
22175 :
22176elif test $pkg_failed = untried; then
22177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22178$as_echo "no" >&6; }
22179 :
5053a6d1
DWT
22180else
22181 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
22182 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
22183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22184$as_echo "yes" >&6; }
c823f118 22185
7eda51e0
JF
22186 CY_EXECUTE=1
22187
66170b30 22188
7eda51e0 22189 for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do
5053a6d1 22190 haveit=
d70419f1 22191 for x in $CPPFLAGS; do
c823f118 22192
5053a6d1
DWT
22193 acl_save_prefix="$prefix"
22194 prefix="$acl_final_prefix"
22195 acl_save_exec_prefix="$exec_prefix"
22196 exec_prefix="$acl_final_exec_prefix"
22197 eval x=\"$x\"
22198 exec_prefix="$acl_save_exec_prefix"
22199 prefix="$acl_save_prefix"
c823f118 22200
5053a6d1
DWT
22201 if test "X$x" = "X$element"; then
22202 haveit=yes
22203 break
22204 fi
22205 done
22206 if test -z "$haveit"; then
d70419f1 22207 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5053a6d1
DWT
22208 fi
22209 done
c823f118 22210
b66977f1 22211
7eda51e0 22212 for element in `$PKG_CONFIG --libs $cy_webkit_pkg`; do
5053a6d1
DWT
22213 haveit=
22214 for x in $LIBS; do
22215
22216 acl_save_prefix="$prefix"
22217 prefix="$acl_final_prefix"
22218 acl_save_exec_prefix="$exec_prefix"
22219 exec_prefix="$acl_final_exec_prefix"
22220 eval x=\"$x\"
22221 exec_prefix="$acl_save_exec_prefix"
22222 prefix="$acl_save_prefix"
22223
22224 if test "X$x" = "X$element"; then
22225 haveit=yes
22226 break
22227 fi
22228 done
22229 if test -z "$haveit"; then
22230 LIBS="${LIBS}${LIBS:+ }$element"
22231 fi
22232 done
22233
22234
7eda51e0
JF
22235fi; if test "x$CY_EXECUTE" = x1; then break; fi
22236 done
22237
5053a6d1 22238fi
9918a0fa
JF
22239fi
22240
babf7fe8
JF
22241 LTJAVASCRIPTCORE=$LIBS
22242 LIBS=$cy_save
5053a6d1 22243
b66977f1 22244
babf7fe8
JF
22245 ;; #(
22246 *) :
22247 as_fn_error $? "Unknown JavaScript engine: $enableval" "$LINENO" 5 ;;
22248esac
b66977f1 22249
babf7fe8 22250else
b66977f1 22251
7eda51e0 22252
7eda51e0 22253
babf7fe8
JF
22254 cy_save=$LIBS
22255 LIBS=
9918a0fa
JF
22256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing JSEvaluateScript" >&5
22257$as_echo_n "checking for library containing JSEvaluateScript... " >&6; }
22258if ${ac_cv_search_JSEvaluateScript+:} false; then :
22259 $as_echo_n "(cached) " >&6
22260else
22261 ac_func_search_save_LIBS=$LIBS
22262cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22263/* end confdefs.h. */
22264
22265/* Override any GCC internal prototype to avoid an error.
22266 Use char because int might match the return type of a GCC
22267 builtin and then its argument prototype would still apply. */
22268#ifdef __cplusplus
22269extern "C"
22270#endif
22271char JSEvaluateScript ();
22272int
22273main ()
22274{
22275return JSEvaluateScript ();
22276 ;
22277 return 0;
22278}
22279_ACEOF
22280for ac_lib in '' JavaScriptCore; do
22281 if test -z "$ac_lib"; then
22282 ac_res="none required"
22283 else
22284 ac_res=-l$ac_lib
22285 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22286 fi
22287 if ac_fn_cxx_try_link "$LINENO"; then :
22288 ac_cv_search_JSEvaluateScript=$ac_res
22289fi
22290rm -f core conftest.err conftest.$ac_objext \
22291 conftest$ac_exeext
22292 if ${ac_cv_search_JSEvaluateScript+:} false; then :
22293 break
22294fi
22295done
22296if ${ac_cv_search_JSEvaluateScript+:} false; then :
22297
22298else
22299 ac_cv_search_JSEvaluateScript=no
22300fi
22301rm conftest.$ac_ext
22302LIBS=$ac_func_search_save_LIBS
22303fi
22304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_JSEvaluateScript" >&5
22305$as_echo "$ac_cv_search_JSEvaluateScript" >&6; }
22306ac_res=$ac_cv_search_JSEvaluateScript
22307if test "$ac_res" != no; then :
22308 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22309
22310 CY_EXECUTE=1
22311
22312
22313else
7eda51e0 22314
babf7fe8
JF
22315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
22316$as_echo_n "checking for framework JavaScriptCore... " >&6; }
22317if ${ac_cv_framework_JavaScriptCore+:} false; then :
22318 $as_echo_n "(cached) " >&6
22319else
7eda51e0 22320
babf7fe8
JF
22321 ac_check_framework_save_LIBS=$LIBS
22322 LIBS="-framework JavaScriptCore $LIBS"
22323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22324/* end confdefs.h. */
7eda51e0 22325
babf7fe8 22326 #include <JavaScriptCore/JSBase.h>
7eda51e0 22327
babf7fe8
JF
22328int
22329main ()
22330{
7eda51e0 22331
babf7fe8 22332 JSEvaluateScript(0, 0, 0, 0, 0, 0);
7eda51e0 22333
babf7fe8
JF
22334 ;
22335 return 0;
22336}
22337_ACEOF
22338if ac_fn_cxx_try_link "$LINENO"; then :
7eda51e0 22339
babf7fe8 22340 ac_cv_framework_JavaScriptCore=yes
b66977f1 22341
b66977f1 22342else
babf7fe8
JF
22343 ac_cv_framework_JavaScriptCore=no
22344fi
22345rm -f core conftest.err conftest.$ac_objext \
22346 conftest$ac_exeext conftest.$ac_ext
22347 LIBS=$ac_check_framework_save_LIBS
7eda51e0 22348
babf7fe8
JF
22349fi
22350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
22351$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
22352 if test $ac_cv_framework_JavaScriptCore = yes; then :
7eda51e0 22353
7eda51e0 22354
babf7fe8
JF
22355 for element in "-framework JavaScriptCore"; do
22356 haveit=
22357 for x in $LIBS; do
22358
22359 acl_save_prefix="$prefix"
22360 prefix="$acl_final_prefix"
22361 acl_save_exec_prefix="$exec_prefix"
22362 exec_prefix="$acl_final_exec_prefix"
22363 eval x=\"$x\"
22364 exec_prefix="$acl_save_exec_prefix"
22365 prefix="$acl_save_prefix"
22366
22367 if test "X$x" = "X$element"; then
22368 haveit=yes
22369 break
22370 fi
22371 done
22372 if test -z "$haveit"; then
22373 LIBS="${LIBS}${LIBS:+ }$element"
22374 fi
22375 done
22376
22377
22378 CY_EXECUTE=1
22379
22380
22381
22382else
22383
ccb4e34c 22384 for cy_webkit_pkg in "javascriptcoregtk-4.0"; do
babf7fe8
JF
22385
22386pkg_failed=no
22387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
22388$as_echo_n "checking for WEBKIT... " >&6; }
22389
22390if test -n "$WEBKIT_CFLAGS"; then
22391 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
22392 elif test -n "$PKG_CONFIG"; then
22393 if test -n "$PKG_CONFIG" && \
22394 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
22395 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
22396 ac_status=$?
22397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22398 test $ac_status = 0; }; then
22399 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "$cy_webkit_pkg" 2>/dev/null`
83c6fec8 22400 test "x$?" != "x0" && pkg_failed=yes
babf7fe8
JF
22401else
22402 pkg_failed=yes
22403fi
22404 else
22405 pkg_failed=untried
22406fi
22407if test -n "$WEBKIT_LIBS"; then
22408 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
22409 elif test -n "$PKG_CONFIG"; then
22410 if test -n "$PKG_CONFIG" && \
22411 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
22412 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
22413 ac_status=$?
22414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22415 test $ac_status = 0; }; then
22416 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "$cy_webkit_pkg" 2>/dev/null`
83c6fec8 22417 test "x$?" != "x0" && pkg_failed=yes
babf7fe8
JF
22418else
22419 pkg_failed=yes
22420fi
22421 else
22422 pkg_failed=untried
22423fi
22424
22425
22426
22427if test $pkg_failed = yes; then
22428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22429$as_echo "no" >&6; }
22430
22431if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22432 _pkg_short_errors_supported=yes
22433else
22434 _pkg_short_errors_supported=no
22435fi
22436 if test $_pkg_short_errors_supported = yes; then
83c6fec8 22437 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1`
babf7fe8 22438 else
83c6fec8 22439 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1`
babf7fe8
JF
22440 fi
22441 # Put the nasty error message in config.log where it belongs
22442 echo "$WEBKIT_PKG_ERRORS" >&5
22443
22444 :
22445elif test $pkg_failed = untried; then
22446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22447$as_echo "no" >&6; }
22448 :
22449else
22450 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
22451 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
22452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22453$as_echo "yes" >&6; }
22454
22455 CY_EXECUTE=1
22456
22457
22458 for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do
22459 haveit=
22460 for x in $CPPFLAGS; do
22461
22462 acl_save_prefix="$prefix"
22463 prefix="$acl_final_prefix"
22464 acl_save_exec_prefix="$exec_prefix"
22465 exec_prefix="$acl_final_exec_prefix"
22466 eval x=\"$x\"
22467 exec_prefix="$acl_save_exec_prefix"
22468 prefix="$acl_save_prefix"
22469
22470 if test "X$x" = "X$element"; then
22471 haveit=yes
22472 break
22473 fi
22474 done
22475 if test -z "$haveit"; then
22476 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
22477 fi
22478 done
22479
22480
22481 for element in `$PKG_CONFIG --libs $cy_webkit_pkg`; do
22482 haveit=
22483 for x in $LIBS; do
22484
22485 acl_save_prefix="$prefix"
22486 prefix="$acl_final_prefix"
22487 acl_save_exec_prefix="$exec_prefix"
22488 exec_prefix="$acl_final_exec_prefix"
22489 eval x=\"$x\"
22490 exec_prefix="$acl_save_exec_prefix"
22491 prefix="$acl_save_prefix"
22492
22493 if test "X$x" = "X$element"; then
22494 haveit=yes
22495 break
22496 fi
22497 done
22498 if test -z "$haveit"; then
22499 LIBS="${LIBS}${LIBS:+ }$element"
22500 fi
22501 done
22502
22503
22504fi; if test "x$CY_EXECUTE" = x1; then break; fi
22505 done
22506
22507fi
9918a0fa
JF
22508fi
22509
babf7fe8
JF
22510 LTJAVASCRIPTCORE=$LIBS
22511 LIBS=$cy_save
22512
22513
22514
22515fi
22516
22517
a93f15c0
JF
22518# Check whether --enable-console was given.
22519if test "${enable_console+set}" = set; then :
22520 enableval=$enable_console;
22521fi
22522
22523 if test "x$enable_console" != "xno"; then
22524 CY_CONSOLE_TRUE=
22525 CY_CONSOLE_FALSE='#'
22526else
22527 CY_CONSOLE_TRUE='#'
22528 CY_CONSOLE_FALSE=
22529fi
22530
22531
a4287117
JF
22532# Check whether --enable-attach was given.
22533if test "${enable_attach+set}" = set; then :
22534 enableval=$enable_attach;
22535fi
22536
22537 if test "x$enable_attach" != "xno" -a "x$CY_EXECUTE" = x1; then
22538 CY_ATTACH_TRUE=
22539 CY_ATTACH_FALSE='#'
22540else
22541 CY_ATTACH_TRUE='#'
22542 CY_ATTACH_FALSE=
22543fi
22544
22545
7eda51e0
JF
22546
22547
22548 if test "x$CY_EXECUTE" = x1; then
22549 CY_EXECUTE_TRUE=
22550 CY_EXECUTE_FALSE='#'
b66977f1 22551else
7eda51e0
JF
22552 CY_EXECUTE_TRUE='#'
22553 CY_EXECUTE_FALSE=
b66977f1
DWT
22554fi
22555
22556
8d20f0f1
JF
22557if test "x$CY_SYSTEM" = x; then CY_SYSTEM=1; fi
22558
22559
b66977f1 22560
7eda51e0
JF
22561case $CY_EXECUTE in #(
22562 1) :
22563
ae1b611e
JF
22564
22565 cy_save=$LIBS
22566 LIBS=
22567 for ac_header in uv.h
22568do :
22569 ac_fn_cxx_check_header_mongrel "$LINENO" "uv.h" "ac_cv_header_uv_h" "$ac_includes_default"
22570if test "x$ac_cv_header_uv_h" = xyes; then :
22571 cat >>confdefs.h <<_ACEOF
22572#define HAVE_UV_H 1
22573_ACEOF
22574
22575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uv_loop_init" >&5
22576$as_echo_n "checking for library containing uv_loop_init... " >&6; }
22577if ${ac_cv_search_uv_loop_init+:} false; then :
22578 $as_echo_n "(cached) " >&6
22579else
22580 ac_func_search_save_LIBS=$LIBS
22581cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22582/* end confdefs.h. */
22583
22584/* Override any GCC internal prototype to avoid an error.
22585 Use char because int might match the return type of a GCC
22586 builtin and then its argument prototype would still apply. */
22587#ifdef __cplusplus
22588extern "C"
22589#endif
22590char uv_loop_init ();
22591int
22592main ()
22593{
22594return uv_loop_init ();
22595 ;
22596 return 0;
22597}
22598_ACEOF
22599for ac_lib in '' uv; do
22600 if test -z "$ac_lib"; then
22601 ac_res="none required"
22602 else
22603 ac_res=-l$ac_lib
22604 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22605 fi
22606 if ac_fn_cxx_try_link "$LINENO"; then :
22607 ac_cv_search_uv_loop_init=$ac_res
22608fi
22609rm -f core conftest.err conftest.$ac_objext \
22610 conftest$ac_exeext
22611 if ${ac_cv_search_uv_loop_init+:} false; then :
22612 break
22613fi
22614done
22615if ${ac_cv_search_uv_loop_init+:} false; then :
22616
22617else
22618 ac_cv_search_uv_loop_init=no
22619fi
22620rm conftest.$ac_ext
22621LIBS=$ac_func_search_save_LIBS
22622fi
22623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uv_loop_init" >&5
22624$as_echo "$ac_cv_search_uv_loop_init" >&6; }
22625ac_res=$ac_cv_search_uv_loop_init
22626if test "$ac_res" != no; then :
22627 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22628
22629fi
22630
22631
22632fi
22633
22634done
22635
22636 LTLIBUV=$LIBS
22637 LIBS=$cy_save
22638
22639
22640
8d20f0f1
JF
22641
22642 cy_save=$LIBS
22643 LIBS=
22644 for ac_header in sqlite3.h
22645do :
22646 ac_fn_cxx_check_header_mongrel "$LINENO" "sqlite3.h" "ac_cv_header_sqlite3_h" "$ac_includes_default"
22647if test "x$ac_cv_header_sqlite3_h" = xyes; then :
22648 cat >>confdefs.h <<_ACEOF
22649#define HAVE_SQLITE3_H 1
22650_ACEOF
22651
22652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sqlite3_open_v2" >&5
22653$as_echo_n "checking for library containing sqlite3_open_v2... " >&6; }
22654if ${ac_cv_search_sqlite3_open_v2+:} false; then :
22655 $as_echo_n "(cached) " >&6
22656else
22657 ac_func_search_save_LIBS=$LIBS
22658cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22659/* end confdefs.h. */
22660
22661/* Override any GCC internal prototype to avoid an error.
22662 Use char because int might match the return type of a GCC
22663 builtin and then its argument prototype would still apply. */
22664#ifdef __cplusplus
22665extern "C"
22666#endif
22667char sqlite3_open_v2 ();
22668int
22669main ()
22670{
22671return sqlite3_open_v2 ();
22672 ;
22673 return 0;
22674}
22675_ACEOF
e2ce853b 22676for ac_lib in '' sqlite3 sqlite; do
8d20f0f1
JF
22677 if test -z "$ac_lib"; then
22678 ac_res="none required"
22679 else
22680 ac_res=-l$ac_lib
22681 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22682 fi
22683 if ac_fn_cxx_try_link "$LINENO"; then :
22684 ac_cv_search_sqlite3_open_v2=$ac_res
22685fi
22686rm -f core conftest.err conftest.$ac_objext \
22687 conftest$ac_exeext
22688 if ${ac_cv_search_sqlite3_open_v2+:} false; then :
22689 break
22690fi
22691done
22692if ${ac_cv_search_sqlite3_open_v2+:} false; then :
22693
22694else
22695 ac_cv_search_sqlite3_open_v2=no
22696fi
22697rm conftest.$ac_ext
22698LIBS=$ac_func_search_save_LIBS
22699fi
22700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sqlite3_open_v2" >&5
22701$as_echo "$ac_cv_search_sqlite3_open_v2" >&6; }
22702ac_res=$ac_cv_search_sqlite3_open_v2
22703if test "$ac_res" != no; then :
22704 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22705
22706fi
22707
22708
22709fi
22710
22711done
22712
22713 LTLIBSQLITE3=$LIBS
22714 LIBS=$cy_save
22715
22716
22717
7eda51e0
JF
22718 for ac_header in ffi.h ffi/ffi.h
22719do :
22720 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22721ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22722if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22723 cat >>confdefs.h <<_ACEOF
22724#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22725_ACEOF
22726 break
b66977f1 22727fi
7eda51e0
JF
22728
22729done
22730
296ee9a6
JF
22731
22732
22733 cy_save=$LIBS
22734 LIBS=
7eda51e0 22735 if test "x$ac_cv_header_ffi_h" = xno && test "x$ac_cv_header_ffi_ffi_h" = xno; then :
b66977f1 22736
b66977f1
DWT
22737
22738
22739pkg_failed=no
7eda51e0
JF
22740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5
22741$as_echo_n "checking for LIBFFI... " >&6; }
b66977f1 22742
7eda51e0
JF
22743if test -n "$LIBFFI_CFLAGS"; then
22744 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS"
12833ad8
JF
22745 elif test -n "$PKG_CONFIG"; then
22746 if test -n "$PKG_CONFIG" && \
7eda51e0
JF
22747 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
22748 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
b66977f1
DWT
22749 ac_status=$?
22750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22751 test $ac_status = 0; }; then
7eda51e0 22752 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null`
83c6fec8 22753 test "x$?" != "x0" && pkg_failed=yes
b66977f1
DWT
22754else
22755 pkg_failed=yes
22756fi
12833ad8
JF
22757 else
22758 pkg_failed=untried
b66977f1 22759fi
7eda51e0
JF
22760if test -n "$LIBFFI_LIBS"; then
22761 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS"
12833ad8
JF
22762 elif test -n "$PKG_CONFIG"; then
22763 if test -n "$PKG_CONFIG" && \
7eda51e0
JF
22764 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
22765 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
b66977f1
DWT
22766 ac_status=$?
22767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22768 test $ac_status = 0; }; then
7eda51e0 22769 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null`
83c6fec8 22770 test "x$?" != "x0" && pkg_failed=yes
b66977f1
DWT
22771else
22772 pkg_failed=yes
22773fi
12833ad8
JF
22774 else
22775 pkg_failed=untried
b66977f1
DWT
22776fi
22777
22778
22779
22780if test $pkg_failed = yes; then
12833ad8
JF
22781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22782$as_echo "no" >&6; }
b66977f1
DWT
22783
22784if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22785 _pkg_short_errors_supported=yes
22786else
22787 _pkg_short_errors_supported=no
22788fi
22789 if test $_pkg_short_errors_supported = yes; then
83c6fec8 22790 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libffi" 2>&1`
b66977f1 22791 else
83c6fec8 22792 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libffi" 2>&1`
b66977f1
DWT
22793 fi
22794 # Put the nasty error message in config.log where it belongs
7eda51e0 22795 echo "$LIBFFI_PKG_ERRORS" >&5
b66977f1 22796
7eda51e0
JF
22797 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
22798elif test $pkg_failed = untried; then
22799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22800$as_echo "no" >&6; }
22801 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
22802else
22803 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS
22804 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS
22805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22806$as_echo "yes" >&6; }
b66977f1
DWT
22807
22808
7eda51e0 22809 for element in `$PKG_CONFIG --cflags libffi`; do
b66977f1 22810 haveit=
d70419f1 22811 for x in $CPPFLAGS; do
b66977f1
DWT
22812
22813 acl_save_prefix="$prefix"
22814 prefix="$acl_final_prefix"
22815 acl_save_exec_prefix="$exec_prefix"
22816 exec_prefix="$acl_final_exec_prefix"
22817 eval x=\"$x\"
22818 exec_prefix="$acl_save_exec_prefix"
22819 prefix="$acl_save_prefix"
22820
22821 if test "X$x" = "X$element"; then
22822 haveit=yes
22823 break
22824 fi
22825 done
22826 if test -z "$haveit"; then
d70419f1 22827 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
b66977f1
DWT
22828 fi
22829 done
22830
22831
7eda51e0 22832 for element in `$PKG_CONFIG --libs libffi`; do
b66977f1
DWT
22833 haveit=
22834 for x in $LIBS; do
22835
22836 acl_save_prefix="$prefix"
22837 prefix="$acl_final_prefix"
22838 acl_save_exec_prefix="$exec_prefix"
22839 exec_prefix="$acl_final_exec_prefix"
22840 eval x=\"$x\"
22841 exec_prefix="$acl_save_exec_prefix"
22842 prefix="$acl_save_prefix"
22843
22844 if test "X$x" = "X$element"; then
22845 haveit=yes
22846 break
22847 fi
22848 done
22849 if test -z "$haveit"; then
22850 LIBS="${LIBS}${LIBS:+ }$element"
22851 fi
22852 done
22853
22854
22855fi
22856
7eda51e0
JF
22857else
22858
22859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ffi_call" >&5
22860$as_echo_n "checking for library containing ffi_call... " >&6; }
22861if ${ac_cv_search_ffi_call+:} false; then :
22862 $as_echo_n "(cached) " >&6
22863else
22864 ac_func_search_save_LIBS=$LIBS
22865cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22866/* end confdefs.h. */
22867
22868/* Override any GCC internal prototype to avoid an error.
22869 Use char because int might match the return type of a GCC
22870 builtin and then its argument prototype would still apply. */
22871#ifdef __cplusplus
22872extern "C"
22873#endif
22874char ffi_call ();
22875int
22876main ()
22877{
22878return ffi_call ();
22879 ;
22880 return 0;
22881}
22882_ACEOF
22883for ac_lib in '' ffi; do
22884 if test -z "$ac_lib"; then
22885 ac_res="none required"
22886 else
22887 ac_res=-l$ac_lib
22888 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22889 fi
22890 if ac_fn_cxx_try_link "$LINENO"; then :
22891 ac_cv_search_ffi_call=$ac_res
22892fi
22893rm -f core conftest.err conftest.$ac_objext \
22894 conftest$ac_exeext
22895 if ${ac_cv_search_ffi_call+:} false; then :
22896 break
22897fi
22898done
22899if ${ac_cv_search_ffi_call+:} false; then :
22900
22901else
22902 ac_cv_search_ffi_call=no
22903fi
22904rm conftest.$ac_ext
22905LIBS=$ac_func_search_save_LIBS
22906fi
22907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ffi_call" >&5
22908$as_echo "$ac_cv_search_ffi_call" >&6; }
22909ac_res=$ac_cv_search_ffi_call
22910if test "$ac_res" != no; then :
22911 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22912
22913fi
22914
22915 case $ac_cv_search_ffi_call in #(
22916 no) :
b66977f1
DWT
22917
22918
22919pkg_failed=no
7eda51e0
JF
22920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5
22921$as_echo_n "checking for LIBFFI... " >&6; }
b66977f1 22922
7eda51e0
JF
22923if test -n "$LIBFFI_CFLAGS"; then
22924 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS"
12833ad8
JF
22925 elif test -n "$PKG_CONFIG"; then
22926 if test -n "$PKG_CONFIG" && \
7eda51e0
JF
22927 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
22928 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
b66977f1
DWT
22929 ac_status=$?
22930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22931 test $ac_status = 0; }; then
7eda51e0 22932 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null`
83c6fec8 22933 test "x$?" != "x0" && pkg_failed=yes
b66977f1
DWT
22934else
22935 pkg_failed=yes
22936fi
12833ad8
JF
22937 else
22938 pkg_failed=untried
b66977f1 22939fi
7eda51e0
JF
22940if test -n "$LIBFFI_LIBS"; then
22941 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS"
12833ad8
JF
22942 elif test -n "$PKG_CONFIG"; then
22943 if test -n "$PKG_CONFIG" && \
7eda51e0
JF
22944 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
22945 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
b66977f1
DWT
22946 ac_status=$?
22947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22948 test $ac_status = 0; }; then
7eda51e0 22949 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null`
83c6fec8 22950 test "x$?" != "x0" && pkg_failed=yes
b66977f1
DWT
22951else
22952 pkg_failed=yes
22953fi
12833ad8
JF
22954 else
22955 pkg_failed=untried
b66977f1
DWT
22956fi
22957
22958
22959
22960if test $pkg_failed = yes; then
12833ad8
JF
22961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22962$as_echo "no" >&6; }
b66977f1
DWT
22963
22964if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22965 _pkg_short_errors_supported=yes
22966else
22967 _pkg_short_errors_supported=no
22968fi
22969 if test $_pkg_short_errors_supported = yes; then
83c6fec8 22970 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libffi" 2>&1`
b66977f1 22971 else
83c6fec8 22972 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libffi" 2>&1`
b66977f1
DWT
22973 fi
22974 # Put the nasty error message in config.log where it belongs
7eda51e0 22975 echo "$LIBFFI_PKG_ERRORS" >&5
b66977f1 22976
7eda51e0
JF
22977 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
22978elif test $pkg_failed = untried; then
22979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22980$as_echo "no" >&6; }
22981 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
b66977f1 22982else
7eda51e0
JF
22983 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS
22984 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS
22985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22986$as_echo "yes" >&6; }
b66977f1 22987
b66977f1 22988
7eda51e0 22989 for element in `$PKG_CONFIG --cflags libffi`; do
b66977f1 22990 haveit=
d70419f1 22991 for x in $CPPFLAGS; do
7eda51e0
JF
22992
22993 acl_save_prefix="$prefix"
22994 prefix="$acl_final_prefix"
22995 acl_save_exec_prefix="$exec_prefix"
22996 exec_prefix="$acl_final_exec_prefix"
22997 eval x=\"$x\"
22998 exec_prefix="$acl_save_exec_prefix"
22999 prefix="$acl_save_prefix"
23000
23001 if test "X$x" = "X$element"; then
23002 haveit=yes
23003 break
23004 fi
23005 done
23006 if test -z "$haveit"; then
d70419f1 23007 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7eda51e0
JF
23008 fi
23009 done
23010
23011
7eda51e0
JF
23012 for element in `$PKG_CONFIG --libs libffi`; do
23013 haveit=
23014 for x in $LIBS; do
23015
23016 acl_save_prefix="$prefix"
23017 prefix="$acl_final_prefix"
23018 acl_save_exec_prefix="$exec_prefix"
23019 exec_prefix="$acl_final_exec_prefix"
23020 eval x=\"$x\"
23021 exec_prefix="$acl_save_exec_prefix"
23022 prefix="$acl_save_prefix"
23023
23024 if test "X$x" = "X$element"; then
23025 haveit=yes
23026 break
23027 fi
23028 done
23029 if test -z "$haveit"; then
23030 LIBS="${LIBS}${LIBS:+ }$element"
23031 fi
23032 done
23033
23034
23035fi ;; #(
23036 *) :
23037 ;;
23038esac
574d4720
JF
23039 for ac_func in ffi_prep_cif_var
23040do :
23041 ac_fn_cxx_check_func "$LINENO" "ffi_prep_cif_var" "ac_cv_func_ffi_prep_cif_var"
23042if test "x$ac_cv_func_ffi_prep_cif_var" = xyes; then :
23043 cat >>confdefs.h <<_ACEOF
23044#define HAVE_FFI_PREP_CIF_VAR 1
23045_ACEOF
23046
23047fi
23048done
23049
7eda51e0
JF
23050
23051fi
296ee9a6
JF
23052 LTLIBFFI=$LIBS
23053 LIBS=$cy_save
23054
23055
7eda51e0 23056
def90846 23057
4930f387
JF
23058 cy_save=$LIBS
23059 LIBS=
23060
def90846
JF
23061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaVM" >&5
23062$as_echo_n "checking for framework JavaVM... " >&6; }
23063if ${ac_cv_framework_JavaVM+:} false; then :
23064 $as_echo_n "(cached) " >&6
23065else
23066
23067 ac_check_framework_save_LIBS=$LIBS
23068 LIBS="-framework JavaVM $LIBS"
23069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23070/* end confdefs.h. */
23071
23072 #include <JavaVM/jni.h>
23073
23074int
23075main ()
23076{
23077JNI_GetCreatedJavaVMs(NULL, 0, NULL);
23078 ;
23079 return 0;
23080}
23081_ACEOF
23082if ac_fn_cxx_try_link "$LINENO"; then :
23083
23084 ac_cv_framework_JavaVM=yes
23085
23086else
23087 ac_cv_framework_JavaVM=no
23088fi
23089rm -f core conftest.err conftest.$ac_objext \
23090 conftest$ac_exeext conftest.$ac_ext
23091 LIBS=$ac_check_framework_save_LIBS
23092
23093fi
23094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaVM" >&5
23095$as_echo "$ac_cv_framework_JavaVM" >&6; }
23096 if test $ac_cv_framework_JavaVM = yes; then :
23097
23098
23099 for element in "-framework JavaVM"; do
23100 haveit=
23101 for x in $LIBS; do
23102
23103 acl_save_prefix="$prefix"
23104 prefix="$acl_final_prefix"
23105 acl_save_exec_prefix="$exec_prefix"
23106 exec_prefix="$acl_final_exec_prefix"
23107 eval x=\"$x\"
23108 exec_prefix="$acl_save_exec_prefix"
23109 prefix="$acl_save_prefix"
23110
23111 if test "X$x" = "X$element"; then
23112 haveit=yes
23113 break
23114 fi
23115 done
23116 if test -z "$haveit"; then
23117 LIBS="${LIBS}${LIBS:+ }$element"
23118 fi
23119 done
23120
23121
23122 CY_JAVA=1
23123
23124
23125
23126else
23127 ac_fn_cxx_check_header_mongrel "$LINENO" "jni.h" "ac_cv_header_jni_h" "$ac_includes_default"
39ed1631
JF
23128if test "x$ac_cv_header_jni_h" = xyes; then :
23129
23130 CY_JAVA=1
23131
39ed1631
JF
23132
23133else
23134
23135 CY_JAVA=0
23136
23137
23138fi
23139
23140
5f29ae16 23141fi
4930f387
JF
23142 LTJAVA=$LIBS
23143 LIBS=$cy_save
5f29ae16
JF
23144
23145
4930f387
JF
23146
23147
23148 cy_save=$LIBS
23149 LIBS=
23150
3b531dd5
JF
23151pkg_failed=no
23152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBRUBY21" >&5
23153$as_echo_n "checking for LIBRUBY21... " >&6; }
23154
23155if test -n "$LIBRUBY21_CFLAGS"; then
23156 pkg_cv_LIBRUBY21_CFLAGS="$LIBRUBY21_CFLAGS"
23157 elif test -n "$PKG_CONFIG"; then
23158 if test -n "$PKG_CONFIG" && \
23159 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ruby-2.1\""; } >&5
23160 ($PKG_CONFIG --exists --print-errors "ruby-2.1") 2>&5
23161 ac_status=$?
23162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23163 test $ac_status = 0; }; then
23164 pkg_cv_LIBRUBY21_CFLAGS=`$PKG_CONFIG --cflags "ruby-2.1" 2>/dev/null`
23165 test "x$?" != "x0" && pkg_failed=yes
23166else
23167 pkg_failed=yes
23168fi
23169 else
23170 pkg_failed=untried
23171fi
23172if test -n "$LIBRUBY21_LIBS"; then
23173 pkg_cv_LIBRUBY21_LIBS="$LIBRUBY21_LIBS"
23174 elif test -n "$PKG_CONFIG"; then
23175 if test -n "$PKG_CONFIG" && \
23176 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ruby-2.1\""; } >&5
23177 ($PKG_CONFIG --exists --print-errors "ruby-2.1") 2>&5
23178 ac_status=$?
23179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23180 test $ac_status = 0; }; then
23181 pkg_cv_LIBRUBY21_LIBS=`$PKG_CONFIG --libs "ruby-2.1" 2>/dev/null`
23182 test "x$?" != "x0" && pkg_failed=yes
23183else
23184 pkg_failed=yes
23185fi
23186 else
23187 pkg_failed=untried
23188fi
23189
23190
23191
23192if test $pkg_failed = yes; then
23193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23194$as_echo "no" >&6; }
23195
23196if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23197 _pkg_short_errors_supported=yes
23198else
23199 _pkg_short_errors_supported=no
23200fi
23201 if test $_pkg_short_errors_supported = yes; then
23202 LIBRUBY21_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ruby-2.1" 2>&1`
23203 else
23204 LIBRUBY21_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ruby-2.1" 2>&1`
23205 fi
23206 # Put the nasty error message in config.log where it belongs
23207 echo "$LIBRUBY21_PKG_ERRORS" >&5
23208
23209
23210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework Ruby" >&5
23211$as_echo_n "checking for framework Ruby... " >&6; }
23212if ${ac_cv_framework_Ruby+:} false; then :
23213 $as_echo_n "(cached) " >&6
23214else
23215
23216 ac_check_framework_save_LIBS=$LIBS
23217 LIBS="-framework Ruby $LIBS"
23218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23219/* end confdefs.h. */
23220
23221 #include <Ruby/ruby.h>
23222
23223int
23224main ()
23225{
23226ruby_init();
23227 ;
23228 return 0;
23229}
23230_ACEOF
23231if ac_fn_cxx_try_link "$LINENO"; then :
23232
23233 ac_cv_framework_Ruby=yes
23234
23235else
23236 ac_cv_framework_Ruby=no
23237fi
23238rm -f core conftest.err conftest.$ac_objext \
23239 conftest$ac_exeext conftest.$ac_ext
23240 LIBS=$ac_check_framework_save_LIBS
23241
23242fi
23243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ruby" >&5
23244$as_echo "$ac_cv_framework_Ruby" >&6; }
23245 if test $ac_cv_framework_Ruby = yes; then :
23246
23247
23248 for element in "-framework Ruby"; do
23249 haveit=
23250 for x in $LIBS; do
23251
23252 acl_save_prefix="$prefix"
23253 prefix="$acl_final_prefix"
23254 acl_save_exec_prefix="$exec_prefix"
23255 exec_prefix="$acl_final_exec_prefix"
23256 eval x=\"$x\"
23257 exec_prefix="$acl_save_exec_prefix"
23258 prefix="$acl_save_prefix"
23259
23260 if test "X$x" = "X$element"; then
23261 haveit=yes
23262 break
23263 fi
23264 done
23265 if test -z "$haveit"; then
23266 LIBS="${LIBS}${LIBS:+ }$element"
23267 fi
23268 done
23269
23270
23271 CY_RUBY=1
23272
23273
23274
23275else
23276 for ac_header in ruby.h
23277do :
23278 ac_fn_cxx_check_header_mongrel "$LINENO" "ruby.h" "ac_cv_header_ruby_h" "$ac_includes_default"
23279if test "x$ac_cv_header_ruby_h" = xyes; then :
23280 cat >>confdefs.h <<_ACEOF
23281#define HAVE_RUBY_H 1
23282_ACEOF
23283
23284 CY_RUBY=1
23285
23286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ruby_init" >&5
23287$as_echo_n "checking for library containing ruby_init... " >&6; }
23288if ${ac_cv_search_ruby_init+:} false; then :
23289 $as_echo_n "(cached) " >&6
23290else
23291 ac_func_search_save_LIBS=$LIBS
23292cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23293/* end confdefs.h. */
23294
23295/* Override any GCC internal prototype to avoid an error.
23296 Use char because int might match the return type of a GCC
23297 builtin and then its argument prototype would still apply. */
23298#ifdef __cplusplus
23299extern "C"
23300#endif
23301char ruby_init ();
23302int
23303main ()
23304{
23305return ruby_init ();
23306 ;
23307 return 0;
23308}
23309_ACEOF
23310for ac_lib in '' ruby; do
23311 if test -z "$ac_lib"; then
23312 ac_res="none required"
23313 else
23314 ac_res=-l$ac_lib
23315 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23316 fi
23317 if ac_fn_cxx_try_link "$LINENO"; then :
23318 ac_cv_search_ruby_init=$ac_res
23319fi
23320rm -f core conftest.err conftest.$ac_objext \
23321 conftest$ac_exeext
23322 if ${ac_cv_search_ruby_init+:} false; then :
23323 break
23324fi
23325done
23326if ${ac_cv_search_ruby_init+:} false; then :
23327
23328else
23329 ac_cv_search_ruby_init=no
23330fi
23331rm conftest.$ac_ext
23332LIBS=$ac_func_search_save_LIBS
23333fi
23334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ruby_init" >&5
23335$as_echo "$ac_cv_search_ruby_init" >&6; }
23336ac_res=$ac_cv_search_ruby_init
23337if test "$ac_res" != no; then :
23338 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23339
23340
23341fi
23342
23343
23344else
23345
23346 CY_RUBY=0
23347
23348
23349fi
23350
23351done
23352
23353fi
23354elif test $pkg_failed = untried; then
23355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23356$as_echo "no" >&6; }
23357
5f29ae16
JF
23358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework Ruby" >&5
23359$as_echo_n "checking for framework Ruby... " >&6; }
23360if ${ac_cv_framework_Ruby+:} false; then :
23361 $as_echo_n "(cached) " >&6
23362else
23363
23364 ac_check_framework_save_LIBS=$LIBS
23365 LIBS="-framework Ruby $LIBS"
23366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23367/* end confdefs.h. */
23368
23369 #include <Ruby/ruby.h>
23370
23371int
23372main ()
23373{
23374ruby_init();
23375 ;
23376 return 0;
23377}
23378_ACEOF
23379if ac_fn_cxx_try_link "$LINENO"; then :
23380
23381 ac_cv_framework_Ruby=yes
23382
23383else
23384 ac_cv_framework_Ruby=no
23385fi
23386rm -f core conftest.err conftest.$ac_objext \
23387 conftest$ac_exeext conftest.$ac_ext
23388 LIBS=$ac_check_framework_save_LIBS
23389
23390fi
23391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ruby" >&5
23392$as_echo "$ac_cv_framework_Ruby" >&6; }
23393 if test $ac_cv_framework_Ruby = yes; then :
23394
23395
23396 for element in "-framework Ruby"; do
23397 haveit=
23398 for x in $LIBS; do
23399
23400 acl_save_prefix="$prefix"
23401 prefix="$acl_final_prefix"
23402 acl_save_exec_prefix="$exec_prefix"
23403 exec_prefix="$acl_final_exec_prefix"
23404 eval x=\"$x\"
23405 exec_prefix="$acl_save_exec_prefix"
23406 prefix="$acl_save_prefix"
23407
23408 if test "X$x" = "X$element"; then
23409 haveit=yes
23410 break
23411 fi
23412 done
23413 if test -z "$haveit"; then
23414 LIBS="${LIBS}${LIBS:+ }$element"
23415 fi
23416 done
23417
23418
23419 CY_RUBY=1
23420
23421
23422
23423else
23424 for ac_header in ruby.h
23425do :
23426 ac_fn_cxx_check_header_mongrel "$LINENO" "ruby.h" "ac_cv_header_ruby_h" "$ac_includes_default"
23427if test "x$ac_cv_header_ruby_h" = xyes; then :
23428 cat >>confdefs.h <<_ACEOF
23429#define HAVE_RUBY_H 1
23430_ACEOF
23431
23432 CY_RUBY=1
23433
4930f387 23434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ruby_init" >&5
5f29ae16
JF
23435$as_echo_n "checking for library containing ruby_init... " >&6; }
23436if ${ac_cv_search_ruby_init+:} false; then :
23437 $as_echo_n "(cached) " >&6
23438else
23439 ac_func_search_save_LIBS=$LIBS
23440cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23441/* end confdefs.h. */
23442
23443/* Override any GCC internal prototype to avoid an error.
23444 Use char because int might match the return type of a GCC
23445 builtin and then its argument prototype would still apply. */
23446#ifdef __cplusplus
23447extern "C"
23448#endif
23449char ruby_init ();
23450int
23451main ()
23452{
23453return ruby_init ();
23454 ;
23455 return 0;
23456}
23457_ACEOF
23458for ac_lib in '' ruby; do
23459 if test -z "$ac_lib"; then
23460 ac_res="none required"
23461 else
23462 ac_res=-l$ac_lib
23463 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23464 fi
23465 if ac_fn_cxx_try_link "$LINENO"; then :
23466 ac_cv_search_ruby_init=$ac_res
23467fi
23468rm -f core conftest.err conftest.$ac_objext \
23469 conftest$ac_exeext
23470 if ${ac_cv_search_ruby_init+:} false; then :
23471 break
23472fi
23473done
23474if ${ac_cv_search_ruby_init+:} false; then :
23475
23476else
23477 ac_cv_search_ruby_init=no
23478fi
23479rm conftest.$ac_ext
23480LIBS=$ac_func_search_save_LIBS
23481fi
23482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ruby_init" >&5
23483$as_echo "$ac_cv_search_ruby_init" >&6; }
23484ac_res=$ac_cv_search_ruby_init
23485if test "$ac_res" != no; then :
23486 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23487
5f29ae16 23488
4930f387 23489fi
5f29ae16
JF
23490
23491
23492else
23493
23494 CY_RUBY=0
23495
23496
23497fi
23498
23499done
23500
3b531dd5
JF
23501fi
23502else
23503 LIBRUBY21_CFLAGS=$pkg_cv_LIBRUBY21_CFLAGS
23504 LIBRUBY21_LIBS=$pkg_cv_LIBRUBY21_LIBS
23505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23506$as_echo "yes" >&6; }
23507
23508 CY_RUBY=1
23509
23510
23511 for element in `$PKG_CONFIG --cflags ruby-2.1`; do
23512 haveit=
23513 for x in $CPPFLAGS; do
23514
23515 acl_save_prefix="$prefix"
23516 prefix="$acl_final_prefix"
23517 acl_save_exec_prefix="$exec_prefix"
23518 exec_prefix="$acl_final_exec_prefix"
23519 eval x=\"$x\"
23520 exec_prefix="$acl_save_exec_prefix"
23521 prefix="$acl_save_prefix"
23522
23523 if test "X$x" = "X$element"; then
23524 haveit=yes
23525 break
23526 fi
23527 done
23528 if test -z "$haveit"; then
23529 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
23530 fi
23531 done
23532
23533
23534 for element in `$PKG_CONFIG --libs ruby-2.1`; do
23535 haveit=
23536 for x in $LIBS; do
23537
23538 acl_save_prefix="$prefix"
23539 prefix="$acl_final_prefix"
23540 acl_save_exec_prefix="$exec_prefix"
23541 exec_prefix="$acl_final_exec_prefix"
23542 eval x=\"$x\"
23543 exec_prefix="$acl_save_exec_prefix"
23544 prefix="$acl_save_prefix"
23545
23546 if test "X$x" = "X$element"; then
23547 haveit=yes
23548 break
23549 fi
23550 done
23551 if test -z "$haveit"; then
23552 LIBS="${LIBS}${LIBS:+ }$element"
23553 fi
23554 done
23555
23556
def90846 23557fi
4930f387
JF
23558 LTRUBY=$LIBS
23559 LIBS=$cy_save
23560
23561
39ed1631 23562
591b913e
JF
23563
23564# Check whether --with-python was given.
23565if test "${with_python+set}" = set; then :
23566 withval=$with_python;
23567else
23568 with_python=no
23569fi
23570
23571
23572 if test "x$with_python" != "xno"; then :
23573
23574 CY_PYTHON=1
23575
23576
23577 cy_save=$LIBS
23578 LIBS=
23579
23580
23581 for element in `$with_python --includes`; do
23582 haveit=
23583 for x in $CPPFLAGS; do
23584
23585 acl_save_prefix="$prefix"
23586 prefix="$acl_final_prefix"
23587 acl_save_exec_prefix="$exec_prefix"
23588 exec_prefix="$acl_final_exec_prefix"
23589 eval x=\"$x\"
23590 exec_prefix="$acl_save_exec_prefix"
23591 prefix="$acl_save_prefix"
23592
23593 if test "X$x" = "X$element"; then
23594 haveit=yes
23595 break
23596 fi
23597 done
23598 if test -z "$haveit"; then
23599 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
23600 fi
23601 done
23602
23603
23604 for element in `$with_python --ldflags`; do
23605 haveit=
23606 for x in $LIBS; do
23607
23608 acl_save_prefix="$prefix"
23609 prefix="$acl_final_prefix"
23610 acl_save_exec_prefix="$exec_prefix"
23611 exec_prefix="$acl_final_exec_prefix"
23612 eval x=\"$x\"
23613 exec_prefix="$acl_save_exec_prefix"
23614 prefix="$acl_save_prefix"
23615
23616 if test "X$x" = "X$element"; then
23617 haveit=yes
23618 break
23619 fi
23620 done
23621 if test -z "$haveit"; then
23622 LIBS="${LIBS}${LIBS:+ }$element"
23623 fi
23624 done
23625
23626
23627 LTPYTHON=$LIBS
23628 LIBS=$cy_save
23629
23630
23631
23632else
23633
23634 CY_PYTHON=0
23635
23636
23637fi
23638
23639 if test "x$with_python" != "xno"; then
23640 CY_PRELINK_TRUE=
23641 CY_PRELINK_FALSE='#'
23642else
23643 CY_PRELINK_TRUE='#'
23644 CY_PRELINK_FALSE=
23645fi
23646
23647
7eda51e0
JF
23648 ac_ext=mm
23649ac_cpp='$OBJCXXCPP $CPPFLAGS'
23650ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23651ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23652ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
23653
23654
23655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we really have Objective C++" >&5
23656$as_echo_n "checking if we really have Objective C++... " >&6; }
23657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23658/* end confdefs.h. */
23659
23660_ACEOF
23661if ac_fn_objcxx_try_compile "$LINENO"; then :
23662
23663 CY_OBJECTIVEC=1
23664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23665$as_echo "yes" >&6; }
23666
23667else
23668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12833ad8 23669$as_echo "no" >&6; }
7eda51e0
JF
23670fi
23671rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b66977f1 23672
7eda51e0 23673 if test "x$CY_OBJECTIVEC" = x1; then :
b66977f1 23674
7eda51e0 23675
babf7fe8
JF
23676 cy_save=$LIBS
23677 LIBS=
23678
7eda51e0
JF
23679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework CoreFoundation" >&5
23680$as_echo_n "checking for framework CoreFoundation... " >&6; }
23681if ${ac_cv_framework_CoreFoundation+:} false; then :
b66977f1
DWT
23682 $as_echo_n "(cached) " >&6
23683else
23684
23685 ac_check_framework_save_LIBS=$LIBS
7eda51e0 23686 LIBS="-framework CoreFoundation $LIBS"
b66977f1
DWT
23687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23688/* end confdefs.h. */
23689
7eda51e0 23690 #include <CoreFoundation/CFBase.h>
b66977f1
DWT
23691
23692int
23693main ()
23694{
7eda51e0 23695CFAllocatorGetDefault();
b66977f1
DWT
23696 ;
23697 return 0;
23698}
23699_ACEOF
7eda51e0 23700if ac_fn_objcxx_try_link "$LINENO"; then :
b66977f1 23701
7eda51e0 23702 ac_cv_framework_CoreFoundation=yes
b66977f1
DWT
23703
23704else
7eda51e0 23705 ac_cv_framework_CoreFoundation=no
b66977f1
DWT
23706fi
23707rm -f core conftest.err conftest.$ac_objext \
23708 conftest$ac_exeext conftest.$ac_ext
23709 LIBS=$ac_check_framework_save_LIBS
23710
23711fi
7eda51e0
JF
23712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_CoreFoundation" >&5
23713$as_echo "$ac_cv_framework_CoreFoundation" >&6; }
23714 if test $ac_cv_framework_CoreFoundation = yes; then :
b66977f1
DWT
23715
23716
7eda51e0 23717 for element in "-framework CoreFoundation"; do
b66977f1
DWT
23718 haveit=
23719 for x in $LIBS; do
23720
23721 acl_save_prefix="$prefix"
23722 prefix="$acl_final_prefix"
23723 acl_save_exec_prefix="$exec_prefix"
23724 exec_prefix="$acl_final_exec_prefix"
23725 eval x=\"$x\"
23726 exec_prefix="$acl_save_exec_prefix"
23727 prefix="$acl_save_prefix"
23728
23729 if test "X$x" = "X$element"; then
23730 haveit=yes
23731 break
23732 fi
23733 done
23734 if test -z "$haveit"; then
23735 LIBS="${LIBS}${LIBS:+ }$element"
23736 fi
23737 done
23738
66170b30 23739
e2ce853b 23740 CY_OBJECTIVEC=1
66170b30
JF
23741
23742
b66977f1 23743
b66977f1 23744
7eda51e0
JF
23745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework Foundation" >&5
23746$as_echo_n "checking for framework Foundation... " >&6; }
23747if ${ac_cv_framework_Foundation+:} false; then :
23748 $as_echo_n "(cached) " >&6
b66977f1 23749else
b66977f1 23750
7eda51e0
JF
23751 ac_check_framework_save_LIBS=$LIBS
23752 LIBS="-framework Foundation $LIBS"
23753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23754/* end confdefs.h. */
66170b30 23755
7eda51e0 23756 #include <Foundation/NSObject.h>
b66977f1 23757
7eda51e0
JF
23758int
23759main ()
23760{
23761[[NSObject alloc] init];
23762 ;
23763 return 0;
23764}
23765_ACEOF
23766if ac_fn_objcxx_try_link "$LINENO"; then :
b66977f1 23767
7eda51e0 23768 ac_cv_framework_Foundation=yes
b66977f1 23769
7eda51e0
JF
23770else
23771 ac_cv_framework_Foundation=no
23772fi
23773rm -f core conftest.err conftest.$ac_objext \
23774 conftest$ac_exeext conftest.$ac_ext
23775 LIBS=$ac_check_framework_save_LIBS
23776
23777fi
23778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Foundation" >&5
23779$as_echo "$ac_cv_framework_Foundation" >&6; }
23780 if test $ac_cv_framework_Foundation = yes; then :
b66977f1
DWT
23781
23782
7eda51e0 23783 for element in "-framework Foundation"; do
b66977f1
DWT
23784 haveit=
23785 for x in $LIBS; do
23786
23787 acl_save_prefix="$prefix"
23788 prefix="$acl_final_prefix"
23789 acl_save_exec_prefix="$exec_prefix"
23790 exec_prefix="$acl_final_exec_prefix"
23791 eval x=\"$x\"
23792 exec_prefix="$acl_save_exec_prefix"
23793 prefix="$acl_save_prefix"
23794
23795 if test "X$x" = "X$element"; then
23796 haveit=yes
23797 break
23798 fi
23799 done
23800 if test -z "$haveit"; then
23801 LIBS="${LIBS}${LIBS:+ }$element"
23802 fi
23803 done
23804
7eda51e0
JF
23805 cat >>confdefs.h <<_ACEOF
23806#define HAVE_FRAMEWORK_FOUNDATION 1
23807_ACEOF
23808
b66977f1 23809
7eda51e0 23810fi
b66977f1
DWT
23811
23812
7eda51e0 23813else
b66977f1 23814
b66977f1 23815
7eda51e0
JF
23816 for ac_prog in gnustep-config
23817do
23818 # Extract the first word of "$ac_prog", so it can be a program name with args.
23819set dummy $ac_prog; ac_word=$2
23820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23821$as_echo_n "checking for $ac_word... " >&6; }
23822if ${ac_cv_prog_GNUSTEP_CONFIG+:} false; then :
23823 $as_echo_n "(cached) " >&6
b66977f1 23824else
7eda51e0
JF
23825 if test -n "$GNUSTEP_CONFIG"; then
23826 ac_cv_prog_GNUSTEP_CONFIG="$GNUSTEP_CONFIG" # Let the user override the test.
b66977f1 23827else
7eda51e0
JF
23828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23829for as_dir in $PATH
23830do
23831 IFS=$as_save_IFS
23832 test -z "$as_dir" && as_dir=.
23833 for ac_exec_ext in '' $ac_executable_extensions; do
23834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23835 ac_cv_prog_GNUSTEP_CONFIG="$ac_prog"
23836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23837 break 2
23838 fi
23839done
23840 done
23841IFS=$as_save_IFS
b66977f1 23842
b66977f1 23843fi
b66977f1 23844fi
7eda51e0
JF
23845GNUSTEP_CONFIG=$ac_cv_prog_GNUSTEP_CONFIG
23846if test -n "$GNUSTEP_CONFIG"; then
23847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_CONFIG" >&5
23848$as_echo "$GNUSTEP_CONFIG" >&6; }
b66977f1 23849else
7eda51e0 23850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12833ad8 23851$as_echo "no" >&6; }
b66977f1 23852fi
66170b30 23853
66170b30 23854
7eda51e0
JF
23855 test -n "$GNUSTEP_CONFIG" && break
23856done
b66977f1 23857
b66977f1 23858
7eda51e0 23859 if test "x$GNUSTEP_CONFIG" != x; then :
b66977f1 23860
e2ce853b 23861 CY_OBJECTIVEC=1
b66977f1
DWT
23862
23863
7eda51e0 23864 for element in `$GNUSTEP_CONFIG --objc-flags`; do
b66977f1 23865 haveit=
7eda51e0 23866 for x in $OBJCXXFLAGS; do
b66977f1
DWT
23867
23868 acl_save_prefix="$prefix"
23869 prefix="$acl_final_prefix"
23870 acl_save_exec_prefix="$exec_prefix"
23871 exec_prefix="$acl_final_exec_prefix"
23872 eval x=\"$x\"
23873 exec_prefix="$acl_save_exec_prefix"
23874 prefix="$acl_save_prefix"
23875
23876 if test "X$x" = "X$element"; then
23877 haveit=yes
23878 break
23879 fi
23880 done
babf7fe8
JF
23881 if test -z "$haveit"; then
23882 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
23883 fi
23884 done
a667869d 23885
a667869d 23886
babf7fe8 23887 for element in `$GNUSTEP_CONFIG --base-libs`; do
632b71ea 23888 haveit=
babf7fe8 23889 for x in $LIBS; do
a667869d 23890
632b71ea
DWT
23891 acl_save_prefix="$prefix"
23892 prefix="$acl_final_prefix"
23893 acl_save_exec_prefix="$exec_prefix"
23894 exec_prefix="$acl_final_exec_prefix"
23895 eval x=\"$x\"
23896 exec_prefix="$acl_save_exec_prefix"
23897 prefix="$acl_save_prefix"
23898
23899 if test "X$x" = "X$element"; then
23900 haveit=yes
23901 break
23902 fi
23903 done
23904 if test -z "$haveit"; then
babf7fe8 23905 LIBS="${LIBS}${LIBS:+ }$element"
632b71ea
DWT
23906 fi
23907 done
23908
5053a6d1 23909
babf7fe8
JF
23910else
23911 CY_OBJECTIVEC=0
23912
23913fi
23914
23915fi
23916 LTOBJECTIVEC=$LIBS
23917 LIBS=$cy_save
23918
23919
23920
e2ce853b
JF
23921else
23922
23923 CY_OBJECTIVEC=0
23924
23925
babf7fe8
JF
23926fi
23927
23928 ac_ext=cpp
23929ac_cpp='$CXXCPP $CPPFLAGS'
23930ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23931ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23932ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23933
23934 ;; #(
23935 *) :
23936 ;;
23937esac
23938
39ed1631
JF
23939 if test "x$CY_JAVA" = x1; then
23940 CY_JAVA_TRUE=
23941 CY_JAVA_FALSE='#'
23942else
23943 CY_JAVA_TRUE='#'
23944 CY_JAVA_FALSE=
23945fi
23946
5f29ae16
JF
23947 if test "x$CY_RUBY" = x1; then
23948 CY_RUBY_TRUE=
23949 CY_RUBY_FALSE='#'
23950else
23951 CY_RUBY_TRUE='#'
23952 CY_RUBY_FALSE=
23953fi
23954
591b913e
JF
23955 if test "x$CY_PYTHON" = x1; then
23956 CY_PYTHON_TRUE=
23957 CY_PYTHON_FALSE='#'
23958else
23959 CY_PYTHON_TRUE='#'
23960 CY_PYTHON_FALSE=
23961fi
23962
babf7fe8
JF
23963 if test "x$CY_OBJECTIVEC" = x1; then
23964 CY_OBJECTIVEC_TRUE=
23965 CY_OBJECTIVEC_FALSE='#'
23966else
23967 CY_OBJECTIVEC_TRUE='#'
23968 CY_OBJECTIVEC_FALSE=
23969fi
23970
23971
cb7b4fad
JF
23972cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23973/* end confdefs.h. */
23974
23975#ifndef __ANDROID__
23976#error
23977#endif
23978
23979_ACEOF
23980if ac_fn_cxx_try_compile "$LINENO"; then :
23981
23982 CY_ANDROID=1
23983
23984
23985else
23986
23987 CY_ANDROID=0
23988
23989
23990fi
23991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23992
23993 if test "x$CY_ANDROID" = x1; then
23994 CY_ANDROID_TRUE=
23995 CY_ANDROID_FALSE='#'
23996else
23997 CY_ANDROID_TRUE='#'
23998 CY_ANDROID_FALSE=
23999fi
24000
24001
babf7fe8 24002
8d20f0f1
JF
24003# Check whether --with-libclang was given.
24004if test "${with_libclang+set}" = set; then :
24005 withval=$with_libclang;
24006else
24007 with_libclang=no
24008fi
24009
24010
24011if test "x$with_libclang" != "xno"; then :
24012
24013 CY_LIBCLANG="$with_libclang"
24014
24015fi
24016 if test "x$with_libclang" != "xno"; then
24017 CY_PRELINK_TRUE=
24018 CY_PRELINK_FALSE='#'
24019else
24020 CY_PRELINK_TRUE='#'
24021 CY_PRELINK_FALSE=
24022fi
24023
24024
24025
babf7fe8
JF
24026 cy_save=$LIBS
24027 LIBS=
24028
24029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
24030$as_echo_n "checking for a readline compatible library... " >&6; }
24031if ${ax_cv_lib_readline+:} false; then :
5053a6d1 24032 $as_echo_n "(cached) " >&6
a667869d 24033else
632b71ea 24034
babf7fe8
JF
24035 ORIG_LIBS="$LIBS"
24036 for readline_lib in readline edit editline; do
24037 for termcap_lib in "" termcap curses ncurses; do
24038 if test -z "$termcap_lib"; then
24039 TRY_LIB="-l$readline_lib"
24040 else
24041 TRY_LIB="-l$readline_lib -l$termcap_lib"
24042 fi
24043 LIBS="$ORIG_LIBS $TRY_LIB"
24044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5053a6d1 24045/* end confdefs.h. */
632b71ea 24046
babf7fe8
JF
24047/* Override any GCC internal prototype to avoid an error.
24048 Use char because int might match the return type of a GCC
24049 builtin and then its argument prototype would still apply. */
24050#ifdef __cplusplus
24051extern "C"
24052#endif
24053char readline ();
5053a6d1
DWT
24054int
24055main ()
24056{
babf7fe8 24057return readline ();
5053a6d1
DWT
24058 ;
24059 return 0;
24060}
24061_ACEOF
babf7fe8
JF
24062if ac_fn_cxx_try_link "$LINENO"; then :
24063 ax_cv_lib_readline="$TRY_LIB"
5053a6d1
DWT
24064fi
24065rm -f core conftest.err conftest.$ac_objext \
24066 conftest$ac_exeext conftest.$ac_ext
babf7fe8
JF
24067 if test -n "$ax_cv_lib_readline"; then
24068 break
24069 fi
24070 done
24071 if test -n "$ax_cv_lib_readline"; then
24072 break
24073 fi
24074 done
24075 if test -z "$ax_cv_lib_readline"; then
24076 ax_cv_lib_readline="no"
24077 fi
24078 LIBS="$ORIG_LIBS"
24079
24080fi
24081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lib_readline" >&5
24082$as_echo "$ax_cv_lib_readline" >&6; }
24083
24084 if test "$ax_cv_lib_readline" != "no"; then
24085 LIBS="$LIBS $ax_cv_lib_readline"
24086
24087$as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
24088
24089 for ac_header in readline.h readline/readline.h
24090do :
24091 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24092ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
24093if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
24094 cat >>confdefs.h <<_ACEOF
24095#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24096_ACEOF
24097
24098fi
24099
24100done
24101
24102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
24103$as_echo_n "checking whether readline supports history... " >&6; }
24104if ${ax_cv_lib_readline_history+:} false; then :
24105 $as_echo_n "(cached) " >&6
24106else
24107
24108 ax_cv_lib_readline_history="no"
7eda51e0
JF
24109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24110/* end confdefs.h. */
5053a6d1 24111
babf7fe8
JF
24112/* Override any GCC internal prototype to avoid an error.
24113 Use char because int might match the return type of a GCC
24114 builtin and then its argument prototype would still apply. */
24115#ifdef __cplusplus
24116extern "C"
24117#endif
24118char add_history ();
058f1bc8
DWT
24119int
24120main ()
24121{
babf7fe8 24122return add_history ();
058f1bc8
DWT
24123 ;
24124 return 0;
24125}
24126_ACEOF
babf7fe8
JF
24127if ac_fn_cxx_try_link "$LINENO"; then :
24128 ax_cv_lib_readline_history="yes"
058f1bc8
DWT
24129fi
24130rm -f core conftest.err conftest.$ac_objext \
24131 conftest$ac_exeext conftest.$ac_ext
a667869d 24132
a667869d 24133fi
babf7fe8
JF
24134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lib_readline_history" >&5
24135$as_echo "$ax_cv_lib_readline_history" >&6; }
24136 if test "$ax_cv_lib_readline_history" = "yes"; then
058f1bc8 24137
babf7fe8 24138$as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
058f1bc8 24139
babf7fe8
JF
24140 for ac_header in history.h readline/history.h
24141do :
24142 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24143ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
24144if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
24145 cat >>confdefs.h <<_ACEOF
24146#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7eda51e0 24147_ACEOF
babf7fe8 24148
7eda51e0 24149fi
058f1bc8 24150
babf7fe8 24151done
058f1bc8 24152
babf7fe8 24153 fi
7eda51e0 24154 fi
058f1bc8 24155
babf7fe8
JF
24156 LTLIBREADLINE=$LIBS
24157 LIBS=$cy_save
058f1bc8 24158
058f1bc8 24159
babf7fe8
JF
24160case $ax_cv_lib_readline in #(
24161 no) :
24162 as_fn_error $? "missing \"libreadline\"" "$LINENO" 5 ;; #(
24163 *) :
24164 ;;
24165esac
058f1bc8
DWT
24166
24167
babf7fe8
JF
24168 cy_save=$LIBS
24169 LIBS=
24170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cur_term" >&5
24171$as_echo_n "checking for library containing cur_term... " >&6; }
24172if ${ac_cv_search_cur_term+:} false; then :
7eda51e0
JF
24173 $as_echo_n "(cached) " >&6
24174else
babf7fe8
JF
24175 ac_func_search_save_LIBS=$LIBS
24176cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7eda51e0
JF
24177/* end confdefs.h. */
24178
babf7fe8
JF
24179/* Override any GCC internal prototype to avoid an error.
24180 Use char because int might match the return type of a GCC
24181 builtin and then its argument prototype would still apply. */
7eda51e0 24182#ifdef __cplusplus
babf7fe8 24183extern "C"
7eda51e0 24184#endif
babf7fe8 24185char cur_term ();
7eda51e0
JF
24186int
24187main ()
24188{
babf7fe8 24189return cur_term ();
7eda51e0
JF
24190 ;
24191 return 0;
24192}
24193_ACEOF
a93f15c0 24194for ac_lib in '' termcap ncurses; do
babf7fe8
JF
24195 if test -z "$ac_lib"; then
24196 ac_res="none required"
24197 else
24198 ac_res=-l$ac_lib
24199 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24200 fi
24201 if ac_fn_cxx_try_link "$LINENO"; then :
24202 ac_cv_search_cur_term=$ac_res
7eda51e0 24203fi
babf7fe8
JF
24204rm -f core conftest.err conftest.$ac_objext \
24205 conftest$ac_exeext
24206 if ${ac_cv_search_cur_term+:} false; then :
24207 break
7eda51e0 24208fi
babf7fe8
JF
24209done
24210if ${ac_cv_search_cur_term+:} false; then :
058f1bc8 24211
babf7fe8
JF
24212else
24213 ac_cv_search_cur_term=no
24214fi
24215rm conftest.$ac_ext
24216LIBS=$ac_func_search_save_LIBS
24217fi
24218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cur_term" >&5
24219$as_echo "$ac_cv_search_cur_term" >&6; }
24220ac_res=$ac_cv_search_cur_term
24221if test "$ac_res" != no; then :
24222 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
058f1bc8 24223
babf7fe8 24224fi
058f1bc8 24225
babf7fe8
JF
24226 LTLIBTERMCAP=$LIBS
24227 LIBS=$cy_save
058f1bc8 24228
058f1bc8 24229
66170b30
JF
24230
24231
3615a2f7
JF
24232
24233
9777bd50
JF
24234SO=$acl_shlibext
24235
e1cce270 24236
a243b558
JF
24237ac_config_files="$ac_config_files Makefile"
24238
9c60689e
DWT
24239cat >confcache <<\_ACEOF
24240# This file is a shell script that caches the results of configure
24241# tests run on this system so they can be shared between configure
24242# scripts and configure runs, see configure's option --config-cache.
24243# It is not useful on other systems. If it contains results you don't
24244# want to keep, you may remove or edit it.
24245#
24246# config.status only pays attention to the cache file if you give it
24247# the --recheck option to rerun configure.
24248#
24249# `ac_cv_env_foo' variables (set or unset) will be overridden when
24250# loading this file, other *unset* `ac_cv_foo' will be assigned the
24251# following values.
24252
24253_ACEOF
24254
24255# The following way of writing the cache mishandles newlines in values,
24256# but we know of no workaround that is simple, portable, and efficient.
24257# So, we kill variables containing newlines.
24258# Ultrix sh set writes to stderr and can't be redirected directly,
24259# and sets the high bit in the cache file unless we assign to the vars.
24260(
24261 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24262 eval ac_val=\$$ac_var
24263 case $ac_val in #(
24264 *${as_nl}*)
24265 case $ac_var in #(
24266 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
24267$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
24268 esac
24269 case $ac_var in #(
24270 _ | IFS | as_nl) ;; #(
24271 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
24272 *) { eval $ac_var=; unset $ac_var;} ;;
24273 esac ;;
24274 esac
24275 done
24276
24277 (set) 2>&1 |
24278 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24279 *${as_nl}ac_space=\ *)
24280 # `set' does not quote correctly, so add quotes: double-quote
24281 # substitution turns \\\\ into \\, and sed turns \\ into \.
24282 sed -n \
24283 "s/'/'\\\\''/g;
24284 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24285 ;; #(
24286 *)
24287 # `set' quotes correctly as required by POSIX, so do not add quotes.
24288 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24289 ;;
24290 esac |
24291 sort
24292) |
24293 sed '
24294 /^ac_cv_env_/b end
24295 t clear
24296 :clear
24297 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24298 t end
24299 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24300 :end' >>confcache
24301if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24302 if test -w "$cache_file"; then
ee134472 24303 if test "x$cache_file" != "x/dev/null"; then
9c60689e
DWT
24304 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
24305$as_echo "$as_me: updating cache $cache_file" >&6;}
ee134472
JF
24306 if test ! -f "$cache_file" || test -h "$cache_file"; then
24307 cat confcache >"$cache_file"
24308 else
24309 case $cache_file in #(
24310 */* | ?:*)
24311 mv -f confcache "$cache_file"$$ &&
24312 mv -f "$cache_file"$$ "$cache_file" ;; #(
24313 *)
24314 mv -f confcache "$cache_file" ;;
24315 esac
24316 fi
24317 fi
9c60689e
DWT
24318 else
24319 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
24320$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24321 fi
24322fi
24323rm -f confcache
24324
24325test "x$prefix" = xNONE && prefix=$ac_default_prefix
24326# Let make expand exec_prefix.
24327test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24328
296ee9a6 24329DEFS=-DHAVE_CONFIG_H
9c60689e
DWT
24330
24331ac_libobjs=
24332ac_ltlibobjs=
12833ad8 24333U=
9c60689e
DWT
24334for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24335 # 1. Remove the extension, and $U if already installed.
24336 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24337 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
24338 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24339 # will be set to the directory where LIBOBJS objects are built.
24340 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24341 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
24342done
24343LIBOBJS=$ac_libobjs
24344
24345LTLIBOBJS=$ac_ltlibobjs
24346
24347
66170b30
JF
24348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
24349$as_echo_n "checking that generated files are newer than configure... " >&6; }
24350 if test -n "$am_sleep_pid"; then
24351 # Hide warnings about reused PIDs.
24352 wait $am_sleep_pid 2>/dev/null
24353 fi
24354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
24355$as_echo "done" >&6; }
24356 if test -n "$EXEEXT"; then
24357 am__EXEEXT_TRUE=
24358 am__EXEEXT_FALSE='#'
24359else
24360 am__EXEEXT_TRUE='#'
24361 am__EXEEXT_FALSE=
24362fi
24363
babf7fe8
JF
24364if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
24365 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
24366Usually this means the macro was only invoked conditionally." "$LINENO" 5
24367fi
66170b30
JF
24368if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24369 as_fn_error $? "conditional \"AMDEP\" was never defined.
24370Usually this means the macro was only invoked conditionally." "$LINENO" 5
24371fi
a93f15c0
JF
24372if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24373 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
24374Usually this means the macro was only invoked conditionally." "$LINENO" 5
24375fi
66170b30
JF
24376if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
24377 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
24378Usually this means the macro was only invoked conditionally." "$LINENO" 5
24379fi
24380if test -z "${am__fastdepOBJCXX_TRUE}" && test -z "${am__fastdepOBJCXX_FALSE}"; then
24381 as_fn_error $? "conditional \"am__fastdepOBJCXX\" was never defined.
24382Usually this means the macro was only invoked conditionally." "$LINENO" 5
24383fi
8d20f0f1
JF
24384if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24385 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
24386Usually this means the macro was only invoked conditionally." "$LINENO" 5
24387fi
24388if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
24389 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
24390Usually this means the macro was only invoked conditionally." "$LINENO" 5
24391fi
a93f15c0
JF
24392if test -z "${CY_CONSOLE_TRUE}" && test -z "${CY_CONSOLE_FALSE}"; then
24393 as_fn_error $? "conditional \"CY_CONSOLE\" was never defined.
babf7fe8
JF
24394Usually this means the macro was only invoked conditionally." "$LINENO" 5
24395fi
a4287117
JF
24396if test -z "${CY_ATTACH_TRUE}" && test -z "${CY_ATTACH_FALSE}"; then
24397 as_fn_error $? "conditional \"CY_ATTACH\" was never defined.
24398Usually this means the macro was only invoked conditionally." "$LINENO" 5
24399fi
a243b558
JF
24400if test -z "${CY_EXECUTE_TRUE}" && test -z "${CY_EXECUTE_FALSE}"; then
24401 as_fn_error $? "conditional \"CY_EXECUTE\" was never defined.
24402Usually this means the macro was only invoked conditionally." "$LINENO" 5
24403fi
591b913e
JF
24404if test -z "${CY_PRELINK_TRUE}" && test -z "${CY_PRELINK_FALSE}"; then
24405 as_fn_error $? "conditional \"CY_PRELINK\" was never defined.
24406Usually this means the macro was only invoked conditionally." "$LINENO" 5
24407fi
39ed1631
JF
24408if test -z "${CY_JAVA_TRUE}" && test -z "${CY_JAVA_FALSE}"; then
24409 as_fn_error $? "conditional \"CY_JAVA\" was never defined.
24410Usually this means the macro was only invoked conditionally." "$LINENO" 5
24411fi
5f29ae16
JF
24412if test -z "${CY_RUBY_TRUE}" && test -z "${CY_RUBY_FALSE}"; then
24413 as_fn_error $? "conditional \"CY_RUBY\" was never defined.
24414Usually this means the macro was only invoked conditionally." "$LINENO" 5
24415fi
591b913e
JF
24416if test -z "${CY_PYTHON_TRUE}" && test -z "${CY_PYTHON_FALSE}"; then
24417 as_fn_error $? "conditional \"CY_PYTHON\" was never defined.
24418Usually this means the macro was only invoked conditionally." "$LINENO" 5
24419fi
a243b558
JF
24420if test -z "${CY_OBJECTIVEC_TRUE}" && test -z "${CY_OBJECTIVEC_FALSE}"; then
24421 as_fn_error $? "conditional \"CY_OBJECTIVEC\" was never defined.
24422Usually this means the macro was only invoked conditionally." "$LINENO" 5
24423fi
cb7b4fad
JF
24424if test -z "${CY_ANDROID_TRUE}" && test -z "${CY_ANDROID_FALSE}"; then
24425 as_fn_error $? "conditional \"CY_ANDROID\" was never defined.
24426Usually this means the macro was only invoked conditionally." "$LINENO" 5
24427fi
8d20f0f1
JF
24428if test -z "${CY_PRELINK_TRUE}" && test -z "${CY_PRELINK_FALSE}"; then
24429 as_fn_error $? "conditional \"CY_PRELINK\" was never defined.
24430Usually this means the macro was only invoked conditionally." "$LINENO" 5
24431fi
9c60689e 24432
ee134472 24433: "${CONFIG_STATUS=./config.status}"
9c60689e
DWT
24434ac_write_fail=0
24435ac_clean_files_save=$ac_clean_files
24436ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24437{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
24438$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
24439as_write_fail=0
24440cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
24441#! $SHELL
24442# Generated by $as_me.
24443# Run this file to recreate the current configuration.
24444# Compiler output produced by configure, useful for debugging
24445# configure, is in config.log if it exists.
24446
24447debug=false
24448ac_cs_recheck=false
24449ac_cs_silent=false
24450
24451SHELL=\${CONFIG_SHELL-$SHELL}
24452export SHELL
24453_ASEOF
24454cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
24455## -------------------- ##
24456## M4sh Initialization. ##
24457## -------------------- ##
24458
24459# Be more Bourne compatible
24460DUALCASE=1; export DUALCASE # for MKS sh
24461if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24462 emulate sh
24463 NULLCMD=:
24464 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24465 # is contrary to our usage. Disable this feature.
24466 alias -g '${1+"$@"}'='"$@"'
24467 setopt NO_GLOB_SUBST
24468else
24469 case `(set -o) 2>/dev/null` in #(
24470 *posix*) :
24471 set -o posix ;; #(
24472 *) :
24473 ;;
24474esac
24475fi
24476
24477
24478as_nl='
24479'
24480export as_nl
24481# Printing a long string crashes Solaris 7 /usr/bin/printf.
24482as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
24483as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
24484as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
24485# Prefer a ksh shell builtin over an external printf program on Solaris,
24486# but without wasting forks for bash or zsh.
24487if test -z "$BASH_VERSION$ZSH_VERSION" \
24488 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
24489 as_echo='print -r --'
24490 as_echo_n='print -rn --'
24491elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
24492 as_echo='printf %s\n'
24493 as_echo_n='printf %s'
24494else
24495 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
24496 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
24497 as_echo_n='/usr/ucb/echo -n'
24498 else
24499 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
24500 as_echo_n_body='eval
24501 arg=$1;
24502 case $arg in #(
24503 *"$as_nl"*)
24504 expr "X$arg" : "X\\(.*\\)$as_nl";
24505 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
24506 esac;
24507 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
24508 '
24509 export as_echo_n_body
24510 as_echo_n='sh -c $as_echo_n_body as_echo'
24511 fi
24512 export as_echo_body
24513 as_echo='sh -c $as_echo_body as_echo'
24514fi
24515
24516# The user is always right.
24517if test "${PATH_SEPARATOR+set}" != set; then
24518 PATH_SEPARATOR=:
24519 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
24520 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
24521 PATH_SEPARATOR=';'
24522 }
24523fi
24524
24525
24526# IFS
24527# We need space, tab and new line, in precisely that order. Quoting is
24528# there to prevent editors from complaining about space-tab.
24529# (If _AS_PATH_WALK were called with IFS unset, it would disable word
24530# splitting by setting IFS to empty value.)
24531IFS=" "" $as_nl"
24532
24533# Find who we are. Look in the path if we contain no directory separator.
ee134472 24534as_myself=
9c60689e
DWT
24535case $0 in #((
24536 *[\\/]* ) as_myself=$0 ;;
24537 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24538for as_dir in $PATH
24539do
24540 IFS=$as_save_IFS
24541 test -z "$as_dir" && as_dir=.
24542 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24543 done
24544IFS=$as_save_IFS
24545
24546 ;;
24547esac
24548# We did not find ourselves, most probably we were run as `sh COMMAND'
24549# in which case we are not to be found in the path.
24550if test "x$as_myself" = x; then
24551 as_myself=$0
24552fi
24553if test ! -f "$as_myself"; then
24554 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24555 exit 1
24556fi
24557
24558# Unset variables that we do not need and which cause bugs (e.g. in
24559# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
24560# suppresses any "Segmentation fault" message there. '((' could
24561# trigger a bug in pdksh 5.2.14.
24562for as_var in BASH_ENV ENV MAIL MAILPATH
24563do eval test x\${$as_var+set} = xset \
24564 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
24565done
24566PS1='$ '
24567PS2='> '
24568PS4='+ '
24569
24570# NLS nuisances.
24571LC_ALL=C
24572export LC_ALL
24573LANGUAGE=C
24574export LANGUAGE
24575
24576# CDPATH.
24577(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
24578
24579
12833ad8
JF
24580# as_fn_error STATUS ERROR [LINENO LOG_FD]
24581# ----------------------------------------
9c60689e
DWT
24582# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
24583# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12833ad8 24584# script with STATUS, using 1 if that was 0.
9c60689e
DWT
24585as_fn_error ()
24586{
12833ad8
JF
24587 as_status=$1; test $as_status -eq 0 && as_status=1
24588 if test "$4"; then
24589 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
24590 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
9c60689e 24591 fi
12833ad8 24592 $as_echo "$as_me: error: $2" >&2
9c60689e
DWT
24593 as_fn_exit $as_status
24594} # as_fn_error
24595
24596
24597# as_fn_set_status STATUS
24598# -----------------------
24599# Set $? to STATUS, without forking.
24600as_fn_set_status ()
24601{
24602 return $1
24603} # as_fn_set_status
24604
24605# as_fn_exit STATUS
24606# -----------------
24607# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
24608as_fn_exit ()
24609{
24610 set +e
24611 as_fn_set_status $1
24612 exit $1
24613} # as_fn_exit
24614
24615# as_fn_unset VAR
24616# ---------------
24617# Portably unset VAR.
24618as_fn_unset ()
24619{
24620 { eval $1=; unset $1;}
24621}
24622as_unset=as_fn_unset
24623# as_fn_append VAR VALUE
24624# ----------------------
24625# Append the text in VALUE to the end of the definition contained in VAR. Take
24626# advantage of any shell optimizations that allow amortized linear growth over
24627# repeated appends, instead of the typical quadratic growth present in naive
24628# implementations.
24629if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
24630 eval 'as_fn_append ()
24631 {
24632 eval $1+=\$2
24633 }'
24634else
24635 as_fn_append ()
24636 {
24637 eval $1=\$$1\$2
24638 }
24639fi # as_fn_append
24640
24641# as_fn_arith ARG...
24642# ------------------
24643# Perform arithmetic evaluation on the ARGs, and store the result in the
24644# global $as_val. Take advantage of shells that can avoid forks. The arguments
24645# must be portable across $(()) and expr.
24646if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
24647 eval 'as_fn_arith ()
24648 {
24649 as_val=$(( $* ))
24650 }'
24651else
24652 as_fn_arith ()
24653 {
24654 as_val=`expr "$@" || test $? -eq 1`
24655 }
24656fi # as_fn_arith
24657
24658
24659if expr a : '\(a\)' >/dev/null 2>&1 &&
24660 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24661 as_expr=expr
24662else
24663 as_expr=false
24664fi
24665
24666if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24667 as_basename=basename
24668else
24669 as_basename=false
24670fi
24671
24672if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24673 as_dirname=dirname
24674else
24675 as_dirname=false
24676fi
24677
24678as_me=`$as_basename -- "$0" ||
24679$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24680 X"$0" : 'X\(//\)$' \| \
24681 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24682$as_echo X/"$0" |
24683 sed '/^.*\/\([^/][^/]*\)\/*$/{
24684 s//\1/
24685 q
24686 }
24687 /^X\/\(\/\/\)$/{
24688 s//\1/
24689 q
24690 }
24691 /^X\/\(\/\).*/{
24692 s//\1/
24693 q
24694 }
24695 s/.*/./; q'`
24696
24697# Avoid depending upon Character Ranges.
24698as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24699as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24700as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24701as_cr_digits='0123456789'
24702as_cr_alnum=$as_cr_Letters$as_cr_digits
24703
24704ECHO_C= ECHO_N= ECHO_T=
24705case `echo -n x` in #(((((
24706-n*)
24707 case `echo 'xy\c'` in
24708 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24709 xy) ECHO_C='\c';;
24710 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
24711 ECHO_T=' ';;
24712 esac;;
24713*)
24714 ECHO_N='-n';;
24715esac
24716
24717rm -f conf$$ conf$$.exe conf$$.file
24718if test -d conf$$.dir; then
24719 rm -f conf$$.dir/conf$$.file
24720else
24721 rm -f conf$$.dir
24722 mkdir conf$$.dir 2>/dev/null
24723fi
24724if (echo >conf$$.file) 2>/dev/null; then
24725 if ln -s conf$$.file conf$$ 2>/dev/null; then
24726 as_ln_s='ln -s'
24727 # ... but there are two gotchas:
24728 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24729 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
53ba6704 24730 # In both cases, we have to default to `cp -pR'.
9c60689e 24731 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
53ba6704 24732 as_ln_s='cp -pR'
9c60689e
DWT
24733 elif ln conf$$.file conf$$ 2>/dev/null; then
24734 as_ln_s=ln
24735 else
53ba6704 24736 as_ln_s='cp -pR'
9c60689e
DWT
24737 fi
24738else
53ba6704 24739 as_ln_s='cp -pR'
9c60689e
DWT
24740fi
24741rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24742rmdir conf$$.dir 2>/dev/null
24743
24744
24745# as_fn_mkdir_p
24746# -------------
24747# Create "$as_dir" as a directory, including parents if necessary.
24748as_fn_mkdir_p ()
24749{
24750
24751 case $as_dir in #(
24752 -*) as_dir=./$as_dir;;
24753 esac
24754 test -d "$as_dir" || eval $as_mkdir_p || {
24755 as_dirs=
24756 while :; do
24757 case $as_dir in #(
24758 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
24759 *) as_qdir=$as_dir;;
24760 esac
24761 as_dirs="'$as_qdir' $as_dirs"
24762 as_dir=`$as_dirname -- "$as_dir" ||
24763$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24764 X"$as_dir" : 'X\(//\)[^/]' \| \
24765 X"$as_dir" : 'X\(//\)$' \| \
24766 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24767$as_echo X"$as_dir" |
24768 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24769 s//\1/
24770 q
24771 }
24772 /^X\(\/\/\)[^/].*/{
24773 s//\1/
24774 q
24775 }
24776 /^X\(\/\/\)$/{
24777 s//\1/
24778 q
24779 }
24780 /^X\(\/\).*/{
24781 s//\1/
24782 q
24783 }
24784 s/.*/./; q'`
24785 test -d "$as_dir" && break
24786 done
24787 test -z "$as_dirs" || eval "mkdir $as_dirs"
12833ad8 24788 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
9c60689e
DWT
24789
24790
24791} # as_fn_mkdir_p
24792if mkdir -p . 2>/dev/null; then
24793 as_mkdir_p='mkdir -p "$as_dir"'
24794else
24795 test -d ./-p && rmdir ./-p
24796 as_mkdir_p=false
24797fi
24798
53ba6704
JF
24799
24800# as_fn_executable_p FILE
24801# -----------------------
24802# Test if FILE is an executable regular file.
24803as_fn_executable_p ()
24804{
24805 test -f "$1" && test -x "$1"
24806} # as_fn_executable_p
24807as_test_x='test -x'
24808as_executable_p=as_fn_executable_p
9c60689e
DWT
24809
24810# Sed expression to map a string onto a valid CPP name.
24811as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24812
24813# Sed expression to map a string onto a valid variable name.
24814as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24815
24816
24817exec 6>&1
24818## ----------------------------------- ##
24819## Main body of $CONFIG_STATUS script. ##
24820## ----------------------------------- ##
24821_ASEOF
24822test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
24823
24824cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24825# Save the log message, to keep $0 and so on meaningful, and to
24826# report actual input values of CONFIG_FILES etc. instead of their
24827# values after options handling.
24828ac_log="
24829This file was extended by Cycript $as_me 0.9, which was
53ba6704 24830generated by GNU Autoconf 2.69. Invocation command line was
9c60689e
DWT
24831
24832 CONFIG_FILES = $CONFIG_FILES
24833 CONFIG_HEADERS = $CONFIG_HEADERS
24834 CONFIG_LINKS = $CONFIG_LINKS
24835 CONFIG_COMMANDS = $CONFIG_COMMANDS
24836 $ $0 $@
24837
24838on `(hostname || uname -n) 2>/dev/null | sed 1q`
24839"
24840
24841_ACEOF
24842
24843case $ac_config_files in *"
24844"*) set x $ac_config_files; shift; ac_config_files=$*;;
24845esac
24846
296ee9a6
JF
24847case $ac_config_headers in *"
24848"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
24849esac
9c60689e
DWT
24850
24851
24852cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24853# Files that config.status was made for.
24854config_files="$ac_config_files"
296ee9a6 24855config_headers="$ac_config_headers"
9c60689e
DWT
24856config_commands="$ac_config_commands"
24857
24858_ACEOF
24859
24860cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24861ac_cs_usage="\
24862\`$as_me' instantiates files and other configuration actions
24863from templates according to the current configuration. Unless the files
24864and actions are specified as TAGs, all are instantiated by default.
24865
24866Usage: $0 [OPTION]... [TAG]...
24867
24868 -h, --help print this help, then exit
24869 -V, --version print version number and configuration settings, then exit
24870 --config print configuration, then exit
24871 -q, --quiet, --silent
24872 do not print progress messages
24873 -d, --debug don't remove temporary files
24874 --recheck update $as_me by reconfiguring in the same conditions
24875 --file=FILE[:TEMPLATE]
24876 instantiate the configuration file FILE
296ee9a6
JF
24877 --header=FILE[:TEMPLATE]
24878 instantiate the configuration header FILE
9c60689e
DWT
24879
24880Configuration files:
24881$config_files
24882
296ee9a6
JF
24883Configuration headers:
24884$config_headers
24885
9c60689e
DWT
24886Configuration commands:
24887$config_commands
24888
24889Report bugs to <saurik@saurik.com>.
24890Cycript home page: <http://www.cycript.org/>."
24891
24892_ACEOF
24893cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24894ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
24895ac_cs_version="\\
24896Cycript config.status 0.9
53ba6704 24897configured by $0, generated by GNU Autoconf 2.69,
9c60689e
DWT
24898 with options \\"\$ac_cs_config\\"
24899
53ba6704 24900Copyright (C) 2012 Free Software Foundation, Inc.
9c60689e
DWT
24901This config.status script is free software; the Free Software Foundation
24902gives unlimited permission to copy, distribute and modify it."
24903
24904ac_pwd='$ac_pwd'
24905srcdir='$srcdir'
24906INSTALL='$INSTALL'
66170b30
JF
24907MKDIR_P='$MKDIR_P'
24908AWK='$AWK'
9c60689e
DWT
24909test -n "\$AWK" || AWK=awk
24910_ACEOF
24911
24912cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24913# The default lists apply if the user does not specify any file.
24914ac_need_defaults=:
24915while test $# != 0
24916do
24917 case $1 in
12833ad8 24918 --*=?*)
9c60689e
DWT
24919 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24920 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24921 ac_shift=:
24922 ;;
12833ad8
JF
24923 --*=)
24924 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24925 ac_optarg=
24926 ac_shift=:
24927 ;;
9c60689e
DWT
24928 *)
24929 ac_option=$1
24930 ac_optarg=$2
24931 ac_shift=shift
24932 ;;
24933 esac
24934
24935 case $ac_option in
24936 # Handling of the options.
24937 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24938 ac_cs_recheck=: ;;
24939 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24940 $as_echo "$ac_cs_version"; exit ;;
24941 --config | --confi | --conf | --con | --co | --c )
24942 $as_echo "$ac_cs_config"; exit ;;
24943 --debug | --debu | --deb | --de | --d | -d )
24944 debug=: ;;
24945 --file | --fil | --fi | --f )
24946 $ac_shift
24947 case $ac_optarg in
24948 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12833ad8 24949 '') as_fn_error $? "missing file argument" ;;
9c60689e
DWT
24950 esac
24951 as_fn_append CONFIG_FILES " '$ac_optarg'"
24952 ac_need_defaults=false;;
296ee9a6
JF
24953 --header | --heade | --head | --hea )
24954 $ac_shift
24955 case $ac_optarg in
24956 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
24957 esac
24958 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
24959 ac_need_defaults=false;;
24960 --he | --h)
24961 # Conflict between --help and --header
24962 as_fn_error $? "ambiguous option: \`$1'
24963Try \`$0 --help' for more information.";;
24964 --help | --hel | -h )
9c60689e
DWT
24965 $as_echo "$ac_cs_usage"; exit ;;
24966 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24967 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24968 ac_cs_silent=: ;;
24969
24970 # This is an error.
12833ad8 24971 -*) as_fn_error $? "unrecognized option: \`$1'
9c60689e
DWT
24972Try \`$0 --help' for more information." ;;
24973
24974 *) as_fn_append ac_config_targets " $1"
24975 ac_need_defaults=false ;;
24976
24977 esac
24978 shift
24979done
24980
24981ac_configure_extra_args=
24982
24983if $ac_cs_silent; then
24984 exec 6>/dev/null
24985 ac_configure_extra_args="$ac_configure_extra_args --silent"
24986fi
24987
24988_ACEOF
24989cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24990if \$ac_cs_recheck; then
53ba6704 24991 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9c60689e
DWT
24992 shift
24993 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
24994 CONFIG_SHELL='$SHELL'
24995 export CONFIG_SHELL
24996 exec "\$@"
24997fi
24998
24999_ACEOF
25000cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25001exec 5>>config.log
25002{
25003 echo
25004 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25005## Running $as_me. ##
25006_ASBOX
25007 $as_echo "$ac_log"
25008} >&5
25009
25010_ACEOF
25011cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25012#
25013# INIT-COMMANDS
25014#
66170b30 25015AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
9c60689e
DWT
25016
25017
25018# The HP-UX ksh and POSIX shell print the target directory to stdout
25019# if CDPATH is set.
25020(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25021
25022sed_quote_subst='$sed_quote_subst'
25023double_quote_subst='$double_quote_subst'
25024delay_variable_subst='$delay_variable_subst'
ee134472
JF
25025macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
25026macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
25027enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
25028enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
25029pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
25030enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
9d54db95 25031shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
ee134472
JF
25032SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
25033ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
53ba6704 25034PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
ee134472
JF
25035host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
25036host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
25037host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
25038build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
25039build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
25040build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
25041SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
25042Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
25043GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
25044EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
25045FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
25046LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
25047NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
25048LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
25049max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
25050ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
25051exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
25052lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
25053lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
25054lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
25055lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
25056lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
25057reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
25058reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
25059OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
25060deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
25061file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
25062file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
25063want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
25064DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
25065sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
25066AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
25067AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
25068archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
25069STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
25070RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
25071old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
25072old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
25073old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
25074lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
25075CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
25076CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
25077compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
25078GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
25079lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
25080lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
9d54db95 25081lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
ee134472
JF
25082lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
25083lt_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 25084lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
ee134472
JF
25085nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
25086lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
9d54db95 25087lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
ee134472
JF
25088objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
25089MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
25090lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
25091lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
25092lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
25093lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
25094lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
25095need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
25096MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
25097DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
25098NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
25099LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
25100OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
25101OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
25102libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
25103shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
25104extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
25105archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
25106enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
25107export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
25108whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
25109compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
25110old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
25111old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
25112archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
25113archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
25114module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
25115module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
25116with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
25117allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
25118no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
25119hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
ee134472
JF
25120hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
25121hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
25122hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
25123hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
25124hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
25125hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
25126inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
25127link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
25128always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
25129export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
25130exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
25131include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
25132prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
25133postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
25134file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
25135variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
25136need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
25137need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
25138version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
25139runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
25140shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
25141shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
25142libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
25143library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
25144soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
25145install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
25146postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
25147postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
25148finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
25149finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
25150hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
25151sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
9d54db95
JF
25152configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
25153configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
ee134472
JF
25154hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
25155enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
25156enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
25157enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
25158old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
25159striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
25160compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
25161predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
25162postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
25163predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
25164postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
25165compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
25166LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
25167reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
25168reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25169old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25170compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
25171GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
25172lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
25173lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
25174lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
25175lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
25176lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
25177archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
25178enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
25179export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
25180whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
25181compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
25182old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25183old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25184archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25185archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25186module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25187module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25188with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
25189allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
25190no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
25191hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
ee134472
JF
25192hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
25193hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
25194hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
25195hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
25196hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
25197hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
25198inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
25199link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
25200always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
25201export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25202exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
25203include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
25204prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25205postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25206file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
25207hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
25208compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
25209predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
25210postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
25211predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
25212postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
25213compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
9c60689e
DWT
25214
25215LTCC='$LTCC'
25216LTCFLAGS='$LTCFLAGS'
25217compiler='$compiler_DEFAULT'
25218
ee134472
JF
25219# A function that is used when there is no print builtin or printf.
25220func_fallback_echo ()
25221{
25222 eval 'cat <<_LTECHO_EOF
25223\$1
25224_LTECHO_EOF'
25225}
25226
9c60689e 25227# Quote evaled strings.
ee134472
JF
25228for var in SHELL \
25229ECHO \
53ba6704 25230PATH_SEPARATOR \
ee134472 25231SED \
9c60689e
DWT
25232GREP \
25233EGREP \
25234FGREP \
25235LD \
25236NM \
25237LN_S \
25238lt_SP2NL \
25239lt_NL2SP \
25240reload_flag \
25241OBJDUMP \
25242deplibs_check_method \
25243file_magic_cmd \
ee134472
JF
25244file_magic_glob \
25245want_nocaseglob \
25246DLLTOOL \
25247sharedlib_from_linklib_cmd \
9c60689e
DWT
25248AR \
25249AR_FLAGS \
ee134472 25250archiver_list_spec \
9c60689e
DWT
25251STRIP \
25252RANLIB \
25253CC \
25254CFLAGS \
25255compiler \
25256lt_cv_sys_global_symbol_pipe \
25257lt_cv_sys_global_symbol_to_cdecl \
9d54db95 25258lt_cv_sys_global_symbol_to_import \
9c60689e
DWT
25259lt_cv_sys_global_symbol_to_c_name_address \
25260lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
9d54db95 25261lt_cv_nm_interface \
ee134472 25262nm_file_list_spec \
9d54db95 25263lt_cv_truncate_bin \
9c60689e 25264lt_prog_compiler_no_builtin_flag \
9c60689e 25265lt_prog_compiler_pic \
ee134472 25266lt_prog_compiler_wl \
9c60689e
DWT
25267lt_prog_compiler_static \
25268lt_cv_prog_compiler_c_o \
25269need_locks \
ee134472 25270MANIFEST_TOOL \
9c60689e
DWT
25271DSYMUTIL \
25272NMEDIT \
25273LIPO \
25274OTOOL \
25275OTOOL64 \
25276shrext_cmds \
25277export_dynamic_flag_spec \
25278whole_archive_flag_spec \
25279compiler_needs_object \
25280with_gnu_ld \
25281allow_undefined_flag \
25282no_undefined_flag \
25283hardcode_libdir_flag_spec \
9c60689e 25284hardcode_libdir_separator \
9c60689e
DWT
25285exclude_expsyms \
25286include_expsyms \
25287file_list_spec \
25288variables_saved_for_relink \
25289libname_spec \
25290library_names_spec \
25291soname_spec \
ee134472 25292install_override_mode \
9c60689e
DWT
25293finish_eval \
25294old_striplib \
25295striplib \
25296compiler_lib_search_dirs \
25297predep_objects \
25298postdep_objects \
25299predeps \
25300postdeps \
25301compiler_lib_search_path \
25302LD_CXX \
ee134472 25303reload_flag_CXX \
9c60689e
DWT
25304compiler_CXX \
25305lt_prog_compiler_no_builtin_flag_CXX \
9c60689e 25306lt_prog_compiler_pic_CXX \
ee134472 25307lt_prog_compiler_wl_CXX \
9c60689e
DWT
25308lt_prog_compiler_static_CXX \
25309lt_cv_prog_compiler_c_o_CXX \
25310export_dynamic_flag_spec_CXX \
25311whole_archive_flag_spec_CXX \
25312compiler_needs_object_CXX \
25313with_gnu_ld_CXX \
25314allow_undefined_flag_CXX \
25315no_undefined_flag_CXX \
25316hardcode_libdir_flag_spec_CXX \
9c60689e 25317hardcode_libdir_separator_CXX \
9c60689e
DWT
25318exclude_expsyms_CXX \
25319include_expsyms_CXX \
25320file_list_spec_CXX \
25321compiler_lib_search_dirs_CXX \
25322predep_objects_CXX \
25323postdep_objects_CXX \
25324predeps_CXX \
25325postdeps_CXX \
25326compiler_lib_search_path_CXX; do
ee134472 25327 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
9c60689e 25328 *[\\\\\\\`\\"\\\$]*)
9d54db95 25329 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
9c60689e
DWT
25330 ;;
25331 *)
25332 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
25333 ;;
25334 esac
25335done
25336
25337# Double-quote double-evaled strings.
25338for var in reload_cmds \
25339old_postinstall_cmds \
25340old_postuninstall_cmds \
25341old_archive_cmds \
25342extract_expsyms_cmds \
25343old_archive_from_new_cmds \
25344old_archive_from_expsyms_cmds \
25345archive_cmds \
25346archive_expsym_cmds \
25347module_cmds \
25348module_expsym_cmds \
25349export_symbols_cmds \
25350prelink_cmds \
ee134472 25351postlink_cmds \
9c60689e
DWT
25352postinstall_cmds \
25353postuninstall_cmds \
25354finish_cmds \
25355sys_lib_search_path_spec \
9d54db95
JF
25356configure_time_dlsearch_path \
25357configure_time_lt_sys_library_path \
ee134472 25358reload_cmds_CXX \
9c60689e
DWT
25359old_archive_cmds_CXX \
25360old_archive_from_new_cmds_CXX \
25361old_archive_from_expsyms_cmds_CXX \
25362archive_cmds_CXX \
25363archive_expsym_cmds_CXX \
25364module_cmds_CXX \
25365module_expsym_cmds_CXX \
25366export_symbols_cmds_CXX \
ee134472
JF
25367prelink_cmds_CXX \
25368postlink_cmds_CXX; do
25369 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
9c60689e 25370 *[\\\\\\\`\\"\\\$]*)
9d54db95 25371 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
25372 ;;
25373 *)
25374 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
25375 ;;
25376 esac
25377done
25378
9c60689e 25379ac_aux_dir='$ac_aux_dir'
9c60689e 25380
9d54db95 25381# See if we are running on zsh, and set the options that allow our
9c60689e 25382# commands through without removal of \ escapes INIT.
9d54db95 25383if test -n "\${ZSH_VERSION+set}"; then
9c60689e
DWT
25384 setopt NO_GLOB_SUBST
25385fi
25386
25387
25388 PACKAGE='$PACKAGE'
25389 VERSION='$VERSION'
9c60689e
DWT
25390 RM='$RM'
25391 ofile='$ofile'
25392
25393
25394
25395
25396
25397
25398_ACEOF
25399
25400cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25401
25402# Handling of arguments.
25403for ac_config_target in $ac_config_targets
25404do
25405 case $ac_config_target in
296ee9a6 25406 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
66170b30 25407 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
9c60689e 25408 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
790e5246 25409 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9c60689e 25410
ee134472 25411 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
9c60689e
DWT
25412 esac
25413done
25414
25415
25416# If the user did not use the arguments to specify the items to instantiate,
25417# then the envvar interface is used. Set only those that are not.
25418# We use the long form for the default assignment because of an extremely
25419# bizarre bug on SunOS 4.1.3.
25420if $ac_need_defaults; then
25421 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
296ee9a6 25422 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9c60689e
DWT
25423 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25424fi
25425
25426# Have a temporary directory for convenience. Make it in the build tree
25427# simply because there is no reason against having it here, and in addition,
25428# creating and moving files from /tmp can sometimes cause problems.
25429# Hook for its removal unless debugging.
25430# Note that there is a small window in which the directory will not be cleaned:
25431# after its creation but before its name has been assigned to `$tmp'.
25432$debug ||
25433{
ee134472 25434 tmp= ac_tmp=
9c60689e 25435 trap 'exit_status=$?
ee134472
JF
25436 : "${ac_tmp:=$tmp}"
25437 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
9c60689e
DWT
25438' 0
25439 trap 'as_fn_exit 1' 1 2 13 15
25440}
25441# Create a (secure) tmp directory for tmp files.
25442
25443{
25444 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
ee134472 25445 test -d "$tmp"
9c60689e
DWT
25446} ||
25447{
25448 tmp=./conf$$-$RANDOM
25449 (umask 077 && mkdir "$tmp")
12833ad8 25450} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
ee134472 25451ac_tmp=$tmp
9c60689e
DWT
25452
25453# Set up the scripts for CONFIG_FILES section.
25454# No need to generate them if there are no CONFIG_FILES.
25455# This happens for instance with `./config.status config.h'.
25456if test -n "$CONFIG_FILES"; then
25457
25458
25459ac_cr=`echo X | tr X '\015'`
25460# On cygwin, bash can eat \r inside `` if the user requested igncr.
25461# But we know of no other shell where ac_cr would be empty at this
25462# point, so we can use a bashism as a fallback.
25463if test "x$ac_cr" = x; then
25464 eval ac_cr=\$\'\\r\'
25465fi
25466ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
25467if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12833ad8 25468 ac_cs_awk_cr='\\r'
9c60689e
DWT
25469else
25470 ac_cs_awk_cr=$ac_cr
25471fi
25472
ee134472 25473echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
9c60689e
DWT
25474_ACEOF
25475
25476
25477{
25478 echo "cat >conf$$subs.awk <<_ACEOF" &&
25479 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
25480 echo "_ACEOF"
25481} >conf$$subs.sh ||
12833ad8
JF
25482 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
25483ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
9c60689e
DWT
25484ac_delim='%!_!# '
25485for ac_last_try in false false false false false :; do
25486 . ./conf$$subs.sh ||
12833ad8 25487 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9c60689e
DWT
25488
25489 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
25490 if test $ac_delim_n = $ac_delim_num; then
25491 break
25492 elif $ac_last_try; then
12833ad8 25493 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9c60689e
DWT
25494 else
25495 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25496 fi
25497done
25498rm -f conf$$subs.sh
25499
25500cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ee134472 25501cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
9c60689e
DWT
25502_ACEOF
25503sed -n '
25504h
25505s/^/S["/; s/!.*/"]=/
25506p
25507g
25508s/^[^!]*!//
25509:repl
25510t repl
25511s/'"$ac_delim"'$//
25512t delim
25513:nl
25514h
25515s/\(.\{148\}\)..*/\1/
25516t more1
25517s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
25518p
25519n
25520b repl
25521:more1
25522s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25523p
25524g
25525s/.\{148\}//
25526t nl
25527:delim
25528h
25529s/\(.\{148\}\)..*/\1/
25530t more2
25531s/["\\]/\\&/g; s/^/"/; s/$/"/
25532p
25533b
25534:more2
25535s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25536p
25537g
25538s/.\{148\}//
25539t delim
25540' <conf$$subs.awk | sed '
25541/^[^""]/{
25542 N
25543 s/\n//
25544}
25545' >>$CONFIG_STATUS || ac_write_fail=1
25546rm -f conf$$subs.awk
25547cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25548_ACAWK
ee134472 25549cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
9c60689e
DWT
25550 for (key in S) S_is_set[key] = 1
25551 FS = "\a"
25552
25553}
25554{
25555 line = $ 0
25556 nfields = split(line, field, "@")
25557 substed = 0
25558 len = length(field[1])
25559 for (i = 2; i < nfields; i++) {
25560 key = field[i]
25561 keylen = length(key)
25562 if (S_is_set[key]) {
25563 value = S[key]
25564 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
25565 len += length(value) + length(field[++i])
25566 substed = 1
25567 } else
25568 len += 1 + keylen
25569 }
25570
25571 print line
25572}
25573
25574_ACAWK
25575_ACEOF
25576cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25577if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
25578 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
25579else
25580 cat
ee134472 25581fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12833ad8 25582 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
9c60689e
DWT
25583_ACEOF
25584
12833ad8
JF
25585# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
25586# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
9c60689e
DWT
25587# trailing colons and then remove the whole line if VPATH becomes empty
25588# (actually we leave an empty line to preserve line numbers).
25589if test "x$srcdir" = x.; then
12833ad8
JF
25590 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
25591h
25592s///
25593s/^/:/
25594s/[ ]*$/:/
25595s/:\$(srcdir):/:/g
25596s/:\${srcdir}:/:/g
25597s/:@srcdir@:/:/g
25598s/^:*//
9c60689e 25599s/:*$//
12833ad8
JF
25600x
25601s/\(=[ ]*\).*/\1/
25602G
25603s/\n//
9c60689e
DWT
25604s/^[^=]*=[ ]*$//
25605}'
25606fi
25607
25608cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25609fi # test -n "$CONFIG_FILES"
25610
296ee9a6
JF
25611# Set up the scripts for CONFIG_HEADERS section.
25612# No need to generate them if there are no CONFIG_HEADERS.
25613# This happens for instance with `./config.status Makefile'.
25614if test -n "$CONFIG_HEADERS"; then
25615cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
25616BEGIN {
25617_ACEOF
25618
25619# Transform confdefs.h into an awk script `defines.awk', embedded as
25620# here-document in config.status, that substitutes the proper values into
25621# config.h.in to produce config.h.
25622
25623# Create a delimiter string that does not exist in confdefs.h, to ease
25624# handling of long lines.
25625ac_delim='%!_!# '
25626for ac_last_try in false false :; do
25627 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
25628 if test -z "$ac_tt"; then
25629 break
25630 elif $ac_last_try; then
25631 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
25632 else
25633 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25634 fi
25635done
25636
25637# For the awk script, D is an array of macro values keyed by name,
25638# likewise P contains macro parameters if any. Preserve backslash
25639# newline sequences.
25640
25641ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25642sed -n '
25643s/.\{148\}/&'"$ac_delim"'/g
25644t rset
25645:rset
25646s/^[ ]*#[ ]*define[ ][ ]*/ /
25647t def
25648d
25649:def
25650s/\\$//
25651t bsnl
25652s/["\\]/\\&/g
25653s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
25654D["\1"]=" \3"/p
25655s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
25656d
25657:bsnl
25658s/["\\]/\\&/g
25659s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
25660D["\1"]=" \3\\\\\\n"\\/p
25661t cont
25662s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
25663t cont
25664d
25665:cont
25666n
25667s/.\{148\}/&'"$ac_delim"'/g
25668t clear
25669:clear
25670s/\\$//
25671t bsnlc
25672s/["\\]/\\&/g; s/^/"/; s/$/"/p
25673d
25674:bsnlc
25675s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
25676b cont
25677' <confdefs.h | sed '
25678s/'"$ac_delim"'/"\\\
25679"/g' >>$CONFIG_STATUS || ac_write_fail=1
25680
25681cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25682 for (key in D) D_is_set[key] = 1
25683 FS = "\a"
25684}
25685/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
25686 line = \$ 0
25687 split(line, arg, " ")
25688 if (arg[1] == "#") {
25689 defundef = arg[2]
25690 mac1 = arg[3]
25691 } else {
25692 defundef = substr(arg[1], 2)
25693 mac1 = arg[2]
25694 }
25695 split(mac1, mac2, "(") #)
25696 macro = mac2[1]
25697 prefix = substr(line, 1, index(line, defundef) - 1)
25698 if (D_is_set[macro]) {
25699 # Preserve the white space surrounding the "#".
25700 print prefix "define", macro P[macro] D[macro]
25701 next
25702 } else {
25703 # Replace #undef with comments. This is necessary, for example,
25704 # in the case of _POSIX_SOURCE, which is predefined and required
25705 # on some systems where configure will not decide to define it.
25706 if (defundef == "undef") {
25707 print "/*", prefix defundef, macro, "*/"
25708 next
25709 }
25710 }
25711}
25712{ print }
25713_ACAWK
25714_ACEOF
25715cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25716 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
25717fi # test -n "$CONFIG_HEADERS"
25718
9c60689e 25719
296ee9a6 25720eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
9c60689e
DWT
25721shift
25722for ac_tag
25723do
25724 case $ac_tag in
25725 :[FHLC]) ac_mode=$ac_tag; continue;;
25726 esac
25727 case $ac_mode$ac_tag in
25728 :[FHL]*:*);;
ee134472 25729 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
9c60689e
DWT
25730 :[FH]-) ac_tag=-:-;;
25731 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25732 esac
25733 ac_save_IFS=$IFS
25734 IFS=:
25735 set x $ac_tag
25736 IFS=$ac_save_IFS
25737 shift
25738 ac_file=$1
25739 shift
25740
25741 case $ac_mode in
25742 :L) ac_source=$1;;
25743 :[FH])
25744 ac_file_inputs=
25745 for ac_f
25746 do
25747 case $ac_f in
ee134472 25748 -) ac_f="$ac_tmp/stdin";;
9c60689e
DWT
25749 *) # Look for the file first in the build tree, then in the source tree
25750 # (if the path is not absolute). The absolute path cannot be DOS-style,
25751 # because $ac_f cannot contain `:'.
25752 test -f "$ac_f" ||
25753 case $ac_f in
25754 [\\/$]*) false;;
25755 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25756 esac ||
ee134472 25757 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
9c60689e
DWT
25758 esac
25759 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
25760 as_fn_append ac_file_inputs " '$ac_f'"
25761 done
25762
25763 # Let's still pretend it is `configure' which instantiates (i.e., don't
25764 # use $as_me), people would be surprised to read:
25765 # /* config.h. Generated by config.status. */
25766 configure_input='Generated from '`
25767 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
25768 `' by configure.'
25769 if test x"$ac_file" != x-; then
25770 configure_input="$ac_file. $configure_input"
25771 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
25772$as_echo "$as_me: creating $ac_file" >&6;}
25773 fi
25774 # Neutralize special characters interpreted by sed in replacement strings.
25775 case $configure_input in #(
25776 *\&* | *\|* | *\\* )
25777 ac_sed_conf_input=`$as_echo "$configure_input" |
25778 sed 's/[\\\\&|]/\\\\&/g'`;; #(
25779 *) ac_sed_conf_input=$configure_input;;
25780 esac
25781
25782 case $ac_tag in
ee134472
JF
25783 *:-:* | *:-) cat >"$ac_tmp/stdin" \
25784 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
9c60689e
DWT
25785 esac
25786 ;;
25787 esac
25788
25789 ac_dir=`$as_dirname -- "$ac_file" ||
25790$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25791 X"$ac_file" : 'X\(//\)[^/]' \| \
25792 X"$ac_file" : 'X\(//\)$' \| \
25793 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25794$as_echo X"$ac_file" |
25795 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25796 s//\1/
25797 q
25798 }
25799 /^X\(\/\/\)[^/].*/{
25800 s//\1/
25801 q
25802 }
25803 /^X\(\/\/\)$/{
25804 s//\1/
25805 q
25806 }
25807 /^X\(\/\).*/{
25808 s//\1/
25809 q
25810 }
25811 s/.*/./; q'`
25812 as_dir="$ac_dir"; as_fn_mkdir_p
25813 ac_builddir=.
25814
25815case "$ac_dir" in
25816.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25817*)
25818 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
25819 # A ".." for each directory in $ac_dir_suffix.
25820 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
25821 case $ac_top_builddir_sub in
25822 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25823 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25824 esac ;;
25825esac
25826ac_abs_top_builddir=$ac_pwd
25827ac_abs_builddir=$ac_pwd$ac_dir_suffix
25828# for backward compatibility:
25829ac_top_builddir=$ac_top_build_prefix
35fa52c0 25830
9c60689e
DWT
25831case $srcdir in
25832 .) # We are building in place.
25833 ac_srcdir=.
25834 ac_top_srcdir=$ac_top_builddir_sub
25835 ac_abs_top_srcdir=$ac_pwd ;;
25836 [\\/]* | ?:[\\/]* ) # Absolute name.
25837 ac_srcdir=$srcdir$ac_dir_suffix;
25838 ac_top_srcdir=$srcdir
25839 ac_abs_top_srcdir=$srcdir ;;
25840 *) # Relative name.
25841 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25842 ac_top_srcdir=$ac_top_build_prefix$srcdir
25843 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25844esac
25845ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35fa52c0
DWT
25846
25847
9c60689e
DWT
25848 case $ac_mode in
25849 :F)
25850 #
25851 # CONFIG_FILE
25852 #
35fa52c0 25853
9c60689e
DWT
25854 case $INSTALL in
25855 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25856 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25857 esac
66170b30
JF
25858 ac_MKDIR_P=$MKDIR_P
25859 case $MKDIR_P in
25860 [\\/$]* | ?:[\\/]* ) ;;
25861 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
25862 esac
9c60689e 25863_ACEOF
35fa52c0 25864
9c60689e
DWT
25865cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25866# If the template does not know about datarootdir, expand it.
25867# FIXME: This hack should be removed a few years after 2.60.
25868ac_datarootdir_hack=; ac_datarootdir_seen=
25869ac_sed_dataroot='
25870/datarootdir/ {
25871 p
25872 q
25873}
25874/@datadir@/p
25875/@docdir@/p
25876/@infodir@/p
25877/@localedir@/p
25878/@mandir@/p'
25879case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
25880*datarootdir*) ac_datarootdir_seen=yes;;
25881*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25883$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25884_ACEOF
25885cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25886 ac_datarootdir_hack='
25887 s&@datadir@&$datadir&g
25888 s&@docdir@&$docdir&g
25889 s&@infodir@&$infodir&g
25890 s&@localedir@&$localedir&g
25891 s&@mandir@&$mandir&g
25892 s&\\\${datarootdir}&$datarootdir&g' ;;
25893esac
25894_ACEOF
35fa52c0 25895
9c60689e
DWT
25896# Neutralize VPATH when `$srcdir' = `.'.
25897# Shell code in configure.ac might set extrasub.
25898# FIXME: do we really want to maintain this feature?
25899cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25900ac_sed_extra="$ac_vpsub
25901$extrasub
25902_ACEOF
25903cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25904:t
25905/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25906s|@configure_input@|$ac_sed_conf_input|;t t
25907s&@top_builddir@&$ac_top_builddir_sub&;t t
25908s&@top_build_prefix@&$ac_top_build_prefix&;t t
25909s&@srcdir@&$ac_srcdir&;t t
25910s&@abs_srcdir@&$ac_abs_srcdir&;t t
25911s&@top_srcdir@&$ac_top_srcdir&;t t
25912s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25913s&@builddir@&$ac_builddir&;t t
25914s&@abs_builddir@&$ac_abs_builddir&;t t
25915s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25916s&@INSTALL@&$ac_INSTALL&;t t
66170b30 25917s&@MKDIR_P@&$ac_MKDIR_P&;t t
9c60689e
DWT
25918$ac_datarootdir_hack
25919"
ee134472
JF
25920eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
25921 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9c60689e
DWT
25922
25923test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
ee134472
JF
25924 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
25925 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
25926 "$ac_tmp/out"`; test -z "$ac_out"; } &&
9c60689e 25927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12833ad8 25928which seems to be undefined. Please make sure it is defined" >&5
9c60689e 25929$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12833ad8 25930which seems to be undefined. Please make sure it is defined" >&2;}
9c60689e 25931
ee134472 25932 rm -f "$ac_tmp/stdin"
9c60689e 25933 case $ac_file in
ee134472
JF
25934 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
25935 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
9c60689e 25936 esac \
12833ad8 25937 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9c60689e 25938 ;;
296ee9a6
JF
25939 :H)
25940 #
25941 # CONFIG_HEADER
25942 #
25943 if test x"$ac_file" != x-; then
25944 {
25945 $as_echo "/* $configure_input */" \
25946 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
25947 } >"$ac_tmp/config.h" \
25948 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
25949 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
25950 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
25951$as_echo "$as_me: $ac_file is unchanged" >&6;}
25952 else
25953 rm -f "$ac_file"
25954 mv "$ac_tmp/config.h" "$ac_file" \
25955 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
25956 fi
25957 else
25958 $as_echo "/* $configure_input */" \
25959 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
25960 || as_fn_error $? "could not create -" "$LINENO" 5
25961 fi
25962# Compute "$ac_file"'s index in $config_headers.
25963_am_arg="$ac_file"
25964_am_stamp_count=1
25965for _am_header in $config_headers :; do
25966 case $_am_header in
25967 $_am_arg | $_am_arg:* )
25968 break ;;
25969 * )
25970 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
25971 esac
25972done
25973echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
25974$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25975 X"$_am_arg" : 'X\(//\)[^/]' \| \
25976 X"$_am_arg" : 'X\(//\)$' \| \
25977 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
25978$as_echo X"$_am_arg" |
25979 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25980 s//\1/
25981 q
25982 }
25983 /^X\(\/\/\)[^/].*/{
25984 s//\1/
25985 q
25986 }
25987 /^X\(\/\/\)$/{
25988 s//\1/
25989 q
25990 }
25991 /^X\(\/\).*/{
25992 s//\1/
25993 q
25994 }
25995 s/.*/./; q'`/stamp-h$_am_stamp_count
25996 ;;
35fa52c0 25997
9c60689e
DWT
25998 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
25999$as_echo "$as_me: executing $ac_file commands" >&6;}
26000 ;;
26001 esac
35fa52c0 26002
35fa52c0 26003
9c60689e 26004 case $ac_file$ac_mode in
66170b30
JF
26005 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
26006 # Older Autoconf quotes --file arguments for eval, but not when files
26007 # are listed without --file. Let's play safe and only enable the eval
26008 # if we detect the quoting.
26009 case $CONFIG_FILES in
26010 *\'*) eval set x "$CONFIG_FILES" ;;
26011 *) set x $CONFIG_FILES ;;
26012 esac
26013 shift
26014 for mf
26015 do
26016 # Strip MF so we end up with the name of the file.
26017 mf=`echo "$mf" | sed -e 's/:.*$//'`
26018 # Check whether this is an Automake generated Makefile or not.
26019 # We used to match only the files named 'Makefile.in', but
26020 # some people rename them; so instead we look at the file content.
26021 # Grep'ing the first line is not enough: some people post-process
26022 # each Makefile.in and add a new line on top of each file to say so.
26023 # Grep'ing the whole file is not good either: AIX grep has a line
26024 # limit of 2048, but all sed's we know have understand at least 4000.
26025 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
26026 dirpart=`$as_dirname -- "$mf" ||
26027$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26028 X"$mf" : 'X\(//\)[^/]' \| \
26029 X"$mf" : 'X\(//\)$' \| \
26030 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
26031$as_echo X"$mf" |
26032 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26033 s//\1/
26034 q
26035 }
26036 /^X\(\/\/\)[^/].*/{
26037 s//\1/
26038 q
26039 }
26040 /^X\(\/\/\)$/{
26041 s//\1/
26042 q
26043 }
26044 /^X\(\/\).*/{
26045 s//\1/
26046 q
26047 }
26048 s/.*/./; q'`
26049 else
26050 continue
26051 fi
26052 # Extract the definition of DEPDIR, am__include, and am__quote
26053 # from the Makefile without running 'make'.
26054 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
26055 test -z "$DEPDIR" && continue
26056 am__include=`sed -n 's/^am__include = //p' < "$mf"`
a93f15c0 26057 test -z "$am__include" && continue
66170b30
JF
26058 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
26059 # Find all dependency output files, they are included files with
26060 # $(DEPDIR) in their names. We invoke sed twice because it is the
26061 # simplest approach to changing $(DEPDIR) to its actual value in the
26062 # expansion.
26063 for file in `sed -n "
26064 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
26065 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
26066 # Make sure the directory exists.
26067 test -f "$dirpart/$file" && continue
26068 fdir=`$as_dirname -- "$file" ||
26069$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26070 X"$file" : 'X\(//\)[^/]' \| \
26071 X"$file" : 'X\(//\)$' \| \
26072 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
26073$as_echo X"$file" |
26074 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26075 s//\1/
26076 q
26077 }
26078 /^X\(\/\/\)[^/].*/{
26079 s//\1/
26080 q
26081 }
26082 /^X\(\/\/\)$/{
26083 s//\1/
26084 q
26085 }
26086 /^X\(\/\).*/{
26087 s//\1/
26088 q
26089 }
26090 s/.*/./; q'`
26091 as_dir=$dirpart/$fdir; as_fn_mkdir_p
26092 # echo "creating $dirpart/$file"
26093 echo '# dummy' > "$dirpart/$file"
26094 done
26095 done
26096}
26097 ;;
9c60689e
DWT
26098 "libtool":C)
26099
9d54db95 26100 # See if we are running on zsh, and set the options that allow our
9c60689e 26101 # commands through without removal of \ escapes.
9d54db95 26102 if test -n "${ZSH_VERSION+set}"; then
9c60689e 26103 setopt NO_GLOB_SUBST
35fa52c0 26104 fi
35fa52c0 26105
9d54db95 26106 cfgfile=${ofile}T
9c60689e
DWT
26107 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
26108 $RM "$cfgfile"
35fa52c0 26109
9c60689e
DWT
26110 cat <<_LT_EOF >> "$cfgfile"
26111#! $SHELL
9d54db95 26112# Generated automatically by $as_me ($PACKAGE) $VERSION
9c60689e
DWT
26113# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26114# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9d54db95
JF
26115
26116# Provide generalized library-building support services.
26117# Written by Gordon Matzigkeit, 1996
26118
26119# Copyright (C) 2014 Free Software Foundation, Inc.
26120# This is free software; see the source for copying conditions. There is NO
26121# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
26122
26123# GNU Libtool is free software; you can redistribute it and/or modify
26124# it under the terms of the GNU General Public License as published by
26125# the Free Software Foundation; either version 2 of of the License, or
26126# (at your option) any later version.
9c60689e 26127#
9d54db95
JF
26128# As a special exception to the GNU General Public License, if you
26129# distribute this file as part of a program or library that is built
26130# using GNU Libtool, you may include this file under the same
26131# distribution terms that you use for the rest of that program.
9c60689e 26132#
9d54db95
JF
26133# GNU Libtool is distributed in the hope that it will be useful, but
26134# WITHOUT ANY WARRANTY; without even the implied warranty of
9c60689e
DWT
26135# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26136# GNU General Public License for more details.
26137#
26138# You should have received a copy of the GNU General Public License
9d54db95 26139# along with this program. If not, see <http://www.gnu.org/licenses/>.
35fa52c0 26140
35fa52c0 26141
9c60689e 26142# The names of the tagged configurations supported by this script.
9d54db95
JF
26143available_tags='CXX '
26144
26145# Configured defaults for sys_lib_dlsearch_path munging.
26146: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
35fa52c0 26147
9c60689e 26148# ### BEGIN LIBTOOL CONFIG
35fa52c0 26149
9c60689e
DWT
26150# Which release of libtool.m4 was used?
26151macro_version=$macro_version
26152macro_revision=$macro_revision
35fa52c0 26153
9c60689e
DWT
26154# Whether or not to build static libraries.
26155build_old_libs=$enable_static
35fa52c0 26156
549f29b5
DWT
26157# Whether or not to build shared libraries.
26158build_libtool_libs=$enable_shared
26159
9c60689e
DWT
26160# What type of objects to build.
26161pic_mode=$pic_mode
35fa52c0 26162
9c60689e
DWT
26163# Whether or not to optimize for fast installation.
26164fast_install=$enable_fast_install
35fa52c0 26165
9d54db95
JF
26166# Shared archive member basename,for filename based shared library versioning on AIX.
26167shared_archive_member_spec=$shared_archive_member_spec
26168
ee134472
JF
26169# Shell to use when invoking shell scripts.
26170SHELL=$lt_SHELL
26171
26172# An echo program that protects backslashes.
26173ECHO=$lt_ECHO
26174
53ba6704
JF
26175# The PATH separator for the build system.
26176PATH_SEPARATOR=$lt_PATH_SEPARATOR
26177
9c60689e
DWT
26178# The host system.
26179host_alias=$host_alias
26180host=$host
26181host_os=$host_os
35fa52c0 26182
9c60689e
DWT
26183# The build system.
26184build_alias=$build_alias
26185build=$build
26186build_os=$build_os
26187
26188# A sed program that does not truncate output.
26189SED=$lt_SED
26190
26191# Sed that helps us avoid accidentally triggering echo(1) options like -n.
26192Xsed="\$SED -e 1s/^X//"
26193
26194# A grep program that handles long lines.
26195GREP=$lt_GREP
26196
26197# An ERE matcher.
26198EGREP=$lt_EGREP
26199
26200# A literal string matcher.
26201FGREP=$lt_FGREP
26202
26203# A BSD- or MS-compatible name lister.
26204NM=$lt_NM
26205
26206# Whether we need soft or hard links.
26207LN_S=$lt_LN_S
26208
26209# What is the maximum length of a command?
26210max_cmd_len=$max_cmd_len
26211
26212# Object file suffix (normally "o").
26213objext=$ac_objext
26214
26215# Executable file suffix (normally "").
26216exeext=$exeext
26217
26218# whether the shell understands "unset".
26219lt_unset=$lt_unset
26220
26221# turn spaces into newlines.
26222SP2NL=$lt_lt_SP2NL
26223
26224# turn newlines into spaces.
26225NL2SP=$lt_lt_NL2SP
26226
ee134472
JF
26227# convert \$build file names to \$host format.
26228to_host_file_cmd=$lt_cv_to_host_file_cmd
26229
26230# convert \$build files to toolchain format.
26231to_tool_file_cmd=$lt_cv_to_tool_file_cmd
9c60689e
DWT
26232
26233# An object symbol dumper.
26234OBJDUMP=$lt_OBJDUMP
26235
26236# Method to check whether dependent libraries are shared objects.
26237deplibs_check_method=$lt_deplibs_check_method
26238
ee134472 26239# Command to use when deplibs_check_method = "file_magic".
9c60689e
DWT
26240file_magic_cmd=$lt_file_magic_cmd
26241
ee134472
JF
26242# How to find potential files when deplibs_check_method = "file_magic".
26243file_magic_glob=$lt_file_magic_glob
26244
26245# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
26246want_nocaseglob=$lt_want_nocaseglob
26247
26248# DLL creation program.
26249DLLTOOL=$lt_DLLTOOL
26250
26251# Command to associate shared and link libraries.
26252sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
26253
9c60689e
DWT
26254# The archiver.
26255AR=$lt_AR
ee134472
JF
26256
26257# Flags to create an archive.
9c60689e
DWT
26258AR_FLAGS=$lt_AR_FLAGS
26259
ee134472
JF
26260# How to feed a file listing to the archiver.
26261archiver_list_spec=$lt_archiver_list_spec
26262
9c60689e
DWT
26263# A symbol stripping program.
26264STRIP=$lt_STRIP
26265
26266# Commands used to install an old-style archive.
26267RANLIB=$lt_RANLIB
26268old_postinstall_cmds=$lt_old_postinstall_cmds
26269old_postuninstall_cmds=$lt_old_postuninstall_cmds
26270
ee134472
JF
26271# Whether to use a lock for old archive extraction.
26272lock_old_archive_extraction=$lock_old_archive_extraction
26273
9c60689e
DWT
26274# A C compiler.
26275LTCC=$lt_CC
26276
26277# LTCC compiler flags.
26278LTCFLAGS=$lt_CFLAGS
26279
26280# Take the output of nm and produce a listing of raw symbols and C names.
26281global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26282
26283# Transform the output of nm in a proper C declaration.
26284global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26285
9d54db95
JF
26286# Transform the output of nm into a list of symbols to manually relocate.
26287global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
26288
9c60689e
DWT
26289# Transform the output of nm in a C name address pair.
26290global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26291
26292# Transform the output of nm in a C name address pair when lib prefix is needed.
26293global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
26294
9d54db95
JF
26295# The name lister interface.
26296nm_interface=$lt_lt_cv_nm_interface
26297
ee134472
JF
26298# Specify filename containing input files for \$NM.
26299nm_file_list_spec=$lt_nm_file_list_spec
9c60689e 26300
9d54db95 26301# The root where to search for dependent libraries,and where our libraries should be installed.
ee134472 26302lt_sysroot=$lt_sysroot
9c60689e 26303
9d54db95
JF
26304# Command to truncate a binary pipe.
26305lt_truncate_bin=$lt_lt_cv_truncate_bin
26306
ee134472
JF
26307# The name of the directory that contains temporary libtool files.
26308objdir=$objdir
9c60689e
DWT
26309
26310# Used to examine libraries when file_magic_cmd begins with "file".
26311MAGIC_CMD=$MAGIC_CMD
26312
26313# Must we lock files when doing compilation?
26314need_locks=$lt_need_locks
26315
ee134472
JF
26316# Manifest tool.
26317MANIFEST_TOOL=$lt_MANIFEST_TOOL
26318
9c60689e
DWT
26319# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
26320DSYMUTIL=$lt_DSYMUTIL
26321
26322# Tool to change global to local symbols on Mac OS X.
26323NMEDIT=$lt_NMEDIT
26324
26325# Tool to manipulate fat objects and archives on Mac OS X.
26326LIPO=$lt_LIPO
26327
26328# ldd/readelf like tool for Mach-O binaries on Mac OS X.
26329OTOOL=$lt_OTOOL
26330
26331# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
26332OTOOL64=$lt_OTOOL64
26333
26334# Old archive suffix (normally "a").
26335libext=$libext
26336
26337# Shared library suffix (normally ".so").
26338shrext_cmds=$lt_shrext_cmds
35fa52c0 26339
9c60689e
DWT
26340# The commands to extract the exported symbol list from a shared archive.
26341extract_expsyms_cmds=$lt_extract_expsyms_cmds
35fa52c0 26342
9c60689e
DWT
26343# Variables whose values should be saved in libtool wrapper scripts and
26344# restored at link time.
26345variables_saved_for_relink=$lt_variables_saved_for_relink
35fa52c0 26346
9c60689e
DWT
26347# Do we need the "lib" prefix for modules?
26348need_lib_prefix=$need_lib_prefix
35fa52c0 26349
9c60689e
DWT
26350# Do we need a version for libraries?
26351need_version=$need_version
35fa52c0 26352
9c60689e
DWT
26353# Library versioning type.
26354version_type=$version_type
35fa52c0 26355
9c60689e
DWT
26356# Shared library runtime path variable.
26357runpath_var=$runpath_var
35fa52c0 26358
9c60689e
DWT
26359# Shared library path variable.
26360shlibpath_var=$shlibpath_var
35fa52c0 26361
9c60689e
DWT
26362# Is shlibpath searched before the hard-coded library search path?
26363shlibpath_overrides_runpath=$shlibpath_overrides_runpath
35fa52c0 26364
9c60689e
DWT
26365# Format of library name prefix.
26366libname_spec=$lt_libname_spec
35fa52c0 26367
9c60689e
DWT
26368# List of archive names. First name is the real one, the rest are links.
26369# The last name is the one that the linker finds with -lNAME
26370library_names_spec=$lt_library_names_spec
dbadc56a 26371
9c60689e
DWT
26372# The coded name of the library, if different from the real name.
26373soname_spec=$lt_soname_spec
dbadc56a 26374
ee134472
JF
26375# Permission mode override for installation of shared libraries.
26376install_override_mode=$lt_install_override_mode
26377
9c60689e
DWT
26378# Command to use after installation of a shared archive.
26379postinstall_cmds=$lt_postinstall_cmds
35fa52c0 26380
9c60689e
DWT
26381# Command to use after uninstallation of a shared archive.
26382postuninstall_cmds=$lt_postuninstall_cmds
dbadc56a 26383
9c60689e
DWT
26384# Commands used to finish a libtool library installation in a directory.
26385finish_cmds=$lt_finish_cmds
35fa52c0 26386
9c60689e
DWT
26387# As "finish_cmds", except a single script fragment to be evaled but
26388# not shown.
26389finish_eval=$lt_finish_eval
35fa52c0 26390
9c60689e
DWT
26391# Whether we should hardcode library paths into libraries.
26392hardcode_into_libs=$hardcode_into_libs
dbadc56a 26393
9c60689e
DWT
26394# Compile-time system search path for libraries.
26395sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
35fa52c0 26396
9d54db95
JF
26397# Detected run-time system search path for libraries.
26398sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
26399
26400# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
26401configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
dbadc56a 26402
9c60689e
DWT
26403# Whether dlopen is supported.
26404dlopen_support=$enable_dlopen
dbadc56a 26405
9c60689e
DWT
26406# Whether dlopen of programs is supported.
26407dlopen_self=$enable_dlopen_self
35fa52c0 26408
9c60689e
DWT
26409# Whether dlopen of statically linked programs is supported.
26410dlopen_self_static=$enable_dlopen_self_static
35fa52c0 26411
9c60689e
DWT
26412# Commands to strip libraries.
26413old_striplib=$lt_old_striplib
26414striplib=$lt_striplib
35fa52c0 26415
35fa52c0 26416
9c60689e
DWT
26417# The linker used to build libraries.
26418LD=$lt_LD
dbadc56a 26419
ee134472
JF
26420# How to create reloadable object files.
26421reload_flag=$lt_reload_flag
26422reload_cmds=$lt_reload_cmds
26423
9c60689e
DWT
26424# Commands used to build an old-style archive.
26425old_archive_cmds=$lt_old_archive_cmds
dbadc56a 26426
9c60689e
DWT
26427# A language specific compiler.
26428CC=$lt_compiler
35fa52c0 26429
9c60689e
DWT
26430# Is the compiler the GNU compiler?
26431with_gcc=$GCC
dbadc56a 26432
9c60689e
DWT
26433# Compiler flag to turn off builtin functions.
26434no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
dbadc56a 26435
9c60689e
DWT
26436# Additional compiler flags for building library objects.
26437pic_flag=$lt_lt_prog_compiler_pic
35fa52c0 26438
ee134472
JF
26439# How to pass a linker flag through the compiler.
26440wl=$lt_lt_prog_compiler_wl
26441
9c60689e
DWT
26442# Compiler flag to prevent dynamic linking.
26443link_static_flag=$lt_lt_prog_compiler_static
35fa52c0 26444
9c60689e
DWT
26445# Does compiler simultaneously support -c and -o options?
26446compiler_c_o=$lt_lt_cv_prog_compiler_c_o
dbadc56a 26447
9c60689e
DWT
26448# Whether or not to add -lc for building shared libraries.
26449build_libtool_need_lc=$archive_cmds_need_lc
35fa52c0 26450
9c60689e
DWT
26451# Whether or not to disallow shared libs when runtime libs are static.
26452allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
35fa52c0 26453
9c60689e
DWT
26454# Compiler flag to allow reflexive dlopens.
26455export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
35fa52c0 26456
9c60689e
DWT
26457# Compiler flag to generate shared objects directly from archives.
26458whole_archive_flag_spec=$lt_whole_archive_flag_spec
dbadc56a 26459
9c60689e
DWT
26460# Whether the compiler copes with passing no objects directly.
26461compiler_needs_object=$lt_compiler_needs_object
dbadc56a 26462
9c60689e
DWT
26463# Create an old-style archive from a shared archive.
26464old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
dbadc56a 26465
9c60689e
DWT
26466# Create a temporary old-style archive to link instead of a shared archive.
26467old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
dbadc56a 26468
9c60689e
DWT
26469# Commands used to build a shared archive.
26470archive_cmds=$lt_archive_cmds
26471archive_expsym_cmds=$lt_archive_expsym_cmds
35fa52c0 26472
9c60689e
DWT
26473# Commands used to build a loadable module if different from building
26474# a shared archive.
26475module_cmds=$lt_module_cmds
26476module_expsym_cmds=$lt_module_expsym_cmds
dbadc56a 26477
9c60689e
DWT
26478# Whether we are building with GNU ld or not.
26479with_gnu_ld=$lt_with_gnu_ld
6b66678a 26480
9c60689e
DWT
26481# Flag that allows shared libraries with undefined symbols to be built.
26482allow_undefined_flag=$lt_allow_undefined_flag
6b66678a 26483
9c60689e
DWT
26484# Flag that enforces no undefined symbols.
26485no_undefined_flag=$lt_no_undefined_flag
6b66678a 26486
9c60689e
DWT
26487# Flag to hardcode \$libdir into a binary during linking.
26488# This must work even if \$libdir does not exist
26489hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
6b66678a 26490
9c60689e
DWT
26491# Whether we need a single "-rpath" flag with a separated argument.
26492hardcode_libdir_separator=$lt_hardcode_libdir_separator
6b66678a 26493
9d54db95 26494# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
9c60689e
DWT
26495# DIR into the resulting binary.
26496hardcode_direct=$hardcode_direct
6b66678a 26497
9d54db95 26498# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
9c60689e 26499# DIR into the resulting binary and the resulting library dependency is
9d54db95 26500# "absolute",i.e impossible to change by setting \$shlibpath_var if the
9c60689e
DWT
26501# library is relocated.
26502hardcode_direct_absolute=$hardcode_direct_absolute
6b66678a 26503
9c60689e
DWT
26504# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
26505# into the resulting binary.
26506hardcode_minus_L=$hardcode_minus_L
6b66678a 26507
9c60689e
DWT
26508# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
26509# into the resulting binary.
26510hardcode_shlibpath_var=$hardcode_shlibpath_var
6b66678a 26511
9c60689e
DWT
26512# Set to "yes" if building a shared library automatically hardcodes DIR
26513# into the library and all subsequent libraries and executables linked
26514# against it.
26515hardcode_automatic=$hardcode_automatic
6b66678a 26516
9c60689e
DWT
26517# Set to yes if linker adds runtime paths of dependent libraries
26518# to runtime path list.
26519inherit_rpath=$inherit_rpath
6b66678a 26520
9c60689e
DWT
26521# Whether libtool must link a program against all its dependency libraries.
26522link_all_deplibs=$link_all_deplibs
26523
9c60689e
DWT
26524# Set to "yes" if exported symbols are required.
26525always_export_symbols=$always_export_symbols
6b66678a 26526
9c60689e
DWT
26527# The commands to list exported symbols.
26528export_symbols_cmds=$lt_export_symbols_cmds
6b66678a 26529
9c60689e
DWT
26530# Symbols that should not be listed in the preloaded symbols.
26531exclude_expsyms=$lt_exclude_expsyms
6b66678a 26532
9c60689e
DWT
26533# Symbols that must always be exported.
26534include_expsyms=$lt_include_expsyms
6b66678a 26535
9c60689e
DWT
26536# Commands necessary for linking programs (against libraries) with templates.
26537prelink_cmds=$lt_prelink_cmds
6b66678a 26538
ee134472
JF
26539# Commands necessary for finishing linking programs.
26540postlink_cmds=$lt_postlink_cmds
26541
9c60689e
DWT
26542# Specify filename containing input files.
26543file_list_spec=$lt_file_list_spec
6b66678a 26544
9c60689e
DWT
26545# How to hardcode a shared library path into an executable.
26546hardcode_action=$hardcode_action
26547
26548# The directories searched by this compiler when creating a shared library.
26549compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
26550
26551# Dependencies to place before and after the objects being linked to
26552# create a shared library.
26553predep_objects=$lt_predep_objects
26554postdep_objects=$lt_postdep_objects
26555predeps=$lt_predeps
26556postdeps=$lt_postdeps
26557
26558# The library search path used internally by the compiler when linking
26559# a shared library.
26560compiler_lib_search_path=$lt_compiler_lib_search_path
26561
26562# ### END LIBTOOL CONFIG
26563
9d54db95
JF
26564_LT_EOF
26565
26566 cat <<'_LT_EOF' >> "$cfgfile"
26567
26568# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
26569
26570# func_munge_path_list VARIABLE PATH
26571# -----------------------------------
26572# VARIABLE is name of variable containing _space_ separated list of
26573# directories to be munged by the contents of PATH, which is string
26574# having a format:
26575# "DIR[:DIR]:"
26576# string "DIR[ DIR]" will be prepended to VARIABLE
26577# ":DIR[:DIR]"
26578# string "DIR[ DIR]" will be appended to VARIABLE
26579# "DIRP[:DIRP]::[DIRA:]DIRA"
26580# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
26581# "DIRA[ DIRA]" will be appended to VARIABLE
26582# "DIR[:DIR]"
26583# VARIABLE will be replaced by "DIR[ DIR]"
26584func_munge_path_list ()
26585{
26586 case x$2 in
26587 x)
26588 ;;
26589 *:)
26590 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
26591 ;;
26592 x:*)
26593 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
26594 ;;
26595 *::*)
26596 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
26597 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
26598 ;;
26599 *)
26600 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
26601 ;;
26602 esac
26603}
26604
26605
26606# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
26607func_cc_basename ()
26608{
26609 for cc_temp in $*""; do
26610 case $cc_temp in
26611 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26612 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26613 \-*) ;;
26614 *) break;;
26615 esac
26616 done
26617 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
26618}
26619
26620
26621# ### END FUNCTIONS SHARED WITH CONFIGURE
26622
9c60689e
DWT
26623_LT_EOF
26624
26625 case $host_os in
26626 aix3*)
26627 cat <<\_LT_EOF >> "$cfgfile"
26628# AIX sometimes has problems with the GCC collect2 program. For some
26629# reason, if we set the COLLECT_NAMES environment variable, the problems
26630# vanish in a puff of smoke.
9d54db95 26631if test set != "${COLLECT_NAMES+set}"; then
9c60689e
DWT
26632 COLLECT_NAMES=
26633 export COLLECT_NAMES
6b66678a 26634fi
9c60689e
DWT
26635_LT_EOF
26636 ;;
26637 esac
6b66678a
DWT
26638
26639
9d54db95 26640ltmain=$ac_aux_dir/ltmain.sh
6b66678a 26641
9c60689e
DWT
26642
26643 # We use sed instead of cat because bash on DJGPP gets confused if
26644 # if finds mixed CR/LF and LF-only lines. Since sed operates in
26645 # text mode, it properly converts lines to CR/LF. This bash problem
26646 # is reportedly fixed, but why not run on old versions too?
ee134472
JF
26647 sed '$q' "$ltmain" >> "$cfgfile" \
26648 || (rm -f "$cfgfile"; exit 1)
26649
ee134472 26650 mv -f "$cfgfile" "$ofile" ||
9c60689e
DWT
26651 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
26652 chmod +x "$ofile"
26653
26654
26655 cat <<_LT_EOF >> "$ofile"
26656
26657# ### BEGIN LIBTOOL TAG CONFIG: CXX
26658
26659# The linker used to build libraries.
26660LD=$lt_LD_CXX
26661
ee134472
JF
26662# How to create reloadable object files.
26663reload_flag=$lt_reload_flag_CXX
26664reload_cmds=$lt_reload_cmds_CXX
26665
9c60689e
DWT
26666# Commands used to build an old-style archive.
26667old_archive_cmds=$lt_old_archive_cmds_CXX
26668
26669# A language specific compiler.
26670CC=$lt_compiler_CXX
26671
26672# Is the compiler the GNU compiler?
26673with_gcc=$GCC_CXX
26674
26675# Compiler flag to turn off builtin functions.
26676no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
6b66678a 26677
9c60689e
DWT
26678# Additional compiler flags for building library objects.
26679pic_flag=$lt_lt_prog_compiler_pic_CXX
6b66678a 26680
ee134472
JF
26681# How to pass a linker flag through the compiler.
26682wl=$lt_lt_prog_compiler_wl_CXX
26683
9c60689e
DWT
26684# Compiler flag to prevent dynamic linking.
26685link_static_flag=$lt_lt_prog_compiler_static_CXX
6b66678a 26686
9c60689e
DWT
26687# Does compiler simultaneously support -c and -o options?
26688compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
dbadc56a 26689
9c60689e
DWT
26690# Whether or not to add -lc for building shared libraries.
26691build_libtool_need_lc=$archive_cmds_need_lc_CXX
dbadc56a 26692
9c60689e
DWT
26693# Whether or not to disallow shared libs when runtime libs are static.
26694allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
35fa52c0 26695
9c60689e
DWT
26696# Compiler flag to allow reflexive dlopens.
26697export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
35fa52c0 26698
9c60689e
DWT
26699# Compiler flag to generate shared objects directly from archives.
26700whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
35fa52c0 26701
9c60689e
DWT
26702# Whether the compiler copes with passing no objects directly.
26703compiler_needs_object=$lt_compiler_needs_object_CXX
35fa52c0 26704
9c60689e
DWT
26705# Create an old-style archive from a shared archive.
26706old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
35fa52c0 26707
9c60689e
DWT
26708# Create a temporary old-style archive to link instead of a shared archive.
26709old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
35fa52c0 26710
9c60689e
DWT
26711# Commands used to build a shared archive.
26712archive_cmds=$lt_archive_cmds_CXX
26713archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
6b66678a 26714
9c60689e
DWT
26715# Commands used to build a loadable module if different from building
26716# a shared archive.
26717module_cmds=$lt_module_cmds_CXX
26718module_expsym_cmds=$lt_module_expsym_cmds_CXX
6b66678a 26719
9c60689e
DWT
26720# Whether we are building with GNU ld or not.
26721with_gnu_ld=$lt_with_gnu_ld_CXX
6b66678a 26722
9c60689e
DWT
26723# Flag that allows shared libraries with undefined symbols to be built.
26724allow_undefined_flag=$lt_allow_undefined_flag_CXX
35fa52c0 26725
9c60689e
DWT
26726# Flag that enforces no undefined symbols.
26727no_undefined_flag=$lt_no_undefined_flag_CXX
35fa52c0 26728
9c60689e
DWT
26729# Flag to hardcode \$libdir into a binary during linking.
26730# This must work even if \$libdir does not exist
26731hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
6b66678a 26732
9c60689e
DWT
26733# Whether we need a single "-rpath" flag with a separated argument.
26734hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
6b66678a 26735
9d54db95 26736# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
9c60689e
DWT
26737# DIR into the resulting binary.
26738hardcode_direct=$hardcode_direct_CXX
6b66678a 26739
9d54db95 26740# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
9c60689e 26741# DIR into the resulting binary and the resulting library dependency is
9d54db95 26742# "absolute",i.e impossible to change by setting \$shlibpath_var if the
9c60689e
DWT
26743# library is relocated.
26744hardcode_direct_absolute=$hardcode_direct_absolute_CXX
6b66678a 26745
9c60689e
DWT
26746# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
26747# into the resulting binary.
26748hardcode_minus_L=$hardcode_minus_L_CXX
35fa52c0 26749
9c60689e
DWT
26750# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
26751# into the resulting binary.
26752hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
35fa52c0 26753
9c60689e
DWT
26754# Set to "yes" if building a shared library automatically hardcodes DIR
26755# into the library and all subsequent libraries and executables linked
26756# against it.
26757hardcode_automatic=$hardcode_automatic_CXX
6b66678a 26758
9c60689e
DWT
26759# Set to yes if linker adds runtime paths of dependent libraries
26760# to runtime path list.
26761inherit_rpath=$inherit_rpath_CXX
6b66678a 26762
9c60689e
DWT
26763# Whether libtool must link a program against all its dependency libraries.
26764link_all_deplibs=$link_all_deplibs_CXX
6b66678a 26765
9c60689e
DWT
26766# Set to "yes" if exported symbols are required.
26767always_export_symbols=$always_export_symbols_CXX
6b66678a 26768
9c60689e
DWT
26769# The commands to list exported symbols.
26770export_symbols_cmds=$lt_export_symbols_cmds_CXX
6b66678a 26771
9c60689e
DWT
26772# Symbols that should not be listed in the preloaded symbols.
26773exclude_expsyms=$lt_exclude_expsyms_CXX
6b66678a 26774
9c60689e
DWT
26775# Symbols that must always be exported.
26776include_expsyms=$lt_include_expsyms_CXX
6b66678a 26777
9c60689e
DWT
26778# Commands necessary for linking programs (against libraries) with templates.
26779prelink_cmds=$lt_prelink_cmds_CXX
6b66678a 26780
ee134472
JF
26781# Commands necessary for finishing linking programs.
26782postlink_cmds=$lt_postlink_cmds_CXX
26783
9c60689e
DWT
26784# Specify filename containing input files.
26785file_list_spec=$lt_file_list_spec_CXX
dbadc56a 26786
9c60689e
DWT
26787# How to hardcode a shared library path into an executable.
26788hardcode_action=$hardcode_action_CXX
309b0535 26789
9c60689e
DWT
26790# The directories searched by this compiler when creating a shared library.
26791compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
309b0535 26792
9c60689e
DWT
26793# Dependencies to place before and after the objects being linked to
26794# create a shared library.
26795predep_objects=$lt_predep_objects_CXX
26796postdep_objects=$lt_postdep_objects_CXX
26797predeps=$lt_predeps_CXX
26798postdeps=$lt_postdeps_CXX
309b0535 26799
9c60689e
DWT
26800# The library search path used internally by the compiler when linking
26801# a shared library.
26802compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
26803
26804# ### END LIBTOOL TAG CONFIG: CXX
26805_LT_EOF
26806
26807 ;;
26808
26809 esac
26810done # for ac_tag
26811
26812
26813as_fn_exit 0
26814_ACEOF
26815ac_clean_files=$ac_clean_files_save
26816
26817test $ac_write_fail = 0 ||
12833ad8 26818 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
9c60689e
DWT
26819
26820
26821# configure is writing to config.log, and then calls config.status.
26822# config.status does its own redirection, appending to config.log.
26823# Unfortunately, on DOS this fails, as config.log is still kept open
26824# by configure, so config.status won't be able to write to it; its
26825# output is simply discarded. So we exec the FD to /dev/null,
26826# effectively closing config.log, so it can be properly (re)opened and
26827# appended to by config.status. When coming back to configure, we
26828# need to make the FD available again.
26829if test "$no_create" != yes; then
26830 ac_cs_success=:
26831 ac_config_status_args=
26832 test "$silent" = yes &&
26833 ac_config_status_args="$ac_config_status_args --quiet"
26834 exec 5>/dev/null
26835 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26836 exec 5>>config.log
26837 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26838 # would make configure fail if this is the last instruction.
12833ad8 26839 $ac_cs_success || as_fn_exit 1
309b0535 26840fi
9c60689e
DWT
26841if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
26842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
26843$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
26844fi
26845