]> git.saurik.com Git - cycript.git/blame - configure
Pass -std=c++11 in both CXXFLAGS and OBCJXXFLAGS.
[cycript.git] / configure
CommitLineData
c7aa54aa
DWT
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
53ba6704 3# Generated by GNU Autoconf 2.69 for Cycript 0.9.
c7aa54aa
DWT
4#
5# Report bugs to <saurik@saurik.com>.
6#
9c60689e 7#
53ba6704 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9c60689e 9#
c7aa54aa
DWT
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
66170b30 13#
f95d2598 14# Copyright (C) 2009-2014 Jay Freeman (saurik)
c7aa54aa
DWT
15## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
18
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34esac
35fi
36
37
38as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
83fi
84
85
86# IFS
87# We need space, tab and new line, in precisely that order. Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" "" $as_nl"
92
93# Find who we are. Look in the path if we contain no directory separator.
ee134472 94as_myself=
c7aa54aa
DWT
95case $0 in #((
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98for as_dir in $PATH
99do
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
104IFS=$as_save_IFS
105
106 ;;
107esac
108# We did not find ourselves, most probably we were run as `sh COMMAND'
109# in which case we are not to be found in the path.
110if test "x$as_myself" = x; then
111 as_myself=$0
112fi
113if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 exit 1
116fi
117
118# Unset variables that we do not need and which cause bugs (e.g. in
119# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120# suppresses any "Segmentation fault" message there. '((' could
121# trigger a bug in pdksh 5.2.14.
122for as_var in BASH_ENV ENV MAIL MAILPATH
123do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
136# CDPATH.
137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
53ba6704
JF
139# Use a proper internal environment variable to ensure we don't fall
140 # into an infinite loop, continuously re-executing ourselves.
141 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
142 _as_can_reexec=no; export _as_can_reexec;
143 # We cannot yet assume a decent shell, so we have to provide a
144# neutralization value for shells without unset; and this also
145# works around shells that cannot unset nonexistent variables.
146# Preserve -v and -x to the replacement shell.
147BASH_ENV=/dev/null
148ENV=/dev/null
149(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
150case $- in # ((((
151 *v*x* | *x*v* ) as_opts=-vx ;;
152 *v* ) as_opts=-v ;;
153 *x* ) as_opts=-x ;;
154 * ) as_opts= ;;
155esac
156exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
157# Admittedly, this is quite paranoid, since all the known shells bail
158# out after a failed `exec'.
159$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160as_fn_exit 255
161 fi
162 # We don't want this to propagate to other subprocesses.
163 { _as_can_reexec=; unset _as_can_reexec;}
c7aa54aa
DWT
164if test "x$CONFIG_SHELL" = x; then
165 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 emulate sh
167 NULLCMD=:
168 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
169 # is contrary to our usage. Disable this feature.
170 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 setopt NO_GLOB_SUBST
172else
173 case \`(set -o) 2>/dev/null\` in #(
174 *posix*) :
175 set -o posix ;; #(
176 *) :
177 ;;
178esac
179fi
180"
181 as_required="as_fn_return () { (exit \$1); }
182as_fn_success () { as_fn_return 0; }
183as_fn_failure () { as_fn_return 1; }
184as_fn_ret_success () { return 0; }
185as_fn_ret_failure () { return 1; }
186
187exitcode=0
188as_fn_success || { exitcode=1; echo as_fn_success failed.; }
189as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
190as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
191as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
192if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193
194else
195 exitcode=1; echo positional parameters were not saved.
196fi
53ba6704
JF
197test x\$exitcode = x0 || exit 1
198test -x / || exit 1"
c7aa54aa
DWT
199 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
200 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
201 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
35fa52c0 202 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
ee134472
JF
203
204 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
205 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
208 PATH=/empty FPATH=/empty; export PATH FPATH
209 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
210 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
35fa52c0 211test \$(( 1 + 1 )) = 2 || exit 1"
c7aa54aa
DWT
212 if (eval "$as_required") 2>/dev/null; then :
213 as_have_required=yes
214else
215 as_have_required=no
216fi
217 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
218
219else
220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
221as_found=false
222for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 as_found=:
227 case $as_dir in #(
228 /*)
229 for as_base in sh bash ksh sh5; do
230 # Try only shells that exist, to save several forks.
231 as_shell=$as_dir/$as_base
232 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
233 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 CONFIG_SHELL=$as_shell as_have_required=yes
235 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
236 break 2
237fi
238fi
239 done;;
240 esac
241 as_found=false
242done
243$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
244 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
245 CONFIG_SHELL=$SHELL as_have_required=yes
246fi; }
247IFS=$as_save_IFS
248
249
250 if test "x$CONFIG_SHELL" != x; then :
53ba6704
JF
251 export CONFIG_SHELL
252 # We cannot yet assume a decent shell, so we have to provide a
253# neutralization value for shells without unset; and this also
254# works around shells that cannot unset nonexistent variables.
255# Preserve -v and -x to the replacement shell.
256BASH_ENV=/dev/null
257ENV=/dev/null
258(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
259case $- in # ((((
260 *v*x* | *x*v* ) as_opts=-vx ;;
261 *v* ) as_opts=-v ;;
262 *x* ) as_opts=-x ;;
263 * ) as_opts= ;;
264esac
265exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
266# Admittedly, this is quite paranoid, since all the known shells bail
267# out after a failed `exec'.
268$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
269exit 255
c7aa54aa
DWT
270fi
271
272 if test x$as_have_required = xno; then :
273 $as_echo "$0: This script requires a shell more modern than all"
274 $as_echo "$0: the shells that I found on your system."
275 if test x${ZSH_VERSION+set} = xset ; then
276 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
277 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
278 else
279 $as_echo "$0: Please tell bug-autoconf@gnu.org and saurik@saurik.com
280$0: about your system, including any error possibly output
281$0: before this message. Then install a modern shell, or
282$0: manually run the script under such a shell if you do
283$0: have one."
284 fi
285 exit 1
286fi
287fi
288fi
289SHELL=${CONFIG_SHELL-/bin/sh}
290export SHELL
291# Unset more variables known to interfere with behavior of common tools.
292CLICOLOR_FORCE= GREP_OPTIONS=
293unset CLICOLOR_FORCE GREP_OPTIONS
294
295## --------------------- ##
296## M4sh Shell Functions. ##
297## --------------------- ##
298# as_fn_unset VAR
299# ---------------
300# Portably unset VAR.
301as_fn_unset ()
302{
303 { eval $1=; unset $1;}
304}
305as_unset=as_fn_unset
306
307# as_fn_set_status STATUS
308# -----------------------
309# Set $? to STATUS, without forking.
310as_fn_set_status ()
311{
312 return $1
313} # as_fn_set_status
314
315# as_fn_exit STATUS
316# -----------------
317# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
318as_fn_exit ()
319{
320 set +e
321 as_fn_set_status $1
322 exit $1
323} # as_fn_exit
324
325# as_fn_mkdir_p
326# -------------
327# Create "$as_dir" as a directory, including parents if necessary.
328as_fn_mkdir_p ()
329{
330
331 case $as_dir in #(
332 -*) as_dir=./$as_dir;;
333 esac
334 test -d "$as_dir" || eval $as_mkdir_p || {
335 as_dirs=
336 while :; do
337 case $as_dir in #(
338 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
339 *) as_qdir=$as_dir;;
340 esac
341 as_dirs="'$as_qdir' $as_dirs"
342 as_dir=`$as_dirname -- "$as_dir" ||
343$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
344 X"$as_dir" : 'X\(//\)[^/]' \| \
345 X"$as_dir" : 'X\(//\)$' \| \
346 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
347$as_echo X"$as_dir" |
348 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
349 s//\1/
350 q
351 }
352 /^X\(\/\/\)[^/].*/{
353 s//\1/
354 q
355 }
356 /^X\(\/\/\)$/{
357 s//\1/
358 q
359 }
360 /^X\(\/\).*/{
361 s//\1/
362 q
363 }
364 s/.*/./; q'`
365 test -d "$as_dir" && break
366 done
367 test -z "$as_dirs" || eval "mkdir $as_dirs"
12833ad8 368 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
c7aa54aa
DWT
369
370
371} # as_fn_mkdir_p
53ba6704
JF
372
373# as_fn_executable_p FILE
374# -----------------------
375# Test if FILE is an executable regular file.
376as_fn_executable_p ()
377{
378 test -f "$1" && test -x "$1"
379} # as_fn_executable_p
c7aa54aa
DWT
380# as_fn_append VAR VALUE
381# ----------------------
382# Append the text in VALUE to the end of the definition contained in VAR. Take
383# advantage of any shell optimizations that allow amortized linear growth over
384# repeated appends, instead of the typical quadratic growth present in naive
385# implementations.
386if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
387 eval 'as_fn_append ()
388 {
389 eval $1+=\$2
390 }'
391else
392 as_fn_append ()
393 {
394 eval $1=\$$1\$2
395 }
396fi # as_fn_append
397
398# as_fn_arith ARG...
399# ------------------
400# Perform arithmetic evaluation on the ARGs, and store the result in the
401# global $as_val. Take advantage of shells that can avoid forks. The arguments
402# must be portable across $(()) and expr.
403if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
404 eval 'as_fn_arith ()
405 {
406 as_val=$(( $* ))
407 }'
408else
409 as_fn_arith ()
410 {
411 as_val=`expr "$@" || test $? -eq 1`
412 }
413fi # as_fn_arith
414
415
12833ad8
JF
416# as_fn_error STATUS ERROR [LINENO LOG_FD]
417# ----------------------------------------
c7aa54aa
DWT
418# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
419# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12833ad8 420# script with STATUS, using 1 if that was 0.
c7aa54aa
DWT
421as_fn_error ()
422{
12833ad8
JF
423 as_status=$1; test $as_status -eq 0 && as_status=1
424 if test "$4"; then
425 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
426 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
c7aa54aa 427 fi
12833ad8 428 $as_echo "$as_me: error: $2" >&2
c7aa54aa
DWT
429 as_fn_exit $as_status
430} # as_fn_error
431
432if expr a : '\(a\)' >/dev/null 2>&1 &&
433 test "X`expr 00001 : '.*\(...\)'`" = X001; then
434 as_expr=expr
435else
436 as_expr=false
437fi
438
439if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
440 as_basename=basename
441else
442 as_basename=false
443fi
444
445if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
446 as_dirname=dirname
447else
448 as_dirname=false
449fi
450
451as_me=`$as_basename -- "$0" ||
452$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
453 X"$0" : 'X\(//\)$' \| \
454 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
455$as_echo X/"$0" |
456 sed '/^.*\/\([^/][^/]*\)\/*$/{
457 s//\1/
458 q
459 }
460 /^X\/\(\/\/\)$/{
461 s//\1/
462 q
463 }
464 /^X\/\(\/\).*/{
465 s//\1/
466 q
467 }
468 s/.*/./; q'`
469
470# Avoid depending upon Character Ranges.
471as_cr_letters='abcdefghijklmnopqrstuvwxyz'
472as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
473as_cr_Letters=$as_cr_letters$as_cr_LETTERS
474as_cr_digits='0123456789'
475as_cr_alnum=$as_cr_Letters$as_cr_digits
476
477
478 as_lineno_1=$LINENO as_lineno_1a=$LINENO
479 as_lineno_2=$LINENO as_lineno_2a=$LINENO
480 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
481 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
482 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
483 sed -n '
484 p
485 /[$]LINENO/=
486 ' <$as_myself |
487 sed '
488 s/[$]LINENO.*/&-/
489 t lineno
490 b
491 :lineno
492 N
493 :loop
494 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
495 t loop
496 s/-\n.*//
497 ' >$as_me.lineno &&
498 chmod +x "$as_me.lineno" ||
499 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
500
53ba6704
JF
501 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
502 # already done that, so ensure we don't try to do so again and fall
503 # in an infinite loop. This has already happened in practice.
504 _as_can_reexec=no; export _as_can_reexec
c7aa54aa
DWT
505 # Don't try to exec as it changes $[0], causing all sort of problems
506 # (the dirname of $[0] is not the place where we might find the
507 # original and so on. Autoconf is especially sensitive to this).
508 . "./$as_me.lineno"
509 # Exit status is that of the last command.
510 exit
511}
512
513ECHO_C= ECHO_N= ECHO_T=
514case `echo -n x` in #(((((
515-n*)
516 case `echo 'xy\c'` in
517 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
518 xy) ECHO_C='\c';;
519 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
520 ECHO_T=' ';;
521 esac;;
522*)
523 ECHO_N='-n';;
524esac
525
526rm -f conf$$ conf$$.exe conf$$.file
527if test -d conf$$.dir; then
528 rm -f conf$$.dir/conf$$.file
529else
530 rm -f conf$$.dir
531 mkdir conf$$.dir 2>/dev/null
532fi
533if (echo >conf$$.file) 2>/dev/null; then
534 if ln -s conf$$.file conf$$ 2>/dev/null; then
535 as_ln_s='ln -s'
536 # ... but there are two gotchas:
537 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
538 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
53ba6704 539 # In both cases, we have to default to `cp -pR'.
c7aa54aa 540 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
53ba6704 541 as_ln_s='cp -pR'
c7aa54aa
DWT
542 elif ln conf$$.file conf$$ 2>/dev/null; then
543 as_ln_s=ln
544 else
53ba6704 545 as_ln_s='cp -pR'
c7aa54aa
DWT
546 fi
547else
53ba6704 548 as_ln_s='cp -pR'
c7aa54aa
DWT
549fi
550rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
551rmdir conf$$.dir 2>/dev/null
552
553if mkdir -p . 2>/dev/null; then
554 as_mkdir_p='mkdir -p "$as_dir"'
555else
556 test -d ./-p && rmdir ./-p
557 as_mkdir_p=false
558fi
559
53ba6704
JF
560as_test_x='test -x'
561as_executable_p=as_fn_executable_p
c7aa54aa
DWT
562
563# Sed expression to map a string onto a valid CPP name.
564as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
565
566# Sed expression to map a string onto a valid variable name.
567as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
568
9c60689e
DWT
569SHELL=${CONFIG_SHELL-/bin/sh}
570
c7aa54aa 571
9c60689e
DWT
572test -n "$DJDIR" || exec 7<&0 </dev/null
573exec 6>&1
c7aa54aa
DWT
574
575# Name of the host.
12833ad8 576# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
c7aa54aa
DWT
577# so uname gets run too.
578ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
579
580#
581# Initializations.
582#
583ac_default_prefix=/usr/local
584ac_clean_files=
585ac_config_libobj_dir=.
586LIBOBJS=
587cross_compiling=no
588subdirs=
589MFLAGS=
590MAKEFLAGS=
591
592# Identity of this package.
593PACKAGE_NAME='Cycript'
594PACKAGE_TARNAME='cycript'
595PACKAGE_VERSION='0.9'
596PACKAGE_STRING='Cycript 0.9'
597PACKAGE_BUGREPORT='saurik@saurik.com'
598PACKAGE_URL='http://www.cycript.org/'
599
35fa52c0 600ac_unique_file="Console.cpp"
6b66678a
DWT
601# Factoring default headers for most tests.
602ac_includes_default="\
603#include <stdio.h>
604#ifdef HAVE_SYS_TYPES_H
605# include <sys/types.h>
606#endif
607#ifdef HAVE_SYS_STAT_H
608# include <sys/stat.h>
609#endif
610#ifdef STDC_HEADERS
611# include <stdlib.h>
612# include <stddef.h>
613#else
614# ifdef HAVE_STDLIB_H
615# include <stdlib.h>
616# endif
617#endif
618#ifdef HAVE_STRING_H
619# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
620# include <memory.h>
621# endif
622# include <string.h>
623#endif
624#ifdef HAVE_STRINGS_H
625# include <strings.h>
626#endif
627#ifdef HAVE_INTTYPES_H
628# include <inttypes.h>
629#endif
630#ifdef HAVE_STDINT_H
631# include <stdint.h>
632#endif
633#ifdef HAVE_UNISTD_H
634# include <unistd.h>
635#endif"
636
66170b30
JF
637ac_subst_vars='am__EXEEXT_FALSE
638am__EXEEXT_TRUE
639LTLIBOBJS
9c60689e 640LIBOBJS
a243b558
JF
641CY_MACH_FALSE
642CY_MACH_TRUE
66170b30 643CY_MACH
7eda51e0 644CY_ATTACH_GROUP
a243b558
JF
645ac_ct__OTOOL
646_OTOOL
794e88e7
DWT
647ac_ct__NM
648_NM
649ac_ct__LIPO
650_LIPO
9777bd50 651SO
66170b30 652LTFLAGS
3615a2f7 653LTLIBGCC
6f9aea2b
JF
654LTLIBTERMCAP
655LTLIBREADLINE
a243b558
JF
656CY_OBJECTIVEC_FALSE
657CY_OBJECTIVEC_TRUE
39ed1631
JF
658CY_JAVA_FALSE
659CY_JAVA_TRUE
babf7fe8 660LTOBJECTIVEC
47aaa820 661GNUSTEP_CONFIG
c823f118 662CY_OBJECTIVEC
39ed1631
JF
663LTJAVA
664CY_JAVA
296ee9a6 665LTLIBFFI
309b0535 666LIBFFI_LIBS
35fa52c0 667LIBFFI_CFLAGS
a243b558
JF
668CY_EXECUTE_FALSE
669CY_EXECUTE_TRUE
a93f15c0
JF
670CY_CONSOLE_FALSE
671CY_CONSOLE_TRUE
babf7fe8 672LTJAVASCRIPTCORE
35fa52c0
DWT
673WEBKIT_LIBS
674WEBKIT_CFLAGS
7eda51e0 675CY_EXECUTE
abc804fa 676CY_ARCH
9228a43a 677CY_FILTERS
e9c9a47c 678GNUTAR
e9c9a47c
DWT
679GPERF
680FLEX
681BISON
682TIME
66170b30 683GIT
12833ad8
JF
684PKG_CONFIG_LIBDIR
685PKG_CONFIG_PATH
3fd51f51 686PKG_CONFIG
1771224f 687HAVE_CXX11
a243b558 688CXXCPP
9c60689e
DWT
689CPP
690OTOOL64
691OTOOL
692LIPO
693NMEDIT
694DSYMUTIL
ee134472 695MANIFEST_TOOL
9c60689e 696RANLIB
ee134472 697DLLTOOL
9c60689e
DWT
698OBJDUMP
699LN_S
700NM
701ac_ct_DUMPBIN
702DUMPBIN
703LD
704FGREP
705EGREP
706GREP
707SED
a243b558
JF
708host_os
709host_vendor
710host_cpu
711host
712build_os
713build_vendor
714build_cpu
715build
716LIBTOOL
a243b558
JF
717ac_ct_AR
718AR
719am__fastdepOBJCXX_FALSE
720am__fastdepOBJCXX_TRUE
721OBJCXXDEPMODE
722ac_ct_OBJCXX
723OBJCXXFLAGS
724OBJCXX
725am__fastdepCXX_FALSE
726am__fastdepCXX_TRUE
727CXXDEPMODE
a93f15c0
JF
728ac_ct_CXX
729CXXFLAGS
730CXX
731am__fastdepCC_FALSE
732am__fastdepCC_TRUE
733CCDEPMODE
66170b30
JF
734am__nodep
735AMDEPBACKSLASH
736AMDEP_FALSE
737AMDEP_TRUE
738am__quote
739am__include
740DEPDIR
35fa52c0
DWT
741OBJEXT
742EXEEXT
a93f15c0 743ac_ct_CC
35fa52c0
DWT
744CPPFLAGS
745LDFLAGS
a93f15c0
JF
746CFLAGS
747CC
babf7fe8
JF
748MAINT
749MAINTAINER_MODE_FALSE
750MAINTAINER_MODE_TRUE
66170b30
JF
751AM_BACKSLASH
752AM_DEFAULT_VERBOSITY
753AM_DEFAULT_V
754AM_V
755am__untar
756am__tar
757AMTAR
758am__leading_dot
759SET_MAKE
760AWK
761mkdir_p
762MKDIR_P
763INSTALL_STRIP_PROGRAM
764STRIP
765install_sh
766MAKEINFO
767AUTOHEADER
768AUTOMAKE
769AUTOCONF
770ACLOCAL
771VERSION
772PACKAGE
773CYGPATH_W
774am__isrc
775INSTALL_DATA
776INSTALL_SCRIPT
777INSTALL_PROGRAM
dbadc56a 778target_alias
c7aa54aa
DWT
779host_alias
780build_alias
781LIBS
782ECHO_T
783ECHO_N
784ECHO_C
785DEFS
786mandir
787localedir
788libdir
789psdir
790pdfdir
791dvidir
792htmldir
793infodir
794docdir
795oldincludedir
796includedir
797localstatedir
798sharedstatedir
799sysconfdir
800datadir
801datarootdir
802libexecdir
803sbindir
804bindir
805program_transform_name
806prefix
807exec_prefix
808PACKAGE_URL
809PACKAGE_BUGREPORT
810PACKAGE_STRING
811PACKAGE_VERSION
812PACKAGE_TARNAME
813PACKAGE_NAME
814PATH_SEPARATOR
815SHELL'
816ac_subst_files=''
817ac_user_opts='
818enable_option_checking
66170b30 819enable_silent_rules
babf7fe8 820enable_maintainer_mode
a243b558 821enable_dependency_tracking
9c60689e 822enable_static
549f29b5 823enable_shared
9c60689e
DWT
824with_pic
825enable_fast_install
35fa52c0 826with_gnu_ld
ee134472 827with_sysroot
9c60689e 828enable_libtool_lock
5053a6d1 829enable_javascript
a93f15c0 830enable_console
c7aa54aa
DWT
831'
832 ac_precious_vars='build_alias
833host_alias
dbadc56a 834target_alias
a93f15c0
JF
835CC
836CFLAGS
dbadc56a
DWT
837LDFLAGS
838LIBS
839CPPFLAGS
a93f15c0
JF
840CXX
841CXXFLAGS
a243b558
JF
842CCC
843OBJCXX
844OBJCXXFLAGS
9c60689e 845CPP
a243b558 846CXXCPP
3fd51f51 847PKG_CONFIG
12833ad8
JF
848PKG_CONFIG_PATH
849PKG_CONFIG_LIBDIR
e9c9a47c
DWT
850BISON
851FLEX
852GPERF
66170b30 853GNUTAR
35fa52c0
DWT
854WEBKIT_CFLAGS
855WEBKIT_LIBS
a667869d 856LIBFFI_CFLAGS
790e5246
DWT
857LIBFFI_LIBS
858GNUSTEP_CONFIG'
c7aa54aa
DWT
859
860
861# Initialize some variables set by options.
862ac_init_help=
863ac_init_version=false
864ac_unrecognized_opts=
865ac_unrecognized_sep=
866# The variables have the same names as the options, with
867# dashes changed to underlines.
868cache_file=/dev/null
869exec_prefix=NONE
870no_create=
871no_recursion=
872prefix=NONE
873program_prefix=NONE
874program_suffix=NONE
875program_transform_name=s,x,x,
876silent=
877site=
878srcdir=
879verbose=
880x_includes=NONE
881x_libraries=NONE
882
883# Installation directory options.
884# These are left unexpanded so users can "make install exec_prefix=/foo"
885# and all the variables that are supposed to be based on exec_prefix
886# by default will actually change.
887# Use braces instead of parens because sh, perl, etc. also accept them.
888# (The list follows the same order as the GNU Coding Standards.)
889bindir='${exec_prefix}/bin'
890sbindir='${exec_prefix}/sbin'
891libexecdir='${exec_prefix}/libexec'
892datarootdir='${prefix}/share'
893datadir='${datarootdir}'
894sysconfdir='${prefix}/etc'
895sharedstatedir='${prefix}/com'
896localstatedir='${prefix}/var'
897includedir='${prefix}/include'
898oldincludedir='/usr/include'
899docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
900infodir='${datarootdir}/info'
901htmldir='${docdir}'
902dvidir='${docdir}'
903pdfdir='${docdir}'
904psdir='${docdir}'
905libdir='${exec_prefix}/lib'
906localedir='${datarootdir}/locale'
907mandir='${datarootdir}/man'
908
909ac_prev=
910ac_dashdash=
911for ac_option
912do
913 # If the previous option needs an argument, assign it.
914 if test -n "$ac_prev"; then
915 eval $ac_prev=\$ac_option
916 ac_prev=
917 continue
918 fi
919
920 case $ac_option in
12833ad8
JF
921 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
922 *=) ac_optarg= ;;
923 *) ac_optarg=yes ;;
c7aa54aa
DWT
924 esac
925
926 # Accept the important Cygnus configure options, so we can diagnose typos.
927
928 case $ac_dashdash$ac_option in
929 --)
930 ac_dashdash=yes ;;
931
932 -bindir | --bindir | --bindi | --bind | --bin | --bi)
933 ac_prev=bindir ;;
934 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
935 bindir=$ac_optarg ;;
936
937 -build | --build | --buil | --bui | --bu)
938 ac_prev=build_alias ;;
939 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
940 build_alias=$ac_optarg ;;
941
942 -cache-file | --cache-file | --cache-fil | --cache-fi \
943 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
944 ac_prev=cache_file ;;
945 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
946 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
947 cache_file=$ac_optarg ;;
948
949 --config-cache | -C)
950 cache_file=config.cache ;;
951
952 -datadir | --datadir | --datadi | --datad)
953 ac_prev=datadir ;;
954 -datadir=* | --datadir=* | --datadi=* | --datad=*)
955 datadir=$ac_optarg ;;
956
957 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
958 | --dataroo | --dataro | --datar)
959 ac_prev=datarootdir ;;
960 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
961 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
962 datarootdir=$ac_optarg ;;
963
964 -disable-* | --disable-*)
965 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
966 # Reject names that are not valid shell variable names.
967 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
12833ad8 968 as_fn_error $? "invalid feature name: $ac_useropt"
c7aa54aa
DWT
969 ac_useropt_orig=$ac_useropt
970 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
971 case $ac_user_opts in
972 *"
973"enable_$ac_useropt"
974"*) ;;
975 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
976 ac_unrecognized_sep=', ';;
977 esac
978 eval enable_$ac_useropt=no ;;
979
980 -docdir | --docdir | --docdi | --doc | --do)
981 ac_prev=docdir ;;
982 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
983 docdir=$ac_optarg ;;
984
985 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
986 ac_prev=dvidir ;;
987 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
988 dvidir=$ac_optarg ;;
989
990 -enable-* | --enable-*)
991 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
992 # Reject names that are not valid shell variable names.
993 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
12833ad8 994 as_fn_error $? "invalid feature name: $ac_useropt"
c7aa54aa
DWT
995 ac_useropt_orig=$ac_useropt
996 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
997 case $ac_user_opts in
998 *"
999"enable_$ac_useropt"
1000"*) ;;
1001 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1002 ac_unrecognized_sep=', ';;
1003 esac
1004 eval enable_$ac_useropt=\$ac_optarg ;;
1005
1006 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1007 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1008 | --exec | --exe | --ex)
1009 ac_prev=exec_prefix ;;
1010 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1011 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1012 | --exec=* | --exe=* | --ex=*)
1013 exec_prefix=$ac_optarg ;;
1014
1015 -gas | --gas | --ga | --g)
1016 # Obsolete; use --with-gas.
1017 with_gas=yes ;;
1018
1019 -help | --help | --hel | --he | -h)
1020 ac_init_help=long ;;
1021 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1022 ac_init_help=recursive ;;
1023 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1024 ac_init_help=short ;;
1025
1026 -host | --host | --hos | --ho)
1027 ac_prev=host_alias ;;
1028 -host=* | --host=* | --hos=* | --ho=*)
1029 host_alias=$ac_optarg ;;
1030
1031 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1032 ac_prev=htmldir ;;
1033 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1034 | --ht=*)
1035 htmldir=$ac_optarg ;;
1036
1037 -includedir | --includedir | --includedi | --included | --include \
1038 | --includ | --inclu | --incl | --inc)
1039 ac_prev=includedir ;;
1040 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1041 | --includ=* | --inclu=* | --incl=* | --inc=*)
1042 includedir=$ac_optarg ;;
1043
1044 -infodir | --infodir | --infodi | --infod | --info | --inf)
1045 ac_prev=infodir ;;
1046 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1047 infodir=$ac_optarg ;;
1048
1049 -libdir | --libdir | --libdi | --libd)
1050 ac_prev=libdir ;;
1051 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1052 libdir=$ac_optarg ;;
1053
1054 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1055 | --libexe | --libex | --libe)
1056 ac_prev=libexecdir ;;
1057 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1058 | --libexe=* | --libex=* | --libe=*)
1059 libexecdir=$ac_optarg ;;
1060
1061 -localedir | --localedir | --localedi | --localed | --locale)
1062 ac_prev=localedir ;;
1063 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1064 localedir=$ac_optarg ;;
1065
1066 -localstatedir | --localstatedir | --localstatedi | --localstated \
1067 | --localstate | --localstat | --localsta | --localst | --locals)
1068 ac_prev=localstatedir ;;
1069 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1070 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1071 localstatedir=$ac_optarg ;;
1072
1073 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1074 ac_prev=mandir ;;
1075 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1076 mandir=$ac_optarg ;;
1077
1078 -nfp | --nfp | --nf)
1079 # Obsolete; use --without-fp.
1080 with_fp=no ;;
1081
1082 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1083 | --no-cr | --no-c | -n)
1084 no_create=yes ;;
1085
1086 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1087 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1088 no_recursion=yes ;;
1089
1090 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1091 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1092 | --oldin | --oldi | --old | --ol | --o)
1093 ac_prev=oldincludedir ;;
1094 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1095 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1096 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1097 oldincludedir=$ac_optarg ;;
1098
1099 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1100 ac_prev=prefix ;;
1101 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1102 prefix=$ac_optarg ;;
1103
1104 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1105 | --program-pre | --program-pr | --program-p)
1106 ac_prev=program_prefix ;;
1107 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1108 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1109 program_prefix=$ac_optarg ;;
1110
1111 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1112 | --program-suf | --program-su | --program-s)
1113 ac_prev=program_suffix ;;
1114 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1115 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1116 program_suffix=$ac_optarg ;;
1117
1118 -program-transform-name | --program-transform-name \
1119 | --program-transform-nam | --program-transform-na \
1120 | --program-transform-n | --program-transform- \
1121 | --program-transform | --program-transfor \
1122 | --program-transfo | --program-transf \
1123 | --program-trans | --program-tran \
1124 | --progr-tra | --program-tr | --program-t)
1125 ac_prev=program_transform_name ;;
1126 -program-transform-name=* | --program-transform-name=* \
1127 | --program-transform-nam=* | --program-transform-na=* \
1128 | --program-transform-n=* | --program-transform-=* \
1129 | --program-transform=* | --program-transfor=* \
1130 | --program-transfo=* | --program-transf=* \
1131 | --program-trans=* | --program-tran=* \
1132 | --progr-tra=* | --program-tr=* | --program-t=*)
1133 program_transform_name=$ac_optarg ;;
1134
1135 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1136 ac_prev=pdfdir ;;
1137 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1138 pdfdir=$ac_optarg ;;
1139
1140 -psdir | --psdir | --psdi | --psd | --ps)
1141 ac_prev=psdir ;;
1142 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1143 psdir=$ac_optarg ;;
1144
1145 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1146 | -silent | --silent | --silen | --sile | --sil)
1147 silent=yes ;;
1148
1149 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1150 ac_prev=sbindir ;;
1151 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1152 | --sbi=* | --sb=*)
1153 sbindir=$ac_optarg ;;
1154
1155 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1156 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1157 | --sharedst | --shareds | --shared | --share | --shar \
1158 | --sha | --sh)
1159 ac_prev=sharedstatedir ;;
1160 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1161 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1162 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1163 | --sha=* | --sh=*)
1164 sharedstatedir=$ac_optarg ;;
1165
1166 -site | --site | --sit)
1167 ac_prev=site ;;
1168 -site=* | --site=* | --sit=*)
1169 site=$ac_optarg ;;
1170
1171 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1172 ac_prev=srcdir ;;
1173 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1174 srcdir=$ac_optarg ;;
1175
1176 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1177 | --syscon | --sysco | --sysc | --sys | --sy)
1178 ac_prev=sysconfdir ;;
1179 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1180 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1181 sysconfdir=$ac_optarg ;;
1182
1183 -target | --target | --targe | --targ | --tar | --ta | --t)
1184 ac_prev=target_alias ;;
1185 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1186 target_alias=$ac_optarg ;;
1187
1188 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1189 verbose=yes ;;
1190
1191 -version | --version | --versio | --versi | --vers | -V)
1192 ac_init_version=: ;;
1193
1194 -with-* | --with-*)
1195 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1196 # Reject names that are not valid shell variable names.
1197 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
12833ad8 1198 as_fn_error $? "invalid package name: $ac_useropt"
c7aa54aa
DWT
1199 ac_useropt_orig=$ac_useropt
1200 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1201 case $ac_user_opts in
1202 *"
1203"with_$ac_useropt"
1204"*) ;;
1205 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1206 ac_unrecognized_sep=', ';;
1207 esac
1208 eval with_$ac_useropt=\$ac_optarg ;;
1209
1210 -without-* | --without-*)
1211 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1212 # Reject names that are not valid shell variable names.
1213 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
12833ad8 1214 as_fn_error $? "invalid package name: $ac_useropt"
c7aa54aa
DWT
1215 ac_useropt_orig=$ac_useropt
1216 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1217 case $ac_user_opts in
1218 *"
1219"with_$ac_useropt"
1220"*) ;;
1221 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1222 ac_unrecognized_sep=', ';;
1223 esac
1224 eval with_$ac_useropt=no ;;
1225
1226 --x)
1227 # Obsolete; use --with-x.
1228 with_x=yes ;;
1229
1230 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1231 | --x-incl | --x-inc | --x-in | --x-i)
1232 ac_prev=x_includes ;;
1233 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1234 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1235 x_includes=$ac_optarg ;;
1236
1237 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1238 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1239 ac_prev=x_libraries ;;
1240 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1241 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1242 x_libraries=$ac_optarg ;;
1243
12833ad8
JF
1244 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1245Try \`$0 --help' for more information"
c7aa54aa
DWT
1246 ;;
1247
1248 *=*)
1249 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1250 # Reject names that are not valid shell variable names.
1251 case $ac_envvar in #(
1252 '' | [0-9]* | *[!_$as_cr_alnum]* )
12833ad8 1253 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
c7aa54aa
DWT
1254 esac
1255 eval $ac_envvar=\$ac_optarg
1256 export $ac_envvar ;;
1257
1258 *)
1259 # FIXME: should be removed in autoconf 3.0.
1260 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1261 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1262 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
ee134472 1263 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
c7aa54aa
DWT
1264 ;;
1265
1266 esac
1267done
1268
1269if test -n "$ac_prev"; then
1270 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
12833ad8 1271 as_fn_error $? "missing argument to $ac_option"
c7aa54aa
DWT
1272fi
1273
1274if test -n "$ac_unrecognized_opts"; then
1275 case $enable_option_checking in
1276 no) ;;
12833ad8 1277 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
c7aa54aa
DWT
1278 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1279 esac
1280fi
1281
1282# Check all directory arguments for consistency.
1283for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1284 datadir sysconfdir sharedstatedir localstatedir includedir \
1285 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1286 libdir localedir mandir
1287do
1288 eval ac_val=\$$ac_var
1289 # Remove trailing slashes.
1290 case $ac_val in
1291 */ )
1292 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1293 eval $ac_var=\$ac_val;;
1294 esac
1295 # Be sure to have absolute directory names.
1296 case $ac_val in
1297 [\\/$]* | ?:[\\/]* ) continue;;
1298 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1299 esac
12833ad8 1300 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
c7aa54aa
DWT
1301done
1302
1303# There might be people who depend on the old broken behavior: `$host'
1304# used to hold the argument of --host etc.
1305# FIXME: To remove some day.
1306build=$build_alias
1307host=$host_alias
1308target=$target_alias
1309
1310# FIXME: To remove some day.
1311if test "x$host_alias" != x; then
1312 if test "x$build_alias" = x; then
1313 cross_compiling=maybe
c7aa54aa
DWT
1314 elif test "x$build_alias" != "x$host_alias"; then
1315 cross_compiling=yes
1316 fi
1317fi
1318
1319ac_tool_prefix=
1320test -n "$host_alias" && ac_tool_prefix=$host_alias-
1321
1322test "$silent" = yes && exec 6>/dev/null
1323
1324
1325ac_pwd=`pwd` && test -n "$ac_pwd" &&
1326ac_ls_di=`ls -di .` &&
1327ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
12833ad8 1328 as_fn_error $? "working directory cannot be determined"
c7aa54aa 1329test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
12833ad8 1330 as_fn_error $? "pwd does not report name of working directory"
c7aa54aa
DWT
1331
1332
1333# Find the source files, if location was not specified.
1334if test -z "$srcdir"; then
1335 ac_srcdir_defaulted=yes
1336 # Try the directory containing this script, then the parent directory.
1337 ac_confdir=`$as_dirname -- "$as_myself" ||
1338$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1339 X"$as_myself" : 'X\(//\)[^/]' \| \
1340 X"$as_myself" : 'X\(//\)$' \| \
1341 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1342$as_echo X"$as_myself" |
1343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1344 s//\1/
1345 q
1346 }
1347 /^X\(\/\/\)[^/].*/{
1348 s//\1/
1349 q
1350 }
1351 /^X\(\/\/\)$/{
1352 s//\1/
1353 q
1354 }
1355 /^X\(\/\).*/{
1356 s//\1/
1357 q
1358 }
1359 s/.*/./; q'`
1360 srcdir=$ac_confdir
1361 if test ! -r "$srcdir/$ac_unique_file"; then
1362 srcdir=..
1363 fi
1364else
1365 ac_srcdir_defaulted=no
1366fi
1367if test ! -r "$srcdir/$ac_unique_file"; then
1368 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
12833ad8 1369 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
c7aa54aa
DWT
1370fi
1371ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1372ac_abs_confdir=`(
12833ad8 1373 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
c7aa54aa
DWT
1374 pwd)`
1375# When building in place, set srcdir=.
1376if test "$ac_abs_confdir" = "$ac_pwd"; then
1377 srcdir=.
1378fi
1379# Remove unnecessary trailing slashes from srcdir.
1380# Double slashes in file names in object file debugging info
1381# mess up M-x gdb in Emacs.
1382case $srcdir in
1383*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1384esac
1385for ac_var in $ac_precious_vars; do
1386 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1387 eval ac_env_${ac_var}_value=\$${ac_var}
1388 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1389 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1390done
1391
1392#
1393# Report the --help message.
1394#
1395if test "$ac_init_help" = "long"; then
1396 # Omit some internal or obsolete options to make the list less imposing.
1397 # This message is too long to be a string in the A/UX 3.1 sh.
1398 cat <<_ACEOF
1399\`configure' configures Cycript 0.9 to adapt to many kinds of systems.
1400
1401Usage: $0 [OPTION]... [VAR=VALUE]...
1402
1403To assign environment variables (e.g., CC, CFLAGS...), specify them as
1404VAR=VALUE. See below for descriptions of some of the useful variables.
1405
1406Defaults for the options are specified in brackets.
1407
1408Configuration:
1409 -h, --help display this help and exit
1410 --help=short display options specific to this package
1411 --help=recursive display the short help of all the included packages
1412 -V, --version display version information and exit
12833ad8 1413 -q, --quiet, --silent do not print \`checking ...' messages
c7aa54aa
DWT
1414 --cache-file=FILE cache test results in FILE [disabled]
1415 -C, --config-cache alias for \`--cache-file=config.cache'
1416 -n, --no-create do not create output files
1417 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1418
1419Installation directories:
1420 --prefix=PREFIX install architecture-independent files in PREFIX
1421 [$ac_default_prefix]
1422 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1423 [PREFIX]
1424
1425By default, \`make install' will install all the files in
1426\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1427an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1428for instance \`--prefix=\$HOME'.
1429
1430For better control, use the options below.
1431
1432Fine tuning of the installation directories:
1433 --bindir=DIR user executables [EPREFIX/bin]
1434 --sbindir=DIR system admin executables [EPREFIX/sbin]
1435 --libexecdir=DIR program executables [EPREFIX/libexec]
1436 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1437 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1438 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1439 --libdir=DIR object code libraries [EPREFIX/lib]
1440 --includedir=DIR C header files [PREFIX/include]
1441 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1442 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1443 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1444 --infodir=DIR info documentation [DATAROOTDIR/info]
1445 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1446 --mandir=DIR man documentation [DATAROOTDIR/man]
1447 --docdir=DIR documentation root [DATAROOTDIR/doc/cycript]
1448 --htmldir=DIR html documentation [DOCDIR]
1449 --dvidir=DIR dvi documentation [DOCDIR]
1450 --pdfdir=DIR pdf documentation [DOCDIR]
1451 --psdir=DIR ps documentation [DOCDIR]
1452_ACEOF
1453
1454 cat <<\_ACEOF
35fa52c0 1455
66170b30
JF
1456Program names:
1457 --program-prefix=PREFIX prepend PREFIX to installed program names
1458 --program-suffix=SUFFIX append SUFFIX to installed program names
1459 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1460
35fa52c0
DWT
1461System types:
1462 --build=BUILD configure for building on BUILD [guessed]
1463 --host=HOST cross-compile to build programs to run on HOST [BUILD]
c7aa54aa
DWT
1464_ACEOF
1465fi
1466
1467if test -n "$ac_init_help"; then
1468 case $ac_init_help in
1469 short | recursive ) echo "Configuration of Cycript 0.9:";;
1470 esac
1471 cat <<\_ACEOF
1472
35fa52c0
DWT
1473Optional Features:
1474 --disable-option-checking ignore unrecognized --enable/--with options
1475 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1476 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
66170b30
JF
1477 --enable-silent-rules less verbose build output (undo: "make V=1")
1478 --disable-silent-rules verbose build output (undo: "make V=0")
babf7fe8
JF
1479 --enable-maintainer-mode
1480 enable make rules and dependencies not useful (and
1481 sometimes confusing) to the casual installer
66170b30
JF
1482 --enable-dependency-tracking
1483 do not reject slow dependency extractors
1484 --disable-dependency-tracking
1485 speeds up one-time build
a243b558
JF
1486 --enable-static[=PKGS] build static libraries [default=no]
1487 --enable-shared[=PKGS] build shared libraries [default=yes]
1488 --enable-fast-install[=PKGS]
1489 optimize for fast installation [default=yes]
9c60689e 1490 --disable-libtool-lock avoid locking (might break parallel builds)
b66977f1 1491 --enable-javascript[=ENGINE]
790e5246 1492 use a JavaScript runtime (currently the only
b66977f1
DWT
1493 available option for ENGINE is JavaScriptCore)
1494 [default=yes]
a93f15c0 1495 --disable-console disable console
35fa52c0
DWT
1496
1497Optional Packages:
1498 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1499 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
53ba6704 1500 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
9c60689e
DWT
1501 both]
1502 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
ee134472
JF
1503 --with-sysroot=DIR Search for dependent libraries within DIR
1504 (or the compiler's sysroot if not specified).
35fa52c0 1505
dbadc56a 1506Some influential environment variables:
a93f15c0
JF
1507 CC C compiler command
1508 CFLAGS C compiler flags
dbadc56a
DWT
1509 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1510 nonstandard directory <lib dir>
1511 LIBS libraries to pass to the linker, e.g. -l<library>
9c60689e 1512 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
dbadc56a 1513 you have headers in a nonstandard directory <include dir>
a93f15c0
JF
1514 CXX C++ compiler command
1515 CXXFLAGS C++ compiler flags
a243b558
JF
1516 OBJCXX Objective C++ compiler command
1517 OBJCXXFLAGS Objective C++ compiler flags
9c60689e 1518 CPP C preprocessor
a243b558 1519 CXXCPP C++ preprocessor
3fd51f51 1520 PKG_CONFIG path to pkg-config utility
12833ad8
JF
1521 PKG_CONFIG_PATH
1522 directories to add to pkg-config's search path
1523 PKG_CONFIG_LIBDIR
1524 path overriding pkg-config's built-in search path
e9c9a47c
DWT
1525 BISON GNU Project parser generator (yacc replacement)
1526 FLEX the fast lexical analyser generator
1527 GPERF perfect hash function generator
66170b30 1528 GNUTAR a very sticky lump of files
35fa52c0
DWT
1529 WEBKIT_CFLAGS
1530 C compiler flags for WEBKIT, overriding pkg-config
1531 WEBKIT_LIBS linker flags for WEBKIT, overriding pkg-config
790e5246
DWT
1532 GNUSTEP_CONFIG
1533 prints information about the current gnustep installation
dbadc56a
DWT
1534
1535Use these variables to override the choices made by `configure' or to help
1536it to find libraries and programs with nonstandard names/locations.
1537
c7aa54aa
DWT
1538Report bugs to <saurik@saurik.com>.
1539Cycript home page: <http://www.cycript.org/>.
1540_ACEOF
1541ac_status=$?
1542fi
1543
1544if test "$ac_init_help" = "recursive"; then
1545 # If there are subdirs, report their specific --help.
1546 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1547 test -d "$ac_dir" ||
1548 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1549 continue
1550 ac_builddir=.
1551
1552case "$ac_dir" in
1553.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1554*)
1555 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1556 # A ".." for each directory in $ac_dir_suffix.
1557 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1558 case $ac_top_builddir_sub in
1559 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1560 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1561 esac ;;
1562esac
1563ac_abs_top_builddir=$ac_pwd
1564ac_abs_builddir=$ac_pwd$ac_dir_suffix
1565# for backward compatibility:
1566ac_top_builddir=$ac_top_build_prefix
1567
1568case $srcdir in
1569 .) # We are building in place.
1570 ac_srcdir=.
1571 ac_top_srcdir=$ac_top_builddir_sub
1572 ac_abs_top_srcdir=$ac_pwd ;;
1573 [\\/]* | ?:[\\/]* ) # Absolute name.
1574 ac_srcdir=$srcdir$ac_dir_suffix;
1575 ac_top_srcdir=$srcdir
1576 ac_abs_top_srcdir=$srcdir ;;
1577 *) # Relative name.
1578 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1579 ac_top_srcdir=$ac_top_build_prefix$srcdir
1580 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1581esac
1582ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1583
1584 cd "$ac_dir" || { ac_status=$?; continue; }
1585 # Check for guested configure.
1586 if test -f "$ac_srcdir/configure.gnu"; then
1587 echo &&
1588 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1589 elif test -f "$ac_srcdir/configure"; then
1590 echo &&
1591 $SHELL "$ac_srcdir/configure" --help=recursive
1592 else
1593 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1594 fi || ac_status=$?
1595 cd "$ac_pwd" || { ac_status=$?; break; }
1596 done
1597fi
1598
1599test -n "$ac_init_help" && exit $ac_status
1600if $ac_init_version; then
1601 cat <<\_ACEOF
1602Cycript configure 0.9
53ba6704 1603generated by GNU Autoconf 2.69
c7aa54aa 1604
53ba6704 1605Copyright (C) 2012 Free Software Foundation, Inc.
c7aa54aa
DWT
1606This configure script is free software; the Free Software Foundation
1607gives unlimited permission to copy, distribute and modify it.
66170b30 1608
f95d2598 1609Copyright (C) 2009-2014 Jay Freeman (saurik)
c7aa54aa
DWT
1610_ACEOF
1611 exit
1612fi
1613
1614## ------------------------ ##
1615## Autoconf initialization. ##
1616## ------------------------ ##
dbadc56a 1617
a93f15c0
JF
1618# ac_fn_c_try_compile LINENO
1619# --------------------------
a243b558 1620# Try to compile conftest.$ac_ext, and return whether this succeeded.
a93f15c0 1621ac_fn_c_try_compile ()
a243b558
JF
1622{
1623 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1624 rm -f conftest.$ac_objext
1625 if { { ac_try="$ac_compile"
1626case "(($ac_try" in
1627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1628 *) ac_try_echo=$ac_try;;
1629esac
1630eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1631$as_echo "$ac_try_echo"; } >&5
1632 (eval "$ac_compile") 2>conftest.err
1633 ac_status=$?
1634 if test -s conftest.err; then
1635 grep -v '^ *+' conftest.err >conftest.er1
1636 cat conftest.er1 >&5
1637 mv -f conftest.er1 conftest.err
1638 fi
1639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1640 test $ac_status = 0; } && {
a93f15c0 1641 test -z "$ac_c_werror_flag" ||
a243b558
JF
1642 test ! -s conftest.err
1643 } && test -s conftest.$ac_objext; then :
1644 ac_retval=0
1645else
1646 $as_echo "$as_me: failed program was:" >&5
1647sed 's/^/| /' conftest.$ac_ext >&5
1648
1649 ac_retval=1
1650fi
1651 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1652 as_fn_set_status $ac_retval
1653
a93f15c0 1654} # ac_fn_c_try_compile
a243b558 1655
a93f15c0
JF
1656# ac_fn_cxx_try_compile LINENO
1657# ----------------------------
a243b558 1658# Try to compile conftest.$ac_ext, and return whether this succeeded.
a93f15c0 1659ac_fn_cxx_try_compile ()
a243b558
JF
1660{
1661 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1662 rm -f conftest.$ac_objext
1663 if { { ac_try="$ac_compile"
1664case "(($ac_try" in
1665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1666 *) ac_try_echo=$ac_try;;
1667esac
1668eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1669$as_echo "$ac_try_echo"; } >&5
1670 (eval "$ac_compile") 2>conftest.err
1671 ac_status=$?
1672 if test -s conftest.err; then
1673 grep -v '^ *+' conftest.err >conftest.er1
1674 cat conftest.er1 >&5
1675 mv -f conftest.er1 conftest.err
1676 fi
1677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1678 test $ac_status = 0; } && {
a93f15c0 1679 test -z "$ac_cxx_werror_flag" ||
a243b558
JF
1680 test ! -s conftest.err
1681 } && test -s conftest.$ac_objext; then :
1682 ac_retval=0
1683else
1684 $as_echo "$as_me: failed program was:" >&5
1685sed 's/^/| /' conftest.$ac_ext >&5
1686
1687 ac_retval=1
1688fi
1689 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1690 as_fn_set_status $ac_retval
1691
a93f15c0 1692} # ac_fn_cxx_try_compile
a243b558 1693
a93f15c0
JF
1694# ac_fn_objcxx_try_compile LINENO
1695# -------------------------------
35fa52c0 1696# Try to compile conftest.$ac_ext, and return whether this succeeded.
a93f15c0 1697ac_fn_objcxx_try_compile ()
35fa52c0
DWT
1698{
1699 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1700 rm -f conftest.$ac_objext
1701 if { { ac_try="$ac_compile"
1702case "(($ac_try" in
1703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1704 *) ac_try_echo=$ac_try;;
1705esac
1706eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1707$as_echo "$ac_try_echo"; } >&5
1708 (eval "$ac_compile") 2>conftest.err
1709 ac_status=$?
1710 if test -s conftest.err; then
1711 grep -v '^ *+' conftest.err >conftest.er1
1712 cat conftest.er1 >&5
1713 mv -f conftest.er1 conftest.err
1714 fi
1715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1716 test $ac_status = 0; } && {
a93f15c0 1717 test -z "$ac_objcxx_werror_flag" ||
35fa52c0
DWT
1718 test ! -s conftest.err
1719 } && test -s conftest.$ac_objext; then :
1720 ac_retval=0
1721else
1722 $as_echo "$as_me: failed program was:" >&5
1723sed 's/^/| /' conftest.$ac_ext >&5
1724
1725 ac_retval=1
1726fi
ee134472 1727 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9c60689e 1728 as_fn_set_status $ac_retval
35fa52c0 1729
a93f15c0 1730} # ac_fn_objcxx_try_compile
35fa52c0
DWT
1731
1732# ac_fn_c_try_link LINENO
1733# -----------------------
1734# Try to link conftest.$ac_ext, and return whether this succeeded.
1735ac_fn_c_try_link ()
1736{
1737 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1738 rm -f conftest.$ac_objext conftest$ac_exeext
1739 if { { ac_try="$ac_link"
1740case "(($ac_try" in
1741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1742 *) ac_try_echo=$ac_try;;
1743esac
1744eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1745$as_echo "$ac_try_echo"; } >&5
1746 (eval "$ac_link") 2>conftest.err
1747 ac_status=$?
1748 if test -s conftest.err; then
1749 grep -v '^ *+' conftest.err >conftest.er1
1750 cat conftest.er1 >&5
1751 mv -f conftest.er1 conftest.err
1752 fi
1753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1754 test $ac_status = 0; } && {
1755 test -z "$ac_c_werror_flag" ||
1756 test ! -s conftest.err
1757 } && test -s conftest$ac_exeext && {
1758 test "$cross_compiling" = yes ||
53ba6704 1759 test -x conftest$ac_exeext
35fa52c0
DWT
1760 }; then :
1761 ac_retval=0
1762else
1763 $as_echo "$as_me: failed program was:" >&5
1764sed 's/^/| /' conftest.$ac_ext >&5
1765
1766 ac_retval=1
1767fi
1768 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1769 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1770 # interfere with the next link command; also delete a directory that is
1771 # left behind by Apple's compiler. We do this before executing the actions.
1772 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
ee134472 1773 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9c60689e 1774 as_fn_set_status $ac_retval
35fa52c0
DWT
1775
1776} # ac_fn_c_try_link
1777
9c60689e
DWT
1778# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1779# -------------------------------------------------------
1780# Tests whether HEADER exists and can be compiled using the include files in
1781# INCLUDES, setting the cache variable VAR accordingly.
1782ac_fn_c_check_header_compile ()
dbadc56a
DWT
1783{
1784 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9c60689e
DWT
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1786$as_echo_n "checking for $2... " >&6; }
ee134472 1787if eval \${$3+:} false; then :
9c60689e
DWT
1788 $as_echo_n "(cached) " >&6
1789else
1790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1791/* end confdefs.h. */
1792$4
1793#include <$2>
1794_ACEOF
1795if ac_fn_c_try_compile "$LINENO"; then :
1796 eval "$3=yes"
1797else
1798 eval "$3=no"
1799fi
1800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1801fi
1802eval ac_res=\$$3
1803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1804$as_echo "$ac_res" >&6; }
ee134472 1805 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9c60689e
DWT
1806
1807} # ac_fn_c_check_header_compile
1808
1809# ac_fn_c_try_cpp LINENO
1810# ----------------------
1811# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1812ac_fn_c_try_cpp ()
1813{
1814 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1815 if { { ac_try="$ac_cpp conftest.$ac_ext"
dbadc56a
DWT
1816case "(($ac_try" in
1817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1818 *) ac_try_echo=$ac_try;;
1819esac
1820eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1821$as_echo "$ac_try_echo"; } >&5
9c60689e 1822 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
dbadc56a
DWT
1823 ac_status=$?
1824 if test -s conftest.err; then
1825 grep -v '^ *+' conftest.err >conftest.er1
1826 cat conftest.er1 >&5
1827 mv -f conftest.er1 conftest.err
1828 fi
1829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12833ad8 1830 test $ac_status = 0; } > conftest.i && {
9c60689e 1831 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
dbadc56a 1832 test ! -s conftest.err
9c60689e 1833 }; then :
dbadc56a
DWT
1834 ac_retval=0
1835else
1836 $as_echo "$as_me: failed program was:" >&5
1837sed 's/^/| /' conftest.$ac_ext >&5
1838
9c60689e 1839 ac_retval=1
dbadc56a 1840fi
ee134472 1841 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9c60689e 1842 as_fn_set_status $ac_retval
dbadc56a 1843
9c60689e 1844} # ac_fn_c_try_cpp
35fa52c0
DWT
1845
1846# ac_fn_c_try_run LINENO
1847# ----------------------
1848# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1849# that executables *can* be run.
1850ac_fn_c_try_run ()
1851{
1852 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1853 if { { ac_try="$ac_link"
1854case "(($ac_try" in
1855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1856 *) ac_try_echo=$ac_try;;
1857esac
1858eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1859$as_echo "$ac_try_echo"; } >&5
1860 (eval "$ac_link") 2>&5
1861 ac_status=$?
1862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1863 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1864 { { case "(($ac_try" in
1865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1866 *) ac_try_echo=$ac_try;;
1867esac
1868eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1869$as_echo "$ac_try_echo"; } >&5
1870 (eval "$ac_try") 2>&5
1871 ac_status=$?
1872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1873 test $ac_status = 0; }; }; then :
1874 ac_retval=0
1875else
1876 $as_echo "$as_me: program exited with status $ac_status" >&5
1877 $as_echo "$as_me: failed program was:" >&5
1878sed 's/^/| /' conftest.$ac_ext >&5
1879
1880 ac_retval=$ac_status
1881fi
1882 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
ee134472 1883 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9c60689e 1884 as_fn_set_status $ac_retval
35fa52c0
DWT
1885
1886} # ac_fn_c_try_run
6b66678a 1887
9c60689e
DWT
1888# ac_fn_c_check_func LINENO FUNC VAR
1889# ----------------------------------
1890# Tests whether FUNC exists, setting the cache variable VAR accordingly
1891ac_fn_c_check_func ()
6b66678a
DWT
1892{
1893 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9c60689e
DWT
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1895$as_echo_n "checking for $2... " >&6; }
ee134472 1896if eval \${$3+:} false; then :
9c60689e 1897 $as_echo_n "(cached) " >&6
6b66678a 1898else
9c60689e
DWT
1899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1900/* end confdefs.h. */
1901/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1902 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1903#define $2 innocuous_$2
6b66678a 1904
9c60689e
DWT
1905/* System header to define __stub macros and hopefully few prototypes,
1906 which can conflict with char $2 (); below.
1907 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1908 <limits.h> exists even on freestanding compilers. */
1909
1910#ifdef __STDC__
1911# include <limits.h>
1912#else
1913# include <assert.h>
1914#endif
1915
1916#undef $2
1917
1918/* Override any GCC internal prototype to avoid an error.
1919 Use char because int might match the return type of a GCC
1920 builtin and then its argument prototype would still apply. */
1921#ifdef __cplusplus
1922extern "C"
1923#endif
1924char $2 ();
1925/* The GNU C library defines this for functions which it implements
1926 to always fail with ENOSYS. Some functions are actually named
1927 something starting with __ and the normal name is an alias. */
1928#if defined __stub_$2 || defined __stub___$2
1929choke me
1930#endif
1931
1932int
1933main ()
1934{
1935return $2 ();
1936 ;
1937 return 0;
1938}
1939_ACEOF
1940if ac_fn_c_try_link "$LINENO"; then :
1941 eval "$3=yes"
1942else
1943 eval "$3=no"
1944fi
1945rm -f core conftest.err conftest.$ac_objext \
1946 conftest$ac_exeext conftest.$ac_ext
6b66678a 1947fi
9c60689e
DWT
1948eval ac_res=\$$3
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1950$as_echo "$ac_res" >&6; }
ee134472 1951 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
6b66678a 1952
9c60689e 1953} # ac_fn_c_check_func
6b66678a 1954
9c60689e
DWT
1955# ac_fn_cxx_try_cpp LINENO
1956# ------------------------
1957# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1958ac_fn_cxx_try_cpp ()
1959{
1960 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1961 if { { ac_try="$ac_cpp conftest.$ac_ext"
1962case "(($ac_try" in
1963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1964 *) ac_try_echo=$ac_try;;
1965esac
1966eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1967$as_echo "$ac_try_echo"; } >&5
1968 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1969 ac_status=$?
1970 if test -s conftest.err; then
1971 grep -v '^ *+' conftest.err >conftest.er1
1972 cat conftest.er1 >&5
1973 mv -f conftest.er1 conftest.err
1974 fi
1975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12833ad8 1976 test $ac_status = 0; } > conftest.i && {
9c60689e
DWT
1977 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1978 test ! -s conftest.err
1979 }; then :
1980 ac_retval=0
1981else
1982 $as_echo "$as_me: failed program was:" >&5
1983sed 's/^/| /' conftest.$ac_ext >&5
1984
1985 ac_retval=1
1986fi
ee134472 1987 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9c60689e
DWT
1988 as_fn_set_status $ac_retval
1989
1990} # ac_fn_cxx_try_cpp
1991
1992# ac_fn_cxx_try_link LINENO
1993# -------------------------
1994# Try to link conftest.$ac_ext, and return whether this succeeded.
1995ac_fn_cxx_try_link ()
1996{
1997 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1998 rm -f conftest.$ac_objext conftest$ac_exeext
1999 if { { ac_try="$ac_link"
2000case "(($ac_try" in
2001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2002 *) ac_try_echo=$ac_try;;
2003esac
2004eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2005$as_echo "$ac_try_echo"; } >&5
2006 (eval "$ac_link") 2>conftest.err
2007 ac_status=$?
2008 if test -s conftest.err; then
2009 grep -v '^ *+' conftest.err >conftest.er1
2010 cat conftest.er1 >&5
2011 mv -f conftest.er1 conftest.err
2012 fi
2013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2014 test $ac_status = 0; } && {
2015 test -z "$ac_cxx_werror_flag" ||
2016 test ! -s conftest.err
2017 } && test -s conftest$ac_exeext && {
2018 test "$cross_compiling" = yes ||
53ba6704 2019 test -x conftest$ac_exeext
9c60689e
DWT
2020 }; then :
2021 ac_retval=0
2022else
2023 $as_echo "$as_me: failed program was:" >&5
2024sed 's/^/| /' conftest.$ac_ext >&5
2025
2026 ac_retval=1
2027fi
2028 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2029 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2030 # interfere with the next link command; also delete a directory that is
2031 # left behind by Apple's compiler. We do this before executing the actions.
2032 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
ee134472 2033 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9c60689e
DWT
2034 as_fn_set_status $ac_retval
2035
2036} # ac_fn_cxx_try_link
2037
47aaa820
DWT
2038# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2039# ---------------------------------------------------------
2040# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2041# the include files in INCLUDES and setting the cache variable VAR
2042# accordingly.
2043ac_fn_cxx_check_header_mongrel ()
2044{
2045 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
ee134472 2046 if eval \${$3+:} false; then :
47aaa820
DWT
2047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2048$as_echo_n "checking for $2... " >&6; }
ee134472 2049if eval \${$3+:} false; then :
47aaa820
DWT
2050 $as_echo_n "(cached) " >&6
2051fi
2052eval ac_res=\$$3
2053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2054$as_echo "$ac_res" >&6; }
2055else
2056 # Is the header compilable?
2057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2058$as_echo_n "checking $2 usability... " >&6; }
2059cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2060/* end confdefs.h. */
2061$4
2062#include <$2>
2063_ACEOF
2064if ac_fn_cxx_try_compile "$LINENO"; then :
2065 ac_header_compiler=yes
2066else
2067 ac_header_compiler=no
2068fi
2069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2071$as_echo "$ac_header_compiler" >&6; }
2072
2073# Is the header present?
2074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2075$as_echo_n "checking $2 presence... " >&6; }
2076cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2077/* end confdefs.h. */
2078#include <$2>
2079_ACEOF
2080if ac_fn_cxx_try_cpp "$LINENO"; then :
2081 ac_header_preproc=yes
2082else
2083 ac_header_preproc=no
2084fi
12833ad8 2085rm -f conftest.err conftest.i conftest.$ac_ext
47aaa820
DWT
2086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2087$as_echo "$ac_header_preproc" >&6; }
2088
2089# So? What about this header?
2090case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2091 yes:no: )
2092 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2093$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2094 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2095$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2096 ;;
2097 no:yes:* )
2098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2099$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2101$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2102 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2103$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2104 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2105$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2107$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
12833ad8 2108( $as_echo "## -------------------------------- ##
47aaa820 2109## Report this to saurik@saurik.com ##
12833ad8 2110## -------------------------------- ##"
47aaa820
DWT
2111 ) | sed "s/^/$as_me: WARNING: /" >&2
2112 ;;
2113esac
2114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2115$as_echo_n "checking for $2... " >&6; }
ee134472 2116if eval \${$3+:} false; then :
47aaa820
DWT
2117 $as_echo_n "(cached) " >&6
2118else
2119 eval "$3=\$ac_header_compiler"
2120fi
2121eval ac_res=\$$3
2122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2123$as_echo "$ac_res" >&6; }
2124fi
ee134472 2125 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
47aaa820
DWT
2126
2127} # ac_fn_cxx_check_header_mongrel
2128
c823f118
DWT
2129# ac_fn_objcxx_try_link LINENO
2130# ----------------------------
2131# Try to link conftest.$ac_ext, and return whether this succeeded.
2132ac_fn_objcxx_try_link ()
2133{
2134 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2135 rm -f conftest.$ac_objext conftest$ac_exeext
2136 if { { ac_try="$ac_link"
2137case "(($ac_try" in
2138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2139 *) ac_try_echo=$ac_try;;
2140esac
2141eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2142$as_echo "$ac_try_echo"; } >&5
2143 (eval "$ac_link") 2>conftest.err
2144 ac_status=$?
2145 if test -s conftest.err; then
2146 grep -v '^ *+' conftest.err >conftest.er1
2147 cat conftest.er1 >&5
2148 mv -f conftest.er1 conftest.err
2149 fi
2150 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2151 test $ac_status = 0; } && {
2152 test -z "$ac_objcxx_werror_flag" ||
2153 test ! -s conftest.err
2154 } && test -s conftest$ac_exeext && {
2155 test "$cross_compiling" = yes ||
53ba6704 2156 test -x conftest$ac_exeext
c823f118
DWT
2157 }; then :
2158 ac_retval=0
2159else
2160 $as_echo "$as_me: failed program was:" >&5
2161sed 's/^/| /' conftest.$ac_ext >&5
2162
2163 ac_retval=1
2164fi
2165 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2166 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2167 # interfere with the next link command; also delete a directory that is
2168 # left behind by Apple's compiler. We do this before executing the actions.
2169 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
ee134472 2170 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
c823f118
DWT
2171 as_fn_set_status $ac_retval
2172
2173} # ac_fn_objcxx_try_link
c7aa54aa
DWT
2174cat >config.log <<_ACEOF
2175This file contains any messages produced by compilers while
2176running configure, to aid debugging if configure makes a mistake.
2177
2178It was created by Cycript $as_me 0.9, which was
53ba6704 2179generated by GNU Autoconf 2.69. Invocation command line was
c7aa54aa
DWT
2180
2181 $ $0 $@
2182
2183_ACEOF
2184exec 5>>config.log
2185{
2186cat <<_ASUNAME
2187## --------- ##
2188## Platform. ##
2189## --------- ##
2190
2191hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2192uname -m = `(uname -m) 2>/dev/null || echo unknown`
2193uname -r = `(uname -r) 2>/dev/null || echo unknown`
2194uname -s = `(uname -s) 2>/dev/null || echo unknown`
2195uname -v = `(uname -v) 2>/dev/null || echo unknown`
2196
2197/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2198/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2199
2200/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2201/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2202/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2203/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2204/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2205/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2206/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2207
2208_ASUNAME
2209
2210as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2211for as_dir in $PATH
2212do
2213 IFS=$as_save_IFS
2214 test -z "$as_dir" && as_dir=.
2215 $as_echo "PATH: $as_dir"
2216 done
2217IFS=$as_save_IFS
2218
2219} >&5
2220
2221cat >&5 <<_ACEOF
2222
2223
2224## ----------- ##
2225## Core tests. ##
2226## ----------- ##
2227
2228_ACEOF
2229
2230
2231# Keep a trace of the command line.
2232# Strip out --no-create and --no-recursion so they do not pile up.
2233# Strip out --silent because we don't want to record it for future runs.
2234# Also quote any args containing shell meta-characters.
2235# Make two passes to allow for proper duplicate-argument suppression.
2236ac_configure_args=
2237ac_configure_args0=
2238ac_configure_args1=
2239ac_must_keep_next=false
2240for ac_pass in 1 2
2241do
2242 for ac_arg
2243 do
2244 case $ac_arg in
2245 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2246 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2247 | -silent | --silent | --silen | --sile | --sil)
2248 continue ;;
2249 *\'*)
2250 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2251 esac
2252 case $ac_pass in
2253 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2254 2)
2255 as_fn_append ac_configure_args1 " '$ac_arg'"
2256 if test $ac_must_keep_next = true; then
2257 ac_must_keep_next=false # Got value, back to normal.
2258 else
2259 case $ac_arg in
2260 *=* | --config-cache | -C | -disable-* | --disable-* \
2261 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2262 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2263 | -with-* | --with-* | -without-* | --without-* | --x)
2264 case "$ac_configure_args0 " in
2265 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2266 esac
2267 ;;
2268 -* ) ac_must_keep_next=true ;;
2269 esac
2270 fi
2271 as_fn_append ac_configure_args " '$ac_arg'"
2272 ;;
2273 esac
2274 done
2275done
2276{ ac_configure_args0=; unset ac_configure_args0;}
2277{ ac_configure_args1=; unset ac_configure_args1;}
2278
2279# When interrupted or exit'd, cleanup temporary files, and complete
2280# config.log. We remove comments because anyway the quotes in there
2281# would cause problems or look ugly.
2282# WARNING: Use '\'' to represent an apostrophe within the trap.
2283# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2284trap 'exit_status=$?
2285 # Save into config.log some information that might help in debugging.
2286 {
2287 echo
2288
12833ad8 2289 $as_echo "## ---------------- ##
c7aa54aa 2290## Cache variables. ##
12833ad8 2291## ---------------- ##"
c7aa54aa
DWT
2292 echo
2293 # The following way of writing the cache mishandles newlines in values,
2294(
2295 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2296 eval ac_val=\$$ac_var
2297 case $ac_val in #(
2298 *${as_nl}*)
2299 case $ac_var in #(
2300 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2301$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2302 esac
2303 case $ac_var in #(
2304 _ | IFS | as_nl) ;; #(
2305 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2306 *) { eval $ac_var=; unset $ac_var;} ;;
2307 esac ;;
2308 esac
2309 done
2310 (set) 2>&1 |
2311 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2312 *${as_nl}ac_space=\ *)
2313 sed -n \
2314 "s/'\''/'\''\\\\'\'''\''/g;
2315 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2316 ;; #(
2317 *)
2318 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2319 ;;
2320 esac |
2321 sort
2322)
2323 echo
2324
12833ad8 2325 $as_echo "## ----------------- ##
c7aa54aa 2326## Output variables. ##
12833ad8 2327## ----------------- ##"
c7aa54aa
DWT
2328 echo
2329 for ac_var in $ac_subst_vars
2330 do
2331 eval ac_val=\$$ac_var
2332 case $ac_val in
2333 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2334 esac
2335 $as_echo "$ac_var='\''$ac_val'\''"
2336 done | sort
2337 echo
2338
2339 if test -n "$ac_subst_files"; then
12833ad8 2340 $as_echo "## ------------------- ##
c7aa54aa 2341## File substitutions. ##
12833ad8 2342## ------------------- ##"
c7aa54aa
DWT
2343 echo
2344 for ac_var in $ac_subst_files
2345 do
2346 eval ac_val=\$$ac_var
2347 case $ac_val in
2348 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2349 esac
2350 $as_echo "$ac_var='\''$ac_val'\''"
2351 done | sort
2352 echo
2353 fi
2354
2355 if test -s confdefs.h; then
12833ad8 2356 $as_echo "## ----------- ##
c7aa54aa 2357## confdefs.h. ##
12833ad8 2358## ----------- ##"
c7aa54aa
DWT
2359 echo
2360 cat confdefs.h
2361 echo
2362 fi
2363 test "$ac_signal" != 0 &&
2364 $as_echo "$as_me: caught signal $ac_signal"
2365 $as_echo "$as_me: exit $exit_status"
2366 } >&5
2367 rm -f core *.core core.conftest.* &&
2368 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2369 exit $exit_status
2370' 0
2371for ac_signal in 1 2 13 15; do
2372 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2373done
2374ac_signal=0
2375
2376# confdefs.h avoids OS command line length limits that DEFS can exceed.
2377rm -f -r conftest* confdefs.h
2378
2379$as_echo "/* confdefs.h */" > confdefs.h
2380
2381# Predefined preprocessor variables.
2382
2383cat >>confdefs.h <<_ACEOF
2384#define PACKAGE_NAME "$PACKAGE_NAME"
2385_ACEOF
2386
2387cat >>confdefs.h <<_ACEOF
2388#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2389_ACEOF
2390
2391cat >>confdefs.h <<_ACEOF
2392#define PACKAGE_VERSION "$PACKAGE_VERSION"
2393_ACEOF
2394
2395cat >>confdefs.h <<_ACEOF
2396#define PACKAGE_STRING "$PACKAGE_STRING"
2397_ACEOF
2398
2399cat >>confdefs.h <<_ACEOF
2400#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2401_ACEOF
2402
2403cat >>confdefs.h <<_ACEOF
2404#define PACKAGE_URL "$PACKAGE_URL"
2405_ACEOF
2406
2407
2408# Let the site file select an alternate cache file if it wants to.
2409# Prefer an explicitly selected file to automatically selected ones.
2410ac_site_file1=NONE
2411ac_site_file2=NONE
2412if test -n "$CONFIG_SITE"; then
12833ad8
JF
2413 # We do not want a PATH search for config.site.
2414 case $CONFIG_SITE in #((
2415 -*) ac_site_file1=./$CONFIG_SITE;;
2416 */*) ac_site_file1=$CONFIG_SITE;;
2417 *) ac_site_file1=./$CONFIG_SITE;;
2418 esac
c7aa54aa
DWT
2419elif test "x$prefix" != xNONE; then
2420 ac_site_file1=$prefix/share/config.site
2421 ac_site_file2=$prefix/etc/config.site
2422else
2423 ac_site_file1=$ac_default_prefix/share/config.site
2424 ac_site_file2=$ac_default_prefix/etc/config.site
2425fi
2426for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2427do
2428 test "x$ac_site_file" = xNONE && continue
9c60689e 2429 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
c7aa54aa
DWT
2430 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2431$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2432 sed 's/^/| /' "$ac_site_file" >&5
12833ad8
JF
2433 . "$ac_site_file" \
2434 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2435$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2436as_fn_error $? "failed to load site script $ac_site_file
ee134472 2437See \`config.log' for more details" "$LINENO" 5; }
c7aa54aa
DWT
2438 fi
2439done
2440
2441if test -r "$cache_file"; then
9c60689e
DWT
2442 # Some versions of bash will fail to source /dev/null (special files
2443 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2444 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
c7aa54aa
DWT
2445 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2446$as_echo "$as_me: loading cache $cache_file" >&6;}
2447 case $cache_file in
2448 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2449 *) . "./$cache_file";;
2450 esac
2451 fi
2452else
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2454$as_echo "$as_me: creating cache $cache_file" >&6;}
2455 >$cache_file
2456fi
2457
2458# Check that the precious variables saved in the cache have kept the same
2459# value.
2460ac_cache_corrupted=false
2461for ac_var in $ac_precious_vars; do
2462 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2463 eval ac_new_set=\$ac_env_${ac_var}_set
2464 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2465 eval ac_new_val=\$ac_env_${ac_var}_value
2466 case $ac_old_set,$ac_new_set in
2467 set,)
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2469$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2470 ac_cache_corrupted=: ;;
2471 ,set)
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2473$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2474 ac_cache_corrupted=: ;;
2475 ,);;
2476 *)
2477 if test "x$ac_old_val" != "x$ac_new_val"; then
2478 # differences in whitespace do not lead to failure.
2479 ac_old_val_w=`echo x $ac_old_val`
2480 ac_new_val_w=`echo x $ac_new_val`
2481 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2483$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2484 ac_cache_corrupted=:
2485 else
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2487$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2488 eval $ac_var=\$ac_old_val
2489 fi
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2491$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2493$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2494 fi;;
2495 esac
2496 # Pass precious variables to config.status.
2497 if test "$ac_new_set" = set; then
2498 case $ac_new_val in
2499 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2500 *) ac_arg=$ac_var=$ac_new_val ;;
2501 esac
2502 case " $ac_configure_args " in
2503 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2504 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2505 esac
2506 fi
2507done
2508if $ac_cache_corrupted; then
2509 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2510$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2511 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2512$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
12833ad8 2513 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
c7aa54aa
DWT
2514fi
2515## -------------------- ##
2516## Main body of script. ##
2517## -------------------- ##
2518
2519ac_ext=c
2520ac_cpp='$CPP $CPPFLAGS'
2521ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2522ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2523ac_compiler_gnu=$ac_cv_c_compiler_gnu
2524
2525
66170b30
JF
2526
2527
35fa52c0 2528
6b66678a
DWT
2529ac_aux_dir=
2530for ac_dir in . "$srcdir"/.; do
12833ad8
JF
2531 if test -f "$ac_dir/install-sh"; then
2532 ac_aux_dir=$ac_dir
2533 ac_install_sh="$ac_aux_dir/install-sh -c"
2534 break
2535 elif test -f "$ac_dir/install.sh"; then
2536 ac_aux_dir=$ac_dir
2537 ac_install_sh="$ac_aux_dir/install.sh -c"
2538 break
2539 elif test -f "$ac_dir/shtool"; then
2540 ac_aux_dir=$ac_dir
2541 ac_install_sh="$ac_aux_dir/shtool install -c"
2542 break
2543 fi
6b66678a
DWT
2544done
2545if test -z "$ac_aux_dir"; then
12833ad8 2546 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
6b66678a
DWT
2547fi
2548
2549# These three variables are undocumented and unsupported,
2550# and are intended to be withdrawn in a future Autoconf release.
2551# They can cause serious problems if a builder's source tree is in a directory
2552# whose full name contains unusual characters.
2553ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2554ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2555ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2556
2557
9c60689e 2558
296ee9a6
JF
2559ac_config_headers="$ac_config_headers config.h"
2560
9c60689e 2561
a93f15c0 2562am__api_version='1.14'
9c60689e 2563
66170b30
JF
2564# Find a good install program. We prefer a C program (faster),
2565# so one script is as good as another. But avoid the broken or
2566# incompatible versions:
2567# SysV /etc/install, /usr/sbin/install
2568# SunOS /usr/etc/install
2569# IRIX /sbin/install
2570# AIX /bin/install
2571# AmigaOS /C/install, which installs bootblocks on floppy discs
2572# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2573# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2574# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2575# OS/2's system install, which has a completely different semantic
2576# ./install, which can be erroneously created by make from ./install.sh.
2577# Reject install programs that cannot install multiple files.
2578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2579$as_echo_n "checking for a BSD-compatible install... " >&6; }
2580if test -z "$INSTALL"; then
2581if ${ac_cv_path_install+:} false; then :
2582 $as_echo_n "(cached) " >&6
2583else
2584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2585for as_dir in $PATH
2586do
2587 IFS=$as_save_IFS
2588 test -z "$as_dir" && as_dir=.
2589 # Account for people who put trailing slashes in PATH elements.
2590case $as_dir/ in #((
2591 ./ | .// | /[cC]/* | \
2592 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2593 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2594 /usr/ucb/* ) ;;
2595 *)
2596 # OSF1 and SCO ODT 3.0 have their own names for install.
2597 # Don't use installbsd from OSF since it installs stuff as root
2598 # by default.
2599 for ac_prog in ginstall scoinst install; do
2600 for ac_exec_ext in '' $ac_executable_extensions; do
2601 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2602 if test $ac_prog = install &&
2603 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2604 # AIX install. It has an incompatible calling convention.
2605 :
2606 elif test $ac_prog = install &&
2607 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2608 # program-specific install script used by HP pwplus--don't use.
2609 :
2610 else
2611 rm -rf conftest.one conftest.two conftest.dir
2612 echo one > conftest.one
2613 echo two > conftest.two
2614 mkdir conftest.dir
2615 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2616 test -s conftest.one && test -s conftest.two &&
2617 test -s conftest.dir/conftest.one &&
2618 test -s conftest.dir/conftest.two
2619 then
2620 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2621 break 3
2622 fi
2623 fi
2624 fi
2625 done
2626 done
2627 ;;
2628esac
9c60689e 2629
66170b30
JF
2630 done
2631IFS=$as_save_IFS
9c60689e 2632
66170b30 2633rm -rf conftest.one conftest.two conftest.dir
9c60689e 2634
66170b30
JF
2635fi
2636 if test "${ac_cv_path_install+set}" = set; then
2637 INSTALL=$ac_cv_path_install
2638 else
2639 # As a last resort, use the slow shell script. Don't cache a
2640 # value for INSTALL within a source directory, because that will
2641 # break other packages using the cache if that directory is
2642 # removed, or if the value is a relative name.
2643 INSTALL=$ac_install_sh
2644 fi
2645fi
2646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2647$as_echo "$INSTALL" >&6; }
9c60689e 2648
66170b30
JF
2649# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2650# It thinks the first close brace ends the variable substitution.
2651test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9c60689e 2652
66170b30 2653test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
9c60689e 2654
66170b30 2655test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9c60689e 2656
66170b30
JF
2657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2658$as_echo_n "checking whether build environment is sane... " >&6; }
2659# Reject unsafe characters in $srcdir or the absolute working directory
2660# name. Accept space and tab only in the latter.
2661am_lf='
2662'
2663case `pwd` in
2664 *[\\\"\#\$\&\'\`$am_lf]*)
2665 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2666esac
2667case $srcdir in
2668 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2669 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2670esac
9c60689e 2671
66170b30
JF
2672# Do 'set' in a subshell so we don't clobber the current shell's
2673# arguments. Must try -L first in case configure is actually a
2674# symlink; some systems play weird games with the mod time of symlinks
2675# (eg FreeBSD returns the mod time of the symlink's containing
2676# directory).
2677if (
2678 am_has_slept=no
2679 for am_try in 1 2; do
2680 echo "timestamp, slept: $am_has_slept" > conftest.file
2681 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2682 if test "$*" = "X"; then
2683 # -L didn't work.
2684 set X `ls -t "$srcdir/configure" conftest.file`
2685 fi
2686 if test "$*" != "X $srcdir/configure conftest.file" \
2687 && test "$*" != "X conftest.file $srcdir/configure"; then
2688
2689 # If neither matched, then we have a broken ls. This can happen
2690 # if, for instance, CONFIG_SHELL is bash and it inherits a
2691 # broken ls alias from the environment. This has actually
2692 # happened. Such a system could not be considered "sane".
2693 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2694 alias in your environment" "$LINENO" 5
2695 fi
2696 if test "$2" = conftest.file || test $am_try -eq 2; then
2697 break
2698 fi
2699 # Just in case.
2700 sleep 1
2701 am_has_slept=yes
2702 done
2703 test "$2" = conftest.file
2704 )
2705then
2706 # Ok.
2707 :
2708else
2709 as_fn_error $? "newly created file is older than distributed files!
2710Check your system clock" "$LINENO" 5
2711fi
2712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2713$as_echo "yes" >&6; }
2714# If we didn't sleep, we still need to ensure time stamps of config.status and
2715# generated files are strictly newer.
2716am_sleep_pid=
2717if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2718 ( sleep 1 ) &
2719 am_sleep_pid=$!
2720fi
2721
2722rm -f conftest.file
2723
2724test "$program_prefix" != NONE &&
2725 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2726# Use a double $ so make ignores it.
2727test "$program_suffix" != NONE &&
2728 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2729# Double any \ or $.
2730# By default was `s,x,x', remove it if useless.
2731ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2732program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2733
2734# expand $ac_aux_dir to an absolute path
2735am_aux_dir=`cd $ac_aux_dir && pwd`
2736
2737if test x"${MISSING+set}" != xset; then
2738 case $am_aux_dir in
2739 *\ * | *\ *)
2740 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2741 *)
2742 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2743 esac
2744fi
2745# Use eval to expand $SHELL
2746if eval "$MISSING --is-lightweight"; then
2747 am_missing_run="$MISSING "
2748else
2749 am_missing_run=
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2751$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2752fi
9c60689e 2753
66170b30
JF
2754if test x"${install_sh}" != xset; then
2755 case $am_aux_dir in
2756 *\ * | *\ *)
2757 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2758 *)
2759 install_sh="\${SHELL} $am_aux_dir/install-sh"
2760 esac
2761fi
9c60689e 2762
66170b30
JF
2763# Installed binaries are usually stripped using 'strip' when the user
2764# run "make install-strip". However 'strip' might not be the right
2765# tool to use in cross-compilation environments, therefore Automake
2766# will honor the 'STRIP' environment variable to overrule this program.
2767if test "$cross_compiling" != no; then
2768 if test -n "$ac_tool_prefix"; then
2769 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2770set dummy ${ac_tool_prefix}strip; ac_word=$2
2771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2772$as_echo_n "checking for $ac_word... " >&6; }
2773if ${ac_cv_prog_STRIP+:} false; then :
2774 $as_echo_n "(cached) " >&6
2775else
2776 if test -n "$STRIP"; then
2777 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2778else
2779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2780for as_dir in $PATH
2781do
2782 IFS=$as_save_IFS
2783 test -z "$as_dir" && as_dir=.
2784 for ac_exec_ext in '' $ac_executable_extensions; do
2785 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2786 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2788 break 2
2789 fi
2790done
2791 done
2792IFS=$as_save_IFS
9c60689e 2793
66170b30
JF
2794fi
2795fi
2796STRIP=$ac_cv_prog_STRIP
2797if test -n "$STRIP"; then
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2799$as_echo "$STRIP" >&6; }
2800else
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2802$as_echo "no" >&6; }
2803fi
9c60689e 2804
9c60689e 2805
66170b30
JF
2806fi
2807if test -z "$ac_cv_prog_STRIP"; then
2808 ac_ct_STRIP=$STRIP
2809 # Extract the first word of "strip", so it can be a program name with args.
2810set dummy strip; ac_word=$2
2811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2812$as_echo_n "checking for $ac_word... " >&6; }
2813if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
9c60689e
DWT
2814 $as_echo_n "(cached) " >&6
2815else
66170b30
JF
2816 if test -n "$ac_ct_STRIP"; then
2817 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2818else
2819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2820for as_dir in $PATH
2821do
2822 IFS=$as_save_IFS
2823 test -z "$as_dir" && as_dir=.
2824 for ac_exec_ext in '' $ac_executable_extensions; do
2825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2826 ac_cv_prog_ac_ct_STRIP="strip"
2827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2828 break 2
2829 fi
2830done
2831 done
2832IFS=$as_save_IFS
9c60689e
DWT
2833
2834fi
66170b30
JF
2835fi
2836ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2837if test -n "$ac_ct_STRIP"; then
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2839$as_echo "$ac_ct_STRIP" >&6; }
2840else
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2842$as_echo "no" >&6; }
2843fi
2844
2845 if test "x$ac_ct_STRIP" = x; then
2846 STRIP=":"
2847 else
2848 case $cross_compiling:$ac_tool_warned in
2849yes:)
2850{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2851$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2852ac_tool_warned=yes ;;
9c60689e 2853esac
66170b30
JF
2854 STRIP=$ac_ct_STRIP
2855 fi
2856else
2857 STRIP="$ac_cv_prog_STRIP"
2858fi
9c60689e 2859
66170b30
JF
2860fi
2861INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
9c60689e 2862
66170b30
JF
2863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2864$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2865if test -z "$MKDIR_P"; then
2866 if ${ac_cv_path_mkdir+:} false; then :
9c60689e
DWT
2867 $as_echo_n "(cached) " >&6
2868else
66170b30
JF
2869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2870for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2871do
2872 IFS=$as_save_IFS
2873 test -z "$as_dir" && as_dir=.
2874 for ac_prog in mkdir gmkdir; do
2875 for ac_exec_ext in '' $ac_executable_extensions; do
2876 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2877 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2878 'mkdir (GNU coreutils) '* | \
2879 'mkdir (coreutils) '* | \
2880 'mkdir (fileutils) '4.1*)
2881 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2882 break 3;;
2883 esac
2884 done
2885 done
2886 done
2887IFS=$as_save_IFS
2888
2889fi
2890
2891 test -d ./--version && rmdir ./--version
2892 if test "${ac_cv_path_mkdir+set}" = set; then
2893 MKDIR_P="$ac_cv_path_mkdir -p"
2894 else
2895 # As a last resort, use the slow shell script. Don't cache a
2896 # value for MKDIR_P within a source directory, because that will
2897 # break other packages using the cache if that directory is
2898 # removed, or if the value is a relative name.
2899 MKDIR_P="$ac_install_sh -d"
2900 fi
2901fi
2902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2903$as_echo "$MKDIR_P" >&6; }
2904
2905for ac_prog in gawk mawk nawk awk
2906do
2907 # Extract the first word of "$ac_prog", so it can be a program name with args.
2908set dummy $ac_prog; ac_word=$2
2909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2910$as_echo_n "checking for $ac_word... " >&6; }
2911if ${ac_cv_prog_AWK+:} false; then :
2912 $as_echo_n "(cached) " >&6
2913else
2914 if test -n "$AWK"; then
2915 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2916else
2917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2918for as_dir in $PATH
2919do
2920 IFS=$as_save_IFS
2921 test -z "$as_dir" && as_dir=.
2922 for ac_exec_ext in '' $ac_executable_extensions; do
2923 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2924 ac_cv_prog_AWK="$ac_prog"
2925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2926 break 2
2927 fi
2928done
2929 done
2930IFS=$as_save_IFS
2931
2932fi
2933fi
2934AWK=$ac_cv_prog_AWK
2935if test -n "$AWK"; then
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2937$as_echo "$AWK" >&6; }
2938else
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2940$as_echo "no" >&6; }
2941fi
2942
2943
2944 test -n "$AWK" && break
2945done
2946
2947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2948$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2949set x ${MAKE-make}
2950ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2951if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2952 $as_echo_n "(cached) " >&6
2953else
2954 cat >conftest.make <<\_ACEOF
2955SHELL = /bin/sh
2956all:
2957 @echo '@@@%%%=$(MAKE)=@@@%%%'
2958_ACEOF
2959# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2960case `${MAKE-make} -f conftest.make 2>/dev/null` in
2961 *@@@%%%=?*=@@@%%%*)
2962 eval ac_cv_prog_make_${ac_make}_set=yes;;
2963 *)
2964 eval ac_cv_prog_make_${ac_make}_set=no;;
2965esac
2966rm -f conftest.make
2967fi
2968if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2970$as_echo "yes" >&6; }
2971 SET_MAKE=
2972else
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2974$as_echo "no" >&6; }
2975 SET_MAKE="MAKE=${MAKE-make}"
2976fi
2977
2978rm -rf .tst 2>/dev/null
2979mkdir .tst 2>/dev/null
2980if test -d .tst; then
2981 am__leading_dot=.
2982else
2983 am__leading_dot=_
2984fi
2985rmdir .tst 2>/dev/null
2986
2987# Check whether --enable-silent-rules was given.
2988if test "${enable_silent_rules+set}" = set; then :
2989 enableval=$enable_silent_rules;
2990fi
2991
2992case $enable_silent_rules in # (((
2993 yes) AM_DEFAULT_VERBOSITY=0;;
2994 no) AM_DEFAULT_VERBOSITY=1;;
2995 *) AM_DEFAULT_VERBOSITY=1;;
2996esac
2997am_make=${MAKE-make}
2998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2999$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3000if ${am_cv_make_support_nested_variables+:} false; then :
3001 $as_echo_n "(cached) " >&6
3002else
3003 if $as_echo 'TRUE=$(BAR$(V))
3004BAR0=false
3005BAR1=true
3006V=1
3007am__doit:
3008 @$(TRUE)
3009.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3010 am_cv_make_support_nested_variables=yes
3011else
3012 am_cv_make_support_nested_variables=no
3013fi
3014fi
3015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3016$as_echo "$am_cv_make_support_nested_variables" >&6; }
3017if test $am_cv_make_support_nested_variables = yes; then
3018 AM_V='$(V)'
3019 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3020else
3021 AM_V=$AM_DEFAULT_VERBOSITY
3022 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3023fi
3024AM_BACKSLASH='\'
3025
3026if test "`cd $srcdir && pwd`" != "`pwd`"; then
3027 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3028 # is not polluted with repeated "-I."
3029 am__isrc=' -I$(srcdir)'
3030 # test to see if srcdir already configured
3031 if test -f $srcdir/config.status; then
3032 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3033 fi
3034fi
3035
3036# test whether we have cygpath
3037if test -z "$CYGPATH_W"; then
3038 if (cygpath --version) >/dev/null 2>/dev/null; then
3039 CYGPATH_W='cygpath -w'
3040 else
3041 CYGPATH_W=echo
3042 fi
3043fi
3044
3045
3046# Define the identity of the package.
3047 PACKAGE='cycript'
3048 VERSION='0.9'
3049
3050
3051cat >>confdefs.h <<_ACEOF
3052#define PACKAGE "$PACKAGE"
3053_ACEOF
3054
3055
3056cat >>confdefs.h <<_ACEOF
3057#define VERSION "$VERSION"
3058_ACEOF
3059
3060# Some tools Automake needs.
3061
3062ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3063
3064
3065AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3066
3067
3068AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3069
3070
3071AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3072
3073
3074MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3075
3076# For better backward compatibility. To be removed once Automake 1.9.x
3077# dies out for good. For more background, see:
3078# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3079# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3080mkdir_p='$(MKDIR_P)'
3081
3082# We need awk for the "check" target. The system "awk" is bad on
3083# some platforms.
3084# Always define AMTAR for backward compatibility. Yes, it's still used
3085# in the wild :-( We should find a proper way to deprecate it ...
3086AMTAR='$${TAR-tar}'
3087
a93f15c0
JF
3088
3089# We'll loop over all known methods to create a tar archive until one works.
3090_am_tools='gnutar pax cpio none'
3091
66170b30
JF
3092am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3093
3094
3095
3096
3097
66170b30 3098
a93f15c0
JF
3099# POSIX will say in a future version that running "rm -f" with no argument
3100# is OK; and we want to be able to make that assumption in our Makefile
3101# recipes. So use an aggressive probe to check that the usage we want is
3102# actually supported "in the wild" to an acceptable degree.
3103# See automake bug#10828.
3104# To make any issue more visible, cause the running configure to be aborted
3105# by default if the 'rm' program in use doesn't match our expectations; the
3106# user can still override this though.
3107if rm -f && rm -fr && rm -rf; then : OK; else
3108 cat >&2 <<'END'
3109Oops!
3110
3111Your 'rm' program seems unable to run without file operands specified
3112on the command line, even when the '-f' option is present. This is contrary
3113to the behaviour of most rm programs out there, and not conforming with
3114the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3115
3116Please tell bug-automake@gnu.org about your system, including the value
3117of your $PATH and any error possibly output before this message. This
3118can help us improve future automake versions.
3119
3120END
3121 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3122 echo 'Configuration will proceed anyway, since you have set the' >&2
3123 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3124 echo >&2
3125 else
3126 cat >&2 <<'END'
3127Aborting the configuration process, to ensure you take notice of the issue.
3128
3129You can download and install GNU coreutils to get an 'rm' implementation
3130that behaves properly: <http://www.gnu.org/software/coreutils/>.
3131
3132If you want to complete the configuration process using your problematic
3133'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3134to "yes", and re-run configure.
3135
3136END
3137 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3138 fi
3139fi
3140
babf7fe8
JF
3141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3142$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3143 # Check whether --enable-maintainer-mode was given.
3144if test "${enable_maintainer_mode+set}" = set; then :
3145 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3146else
3147 USE_MAINTAINER_MODE=no
3148fi
3149
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3151$as_echo "$USE_MAINTAINER_MODE" >&6; }
3152 if test $USE_MAINTAINER_MODE = yes; then
3153 MAINTAINER_MODE_TRUE=
3154 MAINTAINER_MODE_FALSE='#'
3155else
3156 MAINTAINER_MODE_TRUE='#'
3157 MAINTAINER_MODE_FALSE=
3158fi
3159
3160 MAINT=$MAINTAINER_MODE_TRUE
3161
3162
3163
a93f15c0
JF
3164ac_ext=c
3165ac_cpp='$CPP $CPPFLAGS'
3166ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3167ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3168ac_compiler_gnu=$ac_cv_c_compiler_gnu
3169if test -n "$ac_tool_prefix"; then
3170 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3171set dummy ${ac_tool_prefix}gcc; ac_word=$2
dbadc56a
DWT
3172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3173$as_echo_n "checking for $ac_word... " >&6; }
a93f15c0 3174if ${ac_cv_prog_CC+:} false; then :
dbadc56a
DWT
3175 $as_echo_n "(cached) " >&6
3176else
a93f15c0
JF
3177 if test -n "$CC"; then
3178 ac_cv_prog_CC="$CC" # Let the user override the test.
dbadc56a
DWT
3179else
3180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3181for as_dir in $PATH
3182do
3183 IFS=$as_save_IFS
3184 test -z "$as_dir" && as_dir=.
3185 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 3186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a93f15c0 3187 ac_cv_prog_CC="${ac_tool_prefix}gcc"
dbadc56a
DWT
3188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3189 break 2
3190 fi
3191done
3192 done
3193IFS=$as_save_IFS
3194
3195fi
3196fi
a93f15c0
JF
3197CC=$ac_cv_prog_CC
3198if test -n "$CC"; then
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3200$as_echo "$CC" >&6; }
35fa52c0
DWT
3201else
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3203$as_echo "no" >&6; }
3204fi
3205
3206
35fa52c0 3207fi
a93f15c0
JF
3208if test -z "$ac_cv_prog_CC"; then
3209 ac_ct_CC=$CC
3210 # Extract the first word of "gcc", so it can be a program name with args.
3211set dummy gcc; ac_word=$2
35fa52c0
DWT
3212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3213$as_echo_n "checking for $ac_word... " >&6; }
a93f15c0 3214if ${ac_cv_prog_ac_ct_CC+:} false; then :
35fa52c0
DWT
3215 $as_echo_n "(cached) " >&6
3216else
a93f15c0
JF
3217 if test -n "$ac_ct_CC"; then
3218 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
35fa52c0
DWT
3219else
3220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3221for as_dir in $PATH
3222do
3223 IFS=$as_save_IFS
3224 test -z "$as_dir" && as_dir=.
3225 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 3226 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a93f15c0 3227 ac_cv_prog_ac_ct_CC="gcc"
35fa52c0
DWT
3228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3229 break 2
3230 fi
3231done
3232 done
3233IFS=$as_save_IFS
3234
3235fi
3236fi
a93f15c0
JF
3237ac_ct_CC=$ac_cv_prog_ac_ct_CC
3238if test -n "$ac_ct_CC"; then
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3240$as_echo "$ac_ct_CC" >&6; }
35fa52c0
DWT
3241else
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3243$as_echo "no" >&6; }
3244fi
3245
a93f15c0
JF
3246 if test "x$ac_ct_CC" = x; then
3247 CC=""
35fa52c0
DWT
3248 else
3249 case $cross_compiling:$ac_tool_warned in
3250yes:)
3251{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3252$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3253ac_tool_warned=yes ;;
3254esac
a93f15c0 3255 CC=$ac_ct_CC
35fa52c0 3256 fi
a93f15c0
JF
3257else
3258 CC="$ac_cv_prog_CC"
35fa52c0
DWT
3259fi
3260
a93f15c0
JF
3261if test -z "$CC"; then
3262 if test -n "$ac_tool_prefix"; then
3263 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3264set dummy ${ac_tool_prefix}cc; ac_word=$2
3265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3266$as_echo_n "checking for $ac_word... " >&6; }
3267if ${ac_cv_prog_CC+:} false; then :
3268 $as_echo_n "(cached) " >&6
3269else
3270 if test -n "$CC"; then
3271 ac_cv_prog_CC="$CC" # Let the user override the test.
3272else
3273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3274for as_dir in $PATH
3275do
3276 IFS=$as_save_IFS
3277 test -z "$as_dir" && as_dir=.
3278 for ac_exec_ext in '' $ac_executable_extensions; do
3279 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3280 ac_cv_prog_CC="${ac_tool_prefix}cc"
3281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3282 break 2
a243b558 3283 fi
35fa52c0 3284done
a93f15c0
JF
3285 done
3286IFS=$as_save_IFS
35fa52c0 3287
a93f15c0
JF
3288fi
3289fi
3290CC=$ac_cv_prog_CC
3291if test -n "$CC"; then
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3293$as_echo "$CC" >&6; }
3294else
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3296$as_echo "no" >&6; }
3297fi
35fa52c0 3298
35fa52c0 3299
a93f15c0
JF
3300 fi
3301fi
3302if test -z "$CC"; then
3303 # Extract the first word of "cc", so it can be a program name with args.
3304set dummy cc; ac_word=$2
3305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3306$as_echo_n "checking for $ac_word... " >&6; }
3307if ${ac_cv_prog_CC+:} false; then :
3308 $as_echo_n "(cached) " >&6
3309else
3310 if test -n "$CC"; then
3311 ac_cv_prog_CC="$CC" # Let the user override the test.
3312else
3313 ac_prog_rejected=no
3314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3315for as_dir in $PATH
35fa52c0 3316do
a93f15c0
JF
3317 IFS=$as_save_IFS
3318 test -z "$as_dir" && as_dir=.
3319 for ac_exec_ext in '' $ac_executable_extensions; do
3320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3321 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3322 ac_prog_rejected=yes
3323 continue
3324 fi
3325 ac_cv_prog_CC="cc"
3326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3327 break 2
3328 fi
3329done
3330 done
3331IFS=$as_save_IFS
3332
3333if test $ac_prog_rejected = yes; then
3334 # We found a bogon in the path, so make sure we never use it.
3335 set dummy $ac_cv_prog_CC
3336 shift
3337 if test $# != 0; then
3338 # We chose a different compiler from the bogus one.
3339 # However, it has the same basename, so the bogon will be chosen
3340 # first if we set CC to just the basename; use the full file name.
3341 shift
3342 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3343 fi
3344fi
3345fi
3346fi
3347CC=$ac_cv_prog_CC
3348if test -n "$CC"; then
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3350$as_echo "$CC" >&6; }
3351else
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3353$as_echo "no" >&6; }
3354fi
3355
3356
3357fi
3358if test -z "$CC"; then
3359 if test -n "$ac_tool_prefix"; then
3360 for ac_prog in cl.exe
3361 do
3362 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3363set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3365$as_echo_n "checking for $ac_word... " >&6; }
3366if ${ac_cv_prog_CC+:} false; then :
3367 $as_echo_n "(cached) " >&6
3368else
3369 if test -n "$CC"; then
3370 ac_cv_prog_CC="$CC" # Let the user override the test.
3371else
3372as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3373for as_dir in $PATH
3374do
3375 IFS=$as_save_IFS
3376 test -z "$as_dir" && as_dir=.
3377 for ac_exec_ext in '' $ac_executable_extensions; do
3378 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3379 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3381 break 2
3382 fi
3383done
3384 done
3385IFS=$as_save_IFS
3386
3387fi
3388fi
3389CC=$ac_cv_prog_CC
3390if test -n "$CC"; then
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3392$as_echo "$CC" >&6; }
3393else
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3395$as_echo "no" >&6; }
3396fi
3397
3398
3399 test -n "$CC" && break
3400 done
3401fi
3402if test -z "$CC"; then
3403 ac_ct_CC=$CC
3404 for ac_prog in cl.exe
3405do
3406 # Extract the first word of "$ac_prog", so it can be a program name with args.
3407set dummy $ac_prog; ac_word=$2
3408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3409$as_echo_n "checking for $ac_word... " >&6; }
3410if ${ac_cv_prog_ac_ct_CC+:} false; then :
3411 $as_echo_n "(cached) " >&6
3412else
3413 if test -n "$ac_ct_CC"; then
3414 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3415else
3416as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3417for as_dir in $PATH
3418do
3419 IFS=$as_save_IFS
3420 test -z "$as_dir" && as_dir=.
3421 for ac_exec_ext in '' $ac_executable_extensions; do
3422 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3423 ac_cv_prog_ac_ct_CC="$ac_prog"
3424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3425 break 2
3426 fi
3427done
3428 done
3429IFS=$as_save_IFS
3430
3431fi
3432fi
3433ac_ct_CC=$ac_cv_prog_ac_ct_CC
3434if test -n "$ac_ct_CC"; then
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3436$as_echo "$ac_ct_CC" >&6; }
3437else
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3439$as_echo "no" >&6; }
3440fi
3441
3442
3443 test -n "$ac_ct_CC" && break
3444done
3445
3446 if test "x$ac_ct_CC" = x; then
3447 CC=""
3448 else
3449 case $cross_compiling:$ac_tool_warned in
3450yes:)
3451{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3452$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3453ac_tool_warned=yes ;;
3454esac
3455 CC=$ac_ct_CC
3456 fi
3457fi
3458
3459fi
3460
3461
3462test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3463$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3464as_fn_error $? "no acceptable C compiler found in \$PATH
3465See \`config.log' for more details" "$LINENO" 5; }
3466
3467# Provide some information about the compiler.
3468$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3469set X $ac_compile
3470ac_compiler=$2
3471for ac_option in --version -v -V -qversion; do
3472 { { ac_try="$ac_compiler $ac_option >&5"
3473case "(($ac_try" in
3474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3475 *) ac_try_echo=$ac_try;;
3476esac
3477eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3478$as_echo "$ac_try_echo"; } >&5
3479 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3480 ac_status=$?
3481 if test -s conftest.err; then
3482 sed '10a\
3483... rest of stderr output deleted ...
3484 10q' conftest.err >conftest.er1
3485 cat conftest.er1 >&5
3486 fi
3487 rm -f conftest.er1 conftest.err
3488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3489 test $ac_status = 0; }
3490done
3491
3492cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3493/* end confdefs.h. */
3494
3495int
3496main ()
3497{
3498
3499 ;
3500 return 0;
3501}
3502_ACEOF
3503ac_clean_files_save=$ac_clean_files
3504ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3505# Try to create an executable without -o first, disregard a.out.
3506# It will help us diagnose broken compilers, and finding out an intuition
3507# of exeext.
3508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3509$as_echo_n "checking whether the C compiler works... " >&6; }
3510ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3511
3512# The possible output files:
3513ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3514
3515ac_rmfiles=
3516for ac_file in $ac_files
3517do
3518 case $ac_file in
3519 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3520 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3521 esac
3522done
35fa52c0
DWT
3523rm -f $ac_rmfiles
3524
3525if { { ac_try="$ac_link_default"
3526case "(($ac_try" in
3527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3528 *) ac_try_echo=$ac_try;;
3529esac
3530eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3531$as_echo "$ac_try_echo"; } >&5
3532 (eval "$ac_link_default") 2>&5
3533 ac_status=$?
3534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3535 test $ac_status = 0; }; then :
3536 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3537# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3538# in a Makefile. We should not override ac_cv_exeext if it was cached,
3539# so that the user can short-circuit this test for compilers unknown to
3540# Autoconf.
3541for ac_file in $ac_files ''
3542do
3543 test -f "$ac_file" || continue
3544 case $ac_file in
3545 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3546 ;;
3547 [ab].out )
3548 # We found the default executable, but exeext='' is most
3549 # certainly right.
3550 break;;
3551 *.* )
3552 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3553 then :; else
3554 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3555 fi
3556 # We set ac_cv_exeext here because the later test for it is not
3557 # safe: cross compilers may not add the suffix if given an `-o'
3558 # argument, so we may need to know it at that point already.
3559 # Even if this section looks crufty: it has the advantage of
3560 # actually working.
3561 break;;
3562 * )
3563 break;;
3564 esac
3565done
3566test "$ac_cv_exeext" = no && ac_cv_exeext=
3567
3568else
3569 ac_file=''
3570fi
35fa52c0 3571if test -z "$ac_file"; then :
9c60689e
DWT
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3573$as_echo "no" >&6; }
3574$as_echo "$as_me: failed program was:" >&5
35fa52c0
DWT
3575sed 's/^/| /' conftest.$ac_ext >&5
3576
3577{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3578$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
a93f15c0 3579as_fn_error 77 "C compiler cannot create executables
ee134472 3580See \`config.log' for more details" "$LINENO" 5; }
9c60689e
DWT
3581else
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3583$as_echo "yes" >&6; }
35fa52c0 3584fi
a93f15c0
JF
3585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3586$as_echo_n "checking for C compiler default output file name... " >&6; }
9c60689e
DWT
3587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3588$as_echo "$ac_file" >&6; }
35fa52c0
DWT
3589ac_exeext=$ac_cv_exeext
3590
9c60689e 3591rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
35fa52c0 3592ac_clean_files=$ac_clean_files_save
35fa52c0
DWT
3593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3594$as_echo_n "checking for suffix of executables... " >&6; }
3595if { { ac_try="$ac_link"
3596case "(($ac_try" in
3597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3598 *) ac_try_echo=$ac_try;;
3599esac
3600eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3601$as_echo "$ac_try_echo"; } >&5
3602 (eval "$ac_link") 2>&5
3603 ac_status=$?
3604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3605 test $ac_status = 0; }; then :
3606 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3607# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3608# work properly (i.e., refer to `conftest.exe'), while it won't with
3609# `rm'.
3610for ac_file in conftest.exe conftest conftest.*; do
3611 test -f "$ac_file" || continue
3612 case $ac_file in
3613 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3614 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3615 break;;
3616 * ) break;;
3617 esac
3618done
3619else
3620 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3621$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12833ad8 3622as_fn_error $? "cannot compute suffix of executables: cannot compile and link
ee134472 3623See \`config.log' for more details" "$LINENO" 5; }
35fa52c0 3624fi
9c60689e 3625rm -f conftest conftest$ac_cv_exeext
35fa52c0
DWT
3626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3627$as_echo "$ac_cv_exeext" >&6; }
3628
3629rm -f conftest.$ac_ext
3630EXEEXT=$ac_cv_exeext
3631ac_exeext=$EXEEXT
9c60689e
DWT
3632cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3633/* end confdefs.h. */
3634#include <stdio.h>
3635int
3636main ()
3637{
3638FILE *f = fopen ("conftest.out", "w");
3639 return ferror (f) || fclose (f) != 0;
3640
3641 ;
3642 return 0;
3643}
3644_ACEOF
3645ac_clean_files="$ac_clean_files conftest.out"
3646# Check that the compiler produces executables we can run. If not, either
3647# the compiler is broken, or we cross compile.
3648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3649$as_echo_n "checking whether we are cross compiling... " >&6; }
3650if test "$cross_compiling" != yes; then
3651 { { ac_try="$ac_link"
3652case "(($ac_try" in
3653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3654 *) ac_try_echo=$ac_try;;
3655esac
3656eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3657$as_echo "$ac_try_echo"; } >&5
3658 (eval "$ac_link") 2>&5
3659 ac_status=$?
3660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3661 test $ac_status = 0; }
3662 if { ac_try='./conftest$ac_cv_exeext'
3663 { { case "(($ac_try" in
3664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3665 *) ac_try_echo=$ac_try;;
3666esac
3667eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3668$as_echo "$ac_try_echo"; } >&5
3669 (eval "$ac_try") 2>&5
3670 ac_status=$?
3671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3672 test $ac_status = 0; }; }; then
3673 cross_compiling=no
3674 else
3675 if test "$cross_compiling" = maybe; then
3676 cross_compiling=yes
3677 else
3678 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3679$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
a93f15c0 3680as_fn_error $? "cannot run C compiled programs.
9c60689e 3681If you meant to cross compile, use \`--host'.
ee134472 3682See \`config.log' for more details" "$LINENO" 5; }
9c60689e
DWT
3683 fi
3684 fi
3685fi
3686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3687$as_echo "$cross_compiling" >&6; }
3688
3689rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3690ac_clean_files=$ac_clean_files_save
35fa52c0
DWT
3691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3692$as_echo_n "checking for suffix of object files... " >&6; }
ee134472 3693if ${ac_cv_objext+:} false; then :
35fa52c0
DWT
3694 $as_echo_n "(cached) " >&6
3695else
3696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3697/* end confdefs.h. */
3698
3699int
3700main ()
3701{
3702
3703 ;
3704 return 0;
3705}
3706_ACEOF
3707rm -f conftest.o conftest.obj
3708if { { ac_try="$ac_compile"
3709case "(($ac_try" in
3710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3711 *) ac_try_echo=$ac_try;;
3712esac
3713eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3714$as_echo "$ac_try_echo"; } >&5
3715 (eval "$ac_compile") 2>&5
3716 ac_status=$?
3717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3718 test $ac_status = 0; }; then :
3719 for ac_file in conftest.o conftest.obj conftest.*; do
3720 test -f "$ac_file" || continue;
3721 case $ac_file in
3722 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3723 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3724 break;;
3725 esac
3726done
3727else
3728 $as_echo "$as_me: failed program was:" >&5
3729sed 's/^/| /' conftest.$ac_ext >&5
3730
3731{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3732$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12833ad8 3733as_fn_error $? "cannot compute suffix of object files: cannot compile
ee134472 3734See \`config.log' for more details" "$LINENO" 5; }
35fa52c0
DWT
3735fi
3736rm -f conftest.$ac_cv_objext conftest.$ac_ext
3737fi
3738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3739$as_echo "$ac_cv_objext" >&6; }
3740OBJEXT=$ac_cv_objext
3741ac_objext=$OBJEXT
a93f15c0
JF
3742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3743$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3744if ${ac_cv_c_compiler_gnu+:} false; then :
35fa52c0
DWT
3745 $as_echo_n "(cached) " >&6
3746else
3747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3748/* end confdefs.h. */
3749
3750int
3751main ()
3752{
3753#ifndef __GNUC__
3754 choke me
3755#endif
3756
3757 ;
3758 return 0;
3759}
3760_ACEOF
a93f15c0 3761if ac_fn_c_try_compile "$LINENO"; then :
35fa52c0
DWT
3762 ac_compiler_gnu=yes
3763else
3764 ac_compiler_gnu=no
3765fi
3766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a93f15c0 3767ac_cv_c_compiler_gnu=$ac_compiler_gnu
35fa52c0
DWT
3768
3769fi
a93f15c0
JF
3770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3771$as_echo "$ac_cv_c_compiler_gnu" >&6; }
35fa52c0 3772if test $ac_compiler_gnu = yes; then
a93f15c0 3773 GCC=yes
35fa52c0 3774else
a93f15c0 3775 GCC=
35fa52c0 3776fi
a93f15c0
JF
3777ac_test_CFLAGS=${CFLAGS+set}
3778ac_save_CFLAGS=$CFLAGS
3779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3780$as_echo_n "checking whether $CC accepts -g... " >&6; }
3781if ${ac_cv_prog_cc_g+:} false; then :
35fa52c0
DWT
3782 $as_echo_n "(cached) " >&6
3783else
a93f15c0
JF
3784 ac_save_c_werror_flag=$ac_c_werror_flag
3785 ac_c_werror_flag=yes
3786 ac_cv_prog_cc_g=no
3787 CFLAGS="-g"
35fa52c0
DWT
3788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3789/* end confdefs.h. */
3790
3791int
3792main ()
3793{
3794
3795 ;
3796 return 0;
3797}
3798_ACEOF
a93f15c0
JF
3799if ac_fn_c_try_compile "$LINENO"; then :
3800 ac_cv_prog_cc_g=yes
35fa52c0 3801else
a93f15c0 3802 CFLAGS=""
35fa52c0
DWT
3803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3804/* end confdefs.h. */
3805
3806int
3807main ()
3808{
3809
3810 ;
3811 return 0;
3812}
3813_ACEOF
a93f15c0 3814if ac_fn_c_try_compile "$LINENO"; then :
35fa52c0
DWT
3815
3816else
a93f15c0
JF
3817 ac_c_werror_flag=$ac_save_c_werror_flag
3818 CFLAGS="-g"
35fa52c0
DWT
3819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3820/* end confdefs.h. */
3821
3822int
3823main ()
3824{
3825
3826 ;
3827 return 0;
3828}
3829_ACEOF
a93f15c0
JF
3830if ac_fn_c_try_compile "$LINENO"; then :
3831 ac_cv_prog_cc_g=yes
35fa52c0
DWT
3832fi
3833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3834fi
3835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3836fi
3837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a93f15c0 3838 ac_c_werror_flag=$ac_save_c_werror_flag
35fa52c0 3839fi
a93f15c0
JF
3840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3841$as_echo "$ac_cv_prog_cc_g" >&6; }
3842if test "$ac_test_CFLAGS" = set; then
3843 CFLAGS=$ac_save_CFLAGS
3844elif test $ac_cv_prog_cc_g = yes; then
3845 if test "$GCC" = yes; then
3846 CFLAGS="-g -O2"
35fa52c0 3847 else
a93f15c0 3848 CFLAGS="-g"
35fa52c0
DWT
3849 fi
3850else
a93f15c0
JF
3851 if test "$GCC" = yes; then
3852 CFLAGS="-O2"
35fa52c0 3853 else
a93f15c0 3854 CFLAGS=
35fa52c0
DWT
3855 fi
3856fi
a93f15c0
JF
3857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3858$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3859if ${ac_cv_prog_cc_c89+:} false; then :
3860 $as_echo_n "(cached) " >&6
3861else
3862 ac_cv_prog_cc_c89=no
3863ac_save_CC=$CC
3864cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3865/* end confdefs.h. */
3866#include <stdarg.h>
3867#include <stdio.h>
3868struct stat;
3869/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3870struct buf { int x; };
3871FILE * (*rcsopen) (struct buf *, struct stat *, int);
3872static char *e (p, i)
3873 char **p;
3874 int i;
3875{
3876 return p[i];
3877}
3878static char *f (char * (*g) (char **, int), char **p, ...)
3879{
3880 char *s;
3881 va_list v;
3882 va_start (v,p);
3883 s = g (p, va_arg (v,int));
3884 va_end (v);
3885 return s;
3886}
3887
3888/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3889 function prototypes and stuff, but not '\xHH' hex character constants.
3890 These don't provoke an error unfortunately, instead are silently treated
3891 as 'x'. The following induces an error, until -std is added to get
3892 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3893 array size at least. It's necessary to write '\x00'==0 to get something
3894 that's true only with -std. */
3895int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3896
3897/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3898 inside strings and character constants. */
3899#define FOO(x) 'x'
3900int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3901
3902int test (int i, double x);
3903struct s1 {int (*f) (int a);};
3904struct s2 {int (*f) (double a);};
3905int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3906int argc;
3907char **argv;
3908int
3909main ()
3910{
3911return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3912 ;
3913 return 0;
3914}
3915_ACEOF
3916for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3917 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3918do
3919 CC="$ac_save_CC $ac_arg"
3920 if ac_fn_c_try_compile "$LINENO"; then :
3921 ac_cv_prog_cc_c89=$ac_arg
3922fi
3923rm -f core conftest.err conftest.$ac_objext
3924 test "x$ac_cv_prog_cc_c89" != "xno" && break
3925done
3926rm -f conftest.$ac_ext
3927CC=$ac_save_CC
3928
3929fi
3930# AC_CACHE_VAL
3931case "x$ac_cv_prog_cc_c89" in
3932 x)
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3934$as_echo "none needed" >&6; } ;;
3935 xno)
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3937$as_echo "unsupported" >&6; } ;;
3938 *)
3939 CC="$CC $ac_cv_prog_cc_c89"
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3941$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3942esac
3943if test "x$ac_cv_prog_cc_c89" != xno; then :
3944
3945fi
3946
3947ac_ext=c
3948ac_cpp='$CPP $CPPFLAGS'
3949ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3950ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3951ac_compiler_gnu=$ac_cv_c_compiler_gnu
3952
3953ac_ext=c
3954ac_cpp='$CPP $CPPFLAGS'
3955ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3956ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3957ac_compiler_gnu=$ac_cv_c_compiler_gnu
3958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3959$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3960if ${am_cv_prog_cc_c_o+:} false; then :
3961 $as_echo_n "(cached) " >&6
3962else
3963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3964/* end confdefs.h. */
3965
3966int
3967main ()
3968{
3969
3970 ;
3971 return 0;
3972}
3973_ACEOF
3974 # Make sure it works both with $CC and with simple cc.
3975 # Following AC_PROG_CC_C_O, we do the test twice because some
3976 # compilers refuse to overwrite an existing .o file with -o,
3977 # though they will create one.
3978 am_cv_prog_cc_c_o=yes
3979 for am_i in 1 2; do
3980 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3981 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3982 ac_status=$?
3983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3984 (exit $ac_status); } \
3985 && test -f conftest2.$ac_objext; then
3986 : OK
3987 else
3988 am_cv_prog_cc_c_o=no
3989 break
3990 fi
3991 done
3992 rm -f core conftest*
3993 unset am_i
3994fi
3995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3996$as_echo "$am_cv_prog_cc_c_o" >&6; }
3997if test "$am_cv_prog_cc_c_o" != yes; then
3998 # Losing compiler, so override with the script.
3999 # FIXME: It is wrong to rewrite CC.
4000 # But if we don't then we get into trouble of one sort or another.
4001 # A longer-term fix would be to have automake use am__CC in this case,
4002 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4003 CC="$am_aux_dir/compile $CC"
4004fi
a243b558
JF
4005ac_ext=c
4006ac_cpp='$CPP $CPPFLAGS'
4007ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4008ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4009ac_compiler_gnu=$ac_cv_c_compiler_gnu
a93f15c0 4010
a243b558 4011DEPDIR="${am__leading_dot}deps"
35fa52c0 4012
a243b558 4013ac_config_commands="$ac_config_commands depfiles"
35fa52c0 4014
35fa52c0 4015
a243b558
JF
4016am_make=${MAKE-make}
4017cat > confinc << 'END'
4018am__doit:
4019 @echo this is the am__doit target
4020.PHONY: am__doit
4021END
4022# If we don't find an include directive, just comment out the code.
4023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4024$as_echo_n "checking for style of include used by $am_make... " >&6; }
4025am__include="#"
4026am__quote=
4027_am_result=none
4028# First try GNU make style include.
4029echo "include confinc" > confmf
4030# Ignore all kinds of additional output from 'make'.
4031case `$am_make -s -f confmf 2> /dev/null` in #(
4032*the\ am__doit\ target*)
4033 am__include=include
4034 am__quote=
4035 _am_result=GNU
4036 ;;
4037esac
4038# Now try BSD make style include.
4039if test "$am__include" = "#"; then
4040 echo '.include "confinc"' > confmf
4041 case `$am_make -s -f confmf 2> /dev/null` in #(
4042 *the\ am__doit\ target*)
4043 am__include=.include
4044 am__quote="\""
4045 _am_result=BSD
4046 ;;
4047 esac
35fa52c0 4048fi
35fa52c0 4049
a243b558
JF
4050
4051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4052$as_echo "$_am_result" >&6; }
4053rm -f confinc confmf
4054
4055# Check whether --enable-dependency-tracking was given.
4056if test "${enable_dependency_tracking+set}" = set; then :
4057 enableval=$enable_dependency_tracking;
35fa52c0 4058fi
35fa52c0 4059
a243b558
JF
4060if test "x$enable_dependency_tracking" != xno; then
4061 am_depcomp="$ac_aux_dir/depcomp"
4062 AMDEPBACKSLASH='\'
4063 am__nodep='_no'
4064fi
4065 if test "x$enable_dependency_tracking" != xno; then
4066 AMDEP_TRUE=
4067 AMDEP_FALSE='#'
4068else
4069 AMDEP_TRUE='#'
4070 AMDEP_FALSE=
35fa52c0
DWT
4071fi
4072
35fa52c0 4073
a243b558 4074
a93f15c0 4075depcc="$CC" am_compiler_list=
66170b30
JF
4076
4077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4078$as_echo_n "checking dependency style of $depcc... " >&6; }
a93f15c0 4079if ${am_cv_CC_dependencies_compiler_type+:} false; then :
66170b30
JF
4080 $as_echo_n "(cached) " >&6
4081else
4082 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4083 # We make a subdir and do the tests there. Otherwise we can end up
4084 # making bogus files that we don't know about and never remove. For
4085 # instance it was reported that on HP-UX the gcc test will end up
4086 # making a dummy file named 'D' -- because '-MD' means "put the output
4087 # in D".
4088 rm -rf conftest.dir
4089 mkdir conftest.dir
4090 # Copy depcomp to subdir because otherwise we won't find it if we're
4091 # using a relative directory.
4092 cp "$am_depcomp" conftest.dir
4093 cd conftest.dir
4094 # We will build objects and dependencies in a subdirectory because
4095 # it helps to detect inapplicable dependency modes. For instance
4096 # both Tru64's cc and ICC support -MD to output dependencies as a
4097 # side effect of compilation, but ICC will put the dependencies in
4098 # the current directory while Tru64 will put them in the object
4099 # directory.
4100 mkdir sub
4101
a93f15c0 4102 am_cv_CC_dependencies_compiler_type=none
66170b30
JF
4103 if test "$am_compiler_list" = ""; then
4104 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4105 fi
4106 am__universal=false
4107 case " $depcc " in #(
4108 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4109 esac
4110
4111 for depmode in $am_compiler_list; do
4112 # Setup a source with many dependencies, because some compilers
4113 # like to wrap large dependency lists on column 80 (with \), and
4114 # we should not choose a depcomp mode which is confused by this.
4115 #
4116 # We need to recreate these files for each test, as the compiler may
4117 # overwrite some of them when testing with obscure command lines.
4118 # This happens at least with the AIX C compiler.
4119 : > sub/conftest.c
4120 for i in 1 2 3 4 5 6; do
4121 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4122 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4123 # Solaris 10 /bin/sh.
4124 echo '/* dummy */' > sub/conftst$i.h
4125 done
4126 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4127
4128 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4129 # mode. It turns out that the SunPro C++ compiler does not properly
4130 # handle '-M -o', and we need to detect this. Also, some Intel
4131 # versions had trouble with output in subdirs.
4132 am__obj=sub/conftest.${OBJEXT-o}
4133 am__minus_obj="-o $am__obj"
4134 case $depmode in
4135 gcc)
4136 # This depmode causes a compiler race in universal mode.
4137 test "$am__universal" = false || continue
4138 ;;
4139 nosideeffect)
4140 # After this tag, mechanisms are not by side-effect, so they'll
4141 # only be used when explicitly requested.
4142 if test "x$enable_dependency_tracking" = xyes; then
4143 continue
4144 else
4145 break
4146 fi
4147 ;;
4148 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4149 # This compiler won't grok '-c -o', but also, the minuso test has
4150 # not run yet. These depmodes are late enough in the game, and
4151 # so weak that their functioning should not be impacted.
4152 am__obj=conftest.${OBJEXT-o}
4153 am__minus_obj=
4154 ;;
4155 none) break ;;
4156 esac
4157 if depmode=$depmode \
4158 source=sub/conftest.c object=$am__obj \
4159 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4160 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4161 >/dev/null 2>conftest.err &&
4162 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4163 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4164 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4165 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4166 # icc doesn't choke on unknown options, it will just issue warnings
4167 # or remarks (even with -Werror). So we grep stderr for any message
4168 # that says an option was ignored or not supported.
4169 # When given -MP, icc 7.0 and 7.1 complain thusly:
4170 # icc: Command line warning: ignoring option '-M'; no argument required
4171 # The diagnosis changed in icc 8.0:
4172 # icc: Command line remark: option '-MP' not supported
4173 if (grep 'ignoring option' conftest.err ||
4174 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
a93f15c0 4175 am_cv_CC_dependencies_compiler_type=$depmode
66170b30
JF
4176 break
4177 fi
4178 fi
4179 done
4180
4181 cd ..
4182 rm -rf conftest.dir
4183else
a93f15c0 4184 am_cv_CC_dependencies_compiler_type=none
66170b30
JF
4185fi
4186
4187fi
a93f15c0
JF
4188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4189$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4190CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
66170b30
JF
4191
4192 if
4193 test "x$enable_dependency_tracking" != xno \
a93f15c0
JF
4194 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4195 am__fastdepCC_TRUE=
4196 am__fastdepCC_FALSE='#'
66170b30 4197else
a93f15c0
JF
4198 am__fastdepCC_TRUE='#'
4199 am__fastdepCC_FALSE=
66170b30
JF
4200fi
4201
4202
a93f15c0
JF
4203ac_ext=cpp
4204ac_cpp='$CXXCPP $CPPFLAGS'
4205ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4206ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4207ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4208if test -z "$CXX"; then
4209 if test -n "$CCC"; then
4210 CXX=$CCC
4211 else
4212 if test -n "$ac_tool_prefix"; then
4213 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
a243b558
JF
4214 do
4215 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4216set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4218$as_echo_n "checking for $ac_word... " >&6; }
a93f15c0 4219if ${ac_cv_prog_CXX+:} false; then :
35fa52c0
DWT
4220 $as_echo_n "(cached) " >&6
4221else
a93f15c0
JF
4222 if test -n "$CXX"; then
4223 ac_cv_prog_CXX="$CXX" # Let the user override the test.
a243b558
JF
4224else
4225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4226for as_dir in $PATH
4227do
35fa52c0
DWT
4228 IFS=$as_save_IFS
4229 test -z "$as_dir" && as_dir=.
4230 for ac_exec_ext in '' $ac_executable_extensions; do
a243b558 4231 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a93f15c0 4232 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
a243b558
JF
4233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4234 break 2
4235 fi
4236done
9c60689e
DWT
4237 done
4238IFS=$as_save_IFS
35fa52c0 4239
9c60689e 4240fi
a243b558 4241fi
a93f15c0
JF
4242CXX=$ac_cv_prog_CXX
4243if test -n "$CXX"; then
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4245$as_echo "$CXX" >&6; }
a243b558
JF
4246else
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4248$as_echo "no" >&6; }
4249fi
35fa52c0 4250
35fa52c0 4251
a93f15c0 4252 test -n "$CXX" && break
a243b558
JF
4253 done
4254fi
a93f15c0
JF
4255if test -z "$CXX"; then
4256 ac_ct_CXX=$CXX
4257 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
a243b558
JF
4258do
4259 # Extract the first word of "$ac_prog", so it can be a program name with args.
4260set dummy $ac_prog; ac_word=$2
4261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4262$as_echo_n "checking for $ac_word... " >&6; }
a93f15c0 4263if ${ac_cv_prog_ac_ct_CXX+:} false; then :
9c60689e
DWT
4264 $as_echo_n "(cached) " >&6
4265else
a93f15c0
JF
4266 if test -n "$ac_ct_CXX"; then
4267 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
a243b558
JF
4268else
4269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4270for as_dir in $PATH
9c60689e
DWT
4271do
4272 IFS=$as_save_IFS
4273 test -z "$as_dir" && as_dir=.
9c60689e 4274 for ac_exec_ext in '' $ac_executable_extensions; do
a243b558 4275 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a93f15c0 4276 ac_cv_prog_ac_ct_CXX="$ac_prog"
a243b558
JF
4277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4278 break 2
4279 fi
4280done
9c60689e
DWT
4281 done
4282IFS=$as_save_IFS
a243b558
JF
4283
4284fi
4285fi
a93f15c0
JF
4286ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4287if test -n "$ac_ct_CXX"; then
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4289$as_echo "$ac_ct_CXX" >&6; }
9c60689e 4290else
a243b558
JF
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4292$as_echo "no" >&6; }
9c60689e 4293fi
6b66678a
DWT
4294
4295
a93f15c0 4296 test -n "$ac_ct_CXX" && break
a243b558 4297done
6b66678a 4298
a93f15c0
JF
4299 if test "x$ac_ct_CXX" = x; then
4300 CXX="g++"
a243b558
JF
4301 else
4302 case $cross_compiling:$ac_tool_warned in
4303yes:)
4304{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4305$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4306ac_tool_warned=yes ;;
9c60689e 4307esac
a93f15c0 4308 CXX=$ac_ct_CXX
9c60689e 4309 fi
9c60689e 4310fi
6b66678a 4311
a93f15c0
JF
4312 fi
4313fi
a243b558 4314# Provide some information about the compiler.
a93f15c0 4315$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
a243b558
JF
4316set X $ac_compile
4317ac_compiler=$2
4318for ac_option in --version -v -V -qversion; do
4319 { { ac_try="$ac_compiler $ac_option >&5"
4320case "(($ac_try" in
4321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4322 *) ac_try_echo=$ac_try;;
4323esac
4324eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4325$as_echo "$ac_try_echo"; } >&5
4326 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4327 ac_status=$?
4328 if test -s conftest.err; then
4329 sed '10a\
4330... rest of stderr output deleted ...
4331 10q' conftest.err >conftest.er1
4332 cat conftest.er1 >&5
4333 fi
4334 rm -f conftest.er1 conftest.err
4335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4336 test $ac_status = 0; }
4337done
6b66678a 4338
a93f15c0
JF
4339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4340$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4341if ${ac_cv_cxx_compiler_gnu+:} false; then :
9c60689e 4342 $as_echo_n "(cached) " >&6
6b66678a 4343else
a243b558
JF
4344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4345/* end confdefs.h. */
6b66678a 4346
a243b558
JF
4347int
4348main ()
4349{
4350#ifndef __GNUC__
4351 choke me
4352#endif
4353
4354 ;
4355 return 0;
4356}
4357_ACEOF
a93f15c0 4358if ac_fn_cxx_try_compile "$LINENO"; then :
a243b558 4359 ac_compiler_gnu=yes
9c60689e 4360else
a243b558 4361 ac_compiler_gnu=no
6b66678a 4362fi
a243b558 4363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a93f15c0 4364ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6b66678a
DWT
4365
4366fi
a93f15c0
JF
4367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4368$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
a243b558 4369if test $ac_compiler_gnu = yes; then
a93f15c0 4370 GXX=yes
a243b558 4371else
a93f15c0 4372 GXX=
a243b558 4373fi
a93f15c0
JF
4374ac_test_CXXFLAGS=${CXXFLAGS+set}
4375ac_save_CXXFLAGS=$CXXFLAGS
4376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4377$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4378if ${ac_cv_prog_cxx_g+:} false; then :
a243b558
JF
4379 $as_echo_n "(cached) " >&6
4380else
a93f15c0
JF
4381 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4382 ac_cxx_werror_flag=yes
4383 ac_cv_prog_cxx_g=no
4384 CXXFLAGS="-g"
a243b558
JF
4385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4386/* end confdefs.h. */
309b0535 4387
a243b558
JF
4388int
4389main ()
4390{
309b0535 4391
a243b558
JF
4392 ;
4393 return 0;
4394}
4395_ACEOF
a93f15c0
JF
4396if ac_fn_cxx_try_compile "$LINENO"; then :
4397 ac_cv_prog_cxx_g=yes
a243b558 4398else
a93f15c0 4399 CXXFLAGS=""
a243b558
JF
4400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4401/* end confdefs.h. */
309b0535 4402
a243b558
JF
4403int
4404main ()
4405{
309b0535 4406
a243b558
JF
4407 ;
4408 return 0;
4409}
4410_ACEOF
a93f15c0 4411if ac_fn_cxx_try_compile "$LINENO"; then :
309b0535 4412
a243b558 4413else
a93f15c0
JF
4414 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4415 CXXFLAGS="-g"
a243b558
JF
4416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4417/* end confdefs.h. */
309b0535 4418
a243b558
JF
4419int
4420main ()
4421{
309b0535 4422
a243b558
JF
4423 ;
4424 return 0;
4425}
4426_ACEOF
a93f15c0
JF
4427if ac_fn_cxx_try_compile "$LINENO"; then :
4428 ac_cv_prog_cxx_g=yes
9c60689e 4429fi
a243b558 4430rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9c60689e 4431fi
a243b558 4432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9c60689e 4433fi
a243b558 4434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a93f15c0 4435 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
9c60689e 4436fi
a93f15c0
JF
4437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4438$as_echo "$ac_cv_prog_cxx_g" >&6; }
4439if test "$ac_test_CXXFLAGS" = set; then
4440 CXXFLAGS=$ac_save_CXXFLAGS
4441elif test $ac_cv_prog_cxx_g = yes; then
4442 if test "$GXX" = yes; then
4443 CXXFLAGS="-g -O2"
a243b558 4444 else
a93f15c0 4445 CXXFLAGS="-g"
a243b558 4446 fi
9c60689e 4447else
a93f15c0
JF
4448 if test "$GXX" = yes; then
4449 CXXFLAGS="-O2"
a243b558 4450 else
a93f15c0 4451 CXXFLAGS=
a243b558 4452 fi
9c60689e 4453fi
a243b558
JF
4454ac_ext=c
4455ac_cpp='$CPP $CPPFLAGS'
4456ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4457ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4458ac_compiler_gnu=$ac_cv_c_compiler_gnu
309b0535 4459
a93f15c0 4460depcc="$CXX" am_compiler_list=
309b0535 4461
a243b558
JF
4462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4463$as_echo_n "checking dependency style of $depcc... " >&6; }
a93f15c0 4464if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
a243b558
JF
4465 $as_echo_n "(cached) " >&6
4466else
4467 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4468 # We make a subdir and do the tests there. Otherwise we can end up
4469 # making bogus files that we don't know about and never remove. For
4470 # instance it was reported that on HP-UX the gcc test will end up
4471 # making a dummy file named 'D' -- because '-MD' means "put the output
4472 # in D".
4473 rm -rf conftest.dir
4474 mkdir conftest.dir
4475 # Copy depcomp to subdir because otherwise we won't find it if we're
4476 # using a relative directory.
4477 cp "$am_depcomp" conftest.dir
4478 cd conftest.dir
4479 # We will build objects and dependencies in a subdirectory because
4480 # it helps to detect inapplicable dependency modes. For instance
4481 # both Tru64's cc and ICC support -MD to output dependencies as a
4482 # side effect of compilation, but ICC will put the dependencies in
4483 # the current directory while Tru64 will put them in the object
4484 # directory.
4485 mkdir sub
309b0535 4486
a93f15c0 4487 am_cv_CXX_dependencies_compiler_type=none
a243b558
JF
4488 if test "$am_compiler_list" = ""; then
4489 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4490 fi
4491 am__universal=false
a93f15c0
JF
4492 case " $depcc " in #(
4493 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4494 esac
9c60689e 4495
a243b558
JF
4496 for depmode in $am_compiler_list; do
4497 # Setup a source with many dependencies, because some compilers
4498 # like to wrap large dependency lists on column 80 (with \), and
4499 # we should not choose a depcomp mode which is confused by this.
4500 #
4501 # We need to recreate these files for each test, as the compiler may
4502 # overwrite some of them when testing with obscure command lines.
4503 # This happens at least with the AIX C compiler.
4504 : > sub/conftest.c
4505 for i in 1 2 3 4 5 6; do
4506 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4507 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4508 # Solaris 10 /bin/sh.
4509 echo '/* dummy */' > sub/conftst$i.h
4510 done
4511 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
9c60689e 4512
a243b558
JF
4513 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4514 # mode. It turns out that the SunPro C++ compiler does not properly
4515 # handle '-M -o', and we need to detect this. Also, some Intel
4516 # versions had trouble with output in subdirs.
4517 am__obj=sub/conftest.${OBJEXT-o}
4518 am__minus_obj="-o $am__obj"
4519 case $depmode in
4520 gcc)
4521 # This depmode causes a compiler race in universal mode.
4522 test "$am__universal" = false || continue
4523 ;;
4524 nosideeffect)
4525 # After this tag, mechanisms are not by side-effect, so they'll
4526 # only be used when explicitly requested.
4527 if test "x$enable_dependency_tracking" = xyes; then
4528 continue
4529 else
4530 break
309b0535 4531 fi
a243b558
JF
4532 ;;
4533 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4534 # This compiler won't grok '-c -o', but also, the minuso test has
4535 # not run yet. These depmodes are late enough in the game, and
4536 # so weak that their functioning should not be impacted.
4537 am__obj=conftest.${OBJEXT-o}
4538 am__minus_obj=
4539 ;;
4540 none) break ;;
4541 esac
4542 if depmode=$depmode \
4543 source=sub/conftest.c object=$am__obj \
4544 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4545 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4546 >/dev/null 2>conftest.err &&
4547 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4548 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4549 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4550 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4551 # icc doesn't choke on unknown options, it will just issue warnings
4552 # or remarks (even with -Werror). So we grep stderr for any message
4553 # that says an option was ignored or not supported.
4554 # When given -MP, icc 7.0 and 7.1 complain thusly:
4555 # icc: Command line warning: ignoring option '-M'; no argument required
4556 # The diagnosis changed in icc 8.0:
4557 # icc: Command line remark: option '-MP' not supported
4558 if (grep 'ignoring option' conftest.err ||
4559 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
a93f15c0 4560 am_cv_CXX_dependencies_compiler_type=$depmode
a243b558
JF
4561 break
4562 fi
4563 fi
309b0535 4564 done
a243b558
JF
4565
4566 cd ..
4567 rm -rf conftest.dir
4568else
a93f15c0 4569 am_cv_CXX_dependencies_compiler_type=none
9c60689e 4570fi
a243b558 4571
9c60689e 4572fi
a93f15c0
JF
4573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4574$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4575CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
a243b558
JF
4576
4577 if
4578 test "x$enable_dependency_tracking" != xno \
a93f15c0
JF
4579 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4580 am__fastdepCXX_TRUE=
4581 am__fastdepCXX_FALSE='#'
9c60689e 4582else
a93f15c0
JF
4583 am__fastdepCXX_TRUE='#'
4584 am__fastdepCXX_FALSE=
a243b558
JF
4585fi
4586
4587
a93f15c0
JF
4588ac_ext=mm
4589ac_cpp='$OBJCXXCPP $CPPFLAGS'
4590ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4591ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4592ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
a243b558 4593if test -n "$ac_tool_prefix"; then
a93f15c0 4594 for ac_prog in g++ objc++ objcxx c++ CXX
a243b558
JF
4595 do
4596 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4597set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4599$as_echo_n "checking for $ac_word... " >&6; }
a93f15c0 4600if ${ac_cv_prog_OBJCXX+:} false; then :
9c60689e
DWT
4601 $as_echo_n "(cached) " >&6
4602else
a93f15c0
JF
4603 if test -n "$OBJCXX"; then
4604 ac_cv_prog_OBJCXX="$OBJCXX" # Let the user override the test.
a243b558
JF
4605else
4606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4607for as_dir in $PATH
4608do
4609 IFS=$as_save_IFS
4610 test -z "$as_dir" && as_dir=.
4611 for ac_exec_ext in '' $ac_executable_extensions; do
4612 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a93f15c0 4613 ac_cv_prog_OBJCXX="$ac_tool_prefix$ac_prog"
a243b558
JF
4614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4615 break 2
9c60689e 4616 fi
a243b558
JF
4617done
4618 done
4619IFS=$as_save_IFS
9c60689e 4620
a243b558
JF
4621fi
4622fi
a93f15c0
JF
4623OBJCXX=$ac_cv_prog_OBJCXX
4624if test -n "$OBJCXX"; then
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCXX" >&5
4626$as_echo "$OBJCXX" >&6; }
35fa52c0 4627else
a243b558
JF
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4629$as_echo "no" >&6; }
35fa52c0 4630fi
9c60689e 4631
a243b558 4632
a93f15c0 4633 test -n "$OBJCXX" && break
a243b558
JF
4634 done
4635fi
a93f15c0
JF
4636if test -z "$OBJCXX"; then
4637 ac_ct_OBJCXX=$OBJCXX
4638 for ac_prog in g++ objc++ objcxx c++ CXX
a243b558
JF
4639do
4640 # Extract the first word of "$ac_prog", so it can be a program name with args.
4641set dummy $ac_prog; ac_word=$2
4642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4643$as_echo_n "checking for $ac_word... " >&6; }
a93f15c0 4644if ${ac_cv_prog_ac_ct_OBJCXX+:} false; then :
35fa52c0
DWT
4645 $as_echo_n "(cached) " >&6
4646else
a93f15c0
JF
4647 if test -n "$ac_ct_OBJCXX"; then
4648 ac_cv_prog_ac_ct_OBJCXX="$ac_ct_OBJCXX" # Let the user override the test.
a243b558
JF
4649else
4650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4651for as_dir in $PATH
4652do
4653 IFS=$as_save_IFS
4654 test -z "$as_dir" && as_dir=.
4655 for ac_exec_ext in '' $ac_executable_extensions; do
4656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a93f15c0 4657 ac_cv_prog_ac_ct_OBJCXX="$ac_prog"
a243b558
JF
4658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4659 break 2
4660 fi
4661done
4662 done
4663IFS=$as_save_IFS
9c60689e 4664
a243b558
JF
4665fi
4666fi
a93f15c0
JF
4667ac_ct_OBJCXX=$ac_cv_prog_ac_ct_OBJCXX
4668if test -n "$ac_ct_OBJCXX"; then
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCXX" >&5
4670$as_echo "$ac_ct_OBJCXX" >&6; }
a243b558
JF
4671else
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4673$as_echo "no" >&6; }
4674fi
35fa52c0 4675
35fa52c0 4676
a93f15c0 4677 test -n "$ac_ct_OBJCXX" && break
a243b558 4678done
35fa52c0 4679
a93f15c0
JF
4680 if test "x$ac_ct_OBJCXX" = x; then
4681 OBJCXX="g++"
a243b558
JF
4682 else
4683 case $cross_compiling:$ac_tool_warned in
4684yes:)
4685{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4686$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4687ac_tool_warned=yes ;;
4688esac
a93f15c0 4689 OBJCXX=$ac_ct_OBJCXX
a243b558
JF
4690 fi
4691fi
ee134472 4692
a243b558 4693# Provide some information about the compiler.
a93f15c0 4694$as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C++ compiler version" >&5
a243b558
JF
4695set X $ac_compile
4696ac_compiler=$2
4697for ac_option in --version -v -V -qversion; do
4698 { { ac_try="$ac_compiler $ac_option >&5"
4699case "(($ac_try" in
4700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4701 *) ac_try_echo=$ac_try;;
4702esac
4703eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4704$as_echo "$ac_try_echo"; } >&5
4705 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4706 ac_status=$?
4707 if test -s conftest.err; then
4708 sed '10a\
4709... rest of stderr output deleted ...
4710 10q' conftest.err >conftest.er1
4711 cat conftest.er1 >&5
4712 fi
4713 rm -f conftest.er1 conftest.err
4714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4715 test $ac_status = 0; }
4716done
53ba6704 4717
a93f15c0
JF
4718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C++ compiler" >&5
4719$as_echo_n "checking whether we are using the GNU Objective C++ compiler... " >&6; }
4720if ${ac_cv_objcxx_compiler_gnu+:} false; then :
a243b558
JF
4721 $as_echo_n "(cached) " >&6
4722else
4723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4724/* end confdefs.h. */
35fa52c0 4725
a243b558
JF
4726int
4727main ()
4728{
4729#ifndef __GNUC__
4730 choke me
4731#endif
9c60689e 4732
a243b558
JF
4733 ;
4734 return 0;
4735}
4736_ACEOF
a93f15c0 4737if ac_fn_objcxx_try_compile "$LINENO"; then :
a243b558 4738 ac_compiler_gnu=yes
35fa52c0 4739else
a243b558 4740 ac_compiler_gnu=no
35fa52c0 4741fi
a243b558 4742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a93f15c0 4743ac_cv_objcxx_compiler_gnu=$ac_compiler_gnu
9c60689e 4744
a243b558 4745fi
a93f15c0
JF
4746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objcxx_compiler_gnu" >&5
4747$as_echo "$ac_cv_objcxx_compiler_gnu" >&6; }
a243b558 4748if test $ac_compiler_gnu = yes; then
a93f15c0 4749 GOBJCXX=yes
35fa52c0 4750else
a93f15c0 4751 GOBJCXX=
9c60689e 4752fi
a93f15c0
JF
4753ac_test_OBJCXXFLAGS=${OBJCXXFLAGS+set}
4754ac_save_OBJCXXFLAGS=$OBJCXXFLAGS
4755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJCXX accepts -g" >&5
4756$as_echo_n "checking whether $OBJCXX accepts -g... " >&6; }
4757if ${ac_cv_prog_objcxx_g+:} false; then :
a243b558
JF
4758 $as_echo_n "(cached) " >&6
4759else
a93f15c0
JF
4760 ac_save_objcxx_werror_flag=$ac_objcxx_werror_flag
4761 ac_objcxx_werror_flag=yes
4762 ac_cv_prog_objcxx_g=no
4763 OBJCXXFLAGS="-g"
a243b558
JF
4764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4765/* end confdefs.h. */
9c60689e 4766
a243b558
JF
4767int
4768main ()
4769{
9c60689e 4770
a243b558
JF
4771 ;
4772 return 0;
4773}
4774_ACEOF
a93f15c0
JF
4775if ac_fn_objcxx_try_compile "$LINENO"; then :
4776 ac_cv_prog_objcxx_g=yes
a243b558 4777else
a93f15c0 4778 OBJCXXFLAGS=""
a243b558
JF
4779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4780/* end confdefs.h. */
9c60689e 4781
a243b558
JF
4782int
4783main ()
4784{
9c60689e 4785
a243b558
JF
4786 ;
4787 return 0;
4788}
4789_ACEOF
a93f15c0 4790if ac_fn_objcxx_try_compile "$LINENO"; then :
9c60689e 4791
a243b558 4792else
a93f15c0
JF
4793 ac_objcxx_werror_flag=$ac_save_objcxx_werror_flag
4794 OBJCXXFLAGS="-g"
a243b558 4795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a93f15c0
JF
4796/* end confdefs.h. */
4797
a243b558
JF
4798int
4799main ()
4800{
a93f15c0 4801
a243b558
JF
4802 ;
4803 return 0;
4804}
4805_ACEOF
a93f15c0
JF
4806if ac_fn_objcxx_try_compile "$LINENO"; then :
4807 ac_cv_prog_objcxx_g=yes
a243b558 4808fi
a93f15c0 4809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35fa52c0 4810fi
a93f15c0
JF
4811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4812fi
4813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4814 ac_objcxx_werror_flag=$ac_save_objcx_werror_flag
4815fi
4816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objcxx_g" >&5
4817$as_echo "$ac_cv_prog_objcxx_g" >&6; }
4818if test "$ac_test_OBJCXXFLAGS" = set; then
4819 OBJCXXFLAGS=$ac_save_OBJCXXFLAGS
4820elif test $ac_cv_prog_objcxx_g = yes; then
4821 if test "$GOBJCXX" = yes; then
4822 OBJCXXFLAGS="-g -O2"
4823 else
4824 OBJCXXFLAGS="-g"
4825 fi
4826else
4827 if test "$GOBJCXX" = yes; then
4828 OBJCXXFLAGS="-O2"
4829 else
4830 OBJCXXFLAGS=
4831 fi
35fa52c0 4832fi
a243b558
JF
4833ac_ext=c
4834ac_cpp='$CPP $CPPFLAGS'
4835ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4836ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4837ac_compiler_gnu=$ac_cv_c_compiler_gnu
4838
a93f15c0 4839depcc="$OBJCXX" am_compiler_list='gcc3 gcc'
9c60689e 4840
a243b558
JF
4841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4842$as_echo_n "checking dependency style of $depcc... " >&6; }
a93f15c0 4843if ${am_cv_OBJCXX_dependencies_compiler_type+:} false; then :
35fa52c0
DWT
4844 $as_echo_n "(cached) " >&6
4845else
a243b558
JF
4846 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4847 # We make a subdir and do the tests there. Otherwise we can end up
4848 # making bogus files that we don't know about and never remove. For
4849 # instance it was reported that on HP-UX the gcc test will end up
4850 # making a dummy file named 'D' -- because '-MD' means "put the output
4851 # in D".
4852 rm -rf conftest.dir
4853 mkdir conftest.dir
4854 # Copy depcomp to subdir because otherwise we won't find it if we're
4855 # using a relative directory.
4856 cp "$am_depcomp" conftest.dir
4857 cd conftest.dir
4858 # We will build objects and dependencies in a subdirectory because
4859 # it helps to detect inapplicable dependency modes. For instance
4860 # both Tru64's cc and ICC support -MD to output dependencies as a
4861 # side effect of compilation, but ICC will put the dependencies in
4862 # the current directory while Tru64 will put them in the object
4863 # directory.
4864 mkdir sub
4865
a93f15c0 4866 am_cv_OBJCXX_dependencies_compiler_type=none
a243b558
JF
4867 if test "$am_compiler_list" = ""; then
4868 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4869 fi
4870 am__universal=false
a93f15c0 4871
a243b558
JF
4872
4873 for depmode in $am_compiler_list; do
4874 # Setup a source with many dependencies, because some compilers
4875 # like to wrap large dependency lists on column 80 (with \), and
4876 # we should not choose a depcomp mode which is confused by this.
4877 #
4878 # We need to recreate these files for each test, as the compiler may
4879 # overwrite some of them when testing with obscure command lines.
4880 # This happens at least with the AIX C compiler.
4881 : > sub/conftest.c
4882 for i in 1 2 3 4 5 6; do
4883 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4884 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4885 # Solaris 10 /bin/sh.
4886 echo '/* dummy */' > sub/conftst$i.h
4887 done
4888 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4889
4890 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4891 # mode. It turns out that the SunPro C++ compiler does not properly
4892 # handle '-M -o', and we need to detect this. Also, some Intel
4893 # versions had trouble with output in subdirs.
4894 am__obj=sub/conftest.${OBJEXT-o}
4895 am__minus_obj="-o $am__obj"
4896 case $depmode in
4897 gcc)
4898 # This depmode causes a compiler race in universal mode.
4899 test "$am__universal" = false || continue
4900 ;;
4901 nosideeffect)
4902 # After this tag, mechanisms are not by side-effect, so they'll
4903 # only be used when explicitly requested.
4904 if test "x$enable_dependency_tracking" = xyes; then
4905 continue
4906 else
4907 break
4908 fi
4909 ;;
4910 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4911 # This compiler won't grok '-c -o', but also, the minuso test has
4912 # not run yet. These depmodes are late enough in the game, and
4913 # so weak that their functioning should not be impacted.
4914 am__obj=conftest.${OBJEXT-o}
4915 am__minus_obj=
4916 ;;
4917 none) break ;;
4918 esac
4919 if depmode=$depmode \
4920 source=sub/conftest.c object=$am__obj \
4921 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4922 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4923 >/dev/null 2>conftest.err &&
4924 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4925 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4926 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4927 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4928 # icc doesn't choke on unknown options, it will just issue warnings
4929 # or remarks (even with -Werror). So we grep stderr for any message
4930 # that says an option was ignored or not supported.
4931 # When given -MP, icc 7.0 and 7.1 complain thusly:
4932 # icc: Command line warning: ignoring option '-M'; no argument required
4933 # The diagnosis changed in icc 8.0:
4934 # icc: Command line remark: option '-MP' not supported
4935 if (grep 'ignoring option' conftest.err ||
4936 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
a93f15c0 4937 am_cv_OBJCXX_dependencies_compiler_type=$depmode
a243b558
JF
4938 break
4939 fi
4940 fi
4941 done
9c60689e 4942
a243b558
JF
4943 cd ..
4944 rm -rf conftest.dir
4945else
a93f15c0 4946 am_cv_OBJCXX_dependencies_compiler_type=none
35fa52c0 4947fi
a243b558 4948
35fa52c0 4949fi
a93f15c0
JF
4950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_OBJCXX_dependencies_compiler_type" >&5
4951$as_echo "$am_cv_OBJCXX_dependencies_compiler_type" >&6; }
4952OBJCXXDEPMODE=depmode=$am_cv_OBJCXX_dependencies_compiler_type
a243b558
JF
4953
4954 if
4955 test "x$enable_dependency_tracking" != xno \
a93f15c0
JF
4956 && test "$am_cv_OBJCXX_dependencies_compiler_type" = gcc3; then
4957 am__fastdepOBJCXX_TRUE=
4958 am__fastdepOBJCXX_FALSE='#'
a243b558 4959else
a93f15c0
JF
4960 am__fastdepOBJCXX_TRUE='#'
4961 am__fastdepOBJCXX_FALSE=
a243b558
JF
4962fi
4963
4964
4965
a93f15c0 4966
a243b558
JF
4967if test -n "$ac_tool_prefix"; then
4968 for ac_prog in ar lib "link -lib"
4969 do
4970 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4971set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4973$as_echo_n "checking for $ac_word... " >&6; }
4974if ${ac_cv_prog_AR+:} false; then :
4975 $as_echo_n "(cached) " >&6
4976else
4977 if test -n "$AR"; then
4978 ac_cv_prog_AR="$AR" # Let the user override the test.
4979else
4980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4981for as_dir in $PATH
4982do
4983 IFS=$as_save_IFS
4984 test -z "$as_dir" && as_dir=.
4985 for ac_exec_ext in '' $ac_executable_extensions; do
4986 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4987 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4989 break 2
4990 fi
4991done
4992 done
4993IFS=$as_save_IFS
4994
4995fi
4996fi
4997AR=$ac_cv_prog_AR
4998if test -n "$AR"; then
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5000$as_echo "$AR" >&6; }
35fa52c0
DWT
5001else
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5003$as_echo "no" >&6; }
5004fi
9c60689e 5005
a243b558
JF
5006
5007 test -n "$AR" && break
5008 done
5009fi
5010if test -z "$AR"; then
5011 ac_ct_AR=$AR
5012 for ac_prog in ar lib "link -lib"
5013do
5014 # Extract the first word of "$ac_prog", so it can be a program name with args.
5015set dummy $ac_prog; ac_word=$2
5016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5017$as_echo_n "checking for $ac_word... " >&6; }
5018if ${ac_cv_prog_ac_ct_AR+:} false; then :
5019 $as_echo_n "(cached) " >&6
5020else
5021 if test -n "$ac_ct_AR"; then
5022 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5023else
5024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5025for as_dir in $PATH
5026do
5027 IFS=$as_save_IFS
5028 test -z "$as_dir" && as_dir=.
5029 for ac_exec_ext in '' $ac_executable_extensions; do
5030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5031 ac_cv_prog_ac_ct_AR="$ac_prog"
5032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5033 break 2
5034 fi
5035done
5036 done
5037IFS=$as_save_IFS
5038
5039fi
5040fi
5041ac_ct_AR=$ac_cv_prog_ac_ct_AR
5042if test -n "$ac_ct_AR"; then
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5044$as_echo "$ac_ct_AR" >&6; }
5045else
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5047$as_echo "no" >&6; }
5048fi
5049
5050
5051 test -n "$ac_ct_AR" && break
5052done
5053
5054 if test "x$ac_ct_AR" = x; then
5055 AR="false"
9c60689e
DWT
5056 else
5057 case $cross_compiling:$ac_tool_warned in
5058yes:)
5059{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5060$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5061ac_tool_warned=yes ;;
35fa52c0 5062esac
a243b558 5063 AR=$ac_ct_AR
9c60689e 5064 fi
a243b558
JF
5065fi
5066
5067: ${AR=ar}
5068
5069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5070$as_echo_n "checking the archiver ($AR) interface... " >&6; }
5071if ${am_cv_ar_interface+:} false; then :
5072 $as_echo_n "(cached) " >&6
9c60689e 5073else
a93f15c0
JF
5074 ac_ext=c
5075ac_cpp='$CPP $CPPFLAGS'
5076ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5077ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5078ac_compiler_gnu=$ac_cv_c_compiler_gnu
5079
5080 am_cv_ar_interface=ar
a243b558
JF
5081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5082/* end confdefs.h. */
5083int some_variable = 0;
5084_ACEOF
5085if ac_fn_c_try_compile "$LINENO"; then :
5086 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
5087 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5088 (eval $am_ar_try) 2>&5
5089 ac_status=$?
5090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5091 test $ac_status = 0; }
5092 if test "$ac_status" -eq 0; then
5093 am_cv_ar_interface=ar
5094 else
5095 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5096 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5097 (eval $am_ar_try) 2>&5
5098 ac_status=$?
5099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5100 test $ac_status = 0; }
5101 if test "$ac_status" -eq 0; then
5102 am_cv_ar_interface=lib
5103 else
5104 am_cv_ar_interface=unknown
5105 fi
5106 fi
5107 rm -f conftest.lib libconftest.a
5108
35fa52c0 5109fi
a243b558 5110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a93f15c0
JF
5111 ac_ext=c
5112ac_cpp='$CPP $CPPFLAGS'
5113ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5114ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5115ac_compiler_gnu=$ac_cv_c_compiler_gnu
35fa52c0 5116
a243b558
JF
5117fi
5118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5119$as_echo "$am_cv_ar_interface" >&6; }
35fa52c0 5120
a243b558
JF
5121case $am_cv_ar_interface in
5122ar)
5123 ;;
5124lib)
5125 # Microsoft lib, so override with the ar-lib wrapper script.
5126 # FIXME: It is wrong to rewrite AR.
5127 # But if we don't then we get into trouble of one sort or another.
5128 # A longer-term fix would be to have automake use am__AR in this case,
5129 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5130 # similar.
5131 AR="$am_aux_dir/ar-lib $AR"
5132 ;;
5133unknown)
5134 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
5135 ;;
5136esac
35fa52c0 5137
35fa52c0 5138
35fa52c0 5139
a243b558
JF
5140case `pwd` in
5141 *\ * | *\ *)
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5143$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5144esac
35fa52c0
DWT
5145
5146
5147
a243b558
JF
5148macro_version='2.4.2'
5149macro_revision='1.3337'
35fa52c0
DWT
5150
5151
5152
5153
5154
5155
5156
5157
5158
35fa52c0 5159
35fa52c0 5160
ee134472 5161
35fa52c0 5162
a243b558 5163ltmain="$ac_aux_dir/ltmain.sh"
35fa52c0 5164
a243b558
JF
5165# Make sure we can run config.sub.
5166$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5167 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
35fa52c0 5168
a243b558
JF
5169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5170$as_echo_n "checking build system type... " >&6; }
5171if ${ac_cv_build+:} false; then :
5172 $as_echo_n "(cached) " >&6
5173else
5174 ac_build_alias=$build_alias
5175test "x$ac_build_alias" = x &&
5176 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5177test "x$ac_build_alias" = x &&
5178 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5179ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5180 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
35fa52c0 5181
a243b558
JF
5182fi
5183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5184$as_echo "$ac_cv_build" >&6; }
5185case $ac_cv_build in
5186*-*-*) ;;
5187*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5188esac
5189build=$ac_cv_build
5190ac_save_IFS=$IFS; IFS='-'
5191set x $ac_cv_build
5192shift
5193build_cpu=$1
5194build_vendor=$2
5195shift; shift
5196# Remember, the first character of IFS is used to create $*,
5197# except with old shells:
5198build_os=$*
5199IFS=$ac_save_IFS
5200case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
35fa52c0 5201
35fa52c0 5202
a243b558
JF
5203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5204$as_echo_n "checking host system type... " >&6; }
5205if ${ac_cv_host+:} false; then :
5206 $as_echo_n "(cached) " >&6
5207else
5208 if test "x$host_alias" = x; then
5209 ac_cv_host=$ac_cv_build
5210else
5211 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5212 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5213fi
35fa52c0 5214
a243b558
JF
5215fi
5216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5217$as_echo "$ac_cv_host" >&6; }
5218case $ac_cv_host in
5219*-*-*) ;;
5220*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5221esac
5222host=$ac_cv_host
5223ac_save_IFS=$IFS; IFS='-'
5224set x $ac_cv_host
5225shift
5226host_cpu=$1
5227host_vendor=$2
5228shift; shift
5229# Remember, the first character of IFS is used to create $*,
5230# except with old shells:
5231host_os=$*
5232IFS=$ac_save_IFS
5233case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
9c60689e 5234
9c60689e 5235
a243b558
JF
5236# Backslashify metacharacters that are still active within
5237# double-quoted strings.
5238sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9c60689e 5239
a243b558
JF
5240# Same as above, but do not quote variable references.
5241double_quote_subst='s/\(["`\\]\)/\\\1/g'
9c60689e 5242
a243b558
JF
5243# Sed substitution to delay expansion of an escaped shell variable in a
5244# double_quote_subst'ed string.
5245delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9c60689e 5246
a243b558
JF
5247# Sed substitution to delay expansion of an escaped single quote.
5248delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9c60689e 5249
a243b558
JF
5250# Sed substitution to avoid accidental globbing in evaled expressions
5251no_glob_subst='s/\*/\\\*/g'
35fa52c0 5252
a243b558
JF
5253ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5254ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5255ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
ee134472 5256
a243b558
JF
5257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5258$as_echo_n "checking how to print strings... " >&6; }
5259# Test print first, because it will be a builtin if present.
5260if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5261 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5262 ECHO='print -r --'
5263elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5264 ECHO='printf %s\n'
5265else
5266 # Use this function as a fallback that always works.
5267 func_fallback_echo ()
5268 {
5269 eval 'cat <<_LTECHO_EOF
5270$1
5271_LTECHO_EOF'
5272 }
5273 ECHO='func_fallback_echo'
ee134472
JF
5274fi
5275
a243b558
JF
5276# func_echo_all arg...
5277# Invoke $ECHO with all args, space-separated.
5278func_echo_all ()
5279{
5280 $ECHO ""
5281}
35fa52c0 5282
a243b558
JF
5283case "$ECHO" in
5284 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5285$as_echo "printf" >&6; } ;;
5286 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5287$as_echo "print -r" >&6; } ;;
5288 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5289$as_echo "cat" >&6; } ;;
5290esac
35fa52c0 5291
35fa52c0 5292
ee134472
JF
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
35fa52c0 5303
9c60689e 5304
a243b558
JF
5305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5306$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5307if ${ac_cv_path_SED+:} false; then :
9c60689e
DWT
5308 $as_echo_n "(cached) " >&6
5309else
a243b558
JF
5310 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5311 for ac_i in 1 2 3 4 5 6 7; do
5312 ac_script="$ac_script$as_nl$ac_script"
5313 done
5314 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5315 { ac_script=; unset ac_script;}
5316 if test -z "$SED"; then
5317 ac_path_SED_found=false
5318 # Loop through the user's path and test for each of PROGNAME-LIST
5319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9c60689e
DWT
5320for as_dir in $PATH
5321do
5322 IFS=$as_save_IFS
5323 test -z "$as_dir" && as_dir=.
a243b558 5324 for ac_prog in sed gsed; do
9c60689e 5325 for ac_exec_ext in '' $ac_executable_extensions; do
a243b558
JF
5326 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5327 as_fn_executable_p "$ac_path_SED" || continue
5328# Check for GNU ac_path_SED and select it if it is found.
5329 # Check for GNU $ac_path_SED
5330case `"$ac_path_SED" --version 2>&1` in
5331*GNU*)
5332 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5333*)
5334 ac_count=0
5335 $as_echo_n 0123456789 >"conftest.in"
5336 while :
5337 do
5338 cat "conftest.in" "conftest.in" >"conftest.tmp"
5339 mv "conftest.tmp" "conftest.in"
5340 cp "conftest.in" "conftest.nl"
5341 $as_echo '' >> "conftest.nl"
5342 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5343 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5344 as_fn_arith $ac_count + 1 && ac_count=$as_val
5345 if test $ac_count -gt ${ac_path_SED_max-0}; then
5346 # Best one so far, save it but keep looking for a better one
5347 ac_cv_path_SED="$ac_path_SED"
5348 ac_path_SED_max=$ac_count
5349 fi
5350 # 10*(2^10) chars as input seems more than enough
5351 test $ac_count -gt 10 && break
35fa52c0 5352 done
a243b558
JF
5353 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5354esac
9c60689e 5355
a243b558
JF
5356 $ac_path_SED_found && break 3
5357 done
5358 done
9c60689e
DWT
5359 done
5360IFS=$as_save_IFS
a243b558
JF
5361 if test -z "$ac_cv_path_SED"; then
5362 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
9c60689e
DWT
5363 fi
5364else
a243b558 5365 ac_cv_path_SED=$SED
9c60689e
DWT
5366fi
5367
a243b558
JF
5368fi
5369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5370$as_echo "$ac_cv_path_SED" >&6; }
5371 SED="$ac_cv_path_SED"
5372 rm -f conftest.sed
9c60689e 5373
a243b558
JF
5374test -z "$SED" && SED=sed
5375Xsed="$SED -e 1s/^X//"
9c60689e 5376
ee134472 5377
ee134472 5378
9c60689e
DWT
5379
5380
5381
5382
5383
5384
5385
5386
a243b558
JF
5387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5388$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5389if ${ac_cv_path_GREP+:} false; then :
9c60689e
DWT
5390 $as_echo_n "(cached) " >&6
5391else
a243b558
JF
5392 if test -z "$GREP"; then
5393 ac_path_GREP_found=false
5394 # Loop through the user's path and test for each of PROGNAME-LIST
5395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5396for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9c60689e
DWT
5397do
5398 IFS=$as_save_IFS
5399 test -z "$as_dir" && as_dir=.
a243b558 5400 for ac_prog in grep ggrep; do
9c60689e 5401 for ac_exec_ext in '' $ac_executable_extensions; do
a243b558
JF
5402 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5403 as_fn_executable_p "$ac_path_GREP" || continue
5404# Check for GNU ac_path_GREP and select it if it is found.
5405 # Check for GNU $ac_path_GREP
5406case `"$ac_path_GREP" --version 2>&1` in
5407*GNU*)
5408 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5409*)
5410 ac_count=0
5411 $as_echo_n 0123456789 >"conftest.in"
5412 while :
5413 do
5414 cat "conftest.in" "conftest.in" >"conftest.tmp"
5415 mv "conftest.tmp" "conftest.in"
5416 cp "conftest.in" "conftest.nl"
5417 $as_echo 'GREP' >> "conftest.nl"
5418 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5419 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5420 as_fn_arith $ac_count + 1 && ac_count=$as_val
5421 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5422 # Best one so far, save it but keep looking for a better one
5423 ac_cv_path_GREP="$ac_path_GREP"
5424 ac_path_GREP_max=$ac_count
5425 fi
5426 # 10*(2^10) chars as input seems more than enough
5427 test $ac_count -gt 10 && break
5428 done
5429 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5430esac
9c60689e 5431
a243b558
JF
5432 $ac_path_GREP_found && break 3
5433 done
ee134472 5434 done
a243b558
JF
5435 done
5436IFS=$as_save_IFS
5437 if test -z "$ac_cv_path_GREP"; then
5438 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5439 fi
5440else
5441 ac_cv_path_GREP=$GREP
9c60689e 5442fi
a243b558
JF
5443
5444fi
5445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5446$as_echo "$ac_cv_path_GREP" >&6; }
5447 GREP="$ac_cv_path_GREP"
5448
5449
5450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5451$as_echo_n "checking for egrep... " >&6; }
5452if ${ac_cv_path_EGREP+:} false; then :
9c60689e
DWT
5453 $as_echo_n "(cached) " >&6
5454else
a243b558
JF
5455 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5456 then ac_cv_path_EGREP="$GREP -E"
5457 else
5458 if test -z "$EGREP"; then
5459 ac_path_EGREP_found=false
5460 # Loop through the user's path and test for each of PROGNAME-LIST
5461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5462for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9c60689e
DWT
5463do
5464 IFS=$as_save_IFS
5465 test -z "$as_dir" && as_dir=.
a243b558 5466 for ac_prog in egrep; do
9c60689e 5467 for ac_exec_ext in '' $ac_executable_extensions; do
a243b558
JF
5468 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5469 as_fn_executable_p "$ac_path_EGREP" || continue
5470# Check for GNU ac_path_EGREP and select it if it is found.
5471 # Check for GNU $ac_path_EGREP
5472case `"$ac_path_EGREP" --version 2>&1` in
5473*GNU*)
5474 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5475*)
5476 ac_count=0
5477 $as_echo_n 0123456789 >"conftest.in"
5478 while :
5479 do
5480 cat "conftest.in" "conftest.in" >"conftest.tmp"
5481 mv "conftest.tmp" "conftest.in"
5482 cp "conftest.in" "conftest.nl"
5483 $as_echo 'EGREP' >> "conftest.nl"
5484 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5485 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5486 as_fn_arith $ac_count + 1 && ac_count=$as_val
5487 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5488 # Best one so far, save it but keep looking for a better one
5489 ac_cv_path_EGREP="$ac_path_EGREP"
5490 ac_path_EGREP_max=$ac_count
5491 fi
5492 # 10*(2^10) chars as input seems more than enough
5493 test $ac_count -gt 10 && break
9c60689e 5494 done
a243b558
JF
5495 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5496esac
9c60689e 5497
a243b558
JF
5498 $ac_path_EGREP_found && break 3
5499 done
5500 done
5501 done
5502IFS=$as_save_IFS
5503 if test -z "$ac_cv_path_EGREP"; then
5504 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5505 fi
9c60689e 5506else
a243b558 5507 ac_cv_path_EGREP=$EGREP
9c60689e
DWT
5508fi
5509
a243b558
JF
5510 fi
5511fi
5512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5513$as_echo "$ac_cv_path_EGREP" >&6; }
5514 EGREP="$ac_cv_path_EGREP"
ee134472 5515
ee134472 5516
a243b558
JF
5517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5518$as_echo_n "checking for fgrep... " >&6; }
5519if ${ac_cv_path_FGREP+:} false; then :
5520 $as_echo_n "(cached) " >&6
5521else
5522 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5523 then ac_cv_path_FGREP="$GREP -F"
5524 else
5525 if test -z "$FGREP"; then
5526 ac_path_FGREP_found=false
5527 # Loop through the user's path and test for each of PROGNAME-LIST
5528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5529for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5530do
5531 IFS=$as_save_IFS
5532 test -z "$as_dir" && as_dir=.
5533 for ac_prog in fgrep; do
5534 for ac_exec_ext in '' $ac_executable_extensions; do
5535 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5536 as_fn_executable_p "$ac_path_FGREP" || continue
5537# Check for GNU ac_path_FGREP and select it if it is found.
5538 # Check for GNU $ac_path_FGREP
5539case `"$ac_path_FGREP" --version 2>&1` in
5540*GNU*)
5541 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5542*)
5543 ac_count=0
5544 $as_echo_n 0123456789 >"conftest.in"
5545 while :
5546 do
5547 cat "conftest.in" "conftest.in" >"conftest.tmp"
5548 mv "conftest.tmp" "conftest.in"
5549 cp "conftest.in" "conftest.nl"
5550 $as_echo 'FGREP' >> "conftest.nl"
5551 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5552 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5553 as_fn_arith $ac_count + 1 && ac_count=$as_val
5554 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5555 # Best one so far, save it but keep looking for a better one
5556 ac_cv_path_FGREP="$ac_path_FGREP"
5557 ac_path_FGREP_max=$ac_count
5558 fi
5559 # 10*(2^10) chars as input seems more than enough
5560 test $ac_count -gt 10 && break
5561 done
5562 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9c60689e 5563esac
a243b558
JF
5564
5565 $ac_path_FGREP_found && break 3
5566 done
5567 done
5568 done
5569IFS=$as_save_IFS
5570 if test -z "$ac_cv_path_FGREP"; then
5571 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
ee134472 5572 fi
a243b558
JF
5573else
5574 ac_cv_path_FGREP=$FGREP
ee134472
JF
5575fi
5576
a243b558
JF
5577 fi
5578fi
5579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5580$as_echo "$ac_cv_path_FGREP" >&6; }
5581 FGREP="$ac_cv_path_FGREP"
ee134472
JF
5582
5583
a243b558 5584test -z "$GREP" && GREP=grep
ee134472
JF
5585
5586
5587
5588
5589
5590
5591
ee134472 5592
ee134472 5593
ee134472 5594
ee134472 5595
ee134472 5596
ee134472
JF
5597
5598
5599
5600
5601
5602
5603
a243b558
JF
5604# Check whether --with-gnu-ld was given.
5605if test "${with_gnu_ld+set}" = set; then :
5606 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5607else
5608 with_gnu_ld=no
5609fi
5610
5611ac_prog=ld
5612if test "$GCC" = yes; then
5613 # Check if gcc -print-prog-name=ld gives a path.
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5615$as_echo_n "checking for ld used by $CC... " >&6; }
5616 case $host in
5617 *-*-mingw*)
5618 # gcc leaves a trailing carriage return which upsets mingw
5619 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5620 *)
5621 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5622 esac
5623 case $ac_prog in
5624 # Accept absolute paths.
5625 [\\/]* | ?:[\\/]*)
5626 re_direlt='/[^/][^/]*/\.\./'
5627 # Canonicalize the pathname of ld
5628 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5629 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5630 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5631 done
5632 test -z "$LD" && LD="$ac_prog"
5633 ;;
5634 "")
5635 # If it fails, then pretend we aren't using GCC.
5636 ac_prog=ld
5637 ;;
5638 *)
5639 # If it is relative, then search for the first ld in PATH.
5640 with_gnu_ld=unknown
5641 ;;
5642 esac
5643elif test "$with_gnu_ld" = yes; then
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5645$as_echo_n "checking for GNU ld... " >&6; }
5646else
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5648$as_echo_n "checking for non-GNU ld... " >&6; }
5649fi
5650if ${lt_cv_path_LD+:} false; then :
5651 $as_echo_n "(cached) " >&6
5652else
5653 if test -z "$LD"; then
5654 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5655 for ac_dir in $PATH; do
5656 IFS="$lt_save_ifs"
5657 test -z "$ac_dir" && ac_dir=.
5658 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5659 lt_cv_path_LD="$ac_dir/$ac_prog"
5660 # Check to see if the program is GNU ld. I'd rather use --version,
5661 # but apparently some variants of GNU ld only accept -v.
5662 # Break only if it was the GNU/non-GNU ld that we prefer.
5663 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5664 *GNU* | *'with BFD'*)
5665 test "$with_gnu_ld" != no && break
5666 ;;
5667 *)
5668 test "$with_gnu_ld" != yes && break
5669 ;;
5670 esac
5671 fi
5672 done
5673 IFS="$lt_save_ifs"
5674else
5675 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5676fi
5677fi
5678
5679LD="$lt_cv_path_LD"
5680if test -n "$LD"; then
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5682$as_echo "$LD" >&6; }
5683else
5684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5685$as_echo "no" >&6; }
5686fi
5687test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5689$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5690if ${lt_cv_prog_gnu_ld+:} false; then :
5691 $as_echo_n "(cached) " >&6
5692else
5693 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5694case `$LD -v 2>&1 </dev/null` in
5695*GNU* | *'with BFD'*)
5696 lt_cv_prog_gnu_ld=yes
5697 ;;
5698*)
5699 lt_cv_prog_gnu_ld=no
5700 ;;
5701esac
5702fi
5703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5704$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5705with_gnu_ld=$lt_cv_prog_gnu_ld
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5716$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5717if ${lt_cv_path_NM+:} false; then :
5718 $as_echo_n "(cached) " >&6
5719else
5720 if test -n "$NM"; then
5721 # Let the user override the test.
5722 lt_cv_path_NM="$NM"
5723else
5724 lt_nm_to_check="${ac_tool_prefix}nm"
5725 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5726 lt_nm_to_check="$lt_nm_to_check nm"
5727 fi
5728 for lt_tmp_nm in $lt_nm_to_check; do
5729 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5730 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5731 IFS="$lt_save_ifs"
5732 test -z "$ac_dir" && ac_dir=.
5733 tmp_nm="$ac_dir/$lt_tmp_nm"
5734 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5735 # Check to see if the nm accepts a BSD-compat flag.
5736 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5737 # nm: unknown option "B" ignored
5738 # Tru64's nm complains that /dev/null is an invalid object file
5739 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5740 */dev/null* | *'Invalid file or object type'*)
5741 lt_cv_path_NM="$tmp_nm -B"
5742 break
5743 ;;
5744 *)
5745 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5746 */dev/null*)
5747 lt_cv_path_NM="$tmp_nm -p"
5748 break
5749 ;;
5750 *)
5751 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5752 continue # so that we can try to find one that supports BSD flags
5753 ;;
5754 esac
5755 ;;
5756 esac
5757 fi
5758 done
5759 IFS="$lt_save_ifs"
5760 done
5761 : ${lt_cv_path_NM=no}
5762fi
5763fi
5764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5765$as_echo "$lt_cv_path_NM" >&6; }
5766if test "$lt_cv_path_NM" != "no"; then
5767 NM="$lt_cv_path_NM"
5768else
5769 # Didn't find any BSD compatible name lister, look for dumpbin.
5770 if test -n "$DUMPBIN"; then :
5771 # Let the user override the test.
5772 else
5773 if test -n "$ac_tool_prefix"; then
5774 for ac_prog in dumpbin "link -dump"
5775 do
5776 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5777set dummy $ac_tool_prefix$ac_prog; ac_word=$2
ee134472
JF
5778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5779$as_echo_n "checking for $ac_word... " >&6; }
a243b558 5780if ${ac_cv_prog_DUMPBIN+:} false; then :
ee134472
JF
5781 $as_echo_n "(cached) " >&6
5782else
a243b558
JF
5783 if test -n "$DUMPBIN"; then
5784 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
ee134472
JF
5785else
5786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5787for as_dir in $PATH
5788do
5789 IFS=$as_save_IFS
5790 test -z "$as_dir" && as_dir=.
5791 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 5792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 5793 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
ee134472
JF
5794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5795 break 2
5796 fi
5797done
5798 done
5799IFS=$as_save_IFS
5800
5801fi
5802fi
a243b558
JF
5803DUMPBIN=$ac_cv_prog_DUMPBIN
5804if test -n "$DUMPBIN"; then
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5806$as_echo "$DUMPBIN" >&6; }
ee134472
JF
5807else
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5809$as_echo "no" >&6; }
5810fi
5811
5812
a243b558
JF
5813 test -n "$DUMPBIN" && break
5814 done
ee134472 5815fi
a243b558
JF
5816if test -z "$DUMPBIN"; then
5817 ac_ct_DUMPBIN=$DUMPBIN
5818 for ac_prog in dumpbin "link -dump"
5819do
5820 # Extract the first word of "$ac_prog", so it can be a program name with args.
5821set dummy $ac_prog; ac_word=$2
ee134472
JF
5822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5823$as_echo_n "checking for $ac_word... " >&6; }
a243b558 5824if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
ee134472
JF
5825 $as_echo_n "(cached) " >&6
5826else
a243b558
JF
5827 if test -n "$ac_ct_DUMPBIN"; then
5828 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
ee134472
JF
5829else
5830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5831for as_dir in $PATH
5832do
5833 IFS=$as_save_IFS
5834 test -z "$as_dir" && as_dir=.
5835 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 5836 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 5837 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
ee134472
JF
5838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5839 break 2
5840 fi
5841done
5842 done
5843IFS=$as_save_IFS
5844
5845fi
5846fi
a243b558
JF
5847ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5848if test -n "$ac_ct_DUMPBIN"; then
5849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5850$as_echo "$ac_ct_DUMPBIN" >&6; }
ee134472
JF
5851else
5852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5853$as_echo "no" >&6; }
5854fi
5855
a243b558
JF
5856
5857 test -n "$ac_ct_DUMPBIN" && break
5858done
5859
5860 if test "x$ac_ct_DUMPBIN" = x; then
5861 DUMPBIN=":"
ee134472
JF
5862 else
5863 case $cross_compiling:$ac_tool_warned in
5864yes:)
5865{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5866$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5867ac_tool_warned=yes ;;
5868esac
a243b558 5869 DUMPBIN=$ac_ct_DUMPBIN
9c60689e 5870 fi
9c60689e
DWT
5871fi
5872
a243b558
JF
5873 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5874 *COFF*)
5875 DUMPBIN="$DUMPBIN -symbols"
5876 ;;
5877 *)
5878 DUMPBIN=:
5879 ;;
5880 esac
5881 fi
9c60689e 5882
a243b558
JF
5883 if test "$DUMPBIN" != ":"; then
5884 NM="$DUMPBIN"
5885 fi
5886fi
5887test -z "$NM" && NM=nm
9c60689e
DWT
5888
5889
5890
5891
5892
a243b558
JF
5893
5894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5895$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5896if ${lt_cv_nm_interface+:} false; then :
9c60689e
DWT
5897 $as_echo_n "(cached) " >&6
5898else
a243b558
JF
5899 lt_cv_nm_interface="BSD nm"
5900 echo "int some_variable = 0;" > conftest.$ac_ext
5901 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5902 (eval "$ac_compile" 2>conftest.err)
5903 cat conftest.err >&5
5904 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5905 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5906 cat conftest.err >&5
5907 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5908 cat conftest.out >&5
5909 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5910 lt_cv_nm_interface="MS dumpbin"
9c60689e 5911 fi
00a96142 5912 rm -rf conftest*
9c60689e 5913fi
a243b558
JF
5914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5915$as_echo "$lt_cv_nm_interface" >&6; }
5916
5917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5918$as_echo_n "checking whether ln -s works... " >&6; }
5919LN_S=$as_ln_s
5920if test "$LN_S" = "ln -s"; then
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5922$as_echo "yes" >&6; }
9c60689e 5923else
a243b558
JF
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5925$as_echo "no, using $LN_S" >&6; }
9c60689e
DWT
5926fi
5927
a243b558
JF
5928# find the maximum length of command line arguments
5929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5930$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5931if ${lt_cv_sys_max_cmd_len+:} false; then :
9c60689e
DWT
5932 $as_echo_n "(cached) " >&6
5933else
a243b558
JF
5934 i=0
5935 teststring="ABCD"
9c60689e 5936
a243b558
JF
5937 case $build_os in
5938 msdosdjgpp*)
5939 # On DJGPP, this test can blow up pretty badly due to problems in libc
5940 # (any single argument exceeding 2000 bytes causes a buffer overrun
5941 # during glob expansion). Even if it were fixed, the result of this
5942 # check would be larger than it should be.
5943 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5944 ;;
9c60689e 5945
a243b558
JF
5946 gnu*)
5947 # Under GNU Hurd, this test is not required because there is
5948 # no limit to the length of command line arguments.
5949 # Libtool will interpret -1 as no limit whatsoever
5950 lt_cv_sys_max_cmd_len=-1;
5951 ;;
9c60689e 5952
a243b558
JF
5953 cygwin* | mingw* | cegcc*)
5954 # On Win9x/ME, this test blows up -- it succeeds, but takes
5955 # about 5 minutes as the teststring grows exponentially.
5956 # Worse, since 9x/ME are not pre-emptively multitasking,
5957 # you end up with a "frozen" computer, even though with patience
5958 # the test eventually succeeds (with a max line length of 256k).
5959 # Instead, let's just punt: use the minimum linelength reported by
5960 # all of the supported platforms: 8192 (on NT/2K/XP).
5961 lt_cv_sys_max_cmd_len=8192;
5962 ;;
9c60689e 5963
a243b558
JF
5964 mint*)
5965 # On MiNT this can take a long time and run out of memory.
5966 lt_cv_sys_max_cmd_len=8192;
5967 ;;
9c60689e 5968
a243b558
JF
5969 amigaos*)
5970 # On AmigaOS with pdksh, this test takes hours, literally.
5971 # So we just punt and use a minimum line length of 8192.
5972 lt_cv_sys_max_cmd_len=8192;
5973 ;;
9c60689e 5974
a243b558
JF
5975 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5976 # This has been around since 386BSD, at least. Likely further.
5977 if test -x /sbin/sysctl; then
5978 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5979 elif test -x /usr/sbin/sysctl; then
5980 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5981 else
5982 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5983 fi
5984 # And add a safety zone
5985 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5986 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5987 ;;
9c60689e 5988
a243b558
JF
5989 interix*)
5990 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5991 lt_cv_sys_max_cmd_len=196608
5992 ;;
9c60689e 5993
a243b558
JF
5994 os2*)
5995 # The test takes a long time on OS/2.
5996 lt_cv_sys_max_cmd_len=8192
5997 ;;
9c60689e 5998
a243b558
JF
5999 osf*)
6000 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6001 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6002 # nice to cause kernel panics so lets avoid the loop below.
6003 # First set a reasonable default.
6004 lt_cv_sys_max_cmd_len=16384
6005 #
6006 if test -x /sbin/sysconfig; then
6007 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6008 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6009 esac
6010 fi
6011 ;;
6012 sco3.2v5*)
6013 lt_cv_sys_max_cmd_len=102400
6014 ;;
6015 sysv5* | sco5v6* | sysv4.2uw2*)
6016 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6017 if test -n "$kargmax"; then
6018 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6019 else
6020 lt_cv_sys_max_cmd_len=32768
6021 fi
9c60689e
DWT
6022 ;;
6023 *)
a243b558
JF
6024 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6025 if test -n "$lt_cv_sys_max_cmd_len"; then
6026 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6027 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6028 else
6029 # Make teststring a little bigger before we do anything with it.
6030 # a 1K string should be a reasonable start.
6031 for i in 1 2 3 4 5 6 7 8 ; do
6032 teststring=$teststring$teststring
6033 done
6034 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6035 # If test is not a shell built-in, we'll probably end up computing a
6036 # maximum length that is only half of the actual maximum length, but
6037 # we can't tell.
6038 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
6039 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6040 test $i != 17 # 1/2 MB should be enough
6041 do
6042 i=`expr $i + 1`
6043 teststring=$teststring$teststring
6044 done
6045 # Only check the string length outside the loop.
6046 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6047 teststring=
6048 # Add a significant safety factor because C++ compilers can tack on
6049 # massive amounts of additional arguments before passing them to the
6050 # linker. It appears as though 1/2 is a usable value.
6051 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6052 fi
9c60689e
DWT
6053 ;;
6054 esac
ee134472 6055
a243b558 6056fi
ee134472 6057
a243b558
JF
6058if test -n $lt_cv_sys_max_cmd_len ; then
6059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6060$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6061else
6062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6063$as_echo "none" >&6; }
6064fi
6065max_cmd_len=$lt_cv_sys_max_cmd_len
ee134472
JF
6066
6067
9c60689e
DWT
6068
6069
6070
6071
a243b558
JF
6072: ${CP="cp -f"}
6073: ${MV="mv -f"}
6074: ${RM="rm -f"}
9c60689e 6075
a243b558
JF
6076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6077$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6078# Try some XSI features
6079xsi_shell=no
6080( _lt_dummy="a/b/c"
6081 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6082 = c,a/b,b/c, \
6083 && eval 'test $(( 1 + 1 )) -eq 2 \
6084 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6085 && xsi_shell=yes
6086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6087$as_echo "$xsi_shell" >&6; }
9c60689e
DWT
6088
6089
a243b558
JF
6090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6091$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6092lt_shell_append=no
6093( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6094 >/dev/null 2>&1 \
6095 && lt_shell_append=yes
6096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6097$as_echo "$lt_shell_append" >&6; }
9c60689e
DWT
6098
6099
a243b558
JF
6100if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6101 lt_unset=unset
6102else
6103 lt_unset=false
6104fi
9c60689e
DWT
6105
6106
6107
6108
6109
a243b558
JF
6110# test EBCDIC or ASCII
6111case `echo X|tr X '\101'` in
6112 A) # ASCII based system
6113 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6114 lt_SP2NL='tr \040 \012'
6115 lt_NL2SP='tr \015\012 \040\040'
6116 ;;
6117 *) # EBCDIC based system
6118 lt_SP2NL='tr \100 \n'
6119 lt_NL2SP='tr \r\n \100\100'
6120 ;;
6121esac
9c60689e
DWT
6122
6123
6124
6125
6126
6127
6128
6129
6130
a243b558
JF
6131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6132$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6133if ${lt_cv_to_host_file_cmd+:} false; then :
6134 $as_echo_n "(cached) " >&6
6135else
6136 case $host in
6137 *-*-mingw* )
6138 case $build in
6139 *-*-mingw* ) # actually msys
6140 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6141 ;;
6142 *-*-cygwin* )
6143 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6144 ;;
6145 * ) # otherwise, assume *nix
6146 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6147 ;;
6148 esac
6149 ;;
6150 *-*-cygwin* )
6151 case $build in
6152 *-*-mingw* ) # actually msys
6153 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6154 ;;
6155 *-*-cygwin* )
6156 lt_cv_to_host_file_cmd=func_convert_file_noop
6157 ;;
6158 * ) # otherwise, assume *nix
6159 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6160 ;;
6161 esac
6162 ;;
6163 * ) # unhandled hosts (and "normal" native builds)
6164 lt_cv_to_host_file_cmd=func_convert_file_noop
6165 ;;
6166esac
9c60689e 6167
a243b558 6168fi
9c60689e 6169
a243b558
JF
6170to_host_file_cmd=$lt_cv_to_host_file_cmd
6171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6172$as_echo "$lt_cv_to_host_file_cmd" >&6; }
9c60689e
DWT
6173
6174
6175
6176
6177
a243b558
JF
6178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6179$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6180if ${lt_cv_to_tool_file_cmd+:} false; then :
6181 $as_echo_n "(cached) " >&6
6182else
6183 #assume ordinary cross tools, or native build.
6184lt_cv_to_tool_file_cmd=func_convert_file_noop
6185case $host in
6186 *-*-mingw* )
6187 case $build in
6188 *-*-mingw* ) # actually msys
6189 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6190 ;;
6191 esac
6192 ;;
6193esac
9c60689e 6194
a243b558 6195fi
9c60689e 6196
a243b558
JF
6197to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6199$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
9c60689e 6200
9c60689e 6201
9c60689e 6202
9c60689e
DWT
6203
6204
a243b558
JF
6205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6206$as_echo_n "checking for $LD option to reload object files... " >&6; }
6207if ${lt_cv_ld_reload_flag+:} false; then :
9c60689e
DWT
6208 $as_echo_n "(cached) " >&6
6209else
a243b558
JF
6210 lt_cv_ld_reload_flag='-r'
6211fi
6212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6213$as_echo "$lt_cv_ld_reload_flag" >&6; }
6214reload_flag=$lt_cv_ld_reload_flag
6215case $reload_flag in
6216"" | " "*) ;;
6217*) reload_flag=" $reload_flag" ;;
6218esac
6219reload_cmds='$LD$reload_flag -o $output$reload_objs'
9c60689e 6220case $host_os in
a243b558
JF
6221 cygwin* | mingw* | pw32* | cegcc*)
6222 if test "$GCC" != yes; then
6223 reload_cmds=false
6224 fi
6225 ;;
6226 darwin*)
6227 if test "$GCC" = yes; then
6228 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6229 else
6230 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6231 fi
6232 ;;
9c60689e
DWT
6233esac
6234
9c60689e 6235
9c60689e 6236
9c60689e 6237
9c60689e 6238
9c60689e 6239
9c60689e 6240
9c60689e 6241
9c60689e 6242
a243b558
JF
6243if test -n "$ac_tool_prefix"; then
6244 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6245set dummy ${ac_tool_prefix}objdump; ac_word=$2
6246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6247$as_echo_n "checking for $ac_word... " >&6; }
6248if ${ac_cv_prog_OBJDUMP+:} false; then :
6249 $as_echo_n "(cached) " >&6
6250else
6251 if test -n "$OBJDUMP"; then
6252 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6253else
6254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6255for as_dir in $PATH
6256do
6257 IFS=$as_save_IFS
6258 test -z "$as_dir" && as_dir=.
6259 for ac_exec_ext in '' $ac_executable_extensions; do
6260 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6261 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6263 break 2
6264 fi
6265done
6266 done
6267IFS=$as_save_IFS
9c60689e 6268
a243b558
JF
6269fi
6270fi
6271OBJDUMP=$ac_cv_prog_OBJDUMP
6272if test -n "$OBJDUMP"; then
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6274$as_echo "$OBJDUMP" >&6; }
6275else
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6277$as_echo "no" >&6; }
6278fi
9c60689e 6279
9c60689e 6280
a243b558
JF
6281fi
6282if test -z "$ac_cv_prog_OBJDUMP"; then
6283 ac_ct_OBJDUMP=$OBJDUMP
6284 # Extract the first word of "objdump", so it can be a program name with args.
6285set dummy objdump; ac_word=$2
6286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6287$as_echo_n "checking for $ac_word... " >&6; }
6288if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6289 $as_echo_n "(cached) " >&6
6290else
6291 if test -n "$ac_ct_OBJDUMP"; then
6292 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6293else
6294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6295for as_dir in $PATH
6296do
6297 IFS=$as_save_IFS
6298 test -z "$as_dir" && as_dir=.
6299 for ac_exec_ext in '' $ac_executable_extensions; do
6300 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6301 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6303 break 2
9c60689e
DWT
6304 fi
6305done
a243b558
JF
6306 done
6307IFS=$as_save_IFS
9c60689e
DWT
6308
6309fi
9c60689e 6310fi
a243b558
JF
6311ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6312if test -n "$ac_ct_OBJDUMP"; then
6313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6314$as_echo "$ac_ct_OBJDUMP" >&6; }
9c60689e 6315else
a243b558
JF
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6317$as_echo "no" >&6; }
9c60689e
DWT
6318fi
6319
a243b558
JF
6320 if test "x$ac_ct_OBJDUMP" = x; then
6321 OBJDUMP="false"
6322 else
6323 case $cross_compiling:$ac_tool_warned in
6324yes:)
6325{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6326$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6327ac_tool_warned=yes ;;
6328esac
6329 OBJDUMP=$ac_ct_OBJDUMP
6330 fi
6331else
6332 OBJDUMP="$ac_cv_prog_OBJDUMP"
ee134472
JF
6333fi
6334
a243b558 6335test -z "$OBJDUMP" && OBJDUMP=objdump
ee134472
JF
6336
6337
6338
6339
6340
6341
6342
6343
6344
a243b558
JF
6345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6346$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6347if ${lt_cv_deplibs_check_method+:} false; then :
6348 $as_echo_n "(cached) " >&6
6349else
6350 lt_cv_file_magic_cmd='$MAGIC_CMD'
6351lt_cv_file_magic_test_file=
6352lt_cv_deplibs_check_method='unknown'
6353# Need to set the preceding variable on all platforms that support
6354# interlibrary dependencies.
6355# 'none' -- dependencies not supported.
6356# `unknown' -- same as none, but documents that we really don't know.
6357# 'pass_all' -- all dependencies passed with no checks.
6358# 'test_compile' -- check by making test program.
6359# 'file_magic [[regex]]' -- check by looking for files in library path
6360# which responds to the $file_magic_cmd with a given extended regex.
6361# If you have `file' or equivalent on your system and you're not sure
6362# whether `pass_all' will *always* work, you probably want this one.
9c60689e 6363
a243b558
JF
6364case $host_os in
6365aix[4-9]*)
6366 lt_cv_deplibs_check_method=pass_all
6367 ;;
9c60689e 6368
a243b558
JF
6369beos*)
6370 lt_cv_deplibs_check_method=pass_all
6371 ;;
9c60689e 6372
a243b558
JF
6373bsdi[45]*)
6374 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6375 lt_cv_file_magic_cmd='/usr/bin/file -L'
6376 lt_cv_file_magic_test_file=/shlib/libc.so
6377 ;;
9c60689e 6378
a243b558
JF
6379cygwin*)
6380 # func_win32_libid is a shell function defined in ltmain.sh
6381 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6382 lt_cv_file_magic_cmd='func_win32_libid'
6383 ;;
9c60689e 6384
a243b558
JF
6385mingw* | pw32*)
6386 # Base MSYS/MinGW do not provide the 'file' command needed by
6387 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6388 # unless we find 'file', for example because we are cross-compiling.
6389 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6390 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6391 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6392 lt_cv_file_magic_cmd='func_win32_libid'
6393 else
6394 # Keep this pattern in sync with the one in func_win32_libid.
6395 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6396 lt_cv_file_magic_cmd='$OBJDUMP -f'
6397 fi
6398 ;;
9c60689e 6399
a243b558
JF
6400cegcc*)
6401 # use the weaker test based on 'objdump'. See mingw*.
6402 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6403 lt_cv_file_magic_cmd='$OBJDUMP -f'
6404 ;;
9c60689e 6405
a243b558
JF
6406darwin* | rhapsody*)
6407 lt_cv_deplibs_check_method=pass_all
6408 ;;
9c60689e 6409
a243b558
JF
6410freebsd* | dragonfly*)
6411 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6412 case $host_cpu in
6413 i*86 )
6414 # Not sure whether the presence of OpenBSD here was a mistake.
6415 # Let's accept both of them until this is cleared up.
6416 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6417 lt_cv_file_magic_cmd=/usr/bin/file
6418 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6419 ;;
6420 esac
6421 else
6422 lt_cv_deplibs_check_method=pass_all
6423 fi
6424 ;;
9c60689e 6425
a243b558
JF
6426gnu*)
6427 lt_cv_deplibs_check_method=pass_all
6428 ;;
9c60689e 6429
a243b558
JF
6430haiku*)
6431 lt_cv_deplibs_check_method=pass_all
6432 ;;
9c60689e 6433
a243b558
JF
6434hpux10.20* | hpux11*)
6435 lt_cv_file_magic_cmd=/usr/bin/file
6436 case $host_cpu in
6437 ia64*)
6438 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6439 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6440 ;;
6441 hppa*64*)
6442 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]'
6443 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6444 ;;
6445 *)
6446 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6447 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6448 ;;
6449 esac
6450 ;;
9c60689e 6451
a243b558
JF
6452interix[3-9]*)
6453 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6454 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6455 ;;
9c60689e 6456
a243b558
JF
6457irix5* | irix6* | nonstopux*)
6458 case $LD in
6459 *-32|*"-32 ") libmagic=32-bit;;
6460 *-n32|*"-n32 ") libmagic=N32;;
6461 *-64|*"-64 ") libmagic=64-bit;;
6462 *) libmagic=never-match;;
6463 esac
6464 lt_cv_deplibs_check_method=pass_all
6465 ;;
9c60689e 6466
a243b558
JF
6467# This must be glibc/ELF.
6468linux* | k*bsd*-gnu | kopensolaris*-gnu)
6469 lt_cv_deplibs_check_method=pass_all
6470 ;;
9c60689e 6471
a243b558
JF
6472netbsd*)
6473 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6474 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6475 else
6476 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6477 fi
6478 ;;
9c60689e 6479
a243b558
JF
6480newos6*)
6481 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6482 lt_cv_file_magic_cmd=/usr/bin/file
6483 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6484 ;;
9c60689e 6485
a243b558
JF
6486*nto* | *qnx*)
6487 lt_cv_deplibs_check_method=pass_all
6488 ;;
9c60689e 6489
a243b558
JF
6490openbsd*)
6491 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6492 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6493 else
6494 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6495 fi
6496 ;;
9c60689e 6497
a243b558
JF
6498osf3* | osf4* | osf5*)
6499 lt_cv_deplibs_check_method=pass_all
6500 ;;
9c60689e 6501
a243b558
JF
6502rdos*)
6503 lt_cv_deplibs_check_method=pass_all
9c60689e 6504 ;;
a243b558
JF
6505
6506solaris*)
6507 lt_cv_deplibs_check_method=pass_all
9c60689e
DWT
6508 ;;
6509
a243b558
JF
6510sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6511 lt_cv_deplibs_check_method=pass_all
9c60689e
DWT
6512 ;;
6513
a243b558
JF
6514sysv4 | sysv4.3*)
6515 case $host_vendor in
6516 motorola)
6517 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]'
6518 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6519 ;;
6520 ncr)
6521 lt_cv_deplibs_check_method=pass_all
6522 ;;
6523 sequent)
6524 lt_cv_file_magic_cmd='/bin/file'
6525 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6526 ;;
6527 sni)
6528 lt_cv_file_magic_cmd='/bin/file'
6529 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6530 lt_cv_file_magic_test_file=/lib/libc.so
6531 ;;
6532 siemens)
6533 lt_cv_deplibs_check_method=pass_all
6534 ;;
6535 pc)
6536 lt_cv_deplibs_check_method=pass_all
6537 ;;
6538 esac
6539 ;;
9c60689e 6540
a243b558
JF
6541tpf*)
6542 lt_cv_deplibs_check_method=pass_all
6543 ;;
6544esac
9c60689e 6545
a243b558
JF
6546fi
6547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6548$as_echo "$lt_cv_deplibs_check_method" >&6; }
9c60689e 6549
a243b558
JF
6550file_magic_glob=
6551want_nocaseglob=no
6552if test "$build" = "$host"; then
6553 case $host_os in
6554 mingw* | pw32*)
6555 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6556 want_nocaseglob=yes
6557 else
6558 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6559 fi
6560 ;;
6561 esac
9c60689e 6562fi
9c60689e 6563
a243b558
JF
6564file_magic_cmd=$lt_cv_file_magic_cmd
6565deplibs_check_method=$lt_cv_deplibs_check_method
6566test -z "$deplibs_check_method" && deplibs_check_method=unknown
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
9c60689e 6587
9c60689e 6588
ee134472 6589if test -n "$ac_tool_prefix"; then
a243b558
JF
6590 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6591set dummy ${ac_tool_prefix}dlltool; ac_word=$2
ee134472
JF
6592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6593$as_echo_n "checking for $ac_word... " >&6; }
a243b558 6594if ${ac_cv_prog_DLLTOOL+:} false; then :
ee134472
JF
6595 $as_echo_n "(cached) " >&6
6596else
a243b558
JF
6597 if test -n "$DLLTOOL"; then
6598 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
ee134472
JF
6599else
6600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6601for as_dir in $PATH
6602do
6603 IFS=$as_save_IFS
6604 test -z "$as_dir" && as_dir=.
6605 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 6606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 6607 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
ee134472
JF
6608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6609 break 2
6610 fi
6611done
6612 done
6613IFS=$as_save_IFS
6614
6615fi
6616fi
a243b558
JF
6617DLLTOOL=$ac_cv_prog_DLLTOOL
6618if test -n "$DLLTOOL"; then
6619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6620$as_echo "$DLLTOOL" >&6; }
ee134472
JF
6621else
6622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6623$as_echo "no" >&6; }
6624fi
6625
6626
6627fi
a243b558
JF
6628if test -z "$ac_cv_prog_DLLTOOL"; then
6629 ac_ct_DLLTOOL=$DLLTOOL
6630 # Extract the first word of "dlltool", so it can be a program name with args.
6631set dummy dlltool; ac_word=$2
ee134472
JF
6632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6633$as_echo_n "checking for $ac_word... " >&6; }
a243b558 6634if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
ee134472
JF
6635 $as_echo_n "(cached) " >&6
6636else
a243b558
JF
6637 if test -n "$ac_ct_DLLTOOL"; then
6638 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
ee134472
JF
6639else
6640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6641for as_dir in $PATH
6642do
6643 IFS=$as_save_IFS
6644 test -z "$as_dir" && as_dir=.
6645 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 6646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 6647 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
ee134472
JF
6648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6649 break 2
6650 fi
6651done
6652 done
6653IFS=$as_save_IFS
6654
6655fi
6656fi
a243b558
JF
6657ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6658if test -n "$ac_ct_DLLTOOL"; then
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6660$as_echo "$ac_ct_DLLTOOL" >&6; }
ee134472
JF
6661else
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6663$as_echo "no" >&6; }
6664fi
6665
a243b558
JF
6666 if test "x$ac_ct_DLLTOOL" = x; then
6667 DLLTOOL="false"
ee134472
JF
6668 else
6669 case $cross_compiling:$ac_tool_warned in
6670yes:)
6671{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6672$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6673ac_tool_warned=yes ;;
6674esac
a243b558 6675 DLLTOOL=$ac_ct_DLLTOOL
ee134472
JF
6676 fi
6677else
a243b558 6678 DLLTOOL="$ac_cv_prog_DLLTOOL"
ee134472
JF
6679fi
6680
a243b558
JF
6681test -z "$DLLTOOL" && DLLTOOL=dlltool
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6693$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6694if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
ee134472
JF
6695 $as_echo_n "(cached) " >&6
6696else
a243b558
JF
6697 lt_cv_sharedlib_from_linklib_cmd='unknown'
6698
6699case $host_os in
6700cygwin* | mingw* | pw32* | cegcc*)
6701 # two different shell functions defined in ltmain.sh
6702 # decide which to use based on capabilities of $DLLTOOL
6703 case `$DLLTOOL --help 2>&1` in
6704 *--identify-strict*)
6705 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6706 ;;
6707 *)
6708 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6709 ;;
6710 esac
6711 ;;
6712*)
6713 # fallback: assume linklib IS sharedlib
6714 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6715 ;;
6716esac
6717
ee134472 6718fi
a243b558
JF
6719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6720$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6721sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6722test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
ee134472
JF
6723
6724
6725
6726
6727
9c60689e 6728
a243b558
JF
6729
6730if test -n "$ac_tool_prefix"; then
6731 for ac_prog in ar
6732 do
6733 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6734set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9c60689e
DWT
6735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6736$as_echo_n "checking for $ac_word... " >&6; }
a243b558 6737if ${ac_cv_prog_AR+:} false; then :
9c60689e
DWT
6738 $as_echo_n "(cached) " >&6
6739else
a243b558
JF
6740 if test -n "$AR"; then
6741 ac_cv_prog_AR="$AR" # Let the user override the test.
9c60689e
DWT
6742else
6743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6744for as_dir in $PATH
6745do
6746 IFS=$as_save_IFS
6747 test -z "$as_dir" && as_dir=.
6748 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 6749 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 6750 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
9c60689e
DWT
6751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6752 break 2
6753 fi
6754done
6755 done
6756IFS=$as_save_IFS
6757
6758fi
6759fi
a243b558
JF
6760AR=$ac_cv_prog_AR
6761if test -n "$AR"; then
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6763$as_echo "$AR" >&6; }
9c60689e
DWT
6764else
6765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6766$as_echo "no" >&6; }
6767fi
6768
6769
a243b558
JF
6770 test -n "$AR" && break
6771 done
9c60689e 6772fi
a243b558
JF
6773if test -z "$AR"; then
6774 ac_ct_AR=$AR
6775 for ac_prog in ar
6776do
6777 # Extract the first word of "$ac_prog", so it can be a program name with args.
6778set dummy $ac_prog; ac_word=$2
9c60689e
DWT
6779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6780$as_echo_n "checking for $ac_word... " >&6; }
a243b558 6781if ${ac_cv_prog_ac_ct_AR+:} false; then :
9c60689e
DWT
6782 $as_echo_n "(cached) " >&6
6783else
a243b558
JF
6784 if test -n "$ac_ct_AR"; then
6785 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9c60689e
DWT
6786else
6787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6788for as_dir in $PATH
6789do
6790 IFS=$as_save_IFS
6791 test -z "$as_dir" && as_dir=.
6792 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 6793 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 6794 ac_cv_prog_ac_ct_AR="$ac_prog"
9c60689e
DWT
6795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6796 break 2
6797 fi
6798done
6799 done
6800IFS=$as_save_IFS
6801
6802fi
6803fi
a243b558
JF
6804ac_ct_AR=$ac_cv_prog_ac_ct_AR
6805if test -n "$ac_ct_AR"; then
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6807$as_echo "$ac_ct_AR" >&6; }
9c60689e
DWT
6808else
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6810$as_echo "no" >&6; }
6811fi
6812
a243b558
JF
6813
6814 test -n "$ac_ct_AR" && break
6815done
6816
6817 if test "x$ac_ct_AR" = x; then
6818 AR="false"
9c60689e
DWT
6819 else
6820 case $cross_compiling:$ac_tool_warned in
6821yes:)
6822{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6823$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6824ac_tool_warned=yes ;;
6825esac
a243b558 6826 AR=$ac_ct_AR
9c60689e 6827 fi
a243b558
JF
6828fi
6829
6830: ${AR=ar}
6831: ${AR_FLAGS=cru}
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6844$as_echo_n "checking for archiver @FILE support... " >&6; }
6845if ${lt_cv_ar_at_file+:} false; then :
6846 $as_echo_n "(cached) " >&6
9c60689e 6847else
a243b558
JF
6848 lt_cv_ar_at_file=no
6849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6850/* end confdefs.h. */
6851
6852int
6853main ()
6854{
6855
6856 ;
6857 return 0;
6858}
6859_ACEOF
6860if ac_fn_c_try_compile "$LINENO"; then :
6861 echo conftest.$ac_objext > conftest.lst
6862 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6863 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6864 (eval $lt_ar_try) 2>&5
6865 ac_status=$?
6866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6867 test $ac_status = 0; }
6868 if test "$ac_status" -eq 0; then
6869 # Ensure the archiver fails upon bogus file names.
6870 rm -f conftest.$ac_objext libconftest.a
6871 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6872 (eval $lt_ar_try) 2>&5
6873 ac_status=$?
6874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6875 test $ac_status = 0; }
6876 if test "$ac_status" -ne 0; then
6877 lt_cv_ar_at_file=@
6878 fi
6879 fi
6880 rm -f conftest.* libconftest.a
6881
9c60689e 6882fi
a243b558 6883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9c60689e 6884
a243b558
JF
6885fi
6886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6887$as_echo "$lt_cv_ar_at_file" >&6; }
6888
6889if test "x$lt_cv_ar_at_file" = xno; then
6890 archiver_list_spec=
6891else
6892 archiver_list_spec=$lt_cv_ar_at_file
6893fi
6894
6895
6896
6897
6898
6899
6900
6901if test -n "$ac_tool_prefix"; then
6902 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6903set dummy ${ac_tool_prefix}strip; ac_word=$2
9c60689e
DWT
6904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6905$as_echo_n "checking for $ac_word... " >&6; }
a243b558 6906if ${ac_cv_prog_STRIP+:} false; then :
9c60689e
DWT
6907 $as_echo_n "(cached) " >&6
6908else
a243b558
JF
6909 if test -n "$STRIP"; then
6910 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9c60689e
DWT
6911else
6912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6913for as_dir in $PATH
6914do
6915 IFS=$as_save_IFS
6916 test -z "$as_dir" && as_dir=.
6917 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 6918 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 6919 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9c60689e
DWT
6920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6921 break 2
6922 fi
6923done
6924 done
6925IFS=$as_save_IFS
6926
6927fi
6928fi
a243b558
JF
6929STRIP=$ac_cv_prog_STRIP
6930if test -n "$STRIP"; then
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6932$as_echo "$STRIP" >&6; }
9c60689e
DWT
6933else
6934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6935$as_echo "no" >&6; }
6936fi
6937
6938
6939fi
a243b558
JF
6940if test -z "$ac_cv_prog_STRIP"; then
6941 ac_ct_STRIP=$STRIP
6942 # Extract the first word of "strip", so it can be a program name with args.
6943set dummy strip; ac_word=$2
9c60689e
DWT
6944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6945$as_echo_n "checking for $ac_word... " >&6; }
a243b558 6946if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
9c60689e
DWT
6947 $as_echo_n "(cached) " >&6
6948else
a243b558
JF
6949 if test -n "$ac_ct_STRIP"; then
6950 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9c60689e
DWT
6951else
6952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6953for as_dir in $PATH
6954do
6955 IFS=$as_save_IFS
6956 test -z "$as_dir" && as_dir=.
6957 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 6958 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 6959 ac_cv_prog_ac_ct_STRIP="strip"
9c60689e
DWT
6960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6961 break 2
6962 fi
6963done
6964 done
6965IFS=$as_save_IFS
6966
6967fi
6968fi
a243b558
JF
6969ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6970if test -n "$ac_ct_STRIP"; then
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6972$as_echo "$ac_ct_STRIP" >&6; }
9c60689e
DWT
6973else
6974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6975$as_echo "no" >&6; }
6976fi
6977
a243b558
JF
6978 if test "x$ac_ct_STRIP" = x; then
6979 STRIP=":"
9c60689e
DWT
6980 else
6981 case $cross_compiling:$ac_tool_warned in
6982yes:)
6983{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6984$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6985ac_tool_warned=yes ;;
6986esac
a243b558 6987 STRIP=$ac_ct_STRIP
9c60689e
DWT
6988 fi
6989else
a243b558 6990 STRIP="$ac_cv_prog_STRIP"
9c60689e
DWT
6991fi
6992
a243b558
JF
6993test -z "$STRIP" && STRIP=:
6994
6995
6996
6997
6998
6999
7000if test -n "$ac_tool_prefix"; then
7001 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7002set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9c60689e
DWT
7003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7004$as_echo_n "checking for $ac_word... " >&6; }
a243b558 7005if ${ac_cv_prog_RANLIB+:} false; then :
9c60689e
DWT
7006 $as_echo_n "(cached) " >&6
7007else
a243b558
JF
7008 if test -n "$RANLIB"; then
7009 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9c60689e
DWT
7010else
7011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7012for as_dir in $PATH
7013do
7014 IFS=$as_save_IFS
7015 test -z "$as_dir" && as_dir=.
7016 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 7017 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 7018 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9c60689e
DWT
7019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7020 break 2
7021 fi
7022done
7023 done
7024IFS=$as_save_IFS
7025
7026fi
7027fi
a243b558
JF
7028RANLIB=$ac_cv_prog_RANLIB
7029if test -n "$RANLIB"; then
7030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7031$as_echo "$RANLIB" >&6; }
9c60689e
DWT
7032else
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7034$as_echo "no" >&6; }
7035fi
7036
7037
7038fi
a243b558
JF
7039if test -z "$ac_cv_prog_RANLIB"; then
7040 ac_ct_RANLIB=$RANLIB
7041 # Extract the first word of "ranlib", so it can be a program name with args.
7042set dummy ranlib; ac_word=$2
9c60689e
DWT
7043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7044$as_echo_n "checking for $ac_word... " >&6; }
a243b558 7045if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
9c60689e
DWT
7046 $as_echo_n "(cached) " >&6
7047else
a243b558
JF
7048 if test -n "$ac_ct_RANLIB"; then
7049 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9c60689e
DWT
7050else
7051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7052for as_dir in $PATH
7053do
7054 IFS=$as_save_IFS
7055 test -z "$as_dir" && as_dir=.
7056 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 7057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 7058 ac_cv_prog_ac_ct_RANLIB="ranlib"
9c60689e
DWT
7059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7060 break 2
7061 fi
7062done
7063 done
7064IFS=$as_save_IFS
7065
7066fi
7067fi
a243b558
JF
7068ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7069if test -n "$ac_ct_RANLIB"; then
7070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7071$as_echo "$ac_ct_RANLIB" >&6; }
9c60689e
DWT
7072else
7073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7074$as_echo "no" >&6; }
7075fi
7076
a243b558
JF
7077 if test "x$ac_ct_RANLIB" = x; then
7078 RANLIB=":"
9c60689e
DWT
7079 else
7080 case $cross_compiling:$ac_tool_warned in
7081yes:)
7082{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7083$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7084ac_tool_warned=yes ;;
7085esac
a243b558 7086 RANLIB=$ac_ct_RANLIB
9c60689e
DWT
7087 fi
7088else
a243b558 7089 RANLIB="$ac_cv_prog_RANLIB"
9c60689e
DWT
7090fi
7091
a243b558
JF
7092test -z "$RANLIB" && RANLIB=:
7093
7094
9c60689e 7095
9c60689e
DWT
7096
7097
a243b558
JF
7098
7099# Determine commands to create old-style static archives.
7100old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7101old_postinstall_cmds='chmod 644 $oldlib'
7102old_postuninstall_cmds=
7103
7104if test -n "$RANLIB"; then
7105 case $host_os in
7106 openbsd*)
7107 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7108 ;;
7109 *)
7110 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7111 ;;
7112 esac
7113 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
9c60689e
DWT
7114fi
7115
a243b558
JF
7116case $host_os in
7117 darwin*)
7118 lock_old_archive_extraction=yes ;;
7119 *)
7120 lock_old_archive_extraction=no ;;
9c60689e 7121esac
9c60689e 7122
9c60689e 7123
9c60689e
DWT
7124
7125
9c60689e 7126
9c60689e 7127
9c60689e
DWT
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
53ba6704 7155
9c60689e 7156
9c60689e 7157
9c60689e 7158
53ba6704 7159
a243b558
JF
7160
7161# If no C compiler was specified, use CC.
7162LTCC=${LTCC-"$CC"}
7163
7164# If no C compiler flags were specified, use CFLAGS.
7165LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7166
7167# Allow CC to be a program name with arguments.
7168compiler=$CC
7169
7170
7171# Check for command to grab the raw symbol name followed by C symbol from nm.
7172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7173$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7174if ${lt_cv_sys_global_symbol_pipe+:} false; then :
ee134472
JF
7175 $as_echo_n "(cached) " >&6
7176else
ee134472 7177
a243b558
JF
7178# These are sane defaults that work on at least a few old systems.
7179# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9c60689e 7180
a243b558
JF
7181# Character class describing NM global symbol codes.
7182symcode='[BCDEGRST]'
9c60689e 7183
a243b558
JF
7184# Regexp to match symbols that can be accessed directly from C.
7185sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9c60689e 7186
a243b558
JF
7187# Define system-specific variables.
7188case $host_os in
7189aix*)
7190 symcode='[BCDT]'
7191 ;;
7192cygwin* | mingw* | pw32* | cegcc*)
7193 symcode='[ABCDGISTW]'
7194 ;;
7195hpux*)
7196 if test "$host_cpu" = ia64; then
7197 symcode='[ABCDEGRST]'
7198 fi
7199 ;;
7200irix* | nonstopux*)
7201 symcode='[BCDEGRST]'
7202 ;;
7203osf*)
7204 symcode='[BCDEGQRST]'
7205 ;;
7206solaris*)
7207 symcode='[BDRT]'
7208 ;;
7209sco3.2v5*)
7210 symcode='[DT]'
7211 ;;
7212sysv4.2uw2*)
7213 symcode='[DT]'
7214 ;;
7215sysv5* | sco5v6* | unixware* | OpenUNIX*)
7216 symcode='[ABDT]'
7217 ;;
7218sysv4)
7219 symcode='[DFNSTU]'
7220 ;;
7221esac
9c60689e 7222
a243b558
JF
7223# If we're using GNU nm, then use its standard symbol codes.
7224case `$NM -V 2>&1` in
7225*GNU* | *'with BFD'*)
7226 symcode='[ABCDGIRSTW]' ;;
7227esac
9c60689e 7228
a243b558
JF
7229# Transform an extracted symbol line into a proper C declaration.
7230# Some systems (esp. on ia64) link data and code symbols differently,
7231# so use this general approach.
7232lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9c60689e 7233
a243b558
JF
7234# Transform an extracted symbol line into symbol name and symbol address
7235lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7236lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
9c60689e 7237
a243b558
JF
7238# Handle CRLF in mingw tool chain
7239opt_cr=
7240case $build_os in
7241mingw*)
7242 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7243 ;;
7244esac
9c60689e 7245
a243b558
JF
7246# Try without a prefix underscore, then with it.
7247for ac_symprfx in "" "_"; do
9c60689e 7248
a243b558
JF
7249 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7250 symxfrm="\\1 $ac_symprfx\\2 \\2"
9c60689e 7251
a243b558
JF
7252 # Write the raw and C identifiers.
7253 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7254 # Fake it for dumpbin and say T for any non-static function
7255 # and D for any global variable.
7256 # Also find C++ and __fastcall symbols from MSVC++,
7257 # which start with @ or ?.
7258 lt_cv_sys_global_symbol_pipe="$AWK '"\
7259" {last_section=section; section=\$ 3};"\
7260" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7261" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7262" \$ 0!~/External *\|/{next};"\
7263" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7264" {if(hide[section]) next};"\
7265" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7266" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7267" s[1]~/^[@?]/{print s[1], s[1]; next};"\
7268" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7269" ' prfx=^$ac_symprfx"
7270 else
7271 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7272 fi
7273 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
9c60689e 7274
a243b558
JF
7275 # Check to see that the pipe works correctly.
7276 pipe_works=no
9c60689e 7277
00a96142 7278 rm -rf conftest*
a243b558
JF
7279 cat > conftest.$ac_ext <<_LT_EOF
7280#ifdef __cplusplus
7281extern "C" {
7282#endif
7283char nm_test_var;
7284void nm_test_func(void);
7285void nm_test_func(void){}
7286#ifdef __cplusplus
7287}
7288#endif
7289int main(){nm_test_var='a';nm_test_func();return(0);}
7290_LT_EOF
9c60689e 7291
a243b558
JF
7292 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7293 (eval $ac_compile) 2>&5
7294 ac_status=$?
7295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7296 test $ac_status = 0; }; then
7297 # Now try to grab the symbols.
7298 nlist=conftest.nm
7299 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7300 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7301 ac_status=$?
7302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7303 test $ac_status = 0; } && test -s "$nlist"; then
7304 # Try sorting and uniquifying the output.
7305 if sort "$nlist" | uniq > "$nlist"T; then
7306 mv -f "$nlist"T "$nlist"
7307 else
7308 rm -f "$nlist"T
7309 fi
9c60689e 7310
a243b558
JF
7311 # Make sure that we snagged all the symbols we need.
7312 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7313 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7314 cat <<_LT_EOF > conftest.$ac_ext
7315/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7316#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7317/* DATA imports from DLLs on WIN32 con't be const, because runtime
7318 relocations are performed -- see ld's documentation on pseudo-relocs. */
7319# define LT_DLSYM_CONST
7320#elif defined(__osf__)
7321/* This system does not cope well with relocations in const data. */
7322# define LT_DLSYM_CONST
7323#else
7324# define LT_DLSYM_CONST const
7325#endif
9c60689e 7326
a243b558
JF
7327#ifdef __cplusplus
7328extern "C" {
7329#endif
9c60689e 7330
a243b558
JF
7331_LT_EOF
7332 # Now generate the symbol file.
7333 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9c60689e 7334
a243b558 7335 cat <<_LT_EOF >> conftest.$ac_ext
9c60689e 7336
a243b558
JF
7337/* The mapping between symbol names and symbols. */
7338LT_DLSYM_CONST struct {
7339 const char *name;
7340 void *address;
7341}
7342lt__PROGRAM__LTX_preloaded_symbols[] =
7343{
7344 { "@PROGRAM@", (void *) 0 },
7345_LT_EOF
7346 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7347 cat <<\_LT_EOF >> conftest.$ac_ext
7348 {0, (void *) 0}
7349};
9c60689e 7350
a243b558
JF
7351/* This works around a problem in FreeBSD linker */
7352#ifdef FREEBSD_WORKAROUND
7353static const void *lt_preloaded_setup() {
7354 return lt__PROGRAM__LTX_preloaded_symbols;
7355}
7356#endif
9c60689e 7357
a243b558
JF
7358#ifdef __cplusplus
7359}
7360#endif
7361_LT_EOF
7362 # Now try linking the two files.
7363 mv conftest.$ac_objext conftstm.$ac_objext
7364 lt_globsym_save_LIBS=$LIBS
7365 lt_globsym_save_CFLAGS=$CFLAGS
7366 LIBS="conftstm.$ac_objext"
7367 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7368 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7369 (eval $ac_link) 2>&5
7370 ac_status=$?
7371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7372 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7373 pipe_works=yes
7374 fi
7375 LIBS=$lt_globsym_save_LIBS
7376 CFLAGS=$lt_globsym_save_CFLAGS
7377 else
7378 echo "cannot find nm_test_func in $nlist" >&5
7379 fi
7380 else
7381 echo "cannot find nm_test_var in $nlist" >&5
7382 fi
7383 else
7384 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7385 fi
7386 else
7387 echo "$progname: failed program was:" >&5
7388 cat conftest.$ac_ext >&5
7389 fi
7390 rm -rf conftest* conftst*
9c60689e 7391
a243b558
JF
7392 # Do not use the global_symbol_pipe unless it works.
7393 if test "$pipe_works" = yes; then
7394 break
7395 else
7396 lt_cv_sys_global_symbol_pipe=
7397 fi
7398done
9c60689e 7399
9c60689e 7400fi
9c60689e 7401
a243b558
JF
7402if test -z "$lt_cv_sys_global_symbol_pipe"; then
7403 lt_cv_sys_global_symbol_to_cdecl=
9c60689e 7404fi
a243b558
JF
7405if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7407$as_echo "failed" >&6; }
9c60689e 7408else
a243b558
JF
7409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7410$as_echo "ok" >&6; }
9c60689e
DWT
7411fi
7412
a243b558
JF
7413# Response file support.
7414if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7415 nm_file_list_spec='@'
7416elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7417 nm_file_list_spec='@'
9c60689e 7418fi
9c60689e 7419
9c60689e 7420
9c60689e 7421
9c60689e 7422
9c60689e 7423
9c60689e
DWT
7424
7425
9c60689e 7426
9c60689e 7427
9c60689e
DWT
7428
7429
7430
ee134472
JF
7431
7432
9c60689e
DWT
7433
7434
7435
7436
7437
7438
7439
7440
7441
549f29b5 7442
549f29b5
DWT
7443
7444
549f29b5 7445
a243b558
JF
7446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7447$as_echo_n "checking for sysroot... " >&6; }
549f29b5 7448
a243b558
JF
7449# Check whether --with-sysroot was given.
7450if test "${with_sysroot+set}" = set; then :
7451 withval=$with_sysroot;
9c60689e 7452else
a243b558 7453 with_sysroot=no
9c60689e
DWT
7454fi
7455
7456
a243b558
JF
7457lt_sysroot=
7458case ${with_sysroot} in #(
7459 yes)
7460 if test "$GCC" = yes; then
7461 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7462 fi
7463 ;; #(
7464 /*)
7465 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7466 ;; #(
7467 no|'')
7468 ;; #(
7469 *)
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7471$as_echo "${with_sysroot}" >&6; }
7472 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7473 ;;
7474esac
9c60689e 7475
a243b558
JF
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7477$as_echo "${lt_sysroot:-no}" >&6; }
9c60689e
DWT
7478
7479
7480
7481
7482
a243b558
JF
7483# Check whether --enable-libtool-lock was given.
7484if test "${enable_libtool_lock+set}" = set; then :
7485 enableval=$enable_libtool_lock;
9c60689e
DWT
7486fi
7487
a243b558 7488test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9c60689e 7489
a243b558
JF
7490# Some flags need to be propagated to the compiler or linker for good
7491# libtool support.
7492case $host in
7493ia64-*-hpux*)
7494 # Find out which ABI we are using.
7495 echo 'int i;' > conftest.$ac_ext
7496 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7497 (eval $ac_compile) 2>&5
7498 ac_status=$?
7499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7500 test $ac_status = 0; }; then
7501 case `/usr/bin/file conftest.$ac_objext` in
7502 *ELF-32*)
7503 HPUX_IA64_MODE="32"
7504 ;;
7505 *ELF-64*)
7506 HPUX_IA64_MODE="64"
7507 ;;
7508 esac
7509 fi
7510 rm -rf conftest*
7511 ;;
7512*-*-irix6*)
7513 # Find out which ABI we are using.
7514 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7515 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7516 (eval $ac_compile) 2>&5
7517 ac_status=$?
7518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7519 test $ac_status = 0; }; then
7520 if test "$lt_cv_prog_gnu_ld" = yes; then
7521 case `/usr/bin/file conftest.$ac_objext` in
7522 *32-bit*)
7523 LD="${LD-ld} -melf32bsmip"
7524 ;;
7525 *N32*)
7526 LD="${LD-ld} -melf32bmipn32"
7527 ;;
7528 *64-bit*)
7529 LD="${LD-ld} -melf64bmip"
7530 ;;
7531 esac
7532 else
7533 case `/usr/bin/file conftest.$ac_objext` in
7534 *32-bit*)
7535 LD="${LD-ld} -32"
7536 ;;
7537 *N32*)
7538 LD="${LD-ld} -n32"
7539 ;;
7540 *64-bit*)
7541 LD="${LD-ld} -64"
7542 ;;
7543 esac
7544 fi
7545 fi
7546 rm -rf conftest*
7547 ;;
9c60689e 7548
a243b558
JF
7549x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7550s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7551 # Find out which ABI we are using.
7552 echo 'int i;' > conftest.$ac_ext
7553 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7554 (eval $ac_compile) 2>&5
7555 ac_status=$?
7556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7557 test $ac_status = 0; }; then
7558 case `/usr/bin/file conftest.o` in
7559 *32-bit*)
7560 case $host in
7561 x86_64-*kfreebsd*-gnu)
7562 LD="${LD-ld} -m elf_i386_fbsd"
7563 ;;
7564 x86_64-*linux*)
7565 LD="${LD-ld} -m elf_i386"
7566 ;;
7567 ppc64-*linux*|powerpc64-*linux*)
7568 LD="${LD-ld} -m elf32ppclinux"
7569 ;;
7570 s390x-*linux*)
7571 LD="${LD-ld} -m elf_s390"
7572 ;;
7573 sparc64-*linux*)
7574 LD="${LD-ld} -m elf32_sparc"
7575 ;;
7576 esac
7577 ;;
7578 *64-bit*)
7579 case $host in
7580 x86_64-*kfreebsd*-gnu)
7581 LD="${LD-ld} -m elf_x86_64_fbsd"
7582 ;;
7583 x86_64-*linux*)
7584 LD="${LD-ld} -m elf_x86_64"
7585 ;;
7586 ppc*-*linux*|powerpc*-*linux*)
7587 LD="${LD-ld} -m elf64ppc"
7588 ;;
7589 s390*-*linux*|s390*-*tpf*)
7590 LD="${LD-ld} -m elf64_s390"
7591 ;;
7592 sparc*-*linux*)
7593 LD="${LD-ld} -m elf64_sparc"
7594 ;;
7595 esac
7596 ;;
7597 esac
7598 fi
7599 rm -rf conftest*
7600 ;;
9c60689e 7601
a243b558
JF
7602*-*-sco3.2v5*)
7603 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7604 SAVE_CFLAGS="$CFLAGS"
7605 CFLAGS="$CFLAGS -belf"
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7607$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7608if ${lt_cv_cc_needs_belf+:} false; then :
7609 $as_echo_n "(cached) " >&6
7610else
7611 ac_ext=c
7612ac_cpp='$CPP $CPPFLAGS'
7613ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7614ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7615ac_compiler_gnu=$ac_cv_c_compiler_gnu
9c60689e 7616
a243b558
JF
7617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7618/* end confdefs.h. */
9c60689e 7619
a243b558
JF
7620int
7621main ()
7622{
9c60689e 7623
a243b558
JF
7624 ;
7625 return 0;
7626}
7627_ACEOF
7628if ac_fn_c_try_link "$LINENO"; then :
7629 lt_cv_cc_needs_belf=yes
9c60689e 7630else
a243b558 7631 lt_cv_cc_needs_belf=no
9c60689e 7632fi
a243b558
JF
7633rm -f core conftest.err conftest.$ac_objext \
7634 conftest$ac_exeext conftest.$ac_ext
7635 ac_ext=c
7636ac_cpp='$CPP $CPPFLAGS'
7637ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7638ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7639ac_compiler_gnu=$ac_cv_c_compiler_gnu
9c60689e 7640
a243b558
JF
7641fi
7642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7643$as_echo "$lt_cv_cc_needs_belf" >&6; }
7644 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7645 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7646 CFLAGS="$SAVE_CFLAGS"
7647 fi
7648 ;;
7649*-*solaris*)
7650 # Find out which ABI we are using.
7651 echo 'int i;' > conftest.$ac_ext
7652 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7653 (eval $ac_compile) 2>&5
7654 ac_status=$?
7655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7656 test $ac_status = 0; }; then
7657 case `/usr/bin/file conftest.o` in
7658 *64-bit*)
7659 case $lt_cv_prog_gnu_ld in
7660 yes*)
7661 case $host in
7662 i?86-*-solaris*)
7663 LD="${LD-ld} -m elf_x86_64"
7664 ;;
7665 sparc*-*-solaris*)
7666 LD="${LD-ld} -m elf64_sparc"
7667 ;;
7668 esac
7669 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7670 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7671 LD="${LD-ld}_sol2"
7672 fi
7673 ;;
7674 *)
7675 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7676 LD="${LD-ld} -64"
7677 fi
7678 ;;
7679 esac
7680 ;;
7681 esac
7682 fi
7683 rm -rf conftest*
7684 ;;
7685esac
9c60689e 7686
a243b558 7687need_locks="$enable_libtool_lock"
9c60689e 7688
a243b558
JF
7689if test -n "$ac_tool_prefix"; then
7690 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7691set dummy ${ac_tool_prefix}mt; ac_word=$2
7692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7693$as_echo_n "checking for $ac_word... " >&6; }
7694if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7695 $as_echo_n "(cached) " >&6
7696else
7697 if test -n "$MANIFEST_TOOL"; then
7698 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7699else
7700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7701for as_dir in $PATH
7702do
7703 IFS=$as_save_IFS
7704 test -z "$as_dir" && as_dir=.
7705 for ac_exec_ext in '' $ac_executable_extensions; do
7706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7707 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7709 break 2
7710 fi
7711done
7712 done
7713IFS=$as_save_IFS
9c60689e 7714
a243b558
JF
7715fi
7716fi
7717MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7718if test -n "$MANIFEST_TOOL"; then
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7720$as_echo "$MANIFEST_TOOL" >&6; }
7721else
7722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7723$as_echo "no" >&6; }
7724fi
9c60689e
DWT
7725
7726
a243b558
JF
7727fi
7728if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7729 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7730 # Extract the first word of "mt", so it can be a program name with args.
7731set dummy mt; ac_word=$2
7732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7733$as_echo_n "checking for $ac_word... " >&6; }
7734if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7735 $as_echo_n "(cached) " >&6
7736else
7737 if test -n "$ac_ct_MANIFEST_TOOL"; then
7738 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7739else
7740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7741for as_dir in $PATH
7742do
7743 IFS=$as_save_IFS
7744 test -z "$as_dir" && as_dir=.
7745 for ac_exec_ext in '' $ac_executable_extensions; do
7746 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7747 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7749 break 2
7750 fi
7751done
7752 done
7753IFS=$as_save_IFS
9c60689e 7754
a243b558
JF
7755fi
7756fi
7757ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7758if test -n "$ac_ct_MANIFEST_TOOL"; then
7759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7760$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7761else
7762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7763$as_echo "no" >&6; }
7764fi
9c60689e 7765
a243b558
JF
7766 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7767 MANIFEST_TOOL=":"
7768 else
7769 case $cross_compiling:$ac_tool_warned in
7770yes:)
7771{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7772$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7773ac_tool_warned=yes ;;
7774esac
7775 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7776 fi
7777else
7778 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7779fi
9c60689e 7780
a243b558
JF
7781test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7783$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7784if ${lt_cv_path_mainfest_tool+:} false; then :
7785 $as_echo_n "(cached) " >&6
7786else
7787 lt_cv_path_mainfest_tool=no
7788 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7789 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7790 cat conftest.err >&5
7791 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7792 lt_cv_path_mainfest_tool=yes
7793 fi
00a96142 7794 rm -rf conftest*
a243b558
JF
7795fi
7796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7797$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7798if test "x$lt_cv_path_mainfest_tool" != xyes; then
7799 MANIFEST_TOOL=:
7800fi
9c60689e
DWT
7801
7802
7803
7804
7805
7806
a243b558
JF
7807 case $host_os in
7808 rhapsody* | darwin*)
7809 if test -n "$ac_tool_prefix"; then
7810 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7811set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7813$as_echo_n "checking for $ac_word... " >&6; }
7814if ${ac_cv_prog_DSYMUTIL+:} false; then :
7815 $as_echo_n "(cached) " >&6
7816else
7817 if test -n "$DSYMUTIL"; then
7818 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7819else
7820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7821for as_dir in $PATH
7822do
7823 IFS=$as_save_IFS
7824 test -z "$as_dir" && as_dir=.
7825 for ac_exec_ext in '' $ac_executable_extensions; do
7826 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7827 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7829 break 2
7830 fi
7831done
7832 done
7833IFS=$as_save_IFS
9c60689e 7834
a243b558
JF
7835fi
7836fi
7837DSYMUTIL=$ac_cv_prog_DSYMUTIL
7838if test -n "$DSYMUTIL"; then
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7840$as_echo "$DSYMUTIL" >&6; }
7841else
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7843$as_echo "no" >&6; }
7844fi
9c60689e
DWT
7845
7846
9c60689e 7847fi
a243b558
JF
7848if test -z "$ac_cv_prog_DSYMUTIL"; then
7849 ac_ct_DSYMUTIL=$DSYMUTIL
7850 # Extract the first word of "dsymutil", so it can be a program name with args.
7851set dummy dsymutil; ac_word=$2
7852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7853$as_echo_n "checking for $ac_word... " >&6; }
7854if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9c60689e
DWT
7855 $as_echo_n "(cached) " >&6
7856else
a243b558
JF
7857 if test -n "$ac_ct_DSYMUTIL"; then
7858 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9c60689e 7859else
a243b558
JF
7860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7861for as_dir in $PATH
7862do
7863 IFS=$as_save_IFS
7864 test -z "$as_dir" && as_dir=.
7865 for ac_exec_ext in '' $ac_executable_extensions; do
7866 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7867 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7869 break 2
7870 fi
7871done
7872 done
7873IFS=$as_save_IFS
7874
9c60689e 7875fi
9c60689e 7876fi
a243b558
JF
7877ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7878if test -n "$ac_ct_DSYMUTIL"; then
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7880$as_echo "$ac_ct_DSYMUTIL" >&6; }
7881else
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7883$as_echo "no" >&6; }
7884fi
9c60689e 7885
a243b558
JF
7886 if test "x$ac_ct_DSYMUTIL" = x; then
7887 DSYMUTIL=":"
7888 else
7889 case $cross_compiling:$ac_tool_warned in
7890yes:)
7891{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7892$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7893ac_tool_warned=yes ;;
9c60689e 7894esac
a243b558
JF
7895 DSYMUTIL=$ac_ct_DSYMUTIL
7896 fi
7897else
7898 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7899fi
9c60689e 7900
a243b558
JF
7901 if test -n "$ac_tool_prefix"; then
7902 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7903set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7905$as_echo_n "checking for $ac_word... " >&6; }
7906if ${ac_cv_prog_NMEDIT+:} false; then :
9c60689e
DWT
7907 $as_echo_n "(cached) " >&6
7908else
a243b558
JF
7909 if test -n "$NMEDIT"; then
7910 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7911else
7912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7913for as_dir in $PATH
7914do
7915 IFS=$as_save_IFS
7916 test -z "$as_dir" && as_dir=.
7917 for ac_exec_ext in '' $ac_executable_extensions; do
7918 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7919 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7921 break 2
7922 fi
7923done
9c60689e 7924 done
a243b558 7925IFS=$as_save_IFS
9c60689e 7926
a243b558
JF
7927fi
7928fi
7929NMEDIT=$ac_cv_prog_NMEDIT
7930if test -n "$NMEDIT"; then
7931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7932$as_echo "$NMEDIT" >&6; }
9c60689e
DWT
7933else
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7935$as_echo "no" >&6; }
7936fi
7937
7938
a243b558
JF
7939fi
7940if test -z "$ac_cv_prog_NMEDIT"; then
7941 ac_ct_NMEDIT=$NMEDIT
7942 # Extract the first word of "nmedit", so it can be a program name with args.
7943set dummy nmedit; ac_word=$2
7944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7945$as_echo_n "checking for $ac_word... " >&6; }
7946if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9c60689e
DWT
7947 $as_echo_n "(cached) " >&6
7948else
a243b558
JF
7949 if test -n "$ac_ct_NMEDIT"; then
7950 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7951else
7952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7953for as_dir in $PATH
7954do
7955 IFS=$as_save_IFS
7956 test -z "$as_dir" && as_dir=.
7957 for ac_exec_ext in '' $ac_executable_extensions; do
7958 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7959 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7961 break 2
7962 fi
7963done
9c60689e 7964 done
a243b558 7965IFS=$as_save_IFS
9c60689e 7966
a243b558
JF
7967fi
7968fi
7969ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7970if test -n "$ac_ct_NMEDIT"; then
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7972$as_echo "$ac_ct_NMEDIT" >&6; }
9c60689e
DWT
7973else
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7975$as_echo "no" >&6; }
7976fi
7977
a243b558
JF
7978 if test "x$ac_ct_NMEDIT" = x; then
7979 NMEDIT=":"
9c60689e 7980 else
a243b558
JF
7981 case $cross_compiling:$ac_tool_warned in
7982yes:)
7983{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7984$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7985ac_tool_warned=yes ;;
7986esac
7987 NMEDIT=$ac_ct_NMEDIT
9c60689e 7988 fi
a243b558
JF
7989else
7990 NMEDIT="$ac_cv_prog_NMEDIT"
9c60689e
DWT
7991fi
7992
a243b558
JF
7993 if test -n "$ac_tool_prefix"; then
7994 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7995set dummy ${ac_tool_prefix}lipo; ac_word=$2
7996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7997$as_echo_n "checking for $ac_word... " >&6; }
7998if ${ac_cv_prog_LIPO+:} false; then :
7999 $as_echo_n "(cached) " >&6
8000else
8001 if test -n "$LIPO"; then
8002 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8003else
8004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8005for as_dir in $PATH
8006do
8007 IFS=$as_save_IFS
8008 test -z "$as_dir" && as_dir=.
8009 for ac_exec_ext in '' $ac_executable_extensions; do
8010 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8011 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8013 break 2
8014 fi
8015done
8016 done
8017IFS=$as_save_IFS
9c60689e 8018
a243b558
JF
8019fi
8020fi
8021LIPO=$ac_cv_prog_LIPO
8022if test -n "$LIPO"; then
8023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8024$as_echo "$LIPO" >&6; }
8025else
8026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8027$as_echo "no" >&6; }
8028fi
9c60689e 8029
9c60689e 8030
a243b558
JF
8031fi
8032if test -z "$ac_cv_prog_LIPO"; then
8033 ac_ct_LIPO=$LIPO
8034 # Extract the first word of "lipo", so it can be a program name with args.
8035set dummy lipo; ac_word=$2
8036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8037$as_echo_n "checking for $ac_word... " >&6; }
8038if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9c60689e
DWT
8039 $as_echo_n "(cached) " >&6
8040else
a243b558
JF
8041 if test -n "$ac_ct_LIPO"; then
8042 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8043else
8044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8045for as_dir in $PATH
8046do
8047 IFS=$as_save_IFS
8048 test -z "$as_dir" && as_dir=.
8049 for ac_exec_ext in '' $ac_executable_extensions; do
8050 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8051 ac_cv_prog_ac_ct_LIPO="lipo"
8052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8053 break 2
8054 fi
8055done
8056 done
8057IFS=$as_save_IFS
9c60689e
DWT
8058
8059fi
a243b558
JF
8060fi
8061ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8062if test -n "$ac_ct_LIPO"; then
8063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8064$as_echo "$ac_ct_LIPO" >&6; }
9c60689e 8065else
a243b558
JF
8066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8067$as_echo "no" >&6; }
9c60689e
DWT
8068fi
8069
a243b558
JF
8070 if test "x$ac_ct_LIPO" = x; then
8071 LIPO=":"
8072 else
8073 case $cross_compiling:$ac_tool_warned in
8074yes:)
8075{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8076$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8077ac_tool_warned=yes ;;
8078esac
8079 LIPO=$ac_ct_LIPO
8080 fi
8081else
8082 LIPO="$ac_cv_prog_LIPO"
9c60689e
DWT
8083fi
8084
a243b558
JF
8085 if test -n "$ac_tool_prefix"; then
8086 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8087set dummy ${ac_tool_prefix}otool; ac_word=$2
8088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8089$as_echo_n "checking for $ac_word... " >&6; }
8090if ${ac_cv_prog_OTOOL+:} false; then :
8091 $as_echo_n "(cached) " >&6
8092else
8093 if test -n "$OTOOL"; then
8094 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8095else
8096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8097for as_dir in $PATH
8098do
8099 IFS=$as_save_IFS
8100 test -z "$as_dir" && as_dir=.
8101 for ac_exec_ext in '' $ac_executable_extensions; do
8102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8103 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8105 break 2
8106 fi
8107done
8108 done
8109IFS=$as_save_IFS
9c60689e 8110
a243b558
JF
8111fi
8112fi
8113OTOOL=$ac_cv_prog_OTOOL
8114if test -n "$OTOOL"; then
8115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8116$as_echo "$OTOOL" >&6; }
8117else
8118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8119$as_echo "no" >&6; }
8120fi
9c60689e
DWT
8121
8122
a243b558
JF
8123fi
8124if test -z "$ac_cv_prog_OTOOL"; then
8125 ac_ct_OTOOL=$OTOOL
8126 # Extract the first word of "otool", so it can be a program name with args.
8127set dummy otool; ac_word=$2
8128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8129$as_echo_n "checking for $ac_word... " >&6; }
8130if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8131 $as_echo_n "(cached) " >&6
8132else
8133 if test -n "$ac_ct_OTOOL"; then
8134 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8135else
8136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8137for as_dir in $PATH
8138do
8139 IFS=$as_save_IFS
8140 test -z "$as_dir" && as_dir=.
8141 for ac_exec_ext in '' $ac_executable_extensions; do
8142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8143 ac_cv_prog_ac_ct_OTOOL="otool"
8144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8145 break 2
8146 fi
8147done
8148 done
8149IFS=$as_save_IFS
9c60689e 8150
a243b558
JF
8151fi
8152fi
8153ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8154if test -n "$ac_ct_OTOOL"; then
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8156$as_echo "$ac_ct_OTOOL" >&6; }
8157else
8158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8159$as_echo "no" >&6; }
8160fi
9c60689e 8161
a243b558
JF
8162 if test "x$ac_ct_OTOOL" = x; then
8163 OTOOL=":"
8164 else
8165 case $cross_compiling:$ac_tool_warned in
8166yes:)
8167{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8168$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8169ac_tool_warned=yes ;;
8170esac
8171 OTOOL=$ac_ct_OTOOL
8172 fi
8173else
8174 OTOOL="$ac_cv_prog_OTOOL"
8175fi
9c60689e 8176
a243b558
JF
8177 if test -n "$ac_tool_prefix"; then
8178 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8179set dummy ${ac_tool_prefix}otool64; ac_word=$2
8180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8181$as_echo_n "checking for $ac_word... " >&6; }
8182if ${ac_cv_prog_OTOOL64+:} false; then :
8183 $as_echo_n "(cached) " >&6
8184else
8185 if test -n "$OTOOL64"; then
8186 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8187else
8188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8189for as_dir in $PATH
8190do
8191 IFS=$as_save_IFS
8192 test -z "$as_dir" && as_dir=.
8193 for ac_exec_ext in '' $ac_executable_extensions; do
8194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8195 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8197 break 2
8198 fi
8199done
8200 done
8201IFS=$as_save_IFS
9c60689e 8202
a243b558
JF
8203fi
8204fi
8205OTOOL64=$ac_cv_prog_OTOOL64
8206if test -n "$OTOOL64"; then
8207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8208$as_echo "$OTOOL64" >&6; }
8209else
8210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8211$as_echo "no" >&6; }
8212fi
9c60689e 8213
9c60689e 8214
a243b558
JF
8215fi
8216if test -z "$ac_cv_prog_OTOOL64"; then
8217 ac_ct_OTOOL64=$OTOOL64
8218 # Extract the first word of "otool64", so it can be a program name with args.
8219set dummy otool64; ac_word=$2
8220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8221$as_echo_n "checking for $ac_word... " >&6; }
8222if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8223 $as_echo_n "(cached) " >&6
8224else
8225 if test -n "$ac_ct_OTOOL64"; then
8226 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8227else
8228as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8229for as_dir in $PATH
8230do
8231 IFS=$as_save_IFS
8232 test -z "$as_dir" && as_dir=.
8233 for ac_exec_ext in '' $ac_executable_extensions; do
8234 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8235 ac_cv_prog_ac_ct_OTOOL64="otool64"
8236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8237 break 2
8238 fi
8239done
8240 done
8241IFS=$as_save_IFS
9c60689e 8242
a243b558
JF
8243fi
8244fi
8245ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8246if test -n "$ac_ct_OTOOL64"; then
8247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8248$as_echo "$ac_ct_OTOOL64" >&6; }
8249else
8250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8251$as_echo "no" >&6; }
8252fi
9c60689e 8253
a243b558
JF
8254 if test "x$ac_ct_OTOOL64" = x; then
8255 OTOOL64=":"
8256 else
8257 case $cross_compiling:$ac_tool_warned in
8258yes:)
8259{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8260$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8261ac_tool_warned=yes ;;
8262esac
8263 OTOOL64=$ac_ct_OTOOL64
8264 fi
8265else
8266 OTOOL64="$ac_cv_prog_OTOOL64"
8267fi
ee134472 8268
9c60689e 8269
9c60689e 8270
9c60689e 8271
9c60689e 8272
9c60689e 8273
ee134472 8274
9c60689e 8275
9c60689e 8276
9c60689e 8277
9c60689e 8278
9c60689e 8279
9c60689e 8280
9c60689e 8281
9c60689e 8282
9c60689e 8283
9c60689e 8284
9c60689e 8285
9c60689e 8286
9c60689e 8287
9c60689e 8288
9c60689e 8289
9c60689e 8290
9c60689e 8291
9c60689e 8292
a243b558
JF
8293
8294
8295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8296$as_echo_n "checking for -single_module linker flag... " >&6; }
8297if ${lt_cv_apple_cc_single_mod+:} false; then :
ee134472
JF
8298 $as_echo_n "(cached) " >&6
8299else
a243b558
JF
8300 lt_cv_apple_cc_single_mod=no
8301 if test -z "${LT_MULTI_MODULE}"; then
8302 # By default we will add the -single_module flag. You can override
8303 # by either setting the environment variable LT_MULTI_MODULE
8304 # non-empty at configure time, or by adding -multi_module to the
8305 # link flags.
8306 rm -rf libconftest.dylib*
8307 echo "int foo(void){return 1;}" > conftest.c
8308 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8309-dynamiclib -Wl,-single_module conftest.c" >&5
8310 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8311 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8312 _lt_result=$?
8313 # If there is a non-empty error log, and "single_module"
8314 # appears in it, assume the flag caused a linker warning
8315 if test -s conftest.err && $GREP single_module conftest.err; then
8316 cat conftest.err >&5
8317 # Otherwise, if the output was created with a 0 exit code from
8318 # the compiler, it worked.
8319 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8320 lt_cv_apple_cc_single_mod=yes
8321 else
8322 cat conftest.err >&5
8323 fi
8324 rm -rf libconftest.dylib*
8325 rm -f conftest.*
8326 fi
ee134472 8327fi
a243b558
JF
8328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8329$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9c60689e 8330
a243b558
JF
8331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8332$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8333if ${lt_cv_ld_exported_symbols_list+:} false; then :
9c60689e
DWT
8334 $as_echo_n "(cached) " >&6
8335else
a243b558
JF
8336 lt_cv_ld_exported_symbols_list=no
8337 save_LDFLAGS=$LDFLAGS
8338 echo "_main" > conftest.sym
8339 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8341/* end confdefs.h. */
9c60689e 8342
a243b558
JF
8343int
8344main ()
8345{
9c60689e 8346
a243b558
JF
8347 ;
8348 return 0;
8349}
8350_ACEOF
8351if ac_fn_c_try_link "$LINENO"; then :
8352 lt_cv_ld_exported_symbols_list=yes
9c60689e 8353else
a243b558 8354 lt_cv_ld_exported_symbols_list=no
9c60689e 8355fi
a243b558
JF
8356rm -f core conftest.err conftest.$ac_objext \
8357 conftest$ac_exeext conftest.$ac_ext
8358 LDFLAGS="$save_LDFLAGS"
9c60689e
DWT
8359
8360fi
a243b558
JF
8361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8362$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9c60689e 8363
a243b558
JF
8364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8365$as_echo_n "checking for -force_load linker flag... " >&6; }
8366if ${lt_cv_ld_force_load+:} false; then :
9c60689e
DWT
8367 $as_echo_n "(cached) " >&6
8368else
a243b558
JF
8369 lt_cv_ld_force_load=no
8370 cat > conftest.c << _LT_EOF
8371int forced_loaded() { return 2;}
8372_LT_EOF
8373 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8374 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8375 echo "$AR cru libconftest.a conftest.o" >&5
8376 $AR cru libconftest.a conftest.o 2>&5
8377 echo "$RANLIB libconftest.a" >&5
8378 $RANLIB libconftest.a 2>&5
8379 cat > conftest.c << _LT_EOF
8380int main() { return 0;}
8381_LT_EOF
8382 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8383 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8384 _lt_result=$?
8385 if test -s conftest.err && $GREP force_load conftest.err; then
8386 cat conftest.err >&5
8387 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8388 lt_cv_ld_force_load=yes
8389 else
8390 cat conftest.err >&5
8391 fi
8392 rm -f conftest.err libconftest.a conftest conftest.c
8393 rm -rf conftest.dSYM
9c60689e
DWT
8394
8395fi
a243b558
JF
8396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8397$as_echo "$lt_cv_ld_force_load" >&6; }
8398 case $host_os in
8399 rhapsody* | darwin1.[012])
8400 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8401 darwin1.*)
8402 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8403 darwin*) # darwin 5.x on
8404 # if running on 10.5 or later, the deployment target defaults
8405 # to the OS version, if on x86, and 10.4, the deployment
8406 # target defaults to 10.4. Don't you love it?
8407 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8408 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8409 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8410 10.[012]*)
8411 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8412 10.*)
8413 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8414 esac
8415 ;;
8416 esac
8417 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8418 _lt_dar_single_mod='$single_module'
8419 fi
8420 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8421 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8422 else
8423 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8424 fi
8425 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8426 _lt_dsymutil='~$DSYMUTIL $lib || :'
8427 else
8428 _lt_dsymutil=
8429 fi
8430 ;;
8431 esac
9c60689e 8432
a243b558
JF
8433ac_ext=c
8434ac_cpp='$CPP $CPPFLAGS'
8435ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8436ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8437ac_compiler_gnu=$ac_cv_c_compiler_gnu
8438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8439$as_echo_n "checking how to run the C preprocessor... " >&6; }
8440# On Suns, sometimes $CPP names a directory.
8441if test -n "$CPP" && test -d "$CPP"; then
8442 CPP=
9c60689e 8443fi
a243b558
JF
8444if test -z "$CPP"; then
8445 if ${ac_cv_prog_CPP+:} false; then :
8446 $as_echo_n "(cached) " >&6
8447else
8448 # Double quotes because CPP needs to be expanded
8449 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8450 do
8451 ac_preproc_ok=false
8452for ac_c_preproc_warn_flag in '' yes
8453do
8454 # Use a header file that comes with gcc, so configuring glibc
8455 # with a fresh cross-compiler works.
8456 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8457 # <limits.h> exists even on freestanding compilers.
8458 # On the NeXT, cc -E runs the code through the compiler's parser,
8459 # not just through cpp. "Syntax error" is here to catch this case.
8460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8461/* end confdefs.h. */
8462#ifdef __STDC__
8463# include <limits.h>
8464#else
8465# include <assert.h>
8466#endif
8467 Syntax error
8468_ACEOF
8469if ac_fn_c_try_cpp "$LINENO"; then :
9c60689e 8470
a243b558
JF
8471else
8472 # Broken: fails on valid input.
8473continue
8474fi
8475rm -f conftest.err conftest.i conftest.$ac_ext
9c60689e 8476
a243b558
JF
8477 # OK, works on sane cases. Now check whether nonexistent headers
8478 # can be detected and how.
8479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8480/* end confdefs.h. */
8481#include <ac_nonexistent.h>
8482_ACEOF
8483if ac_fn_c_try_cpp "$LINENO"; then :
8484 # Broken: success on invalid input.
8485continue
8486else
8487 # Passes both tests.
8488ac_preproc_ok=:
8489break
8490fi
8491rm -f conftest.err conftest.i conftest.$ac_ext
9c60689e 8492
a243b558
JF
8493done
8494# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8495rm -f conftest.i conftest.err conftest.$ac_ext
8496if $ac_preproc_ok; then :
8497 break
8498fi
9c60689e 8499
a243b558
JF
8500 done
8501 ac_cv_prog_CPP=$CPP
9c60689e 8502
a243b558
JF
8503fi
8504 CPP=$ac_cv_prog_CPP
9c60689e 8505else
a243b558
JF
8506 ac_cv_prog_CPP=$CPP
8507fi
8508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8509$as_echo "$CPP" >&6; }
8510ac_preproc_ok=false
8511for ac_c_preproc_warn_flag in '' yes
8512do
8513 # Use a header file that comes with gcc, so configuring glibc
8514 # with a fresh cross-compiler works.
8515 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8516 # <limits.h> exists even on freestanding compilers.
8517 # On the NeXT, cc -E runs the code through the compiler's parser,
8518 # not just through cpp. "Syntax error" is here to catch this case.
8519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8520/* end confdefs.h. */
8521#ifdef __STDC__
8522# include <limits.h>
8523#else
8524# include <assert.h>
8525#endif
8526 Syntax error
8527_ACEOF
8528if ac_fn_c_try_cpp "$LINENO"; then :
9c60689e 8529
a243b558
JF
8530else
8531 # Broken: fails on valid input.
8532continue
9c60689e 8533fi
a243b558 8534rm -f conftest.err conftest.i conftest.$ac_ext
9c60689e 8535
a243b558
JF
8536 # OK, works on sane cases. Now check whether nonexistent headers
8537 # can be detected and how.
8538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8539/* end confdefs.h. */
8540#include <ac_nonexistent.h>
8541_ACEOF
8542if ac_fn_c_try_cpp "$LINENO"; then :
8543 # Broken: success on invalid input.
8544continue
8545else
8546 # Passes both tests.
8547ac_preproc_ok=:
8548break
8549fi
8550rm -f conftest.err conftest.i conftest.$ac_ext
9c60689e 8551
a243b558
JF
8552done
8553# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8554rm -f conftest.i conftest.err conftest.$ac_ext
8555if $ac_preproc_ok; then :
9c60689e 8556
a243b558
JF
8557else
8558 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8559$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8560as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8561See \`config.log' for more details" "$LINENO" 5; }
8562fi
9c60689e 8563
a243b558
JF
8564ac_ext=c
8565ac_cpp='$CPP $CPPFLAGS'
8566ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8567ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8568ac_compiler_gnu=$ac_cv_c_compiler_gnu
9c60689e
DWT
8569
8570
a243b558
JF
8571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8572$as_echo_n "checking for ANSI C header files... " >&6; }
8573if ${ac_cv_header_stdc+:} false; then :
9c60689e
DWT
8574 $as_echo_n "(cached) " >&6
8575else
a243b558
JF
8576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8577/* end confdefs.h. */
8578#include <stdlib.h>
8579#include <stdarg.h>
8580#include <string.h>
8581#include <float.h>
9c60689e 8582
a243b558
JF
8583int
8584main ()
8585{
9c60689e 8586
a243b558
JF
8587 ;
8588 return 0;
8589}
8590_ACEOF
8591if ac_fn_c_try_compile "$LINENO"; then :
8592 ac_cv_header_stdc=yes
8593else
8594 ac_cv_header_stdc=no
9c60689e 8595fi
a243b558
JF
8596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8597
8598if test $ac_cv_header_stdc = yes; then
8599 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8601/* end confdefs.h. */
8602#include <string.h>
9c60689e 8603
a243b558
JF
8604_ACEOF
8605if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8606 $EGREP "memchr" >/dev/null 2>&1; then :
9c60689e 8607
a243b558
JF
8608else
8609 ac_cv_header_stdc=no
8610fi
8611rm -f conftest*
9c60689e 8612
a243b558
JF
8613fi
8614
8615if test $ac_cv_header_stdc = yes; then
8616 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8618/* end confdefs.h. */
8619#include <stdlib.h>
8620
8621_ACEOF
8622if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8623 $EGREP "free" >/dev/null 2>&1; then :
9c60689e 8624
9c60689e 8625else
a243b558 8626 ac_cv_header_stdc=no
9c60689e 8627fi
a243b558 8628rm -f conftest*
9c60689e 8629
a243b558 8630fi
9c60689e 8631
a243b558
JF
8632if test $ac_cv_header_stdc = yes; then
8633 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8634 if test "$cross_compiling" = yes; then :
8635 :
8636else
8637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8638/* end confdefs.h. */
8639#include <ctype.h>
8640#include <stdlib.h>
8641#if ((' ' & 0x0FF) == 0x020)
8642# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8643# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8644#else
8645# define ISLOWER(c) \
8646 (('a' <= (c) && (c) <= 'i') \
8647 || ('j' <= (c) && (c) <= 'r') \
8648 || ('s' <= (c) && (c) <= 'z'))
8649# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8650#endif
9c60689e 8651
a243b558
JF
8652#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8653int
8654main ()
8655{
8656 int i;
8657 for (i = 0; i < 256; i++)
8658 if (XOR (islower (i), ISLOWER (i))
8659 || toupper (i) != TOUPPER (i))
8660 return 2;
8661 return 0;
8662}
8663_ACEOF
8664if ac_fn_c_try_run "$LINENO"; then :
9c60689e 8665
a243b558
JF
8666else
8667 ac_cv_header_stdc=no
8668fi
8669rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8670 conftest.$ac_objext conftest.beam conftest.$ac_ext
8671fi
9c60689e 8672
a243b558
JF
8673fi
8674fi
8675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8676$as_echo "$ac_cv_header_stdc" >&6; }
8677if test $ac_cv_header_stdc = yes; then
9c60689e 8678
a243b558 8679$as_echo "#define STDC_HEADERS 1" >>confdefs.h
9c60689e 8680
a243b558 8681fi
9c60689e 8682
a243b558
JF
8683# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8684for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8685 inttypes.h stdint.h unistd.h
8686do :
8687 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8688ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8689"
8690if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8691 cat >>confdefs.h <<_ACEOF
8692#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8693_ACEOF
9c60689e 8694
a243b558 8695fi
ee134472 8696
a243b558 8697done
ee134472 8698
9c60689e 8699
a243b558
JF
8700for ac_header in dlfcn.h
8701do :
8702 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8703"
8704if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8705 cat >>confdefs.h <<_ACEOF
8706#define HAVE_DLFCN_H 1
8707_ACEOF
9c60689e 8708
a243b558 8709fi
9c60689e 8710
a243b558 8711done
9c60689e 8712
9c60689e 8713
9c60689e 8714
9c60689e 8715
a243b558
JF
8716func_stripname_cnf ()
8717{
8718 case ${2} in
8719 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
8720 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8721 esac
8722} # func_stripname_cnf
9c60689e 8723
9c60689e 8724
ee134472 8725
a243b558
JF
8726
8727
8728# Set options
8729# Check whether --enable-static was given.
8730if test "${enable_static+set}" = set; then :
8731 enableval=$enable_static; p=${PACKAGE-default}
8732 case $enableval in
8733 yes) enable_static=yes ;;
8734 no) enable_static=no ;;
8735 *)
8736 enable_static=no
8737 # Look at the argument we got. We use all the common list separators.
8738 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8739 for pkg in $enableval; do
8740 IFS="$lt_save_ifs"
8741 if test "X$pkg" = "X$p"; then
8742 enable_static=yes
8743 fi
8744 done
8745 IFS="$lt_save_ifs"
9c60689e 8746 ;;
a243b558
JF
8747 esac
8748else
8749 enable_static=no
8750fi
9c60689e 8751
9c60689e 8752
9c60689e 8753
9c60689e 8754
9c60689e 8755
9c60689e 8756
9c60689e 8757
9c60689e 8758
9c60689e 8759
9c60689e 8760
a243b558 8761 enable_dlopen=no
9c60689e 8762
9c60689e 8763
a243b558
JF
8764 enable_win32_dll=no
8765
8766
8767 # Check whether --enable-shared was given.
8768if test "${enable_shared+set}" = set; then :
8769 enableval=$enable_shared; p=${PACKAGE-default}
8770 case $enableval in
8771 yes) enable_shared=yes ;;
8772 no) enable_shared=no ;;
9c60689e 8773 *)
a243b558
JF
8774 enable_shared=no
8775 # Look at the argument we got. We use all the common list separators.
8776 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8777 for pkg in $enableval; do
8778 IFS="$lt_save_ifs"
8779 if test "X$pkg" = "X$p"; then
8780 enable_shared=yes
8781 fi
8782 done
8783 IFS="$lt_save_ifs"
9c60689e
DWT
8784 ;;
8785 esac
a243b558
JF
8786else
8787 enable_shared=yes
8788fi
9c60689e 8789
9c60689e 8790
9c60689e 8791
9c60689e 8792
9c60689e 8793
9c60689e 8794
9c60689e 8795
9c60689e 8796
9c60689e 8797
9c60689e 8798
9c60689e 8799
a243b558
JF
8800# Check whether --with-pic was given.
8801if test "${with_pic+set}" = set; then :
8802 withval=$with_pic; lt_p=${PACKAGE-default}
8803 case $withval in
8804 yes|no) pic_mode=$withval ;;
8805 *)
8806 pic_mode=default
8807 # Look at the argument we got. We use all the common list separators.
8808 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8809 for lt_pkg in $withval; do
8810 IFS="$lt_save_ifs"
8811 if test "X$lt_pkg" = "X$lt_p"; then
8812 pic_mode=yes
8813 fi
8814 done
8815 IFS="$lt_save_ifs"
8816 ;;
8817 esac
8818else
8819 pic_mode=default
9c60689e 8820fi
ee134472 8821
ee134472 8822
a243b558 8823test -z "$pic_mode" && pic_mode=default
9c60689e 8824
9c60689e 8825
9c60689e 8826
9c60689e 8827
ee134472 8828
ee134472 8829
9c60689e 8830
a243b558
JF
8831 # Check whether --enable-fast-install was given.
8832if test "${enable_fast_install+set}" = set; then :
8833 enableval=$enable_fast_install; p=${PACKAGE-default}
8834 case $enableval in
8835 yes) enable_fast_install=yes ;;
8836 no) enable_fast_install=no ;;
8837 *)
8838 enable_fast_install=no
8839 # Look at the argument we got. We use all the common list separators.
8840 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8841 for pkg in $enableval; do
8842 IFS="$lt_save_ifs"
8843 if test "X$pkg" = "X$p"; then
8844 enable_fast_install=yes
9c60689e 8845 fi
a243b558
JF
8846 done
8847 IFS="$lt_save_ifs"
9c60689e 8848 ;;
a243b558
JF
8849 esac
8850else
8851 enable_fast_install=yes
8852fi
9c60689e 8853
9c60689e 8854
9c60689e 8855
9c60689e 8856
9c60689e
DWT
8857
8858
53ba6704 8859
9c60689e 8860
9c60689e 8861
9c60689e 8862
9c60689e 8863
a243b558
JF
8864# This can be used to rebuild libtool when needed
8865LIBTOOL_DEPS="$ltmain"
9c60689e 8866
a243b558
JF
8867# Always use our own libtool.
8868LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9c60689e 8869
9c60689e 8870
9c60689e 8871
9c60689e 8872
9c60689e 8873
ee134472 8874
ee134472 8875
ee134472 8876
ee134472 8877
9c60689e 8878
9c60689e 8879
9c60689e 8880
9c60689e 8881
9c60689e 8882
9c60689e 8883
9c60689e 8884
9c60689e 8885
9c60689e 8886
9c60689e 8887
9c60689e 8888
9c60689e 8889
9c60689e 8890
9c60689e 8891
9c60689e 8892
9c60689e 8893
9c60689e 8894
9c60689e 8895
9c60689e 8896
9c60689e 8897
9c60689e 8898
a243b558 8899test -z "$LN_S" && LN_S="ln -s"
9c60689e
DWT
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913
a243b558
JF
8914if test -n "${ZSH_VERSION+set}" ; then
8915 setopt NO_GLOB_SUBST
8916fi
9c60689e 8917
a243b558
JF
8918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8919$as_echo_n "checking for objdir... " >&6; }
8920if ${lt_cv_objdir+:} false; then :
ee134472
JF
8921 $as_echo_n "(cached) " >&6
8922else
a243b558
JF
8923 rm -f .libs 2>/dev/null
8924mkdir .libs 2>/dev/null
8925if test -d .libs; then
8926 lt_cv_objdir=.libs
8927else
8928 # MS-DOS does not allow filenames that begin with a dot.
8929 lt_cv_objdir=_libs
ee134472 8930fi
a243b558
JF
8931rmdir .libs 2>/dev/null
8932fi
8933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8934$as_echo "$lt_cv_objdir" >&6; }
8935objdir=$lt_cv_objdir
9c60689e
DWT
8936
8937
8938
8939
8940
a243b558
JF
8941cat >>confdefs.h <<_ACEOF
8942#define LT_OBJDIR "$lt_cv_objdir/"
8943_ACEOF
9c60689e
DWT
8944
8945
8946
8947
a243b558
JF
8948case $host_os in
8949aix3*)
8950 # AIX sometimes has problems with the GCC collect2 program. For some
8951 # reason, if we set the COLLECT_NAMES environment variable, the problems
8952 # vanish in a puff of smoke.
8953 if test "X${COLLECT_NAMES+set}" != Xset; then
8954 COLLECT_NAMES=
8955 export COLLECT_NAMES
8956 fi
8957 ;;
8958esac
9c60689e 8959
a243b558
JF
8960# Global variables:
8961ofile=libtool
8962can_build_shared=yes
9c60689e 8963
a243b558
JF
8964# All known linkers require a `.a' archive for static linking (except MSVC,
8965# which needs '.lib').
8966libext=a
9c60689e 8967
a243b558 8968with_gnu_ld="$lt_cv_prog_gnu_ld"
9c60689e 8969
a243b558
JF
8970old_CC="$CC"
8971old_CFLAGS="$CFLAGS"
9c60689e 8972
a243b558
JF
8973# Set sane defaults for various variables
8974test -z "$CC" && CC=cc
8975test -z "$LTCC" && LTCC=$CC
8976test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8977test -z "$LD" && LD=ld
8978test -z "$ac_objext" && ac_objext=o
9c60689e 8979
a243b558
JF
8980for cc_temp in $compiler""; do
8981 case $cc_temp in
8982 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8983 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8984 \-*) ;;
8985 *) break;;
8986 esac
8987done
8988cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9c60689e
DWT
8989
8990
a243b558
JF
8991# Only perform the check for file, if the check method requires it
8992test -z "$MAGIC_CMD" && MAGIC_CMD=file
8993case $deplibs_check_method in
8994file_magic*)
8995 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8997$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8998if ${lt_cv_path_MAGIC_CMD+:} false; then :
8999 $as_echo_n "(cached) " >&6
9000else
9001 case $MAGIC_CMD in
9002[\\/*] | ?:[\\/]*)
9003 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9004 ;;
9005*)
9006 lt_save_MAGIC_CMD="$MAGIC_CMD"
9007 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9008 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9009 for ac_dir in $ac_dummy; do
9010 IFS="$lt_save_ifs"
9011 test -z "$ac_dir" && ac_dir=.
9012 if test -f $ac_dir/${ac_tool_prefix}file; then
9013 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9014 if test -n "$file_magic_test_file"; then
9015 case $deplibs_check_method in
9016 "file_magic "*)
9017 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9018 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9019 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9020 $EGREP "$file_magic_regex" > /dev/null; then
9021 :
9022 else
9023 cat <<_LT_EOF 1>&2
9c60689e 9024
a243b558
JF
9025*** Warning: the command libtool uses to detect shared libraries,
9026*** $file_magic_cmd, produces output that libtool cannot recognize.
9027*** The result is that libtool may fail to recognize shared libraries
9028*** as such. This will affect the creation of libtool libraries that
9029*** depend on shared libraries, but programs linked with such libtool
9030*** libraries will work regardless of this problem. Nevertheless, you
9031*** may want to report the problem to your system manager and/or to
9032*** bug-libtool@gnu.org
9c60689e 9033
a243b558
JF
9034_LT_EOF
9035 fi ;;
9036 esac
9037 fi
9038 break
9039 fi
9040 done
9041 IFS="$lt_save_ifs"
9042 MAGIC_CMD="$lt_save_MAGIC_CMD"
9043 ;;
9044esac
9045fi
9c60689e 9046
a243b558
JF
9047MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9048if test -n "$MAGIC_CMD"; then
9049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9050$as_echo "$MAGIC_CMD" >&6; }
9051else
9052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9053$as_echo "no" >&6; }
9054fi
9c60689e
DWT
9055
9056
9057
9058
9059
a243b558
JF
9060if test -z "$lt_cv_path_MAGIC_CMD"; then
9061 if test -n "$ac_tool_prefix"; then
9062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9063$as_echo_n "checking for file... " >&6; }
9064if ${lt_cv_path_MAGIC_CMD+:} false; then :
9065 $as_echo_n "(cached) " >&6
9066else
9067 case $MAGIC_CMD in
9068[\\/*] | ?:[\\/]*)
9069 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9070 ;;
9071*)
9072 lt_save_MAGIC_CMD="$MAGIC_CMD"
9073 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9074 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9075 for ac_dir in $ac_dummy; do
9076 IFS="$lt_save_ifs"
9077 test -z "$ac_dir" && ac_dir=.
9078 if test -f $ac_dir/file; then
9079 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9080 if test -n "$file_magic_test_file"; then
9081 case $deplibs_check_method in
9082 "file_magic "*)
9083 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9084 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9085 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9086 $EGREP "$file_magic_regex" > /dev/null; then
9087 :
9088 else
9089 cat <<_LT_EOF 1>&2
9c60689e 9090
a243b558
JF
9091*** Warning: the command libtool uses to detect shared libraries,
9092*** $file_magic_cmd, produces output that libtool cannot recognize.
9093*** The result is that libtool may fail to recognize shared libraries
9094*** as such. This will affect the creation of libtool libraries that
9095*** depend on shared libraries, but programs linked with such libtool
9096*** libraries will work regardless of this problem. Nevertheless, you
9097*** may want to report the problem to your system manager and/or to
9098*** bug-libtool@gnu.org
9c60689e 9099
a243b558
JF
9100_LT_EOF
9101 fi ;;
9102 esac
9103 fi
9104 break
9105 fi
9106 done
9107 IFS="$lt_save_ifs"
9108 MAGIC_CMD="$lt_save_MAGIC_CMD"
9109 ;;
9110esac
9111fi
9c60689e 9112
a243b558
JF
9113MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9114if test -n "$MAGIC_CMD"; then
9115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9116$as_echo "$MAGIC_CMD" >&6; }
9117else
9118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9119$as_echo "no" >&6; }
9120fi
9c60689e
DWT
9121
9122
a243b558
JF
9123 else
9124 MAGIC_CMD=:
9125 fi
9126fi
9c60689e 9127
a243b558
JF
9128 fi
9129 ;;
9130esac
9c60689e 9131
a243b558 9132# Use C for the default configuration in the libtool script
9c60689e 9133
a243b558
JF
9134lt_save_CC="$CC"
9135ac_ext=c
9136ac_cpp='$CPP $CPPFLAGS'
9137ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9138ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9139ac_compiler_gnu=$ac_cv_c_compiler_gnu
9c60689e
DWT
9140
9141
a243b558
JF
9142# Source file extension for C test sources.
9143ac_ext=c
9c60689e 9144
a243b558
JF
9145# Object file extension for compiled C test sources.
9146objext=o
9147objext=$objext
9c60689e 9148
a243b558
JF
9149# Code to be used in simple compile tests
9150lt_simple_compile_test_code="int some_variable = 0;"
9c60689e 9151
a243b558
JF
9152# Code to be used in simple link tests
9153lt_simple_link_test_code='int main(){return(0);}'
9c60689e
DWT
9154
9155
9156
9157
9158
9159
9160
a243b558
JF
9161# If no C compiler was specified, use CC.
9162LTCC=${LTCC-"$CC"}
9c60689e 9163
a243b558
JF
9164# If no C compiler flags were specified, use CFLAGS.
9165LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9c60689e 9166
a243b558
JF
9167# Allow CC to be a program name with arguments.
9168compiler=$CC
9c60689e 9169
a243b558
JF
9170# Save the default compiler, since it gets overwritten when the other
9171# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9172compiler_DEFAULT=$CC
9c60689e 9173
a243b558
JF
9174# save warnings/boilerplate of simple test code
9175ac_outfile=conftest.$ac_objext
9176echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9177eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9178_lt_compiler_boilerplate=`cat conftest.err`
00a96142 9179$RM -r conftest*
9c60689e 9180
a243b558
JF
9181ac_outfile=conftest.$ac_objext
9182echo "$lt_simple_link_test_code" >conftest.$ac_ext
9183eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9184_lt_linker_boilerplate=`cat conftest.err`
9185$RM -r conftest*
9c60689e
DWT
9186
9187
a243b558
JF
9188## CAVEAT EMPTOR:
9189## There is no encapsulation within the following macros, do not change
9190## the running order or otherwise move them around unless you know exactly
9191## what you are doing...
9192if test -n "$compiler"; then
9c60689e 9193
a243b558 9194lt_prog_compiler_no_builtin_flag=
9c60689e 9195
a243b558
JF
9196if test "$GCC" = yes; then
9197 case $cc_basename in
9198 nvcc*)
9199 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9200 *)
9201 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9202 esac
9c60689e 9203
a243b558
JF
9204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9205$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9206if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9207 $as_echo_n "(cached) " >&6
9208else
9209 lt_cv_prog_compiler_rtti_exceptions=no
9210 ac_outfile=conftest.$ac_objext
9211 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9212 lt_compiler_flag="-fno-rtti -fno-exceptions"
9213 # Insert the option either (1) after the last *FLAGS variable, or
9214 # (2) before a word containing "conftest.", or (3) at the end.
9215 # Note that $ac_compile itself does not contain backslashes and begins
9216 # with a dollar sign (not a hyphen), so the echo should work correctly.
9217 # The option is referenced via a variable to avoid confusing sed.
9218 lt_compile=`echo "$ac_compile" | $SED \
9219 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9220 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9221 -e 's:$: $lt_compiler_flag:'`
9222 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9223 (eval "$lt_compile" 2>conftest.err)
9224 ac_status=$?
9225 cat conftest.err >&5
9226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9227 if (exit $ac_status) && test -s "$ac_outfile"; then
9228 # The compiler can only warn and ignore the option if not recognized
9229 # So say no if there are warnings other than the usual output.
9230 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9231 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9232 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9233 lt_cv_prog_compiler_rtti_exceptions=yes
9234 fi
9235 fi
00a96142 9236 $RM -r conftest*
9c60689e 9237
a243b558
JF
9238fi
9239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9240$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9c60689e 9241
a243b558
JF
9242if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9243 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9244else
9245 :
9246fi
9c60689e 9247
a243b558 9248fi
9c60689e
DWT
9249
9250
9251
9252
9253
9254
a243b558
JF
9255 lt_prog_compiler_wl=
9256lt_prog_compiler_pic=
9257lt_prog_compiler_static=
9c60689e
DWT
9258
9259
a243b558
JF
9260 if test "$GCC" = yes; then
9261 lt_prog_compiler_wl='-Wl,'
9262 lt_prog_compiler_static='-static'
9c60689e 9263
a243b558
JF
9264 case $host_os in
9265 aix*)
9266 # All AIX code is PIC.
9267 if test "$host_cpu" = ia64; then
9268 # AIX 5 now supports IA64 processor
9269 lt_prog_compiler_static='-Bstatic'
9270 fi
9271 ;;
9c60689e 9272
a243b558
JF
9273 amigaos*)
9274 case $host_cpu in
9275 powerpc)
9276 # see comment about AmigaOS4 .so support
9277 lt_prog_compiler_pic='-fPIC'
9278 ;;
9279 m68k)
9280 # FIXME: we need at least 68020 code to build shared libraries, but
9281 # adding the `-m68020' flag to GCC prevents building anything better,
9282 # like `-m68040'.
9283 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9284 ;;
9285 esac
9286 ;;
9c60689e 9287
a243b558
JF
9288 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9289 # PIC is the default for these OSes.
9290 ;;
9c60689e 9291
a243b558
JF
9292 mingw* | cygwin* | pw32* | os2* | cegcc*)
9293 # This hack is so that the source file can tell whether it is being
9294 # built for inclusion in a dll (and should export symbols for example).
9295 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9296 # (--disable-auto-import) libraries
9297 lt_prog_compiler_pic='-DDLL_EXPORT'
9298 ;;
9c60689e 9299
a243b558
JF
9300 darwin* | rhapsody*)
9301 # PIC is the default on this platform
9302 # Common symbols not allowed in MH_DYLIB files
9303 lt_prog_compiler_pic='-fno-common'
9304 ;;
9c60689e 9305
a243b558
JF
9306 haiku*)
9307 # PIC is the default for Haiku.
9308 # The "-static" flag exists, but is broken.
9309 lt_prog_compiler_static=
9310 ;;
9c60689e 9311
a243b558
JF
9312 hpux*)
9313 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9314 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9315 # sets the default TLS model and affects inlining.
9316 case $host_cpu in
9317 hppa*64*)
9318 # +Z the default
9319 ;;
9320 *)
9321 lt_prog_compiler_pic='-fPIC'
9322 ;;
9323 esac
9324 ;;
9c60689e 9325
a243b558
JF
9326 interix[3-9]*)
9327 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9328 # Instead, we relocate shared libraries at runtime.
9329 ;;
9c60689e 9330
a243b558
JF
9331 msdosdjgpp*)
9332 # Just because we use GCC doesn't mean we suddenly get shared libraries
9333 # on systems that don't support them.
9334 lt_prog_compiler_can_build_shared=no
9335 enable_shared=no
9336 ;;
9c60689e 9337
a243b558
JF
9338 *nto* | *qnx*)
9339 # QNX uses GNU C++, but need to define -shared option too, otherwise
9340 # it will coredump.
9341 lt_prog_compiler_pic='-fPIC -shared'
9342 ;;
9c60689e 9343
a243b558
JF
9344 sysv4*MP*)
9345 if test -d /usr/nec; then
9346 lt_prog_compiler_pic=-Kconform_pic
9347 fi
9348 ;;
9c60689e 9349
a243b558
JF
9350 *)
9351 lt_prog_compiler_pic='-fPIC'
9352 ;;
9353 esac
9c60689e 9354
a243b558
JF
9355 case $cc_basename in
9356 nvcc*) # Cuda Compiler Driver 2.2
9357 lt_prog_compiler_wl='-Xlinker '
9358 if test -n "$lt_prog_compiler_pic"; then
9359 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9360 fi
9361 ;;
9362 esac
9363 else
9364 # PORTME Check for flag to pass linker flags through the system compiler.
9365 case $host_os in
9366 aix*)
9367 lt_prog_compiler_wl='-Wl,'
9368 if test "$host_cpu" = ia64; then
9369 # AIX 5 now supports IA64 processor
9370 lt_prog_compiler_static='-Bstatic'
9371 else
9372 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9373 fi
9374 ;;
9c60689e 9375
a243b558
JF
9376 mingw* | cygwin* | pw32* | os2* | cegcc*)
9377 # This hack is so that the source file can tell whether it is being
9378 # built for inclusion in a dll (and should export symbols for example).
9379 lt_prog_compiler_pic='-DDLL_EXPORT'
9380 ;;
9c60689e 9381
a243b558
JF
9382 hpux9* | hpux10* | hpux11*)
9383 lt_prog_compiler_wl='-Wl,'
9384 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9385 # not for PA HP-UX.
9386 case $host_cpu in
9387 hppa*64*|ia64*)
9388 # +Z the default
9389 ;;
9390 *)
9391 lt_prog_compiler_pic='+Z'
9392 ;;
9393 esac
9394 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9395 lt_prog_compiler_static='${wl}-a ${wl}archive'
9396 ;;
9c60689e 9397
a243b558
JF
9398 irix5* | irix6* | nonstopux*)
9399 lt_prog_compiler_wl='-Wl,'
9400 # PIC (with -KPIC) is the default.
9401 lt_prog_compiler_static='-non_shared'
9402 ;;
9c60689e 9403
a243b558
JF
9404 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9405 case $cc_basename in
9406 # old Intel for x86_64 which still supported -KPIC.
9407 ecc*)
9408 lt_prog_compiler_wl='-Wl,'
9409 lt_prog_compiler_pic='-KPIC'
9410 lt_prog_compiler_static='-static'
9411 ;;
9412 # icc used to be incompatible with GCC.
9413 # ICC 10 doesn't accept -KPIC any more.
9414 icc* | ifort*)
9415 lt_prog_compiler_wl='-Wl,'
9416 lt_prog_compiler_pic='-fPIC'
9417 lt_prog_compiler_static='-static'
9418 ;;
9419 # Lahey Fortran 8.1.
9420 lf95*)
9421 lt_prog_compiler_wl='-Wl,'
9422 lt_prog_compiler_pic='--shared'
9423 lt_prog_compiler_static='--static'
9424 ;;
9425 nagfor*)
9426 # NAG Fortran compiler
9427 lt_prog_compiler_wl='-Wl,-Wl,,'
9428 lt_prog_compiler_pic='-PIC'
9429 lt_prog_compiler_static='-Bstatic'
9430 ;;
9431 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9432 # Portland Group compilers (*not* the Pentium gcc compiler,
9433 # which looks to be a dead project)
9434 lt_prog_compiler_wl='-Wl,'
9435 lt_prog_compiler_pic='-fpic'
9436 lt_prog_compiler_static='-Bstatic'
9437 ;;
9438 ccc*)
9439 lt_prog_compiler_wl='-Wl,'
9440 # All Alpha code is PIC.
9441 lt_prog_compiler_static='-non_shared'
9442 ;;
9443 xl* | bgxl* | bgf* | mpixl*)
9444 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9445 lt_prog_compiler_wl='-Wl,'
9446 lt_prog_compiler_pic='-qpic'
9447 lt_prog_compiler_static='-qstaticlink'
9448 ;;
9449 *)
9450 case `$CC -V 2>&1 | sed 5q` in
9451 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9452 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9453 lt_prog_compiler_pic='-KPIC'
9454 lt_prog_compiler_static='-Bstatic'
9455 lt_prog_compiler_wl=''
9456 ;;
9457 *Sun\ F* | *Sun*Fortran*)
9458 lt_prog_compiler_pic='-KPIC'
9459 lt_prog_compiler_static='-Bstatic'
9460 lt_prog_compiler_wl='-Qoption ld '
9461 ;;
9462 *Sun\ C*)
9463 # Sun C 5.9
9464 lt_prog_compiler_pic='-KPIC'
9465 lt_prog_compiler_static='-Bstatic'
9466 lt_prog_compiler_wl='-Wl,'
9467 ;;
9468 *Intel*\ [CF]*Compiler*)
9469 lt_prog_compiler_wl='-Wl,'
9470 lt_prog_compiler_pic='-fPIC'
9471 lt_prog_compiler_static='-static'
9472 ;;
9473 *Portland\ Group*)
9474 lt_prog_compiler_wl='-Wl,'
9475 lt_prog_compiler_pic='-fpic'
9476 lt_prog_compiler_static='-Bstatic'
9477 ;;
9478 esac
9479 ;;
9480 esac
9481 ;;
9c60689e 9482
a243b558
JF
9483 newsos6)
9484 lt_prog_compiler_pic='-KPIC'
9485 lt_prog_compiler_static='-Bstatic'
9486 ;;
9c60689e 9487
a243b558
JF
9488 *nto* | *qnx*)
9489 # QNX uses GNU C++, but need to define -shared option too, otherwise
9490 # it will coredump.
9491 lt_prog_compiler_pic='-fPIC -shared'
9492 ;;
9c60689e 9493
a243b558
JF
9494 osf3* | osf4* | osf5*)
9495 lt_prog_compiler_wl='-Wl,'
9496 # All OSF/1 code is PIC.
9497 lt_prog_compiler_static='-non_shared'
9498 ;;
9c60689e 9499
a243b558
JF
9500 rdos*)
9501 lt_prog_compiler_static='-non_shared'
9502 ;;
9c60689e 9503
a243b558
JF
9504 solaris*)
9505 lt_prog_compiler_pic='-KPIC'
9506 lt_prog_compiler_static='-Bstatic'
9507 case $cc_basename in
9508 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9509 lt_prog_compiler_wl='-Qoption ld ';;
9510 *)
9511 lt_prog_compiler_wl='-Wl,';;
9512 esac
9513 ;;
9c60689e 9514
a243b558
JF
9515 sunos4*)
9516 lt_prog_compiler_wl='-Qoption ld '
9517 lt_prog_compiler_pic='-PIC'
9518 lt_prog_compiler_static='-Bstatic'
9519 ;;
9c60689e 9520
a243b558
JF
9521 sysv4 | sysv4.2uw2* | sysv4.3*)
9522 lt_prog_compiler_wl='-Wl,'
9523 lt_prog_compiler_pic='-KPIC'
9524 lt_prog_compiler_static='-Bstatic'
9525 ;;
9c60689e 9526
a243b558
JF
9527 sysv4*MP*)
9528 if test -d /usr/nec ;then
9529 lt_prog_compiler_pic='-Kconform_pic'
9530 lt_prog_compiler_static='-Bstatic'
9531 fi
9532 ;;
9c60689e 9533
a243b558
JF
9534 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9535 lt_prog_compiler_wl='-Wl,'
9536 lt_prog_compiler_pic='-KPIC'
9537 lt_prog_compiler_static='-Bstatic'
9538 ;;
9c60689e 9539
a243b558
JF
9540 unicos*)
9541 lt_prog_compiler_wl='-Wl,'
9542 lt_prog_compiler_can_build_shared=no
9543 ;;
9c60689e 9544
a243b558
JF
9545 uts4*)
9546 lt_prog_compiler_pic='-pic'
9547 lt_prog_compiler_static='-Bstatic'
9548 ;;
9c60689e 9549
a243b558
JF
9550 *)
9551 lt_prog_compiler_can_build_shared=no
9552 ;;
9553 esac
9554 fi
9c60689e 9555
a243b558
JF
9556case $host_os in
9557 # For platforms which do not support PIC, -DPIC is meaningless:
9558 *djgpp*)
9559 lt_prog_compiler_pic=
9560 ;;
9561 *)
9562 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9563 ;;
9564esac
9c60689e 9565
a243b558
JF
9566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9567$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9568if ${lt_cv_prog_compiler_pic+:} false; then :
9569 $as_echo_n "(cached) " >&6
9570else
9571 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9572fi
9573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9574$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9575lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9c60689e 9576
a243b558
JF
9577#
9578# Check to make sure the PIC flag actually works.
9579#
9580if test -n "$lt_prog_compiler_pic"; then
9581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9582$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9583if ${lt_cv_prog_compiler_pic_works+:} false; then :
9584 $as_echo_n "(cached) " >&6
9585else
9586 lt_cv_prog_compiler_pic_works=no
9587 ac_outfile=conftest.$ac_objext
9588 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9589 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9590 # Insert the option either (1) after the last *FLAGS variable, or
9591 # (2) before a word containing "conftest.", or (3) at the end.
9592 # Note that $ac_compile itself does not contain backslashes and begins
9593 # with a dollar sign (not a hyphen), so the echo should work correctly.
9594 # The option is referenced via a variable to avoid confusing sed.
9595 lt_compile=`echo "$ac_compile" | $SED \
9596 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9597 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9598 -e 's:$: $lt_compiler_flag:'`
9599 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9600 (eval "$lt_compile" 2>conftest.err)
9601 ac_status=$?
9602 cat conftest.err >&5
9603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9604 if (exit $ac_status) && test -s "$ac_outfile"; then
9605 # The compiler can only warn and ignore the option if not recognized
9606 # So say no if there are warnings other than the usual output.
9607 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9608 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9609 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9610 lt_cv_prog_compiler_pic_works=yes
9611 fi
9612 fi
00a96142 9613 $RM -r conftest*
9c60689e 9614
a243b558
JF
9615fi
9616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9617$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9c60689e 9618
a243b558
JF
9619if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9620 case $lt_prog_compiler_pic in
9621 "" | " "*) ;;
9622 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9623 esac
9624else
9625 lt_prog_compiler_pic=
9626 lt_prog_compiler_can_build_shared=no
9627fi
9c60689e 9628
a243b558 9629fi
9c60689e
DWT
9630
9631
9632
9633
9634
9635
9c60689e
DWT
9636
9637
9638
9639
9640
a243b558
JF
9641#
9642# Check to make sure the static flag actually works.
9643#
9644wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9646$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9647if ${lt_cv_prog_compiler_static_works+:} false; then :
9648 $as_echo_n "(cached) " >&6
9649else
9650 lt_cv_prog_compiler_static_works=no
9651 save_LDFLAGS="$LDFLAGS"
9652 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9653 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9654 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9655 # The linker can only warn and ignore the option if not recognized
9656 # So say no if there are warnings
9657 if test -s conftest.err; then
9658 # Append any errors to the config.log.
9659 cat conftest.err 1>&5
9660 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9661 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9662 if diff conftest.exp conftest.er2 >/dev/null; then
9663 lt_cv_prog_compiler_static_works=yes
9664 fi
9665 else
9666 lt_cv_prog_compiler_static_works=yes
9667 fi
9668 fi
9669 $RM -r conftest*
9670 LDFLAGS="$save_LDFLAGS"
9c60689e 9671
a243b558
JF
9672fi
9673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9674$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9c60689e 9675
a243b558
JF
9676if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9677 :
9c60689e 9678else
a243b558 9679 lt_prog_compiler_static=
9c60689e 9680fi
9c60689e 9681
9c60689e 9682
9c60689e 9683
9c60689e 9684
9c60689e 9685
9c60689e 9686
9c60689e 9687
a243b558
JF
9688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9689$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9690if ${lt_cv_prog_compiler_c_o+:} false; then :
9691 $as_echo_n "(cached) " >&6
9692else
9693 lt_cv_prog_compiler_c_o=no
9694 $RM -r conftest 2>/dev/null
9695 mkdir conftest
9696 cd conftest
9697 mkdir out
9698 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9c60689e 9699
a243b558
JF
9700 lt_compiler_flag="-o out/conftest2.$ac_objext"
9701 # Insert the option either (1) after the last *FLAGS variable, or
9702 # (2) before a word containing "conftest.", or (3) at the end.
9703 # Note that $ac_compile itself does not contain backslashes and begins
9704 # with a dollar sign (not a hyphen), so the echo should work correctly.
9705 lt_compile=`echo "$ac_compile" | $SED \
9706 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9707 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9708 -e 's:$: $lt_compiler_flag:'`
9709 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9710 (eval "$lt_compile" 2>out/conftest.err)
9711 ac_status=$?
9712 cat out/conftest.err >&5
9713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9714 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9715 then
9716 # The compiler can only warn and ignore the option if not recognized
9717 # So say no if there are warnings
9718 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9719 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9720 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9721 lt_cv_prog_compiler_c_o=yes
9722 fi
9723 fi
9724 chmod u+w . 2>&5
00a96142 9725 $RM -r conftest*
a243b558
JF
9726 # SGI C++ compiler will create directory out/ii_files/ for
9727 # template instantiation
9728 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9729 $RM out/* && rmdir out
9730 cd ..
9731 $RM -r conftest
00a96142 9732 $RM -r conftest*
9c60689e 9733
a243b558
JF
9734fi
9735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9736$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9c60689e 9737
ee134472 9738
ee134472 9739
ee134472 9740
ee134472 9741
9c60689e 9742
a243b558
JF
9743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9744$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9745if ${lt_cv_prog_compiler_c_o+:} false; then :
9746 $as_echo_n "(cached) " >&6
9747else
9748 lt_cv_prog_compiler_c_o=no
9749 $RM -r conftest 2>/dev/null
9750 mkdir conftest
9751 cd conftest
9752 mkdir out
9753 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9c60689e 9754
a243b558
JF
9755 lt_compiler_flag="-o out/conftest2.$ac_objext"
9756 # Insert the option either (1) after the last *FLAGS variable, or
9757 # (2) before a word containing "conftest.", or (3) at the end.
9758 # Note that $ac_compile itself does not contain backslashes and begins
9759 # with a dollar sign (not a hyphen), so the echo should work correctly.
9760 lt_compile=`echo "$ac_compile" | $SED \
9761 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9762 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9763 -e 's:$: $lt_compiler_flag:'`
9764 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9765 (eval "$lt_compile" 2>out/conftest.err)
9766 ac_status=$?
9767 cat out/conftest.err >&5
9768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9769 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9770 then
9771 # The compiler can only warn and ignore the option if not recognized
9772 # So say no if there are warnings
9773 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9774 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9775 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9776 lt_cv_prog_compiler_c_o=yes
9777 fi
9778 fi
9779 chmod u+w . 2>&5
00a96142 9780 $RM -r conftest*
a243b558
JF
9781 # SGI C++ compiler will create directory out/ii_files/ for
9782 # template instantiation
9783 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9784 $RM out/* && rmdir out
9785 cd ..
9786 $RM -r conftest
00a96142 9787 $RM -r conftest*
9c60689e 9788
a243b558
JF
9789fi
9790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9791$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9c60689e 9792
9c60689e 9793
a243b558
JF
9794
9795
9796hard_links="nottested"
9797if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9798 # do not overwrite the value of need_locks provided by the user
9799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9800$as_echo_n "checking if we can lock with hard links... " >&6; }
9801 hard_links=yes
00a96142 9802 $RM -r conftest*
a243b558
JF
9803 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9804 touch conftest.a
9805 ln conftest.a conftest.b 2>&5 || hard_links=no
9806 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9808$as_echo "$hard_links" >&6; }
9809 if test "$hard_links" = no; then
9810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9811$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9812 need_locks=warn
9c60689e 9813 fi
a243b558
JF
9814else
9815 need_locks=no
9816fi
9c60689e 9817
ee134472 9818
9c60689e 9819
9c60689e 9820
9c60689e 9821
a243b558
JF
9822
9823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9824$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9825
9826 runpath_var=
9827 allow_undefined_flag=
9828 always_export_symbols=no
9829 archive_cmds=
9830 archive_expsym_cmds=
9831 compiler_needs_object=no
9832 enable_shared_with_static_runtimes=no
9833 export_dynamic_flag_spec=
9834 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9835 hardcode_automatic=no
9836 hardcode_direct=no
9837 hardcode_direct_absolute=no
9838 hardcode_libdir_flag_spec=
9839 hardcode_libdir_separator=
9840 hardcode_minus_L=no
9841 hardcode_shlibpath_var=unsupported
9842 inherit_rpath=no
9843 link_all_deplibs=unknown
9844 module_cmds=
9845 module_expsym_cmds=
9846 old_archive_from_new_cmds=
9847 old_archive_from_expsyms_cmds=
9848 thread_safe_flag_spec=
9849 whole_archive_flag_spec=
9850 # include_expsyms should be a list of space-separated symbols to be *always*
9851 # included in the symbol list
9852 include_expsyms=
9853 # exclude_expsyms can be an extended regexp of symbols to exclude
9854 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9855 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9856 # as well as any symbol that contains `d'.
9857 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9858 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9859 # platforms (ab)use it in PIC code, but their linkers get confused if
9860 # the symbol is explicitly referenced. Since portable code cannot
9861 # rely on this symbol name, it's probably fine to never include it in
9862 # preloaded symbol tables.
9863 # Exclude shared library initialization/finalization symbols.
9864 extract_expsyms_cmds=
9865
9c60689e 9866 case $host_os in
a243b558
JF
9867 cygwin* | mingw* | pw32* | cegcc*)
9868 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9869 # When not using gcc, we currently assume that we are using
9870 # Microsoft Visual C++.
9871 if test "$GCC" != yes; then
9872 with_gnu_ld=no
9873 fi
9c60689e 9874 ;;
a243b558
JF
9875 interix*)
9876 # we just hope/assume this is gcc and not c89 (= MSVC++)
9877 with_gnu_ld=yes
9878 ;;
9879 openbsd*)
9880 with_gnu_ld=no
9c60689e
DWT
9881 ;;
9882 esac
9c60689e 9883
a243b558 9884 ld_shlibs=yes
ee134472 9885
a243b558
JF
9886 # On some targets, GNU ld is compatible enough with the native linker
9887 # that we're better off using the native interface for both.
9888 lt_use_gnu_ld_interface=no
9889 if test "$with_gnu_ld" = yes; then
9890 case $host_os in
9891 aix*)
9892 # The AIX port of GNU ld has always aspired to compatibility
9893 # with the native linker. However, as the warning in the GNU ld
9894 # block says, versions before 2.19.5* couldn't really create working
9895 # shared libraries, regardless of the interface used.
9896 case `$LD -v 2>&1` in
9897 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9898 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9899 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9900 *)
9901 lt_use_gnu_ld_interface=yes
9902 ;;
9903 esac
9904 ;;
9905 *)
9906 lt_use_gnu_ld_interface=yes
9907 ;;
9908 esac
9909 fi
9c60689e 9910
a243b558
JF
9911 if test "$lt_use_gnu_ld_interface" = yes; then
9912 # If archive_cmds runs LD, not CC, wlarc should be empty
9913 wlarc='${wl}'
9c60689e 9914
a243b558
JF
9915 # Set some defaults for GNU ld with shared library support. These
9916 # are reset later if shared libraries are not supported. Putting them
9917 # here allows them to be overridden if necessary.
9918 runpath_var=LD_RUN_PATH
9919 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9920 export_dynamic_flag_spec='${wl}--export-dynamic'
9921 # ancient GNU ld didn't support --whole-archive et. al.
9922 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9923 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9924 else
9925 whole_archive_flag_spec=
9926 fi
9927 supports_anon_versioning=no
9928 case `$LD -v 2>&1` in
9929 *GNU\ gold*) supports_anon_versioning=yes ;;
9930 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9931 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9932 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9933 *\ 2.11.*) ;; # other 2.11 versions
9934 *) supports_anon_versioning=yes ;;
9935 esac
ee134472 9936
a243b558
JF
9937 # See if GNU ld supports shared libraries.
9938 case $host_os in
9939 aix[3-9]*)
9940 # On AIX/PPC, the GNU linker is very broken
9941 if test "$host_cpu" != ia64; then
9942 ld_shlibs=no
9943 cat <<_LT_EOF 1>&2
ee134472 9944
a243b558
JF
9945*** Warning: the GNU linker, at least up to release 2.19, is reported
9946*** to be unable to reliably create shared libraries on AIX.
9947*** Therefore, libtool is disabling shared libraries support. If you
9948*** really care for shared libraries, you may want to install binutils
9949*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9950*** You will then need to restart the configuration process.
9c60689e 9951
a243b558
JF
9952_LT_EOF
9953 fi
9954 ;;
9c60689e 9955
a243b558
JF
9956 amigaos*)
9957 case $host_cpu in
9958 powerpc)
9959 # see comment about AmigaOS4 .so support
9960 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9961 archive_expsym_cmds=''
9962 ;;
9963 m68k)
9964 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)'
9965 hardcode_libdir_flag_spec='-L$libdir'
9966 hardcode_minus_L=yes
9967 ;;
9968 esac
9969 ;;
9c60689e 9970
a243b558
JF
9971 beos*)
9972 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9973 allow_undefined_flag=unsupported
9974 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9975 # support --undefined. This deserves some investigation. FIXME
9976 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9977 else
9978 ld_shlibs=no
9979 fi
9980 ;;
9c60689e 9981
a243b558
JF
9982 cygwin* | mingw* | pw32* | cegcc*)
9983 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9984 # as there is no search path for DLLs.
9985 hardcode_libdir_flag_spec='-L$libdir'
9986 export_dynamic_flag_spec='${wl}--export-all-symbols'
9987 allow_undefined_flag=unsupported
9988 always_export_symbols=no
9989 enable_shared_with_static_runtimes=yes
9990 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'
9991 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9c60689e 9992
a243b558
JF
9993 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9994 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9995 # If the export-symbols file already is a .def file (1st line
9996 # is EXPORTS), use it as is; otherwise, prepend...
9997 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9998 cp $export_symbols $output_objdir/$soname.def;
9999 else
10000 echo EXPORTS > $output_objdir/$soname.def;
10001 cat $export_symbols >> $output_objdir/$soname.def;
10002 fi~
10003 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10004 else
10005 ld_shlibs=no
10006 fi
10007 ;;
9c60689e 10008
a243b558
JF
10009 haiku*)
10010 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10011 link_all_deplibs=yes
10012 ;;
9c60689e 10013
a243b558
JF
10014 interix[3-9]*)
10015 hardcode_direct=no
10016 hardcode_shlibpath_var=no
10017 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10018 export_dynamic_flag_spec='${wl}-E'
10019 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10020 # Instead, shared libraries are loaded at an image base (0x10000000 by
10021 # default) and relocated if they conflict, which is a slow very memory
10022 # consuming and fragmenting process. To avoid this, we pick a random,
10023 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10024 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10025 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10026 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'
10027 ;;
9c60689e 10028
a243b558
JF
10029 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10030 tmp_diet=no
10031 if test "$host_os" = linux-dietlibc; then
10032 case $cc_basename in
10033 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10034 esac
10035 fi
10036 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10037 && test "$tmp_diet" = no
10038 then
10039 tmp_addflag=' $pic_flag'
10040 tmp_sharedflag='-shared'
10041 case $cc_basename,$host_cpu in
10042 pgcc*) # Portland Group C compiler
10043 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'
10044 tmp_addflag=' $pic_flag'
10045 ;;
10046 pgf77* | pgf90* | pgf95* | pgfortran*)
10047 # Portland Group f77 and f90 compilers
10048 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'
10049 tmp_addflag=' $pic_flag -Mnomain' ;;
10050 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10051 tmp_addflag=' -i_dynamic' ;;
10052 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10053 tmp_addflag=' -i_dynamic -nofor_main' ;;
10054 ifc* | ifort*) # Intel Fortran compiler
10055 tmp_addflag=' -nofor_main' ;;
10056 lf95*) # Lahey Fortran 8.1
10057 whole_archive_flag_spec=
10058 tmp_sharedflag='--shared' ;;
10059 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10060 tmp_sharedflag='-qmkshrobj'
10061 tmp_addflag= ;;
10062 nvcc*) # Cuda Compiler Driver 2.2
10063 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'
10064 compiler_needs_object=yes
10065 ;;
10066 esac
10067 case `$CC -V 2>&1 | sed 5q` in
10068 *Sun\ C*) # Sun C 5.9
10069 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'
10070 compiler_needs_object=yes
10071 tmp_sharedflag='-G' ;;
10072 *Sun\ F*) # Sun Fortran 8.3
10073 tmp_sharedflag='-G' ;;
10074 esac
10075 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9c60689e 10076
a243b558
JF
10077 if test "x$supports_anon_versioning" = xyes; then
10078 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10079 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10080 echo "local: *; };" >> $output_objdir/$libname.ver~
10081 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10082 fi
9c60689e 10083
a243b558
JF
10084 case $cc_basename in
10085 xlf* | bgf* | bgxlf* | mpixlf*)
10086 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10087 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10088 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10089 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10090 if test "x$supports_anon_versioning" = xyes; then
10091 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10092 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10093 echo "local: *; };" >> $output_objdir/$libname.ver~
10094 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10095 fi
10096 ;;
10097 esac
10098 else
10099 ld_shlibs=no
10100 fi
10101 ;;
9c60689e 10102
a243b558
JF
10103 netbsd*)
10104 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10105 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10106 wlarc=
10107 else
10108 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10109 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10110 fi
10111 ;;
9c60689e 10112
a243b558
JF
10113 solaris*)
10114 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10115 ld_shlibs=no
10116 cat <<_LT_EOF 1>&2
9c60689e 10117
a243b558
JF
10118*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10119*** create shared libraries on Solaris systems. Therefore, libtool
10120*** is disabling shared libraries support. We urge you to upgrade GNU
10121*** binutils to release 2.9.1 or newer. Another option is to modify
10122*** your PATH or compiler configuration so that the native linker is
10123*** used, and then restart.
9c60689e 10124
a243b558
JF
10125_LT_EOF
10126 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10127 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10128 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10129 else
10130 ld_shlibs=no
10131 fi
10132 ;;
9c60689e 10133
a243b558
JF
10134 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10135 case `$LD -v 2>&1` in
10136 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10137 ld_shlibs=no
10138 cat <<_LT_EOF 1>&2
9c60689e 10139
a243b558
JF
10140*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10141*** reliably create shared libraries on SCO systems. Therefore, libtool
10142*** is disabling shared libraries support. We urge you to upgrade GNU
10143*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10144*** your PATH or compiler configuration so that the native linker is
10145*** used, and then restart.
9c60689e 10146
a243b558
JF
10147_LT_EOF
10148 ;;
10149 *)
10150 # For security reasons, it is highly recommended that you always
10151 # use absolute paths for naming shared libraries, and exclude the
10152 # DT_RUNPATH tag from executables and libraries. But doing so
10153 # requires that you compile everything twice, which is a pain.
10154 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10155 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10156 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10157 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10158 else
10159 ld_shlibs=no
10160 fi
10161 ;;
10162 esac
10163 ;;
9c60689e 10164
a243b558
JF
10165 sunos4*)
10166 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10167 wlarc=
10168 hardcode_direct=yes
10169 hardcode_shlibpath_var=no
10170 ;;
9c60689e 10171
a243b558
JF
10172 *)
10173 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10174 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10175 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10176 else
10177 ld_shlibs=no
10178 fi
10179 ;;
10180 esac
9c60689e 10181
a243b558
JF
10182 if test "$ld_shlibs" = no; then
10183 runpath_var=
10184 hardcode_libdir_flag_spec=
10185 export_dynamic_flag_spec=
10186 whole_archive_flag_spec=
10187 fi
10188 else
10189 # PORTME fill in a description of your system's linker (not GNU ld)
10190 case $host_os in
10191 aix3*)
10192 allow_undefined_flag=unsupported
10193 always_export_symbols=yes
10194 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'
10195 # Note: this linker hardcodes the directories in LIBPATH if there
10196 # are no directories specified by -L.
10197 hardcode_minus_L=yes
10198 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10199 # Neither direct hardcoding nor static linking is supported with a
10200 # broken collect2.
10201 hardcode_direct=unsupported
10202 fi
10203 ;;
9c60689e 10204
a243b558
JF
10205 aix[4-9]*)
10206 if test "$host_cpu" = ia64; then
10207 # On IA64, the linker does run time linking by default, so we don't
10208 # have to do anything special.
10209 aix_use_runtimelinking=no
10210 exp_sym_flag='-Bexport'
10211 no_entry_flag=""
10212 else
10213 # If we're using GNU nm, then we don't want the "-C" option.
10214 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10215 # Also, AIX nm treats weak defined symbols like other global
10216 # defined symbols, whereas GNU nm marks them as "W".
10217 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10218 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10219 else
10220 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10221 fi
10222 aix_use_runtimelinking=no
9c60689e 10223
a243b558
JF
10224 # Test if we are trying to use run time linking or normal
10225 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10226 # need to do runtime linking.
10227 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10228 for ld_flag in $LDFLAGS; do
10229 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10230 aix_use_runtimelinking=yes
10231 break
10232 fi
10233 done
10234 ;;
10235 esac
9c60689e 10236
a243b558
JF
10237 exp_sym_flag='-bexport'
10238 no_entry_flag='-bnoentry'
10239 fi
9c60689e 10240
a243b558
JF
10241 # When large executables or shared objects are built, AIX ld can
10242 # have problems creating the table of contents. If linking a library
10243 # or program results in "error TOC overflow" add -mminimal-toc to
10244 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10245 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9c60689e 10246
a243b558
JF
10247 archive_cmds=''
10248 hardcode_direct=yes
10249 hardcode_direct_absolute=yes
10250 hardcode_libdir_separator=':'
10251 link_all_deplibs=yes
10252 file_list_spec='${wl}-f,'
9c60689e 10253
a243b558
JF
10254 if test "$GCC" = yes; then
10255 case $host_os in aix4.[012]|aix4.[012].*)
10256 # We only want to do this on AIX 4.2 and lower, the check
10257 # below for broken collect2 doesn't work under 4.3+
10258 collect2name=`${CC} -print-prog-name=collect2`
10259 if test -f "$collect2name" &&
10260 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10261 then
10262 # We have reworked collect2
10263 :
10264 else
10265 # We have old collect2
10266 hardcode_direct=unsupported
10267 # It fails to find uninstalled libraries when the uninstalled
10268 # path is not listed in the libpath. Setting hardcode_minus_L
10269 # to unsupported forces relinking
10270 hardcode_minus_L=yes
10271 hardcode_libdir_flag_spec='-L$libdir'
10272 hardcode_libdir_separator=
10273 fi
10274 ;;
10275 esac
10276 shared_flag='-shared'
10277 if test "$aix_use_runtimelinking" = yes; then
10278 shared_flag="$shared_flag "'${wl}-G'
10279 fi
10280 else
10281 # not using gcc
10282 if test "$host_cpu" = ia64; then
10283 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10284 # chokes on -Wl,-G. The following line is correct:
10285 shared_flag='-G'
10286 else
10287 if test "$aix_use_runtimelinking" = yes; then
10288 shared_flag='${wl}-G'
10289 else
10290 shared_flag='${wl}-bM:SRE'
10291 fi
10292 fi
10293 fi
9c60689e 10294
a243b558
JF
10295 export_dynamic_flag_spec='${wl}-bexpall'
10296 # It seems that -bexpall does not export symbols beginning with
10297 # underscore (_), so it is better to generate a list of symbols to export.
10298 always_export_symbols=yes
10299 if test "$aix_use_runtimelinking" = yes; then
10300 # Warning - without using the other runtime loading flags (-brtl),
10301 # -berok will link without error, but may produce a broken library.
10302 allow_undefined_flag='-berok'
10303 # Determine the default libpath from the value encoded in an
10304 # empty executable.
10305 if test "${lt_cv_aix_libpath+set}" = set; then
10306 aix_libpath=$lt_cv_aix_libpath
9c60689e 10307else
a243b558 10308 if ${lt_cv_aix_libpath_+:} false; then :
9c60689e
DWT
10309 $as_echo_n "(cached) " >&6
10310else
a243b558 10311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9c60689e
DWT
10312/* end confdefs.h. */
10313
9c60689e
DWT
10314int
10315main ()
10316{
a243b558 10317
9c60689e
DWT
10318 ;
10319 return 0;
10320}
10321_ACEOF
10322if ac_fn_c_try_link "$LINENO"; then :
a243b558
JF
10323
10324 lt_aix_libpath_sed='
10325 /Import File Strings/,/^$/ {
10326 /^0/ {
10327 s/^0 *\([^ ]*\) *$/\1/
10328 p
10329 }
10330 }'
10331 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10332 # Check for a 64-bit object if we didn't find anything.
10333 if test -z "$lt_cv_aix_libpath_"; then
10334 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10335 fi
9c60689e
DWT
10336fi
10337rm -f core conftest.err conftest.$ac_objext \
10338 conftest$ac_exeext conftest.$ac_ext
a243b558
JF
10339 if test -z "$lt_cv_aix_libpath_"; then
10340 lt_cv_aix_libpath_="/usr/lib:/lib"
10341 fi
9c60689e
DWT
10342
10343fi
10344
a243b558
JF
10345 aix_libpath=$lt_cv_aix_libpath_
10346fi
9c60689e 10347
a243b558
JF
10348 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10349 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10350 else
10351 if test "$host_cpu" = ia64; then
10352 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10353 allow_undefined_flag="-z nodefs"
10354 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"
10355 else
10356 # Determine the default libpath from the value encoded in an
10357 # empty executable.
10358 if test "${lt_cv_aix_libpath+set}" = set; then
10359 aix_libpath=$lt_cv_aix_libpath
9c60689e 10360else
a243b558 10361 if ${lt_cv_aix_libpath_+:} false; then :
9c60689e
DWT
10362 $as_echo_n "(cached) " >&6
10363else
a243b558 10364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9c60689e
DWT
10365/* end confdefs.h. */
10366
9c60689e
DWT
10367int
10368main ()
10369{
a243b558 10370
9c60689e
DWT
10371 ;
10372 return 0;
10373}
10374_ACEOF
10375if ac_fn_c_try_link "$LINENO"; then :
9c60689e 10376
a243b558
JF
10377 lt_aix_libpath_sed='
10378 /Import File Strings/,/^$/ {
10379 /^0/ {
10380 s/^0 *\([^ ]*\) *$/\1/
10381 p
10382 }
10383 }'
10384 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10385 # Check for a 64-bit object if we didn't find anything.
10386 if test -z "$lt_cv_aix_libpath_"; then
10387 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10388 fi
9c60689e
DWT
10389fi
10390rm -f core conftest.err conftest.$ac_objext \
10391 conftest$ac_exeext conftest.$ac_ext
a243b558
JF
10392 if test -z "$lt_cv_aix_libpath_"; then
10393 lt_cv_aix_libpath_="/usr/lib:/lib"
10394 fi
10395
9c60689e 10396fi
9c60689e 10397
a243b558
JF
10398 aix_libpath=$lt_cv_aix_libpath_
10399fi
10400
10401 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10402 # Warning - without using the other run time loading flags,
10403 # -berok will link without error, but may produce a broken library.
10404 no_undefined_flag=' ${wl}-bernotok'
10405 allow_undefined_flag=' ${wl}-berok'
10406 if test "$with_gnu_ld" = yes; then
10407 # We only use this code for GNU lds that support --whole-archive.
10408 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10409 else
10410 # Exported symbols can be pulled into shared objects from archives
10411 whole_archive_flag_spec='$convenience'
10412 fi
10413 archive_cmds_need_lc=yes
10414 # This is similar to how AIX traditionally builds its shared libraries.
10415 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10416 fi
10417 fi
10418 ;;
10419
10420 amigaos*)
10421 case $host_cpu in
10422 powerpc)
10423 # see comment about AmigaOS4 .so support
10424 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10425 archive_expsym_cmds=''
10426 ;;
10427 m68k)
10428 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)'
10429 hardcode_libdir_flag_spec='-L$libdir'
10430 hardcode_minus_L=yes
10431 ;;
10432 esac
10433 ;;
10434
10435 bsdi[45]*)
10436 export_dynamic_flag_spec=-rdynamic
10437 ;;
10438
10439 cygwin* | mingw* | pw32* | cegcc*)
10440 # When not using gcc, we currently assume that we are using
10441 # Microsoft Visual C++.
10442 # hardcode_libdir_flag_spec is actually meaningless, as there is
10443 # no search path for DLLs.
10444 case $cc_basename in
10445 cl*)
10446 # Native MSVC
10447 hardcode_libdir_flag_spec=' '
10448 allow_undefined_flag=unsupported
10449 always_export_symbols=yes
10450 file_list_spec='@'
10451 # Tell ltmain to make .lib files, not .a files.
10452 libext=lib
10453 # Tell ltmain to make .dll files, not .so files.
10454 shrext_cmds=".dll"
10455 # FIXME: Setting linknames here is a bad hack.
10456 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10457 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10458 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10459 else
10460 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10461 fi~
10462 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10463 linknames='
10464 # The linker will not automatically build a static lib if we build a DLL.
10465 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10466 enable_shared_with_static_runtimes=yes
10467 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10468 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10469 # Don't use ranlib
10470 old_postinstall_cmds='chmod 644 $oldlib'
10471 postlink_cmds='lt_outputfile="@OUTPUT@"~
10472 lt_tool_outputfile="@TOOL_OUTPUT@"~
10473 case $lt_outputfile in
10474 *.exe|*.EXE) ;;
10475 *)
10476 lt_outputfile="$lt_outputfile.exe"
10477 lt_tool_outputfile="$lt_tool_outputfile.exe"
10478 ;;
10479 esac~
10480 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10481 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10482 $RM "$lt_outputfile.manifest";
10483 fi'
10484 ;;
10485 *)
10486 # Assume MSVC wrapper
10487 hardcode_libdir_flag_spec=' '
10488 allow_undefined_flag=unsupported
10489 # Tell ltmain to make .lib files, not .a files.
10490 libext=lib
10491 # Tell ltmain to make .dll files, not .so files.
10492 shrext_cmds=".dll"
10493 # FIXME: Setting linknames here is a bad hack.
10494 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10495 # The linker will automatically build a .lib file if we build a DLL.
10496 old_archive_from_new_cmds='true'
10497 # FIXME: Should let the user specify the lib program.
10498 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10499 enable_shared_with_static_runtimes=yes
10500 ;;
10501 esac
10502 ;;
10503
10504 darwin* | rhapsody*)
10505
10506
10507 archive_cmds_need_lc=no
10508 hardcode_direct=no
10509 hardcode_automatic=yes
10510 hardcode_shlibpath_var=unsupported
10511 if test "$lt_cv_ld_force_load" = "yes"; then
10512 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\"`'
10513
10514 else
10515 whole_archive_flag_spec=''
10516 fi
10517 link_all_deplibs=yes
10518 allow_undefined_flag="$_lt_dar_allow_undefined"
10519 case $cc_basename in
10520 ifort*) _lt_dar_can_shared=yes ;;
10521 *) _lt_dar_can_shared=$GCC ;;
10522 esac
10523 if test "$_lt_dar_can_shared" = "yes"; then
10524 output_verbose_link_cmd=func_echo_all
10525 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10526 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10527 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}"
10528 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}"
10529
10530 else
10531 ld_shlibs=no
10532 fi
10533
10534 ;;
10535
10536 dgux*)
10537 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10538 hardcode_libdir_flag_spec='-L$libdir'
10539 hardcode_shlibpath_var=no
10540 ;;
10541
10542 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10543 # support. Future versions do this automatically, but an explicit c++rt0.o
10544 # does not break anything, and helps significantly (at the cost of a little
10545 # extra space).
10546 freebsd2.2*)
10547 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10548 hardcode_libdir_flag_spec='-R$libdir'
10549 hardcode_direct=yes
10550 hardcode_shlibpath_var=no
10551 ;;
10552
10553 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10554 freebsd2.*)
10555 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10556 hardcode_direct=yes
10557 hardcode_minus_L=yes
10558 hardcode_shlibpath_var=no
10559 ;;
10560
10561 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10562 freebsd* | dragonfly*)
10563 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10564 hardcode_libdir_flag_spec='-R$libdir'
10565 hardcode_direct=yes
10566 hardcode_shlibpath_var=no
10567 ;;
10568
10569 hpux9*)
10570 if test "$GCC" = yes; then
10571 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10572 else
10573 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10574 fi
10575 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10576 hardcode_libdir_separator=:
10577 hardcode_direct=yes
10578
10579 # hardcode_minus_L: Not really in the search PATH,
10580 # but as the default location of the library.
10581 hardcode_minus_L=yes
10582 export_dynamic_flag_spec='${wl}-E'
10583 ;;
10584
10585 hpux10*)
10586 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10587 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10588 else
10589 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10590 fi
10591 if test "$with_gnu_ld" = no; then
10592 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10593 hardcode_libdir_separator=:
10594 hardcode_direct=yes
10595 hardcode_direct_absolute=yes
10596 export_dynamic_flag_spec='${wl}-E'
10597 # hardcode_minus_L: Not really in the search PATH,
10598 # but as the default location of the library.
10599 hardcode_minus_L=yes
10600 fi
10601 ;;
10602
10603 hpux11*)
10604 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10605 case $host_cpu in
10606 hppa*64*)
10607 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10608 ;;
10609 ia64*)
10610 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10611 ;;
10612 *)
10613 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10614 ;;
10615 esac
10616 else
10617 case $host_cpu in
10618 hppa*64*)
10619 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10620 ;;
10621 ia64*)
10622 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10623 ;;
10624 *)
10625
10626 # Older versions of the 11.00 compiler do not understand -b yet
10627 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10629$as_echo_n "checking if $CC understands -b... " >&6; }
10630if ${lt_cv_prog_compiler__b+:} false; then :
10631 $as_echo_n "(cached) " >&6
10632else
10633 lt_cv_prog_compiler__b=no
10634 save_LDFLAGS="$LDFLAGS"
10635 LDFLAGS="$LDFLAGS -b"
10636 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10637 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10638 # The linker can only warn and ignore the option if not recognized
10639 # So say no if there are warnings
10640 if test -s conftest.err; then
10641 # Append any errors to the config.log.
10642 cat conftest.err 1>&5
10643 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10644 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10645 if diff conftest.exp conftest.er2 >/dev/null; then
10646 lt_cv_prog_compiler__b=yes
10647 fi
10648 else
10649 lt_cv_prog_compiler__b=yes
10650 fi
10651 fi
10652 $RM -r conftest*
10653 LDFLAGS="$save_LDFLAGS"
10654
10655fi
10656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10657$as_echo "$lt_cv_prog_compiler__b" >&6; }
10658
10659if test x"$lt_cv_prog_compiler__b" = xyes; then
10660 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10661else
10662 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10663fi
10664
10665 ;;
10666 esac
10667 fi
10668 if test "$with_gnu_ld" = no; then
10669 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10670 hardcode_libdir_separator=:
10671
10672 case $host_cpu in
10673 hppa*64*|ia64*)
10674 hardcode_direct=no
10675 hardcode_shlibpath_var=no
10676 ;;
10677 *)
10678 hardcode_direct=yes
10679 hardcode_direct_absolute=yes
10680 export_dynamic_flag_spec='${wl}-E'
10681
10682 # hardcode_minus_L: Not really in the search PATH,
10683 # but as the default location of the library.
10684 hardcode_minus_L=yes
10685 ;;
10686 esac
10687 fi
10688 ;;
10689
10690 irix5* | irix6* | nonstopux*)
10691 if test "$GCC" = yes; then
10692 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'
10693 # Try to use the -exported_symbol ld option, if it does not
10694 # work, assume that -exports_file does not work either and
10695 # implicitly export all symbols.
10696 # This should be the same for all languages, so no per-tag cache variable.
10697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10698$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10699if ${lt_cv_irix_exported_symbol+:} false; then :
10700 $as_echo_n "(cached) " >&6
10701else
10702 save_LDFLAGS="$LDFLAGS"
10703 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10705/* end confdefs.h. */
10706int foo (void) { return 0; }
10707_ACEOF
10708if ac_fn_c_try_link "$LINENO"; then :
10709 lt_cv_irix_exported_symbol=yes
10710else
10711 lt_cv_irix_exported_symbol=no
10712fi
10713rm -f core conftest.err conftest.$ac_objext \
10714 conftest$ac_exeext conftest.$ac_ext
10715 LDFLAGS="$save_LDFLAGS"
10716fi
10717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10718$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10719 if test "$lt_cv_irix_exported_symbol" = yes; then
10720 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'
10721 fi
10722 else
10723 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'
10724 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'
10725 fi
10726 archive_cmds_need_lc='no'
10727 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10728 hardcode_libdir_separator=:
10729 inherit_rpath=yes
10730 link_all_deplibs=yes
10731 ;;
10732
10733 netbsd*)
10734 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10735 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10736 else
10737 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10738 fi
10739 hardcode_libdir_flag_spec='-R$libdir'
10740 hardcode_direct=yes
10741 hardcode_shlibpath_var=no
10742 ;;
10743
10744 newsos6)
10745 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10746 hardcode_direct=yes
10747 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10748 hardcode_libdir_separator=:
10749 hardcode_shlibpath_var=no
10750 ;;
10751
10752 *nto* | *qnx*)
10753 ;;
10754
10755 openbsd*)
10756 if test -f /usr/libexec/ld.so; then
10757 hardcode_direct=yes
10758 hardcode_shlibpath_var=no
10759 hardcode_direct_absolute=yes
10760 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10761 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10762 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10763 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10764 export_dynamic_flag_spec='${wl}-E'
10765 else
10766 case $host_os in
10767 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10768 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10769 hardcode_libdir_flag_spec='-R$libdir'
10770 ;;
10771 *)
10772 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10773 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10774 ;;
10775 esac
10776 fi
10777 else
10778 ld_shlibs=no
10779 fi
10780 ;;
10781
10782 os2*)
10783 hardcode_libdir_flag_spec='-L$libdir'
10784 hardcode_minus_L=yes
10785 allow_undefined_flag=unsupported
10786 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10787 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10788 ;;
10789
10790 osf3*)
10791 if test "$GCC" = yes; then
10792 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10793 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'
10794 else
10795 allow_undefined_flag=' -expect_unresolved \*'
10796 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'
10797 fi
10798 archive_cmds_need_lc='no'
10799 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10800 hardcode_libdir_separator=:
10801 ;;
10802
10803 osf4* | osf5*) # as osf3* with the addition of -msym flag
10804 if test "$GCC" = yes; then
10805 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10806 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'
10807 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10808 else
10809 allow_undefined_flag=' -expect_unresolved \*'
10810 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'
10811 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~
10812 $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'
10813
10814 # Both c and cxx compiler support -rpath directly
10815 hardcode_libdir_flag_spec='-rpath $libdir'
10816 fi
10817 archive_cmds_need_lc='no'
10818 hardcode_libdir_separator=:
10819 ;;
10820
10821 solaris*)
10822 no_undefined_flag=' -z defs'
10823 if test "$GCC" = yes; then
10824 wlarc='${wl}'
10825 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10826 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10827 $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'
10828 else
10829 case `$CC -V 2>&1` in
10830 *"Compilers 5.0"*)
10831 wlarc=''
10832 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10833 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10834 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10835 ;;
10836 *)
10837 wlarc='${wl}'
10838 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10839 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10840 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10841 ;;
10842 esac
10843 fi
10844 hardcode_libdir_flag_spec='-R$libdir'
10845 hardcode_shlibpath_var=no
10846 case $host_os in
10847 solaris2.[0-5] | solaris2.[0-5].*) ;;
10848 *)
10849 # The compiler driver will combine and reorder linker options,
10850 # but understands `-z linker_flag'. GCC discards it without `$wl',
10851 # but is careful enough not to reorder.
10852 # Supported since Solaris 2.6 (maybe 2.5.1?)
10853 if test "$GCC" = yes; then
10854 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10855 else
10856 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10857 fi
10858 ;;
10859 esac
10860 link_all_deplibs=yes
10861 ;;
10862
10863 sunos4*)
10864 if test "x$host_vendor" = xsequent; then
10865 # Use $CC to link under sequent, because it throws in some extra .o
10866 # files that make .init and .fini sections work.
10867 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10868 else
10869 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10870 fi
10871 hardcode_libdir_flag_spec='-L$libdir'
10872 hardcode_direct=yes
10873 hardcode_minus_L=yes
10874 hardcode_shlibpath_var=no
10875 ;;
10876
10877 sysv4)
10878 case $host_vendor in
10879 sni)
10880 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10881 hardcode_direct=yes # is this really true???
10882 ;;
10883 siemens)
10884 ## LD is ld it makes a PLAMLIB
10885 ## CC just makes a GrossModule.
10886 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10887 reload_cmds='$CC -r -o $output$reload_objs'
10888 hardcode_direct=no
10889 ;;
10890 motorola)
10891 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10892 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10893 ;;
10894 esac
10895 runpath_var='LD_RUN_PATH'
10896 hardcode_shlibpath_var=no
10897 ;;
10898
10899 sysv4.3*)
10900 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10901 hardcode_shlibpath_var=no
10902 export_dynamic_flag_spec='-Bexport'
10903 ;;
10904
10905 sysv4*MP*)
10906 if test -d /usr/nec; then
10907 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10908 hardcode_shlibpath_var=no
10909 runpath_var=LD_RUN_PATH
10910 hardcode_runpath_var=yes
10911 ld_shlibs=yes
10912 fi
10913 ;;
10914
10915 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10916 no_undefined_flag='${wl}-z,text'
10917 archive_cmds_need_lc=no
10918 hardcode_shlibpath_var=no
10919 runpath_var='LD_RUN_PATH'
10920
10921 if test "$GCC" = yes; then
10922 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10923 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10924 else
10925 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10926 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10927 fi
10928 ;;
10929
10930 sysv5* | sco3.2v5* | sco5v6*)
10931 # Note: We can NOT use -z defs as we might desire, because we do not
10932 # link with -lc, and that would cause any symbols used from libc to
10933 # always be unresolved, which means just about no library would
10934 # ever link correctly. If we're not using GNU ld we use -z text
10935 # though, which does catch some bad symbols but isn't as heavy-handed
10936 # as -z defs.
10937 no_undefined_flag='${wl}-z,text'
10938 allow_undefined_flag='${wl}-z,nodefs'
10939 archive_cmds_need_lc=no
10940 hardcode_shlibpath_var=no
10941 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10942 hardcode_libdir_separator=':'
10943 link_all_deplibs=yes
10944 export_dynamic_flag_spec='${wl}-Bexport'
10945 runpath_var='LD_RUN_PATH'
10946
10947 if test "$GCC" = yes; then
10948 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10949 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10950 else
10951 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10952 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10953 fi
10954 ;;
10955
10956 uts4*)
10957 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10958 hardcode_libdir_flag_spec='-L$libdir'
10959 hardcode_shlibpath_var=no
10960 ;;
10961
10962 *)
10963 ld_shlibs=no
10964 ;;
10965 esac
10966
10967 if test x$host_vendor = xsni; then
10968 case $host in
10969 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10970 export_dynamic_flag_spec='${wl}-Blargedynsym'
10971 ;;
10972 esac
10973 fi
10974 fi
10975
10976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10977$as_echo "$ld_shlibs" >&6; }
10978test "$ld_shlibs" = no && can_build_shared=no
10979
10980with_gnu_ld=$with_gnu_ld
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996#
10997# Do we need to explicitly link libc?
10998#
10999case "x$archive_cmds_need_lc" in
11000x|xyes)
11001 # Assume -lc should be added
11002 archive_cmds_need_lc=yes
11003
11004 if test "$enable_shared" = yes && test "$GCC" = yes; then
11005 case $archive_cmds in
11006 *'~'*)
11007 # FIXME: we may have to deal with multi-command sequences.
11008 ;;
11009 '$CC '*)
11010 # Test whether the compiler implicitly links with -lc since on some
11011 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11012 # to ld, don't add -lc before -lgcc.
11013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11014$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11015if ${lt_cv_archive_cmds_need_lc+:} false; then :
11016 $as_echo_n "(cached) " >&6
11017else
00a96142 11018 $RM -r conftest*
a243b558
JF
11019 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11020
11021 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11022 (eval $ac_compile) 2>&5
11023 ac_status=$?
11024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11025 test $ac_status = 0; } 2>conftest.err; then
11026 soname=conftest
11027 lib=conftest
11028 libobjs=conftest.$ac_objext
11029 deplibs=
11030 wl=$lt_prog_compiler_wl
11031 pic_flag=$lt_prog_compiler_pic
11032 compiler_flags=-v
11033 linker_flags=-v
11034 verstring=
11035 output_objdir=.
11036 libname=conftest
11037 lt_save_allow_undefined_flag=$allow_undefined_flag
11038 allow_undefined_flag=
11039 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11040 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11041 ac_status=$?
11042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11043 test $ac_status = 0; }
11044 then
11045 lt_cv_archive_cmds_need_lc=no
11046 else
11047 lt_cv_archive_cmds_need_lc=yes
11048 fi
11049 allow_undefined_flag=$lt_save_allow_undefined_flag
11050 else
11051 cat conftest.err 1>&5
11052 fi
00a96142 11053 $RM -r conftest*
a243b558
JF
11054
11055fi
11056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11057$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11058 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11059 ;;
11060 esac
11061 fi
11062 ;;
11063esac
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11217$as_echo_n "checking dynamic linker characteristics... " >&6; }
11218
11219if test "$GCC" = yes; then
11220 case $host_os in
11221 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11222 *) lt_awk_arg="/^libraries:/" ;;
11223 esac
11224 case $host_os in
11225 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11226 *) lt_sed_strip_eq="s,=/,/,g" ;;
11227 esac
11228 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11229 case $lt_search_path_spec in
11230 *\;*)
11231 # if the path contains ";" then we assume it to be the separator
11232 # otherwise default to the standard path separator (i.e. ":") - it is
11233 # assumed that no part of a normal pathname contains ";" but that should
11234 # okay in the real world where ";" in dirpaths is itself problematic.
11235 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11236 ;;
11237 *)
11238 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11239 ;;
11240 esac
11241 # Ok, now we have the path, separated by spaces, we can step through it
11242 # and add multilib dir if necessary.
11243 lt_tmp_lt_search_path_spec=
11244 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11245 for lt_sys_path in $lt_search_path_spec; do
11246 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11247 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11248 else
11249 test -d "$lt_sys_path" && \
11250 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11251 fi
11252 done
11253 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11254BEGIN {RS=" "; FS="/|\n";} {
11255 lt_foo="";
11256 lt_count=0;
11257 for (lt_i = NF; lt_i > 0; lt_i--) {
11258 if ($lt_i != "" && $lt_i != ".") {
11259 if ($lt_i == "..") {
11260 lt_count++;
11261 } else {
11262 if (lt_count == 0) {
11263 lt_foo="/" $lt_i lt_foo;
11264 } else {
11265 lt_count--;
11266 }
11267 }
11268 }
11269 }
11270 if (lt_foo != "") { lt_freq[lt_foo]++; }
11271 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11272}'`
11273 # AWK program above erroneously prepends '/' to C:/dos/paths
11274 # for these hosts.
11275 case $host_os in
11276 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11277 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11278 esac
11279 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11280else
11281 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11282fi
11283library_names_spec=
11284libname_spec='lib$name'
11285soname_spec=
11286shrext_cmds=".so"
11287postinstall_cmds=
11288postuninstall_cmds=
11289finish_cmds=
11290finish_eval=
11291shlibpath_var=
11292shlibpath_overrides_runpath=unknown
11293version_type=none
11294dynamic_linker="$host_os ld.so"
11295sys_lib_dlsearch_path_spec="/lib /usr/lib"
11296need_lib_prefix=unknown
11297hardcode_into_libs=no
11298
11299# when you set need_version to no, make sure it does not cause -set_version
11300# flags to be left without arguments
11301need_version=unknown
11302
11303case $host_os in
11304aix3*)
11305 version_type=linux # correct to gnu/linux during the next big refactor
11306 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11307 shlibpath_var=LIBPATH
11308
11309 # AIX 3 has no versioning support, so we append a major version to the name.
11310 soname_spec='${libname}${release}${shared_ext}$major'
11311 ;;
11312
11313aix[4-9]*)
11314 version_type=linux # correct to gnu/linux during the next big refactor
11315 need_lib_prefix=no
11316 need_version=no
11317 hardcode_into_libs=yes
11318 if test "$host_cpu" = ia64; then
11319 # AIX 5 supports IA64
11320 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11321 shlibpath_var=LD_LIBRARY_PATH
11322 else
11323 # With GCC up to 2.95.x, collect2 would create an import file
11324 # for dependence libraries. The import file would start with
11325 # the line `#! .'. This would cause the generated library to
11326 # depend on `.', always an invalid library. This was fixed in
11327 # development snapshots of GCC prior to 3.0.
11328 case $host_os in
11329 aix4 | aix4.[01] | aix4.[01].*)
11330 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11331 echo ' yes '
11332 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11333 :
11334 else
11335 can_build_shared=no
11336 fi
11337 ;;
11338 esac
11339 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11340 # soname into executable. Probably we can add versioning support to
11341 # collect2, so additional links can be useful in future.
11342 if test "$aix_use_runtimelinking" = yes; then
11343 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11344 # instead of lib<name>.a to let people know that these are not
11345 # typical AIX shared libraries.
11346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11347 else
11348 # We preserve .a as extension for shared libraries through AIX4.2
11349 # and later when we are not doing run time linking.
11350 library_names_spec='${libname}${release}.a $libname.a'
11351 soname_spec='${libname}${release}${shared_ext}$major'
11352 fi
11353 shlibpath_var=LIBPATH
11354 fi
11355 ;;
11356
11357amigaos*)
11358 case $host_cpu in
11359 powerpc)
11360 # Since July 2007 AmigaOS4 officially supports .so libraries.
11361 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11363 ;;
11364 m68k)
11365 library_names_spec='$libname.ixlibrary $libname.a'
11366 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11367 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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'
11368 ;;
11369 esac
11370 ;;
11371
11372beos*)
11373 library_names_spec='${libname}${shared_ext}'
11374 dynamic_linker="$host_os ld.so"
11375 shlibpath_var=LIBRARY_PATH
11376 ;;
11377
11378bsdi[45]*)
11379 version_type=linux # correct to gnu/linux during the next big refactor
11380 need_version=no
11381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11382 soname_spec='${libname}${release}${shared_ext}$major'
11383 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11384 shlibpath_var=LD_LIBRARY_PATH
11385 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11386 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11387 # the default ld.so.conf also contains /usr/contrib/lib and
11388 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11389 # libtool to hard-code these into programs
11390 ;;
11391
11392cygwin* | mingw* | pw32* | cegcc*)
11393 version_type=windows
11394 shrext_cmds=".dll"
11395 need_version=no
11396 need_lib_prefix=no
9c60689e 11397
a243b558
JF
11398 case $GCC,$cc_basename in
11399 yes,*)
11400 # gcc
11401 library_names_spec='$libname.dll.a'
11402 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11403 postinstall_cmds='base_file=`basename \${file}`~
11404 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11405 dldir=$destdir/`dirname \$dlpath`~
11406 test -d \$dldir || mkdir -p \$dldir~
11407 $install_prog $dir/$dlname \$dldir/$dlname~
11408 chmod a+x \$dldir/$dlname~
11409 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11410 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11411 fi'
11412 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11413 dlpath=$dir/\$dldll~
11414 $RM \$dlpath'
11415 shlibpath_overrides_runpath=yes
9c60689e 11416
a243b558
JF
11417 case $host_os in
11418 cygwin*)
11419 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11420 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9c60689e 11421
a243b558
JF
11422 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11423 ;;
11424 mingw* | cegcc*)
11425 # MinGW DLLs use traditional 'lib' prefix
11426 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11427 ;;
11428 pw32*)
11429 # pw32 DLLs use 'pw' prefix rather than 'lib'
11430 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11431 ;;
11432 esac
11433 dynamic_linker='Win32 ld.exe'
11434 ;;
9c60689e 11435
a243b558
JF
11436 *,cl*)
11437 # Native MSVC
11438 libname_spec='$name'
11439 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11440 library_names_spec='${libname}.dll.lib'
9c60689e 11441
a243b558
JF
11442 case $build_os in
11443 mingw*)
11444 sys_lib_search_path_spec=
11445 lt_save_ifs=$IFS
11446 IFS=';'
11447 for lt_path in $LIB
11448 do
11449 IFS=$lt_save_ifs
11450 # Let DOS variable expansion print the short 8.3 style file name.
11451 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11452 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11453 done
11454 IFS=$lt_save_ifs
11455 # Convert to MSYS style.
11456 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11457 ;;
11458 cygwin*)
11459 # Convert to unix form, then to dos form, then back to unix form
11460 # but this time dos style (no spaces!) so that the unix form looks
11461 # like /cygdrive/c/PROGRA~1:/cygdr...
11462 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11463 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11464 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11465 ;;
11466 *)
11467 sys_lib_search_path_spec="$LIB"
11468 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11469 # It is most probably a Windows format PATH.
11470 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11471 else
11472 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11473 fi
11474 # FIXME: find the short name or the path components, as spaces are
11475 # common. (e.g. "Program Files" -> "PROGRA~1")
11476 ;;
11477 esac
11478
11479 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11480 postinstall_cmds='base_file=`basename \${file}`~
11481 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11482 dldir=$destdir/`dirname \$dlpath`~
11483 test -d \$dldir || mkdir -p \$dldir~
11484 $install_prog $dir/$dlname \$dldir/$dlname'
11485 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11486 dlpath=$dir/\$dldll~
11487 $RM \$dlpath'
11488 shlibpath_overrides_runpath=yes
11489 dynamic_linker='Win32 link.exe'
11490 ;;
9c60689e 11491
a243b558
JF
11492 *)
11493 # Assume MSVC wrapper
11494 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11495 dynamic_linker='Win32 ld.exe'
11496 ;;
11497 esac
11498 # FIXME: first we should search . and the directory the executable is in
11499 shlibpath_var=PATH
11500 ;;
9c60689e 11501
a243b558
JF
11502darwin* | rhapsody*)
11503 dynamic_linker="$host_os dyld"
11504 version_type=darwin
11505 need_lib_prefix=no
11506 need_version=no
11507 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11508 soname_spec='${libname}${release}${major}$shared_ext'
11509 shlibpath_overrides_runpath=yes
11510 shlibpath_var=DYLD_LIBRARY_PATH
11511 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9c60689e 11512
a243b558
JF
11513 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11514 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11515 ;;
9c60689e 11516
a243b558
JF
11517dgux*)
11518 version_type=linux # correct to gnu/linux during the next big refactor
11519 need_lib_prefix=no
11520 need_version=no
11521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11522 soname_spec='${libname}${release}${shared_ext}$major'
11523 shlibpath_var=LD_LIBRARY_PATH
11524 ;;
11525
11526freebsd* | dragonfly*)
11527 # DragonFly does not have aout. When/if they implement a new
11528 # versioning mechanism, adjust this.
11529 if test -x /usr/bin/objformat; then
11530 objformat=`/usr/bin/objformat`
11531 else
11532 case $host_os in
11533 freebsd[23].*) objformat=aout ;;
11534 *) objformat=elf ;;
11535 esac
11536 fi
11537 version_type=freebsd-$objformat
11538 case $version_type in
11539 freebsd-elf*)
11540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11541 need_version=no
11542 need_lib_prefix=no
11543 ;;
11544 freebsd-*)
11545 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11546 need_version=yes
11547 ;;
11548 esac
11549 shlibpath_var=LD_LIBRARY_PATH
11550 case $host_os in
11551 freebsd2.*)
11552 shlibpath_overrides_runpath=yes
11553 ;;
11554 freebsd3.[01]* | freebsdelf3.[01]*)
11555 shlibpath_overrides_runpath=yes
11556 hardcode_into_libs=yes
11557 ;;
11558 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11559 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11560 shlibpath_overrides_runpath=no
11561 hardcode_into_libs=yes
11562 ;;
11563 *) # from 4.6 on, and DragonFly
11564 shlibpath_overrides_runpath=yes
11565 hardcode_into_libs=yes
11566 ;;
11567 esac
11568 ;;
9c60689e 11569
a243b558
JF
11570gnu*)
11571 version_type=linux # correct to gnu/linux during the next big refactor
11572 need_lib_prefix=no
11573 need_version=no
11574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11575 soname_spec='${libname}${release}${shared_ext}$major'
11576 shlibpath_var=LD_LIBRARY_PATH
11577 shlibpath_overrides_runpath=no
11578 hardcode_into_libs=yes
11579 ;;
9c60689e 11580
a243b558
JF
11581haiku*)
11582 version_type=linux # correct to gnu/linux during the next big refactor
11583 need_lib_prefix=no
11584 need_version=no
11585 dynamic_linker="$host_os runtime_loader"
11586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11587 soname_spec='${libname}${release}${shared_ext}$major'
11588 shlibpath_var=LIBRARY_PATH
11589 shlibpath_overrides_runpath=yes
11590 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11591 hardcode_into_libs=yes
11592 ;;
9c60689e 11593
a243b558
JF
11594hpux9* | hpux10* | hpux11*)
11595 # Give a soname corresponding to the major version so that dld.sl refuses to
11596 # link against other versions.
11597 version_type=sunos
11598 need_lib_prefix=no
11599 need_version=no
11600 case $host_cpu in
11601 ia64*)
11602 shrext_cmds='.so'
11603 hardcode_into_libs=yes
11604 dynamic_linker="$host_os dld.so"
11605 shlibpath_var=LD_LIBRARY_PATH
11606 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11608 soname_spec='${libname}${release}${shared_ext}$major'
11609 if test "X$HPUX_IA64_MODE" = X32; then
11610 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11611 else
11612 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11613 fi
11614 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11615 ;;
11616 hppa*64*)
11617 shrext_cmds='.sl'
11618 hardcode_into_libs=yes
11619 dynamic_linker="$host_os dld.sl"
11620 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11621 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11623 soname_spec='${libname}${release}${shared_ext}$major'
11624 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11625 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11626 ;;
11627 *)
11628 shrext_cmds='.sl'
11629 dynamic_linker="$host_os dld.sl"
11630 shlibpath_var=SHLIB_PATH
11631 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11633 soname_spec='${libname}${release}${shared_ext}$major'
9c60689e
DWT
11634 ;;
11635 esac
a243b558
JF
11636 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11637 postinstall_cmds='chmod 555 $lib'
11638 # or fails outright, so override atomically:
11639 install_override_mode=555
11640 ;;
9c60689e 11641
a243b558
JF
11642interix[3-9]*)
11643 version_type=linux # correct to gnu/linux during the next big refactor
11644 need_lib_prefix=no
11645 need_version=no
11646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11647 soname_spec='${libname}${release}${shared_ext}$major'
11648 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11649 shlibpath_var=LD_LIBRARY_PATH
11650 shlibpath_overrides_runpath=no
11651 hardcode_into_libs=yes
11652 ;;
9c60689e 11653
a243b558
JF
11654irix5* | irix6* | nonstopux*)
11655 case $host_os in
11656 nonstopux*) version_type=nonstopux ;;
11657 *)
11658 if test "$lt_cv_prog_gnu_ld" = yes; then
11659 version_type=linux # correct to gnu/linux during the next big refactor
11660 else
11661 version_type=irix
11662 fi ;;
11663 esac
11664 need_lib_prefix=no
11665 need_version=no
11666 soname_spec='${libname}${release}${shared_ext}$major'
11667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11668 case $host_os in
11669 irix5* | nonstopux*)
11670 libsuff= shlibsuff=
11671 ;;
11672 *)
11673 case $LD in # libtool.m4 will add one of these switches to LD
11674 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11675 libsuff= shlibsuff= libmagic=32-bit;;
11676 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11677 libsuff=32 shlibsuff=N32 libmagic=N32;;
11678 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11679 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11680 *) libsuff= shlibsuff= libmagic=never-match;;
11681 esac
11682 ;;
11683 esac
11684 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11685 shlibpath_overrides_runpath=no
11686 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11687 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11688 hardcode_into_libs=yes
11689 ;;
9c60689e 11690
a243b558
JF
11691# No shared lib support for Linux oldld, aout, or coff.
11692linux*oldld* | linux*aout* | linux*coff*)
11693 dynamic_linker=no
11694 ;;
9c60689e 11695
a243b558
JF
11696# This must be glibc/ELF.
11697linux* | k*bsd*-gnu | kopensolaris*-gnu)
11698 version_type=linux # correct to gnu/linux during the next big refactor
11699 need_lib_prefix=no
11700 need_version=no
11701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11702 soname_spec='${libname}${release}${shared_ext}$major'
11703 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11704 shlibpath_var=LD_LIBRARY_PATH
11705 shlibpath_overrides_runpath=no
9c60689e 11706
a243b558
JF
11707 # Some binutils ld are patched to set DT_RUNPATH
11708 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
9c60689e
DWT
11709 $as_echo_n "(cached) " >&6
11710else
a243b558
JF
11711 lt_cv_shlibpath_overrides_runpath=no
11712 save_LDFLAGS=$LDFLAGS
11713 save_libdir=$libdir
11714 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11715 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11717/* end confdefs.h. */
ee134472 11718
a243b558
JF
11719int
11720main ()
9c60689e 11721{
9c60689e 11722
a243b558
JF
11723 ;
11724 return 0;
11725}
11726_ACEOF
11727if ac_fn_c_try_link "$LINENO"; then :
11728 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11729 lt_cv_shlibpath_overrides_runpath=yes
11730fi
11731fi
11732rm -f core conftest.err conftest.$ac_objext \
11733 conftest$ac_exeext conftest.$ac_ext
11734 LDFLAGS=$save_LDFLAGS
11735 libdir=$save_libdir
9c60689e 11736
a243b558 11737fi
9c60689e 11738
a243b558 11739 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
9c60689e 11740
a243b558
JF
11741 # This implies no fast_install, which is unacceptable.
11742 # Some rework will be needed to allow for fast_install
11743 # before this can be enabled.
11744 hardcode_into_libs=yes
9c60689e 11745
a243b558
JF
11746 # Append ld.so.conf contents to the search path
11747 if test -f /etc/ld.so.conf; then
11748 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' ' '`
11749 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11750 fi
ee134472 11751
a243b558
JF
11752 # We used to test for /lib/ld.so.1 and disable shared libraries on
11753 # powerpc, because MkLinux only supported shared libraries with the
11754 # GNU dynamic linker. Since this was broken with cross compilers,
11755 # most powerpc-linux boxes support dynamic linking these days and
11756 # people can always --disable-shared, the test was removed, and we
11757 # assume the GNU/Linux dynamic linker is in use.
11758 dynamic_linker='GNU/Linux ld.so'
11759 ;;
9c60689e 11760
a243b558
JF
11761netbsd*)
11762 version_type=sunos
11763 need_lib_prefix=no
11764 need_version=no
11765 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11767 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11768 dynamic_linker='NetBSD (a.out) ld.so'
9c60689e 11769 else
a243b558
JF
11770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11771 soname_spec='${libname}${release}${shared_ext}$major'
11772 dynamic_linker='NetBSD ld.elf_so'
9c60689e 11773 fi
a243b558
JF
11774 shlibpath_var=LD_LIBRARY_PATH
11775 shlibpath_overrides_runpath=yes
11776 hardcode_into_libs=yes
11777 ;;
9c60689e 11778
a243b558
JF
11779newsos6)
11780 version_type=linux # correct to gnu/linux during the next big refactor
11781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11782 shlibpath_var=LD_LIBRARY_PATH
11783 shlibpath_overrides_runpath=yes
11784 ;;
9c60689e 11785
a243b558
JF
11786*nto* | *qnx*)
11787 version_type=qnx
11788 need_lib_prefix=no
11789 need_version=no
11790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11791 soname_spec='${libname}${release}${shared_ext}$major'
11792 shlibpath_var=LD_LIBRARY_PATH
11793 shlibpath_overrides_runpath=no
11794 hardcode_into_libs=yes
11795 dynamic_linker='ldqnx.so'
11796 ;;
9c60689e 11797
a243b558
JF
11798openbsd*)
11799 version_type=sunos
11800 sys_lib_dlsearch_path_spec="/usr/lib"
11801 need_lib_prefix=no
11802 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11803 case $host_os in
11804 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11805 *) need_version=no ;;
9c60689e 11806 esac
a243b558
JF
11807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11808 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11809 shlibpath_var=LD_LIBRARY_PATH
11810 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11811 case $host_os in
11812 openbsd2.[89] | openbsd2.[89].*)
11813 shlibpath_overrides_runpath=no
11814 ;;
11815 *)
11816 shlibpath_overrides_runpath=yes
11817 ;;
11818 esac
11819 else
11820 shlibpath_overrides_runpath=yes
11821 fi
11822 ;;
9c60689e 11823
a243b558
JF
11824os2*)
11825 libname_spec='$name'
11826 shrext_cmds=".dll"
11827 need_lib_prefix=no
11828 library_names_spec='$libname${shared_ext} $libname.a'
11829 dynamic_linker='OS/2 ld.exe'
11830 shlibpath_var=LIBPATH
11831 ;;
9c60689e 11832
a243b558
JF
11833osf3* | osf4* | osf5*)
11834 version_type=osf
11835 need_lib_prefix=no
11836 need_version=no
11837 soname_spec='${libname}${release}${shared_ext}$major'
11838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11839 shlibpath_var=LD_LIBRARY_PATH
11840 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11841 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11842 ;;
11843
11844rdos*)
11845 dynamic_linker=no
11846 ;;
11847
11848solaris*)
11849 version_type=linux # correct to gnu/linux during the next big refactor
11850 need_lib_prefix=no
11851 need_version=no
11852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11853 soname_spec='${libname}${release}${shared_ext}$major'
11854 shlibpath_var=LD_LIBRARY_PATH
11855 shlibpath_overrides_runpath=yes
11856 hardcode_into_libs=yes
11857 # ldd complains unless libraries are executable
11858 postinstall_cmds='chmod +x $lib'
11859 ;;
9c60689e 11860
a243b558
JF
11861sunos4*)
11862 version_type=sunos
11863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11864 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11865 shlibpath_var=LD_LIBRARY_PATH
11866 shlibpath_overrides_runpath=yes
11867 if test "$with_gnu_ld" = yes; then
11868 need_lib_prefix=no
11869 fi
11870 need_version=yes
11871 ;;
9c60689e 11872
a243b558
JF
11873sysv4 | sysv4.3*)
11874 version_type=linux # correct to gnu/linux during the next big refactor
11875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11876 soname_spec='${libname}${release}${shared_ext}$major'
11877 shlibpath_var=LD_LIBRARY_PATH
11878 case $host_vendor in
11879 sni)
11880 shlibpath_overrides_runpath=no
11881 need_lib_prefix=no
11882 runpath_var=LD_RUN_PATH
11883 ;;
11884 siemens)
11885 need_lib_prefix=no
11886 ;;
11887 motorola)
11888 need_lib_prefix=no
11889 need_version=no
11890 shlibpath_overrides_runpath=no
11891 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11892 ;;
11893 esac
11894 ;;
9c60689e 11895
a243b558
JF
11896sysv4*MP*)
11897 if test -d /usr/nec ;then
11898 version_type=linux # correct to gnu/linux during the next big refactor
11899 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11900 soname_spec='$libname${shared_ext}.$major'
11901 shlibpath_var=LD_LIBRARY_PATH
11902 fi
11903 ;;
9c60689e 11904
a243b558
JF
11905sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11906 version_type=freebsd-elf
11907 need_lib_prefix=no
11908 need_version=no
11909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11910 soname_spec='${libname}${release}${shared_ext}$major'
11911 shlibpath_var=LD_LIBRARY_PATH
11912 shlibpath_overrides_runpath=yes
11913 hardcode_into_libs=yes
11914 if test "$with_gnu_ld" = yes; then
11915 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11916 else
11917 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11918 case $host_os in
11919 sco3.2v5*)
11920 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11921 ;;
11922 esac
11923 fi
11924 sys_lib_dlsearch_path_spec='/usr/lib'
11925 ;;
9c60689e 11926
a243b558
JF
11927tpf*)
11928 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11929 version_type=linux # correct to gnu/linux during the next big refactor
11930 need_lib_prefix=no
11931 need_version=no
11932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11933 shlibpath_var=LD_LIBRARY_PATH
11934 shlibpath_overrides_runpath=no
11935 hardcode_into_libs=yes
11936 ;;
9c60689e 11937
a243b558
JF
11938uts4*)
11939 version_type=linux # correct to gnu/linux during the next big refactor
11940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11941 soname_spec='${libname}${release}${shared_ext}$major'
11942 shlibpath_var=LD_LIBRARY_PATH
11943 ;;
9c60689e 11944
a243b558
JF
11945*)
11946 dynamic_linker=no
11947 ;;
11948esac
11949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11950$as_echo "$dynamic_linker" >&6; }
11951test "$dynamic_linker" = no && can_build_shared=no
9c60689e 11952
a243b558
JF
11953variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11954if test "$GCC" = yes; then
11955 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11956fi
9c60689e 11957
a243b558
JF
11958if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11959 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11960fi
11961if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11962 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11963fi
9c60689e
DWT
11964
11965
11966
11967
11968
11969
11970
11971
9c60689e
DWT
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
9c60689e 11984
9c60689e 11985
9c60689e 11986
9c60689e 11987
9c60689e
DWT
11988
11989
11990
11991
9c60689e 11992
9c60689e
DWT
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
53ba6704
JF
12006
12007
9c60689e
DWT
12008
12009
12010
12011
9c60689e
DWT
12012
12013
3fd51f51 12014
66170b30
JF
12015
12016
12017
3fd51f51 12018
12833ad8
JF
12019
12020
12021
12022
3fd51f51 12023
3fd51f51
DWT
12024
12025
3fd51f51 12026
3fd51f51 12027
3fd51f51 12028
66170b30 12029
632b71ea 12030
632b71ea
DWT
12031
12032
790e5246 12033
66170b30 12034
9c60689e 12035
9c60689e
DWT
12036
12037
9c60689e 12038
9c60689e
DWT
12039
12040
66170b30 12041
66170b30 12042
9c60689e 12043
e9c9a47c
DWT
12044
12045
12046
66170b30
JF
12047
12048
66170b30 12049
e9c9a47c 12050
a243b558
JF
12051
12052
12053
12054
12055
12056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12057$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12058hardcode_action=
12059if test -n "$hardcode_libdir_flag_spec" ||
12060 test -n "$runpath_var" ||
12061 test "X$hardcode_automatic" = "Xyes" ; then
12062
12063 # We can hardcode non-existent directories.
12064 if test "$hardcode_direct" != no &&
12065 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12066 # have to relink, otherwise we might link with an installed library
12067 # when we should be linking with a yet-to-be-installed one
12068 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12069 test "$hardcode_minus_L" != no; then
12070 # Linking always hardcodes the temporary library directory.
12071 hardcode_action=relink
12072 else
12073 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12074 hardcode_action=immediate
9c60689e 12075 fi
e9c9a47c 12076else
a243b558
JF
12077 # We cannot hardcode anything, or else we can only hardcode existing
12078 # directories.
12079 hardcode_action=unsupported
12080fi
12081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12082$as_echo "$hardcode_action" >&6; }
12083
12084if test "$hardcode_action" = relink ||
12085 test "$inherit_rpath" = yes; then
12086 # Fast installation is not supported
12087 enable_fast_install=no
12088elif test "$shlibpath_overrides_runpath" = yes ||
12089 test "$enable_shared" = no; then
12090 # Fast installation is not necessary
12091 enable_fast_install=needless
9c60689e 12092fi
9c60689e 12093
9c60689e 12094
66170b30 12095
66170b30 12096
9c60689e 12097
a243b558
JF
12098
12099 if test "x$enable_dlopen" != xyes; then
12100 enable_dlopen=unknown
12101 enable_dlopen_self=unknown
12102 enable_dlopen_self_static=unknown
66170b30 12103else
a243b558
JF
12104 lt_cv_dlopen=no
12105 lt_cv_dlopen_libs=
66170b30 12106
a243b558
JF
12107 case $host_os in
12108 beos*)
12109 lt_cv_dlopen="load_add_on"
12110 lt_cv_dlopen_libs=
12111 lt_cv_dlopen_self=yes
12112 ;;
66170b30 12113
a243b558
JF
12114 mingw* | pw32* | cegcc*)
12115 lt_cv_dlopen="LoadLibrary"
12116 lt_cv_dlopen_libs=
12117 ;;
66170b30 12118
a243b558
JF
12119 cygwin*)
12120 lt_cv_dlopen="dlopen"
12121 lt_cv_dlopen_libs=
12122 ;;
66170b30 12123
a243b558
JF
12124 darwin*)
12125 # if libdl is installed we need to link against it
12126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12127$as_echo_n "checking for dlopen in -ldl... " >&6; }
12128if ${ac_cv_lib_dl_dlopen+:} false; then :
12129 $as_echo_n "(cached) " >&6
12130else
12131 ac_check_lib_save_LIBS=$LIBS
12132LIBS="-ldl $LIBS"
12133cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12134/* end confdefs.h. */
66170b30 12135
a243b558
JF
12136/* Override any GCC internal prototype to avoid an error.
12137 Use char because int might match the return type of a GCC
12138 builtin and then its argument prototype would still apply. */
12139#ifdef __cplusplus
12140extern "C"
12141#endif
12142char dlopen ();
12143int
12144main ()
12145{
12146return dlopen ();
12147 ;
12148 return 0;
12149}
12150_ACEOF
12151if ac_fn_c_try_link "$LINENO"; then :
12152 ac_cv_lib_dl_dlopen=yes
12153else
12154 ac_cv_lib_dl_dlopen=no
66170b30 12155fi
a243b558
JF
12156rm -f core conftest.err conftest.$ac_objext \
12157 conftest$ac_exeext conftest.$ac_ext
12158LIBS=$ac_check_lib_save_LIBS
66170b30 12159fi
a243b558
JF
12160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12161$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12162if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12163 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12164else
66170b30 12165
a243b558
JF
12166 lt_cv_dlopen="dyld"
12167 lt_cv_dlopen_libs=
12168 lt_cv_dlopen_self=yes
66170b30 12169
a243b558 12170fi
9c60689e 12171
a243b558 12172 ;;
9c60689e 12173
a243b558
JF
12174 *)
12175 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12176if test "x$ac_cv_func_shl_load" = xyes; then :
12177 lt_cv_dlopen="shl_load"
12178else
12179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12180$as_echo_n "checking for shl_load in -ldld... " >&6; }
12181if ${ac_cv_lib_dld_shl_load+:} false; then :
12182 $as_echo_n "(cached) " >&6
12183else
12184 ac_check_lib_save_LIBS=$LIBS
12185LIBS="-ldld $LIBS"
12186cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12187/* end confdefs.h. */
66170b30 12188
a243b558
JF
12189/* Override any GCC internal prototype to avoid an error.
12190 Use char because int might match the return type of a GCC
12191 builtin and then its argument prototype would still apply. */
12192#ifdef __cplusplus
12193extern "C"
12194#endif
12195char shl_load ();
12196int
12197main ()
12198{
12199return shl_load ();
12200 ;
12201 return 0;
12202}
12203_ACEOF
12204if ac_fn_c_try_link "$LINENO"; then :
12205 ac_cv_lib_dld_shl_load=yes
66170b30 12206else
a243b558
JF
12207 ac_cv_lib_dld_shl_load=no
12208fi
12209rm -f core conftest.err conftest.$ac_objext \
12210 conftest$ac_exeext conftest.$ac_ext
12211LIBS=$ac_check_lib_save_LIBS
66170b30 12212fi
a243b558
JF
12213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12214$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12215if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12216 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12217else
12218 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12219if test "x$ac_cv_func_dlopen" = xyes; then :
12220 lt_cv_dlopen="dlopen"
12221else
12222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12223$as_echo_n "checking for dlopen in -ldl... " >&6; }
12224if ${ac_cv_lib_dl_dlopen+:} false; then :
12225 $as_echo_n "(cached) " >&6
12226else
12227 ac_check_lib_save_LIBS=$LIBS
12228LIBS="-ldl $LIBS"
12229cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12230/* end confdefs.h. */
e9c9a47c 12231
a243b558
JF
12232/* Override any GCC internal prototype to avoid an error.
12233 Use char because int might match the return type of a GCC
12234 builtin and then its argument prototype would still apply. */
12235#ifdef __cplusplus
12236extern "C"
12237#endif
12238char dlopen ();
12239int
12240main ()
12241{
12242return dlopen ();
12243 ;
12244 return 0;
12245}
12246_ACEOF
12247if ac_fn_c_try_link "$LINENO"; then :
12248 ac_cv_lib_dl_dlopen=yes
12249else
12250 ac_cv_lib_dl_dlopen=no
12251fi
12252rm -f core conftest.err conftest.$ac_objext \
12253 conftest$ac_exeext conftest.$ac_ext
12254LIBS=$ac_check_lib_save_LIBS
12255fi
12256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12257$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12258if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12259 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12260else
12261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12262$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12263if ${ac_cv_lib_svld_dlopen+:} false; then :
12264 $as_echo_n "(cached) " >&6
12265else
12266 ac_check_lib_save_LIBS=$LIBS
12267LIBS="-lsvld $LIBS"
12268cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12269/* end confdefs.h. */
12270
12271/* Override any GCC internal prototype to avoid an error.
12272 Use char because int might match the return type of a GCC
12273 builtin and then its argument prototype would still apply. */
12274#ifdef __cplusplus
12275extern "C"
12276#endif
12277char dlopen ();
12278int
12279main ()
12280{
12281return dlopen ();
12282 ;
12283 return 0;
12284}
12285_ACEOF
12286if ac_fn_c_try_link "$LINENO"; then :
12287 ac_cv_lib_svld_dlopen=yes
12288else
12289 ac_cv_lib_svld_dlopen=no
12290fi
12291rm -f core conftest.err conftest.$ac_objext \
12292 conftest$ac_exeext conftest.$ac_ext
12293LIBS=$ac_check_lib_save_LIBS
12294fi
12295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12296$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12297if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12298 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12299else
12300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12301$as_echo_n "checking for dld_link in -ldld... " >&6; }
12302if ${ac_cv_lib_dld_dld_link+:} false; then :
12303 $as_echo_n "(cached) " >&6
12304else
12305 ac_check_lib_save_LIBS=$LIBS
12306LIBS="-ldld $LIBS"
12307cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12308/* end confdefs.h. */
12309
12310/* Override any GCC internal prototype to avoid an error.
12311 Use char because int might match the return type of a GCC
12312 builtin and then its argument prototype would still apply. */
12313#ifdef __cplusplus
12314extern "C"
12315#endif
12316char dld_link ();
12317int
12318main ()
12319{
12320return dld_link ();
12321 ;
12322 return 0;
12323}
12324_ACEOF
12325if ac_fn_c_try_link "$LINENO"; then :
12326 ac_cv_lib_dld_dld_link=yes
9c60689e 12327else
a243b558
JF
12328 ac_cv_lib_dld_dld_link=no
12329fi
12330rm -f core conftest.err conftest.$ac_objext \
12331 conftest$ac_exeext conftest.$ac_ext
12332LIBS=$ac_check_lib_save_LIBS
12333fi
12334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12335$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12336if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12337 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
9c60689e
DWT
12338fi
12339
12340
a243b558 12341fi
66170b30 12342
66170b30 12343
a243b558 12344fi
66170b30 12345
66170b30
JF
12346
12347fi
e9c9a47c 12348
66170b30 12349
a243b558 12350fi
66170b30 12351
66170b30 12352
66170b30 12353fi
e9c9a47c 12354
a243b558
JF
12355 ;;
12356 esac
9c60689e 12357
a243b558
JF
12358 if test "x$lt_cv_dlopen" != xno; then
12359 enable_dlopen=yes
12360 else
12361 enable_dlopen=no
12362 fi
9c60689e 12363
a243b558
JF
12364 case $lt_cv_dlopen in
12365 dlopen)
12366 save_CPPFLAGS="$CPPFLAGS"
12367 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
66170b30 12368
a243b558
JF
12369 save_LDFLAGS="$LDFLAGS"
12370 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
66170b30 12371
a243b558
JF
12372 save_LIBS="$LIBS"
12373 LIBS="$lt_cv_dlopen_libs $LIBS"
3fd51f51 12374
a243b558
JF
12375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12376$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12377if ${lt_cv_dlopen_self+:} false; then :
12378 $as_echo_n "(cached) " >&6
e9c9a47c 12379else
a243b558
JF
12380 if test "$cross_compiling" = yes; then :
12381 lt_cv_dlopen_self=cross
12382else
12383 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12384 lt_status=$lt_dlunknown
12385 cat > conftest.$ac_ext <<_LT_EOF
12386#line $LINENO "configure"
12387#include "confdefs.h"
e9c9a47c 12388
a243b558
JF
12389#if HAVE_DLFCN_H
12390#include <dlfcn.h>
12391#endif
e9c9a47c 12392
a243b558 12393#include <stdio.h>
66170b30 12394
a243b558
JF
12395#ifdef RTLD_GLOBAL
12396# define LT_DLGLOBAL RTLD_GLOBAL
12397#else
12398# ifdef DL_GLOBAL
12399# define LT_DLGLOBAL DL_GLOBAL
12400# else
12401# define LT_DLGLOBAL 0
12402# endif
12403#endif
66170b30 12404
a243b558
JF
12405/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12406 find out it does not work in some platform. */
12407#ifndef LT_DLLAZY_OR_NOW
12408# ifdef RTLD_LAZY
12409# define LT_DLLAZY_OR_NOW RTLD_LAZY
12410# else
12411# ifdef DL_LAZY
12412# define LT_DLLAZY_OR_NOW DL_LAZY
12413# else
12414# ifdef RTLD_NOW
12415# define LT_DLLAZY_OR_NOW RTLD_NOW
12416# else
12417# ifdef DL_NOW
12418# define LT_DLLAZY_OR_NOW DL_NOW
12419# else
12420# define LT_DLLAZY_OR_NOW 0
12421# endif
12422# endif
12423# endif
12424# endif
12425#endif
e9c9a47c 12426
a243b558
JF
12427/* When -fvisbility=hidden is used, assume the code has been annotated
12428 correspondingly for the symbols needed. */
12429#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12430int fnord () __attribute__((visibility("default")));
12431#endif
e9c9a47c 12432
a243b558
JF
12433int fnord () { return 42; }
12434int main ()
12435{
12436 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12437 int status = $lt_dlunknown;
e9c9a47c 12438
a243b558
JF
12439 if (self)
12440 {
12441 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12442 else
12443 {
12444 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12445 else puts (dlerror ());
12446 }
12447 /* dlclose (self); */
12448 }
12449 else
12450 puts (dlerror ());
e9c9a47c 12451
a243b558
JF
12452 return status;
12453}
12454_LT_EOF
12455 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12456 (eval $ac_link) 2>&5
12457 ac_status=$?
12458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12459 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12460 (./conftest; exit; ) >&5 2>/dev/null
12461 lt_status=$?
12462 case x$lt_status in
12463 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12464 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12465 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12466 esac
12467 else :
12468 # compilation failed
12469 lt_cv_dlopen_self=no
12470 fi
12471fi
12472rm -fr conftest*
e9c9a47c 12473
e9c9a47c 12474
e9c9a47c 12475fi
a243b558
JF
12476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12477$as_echo "$lt_cv_dlopen_self" >&6; }
e9c9a47c 12478
a243b558
JF
12479 if test "x$lt_cv_dlopen_self" = xyes; then
12480 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12482$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12483if ${lt_cv_dlopen_self_static+:} false; then :
12484 $as_echo_n "(cached) " >&6
e9c9a47c 12485else
a243b558
JF
12486 if test "$cross_compiling" = yes; then :
12487 lt_cv_dlopen_self_static=cross
12488else
12489 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12490 lt_status=$lt_dlunknown
12491 cat > conftest.$ac_ext <<_LT_EOF
12492#line $LINENO "configure"
12493#include "confdefs.h"
12494
12495#if HAVE_DLFCN_H
12496#include <dlfcn.h>
12497#endif
12498
12499#include <stdio.h>
e9c9a47c 12500
a243b558
JF
12501#ifdef RTLD_GLOBAL
12502# define LT_DLGLOBAL RTLD_GLOBAL
12503#else
12504# ifdef DL_GLOBAL
12505# define LT_DLGLOBAL DL_GLOBAL
12506# else
12507# define LT_DLGLOBAL 0
12508# endif
12509#endif
e9c9a47c 12510
a243b558
JF
12511/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12512 find out it does not work in some platform. */
12513#ifndef LT_DLLAZY_OR_NOW
12514# ifdef RTLD_LAZY
12515# define LT_DLLAZY_OR_NOW RTLD_LAZY
12516# else
12517# ifdef DL_LAZY
12518# define LT_DLLAZY_OR_NOW DL_LAZY
12519# else
12520# ifdef RTLD_NOW
12521# define LT_DLLAZY_OR_NOW RTLD_NOW
12522# else
12523# ifdef DL_NOW
12524# define LT_DLLAZY_OR_NOW DL_NOW
12525# else
12526# define LT_DLLAZY_OR_NOW 0
12527# endif
12528# endif
12529# endif
12530# endif
12531#endif
66170b30 12532
a243b558
JF
12533/* When -fvisbility=hidden is used, assume the code has been annotated
12534 correspondingly for the symbols needed. */
12535#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12536int fnord () __attribute__((visibility("default")));
12537#endif
e9c9a47c 12538
a243b558
JF
12539int fnord () { return 42; }
12540int main ()
12541{
12542 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12543 int status = $lt_dlunknown;
e9c9a47c 12544
a243b558
JF
12545 if (self)
12546 {
12547 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12548 else
12549 {
12550 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12551 else puts (dlerror ());
12552 }
12553 /* dlclose (self); */
12554 }
12555 else
12556 puts (dlerror ());
e9c9a47c 12557
a243b558
JF
12558 return status;
12559}
12560_LT_EOF
12561 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12562 (eval $ac_link) 2>&5
12563 ac_status=$?
12564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12565 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12566 (./conftest; exit; ) >&5 2>/dev/null
12567 lt_status=$?
12568 case x$lt_status in
12569 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12570 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12571 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12572 esac
12573 else :
12574 # compilation failed
12575 lt_cv_dlopen_self_static=no
12576 fi
12577fi
12578rm -fr conftest*
e9c9a47c 12579
b65019fe 12580
a243b558
JF
12581fi
12582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12583$as_echo "$lt_cv_dlopen_self_static" >&6; }
12584 fi
66170b30 12585
a243b558
JF
12586 CPPFLAGS="$save_CPPFLAGS"
12587 LDFLAGS="$save_LDFLAGS"
12588 LIBS="$save_LIBS"
12589 ;;
12590 esac
66170b30 12591
a243b558
JF
12592 case $lt_cv_dlopen_self in
12593 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12594 *) enable_dlopen_self=unknown ;;
12595 esac
12596
12597 case $lt_cv_dlopen_self_static in
12598 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12599 *) enable_dlopen_self_static=unknown ;;
12600 esac
b65019fe
DWT
12601fi
12602
12603
66170b30 12604
b65019fe 12605
e9c9a47c 12606
e9c9a47c
DWT
12607
12608
e9c9a47c 12609
e9c9a47c
DWT
12610
12611
e9c9a47c 12612
e9c9a47c 12613
3530897b 12614
47aaa820 12615
47aaa820 12616
a243b558
JF
12617
12618
12619striplib=
12620old_striplib=
12621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12622$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12623if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12624 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12625 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12627$as_echo "yes" >&6; }
47aaa820 12628else
a243b558
JF
12629# FIXME - insert some real tests, host_os isn't really good enough
12630 case $host_os in
12631 darwin*)
12632 if test -n "$STRIP" ; then
12633 striplib="$STRIP -x"
12634 old_striplib="$STRIP -S"
12635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12636$as_echo "yes" >&6; }
12637 else
12638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12639$as_echo "no" >&6; }
12640 fi
12641 ;;
12642 *)
12643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12644$as_echo "no" >&6; }
12645 ;;
12646 esac
3530897b 12647fi
47aaa820 12648
3530897b
DWT
12649
12650
9c60689e 12651
9c60689e 12652
9c60689e 12653
9c60689e 12654
9c60689e 12655
66170b30 12656
66170b30 12657
66170b30 12658
66170b30 12659
a243b558
JF
12660 # Report which library types will actually be built
12661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12662$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12664$as_echo "$can_build_shared" >&6; }
66170b30 12665
a243b558
JF
12666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12667$as_echo_n "checking whether to build shared libraries... " >&6; }
12668 test "$can_build_shared" = "no" && enable_shared=no
66170b30 12669
a243b558
JF
12670 # On AIX, shared libraries and static libraries use the same namespace, and
12671 # are all built from PIC.
12672 case $host_os in
12673 aix3*)
12674 test "$enable_shared" = yes && enable_static=no
12675 if test -n "$RANLIB"; then
12676 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12677 postinstall_cmds='$RANLIB $lib'
12678 fi
12679 ;;
66170b30 12680
a243b558
JF
12681 aix[4-9]*)
12682 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12683 test "$enable_shared" = yes && enable_static=no
12684 fi
12685 ;;
12686 esac
12687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12688$as_echo "$enable_shared" >&6; }
66170b30 12689
a243b558
JF
12690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12691$as_echo_n "checking whether to build static libraries... " >&6; }
12692 # Make sure either enable_shared or enable_static is yes.
12693 test "$enable_shared" = yes || enable_static=yes
12694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12695$as_echo "$enable_static" >&6; }
66170b30 12696
9c60689e 12697
e9c9a47c 12698
9c60689e 12699
a243b558
JF
12700fi
12701ac_ext=c
12702ac_cpp='$CPP $CPPFLAGS'
12703ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12704ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12705ac_compiler_gnu=$ac_cv_c_compiler_gnu
12706
12707CC="$lt_save_CC"
e9c9a47c 12708
ee134472 12709 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
e9c9a47c
DWT
12710 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12711 (test "X$CXX" != "Xg++"))) ; then
12712 ac_ext=cpp
12713ac_cpp='$CXXCPP $CPPFLAGS'
12714ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12715ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12716ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12718$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12719if test -z "$CXXCPP"; then
ee134472 12720 if ${ac_cv_prog_CXXCPP+:} false; then :
e9c9a47c
DWT
12721 $as_echo_n "(cached) " >&6
12722else
12723 # Double quotes because CXXCPP needs to be expanded
12724 for CXXCPP in "$CXX -E" "/lib/cpp"
12725 do
12726 ac_preproc_ok=false
12727for ac_cxx_preproc_warn_flag in '' yes
12728do
12729 # Use a header file that comes with gcc, so configuring glibc
12730 # with a fresh cross-compiler works.
12731 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12732 # <limits.h> exists even on freestanding compilers.
12733 # On the NeXT, cc -E runs the code through the compiler's parser,
12734 # not just through cpp. "Syntax error" is here to catch this case.
12735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12736/* end confdefs.h. */
12737#ifdef __STDC__
12738# include <limits.h>
12739#else
12740# include <assert.h>
12741#endif
12742 Syntax error
12743_ACEOF
12744if ac_fn_cxx_try_cpp "$LINENO"; then :
12745
12746else
12747 # Broken: fails on valid input.
12748continue
12749fi
12833ad8 12750rm -f conftest.err conftest.i conftest.$ac_ext
e9c9a47c
DWT
12751
12752 # OK, works on sane cases. Now check whether nonexistent headers
12753 # can be detected and how.
12754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12755/* end confdefs.h. */
12756#include <ac_nonexistent.h>
12757_ACEOF
12758if ac_fn_cxx_try_cpp "$LINENO"; then :
12759 # Broken: success on invalid input.
12760continue
12761else
12762 # Passes both tests.
12763ac_preproc_ok=:
12764break
12765fi
12833ad8 12766rm -f conftest.err conftest.i conftest.$ac_ext
e9c9a47c
DWT
12767
12768done
12769# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12833ad8 12770rm -f conftest.i conftest.err conftest.$ac_ext
e9c9a47c
DWT
12771if $ac_preproc_ok; then :
12772 break
12773fi
12774
12775 done
12776 ac_cv_prog_CXXCPP=$CXXCPP
12777
12778fi
12779 CXXCPP=$ac_cv_prog_CXXCPP
12780else
12781 ac_cv_prog_CXXCPP=$CXXCPP
12782fi
12783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12784$as_echo "$CXXCPP" >&6; }
12785ac_preproc_ok=false
12786for ac_cxx_preproc_warn_flag in '' yes
12787do
12788 # Use a header file that comes with gcc, so configuring glibc
12789 # with a fresh cross-compiler works.
12790 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12791 # <limits.h> exists even on freestanding compilers.
12792 # On the NeXT, cc -E runs the code through the compiler's parser,
12793 # not just through cpp. "Syntax error" is here to catch this case.
12794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12795/* end confdefs.h. */
12796#ifdef __STDC__
12797# include <limits.h>
12798#else
12799# include <assert.h>
12800#endif
12801 Syntax error
12802_ACEOF
12803if ac_fn_cxx_try_cpp "$LINENO"; then :
12804
12805else
12806 # Broken: fails on valid input.
12807continue
12808fi
12833ad8 12809rm -f conftest.err conftest.i conftest.$ac_ext
e9c9a47c
DWT
12810
12811 # OK, works on sane cases. Now check whether nonexistent headers
12812 # can be detected and how.
12813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12814/* end confdefs.h. */
12815#include <ac_nonexistent.h>
12816_ACEOF
12817if ac_fn_cxx_try_cpp "$LINENO"; then :
12818 # Broken: success on invalid input.
12819continue
12820else
12821 # Passes both tests.
12822ac_preproc_ok=:
12823break
12824fi
12833ad8 12825rm -f conftest.err conftest.i conftest.$ac_ext
e9c9a47c
DWT
12826
12827done
12828# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12833ad8 12829rm -f conftest.i conftest.err conftest.$ac_ext
e9c9a47c
DWT
12830if $ac_preproc_ok; then :
12831
12832else
12833 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12834$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
ee134472
JF
12835as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12836See \`config.log' for more details" "$LINENO" 5; }
e9c9a47c
DWT
12837fi
12838
a243b558
JF
12839ac_ext=c
12840ac_cpp='$CPP $CPPFLAGS'
12841ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12842ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12843ac_compiler_gnu=$ac_cv_c_compiler_gnu
66170b30
JF
12844
12845else
e9c9a47c
DWT
12846 _lt_caught_CXX_error=yes
12847fi
12848
9c60689e
DWT
12849ac_ext=cpp
12850ac_cpp='$CXXCPP $CPPFLAGS'
12851ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12852ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12853ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9c60689e 12854
47aaa820
DWT
12855archive_cmds_need_lc_CXX=no
12856allow_undefined_flag_CXX=
12857always_export_symbols_CXX=no
12858archive_expsym_cmds_CXX=
12859compiler_needs_object_CXX=no
12860export_dynamic_flag_spec_CXX=
12861hardcode_direct_CXX=no
12862hardcode_direct_absolute_CXX=no
12863hardcode_libdir_flag_spec_CXX=
47aaa820
DWT
12864hardcode_libdir_separator_CXX=
12865hardcode_minus_L_CXX=no
12866hardcode_shlibpath_var_CXX=unsupported
12867hardcode_automatic_CXX=no
12868inherit_rpath_CXX=no
12869module_cmds_CXX=
12870module_expsym_cmds_CXX=
12871link_all_deplibs_CXX=unknown
12872old_archive_cmds_CXX=$old_archive_cmds
ee134472
JF
12873reload_flag_CXX=$reload_flag
12874reload_cmds_CXX=$reload_cmds
47aaa820
DWT
12875no_undefined_flag_CXX=
12876whole_archive_flag_spec_CXX=
12877enable_shared_with_static_runtimes_CXX=no
9c60689e 12878
47aaa820
DWT
12879# Source file extension for C++ test sources.
12880ac_ext=cpp
9c60689e 12881
47aaa820
DWT
12882# Object file extension for compiled C++ test sources.
12883objext=o
12884objext_CXX=$objext
9c60689e 12885
47aaa820
DWT
12886# No sense in running all these tests if we already determined that
12887# the CXX compiler isn't working. Some variables (like enable_shared)
12888# are currently assumed to apply to all compilers on this platform,
12889# and will be corrupted by setting them based on a non-working compiler.
12890if test "$_lt_caught_CXX_error" != yes; then
12891 # Code to be used in simple compile tests
12892 lt_simple_compile_test_code="int some_variable = 0;"
9c60689e 12893
47aaa820
DWT
12894 # Code to be used in simple link tests
12895 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
9c60689e 12896
47aaa820 12897 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9c60689e 12898
9c60689e 12899
9c60689e 12900
9c60689e 12901
9c60689e 12902
9c60689e 12903
47aaa820
DWT
12904# If no C compiler was specified, use CC.
12905LTCC=${LTCC-"$CC"}
9c60689e 12906
47aaa820
DWT
12907# If no C compiler flags were specified, use CFLAGS.
12908LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9c60689e 12909
47aaa820
DWT
12910# Allow CC to be a program name with arguments.
12911compiler=$CC
9c60689e 12912
9c60689e 12913
47aaa820
DWT
12914 # save warnings/boilerplate of simple test code
12915 ac_outfile=conftest.$ac_objext
12916echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12917eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12918_lt_compiler_boilerplate=`cat conftest.err`
00a96142 12919$RM -r conftest*
9c60689e 12920
47aaa820
DWT
12921 ac_outfile=conftest.$ac_objext
12922echo "$lt_simple_link_test_code" >conftest.$ac_ext
12923eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12924_lt_linker_boilerplate=`cat conftest.err`
12925$RM -r conftest*
9c60689e 12926
9c60689e 12927
47aaa820
DWT
12928 # Allow CC to be a program name with arguments.
12929 lt_save_CC=$CC
ee134472 12930 lt_save_CFLAGS=$CFLAGS
47aaa820
DWT
12931 lt_save_LD=$LD
12932 lt_save_GCC=$GCC
12933 GCC=$GXX
12934 lt_save_with_gnu_ld=$with_gnu_ld
12935 lt_save_path_LD=$lt_cv_path_LD
12936 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12937 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9c60689e 12938 else
47aaa820 12939 $as_unset lt_cv_prog_gnu_ld
9c60689e 12940 fi
47aaa820
DWT
12941 if test -n "${lt_cv_path_LDCXX+set}"; then
12942 lt_cv_path_LD=$lt_cv_path_LDCXX
9c60689e 12943 else
47aaa820 12944 $as_unset lt_cv_path_LD
9c60689e 12945 fi
47aaa820
DWT
12946 test -z "${LDCXX+set}" || LD=$LDCXX
12947 CC=${CXX-"c++"}
ee134472 12948 CFLAGS=$CXXFLAGS
47aaa820
DWT
12949 compiler=$CC
12950 compiler_CXX=$CC
12951 for cc_temp in $compiler""; do
12952 case $cc_temp in
12953 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12954 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12955 \-*) ;;
12956 *) break;;
12957 esac
12958done
ee134472 12959cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9c60689e
DWT
12960
12961
47aaa820
DWT
12962 if test -n "$compiler"; then
12963 # We don't want -fno-exception when compiling C++ code, so set the
12964 # no_builtin_flag separately
12965 if test "$GXX" = yes; then
12966 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12967 else
12968 lt_prog_compiler_no_builtin_flag_CXX=
12969 fi
9c60689e 12970
47aaa820
DWT
12971 if test "$GXX" = yes; then
12972 # Set up default GNU C++ configuration
12973
12974
12975
12976# Check whether --with-gnu-ld was given.
12977if test "${with_gnu_ld+set}" = set; then :
12978 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9c60689e 12979else
47aaa820 12980 with_gnu_ld=no
9c60689e
DWT
12981fi
12982
47aaa820
DWT
12983ac_prog=ld
12984if test "$GCC" = yes; then
12985 # Check if gcc -print-prog-name=ld gives a path.
12986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12987$as_echo_n "checking for ld used by $CC... " >&6; }
12988 case $host in
12989 *-*-mingw*)
12990 # gcc leaves a trailing carriage return which upsets mingw
12991 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12992 *)
12993 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12994 esac
12995 case $ac_prog in
12996 # Accept absolute paths.
12997 [\\/]* | ?:[\\/]*)
12998 re_direlt='/[^/][^/]*/\.\./'
12999 # Canonicalize the pathname of ld
13000 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13001 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13002 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13003 done
13004 test -z "$LD" && LD="$ac_prog"
13005 ;;
13006 "")
13007 # If it fails, then pretend we aren't using GCC.
13008 ac_prog=ld
13009 ;;
13010 *)
13011 # If it is relative, then search for the first ld in PATH.
13012 with_gnu_ld=unknown
13013 ;;
13014 esac
13015elif test "$with_gnu_ld" = yes; then
13016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13017$as_echo_n "checking for GNU ld... " >&6; }
13018else
13019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13020$as_echo_n "checking for non-GNU ld... " >&6; }
9c60689e 13021fi
ee134472 13022if ${lt_cv_path_LD+:} false; then :
9c60689e
DWT
13023 $as_echo_n "(cached) " >&6
13024else
47aaa820
DWT
13025 if test -z "$LD"; then
13026 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13027 for ac_dir in $PATH; do
13028 IFS="$lt_save_ifs"
13029 test -z "$ac_dir" && ac_dir=.
13030 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13031 lt_cv_path_LD="$ac_dir/$ac_prog"
13032 # Check to see if the program is GNU ld. I'd rather use --version,
13033 # but apparently some variants of GNU ld only accept -v.
13034 # Break only if it was the GNU/non-GNU ld that we prefer.
13035 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13036 *GNU* | *'with BFD'*)
13037 test "$with_gnu_ld" != no && break
13038 ;;
13039 *)
13040 test "$with_gnu_ld" != yes && break
13041 ;;
13042 esac
13043 fi
9c60689e 13044 done
47aaa820
DWT
13045 IFS="$lt_save_ifs"
13046else
13047 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9c60689e
DWT
13048fi
13049fi
47aaa820
DWT
13050
13051LD="$lt_cv_path_LD"
13052if test -n "$LD"; then
13053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13054$as_echo "$LD" >&6; }
9c60689e
DWT
13055else
13056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13057$as_echo "no" >&6; }
13058fi
12833ad8 13059test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
47aaa820
DWT
13060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13061$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
ee134472 13062if ${lt_cv_prog_gnu_ld+:} false; then :
47aaa820
DWT
13063 $as_echo_n "(cached) " >&6
13064else
13065 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13066case `$LD -v 2>&1 </dev/null` in
13067*GNU* | *'with BFD'*)
13068 lt_cv_prog_gnu_ld=yes
13069 ;;
13070*)
13071 lt_cv_prog_gnu_ld=no
13072 ;;
13073esac
13074fi
13075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13076$as_echo "$lt_cv_prog_gnu_ld" >&6; }
13077with_gnu_ld=$lt_cv_prog_gnu_ld
9c60689e
DWT
13078
13079
9c60689e 13080
9c60689e 13081
9c60689e 13082
9c60689e 13083
9c60689e 13084
47aaa820
DWT
13085 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13086 # archiving commands below assume that GNU ld is being used.
13087 if test "$with_gnu_ld" = yes; then
ee134472
JF
13088 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13089 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 13090
47aaa820
DWT
13091 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13092 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9c60689e 13093
47aaa820
DWT
13094 # If archive_cmds runs LD, not CC, wlarc should be empty
13095 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13096 # investigate it a little bit more. (MM)
13097 wlarc='${wl}'
9c60689e 13098
47aaa820
DWT
13099 # ancient GNU ld didn't support --whole-archive et. al.
13100 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13101 $GREP 'no-whole-archive' > /dev/null; then
13102 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13103 else
13104 whole_archive_flag_spec_CXX=
13105 fi
13106 else
13107 with_gnu_ld=no
13108 wlarc=
13109
13110 # A generic and very simple default shared library creation
13111 # command for GNU C++ for the case where it uses the native
13112 # linker, instead of GNU ld. If possible, this setting should
13113 # overridden to take advantage of the native linker features on
13114 # the platform it is being used on.
13115 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13116 fi
13117
13118 # Commands to make compiler produce verbose output that lists
13119 # what "hidden" libraries, object files and flags are used when
13120 # linking a shared library.
ee134472 13121 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
47aaa820
DWT
13122
13123 else
13124 GXX=no
13125 with_gnu_ld=no
13126 wlarc=
13127 fi
13128
13129 # PORTME: fill in a description of your system's C++ link characteristics
13130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13131$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13132 ld_shlibs_CXX=yes
13133 case $host_os in
13134 aix3*)
13135 # FIXME: insert proper C++ library support
13136 ld_shlibs_CXX=no
13137 ;;
13138 aix[4-9]*)
13139 if test "$host_cpu" = ia64; then
13140 # On IA64, the linker does run time linking by default, so we don't
13141 # have to do anything special.
13142 aix_use_runtimelinking=no
13143 exp_sym_flag='-Bexport'
13144 no_entry_flag=""
13145 else
13146 aix_use_runtimelinking=no
13147
13148 # Test if we are trying to use run time linking or normal
13149 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13150 # need to do runtime linking.
13151 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13152 for ld_flag in $LDFLAGS; do
13153 case $ld_flag in
13154 *-brtl*)
13155 aix_use_runtimelinking=yes
13156 break
13157 ;;
13158 esac
13159 done
13160 ;;
13161 esac
13162
13163 exp_sym_flag='-bexport'
13164 no_entry_flag='-bnoentry'
13165 fi
13166
13167 # When large executables or shared objects are built, AIX ld can
13168 # have problems creating the table of contents. If linking a library
13169 # or program results in "error TOC overflow" add -mminimal-toc to
13170 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13171 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13172
13173 archive_cmds_CXX=''
13174 hardcode_direct_CXX=yes
13175 hardcode_direct_absolute_CXX=yes
13176 hardcode_libdir_separator_CXX=':'
13177 link_all_deplibs_CXX=yes
13178 file_list_spec_CXX='${wl}-f,'
13179
13180 if test "$GXX" = yes; then
13181 case $host_os in aix4.[012]|aix4.[012].*)
13182 # We only want to do this on AIX 4.2 and lower, the check
13183 # below for broken collect2 doesn't work under 4.3+
13184 collect2name=`${CC} -print-prog-name=collect2`
13185 if test -f "$collect2name" &&
13186 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13187 then
13188 # We have reworked collect2
13189 :
13190 else
13191 # We have old collect2
13192 hardcode_direct_CXX=unsupported
13193 # It fails to find uninstalled libraries when the uninstalled
13194 # path is not listed in the libpath. Setting hardcode_minus_L
13195 # to unsupported forces relinking
13196 hardcode_minus_L_CXX=yes
13197 hardcode_libdir_flag_spec_CXX='-L$libdir'
13198 hardcode_libdir_separator_CXX=
13199 fi
13200 esac
13201 shared_flag='-shared'
13202 if test "$aix_use_runtimelinking" = yes; then
13203 shared_flag="$shared_flag "'${wl}-G'
13204 fi
13205 else
13206 # not using gcc
13207 if test "$host_cpu" = ia64; then
13208 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13209 # chokes on -Wl,-G. The following line is correct:
13210 shared_flag='-G'
13211 else
13212 if test "$aix_use_runtimelinking" = yes; then
13213 shared_flag='${wl}-G'
13214 else
13215 shared_flag='${wl}-bM:SRE'
13216 fi
13217 fi
13218 fi
13219
13220 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13221 # It seems that -bexpall does not export symbols beginning with
13222 # underscore (_), so it is better to generate a list of symbols to
13223 # export.
13224 always_export_symbols_CXX=yes
13225 if test "$aix_use_runtimelinking" = yes; then
13226 # Warning - without using the other runtime loading flags (-brtl),
13227 # -berok will link without error, but may produce a broken library.
13228 allow_undefined_flag_CXX='-berok'
13229 # Determine the default libpath from the value encoded in an empty
13230 # executable.
ee134472
JF
13231 if test "${lt_cv_aix_libpath+set}" = set; then
13232 aix_libpath=$lt_cv_aix_libpath
13233else
13234 if ${lt_cv_aix_libpath__CXX+:} false; then :
13235 $as_echo_n "(cached) " >&6
13236else
13237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9c60689e
DWT
13238/* end confdefs.h. */
13239
13240int
13241main ()
13242{
13243
13244 ;
13245 return 0;
13246}
13247_ACEOF
47aaa820 13248if ac_fn_cxx_try_link "$LINENO"; then :
9c60689e 13249
ee134472
JF
13250 lt_aix_libpath_sed='
13251 /Import File Strings/,/^$/ {
13252 /^0/ {
13253 s/^0 *\([^ ]*\) *$/\1/
13254 p
13255 }
13256 }'
13257 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13258 # Check for a 64-bit object if we didn't find anything.
13259 if test -z "$lt_cv_aix_libpath__CXX"; then
13260 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13261 fi
47aaa820
DWT
13262fi
13263rm -f core conftest.err conftest.$ac_objext \
13264 conftest$ac_exeext conftest.$ac_ext
ee134472
JF
13265 if test -z "$lt_cv_aix_libpath__CXX"; then
13266 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13267 fi
13268
13269fi
13270
13271 aix_libpath=$lt_cv_aix_libpath__CXX
13272fi
47aaa820
DWT
13273
13274 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13275
ee134472 13276 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
47aaa820
DWT
13277 else
13278 if test "$host_cpu" = ia64; then
13279 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13280 allow_undefined_flag_CXX="-z nodefs"
13281 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"
13282 else
13283 # Determine the default libpath from the value encoded in an
13284 # empty executable.
ee134472
JF
13285 if test "${lt_cv_aix_libpath+set}" = set; then
13286 aix_libpath=$lt_cv_aix_libpath
13287else
13288 if ${lt_cv_aix_libpath__CXX+:} false; then :
13289 $as_echo_n "(cached) " >&6
13290else
13291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9c60689e
DWT
13292/* end confdefs.h. */
13293
13294int
13295main ()
13296{
13297
13298 ;
13299 return 0;
13300}
13301_ACEOF
47aaa820 13302if ac_fn_cxx_try_link "$LINENO"; then :
9c60689e 13303
ee134472
JF
13304 lt_aix_libpath_sed='
13305 /Import File Strings/,/^$/ {
13306 /^0/ {
13307 s/^0 *\([^ ]*\) *$/\1/
13308 p
13309 }
13310 }'
13311 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13312 # Check for a 64-bit object if we didn't find anything.
13313 if test -z "$lt_cv_aix_libpath__CXX"; then
13314 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13315 fi
9c60689e 13316fi
47aaa820
DWT
13317rm -f core conftest.err conftest.$ac_objext \
13318 conftest$ac_exeext conftest.$ac_ext
ee134472
JF
13319 if test -z "$lt_cv_aix_libpath__CXX"; then
13320 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13321 fi
13322
13323fi
13324
13325 aix_libpath=$lt_cv_aix_libpath__CXX
13326fi
9c60689e 13327
47aaa820
DWT
13328 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13329 # Warning - without using the other run time loading flags,
13330 # -berok will link without error, but may produce a broken library.
13331 no_undefined_flag_CXX=' ${wl}-bernotok'
13332 allow_undefined_flag_CXX=' ${wl}-berok'
ee134472
JF
13333 if test "$with_gnu_ld" = yes; then
13334 # We only use this code for GNU lds that support --whole-archive.
13335 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13336 else
13337 # Exported symbols can be pulled into shared objects from archives
13338 whole_archive_flag_spec_CXX='$convenience'
13339 fi
47aaa820
DWT
13340 archive_cmds_need_lc_CXX=yes
13341 # This is similar to how AIX traditionally builds its shared
13342 # libraries.
13343 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13344 fi
13345 fi
13346 ;;
9c60689e 13347
47aaa820
DWT
13348 beos*)
13349 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13350 allow_undefined_flag_CXX=unsupported
13351 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13352 # support --undefined. This deserves some investigation. FIXME
13353 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13354 else
13355 ld_shlibs_CXX=no
13356 fi
13357 ;;
9c60689e 13358
47aaa820
DWT
13359 chorus*)
13360 case $cc_basename in
13361 *)
13362 # FIXME: insert proper C++ library support
13363 ld_shlibs_CXX=no
13364 ;;
13365 esac
13366 ;;
9c60689e 13367
47aaa820 13368 cygwin* | mingw* | pw32* | cegcc*)
ee134472
JF
13369 case $GXX,$cc_basename in
13370 ,cl* | no,cl*)
13371 # Native MSVC
13372 # hardcode_libdir_flag_spec is actually meaningless, as there is
13373 # no search path for DLLs.
13374 hardcode_libdir_flag_spec_CXX=' '
13375 allow_undefined_flag_CXX=unsupported
13376 always_export_symbols_CXX=yes
13377 file_list_spec_CXX='@'
13378 # Tell ltmain to make .lib files, not .a files.
13379 libext=lib
13380 # Tell ltmain to make .dll files, not .so files.
13381 shrext_cmds=".dll"
13382 # FIXME: Setting linknames here is a bad hack.
13383 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13384 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13385 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13386 else
13387 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13388 fi~
13389 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13390 linknames='
13391 # The linker will not automatically build a static lib if we build a DLL.
13392 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13393 enable_shared_with_static_runtimes_CXX=yes
13394 # Don't use ranlib
13395 old_postinstall_cmds_CXX='chmod 644 $oldlib'
13396 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13397 lt_tool_outputfile="@TOOL_OUTPUT@"~
13398 case $lt_outputfile in
13399 *.exe|*.EXE) ;;
13400 *)
13401 lt_outputfile="$lt_outputfile.exe"
13402 lt_tool_outputfile="$lt_tool_outputfile.exe"
13403 ;;
13404 esac~
13405 func_to_tool_file "$lt_outputfile"~
13406 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13407 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13408 $RM "$lt_outputfile.manifest";
13409 fi'
13410 ;;
13411 *)
13412 # g++
13413 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13414 # as there is no search path for DLLs.
13415 hardcode_libdir_flag_spec_CXX='-L$libdir'
13416 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13417 allow_undefined_flag_CXX=unsupported
13418 always_export_symbols_CXX=no
13419 enable_shared_with_static_runtimes_CXX=yes
13420
13421 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13422 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'
13423 # If the export-symbols file already is a .def file (1st line
13424 # is EXPORTS), use it as is; otherwise, prepend...
13425 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13426 cp $export_symbols $output_objdir/$soname.def;
13427 else
13428 echo EXPORTS > $output_objdir/$soname.def;
13429 cat $export_symbols >> $output_objdir/$soname.def;
13430 fi~
13431 $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'
13432 else
13433 ld_shlibs_CXX=no
13434 fi
13435 ;;
13436 esac
13437 ;;
47aaa820 13438 darwin* | rhapsody*)
9c60689e 13439
9c60689e 13440
47aaa820
DWT
13441 archive_cmds_need_lc_CXX=no
13442 hardcode_direct_CXX=no
13443 hardcode_automatic_CXX=yes
13444 hardcode_shlibpath_var_CXX=unsupported
ee134472
JF
13445 if test "$lt_cv_ld_force_load" = "yes"; then
13446 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 13447
ee134472
JF
13448 else
13449 whole_archive_flag_spec_CXX=''
13450 fi
47aaa820
DWT
13451 link_all_deplibs_CXX=yes
13452 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13453 case $cc_basename in
13454 ifort*) _lt_dar_can_shared=yes ;;
13455 *) _lt_dar_can_shared=$GCC ;;
13456 esac
13457 if test "$_lt_dar_can_shared" = "yes"; then
ee134472 13458 output_verbose_link_cmd=func_echo_all
47aaa820
DWT
13459 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}"
13460 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13461 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}"
13462 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}"
13463 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13464 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}"
13465 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}"
13466 fi
9c60689e 13467
47aaa820
DWT
13468 else
13469 ld_shlibs_CXX=no
13470 fi
9c60689e 13471
47aaa820 13472 ;;
9c60689e 13473
47aaa820
DWT
13474 dgux*)
13475 case $cc_basename in
13476 ec++*)
13477 # FIXME: insert proper C++ library support
13478 ld_shlibs_CXX=no
13479 ;;
13480 ghcx*)
13481 # Green Hills C++ Compiler
13482 # FIXME: insert proper C++ library support
13483 ld_shlibs_CXX=no
13484 ;;
13485 *)
13486 # FIXME: insert proper C++ library support
13487 ld_shlibs_CXX=no
13488 ;;
13489 esac
13490 ;;
9c60689e 13491
53ba6704 13492 freebsd2.*)
47aaa820
DWT
13493 # C++ shared libraries reported to be fairly broken before
13494 # switch to ELF
13495 ld_shlibs_CXX=no
13496 ;;
9c60689e 13497
47aaa820
DWT
13498 freebsd-elf*)
13499 archive_cmds_need_lc_CXX=no
13500 ;;
9c60689e 13501
47aaa820
DWT
13502 freebsd* | dragonfly*)
13503 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13504 # conventions
13505 ld_shlibs_CXX=yes
13506 ;;
9c60689e 13507
47aaa820
DWT
13508 gnu*)
13509 ;;
9c60689e 13510
ee134472
JF
13511 haiku*)
13512 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13513 link_all_deplibs_CXX=yes
13514 ;;
13515
47aaa820
DWT
13516 hpux9*)
13517 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13518 hardcode_libdir_separator_CXX=:
13519 export_dynamic_flag_spec_CXX='${wl}-E'
13520 hardcode_direct_CXX=yes
13521 hardcode_minus_L_CXX=yes # Not in the search PATH,
13522 # but as the default
13523 # location of the library.
9c60689e 13524
47aaa820
DWT
13525 case $cc_basename in
13526 CC*)
13527 # FIXME: insert proper C++ library support
13528 ld_shlibs_CXX=no
13529 ;;
13530 aCC*)
13531 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 $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13532 # Commands to make compiler produce verbose output that lists
13533 # what "hidden" libraries, object files and flags are used when
13534 # linking a shared library.
13535 #
13536 # There doesn't appear to be a way to prevent this compiler from
13537 # explicitly linking system object files so we need to strip them
13538 # from the output so that they don't get included in the library
13539 # dependencies.
ee134472 13540 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
13541 ;;
13542 *)
13543 if test "$GXX" = yes; then
ee134472 13544 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 $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
47aaa820
DWT
13545 else
13546 # FIXME: insert proper C++ library support
13547 ld_shlibs_CXX=no
13548 fi
13549 ;;
13550 esac
13551 ;;
9c60689e 13552
47aaa820
DWT
13553 hpux10*|hpux11*)
13554 if test $with_gnu_ld = no; then
13555 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13556 hardcode_libdir_separator_CXX=:
9c60689e 13557
47aaa820
DWT
13558 case $host_cpu in
13559 hppa*64*|ia64*)
13560 ;;
13561 *)
13562 export_dynamic_flag_spec_CXX='${wl}-E'
13563 ;;
13564 esac
13565 fi
13566 case $host_cpu in
13567 hppa*64*|ia64*)
13568 hardcode_direct_CXX=no
13569 hardcode_shlibpath_var_CXX=no
13570 ;;
13571 *)
13572 hardcode_direct_CXX=yes
13573 hardcode_direct_absolute_CXX=yes
13574 hardcode_minus_L_CXX=yes # Not in the search PATH,
13575 # but as the default
13576 # location of the library.
13577 ;;
13578 esac
9c60689e 13579
47aaa820
DWT
13580 case $cc_basename in
13581 CC*)
13582 # FIXME: insert proper C++ library support
13583 ld_shlibs_CXX=no
13584 ;;
13585 aCC*)
13586 case $host_cpu in
13587 hppa*64*)
13588 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13589 ;;
13590 ia64*)
13591 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13592 ;;
13593 *)
13594 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13595 ;;
13596 esac
13597 # Commands to make compiler produce verbose output that lists
13598 # what "hidden" libraries, object files and flags are used when
13599 # linking a shared library.
13600 #
13601 # There doesn't appear to be a way to prevent this compiler from
13602 # explicitly linking system object files so we need to strip them
13603 # from the output so that they don't get included in the library
13604 # dependencies.
ee134472 13605 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
13606 ;;
13607 *)
13608 if test "$GXX" = yes; then
13609 if test $with_gnu_ld = no; then
13610 case $host_cpu in
13611 hppa*64*)
13612 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13613 ;;
13614 ia64*)
ee134472 13615 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
13616 ;;
13617 *)
ee134472 13618 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
13619 ;;
13620 esac
13621 fi
13622 else
13623 # FIXME: insert proper C++ library support
13624 ld_shlibs_CXX=no
13625 fi
13626 ;;
13627 esac
13628 ;;
9c60689e 13629
47aaa820
DWT
13630 interix[3-9]*)
13631 hardcode_direct_CXX=no
13632 hardcode_shlibpath_var_CXX=no
13633 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13634 export_dynamic_flag_spec_CXX='${wl}-E'
13635 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13636 # Instead, shared libraries are loaded at an image base (0x10000000 by
13637 # default) and relocated if they conflict, which is a slow very memory
13638 # consuming and fragmenting process. To avoid this, we pick a random,
13639 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13640 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13641 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'
13642 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'
13643 ;;
13644 irix5* | irix6*)
13645 case $cc_basename in
13646 CC*)
13647 # SGI C++
ee134472 13648 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 13649
47aaa820
DWT
13650 # Archives containing C++ object files must be created using
13651 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13652 # necessary to make sure instantiated templates are included
13653 # in the archive.
13654 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13655 ;;
13656 *)
13657 if test "$GXX" = yes; then
13658 if test "$with_gnu_ld" = no; then
ee134472 13659 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 13660 else
ee134472 13661 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
13662 fi
13663 fi
13664 link_all_deplibs_CXX=yes
13665 ;;
13666 esac
13667 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13668 hardcode_libdir_separator_CXX=:
13669 inherit_rpath_CXX=yes
13670 ;;
9c60689e 13671
1504c9b8 13672 linux* | k*bsd*-gnu | kopensolaris*-gnu)
47aaa820
DWT
13673 case $cc_basename in
13674 KCC*)
13675 # Kuck and Associates, Inc. (KAI) C++ Compiler
9c60689e 13676
47aaa820
DWT
13677 # KCC will only create a shared library if the output file
13678 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13679 # to its proper name (with version) after linking.
13680 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'
13681 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'
13682 # Commands to make compiler produce verbose output that lists
13683 # what "hidden" libraries, object files and flags are used when
13684 # linking a shared library.
13685 #
13686 # There doesn't appear to be a way to prevent this compiler from
13687 # explicitly linking system object files so we need to strip them
13688 # from the output so that they don't get included in the library
13689 # dependencies.
ee134472 13690 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 13691
47aaa820
DWT
13692 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13693 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9c60689e 13694
47aaa820
DWT
13695 # Archives containing C++ object files must be created using
13696 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13697 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13698 ;;
13699 icpc* | ecpc* )
13700 # Intel C++
13701 with_gnu_ld=yes
13702 # version 8.0 and above of icpc choke on multiply defined symbols
13703 # if we add $predep_objects and $postdep_objects, however 7.1 and
13704 # earlier do not add the objects themselves.
13705 case `$CC -V 2>&1` in
13706 *"Version 7."*)
13707 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13708 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'
13709 ;;
13710 *) # Version 8.0 or newer
13711 tmp_idyn=
13712 case $host_cpu in
13713 ia64*) tmp_idyn=' -i_dynamic';;
13714 esac
13715 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13716 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'
13717 ;;
13718 esac
13719 archive_cmds_need_lc_CXX=no
13720 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13721 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13722 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13723 ;;
13724 pgCC* | pgcpp*)
13725 # Portland Group C++ compiler
13726 case `$CC -V` in
ee134472 13727 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
47aaa820
DWT
13728 prelink_cmds_CXX='tpldir=Template.dir~
13729 rm -rf $tpldir~
13730 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
ee134472 13731 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
47aaa820
DWT
13732 old_archive_cmds_CXX='tpldir=Template.dir~
13733 rm -rf $tpldir~
13734 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
ee134472 13735 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
47aaa820
DWT
13736 $RANLIB $oldlib'
13737 archive_cmds_CXX='tpldir=Template.dir~
13738 rm -rf $tpldir~
13739 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
ee134472 13740 $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
DWT
13741 archive_expsym_cmds_CXX='tpldir=Template.dir~
13742 rm -rf $tpldir~
13743 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
ee134472 13744 $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 13745 ;;
ee134472 13746 *) # Version 6 and above use weak symbols
47aaa820
DWT
13747 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13748 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'
13749 ;;
13750 esac
9c60689e 13751
47aaa820
DWT
13752 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13753 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
ee134472 13754 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
13755 ;;
13756 cxx*)
13757 # Compaq C++
13758 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13759 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 13760
47aaa820
DWT
13761 runpath_var=LD_RUN_PATH
13762 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13763 hardcode_libdir_separator_CXX=:
9c60689e 13764
47aaa820
DWT
13765 # Commands to make compiler produce verbose output that lists
13766 # what "hidden" libraries, object files and flags are used when
13767 # linking a shared library.
13768 #
13769 # There doesn't appear to be a way to prevent this compiler from
13770 # explicitly linking system object files so we need to strip them
13771 # from the output so that they don't get included in the library
13772 # dependencies.
ee134472 13773 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 13774 ;;
ee134472 13775 xl* | mpixl* | bgxl*)
47aaa820
DWT
13776 # IBM XL 8.0 on PPC, with GNU ld
13777 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13778 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13779 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13780 if test "x$supports_anon_versioning" = xyes; then
13781 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13782 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13783 echo "local: *; };" >> $output_objdir/$libname.ver~
13784 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13785 fi
13786 ;;
13787 *)
13788 case `$CC -V 2>&1 | sed 5q` in
13789 *Sun\ C*)
13790 # Sun C++ 5.9
13791 no_undefined_flag_CXX=' -zdefs'
13792 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13793 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'
13794 hardcode_libdir_flag_spec_CXX='-R$libdir'
ee134472 13795 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 13796 compiler_needs_object_CXX=yes
9c60689e 13797
47aaa820
DWT
13798 # Not sure whether something based on
13799 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13800 # would be better.
ee134472 13801 output_verbose_link_cmd='func_echo_all'
9c60689e 13802
47aaa820
DWT
13803 # Archives containing C++ object files must be created using
13804 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13805 # necessary to make sure instantiated templates are included
13806 # in the archive.
13807 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13808 ;;
13809 esac
13810 ;;
13811 esac
13812 ;;
9c60689e 13813
47aaa820
DWT
13814 lynxos*)
13815 # FIXME: insert proper C++ library support
13816 ld_shlibs_CXX=no
13817 ;;
9c60689e 13818
47aaa820
DWT
13819 m88k*)
13820 # FIXME: insert proper C++ library support
13821 ld_shlibs_CXX=no
13822 ;;
9c60689e 13823
47aaa820
DWT
13824 mvs*)
13825 case $cc_basename in
13826 cxx*)
13827 # FIXME: insert proper C++ library support
13828 ld_shlibs_CXX=no
13829 ;;
13830 *)
13831 # FIXME: insert proper C++ library support
13832 ld_shlibs_CXX=no
13833 ;;
13834 esac
13835 ;;
9c60689e 13836
47aaa820
DWT
13837 netbsd*)
13838 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13839 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13840 wlarc=
13841 hardcode_libdir_flag_spec_CXX='-R$libdir'
13842 hardcode_direct_CXX=yes
13843 hardcode_shlibpath_var_CXX=no
13844 fi
13845 # Workaround some broken pre-1.5 toolchains
13846 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
9c60689e 13847 ;;
47aaa820
DWT
13848
13849 *nto* | *qnx*)
13850 ld_shlibs_CXX=yes
9c60689e 13851 ;;
9c60689e 13852
47aaa820
DWT
13853 openbsd2*)
13854 # C++ shared libraries are fairly broken
13855 ld_shlibs_CXX=no
13856 ;;
9c60689e 13857
47aaa820
DWT
13858 openbsd*)
13859 if test -f /usr/libexec/ld.so; then
13860 hardcode_direct_CXX=yes
13861 hardcode_shlibpath_var_CXX=no
13862 hardcode_direct_absolute_CXX=yes
13863 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13864 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13865 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13866 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13867 export_dynamic_flag_spec_CXX='${wl}-E'
13868 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13869 fi
ee134472 13870 output_verbose_link_cmd=func_echo_all
47aaa820
DWT
13871 else
13872 ld_shlibs_CXX=no
13873 fi
13874 ;;
9c60689e 13875
47aaa820
DWT
13876 osf3* | osf4* | osf5*)
13877 case $cc_basename in
13878 KCC*)
13879 # Kuck and Associates, Inc. (KAI) C++ Compiler
9c60689e 13880
47aaa820
DWT
13881 # KCC will only create a shared library if the output file
13882 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13883 # to its proper name (with version) after linking.
13884 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 13885
47aaa820
DWT
13886 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13887 hardcode_libdir_separator_CXX=:
9c60689e 13888
47aaa820
DWT
13889 # Archives containing C++ object files must be created using
13890 # the KAI C++ compiler.
13891 case $host in
13892 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13893 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13894 esac
13895 ;;
13896 RCC*)
13897 # Rational C++ 2.4.1
13898 # FIXME: insert proper C++ library support
13899 ld_shlibs_CXX=no
13900 ;;
13901 cxx*)
13902 case $host in
13903 osf3*)
13904 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
ee134472 13905 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'
47aaa820
DWT
13906 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13907 ;;
13908 *)
13909 allow_undefined_flag_CXX=' -expect_unresolved \*'
ee134472 13910 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
DWT
13911 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13912 echo "-hidden">> $lib.exp~
ee134472 13913 $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~
47aaa820
DWT
13914 $RM $lib.exp'
13915 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13916 ;;
13917 esac
9c60689e 13918
47aaa820 13919 hardcode_libdir_separator_CXX=:
9c60689e 13920
47aaa820
DWT
13921 # Commands to make compiler produce verbose output that lists
13922 # what "hidden" libraries, object files and flags are used when
13923 # linking a shared library.
13924 #
13925 # There doesn't appear to be a way to prevent this compiler from
13926 # explicitly linking system object files so we need to strip them
13927 # from the output so that they don't get included in the library
13928 # dependencies.
ee134472 13929 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
13930 ;;
13931 *)
13932 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13933 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13934 case $host in
13935 osf3*)
ee134472 13936 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
13937 ;;
13938 *)
ee134472 13939 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
13940 ;;
13941 esac
9c60689e 13942
47aaa820
DWT
13943 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13944 hardcode_libdir_separator_CXX=:
9c60689e 13945
47aaa820
DWT
13946 # Commands to make compiler produce verbose output that lists
13947 # what "hidden" libraries, object files and flags are used when
13948 # linking a shared library.
ee134472 13949 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
9c60689e 13950
47aaa820
DWT
13951 else
13952 # FIXME: insert proper C++ library support
13953 ld_shlibs_CXX=no
13954 fi
13955 ;;
13956 esac
13957 ;;
9c60689e 13958
47aaa820 13959 psos*)
9c60689e
DWT
13960 # FIXME: insert proper C++ library support
13961 ld_shlibs_CXX=no
13962 ;;
9c60689e 13963
47aaa820
DWT
13964 sunos4*)
13965 case $cc_basename in
13966 CC*)
13967 # Sun C++ 4.x
13968 # FIXME: insert proper C++ library support
13969 ld_shlibs_CXX=no
9c60689e 13970 ;;
47aaa820
DWT
13971 lcc*)
13972 # Lucid
13973 # FIXME: insert proper C++ library support
13974 ld_shlibs_CXX=no
13975 ;;
13976 *)
13977 # FIXME: insert proper C++ library support
13978 ld_shlibs_CXX=no
13979 ;;
13980 esac
13981 ;;
9c60689e 13982
47aaa820
DWT
13983 solaris*)
13984 case $cc_basename in
ee134472 13985 CC* | sunCC*)
47aaa820
DWT
13986 # Sun C++ 4.2, 5.x and Centerline C++
13987 archive_cmds_need_lc_CXX=yes
13988 no_undefined_flag_CXX=' -zdefs'
13989 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13990 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13991 $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 13992
47aaa820
DWT
13993 hardcode_libdir_flag_spec_CXX='-R$libdir'
13994 hardcode_shlibpath_var_CXX=no
13995 case $host_os in
13996 solaris2.[0-5] | solaris2.[0-5].*) ;;
13997 *)
13998 # The compiler driver will combine and reorder linker options,
13999 # but understands `-z linker_flag'.
14000 # Supported since Solaris 2.6 (maybe 2.5.1?)
14001 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14002 ;;
14003 esac
14004 link_all_deplibs_CXX=yes
9c60689e 14005
ee134472 14006 output_verbose_link_cmd='func_echo_all'
9c60689e 14007
47aaa820
DWT
14008 # Archives containing C++ object files must be created using
14009 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14010 # necessary to make sure instantiated templates are included
14011 # in the archive.
14012 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14013 ;;
14014 gcx*)
14015 # Green Hills C++ Compiler
14016 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9c60689e 14017
47aaa820
DWT
14018 # The C++ compiler must be used to create the archive.
14019 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14020 ;;
14021 *)
14022 # GNU C++ compiler with Solaris linker
14023 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14024 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14025 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
ee134472 14026 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
47aaa820 14027 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
ee134472 14028 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
9c60689e 14029
47aaa820
DWT
14030 # Commands to make compiler produce verbose output that lists
14031 # what "hidden" libraries, object files and flags are used when
14032 # linking a shared library.
ee134472 14033 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
47aaa820
DWT
14034 else
14035 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14036 # platform.
14037 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14038 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14039 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
9c60689e 14040
47aaa820
DWT
14041 # Commands to make compiler produce verbose output that lists
14042 # what "hidden" libraries, object files and flags are used when
14043 # linking a shared library.
ee134472 14044 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
47aaa820 14045 fi
9c60689e 14046
47aaa820
DWT
14047 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14048 case $host_os in
14049 solaris2.[0-5] | solaris2.[0-5].*) ;;
14050 *)
14051 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14052 ;;
14053 esac
14054 fi
14055 ;;
14056 esac
14057 ;;
9c60689e 14058
47aaa820
DWT
14059 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14060 no_undefined_flag_CXX='${wl}-z,text'
14061 archive_cmds_need_lc_CXX=no
14062 hardcode_shlibpath_var_CXX=no
14063 runpath_var='LD_RUN_PATH'
9c60689e 14064
47aaa820
DWT
14065 case $cc_basename in
14066 CC*)
14067 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14068 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14069 ;;
14070 *)
14071 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14072 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14073 ;;
14074 esac
14075 ;;
9c60689e 14076
47aaa820
DWT
14077 sysv5* | sco3.2v5* | sco5v6*)
14078 # Note: We can NOT use -z defs as we might desire, because we do not
14079 # link with -lc, and that would cause any symbols used from libc to
14080 # always be unresolved, which means just about no library would
14081 # ever link correctly. If we're not using GNU ld we use -z text
14082 # though, which does catch some bad symbols but isn't as heavy-handed
14083 # as -z defs.
14084 no_undefined_flag_CXX='${wl}-z,text'
14085 allow_undefined_flag_CXX='${wl}-z,nodefs'
14086 archive_cmds_need_lc_CXX=no
14087 hardcode_shlibpath_var_CXX=no
14088 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14089 hardcode_libdir_separator_CXX=':'
14090 link_all_deplibs_CXX=yes
14091 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14092 runpath_var='LD_RUN_PATH'
9c60689e 14093
47aaa820
DWT
14094 case $cc_basename in
14095 CC*)
14096 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14097 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
ee134472
JF
14098 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14099 '"$old_archive_cmds_CXX"
14100 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14101 '"$reload_cmds_CXX"
47aaa820
DWT
14102 ;;
14103 *)
14104 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14105 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14106 ;;
14107 esac
14108 ;;
9c60689e 14109
47aaa820 14110 tandem*)
9c60689e 14111 case $cc_basename in
47aaa820
DWT
14112 NCC*)
14113 # NonStop-UX NCC 3.20
14114 # FIXME: insert proper C++ library support
14115 ld_shlibs_CXX=no
14116 ;;
9c60689e 14117 *)
47aaa820
DWT
14118 # FIXME: insert proper C++ library support
14119 ld_shlibs_CXX=no
14120 ;;
9c60689e
DWT
14121 esac
14122 ;;
14123
47aaa820
DWT
14124 vxworks*)
14125 # FIXME: insert proper C++ library support
14126 ld_shlibs_CXX=no
14127 ;;
9c60689e 14128
47aaa820
DWT
14129 *)
14130 # FIXME: insert proper C++ library support
14131 ld_shlibs_CXX=no
9c60689e 14132 ;;
47aaa820 14133 esac
9c60689e 14134
47aaa820
DWT
14135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14136$as_echo "$ld_shlibs_CXX" >&6; }
14137 test "$ld_shlibs_CXX" = no && can_build_shared=no
9c60689e 14138
47aaa820
DWT
14139 GCC_CXX="$GXX"
14140 LD_CXX="$LD"
9c60689e 14141
47aaa820
DWT
14142 ## CAVEAT EMPTOR:
14143 ## There is no encapsulation within the following macros, do not change
14144 ## the running order or otherwise move them around unless you know exactly
14145 ## what you are doing...
14146 # Dependencies to place before and after the object being linked:
14147predep_objects_CXX=
14148postdep_objects_CXX=
14149predeps_CXX=
14150postdeps_CXX=
14151compiler_lib_search_path_CXX=
9c60689e 14152
47aaa820
DWT
14153cat > conftest.$ac_ext <<_LT_EOF
14154class Foo
14155{
14156public:
14157 Foo (void) { a = 0; }
14158private:
14159 int a;
14160};
14161_LT_EOF
9c60689e 14162
ee134472
JF
14163
14164_lt_libdeps_save_CFLAGS=$CFLAGS
14165case "$CC $CFLAGS " in #(
14166*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14167*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
53ba6704 14168*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
ee134472
JF
14169esac
14170
47aaa820
DWT
14171if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14172 (eval $ac_compile) 2>&5
14173 ac_status=$?
14174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14175 test $ac_status = 0; }; then
14176 # Parse the compiler output and extract the necessary
14177 # objects, libraries and library flags.
9c60689e 14178
47aaa820
DWT
14179 # Sentinel used to keep track of whether or not we are before
14180 # the conftest object file.
14181 pre_test_object_deps_done=no
9c60689e 14182
47aaa820 14183 for p in `eval "$output_verbose_link_cmd"`; do
ee134472 14184 case ${prev}${p} in
9c60689e 14185
47aaa820
DWT
14186 -L* | -R* | -l*)
14187 # Some compilers place space between "-{L,R}" and the path.
14188 # Remove the space.
14189 if test $p = "-L" ||
14190 test $p = "-R"; then
14191 prev=$p
14192 continue
47aaa820 14193 fi
9c60689e 14194
ee134472
JF
14195 # Expand the sysroot to ease extracting the directories later.
14196 if test -z "$prev"; then
14197 case $p in
14198 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14199 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14200 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14201 esac
14202 fi
14203 case $p in
14204 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14205 esac
47aaa820 14206 if test "$pre_test_object_deps_done" = no; then
ee134472
JF
14207 case ${prev} in
14208 -L | -R)
47aaa820
DWT
14209 # Internal compiler library paths should come after those
14210 # provided the user. The postdeps already come after the
14211 # user supplied libs so there is no need to process them.
14212 if test -z "$compiler_lib_search_path_CXX"; then
14213 compiler_lib_search_path_CXX="${prev}${p}"
14214 else
14215 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14216 fi
14217 ;;
14218 # The "-l" case would never come before the object being
14219 # linked, so don't bother handling this case.
14220 esac
14221 else
14222 if test -z "$postdeps_CXX"; then
14223 postdeps_CXX="${prev}${p}"
14224 else
14225 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14226 fi
14227 fi
ee134472 14228 prev=
47aaa820 14229 ;;
9c60689e 14230
ee134472 14231 *.lto.$objext) ;; # Ignore GCC LTO objects
47aaa820
DWT
14232 *.$objext)
14233 # This assumes that the test object file only shows up
14234 # once in the compiler output.
14235 if test "$p" = "conftest.$objext"; then
14236 pre_test_object_deps_done=yes
14237 continue
14238 fi
9c60689e 14239
47aaa820
DWT
14240 if test "$pre_test_object_deps_done" = no; then
14241 if test -z "$predep_objects_CXX"; then
14242 predep_objects_CXX="$p"
14243 else
14244 predep_objects_CXX="$predep_objects_CXX $p"
14245 fi
14246 else
14247 if test -z "$postdep_objects_CXX"; then
14248 postdep_objects_CXX="$p"
14249 else
14250 postdep_objects_CXX="$postdep_objects_CXX $p"
14251 fi
14252 fi
14253 ;;
9c60689e 14254
47aaa820 14255 *) ;; # Ignore the rest.
9c60689e 14256
47aaa820
DWT
14257 esac
14258 done
9c60689e 14259
47aaa820
DWT
14260 # Clean up.
14261 rm -f a.out a.exe
14262else
14263 echo "libtool.m4: error: problem compiling CXX test program"
14264fi
9c60689e 14265
47aaa820 14266$RM -f confest.$objext
ee134472 14267CFLAGS=$_lt_libdeps_save_CFLAGS
9c60689e 14268
47aaa820
DWT
14269# PORTME: override above test on systems where it is broken
14270case $host_os in
14271interix[3-9]*)
14272 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14273 # hack all around it, let's just trust "g++" to DTRT.
14274 predep_objects_CXX=
14275 postdep_objects_CXX=
14276 postdeps_CXX=
14277 ;;
9c60689e 14278
47aaa820
DWT
14279linux*)
14280 case `$CC -V 2>&1 | sed 5q` in
14281 *Sun\ C*)
14282 # Sun C++ 5.9
9c60689e 14283
47aaa820
DWT
14284 # The more standards-conforming stlport4 library is
14285 # incompatible with the Cstd library. Avoid specifying
14286 # it if it's in CXXFLAGS. Ignore libCrun as
14287 # -library=stlport4 depends on it.
14288 case " $CXX $CXXFLAGS " in
14289 *" -library=stlport4 "*)
14290 solaris_use_stlport4=yes
14291 ;;
14292 esac
9c60689e 14293
47aaa820
DWT
14294 if test "$solaris_use_stlport4" != yes; then
14295 postdeps_CXX='-library=Cstd -library=Crun'
14296 fi
14297 ;;
14298 esac
14299 ;;
9c60689e 14300
47aaa820
DWT
14301solaris*)
14302 case $cc_basename in
ee134472 14303 CC* | sunCC*)
47aaa820
DWT
14304 # The more standards-conforming stlport4 library is
14305 # incompatible with the Cstd library. Avoid specifying
14306 # it if it's in CXXFLAGS. Ignore libCrun as
14307 # -library=stlport4 depends on it.
14308 case " $CXX $CXXFLAGS " in
14309 *" -library=stlport4 "*)
14310 solaris_use_stlport4=yes
14311 ;;
14312 esac
9c60689e 14313
47aaa820
DWT
14314 # Adding this requires a known-good setup of shared libraries for
14315 # Sun compiler versions before 5.6, else PIC objects from an old
14316 # archive will be linked into the output, leading to subtle bugs.
14317 if test "$solaris_use_stlport4" != yes; then
14318 postdeps_CXX='-library=Cstd -library=Crun'
14319 fi
14320 ;;
14321 esac
14322 ;;
14323esac
9c60689e 14324
9c60689e 14325
47aaa820
DWT
14326case " $postdeps_CXX " in
14327*" -lc "*) archive_cmds_need_lc_CXX=no ;;
14328esac
14329 compiler_lib_search_dirs_CXX=
14330if test -n "${compiler_lib_search_path_CXX}"; then
14331 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14332fi
9c60689e 14333
9c60689e 14334
9c60689e 14335
9c60689e 14336
9c60689e 14337
9c60689e 14338
9c60689e 14339
9c60689e 14340
9c60689e 14341
9c60689e 14342
9c60689e 14343
9c60689e 14344
9c60689e 14345
9c60689e 14346
9c60689e 14347
9c60689e 14348
9c60689e 14349
9c60689e 14350
9c60689e 14351
9c60689e 14352
9c60689e 14353
9c60689e 14354
9c60689e 14355
9c60689e 14356
9c60689e 14357
9c60689e 14358
9c60689e 14359
9c60689e 14360
9c60689e 14361
9c60689e 14362
9c60689e 14363
47aaa820
DWT
14364 lt_prog_compiler_wl_CXX=
14365lt_prog_compiler_pic_CXX=
14366lt_prog_compiler_static_CXX=
9c60689e 14367
9c60689e
DWT
14368
14369 # C++ specific cases for pic, static, wl, etc.
14370 if test "$GXX" = yes; then
14371 lt_prog_compiler_wl_CXX='-Wl,'
14372 lt_prog_compiler_static_CXX='-static'
14373
14374 case $host_os in
14375 aix*)
14376 # All AIX code is PIC.
14377 if test "$host_cpu" = ia64; then
14378 # AIX 5 now supports IA64 processor
14379 lt_prog_compiler_static_CXX='-Bstatic'
14380 fi
14381 ;;
14382
14383 amigaos*)
14384 case $host_cpu in
14385 powerpc)
14386 # see comment about AmigaOS4 .so support
14387 lt_prog_compiler_pic_CXX='-fPIC'
14388 ;;
14389 m68k)
14390 # FIXME: we need at least 68020 code to build shared libraries, but
14391 # adding the `-m68020' flag to GCC prevents building anything better,
14392 # like `-m68040'.
14393 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14394 ;;
14395 esac
14396 ;;
14397
14398 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14399 # PIC is the default for these OSes.
14400 ;;
14401 mingw* | cygwin* | os2* | pw32* | cegcc*)
14402 # This hack is so that the source file can tell whether it is being
14403 # built for inclusion in a dll (and should export symbols for example).
14404 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14405 # (--disable-auto-import) libraries
14406 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14407 ;;
14408 darwin* | rhapsody*)
14409 # PIC is the default on this platform
14410 # Common symbols not allowed in MH_DYLIB files
14411 lt_prog_compiler_pic_CXX='-fno-common'
14412 ;;
14413 *djgpp*)
14414 # DJGPP does not support shared libraries at all
14415 lt_prog_compiler_pic_CXX=
14416 ;;
ee134472
JF
14417 haiku*)
14418 # PIC is the default for Haiku.
14419 # The "-static" flag exists, but is broken.
14420 lt_prog_compiler_static_CXX=
14421 ;;
9c60689e
DWT
14422 interix[3-9]*)
14423 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14424 # Instead, we relocate shared libraries at runtime.
14425 ;;
14426 sysv4*MP*)
14427 if test -d /usr/nec; then
14428 lt_prog_compiler_pic_CXX=-Kconform_pic
14429 fi
14430 ;;
14431 hpux*)
14432 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14433 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14434 # sets the default TLS model and affects inlining.
14435 case $host_cpu in
14436 hppa*64*)
14437 ;;
14438 *)
14439 lt_prog_compiler_pic_CXX='-fPIC'
14440 ;;
14441 esac
14442 ;;
14443 *qnx* | *nto*)
14444 # QNX uses GNU C++, but need to define -shared option too, otherwise
14445 # it will coredump.
14446 lt_prog_compiler_pic_CXX='-fPIC -shared'
14447 ;;
14448 *)
14449 lt_prog_compiler_pic_CXX='-fPIC'
14450 ;;
14451 esac
14452 else
14453 case $host_os in
14454 aix[4-9]*)
14455 # All AIX code is PIC.
14456 if test "$host_cpu" = ia64; then
14457 # AIX 5 now supports IA64 processor
14458 lt_prog_compiler_static_CXX='-Bstatic'
14459 else
14460 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14461 fi
14462 ;;
14463 chorus*)
14464 case $cc_basename in
14465 cxch68*)
14466 # Green Hills C++ Compiler
14467 # _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"
14468 ;;
14469 esac
14470 ;;
ee134472
JF
14471 mingw* | cygwin* | os2* | pw32* | cegcc*)
14472 # This hack is so that the source file can tell whether it is being
14473 # built for inclusion in a dll (and should export symbols for example).
14474 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14475 ;;
9c60689e
DWT
14476 dgux*)
14477 case $cc_basename in
14478 ec++*)
14479 lt_prog_compiler_pic_CXX='-KPIC'
14480 ;;
14481 ghcx*)
14482 # Green Hills C++ Compiler
14483 lt_prog_compiler_pic_CXX='-pic'
14484 ;;
14485 *)
14486 ;;
14487 esac
14488 ;;
14489 freebsd* | dragonfly*)
14490 # FreeBSD uses GNU C++
14491 ;;
14492 hpux9* | hpux10* | hpux11*)
14493 case $cc_basename in
14494 CC*)
14495 lt_prog_compiler_wl_CXX='-Wl,'
14496 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14497 if test "$host_cpu" != ia64; then
14498 lt_prog_compiler_pic_CXX='+Z'
14499 fi
14500 ;;
14501 aCC*)
14502 lt_prog_compiler_wl_CXX='-Wl,'
14503 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14504 case $host_cpu in
14505 hppa*64*|ia64*)
14506 # +Z the default
14507 ;;
14508 *)
14509 lt_prog_compiler_pic_CXX='+Z'
14510 ;;
14511 esac
14512 ;;
14513 *)
14514 ;;
14515 esac
14516 ;;
14517 interix*)
14518 # This is c89, which is MS Visual C++ (no shared libs)
14519 # Anyone wants to do a port?
14520 ;;
14521 irix5* | irix6* | nonstopux*)
14522 case $cc_basename in
14523 CC*)
14524 lt_prog_compiler_wl_CXX='-Wl,'
14525 lt_prog_compiler_static_CXX='-non_shared'
14526 # CC pic flag -KPIC is the default.
14527 ;;
14528 *)
14529 ;;
14530 esac
14531 ;;
1504c9b8 14532 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9c60689e
DWT
14533 case $cc_basename in
14534 KCC*)
14535 # KAI C++ Compiler
14536 lt_prog_compiler_wl_CXX='--backend -Wl,'
14537 lt_prog_compiler_pic_CXX='-fPIC'
14538 ;;
14539 ecpc* )
14540 # old Intel C++ for x86_64 which still supported -KPIC.
14541 lt_prog_compiler_wl_CXX='-Wl,'
14542 lt_prog_compiler_pic_CXX='-KPIC'
14543 lt_prog_compiler_static_CXX='-static'
14544 ;;
14545 icpc* )
14546 # Intel C++, used to be incompatible with GCC.
14547 # ICC 10 doesn't accept -KPIC any more.
14548 lt_prog_compiler_wl_CXX='-Wl,'
14549 lt_prog_compiler_pic_CXX='-fPIC'
14550 lt_prog_compiler_static_CXX='-static'
14551 ;;
14552 pgCC* | pgcpp*)
14553 # Portland Group C++ compiler
14554 lt_prog_compiler_wl_CXX='-Wl,'
14555 lt_prog_compiler_pic_CXX='-fpic'
14556 lt_prog_compiler_static_CXX='-Bstatic'
14557 ;;
14558 cxx*)
14559 # Compaq C++
14560 # Make sure the PIC flag is empty. It appears that all Alpha
14561 # Linux and Compaq Tru64 Unix objects are PIC.
14562 lt_prog_compiler_pic_CXX=
14563 lt_prog_compiler_static_CXX='-non_shared'
14564 ;;
ee134472
JF
14565 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14566 # IBM XL 8.0, 9.0 on PPC and BlueGene
9c60689e
DWT
14567 lt_prog_compiler_wl_CXX='-Wl,'
14568 lt_prog_compiler_pic_CXX='-qpic'
14569 lt_prog_compiler_static_CXX='-qstaticlink'
14570 ;;
14571 *)
14572 case `$CC -V 2>&1 | sed 5q` in
14573 *Sun\ C*)
14574 # Sun C++ 5.9
14575 lt_prog_compiler_pic_CXX='-KPIC'
14576 lt_prog_compiler_static_CXX='-Bstatic'
14577 lt_prog_compiler_wl_CXX='-Qoption ld '
14578 ;;
14579 esac
14580 ;;
14581 esac
14582 ;;
14583 lynxos*)
14584 ;;
14585 m88k*)
14586 ;;
14587 mvs*)
14588 case $cc_basename in
14589 cxx*)
14590 lt_prog_compiler_pic_CXX='-W c,exportall'
14591 ;;
14592 *)
14593 ;;
14594 esac
14595 ;;
53ba6704 14596 netbsd*)
9c60689e
DWT
14597 ;;
14598 *qnx* | *nto*)
14599 # QNX uses GNU C++, but need to define -shared option too, otherwise
14600 # it will coredump.
14601 lt_prog_compiler_pic_CXX='-fPIC -shared'
14602 ;;
14603 osf3* | osf4* | osf5*)
14604 case $cc_basename in
14605 KCC*)
14606 lt_prog_compiler_wl_CXX='--backend -Wl,'
14607 ;;
14608 RCC*)
14609 # Rational C++ 2.4.1
14610 lt_prog_compiler_pic_CXX='-pic'
14611 ;;
14612 cxx*)
14613 # Digital/Compaq C++
14614 lt_prog_compiler_wl_CXX='-Wl,'
14615 # Make sure the PIC flag is empty. It appears that all Alpha
14616 # Linux and Compaq Tru64 Unix objects are PIC.
14617 lt_prog_compiler_pic_CXX=
14618 lt_prog_compiler_static_CXX='-non_shared'
14619 ;;
14620 *)
14621 ;;
14622 esac
14623 ;;
14624 psos*)
14625 ;;
14626 solaris*)
14627 case $cc_basename in
ee134472 14628 CC* | sunCC*)
9c60689e
DWT
14629 # Sun C++ 4.2, 5.x and Centerline C++
14630 lt_prog_compiler_pic_CXX='-KPIC'
14631 lt_prog_compiler_static_CXX='-Bstatic'
14632 lt_prog_compiler_wl_CXX='-Qoption ld '
14633 ;;
14634 gcx*)
14635 # Green Hills C++ Compiler
14636 lt_prog_compiler_pic_CXX='-PIC'
14637 ;;
14638 *)
14639 ;;
14640 esac
14641 ;;
14642 sunos4*)
14643 case $cc_basename in
14644 CC*)
14645 # Sun C++ 4.x
14646 lt_prog_compiler_pic_CXX='-pic'
14647 lt_prog_compiler_static_CXX='-Bstatic'
14648 ;;
14649 lcc*)
14650 # Lucid
14651 lt_prog_compiler_pic_CXX='-pic'
14652 ;;
14653 *)
14654 ;;
14655 esac
14656 ;;
14657 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14658 case $cc_basename in
14659 CC*)
14660 lt_prog_compiler_wl_CXX='-Wl,'
14661 lt_prog_compiler_pic_CXX='-KPIC'
14662 lt_prog_compiler_static_CXX='-Bstatic'
14663 ;;
14664 esac
14665 ;;
14666 tandem*)
14667 case $cc_basename in
14668 NCC*)
14669 # NonStop-UX NCC 3.20
14670 lt_prog_compiler_pic_CXX='-KPIC'
14671 ;;
14672 *)
14673 ;;
14674 esac
14675 ;;
14676 vxworks*)
14677 ;;
14678 *)
14679 lt_prog_compiler_can_build_shared_CXX=no
14680 ;;
14681 esac
14682 fi
14683
14684case $host_os in
14685 # For platforms which do not support PIC, -DPIC is meaningless:
14686 *djgpp*)
14687 lt_prog_compiler_pic_CXX=
14688 ;;
14689 *)
14690 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14691 ;;
14692esac
9c60689e 14693
ee134472
JF
14694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14695$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14696if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14697 $as_echo_n "(cached) " >&6
14698else
14699 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14700fi
14701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14702$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14703lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
9c60689e
DWT
14704
14705#
14706# Check to make sure the PIC flag actually works.
14707#
14708if test -n "$lt_prog_compiler_pic_CXX"; then
14709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14710$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
ee134472 14711if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
9c60689e
DWT
14712 $as_echo_n "(cached) " >&6
14713else
14714 lt_cv_prog_compiler_pic_works_CXX=no
14715 ac_outfile=conftest.$ac_objext
14716 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14717 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14718 # Insert the option either (1) after the last *FLAGS variable, or
14719 # (2) before a word containing "conftest.", or (3) at the end.
14720 # Note that $ac_compile itself does not contain backslashes and begins
14721 # with a dollar sign (not a hyphen), so the echo should work correctly.
14722 # The option is referenced via a variable to avoid confusing sed.
14723 lt_compile=`echo "$ac_compile" | $SED \
14724 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14725 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14726 -e 's:$: $lt_compiler_flag:'`
ee134472 14727 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9c60689e
DWT
14728 (eval "$lt_compile" 2>conftest.err)
14729 ac_status=$?
14730 cat conftest.err >&5
ee134472 14731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9c60689e
DWT
14732 if (exit $ac_status) && test -s "$ac_outfile"; then
14733 # The compiler can only warn and ignore the option if not recognized
14734 # So say no if there are warnings other than the usual output.
ee134472 14735 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9c60689e
DWT
14736 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14737 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14738 lt_cv_prog_compiler_pic_works_CXX=yes
14739 fi
14740 fi
00a96142 14741 $RM -r conftest*
9c60689e
DWT
14742
14743fi
14744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14745$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14746
14747if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14748 case $lt_prog_compiler_pic_CXX in
14749 "" | " "*) ;;
14750 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14751 esac
14752else
14753 lt_prog_compiler_pic_CXX=
14754 lt_prog_compiler_can_build_shared_CXX=no
14755fi
14756
14757fi
14758
14759
14760
ee134472
JF
14761
14762
47aaa820
DWT
14763#
14764# Check to make sure the static flag actually works.
14765#
14766wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14768$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
ee134472 14769if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
47aaa820
DWT
14770 $as_echo_n "(cached) " >&6
14771else
14772 lt_cv_prog_compiler_static_works_CXX=no
14773 save_LDFLAGS="$LDFLAGS"
14774 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14775 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14776 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14777 # The linker can only warn and ignore the option if not recognized
14778 # So say no if there are warnings
14779 if test -s conftest.err; then
14780 # Append any errors to the config.log.
14781 cat conftest.err 1>&5
ee134472 14782 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
47aaa820
DWT
14783 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14784 if diff conftest.exp conftest.er2 >/dev/null; then
14785 lt_cv_prog_compiler_static_works_CXX=yes
14786 fi
14787 else
14788 lt_cv_prog_compiler_static_works_CXX=yes
14789 fi
14790 fi
14791 $RM -r conftest*
14792 LDFLAGS="$save_LDFLAGS"
14793
14794fi
14795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14796$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14797
14798if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14799 :
14800else
14801 lt_prog_compiler_static_CXX=
14802fi
14803
14804
14805
14806
14807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14808$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
ee134472 14809if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
47aaa820
DWT
14810 $as_echo_n "(cached) " >&6
14811else
14812 lt_cv_prog_compiler_c_o_CXX=no
14813 $RM -r conftest 2>/dev/null
14814 mkdir conftest
14815 cd conftest
14816 mkdir out
14817 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14818
14819 lt_compiler_flag="-o out/conftest2.$ac_objext"
14820 # Insert the option either (1) after the last *FLAGS variable, or
14821 # (2) before a word containing "conftest.", or (3) at the end.
14822 # Note that $ac_compile itself does not contain backslashes and begins
14823 # with a dollar sign (not a hyphen), so the echo should work correctly.
14824 lt_compile=`echo "$ac_compile" | $SED \
14825 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14826 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14827 -e 's:$: $lt_compiler_flag:'`
ee134472 14828 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
47aaa820
DWT
14829 (eval "$lt_compile" 2>out/conftest.err)
14830 ac_status=$?
14831 cat out/conftest.err >&5
ee134472 14832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47aaa820
DWT
14833 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14834 then
14835 # The compiler can only warn and ignore the option if not recognized
14836 # So say no if there are warnings
ee134472 14837 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
47aaa820
DWT
14838 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14839 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14840 lt_cv_prog_compiler_c_o_CXX=yes
14841 fi
14842 fi
14843 chmod u+w . 2>&5
00a96142 14844 $RM -r conftest*
47aaa820
DWT
14845 # SGI C++ compiler will create directory out/ii_files/ for
14846 # template instantiation
14847 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14848 $RM out/* && rmdir out
14849 cd ..
14850 $RM -r conftest
00a96142 14851 $RM -r conftest*
47aaa820
DWT
14852
14853fi
14854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14855$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14856
14857
14858
14859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14860$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
ee134472 14861if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
47aaa820
DWT
14862 $as_echo_n "(cached) " >&6
14863else
14864 lt_cv_prog_compiler_c_o_CXX=no
14865 $RM -r conftest 2>/dev/null
14866 mkdir conftest
14867 cd conftest
14868 mkdir out
14869 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14870
14871 lt_compiler_flag="-o out/conftest2.$ac_objext"
14872 # Insert the option either (1) after the last *FLAGS variable, or
14873 # (2) before a word containing "conftest.", or (3) at the end.
14874 # Note that $ac_compile itself does not contain backslashes and begins
14875 # with a dollar sign (not a hyphen), so the echo should work correctly.
14876 lt_compile=`echo "$ac_compile" | $SED \
14877 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14878 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14879 -e 's:$: $lt_compiler_flag:'`
ee134472 14880 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
47aaa820
DWT
14881 (eval "$lt_compile" 2>out/conftest.err)
14882 ac_status=$?
14883 cat out/conftest.err >&5
ee134472 14884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47aaa820
DWT
14885 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14886 then
14887 # The compiler can only warn and ignore the option if not recognized
14888 # So say no if there are warnings
ee134472 14889 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
47aaa820
DWT
14890 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14891 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14892 lt_cv_prog_compiler_c_o_CXX=yes
14893 fi
14894 fi
14895 chmod u+w . 2>&5
00a96142 14896 $RM -r conftest*
47aaa820
DWT
14897 # SGI C++ compiler will create directory out/ii_files/ for
14898 # template instantiation
14899 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14900 $RM out/* && rmdir out
14901 cd ..
14902 $RM -r conftest
00a96142 14903 $RM -r conftest*
47aaa820
DWT
14904
14905fi
14906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14907$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14908
14909
14910
14911
14912hard_links="nottested"
14913if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14914 # do not overwrite the value of need_locks provided by the user
14915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14916$as_echo_n "checking if we can lock with hard links... " >&6; }
14917 hard_links=yes
00a96142 14918 $RM -r conftest*
47aaa820
DWT
14919 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14920 touch conftest.a
14921 ln conftest.a conftest.b 2>&5 || hard_links=no
14922 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14924$as_echo "$hard_links" >&6; }
14925 if test "$hard_links" = no; then
14926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14927$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14928 need_locks=warn
14929 fi
14930else
14931 need_locks=no
14932fi
14933
14934
14935
14936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14937$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14938
14939 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
ee134472 14940 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
47aaa820
DWT
14941 case $host_os in
14942 aix[4-9]*)
14943 # If we're using GNU nm, then we don't want the "-C" option.
14944 # -C means demangle to AIX nm, but means don't demangle with GNU nm
ee134472
JF
14945 # Also, AIX nm treats weak defined symbols like other global defined
14946 # symbols, whereas GNU nm marks them as "W".
47aaa820 14947 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
ee134472 14948 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
47aaa820
DWT
14949 else
14950 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14951 fi
14952 ;;
14953 pw32*)
14954 export_symbols_cmds_CXX="$ltdll_cmds"
ee134472 14955 ;;
47aaa820 14956 cygwin* | mingw* | cegcc*)
ee134472 14957 case $cc_basename in
53ba6704
JF
14958 cl*)
14959 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14960 ;;
ee134472
JF
14961 *)
14962 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'
14963 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14964 ;;
14965 esac
14966 ;;
47aaa820
DWT
14967 *)
14968 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
ee134472 14969 ;;
47aaa820 14970 esac
47aaa820
DWT
14971
14972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14973$as_echo "$ld_shlibs_CXX" >&6; }
14974test "$ld_shlibs_CXX" = no && can_build_shared=no
14975
14976with_gnu_ld_CXX=$with_gnu_ld
14977
14978
14979
14980
14981
14982
14983#
14984# Do we need to explicitly link libc?
14985#
14986case "x$archive_cmds_need_lc_CXX" in
14987x|xyes)
14988 # Assume -lc should be added
14989 archive_cmds_need_lc_CXX=yes
14990
14991 if test "$enable_shared" = yes && test "$GCC" = yes; then
14992 case $archive_cmds_CXX in
14993 *'~'*)
14994 # FIXME: we may have to deal with multi-command sequences.
14995 ;;
14996 '$CC '*)
14997 # Test whether the compiler implicitly links with -lc since on some
14998 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14999 # to ld, don't add -lc before -lgcc.
15000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15001$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
ee134472
JF
15002if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15003 $as_echo_n "(cached) " >&6
15004else
00a96142 15005 $RM -r conftest*
ee134472 15006 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
47aaa820 15007
ee134472 15008 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
47aaa820
DWT
15009 (eval $ac_compile) 2>&5
15010 ac_status=$?
15011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15012 test $ac_status = 0; } 2>conftest.err; then
ee134472
JF
15013 soname=conftest
15014 lib=conftest
15015 libobjs=conftest.$ac_objext
15016 deplibs=
15017 wl=$lt_prog_compiler_wl_CXX
15018 pic_flag=$lt_prog_compiler_pic_CXX
15019 compiler_flags=-v
15020 linker_flags=-v
15021 verstring=
15022 output_objdir=.
15023 libname=conftest
15024 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15025 allow_undefined_flag_CXX=
15026 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
47aaa820
DWT
15027 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15028 ac_status=$?
15029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15030 test $ac_status = 0; }
ee134472
JF
15031 then
15032 lt_cv_archive_cmds_need_lc_CXX=no
15033 else
15034 lt_cv_archive_cmds_need_lc_CXX=yes
15035 fi
15036 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15037 else
15038 cat conftest.err 1>&5
15039 fi
00a96142 15040 $RM -r conftest*
ee134472
JF
15041
15042fi
15043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15044$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15045 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
47aaa820
DWT
15046 ;;
15047 esac
15048 fi
15049 ;;
15050esac
15051
15052
15053
15054
15055
15056
15057
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084
15085
15086
15087
15088
15089
15090
15091
15092
15093
15094
15095
15096
15097
15098
15099
15100
15101
15102
15103
15104
15105
15106
15107
15108
15109
47aaa820
DWT
15110
15111
15112
15113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15114$as_echo_n "checking dynamic linker characteristics... " >&6; }
15115
15116library_names_spec=
15117libname_spec='lib$name'
15118soname_spec=
15119shrext_cmds=".so"
15120postinstall_cmds=
15121postuninstall_cmds=
15122finish_cmds=
15123finish_eval=
15124shlibpath_var=
15125shlibpath_overrides_runpath=unknown
15126version_type=none
15127dynamic_linker="$host_os ld.so"
15128sys_lib_dlsearch_path_spec="/lib /usr/lib"
15129need_lib_prefix=unknown
15130hardcode_into_libs=no
15131
15132# when you set need_version to no, make sure it does not cause -set_version
15133# flags to be left without arguments
15134need_version=unknown
15135
15136case $host_os in
15137aix3*)
53ba6704 15138 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15139 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15140 shlibpath_var=LIBPATH
15141
15142 # AIX 3 has no versioning support, so we append a major version to the name.
15143 soname_spec='${libname}${release}${shared_ext}$major'
15144 ;;
15145
15146aix[4-9]*)
53ba6704 15147 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15148 need_lib_prefix=no
15149 need_version=no
15150 hardcode_into_libs=yes
15151 if test "$host_cpu" = ia64; then
15152 # AIX 5 supports IA64
15153 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15154 shlibpath_var=LD_LIBRARY_PATH
15155 else
15156 # With GCC up to 2.95.x, collect2 would create an import file
15157 # for dependence libraries. The import file would start with
15158 # the line `#! .'. This would cause the generated library to
15159 # depend on `.', always an invalid library. This was fixed in
15160 # development snapshots of GCC prior to 3.0.
15161 case $host_os in
15162 aix4 | aix4.[01] | aix4.[01].*)
15163 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15164 echo ' yes '
15165 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15166 :
15167 else
15168 can_build_shared=no
15169 fi
15170 ;;
15171 esac
15172 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15173 # soname into executable. Probably we can add versioning support to
15174 # collect2, so additional links can be useful in future.
15175 if test "$aix_use_runtimelinking" = yes; then
15176 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15177 # instead of lib<name>.a to let people know that these are not
15178 # typical AIX shared libraries.
15179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15180 else
15181 # We preserve .a as extension for shared libraries through AIX4.2
15182 # and later when we are not doing run time linking.
15183 library_names_spec='${libname}${release}.a $libname.a'
15184 soname_spec='${libname}${release}${shared_ext}$major'
15185 fi
15186 shlibpath_var=LIBPATH
15187 fi
15188 ;;
15189
15190amigaos*)
15191 case $host_cpu in
15192 powerpc)
15193 # Since July 2007 AmigaOS4 officially supports .so libraries.
15194 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15196 ;;
15197 m68k)
15198 library_names_spec='$libname.ixlibrary $libname.a'
15199 # Create ${libname}_ixlibrary.a entries in /sys/libs.
ee134472 15200 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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
15201 ;;
15202 esac
15203 ;;
15204
15205beos*)
15206 library_names_spec='${libname}${shared_ext}'
15207 dynamic_linker="$host_os ld.so"
15208 shlibpath_var=LIBRARY_PATH
15209 ;;
15210
15211bsdi[45]*)
53ba6704 15212 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15213 need_version=no
15214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15215 soname_spec='${libname}${release}${shared_ext}$major'
15216 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15217 shlibpath_var=LD_LIBRARY_PATH
15218 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15219 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15220 # the default ld.so.conf also contains /usr/contrib/lib and
15221 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15222 # libtool to hard-code these into programs
15223 ;;
9c60689e 15224
47aaa820
DWT
15225cygwin* | mingw* | pw32* | cegcc*)
15226 version_type=windows
15227 shrext_cmds=".dll"
15228 need_version=no
15229 need_lib_prefix=no
9c60689e 15230
ee134472
JF
15231 case $GCC,$cc_basename in
15232 yes,*)
15233 # gcc
47aaa820
DWT
15234 library_names_spec='$libname.dll.a'
15235 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15236 postinstall_cmds='base_file=`basename \${file}`~
15237 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15238 dldir=$destdir/`dirname \$dlpath`~
15239 test -d \$dldir || mkdir -p \$dldir~
15240 $install_prog $dir/$dlname \$dldir/$dlname~
15241 chmod a+x \$dldir/$dlname~
15242 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15243 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15244 fi'
15245 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15246 dlpath=$dir/\$dldll~
15247 $RM \$dlpath'
15248 shlibpath_overrides_runpath=yes
9c60689e 15249
47aaa820
DWT
15250 case $host_os in
15251 cygwin*)
15252 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15253 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
ee134472 15254
47aaa820
DWT
15255 ;;
15256 mingw* | cegcc*)
15257 # MinGW DLLs use traditional 'lib' prefix
15258 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
47aaa820
DWT
15259 ;;
15260 pw32*)
15261 # pw32 DLLs use 'pw' prefix rather than 'lib'
15262 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15263 ;;
15264 esac
ee134472
JF
15265 dynamic_linker='Win32 ld.exe'
15266 ;;
15267
15268 *,cl*)
15269 # Native MSVC
15270 libname_spec='$name'
15271 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15272 library_names_spec='${libname}.dll.lib'
15273
15274 case $build_os in
15275 mingw*)
15276 sys_lib_search_path_spec=
15277 lt_save_ifs=$IFS
15278 IFS=';'
15279 for lt_path in $LIB
15280 do
15281 IFS=$lt_save_ifs
15282 # Let DOS variable expansion print the short 8.3 style file name.
15283 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15284 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15285 done
15286 IFS=$lt_save_ifs
15287 # Convert to MSYS style.
15288 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15289 ;;
15290 cygwin*)
15291 # Convert to unix form, then to dos form, then back to unix form
15292 # but this time dos style (no spaces!) so that the unix form looks
15293 # like /cygdrive/c/PROGRA~1:/cygdr...
15294 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15295 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15296 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15297 ;;
15298 *)
15299 sys_lib_search_path_spec="$LIB"
15300 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15301 # It is most probably a Windows format PATH.
15302 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15303 else
15304 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15305 fi
15306 # FIXME: find the short name or the path components, as spaces are
15307 # common. (e.g. "Program Files" -> "PROGRA~1")
15308 ;;
15309 esac
15310
15311 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15312 postinstall_cmds='base_file=`basename \${file}`~
15313 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15314 dldir=$destdir/`dirname \$dlpath`~
15315 test -d \$dldir || mkdir -p \$dldir~
15316 $install_prog $dir/$dlname \$dldir/$dlname'
15317 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15318 dlpath=$dir/\$dldll~
15319 $RM \$dlpath'
15320 shlibpath_overrides_runpath=yes
15321 dynamic_linker='Win32 link.exe'
47aaa820 15322 ;;
9c60689e 15323
47aaa820 15324 *)
ee134472 15325 # Assume MSVC wrapper
47aaa820 15326 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
ee134472 15327 dynamic_linker='Win32 ld.exe'
47aaa820
DWT
15328 ;;
15329 esac
47aaa820
DWT
15330 # FIXME: first we should search . and the directory the executable is in
15331 shlibpath_var=PATH
15332 ;;
9c60689e 15333
47aaa820
DWT
15334darwin* | rhapsody*)
15335 dynamic_linker="$host_os dyld"
15336 version_type=darwin
15337 need_lib_prefix=no
15338 need_version=no
15339 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15340 soname_spec='${libname}${release}${major}$shared_ext'
15341 shlibpath_overrides_runpath=yes
15342 shlibpath_var=DYLD_LIBRARY_PATH
15343 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9c60689e 15344
47aaa820
DWT
15345 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15346 ;;
9c60689e 15347
47aaa820 15348dgux*)
53ba6704 15349 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15350 need_lib_prefix=no
15351 need_version=no
15352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15353 soname_spec='${libname}${release}${shared_ext}$major'
15354 shlibpath_var=LD_LIBRARY_PATH
15355 ;;
9c60689e 15356
47aaa820
DWT
15357freebsd* | dragonfly*)
15358 # DragonFly does not have aout. When/if they implement a new
15359 # versioning mechanism, adjust this.
15360 if test -x /usr/bin/objformat; then
15361 objformat=`/usr/bin/objformat`
15362 else
15363 case $host_os in
53ba6704 15364 freebsd[23].*) objformat=aout ;;
47aaa820
DWT
15365 *) objformat=elf ;;
15366 esac
15367 fi
15368 version_type=freebsd-$objformat
15369 case $version_type in
15370 freebsd-elf*)
15371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15372 need_version=no
15373 need_lib_prefix=no
15374 ;;
15375 freebsd-*)
15376 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15377 need_version=yes
15378 ;;
15379 esac
15380 shlibpath_var=LD_LIBRARY_PATH
15381 case $host_os in
53ba6704 15382 freebsd2.*)
47aaa820
DWT
15383 shlibpath_overrides_runpath=yes
15384 ;;
15385 freebsd3.[01]* | freebsdelf3.[01]*)
15386 shlibpath_overrides_runpath=yes
15387 hardcode_into_libs=yes
15388 ;;
15389 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15390 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15391 shlibpath_overrides_runpath=no
15392 hardcode_into_libs=yes
15393 ;;
15394 *) # from 4.6 on, and DragonFly
15395 shlibpath_overrides_runpath=yes
15396 hardcode_into_libs=yes
15397 ;;
15398 esac
15399 ;;
9c60689e 15400
47aaa820 15401gnu*)
53ba6704 15402 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15403 need_lib_prefix=no
15404 need_version=no
15405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15406 soname_spec='${libname}${release}${shared_ext}$major'
15407 shlibpath_var=LD_LIBRARY_PATH
ee134472
JF
15408 shlibpath_overrides_runpath=no
15409 hardcode_into_libs=yes
15410 ;;
15411
15412haiku*)
53ba6704 15413 version_type=linux # correct to gnu/linux during the next big refactor
ee134472
JF
15414 need_lib_prefix=no
15415 need_version=no
15416 dynamic_linker="$host_os runtime_loader"
15417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15418 soname_spec='${libname}${release}${shared_ext}$major'
15419 shlibpath_var=LIBRARY_PATH
15420 shlibpath_overrides_runpath=yes
15421 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
47aaa820
DWT
15422 hardcode_into_libs=yes
15423 ;;
9c60689e 15424
47aaa820
DWT
15425hpux9* | hpux10* | hpux11*)
15426 # Give a soname corresponding to the major version so that dld.sl refuses to
15427 # link against other versions.
15428 version_type=sunos
15429 need_lib_prefix=no
15430 need_version=no
15431 case $host_cpu in
15432 ia64*)
15433 shrext_cmds='.so'
15434 hardcode_into_libs=yes
15435 dynamic_linker="$host_os dld.so"
15436 shlibpath_var=LD_LIBRARY_PATH
15437 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15439 soname_spec='${libname}${release}${shared_ext}$major'
15440 if test "X$HPUX_IA64_MODE" = X32; then
15441 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15442 else
15443 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15444 fi
15445 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15446 ;;
15447 hppa*64*)
15448 shrext_cmds='.sl'
15449 hardcode_into_libs=yes
15450 dynamic_linker="$host_os dld.sl"
15451 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15452 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15454 soname_spec='${libname}${release}${shared_ext}$major'
15455 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15456 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15457 ;;
15458 *)
15459 shrext_cmds='.sl'
15460 dynamic_linker="$host_os dld.sl"
15461 shlibpath_var=SHLIB_PATH
15462 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15464 soname_spec='${libname}${release}${shared_ext}$major'
15465 ;;
15466 esac
ee134472 15467 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
47aaa820 15468 postinstall_cmds='chmod 555 $lib'
ee134472
JF
15469 # or fails outright, so override atomically:
15470 install_override_mode=555
47aaa820 15471 ;;
9c60689e 15472
47aaa820 15473interix[3-9]*)
53ba6704 15474 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15475 need_lib_prefix=no
15476 need_version=no
15477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15478 soname_spec='${libname}${release}${shared_ext}$major'
15479 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15480 shlibpath_var=LD_LIBRARY_PATH
15481 shlibpath_overrides_runpath=no
15482 hardcode_into_libs=yes
15483 ;;
9c60689e 15484
47aaa820
DWT
15485irix5* | irix6* | nonstopux*)
15486 case $host_os in
15487 nonstopux*) version_type=nonstopux ;;
15488 *)
15489 if test "$lt_cv_prog_gnu_ld" = yes; then
53ba6704 15490 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15491 else
15492 version_type=irix
15493 fi ;;
15494 esac
15495 need_lib_prefix=no
15496 need_version=no
15497 soname_spec='${libname}${release}${shared_ext}$major'
15498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15499 case $host_os in
15500 irix5* | nonstopux*)
15501 libsuff= shlibsuff=
15502 ;;
15503 *)
15504 case $LD in # libtool.m4 will add one of these switches to LD
15505 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15506 libsuff= shlibsuff= libmagic=32-bit;;
15507 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15508 libsuff=32 shlibsuff=N32 libmagic=N32;;
15509 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15510 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15511 *) libsuff= shlibsuff= libmagic=never-match;;
15512 esac
15513 ;;
15514 esac
15515 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15516 shlibpath_overrides_runpath=no
15517 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15518 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15519 hardcode_into_libs=yes
15520 ;;
9c60689e 15521
47aaa820
DWT
15522# No shared lib support for Linux oldld, aout, or coff.
15523linux*oldld* | linux*aout* | linux*coff*)
15524 dynamic_linker=no
15525 ;;
9c60689e 15526
53ba6704 15527# This must be glibc/ELF.
1504c9b8 15528linux* | k*bsd*-gnu | kopensolaris*-gnu)
53ba6704 15529 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15530 need_lib_prefix=no
15531 need_version=no
15532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15533 soname_spec='${libname}${release}${shared_ext}$major'
15534 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15535 shlibpath_var=LD_LIBRARY_PATH
15536 shlibpath_overrides_runpath=no
ee134472 15537
47aaa820 15538 # Some binutils ld are patched to set DT_RUNPATH
ee134472
JF
15539 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15540 $as_echo_n "(cached) " >&6
15541else
15542 lt_cv_shlibpath_overrides_runpath=no
15543 save_LDFLAGS=$LDFLAGS
15544 save_libdir=$libdir
15545 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15546 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47aaa820 15548/* end confdefs.h. */
9c60689e 15549
47aaa820
DWT
15550int
15551main ()
15552{
9c60689e 15553
47aaa820
DWT
15554 ;
15555 return 0;
15556}
15557_ACEOF
15558if ac_fn_cxx_try_link "$LINENO"; then :
15559 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
ee134472 15560 lt_cv_shlibpath_overrides_runpath=yes
9c60689e 15561fi
47aaa820
DWT
15562fi
15563rm -f core conftest.err conftest.$ac_objext \
15564 conftest$ac_exeext conftest.$ac_ext
ee134472
JF
15565 LDFLAGS=$save_LDFLAGS
15566 libdir=$save_libdir
15567
15568fi
15569
15570 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
9c60689e 15571
47aaa820
DWT
15572 # This implies no fast_install, which is unacceptable.
15573 # Some rework will be needed to allow for fast_install
15574 # before this can be enabled.
15575 hardcode_into_libs=yes
9c60689e 15576
47aaa820
DWT
15577 # Append ld.so.conf contents to the search path
15578 if test -f /etc/ld.so.conf; then
ee134472 15579 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
15580 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15581 fi
9c60689e 15582
47aaa820
DWT
15583 # We used to test for /lib/ld.so.1 and disable shared libraries on
15584 # powerpc, because MkLinux only supported shared libraries with the
15585 # GNU dynamic linker. Since this was broken with cross compilers,
15586 # most powerpc-linux boxes support dynamic linking these days and
15587 # people can always --disable-shared, the test was removed, and we
15588 # assume the GNU/Linux dynamic linker is in use.
15589 dynamic_linker='GNU/Linux ld.so'
9c60689e 15590 ;;
47aaa820 15591
47aaa820
DWT
15592netbsd*)
15593 version_type=sunos
15594 need_lib_prefix=no
15595 need_version=no
15596 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15598 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15599 dynamic_linker='NetBSD (a.out) ld.so'
15600 else
15601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15602 soname_spec='${libname}${release}${shared_ext}$major'
15603 dynamic_linker='NetBSD ld.elf_so'
15604 fi
15605 shlibpath_var=LD_LIBRARY_PATH
15606 shlibpath_overrides_runpath=yes
15607 hardcode_into_libs=yes
9c60689e 15608 ;;
9c60689e 15609
47aaa820 15610newsos6)
53ba6704 15611 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15613 shlibpath_var=LD_LIBRARY_PATH
15614 shlibpath_overrides_runpath=yes
15615 ;;
9c60689e 15616
47aaa820
DWT
15617*nto* | *qnx*)
15618 version_type=qnx
15619 need_lib_prefix=no
15620 need_version=no
15621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15622 soname_spec='${libname}${release}${shared_ext}$major'
15623 shlibpath_var=LD_LIBRARY_PATH
15624 shlibpath_overrides_runpath=no
15625 hardcode_into_libs=yes
15626 dynamic_linker='ldqnx.so'
15627 ;;
9c60689e 15628
47aaa820
DWT
15629openbsd*)
15630 version_type=sunos
15631 sys_lib_dlsearch_path_spec="/usr/lib"
15632 need_lib_prefix=no
15633 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15634 case $host_os in
15635 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15636 *) need_version=no ;;
15637 esac
15638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15639 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15640 shlibpath_var=LD_LIBRARY_PATH
15641 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15642 case $host_os in
15643 openbsd2.[89] | openbsd2.[89].*)
15644 shlibpath_overrides_runpath=no
15645 ;;
15646 *)
15647 shlibpath_overrides_runpath=yes
15648 ;;
15649 esac
15650 else
15651 shlibpath_overrides_runpath=yes
15652 fi
15653 ;;
9c60689e 15654
47aaa820
DWT
15655os2*)
15656 libname_spec='$name'
15657 shrext_cmds=".dll"
15658 need_lib_prefix=no
15659 library_names_spec='$libname${shared_ext} $libname.a'
15660 dynamic_linker='OS/2 ld.exe'
15661 shlibpath_var=LIBPATH
15662 ;;
9c60689e 15663
47aaa820
DWT
15664osf3* | osf4* | osf5*)
15665 version_type=osf
15666 need_lib_prefix=no
15667 need_version=no
15668 soname_spec='${libname}${release}${shared_ext}$major'
15669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15670 shlibpath_var=LD_LIBRARY_PATH
15671 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15672 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15673 ;;
9c60689e 15674
47aaa820
DWT
15675rdos*)
15676 dynamic_linker=no
15677 ;;
9c60689e 15678
47aaa820 15679solaris*)
53ba6704 15680 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15681 need_lib_prefix=no
15682 need_version=no
15683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15684 soname_spec='${libname}${release}${shared_ext}$major'
15685 shlibpath_var=LD_LIBRARY_PATH
15686 shlibpath_overrides_runpath=yes
15687 hardcode_into_libs=yes
15688 # ldd complains unless libraries are executable
15689 postinstall_cmds='chmod +x $lib'
15690 ;;
9c60689e 15691
47aaa820
DWT
15692sunos4*)
15693 version_type=sunos
15694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15695 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15696 shlibpath_var=LD_LIBRARY_PATH
15697 shlibpath_overrides_runpath=yes
15698 if test "$with_gnu_ld" = yes; then
15699 need_lib_prefix=no
15700 fi
15701 need_version=yes
15702 ;;
9c60689e 15703
47aaa820 15704sysv4 | sysv4.3*)
53ba6704 15705 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15707 soname_spec='${libname}${release}${shared_ext}$major'
15708 shlibpath_var=LD_LIBRARY_PATH
15709 case $host_vendor in
15710 sni)
15711 shlibpath_overrides_runpath=no
15712 need_lib_prefix=no
15713 runpath_var=LD_RUN_PATH
9c60689e 15714 ;;
47aaa820
DWT
15715 siemens)
15716 need_lib_prefix=no
9c60689e 15717 ;;
47aaa820
DWT
15718 motorola)
15719 need_lib_prefix=no
15720 need_version=no
15721 shlibpath_overrides_runpath=no
15722 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15723 ;;
15724 esac
9c60689e 15725 ;;
9c60689e 15726
47aaa820
DWT
15727sysv4*MP*)
15728 if test -d /usr/nec ;then
53ba6704 15729 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15730 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15731 soname_spec='$libname${shared_ext}.$major'
15732 shlibpath_var=LD_LIBRARY_PATH
15733 fi
15734 ;;
9c60689e 15735
47aaa820
DWT
15736sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15737 version_type=freebsd-elf
15738 need_lib_prefix=no
15739 need_version=no
15740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15741 soname_spec='${libname}${release}${shared_ext}$major'
15742 shlibpath_var=LD_LIBRARY_PATH
15743 shlibpath_overrides_runpath=yes
15744 hardcode_into_libs=yes
15745 if test "$with_gnu_ld" = yes; then
15746 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15747 else
15748 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15749 case $host_os in
15750 sco3.2v5*)
15751 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15752 ;;
15753 esac
15754 fi
15755 sys_lib_dlsearch_path_spec='/usr/lib'
15756 ;;
9c60689e 15757
47aaa820
DWT
15758tpf*)
15759 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
53ba6704 15760 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15761 need_lib_prefix=no
15762 need_version=no
15763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15764 shlibpath_var=LD_LIBRARY_PATH
15765 shlibpath_overrides_runpath=no
15766 hardcode_into_libs=yes
15767 ;;
9c60689e 15768
47aaa820 15769uts4*)
53ba6704 15770 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15772 soname_spec='${libname}${release}${shared_ext}$major'
15773 shlibpath_var=LD_LIBRARY_PATH
15774 ;;
9c60689e 15775
47aaa820
DWT
15776*)
15777 dynamic_linker=no
e9c9a47c
DWT
15778 ;;
15779esac
15780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15781$as_echo "$dynamic_linker" >&6; }
15782test "$dynamic_linker" = no && can_build_shared=no
15783
15784variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15785if test "$GCC" = yes; then
15786 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
47aaa820 15787fi
9c60689e 15788
e9c9a47c
DWT
15789if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15790 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
47aaa820 15791fi
e9c9a47c
DWT
15792if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15793 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
47aaa820 15794fi
9c60689e 15795
9c60689e 15796
9c60689e 15797
9c60689e 15798
47aaa820 15799
47aaa820 15800
47aaa820 15801
9c60689e 15802
9c60689e 15803
47aaa820 15804
47aaa820 15805
47aaa820 15806
47aaa820 15807
47aaa820 15808
47aaa820 15809
47aaa820 15810
47aaa820 15811
9c60689e 15812
9c60689e 15813
9c60689e 15814
9c60689e 15815
9c60689e 15816
e9c9a47c
DWT
15817
15818
15819
15820
15821
15822
15823
15824
15825
15826
15827
ee134472
JF
15828
15829
e9c9a47c
DWT
15830
15831
15832
15833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15834$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15835hardcode_action_CXX=
15836if test -n "$hardcode_libdir_flag_spec_CXX" ||
15837 test -n "$runpath_var_CXX" ||
15838 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15839
15840 # We can hardcode non-existent directories.
15841 if test "$hardcode_direct_CXX" != no &&
15842 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15843 # have to relink, otherwise we might link with an installed library
15844 # when we should be linking with a yet-to-be-installed one
15845 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15846 test "$hardcode_minus_L_CXX" != no; then
15847 # Linking always hardcodes the temporary library directory.
15848 hardcode_action_CXX=relink
15849 else
15850 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15851 hardcode_action_CXX=immediate
15852 fi
15853else
15854 # We cannot hardcode anything, or else we can only hardcode existing
15855 # directories.
15856 hardcode_action_CXX=unsupported
15857fi
15858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15859$as_echo "$hardcode_action_CXX" >&6; }
15860
15861if test "$hardcode_action_CXX" = relink ||
15862 test "$inherit_rpath_CXX" = yes; then
15863 # Fast installation is not supported
15864 enable_fast_install=no
15865elif test "$shlibpath_overrides_runpath" = yes ||
15866 test "$enable_shared" = no; then
15867 # Fast installation is not necessary
15868 enable_fast_install=needless
47aaa820 15869fi
9c60689e 15870
47aaa820 15871
47aaa820 15872
e9c9a47c
DWT
15873
15874
15875
15876
a243b558
JF
15877 fi # test -n "$compiler"
15878
15879 CC=$lt_save_CC
15880 CFLAGS=$lt_save_CFLAGS
15881 LDCXX=$LD
15882 LD=$lt_save_LD
15883 GCC=$lt_save_GCC
15884 with_gnu_ld=$lt_save_with_gnu_ld
15885 lt_cv_path_LDCXX=$lt_cv_path_LD
15886 lt_cv_path_LD=$lt_save_path_LD
15887 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15888 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15889fi # test "$_lt_caught_CXX_error" != yes
15890
15891ac_ext=c
15892ac_cpp='$CPP $CPPFLAGS'
15893ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15894ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15895ac_compiler_gnu=$ac_cv_c_compiler_gnu
15896
15897
15898
15899
15900
15901
15902
15903
15904
15905
15906
15907
15908
15909
15910
15911 ac_config_commands="$ac_config_commands libtool"
15912
15913
15914
15915
15916# Only expand once:
15917
15918
15919
15920ac_ext=cpp
15921ac_cpp='$CXXCPP $CPPFLAGS'
15922ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15923ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15924ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15925
15926
1771224f
JF
15927 ax_cxx_compile_cxx11_required=true
15928 ac_ext=cpp
15929ac_cpp='$CXXCPP $CPPFLAGS'
15930ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15931ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15932ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15933 ac_success=no
15934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
15935$as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
15936if ${ax_cv_cxx_compile_cxx11+:} false; then :
15937 $as_echo_n "(cached) " >&6
15938else
15939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15940/* end confdefs.h. */
15941
15942 template <typename T>
15943 struct check
15944 {
15945 static_assert(sizeof(int) <= sizeof(T), "not big enough");
15946 };
15947
15948 struct Base {
15949 virtual void f() {}
15950 };
15951 struct Child : public Base {
15952 virtual void f() override {}
15953 };
15954
15955 typedef check<check<bool>> right_angle_brackets;
15956
15957 int a;
15958 decltype(a) b;
15959
15960 typedef check<int> check_type;
15961 check_type c;
15962 check_type&& cr = static_cast<check_type&&>(c);
15963
15964 auto d = a;
15965 auto l = [](){};
15966
15967_ACEOF
15968if ac_fn_cxx_try_compile "$LINENO"; then :
15969 ax_cv_cxx_compile_cxx11=yes
15970else
15971 ax_cv_cxx_compile_cxx11=no
15972fi
15973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15974fi
15975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
15976$as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
15977 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
15978 ac_success=yes
15979 fi
15980
15981 if test x$ac_success = xno; then
15982 for switch in -std=gnu++11 -std=gnu++0x; do
15983 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
15984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
15985$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
15986if eval \${$cachevar+:} false; then :
15987 $as_echo_n "(cached) " >&6
15988else
15989 ac_save_CXXFLAGS="$CXXFLAGS"
15990 CXXFLAGS="$CXXFLAGS $switch"
15991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15992/* end confdefs.h. */
15993
15994 template <typename T>
15995 struct check
15996 {
15997 static_assert(sizeof(int) <= sizeof(T), "not big enough");
15998 };
15999
16000 struct Base {
16001 virtual void f() {}
16002 };
16003 struct Child : public Base {
16004 virtual void f() override {}
16005 };
16006
16007 typedef check<check<bool>> right_angle_brackets;
16008
16009 int a;
16010 decltype(a) b;
16011
16012 typedef check<int> check_type;
16013 check_type c;
16014 check_type&& cr = static_cast<check_type&&>(c);
16015
16016 auto d = a;
16017 auto l = [](){};
16018
16019_ACEOF
16020if ac_fn_cxx_try_compile "$LINENO"; then :
16021 eval $cachevar=yes
16022else
16023 eval $cachevar=no
16024fi
16025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16026 CXXFLAGS="$ac_save_CXXFLAGS"
16027fi
16028eval ac_res=\$$cachevar
16029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16030$as_echo "$ac_res" >&6; }
16031 if eval test x\$$cachevar = xyes; then
16032 CXXFLAGS="$CXXFLAGS $switch"
16033 ac_success=yes
16034 break
16035 fi
16036 done
16037 fi
16038
16039
16040 ac_ext=cpp
16041ac_cpp='$CXXCPP $CPPFLAGS'
16042ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16043ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16044ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16045
16046 if test x$ax_cxx_compile_cxx11_required = xtrue; then
16047 if test x$ac_success = xno; then
16048 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
16049 fi
16050 else
16051 if test x$ac_success = xno; then
16052 HAVE_CXX11=0
16053 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
16054$as_echo "$as_me: No compiler with C++11 support was found" >&6;}
16055 else
16056 HAVE_CXX11=1
16057
16058$as_echo "#define HAVE_CXX11 1" >>confdefs.h
16059
16060 fi
16061
16062
16063 fi
16064
16065OBJCXXFLAGS="${OBJCXXFLAGS} ${CXXFLAGS##*' '}"
16066
a243b558
JF
16067
16068
16069
16070
16071
16072
16073if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
16074 if test -n "$ac_tool_prefix"; then
16075 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
16076set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
16077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16078$as_echo_n "checking for $ac_word... " >&6; }
16079if ${ac_cv_path_PKG_CONFIG+:} false; then :
16080 $as_echo_n "(cached) " >&6
16081else
16082 case $PKG_CONFIG in
16083 [\\/]* | ?:[\\/]*)
16084 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
16085 ;;
16086 *)
16087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16088for as_dir in $PATH
16089do
16090 IFS=$as_save_IFS
16091 test -z "$as_dir" && as_dir=.
16092 for ac_exec_ext in '' $ac_executable_extensions; do
16093 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16094 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16096 break 2
16097 fi
16098done
16099 done
16100IFS=$as_save_IFS
16101
16102 ;;
16103esac
16104fi
16105PKG_CONFIG=$ac_cv_path_PKG_CONFIG
16106if test -n "$PKG_CONFIG"; then
16107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
16108$as_echo "$PKG_CONFIG" >&6; }
16109else
16110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16111$as_echo "no" >&6; }
16112fi
16113
16114
16115fi
16116if test -z "$ac_cv_path_PKG_CONFIG"; then
16117 ac_pt_PKG_CONFIG=$PKG_CONFIG
16118 # Extract the first word of "pkg-config", so it can be a program name with args.
16119set dummy pkg-config; ac_word=$2
16120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16121$as_echo_n "checking for $ac_word... " >&6; }
16122if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
16123 $as_echo_n "(cached) " >&6
16124else
16125 case $ac_pt_PKG_CONFIG in
16126 [\\/]* | ?:[\\/]*)
16127 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
16128 ;;
16129 *)
16130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16131for as_dir in $PATH
16132do
16133 IFS=$as_save_IFS
16134 test -z "$as_dir" && as_dir=.
16135 for ac_exec_ext in '' $ac_executable_extensions; do
16136 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16137 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16139 break 2
16140 fi
16141done
16142 done
16143IFS=$as_save_IFS
16144
16145 ;;
16146esac
16147fi
16148ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
16149if test -n "$ac_pt_PKG_CONFIG"; then
16150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
16151$as_echo "$ac_pt_PKG_CONFIG" >&6; }
16152else
16153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16154$as_echo "no" >&6; }
16155fi
16156
16157 if test "x$ac_pt_PKG_CONFIG" = x; then
16158 PKG_CONFIG=""
16159 else
16160 case $cross_compiling:$ac_tool_warned in
16161yes:)
16162{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16163$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16164ac_tool_warned=yes ;;
16165esac
16166 PKG_CONFIG=$ac_pt_PKG_CONFIG
16167 fi
16168else
16169 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
16170fi
16171
16172fi
16173if test -n "$PKG_CONFIG"; then
16174 _pkg_min_version=0.22
16175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
16176$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
16177 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
16178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16179$as_echo "yes" >&6; }
16180 else
16181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16182$as_echo "no" >&6; }
16183 PKG_CONFIG=""
16184 fi
16185fi
16186
a243b558
JF
16187# Extract the first word of "git", so it can be a program name with args.
16188set dummy git; ac_word=$2
16189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16190$as_echo_n "checking for $ac_word... " >&6; }
16191if ${ac_cv_path_GIT+:} false; then :
16192 $as_echo_n "(cached) " >&6
16193else
16194 case $GIT in
16195 [\\/]* | ?:[\\/]*)
16196 ac_cv_path_GIT="$GIT" # Let the user override the test with a path.
16197 ;;
16198 *)
16199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16200for as_dir in $PATH
16201do
16202 IFS=$as_save_IFS
16203 test -z "$as_dir" && as_dir=.
16204 for ac_exec_ext in '' $ac_executable_extensions; do
16205 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16206 ac_cv_path_GIT="$as_dir/$ac_word$ac_exec_ext"
16207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16208 break 2
16209 fi
16210done
16211 done
16212IFS=$as_save_IFS
e9c9a47c 16213
a243b558
JF
16214 ;;
16215esac
16216fi
16217GIT=$ac_cv_path_GIT
16218if test -n "$GIT"; then
16219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
16220$as_echo "$GIT" >&6; }
16221else
16222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16223$as_echo "no" >&6; }
16224fi
e9c9a47c
DWT
16225
16226
a243b558
JF
16227# Extract the first word of "time", so it can be a program name with args.
16228set dummy time; ac_word=$2
632b71ea
DWT
16229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16230$as_echo_n "checking for $ac_word... " >&6; }
a243b558 16231if ${ac_cv_path_TIME+:} false; then :
632b71ea
DWT
16232 $as_echo_n "(cached) " >&6
16233else
a243b558
JF
16234 case $TIME in
16235 [\\/]* | ?:[\\/]*)
16236 ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
16237 ;;
16238 *)
16239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
632b71ea
DWT
16240for as_dir in $PATH
16241do
16242 IFS=$as_save_IFS
16243 test -z "$as_dir" && as_dir=.
16244 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 16245 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 16246 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
632b71ea
DWT
16247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16248 break 2
16249 fi
16250done
16251 done
16252IFS=$as_save_IFS
16253
a243b558
JF
16254 ;;
16255esac
632b71ea 16256fi
a243b558
JF
16257TIME=$ac_cv_path_TIME
16258if test -n "$TIME"; then
16259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
16260$as_echo "$TIME" >&6; }
632b71ea
DWT
16261else
16262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16263$as_echo "no" >&6; }
16264fi
16265
16266
a243b558
JF
16267
16268
16269
16270
16271
16272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bison >= 2.3" >&5
16273$as_echo_n "checking for bison >= 2.3... " >&6; }
16274 if test -z "$BISON"; then
16275 ac_path_BISON_found=false
16276 # Loop through the user's path and test for each of PROGNAME-LIST
16277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16278for as_dir in $PATH
16279do
16280 IFS=$as_save_IFS
16281 test -z "$as_dir" && as_dir=.
16282 for ac_prog in bison; do
16283 for ac_exec_ext in '' $ac_executable_extensions; do
16284 ac_path_BISON="$as_dir/$ac_prog$ac_exec_ext"
16285 as_fn_executable_p "$ac_path_BISON" || continue
16286version=`$ac_path_BISON -V | $SED -e '1 s/^bison (GNU Bison) \(.*\)$/\1/p;d'`
16287 if ${version:+false} :; then :
16288
16289else
16290 as_awk_strverscmp='
16291 # Use only awk features that work with 7th edition Unix awk (1978).
16292 # My, what an old awk you have, Mr. Solaris!
16293 END {
16294 while (length(v1) && length(v2)) {
16295 # Set d1 to be the next thing to compare from v1, and likewise for d2.
16296 # Normally this is a single character, but if v1 and v2 contain digits,
16297 # compare them as integers and fractions as strverscmp does.
16298 if (v1 ~ /^0-9/ && v2 ~ /^0-9/) {
16299 # Split v1 and v2 into their leading digit string components d1 and d2,
16300 # and advance v1 and v2 past the leading digit strings.
16301 for (len1 = 1; substr(v1, len1 + 1) ~ /^0-9/; len1++) continue
16302 for (len2 = 1; substr(v2, len2 + 1) ~ /^0-9/; len2++) continue
16303 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
16304 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
16305 if (d1 ~ /^0/) {
16306 if (d2 ~ /^0/) {
16307 # Compare two fractions.
16308 while (d1 ~ /^0/ && d2 ~ /^0/) {
16309 d1 = substr(d1, 2); len1--
16310 d2 = substr(d2, 2); len2--
16311 }
16312 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
16313 # The two components differ in length, and the common prefix
16314 # contains only leading zeros. Consider the longer to be less.
16315 d1 = -len1
16316 d2 = -len2
16317 } else {
16318 # Otherwise, compare as strings.
16319 d1 = "x" d1
16320 d2 = "x" d2
16321 }
16322 } else {
16323 # A fraction is less than an integer.
16324 exit 1
16325 }
16326 } else {
16327 if (d2 ~ /^0/) {
16328 # An integer is greater than a fraction.
16329 exit 2
16330 } else {
16331 # Compare two integers.
16332 d1 += 0
16333 d2 += 0
16334 }
16335 }
16336 } else {
16337 # The normal case, without worrying about digits.
16338 d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
16339 d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
16340 }
16341 if (d1 < d2) exit 1
16342 if (d1 > d2) exit 2
16343 }
16344 # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
16345 # which mishandles some comparisons of empty strings to integers.
16346 if (length(v2)) exit 1
16347 if (length(v1)) exit 2
16348 }
16349'
16350as_arg_v1=$version
16351as_arg_v2=2.3
16352awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
16353case $? in #(
16354 1) :
16355 ;; #(
16356 0) :
16357 ac_cv_path_BISON=$ac_path_BISON ;; #(
16358 2) :
16359 ac_cv_path_BISON=$ac_path_BISON ;; #(
16360 *) :
16361 ;;
16362esac
16363fi
16364
16365 $ac_path_BISON_found && break 3
16366 done
16367 done
e9c9a47c 16368 done
a243b558
JF
16369IFS=$as_save_IFS
16370 if test -z "$ac_cv_path_BISON"; then
16371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16372$as_echo "no" >&6; }
16373 fi
16374else
16375 ac_cv_path_BISON=$BISON
632b71ea 16376fi
a243b558
JF
16377
16378
16379 if true; then :
16380
16381 BISON=$ac_cv_path_BISON
16382
16383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
16384$as_echo "$BISON" >&6; }
16385
47aaa820 16386else
a243b558
JF
16387 if true; then :
16388
16389 as_fn_error $? "You need bison 2.3 or greater" "$LINENO" 5
16390
47aaa820 16391else
a243b558
JF
16392
16393 BISON=:
16394
16395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16396$as_echo "no" >&6; }
16397
16398fi
16399fi
16400
16401
16402
16403
16404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flex >= 2.5.33" >&5
16405$as_echo_n "checking for flex >= 2.5.33... " >&6; }
16406 if test -z "$FLEX"; then
16407 ac_path_FLEX_found=false
16408 # Loop through the user's path and test for each of PROGNAME-LIST
16409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47aaa820
DWT
16410for as_dir in $PATH
16411do
16412 IFS=$as_save_IFS
16413 test -z "$as_dir" && as_dir=.
a243b558 16414 for ac_prog in flex; do
47aaa820 16415 for ac_exec_ext in '' $ac_executable_extensions; do
a243b558
JF
16416 ac_path_FLEX="$as_dir/$ac_prog$ac_exec_ext"
16417 as_fn_executable_p "$ac_path_FLEX" || continue
16418version=`$ac_path_FLEX --version | $SED -e '1 s/^[^0-9.]* \([0-9.]*\).*$/\1/p;d'`
16419 if ${version:+false} :; then :
9c60689e 16420
47aaa820 16421else
a243b558
JF
16422 as_arg_v1=$version
16423as_arg_v2=2.5.33
16424awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
16425case $? in #(
16426 1) :
16427 ;; #(
16428 0) :
16429 ac_cv_path_FLEX=$ac_path_FLEX ;; #(
16430 2) :
16431 ac_cv_path_FLEX=$ac_path_FLEX ;; #(
16432 *) :
16433 ;;
16434esac
16435fi
16436
16437 $ac_path_FLEX_found && break 3
16438 done
16439 done
16440 done
16441IFS=$as_save_IFS
16442 if test -z "$ac_cv_path_FLEX"; then
16443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47aaa820 16444$as_echo "no" >&6; }
a243b558
JF
16445 fi
16446else
16447 ac_cv_path_FLEX=$FLEX
9c60689e
DWT
16448fi
16449
16450
a243b558 16451 if true; then :
e9c9a47c 16452
a243b558 16453 FLEX=$ac_cv_path_FLEX
e9c9a47c 16454
a243b558
JF
16455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
16456$as_echo "$FLEX" >&6; }
9c60689e 16457
632b71ea 16458else
a243b558 16459 if true; then :
e9c9a47c 16460
a243b558 16461 as_fn_error $? "You need flex 2.5.33 or greater" "$LINENO" 5
e9c9a47c 16462
e9c9a47c 16463else
a243b558
JF
16464
16465 FLEX=:
16466
16467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16468$as_echo "no" >&6; }
9c60689e 16469
632b71ea 16470fi
a243b558
JF
16471fi
16472
16473
16474
16475
16476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gperf >= 3.0.3" >&5
16477$as_echo_n "checking for gperf >= 3.0.3... " >&6; }
16478 if test -z "$GPERF"; then
16479 ac_path_GPERF_found=false
16480 # Loop through the user's path and test for each of PROGNAME-LIST
16481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16482for as_dir in $PATH
16483do
16484 IFS=$as_save_IFS
16485 test -z "$as_dir" && as_dir=.
16486 for ac_prog in gperf; do
16487 for ac_exec_ext in '' $ac_executable_extensions; do
16488 ac_path_GPERF="$as_dir/$ac_prog$ac_exec_ext"
16489 as_fn_executable_p "$ac_path_GPERF" || continue
16490version=`$ac_path_GPERF --version | $SED -e '1 s/^.* \([0-9.]*\)$/\1/p;d'`
16491 if ${version:+false} :; then :
16492
e9c9a47c 16493else
a243b558
JF
16494 as_arg_v1=$version
16495as_arg_v2=3.0.3
16496awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
16497case $? in #(
16498 1) :
16499 ;; #(
16500 0) :
16501 ac_cv_path_GPERF=$ac_path_GPERF ;; #(
16502 2) :
16503 ac_cv_path_GPERF=$ac_path_GPERF ;; #(
16504 *) :
16505 ;;
16506esac
632b71ea 16507fi
a243b558
JF
16508
16509 $ac_path_GPERF_found && break 3
16510 done
16511 done
16512 done
16513IFS=$as_save_IFS
16514 if test -z "$ac_cv_path_GPERF"; then
16515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16516$as_echo "no" >&6; }
16517 fi
47aaa820 16518else
a243b558
JF
16519 ac_cv_path_GPERF=$GPERF
16520fi
9c60689e
DWT
16521
16522
a243b558 16523 if true; then :
9c60689e 16524
a243b558 16525 GPERF=$ac_cv_path_GPERF
9c60689e 16526
a243b558
JF
16527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPERF" >&5
16528$as_echo "$GPERF" >&6; }
9c60689e 16529
47aaa820 16530else
a243b558 16531 if true; then :
9c60689e 16532
a243b558
JF
16533 as_fn_error $? "You need gperf 3.0.3 or greater" "$LINENO" 5
16534
16535else
16536
16537 GPERF=:
16538
16539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16540$as_echo "no" >&6; }
9c60689e 16541
47aaa820 16542fi
47aaa820 16543fi
a243b558
JF
16544
16545
16546
16547
16548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tar gtar gnutar >= 1.19" >&5
16549$as_echo_n "checking for tar gtar gnutar >= 1.19... " >&6; }
16550 if test -z "$GNUTAR"; then
16551 ac_path_GNUTAR_found=false
16552 # Loop through the user's path and test for each of PROGNAME-LIST
16553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16554for as_dir in $PATH
16555do
16556 IFS=$as_save_IFS
16557 test -z "$as_dir" && as_dir=.
16558 for ac_prog in tar gtar gnutar; do
16559 for ac_exec_ext in '' $ac_executable_extensions; do
16560 ac_path_GNUTAR="$as_dir/$ac_prog$ac_exec_ext"
16561 as_fn_executable_p "$ac_path_GNUTAR" || continue
16562version=`$ac_path_GNUTAR --version | $SED -e '1 s/^tar (GNU tar) \(.*\)$/\1/p;d'`
16563 if ${version:+false} :; then :
16564
16565else
16566 as_arg_v1=$version
16567as_arg_v2=1.19
16568awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
16569case $? in #(
16570 1) :
16571 ;; #(
16572 0) :
16573 ac_cv_path_GNUTAR=$ac_path_GNUTAR ;; #(
16574 2) :
16575 ac_cv_path_GNUTAR=$ac_path_GNUTAR ;; #(
16576 *) :
16577 ;;
16578esac
790e5246 16579fi
a243b558
JF
16580
16581 $ac_path_GNUTAR_found && break 3
16582 done
16583 done
16584 done
16585IFS=$as_save_IFS
16586 if test -z "$ac_cv_path_GNUTAR"; then
16587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16588$as_echo "no" >&6; }
632b71ea 16589 fi
632b71ea 16590else
a243b558 16591 ac_cv_path_GNUTAR=$GNUTAR
632b71ea 16592fi
66170b30 16593
66170b30 16594
a243b558 16595 if true; then :
66170b30 16596
a243b558 16597 GNUTAR=$ac_cv_path_GNUTAR
66170b30 16598
a243b558
JF
16599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUTAR" >&5
16600$as_echo "$GNUTAR" >&6; }
66170b30 16601
a243b558
JF
16602else
16603 if true; then :
66170b30 16604
a243b558 16605 as_fn_error $? "You need tar gtar gnutar 1.19 or greater" "$LINENO" 5
66170b30 16606
66170b30 16607else
66170b30 16608
a243b558 16609 GNUTAR=:
66170b30 16610
a243b558
JF
16611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16612$as_echo "no" >&6; }
66170b30 16613
a243b558
JF
16614fi
16615fi
66170b30
JF
16616
16617
9228a43a
JF
16618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking bison for %code{}" >&5
16619$as_echo_n "checking bison for %code{}... " >&6; }
16620echo '%code{}%%_:' >conftest.y
16621if $BISON conftest.y -o/dev/null 2>/dev/null; then
16622
16623 for element in Bison24; do
16624 haveit=
16625 for x in $CY_FILTERS; do
16626
16627 acl_save_prefix="$prefix"
16628 prefix="$acl_final_prefix"
16629 acl_save_exec_prefix="$exec_prefix"
16630 exec_prefix="$acl_final_exec_prefix"
16631 eval x=\"$x\"
16632 exec_prefix="$acl_save_exec_prefix"
16633 prefix="$acl_save_prefix"
16634
16635 if test "X$x" = "X$element"; then
16636 haveit=yes
16637 break
16638 fi
16639 done
16640 if test -z "$haveit"; then
16641 CY_FILTERS="${CY_FILTERS}${CY_FILTERS:+ }$element"
16642 fi
16643 done
16644
16645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16646$as_echo "yes" >&6; }
16647else
16648
16649 for element in Bison23; do
16650 haveit=
16651 for x in $CY_FILTERS; do
16652
16653 acl_save_prefix="$prefix"
16654 prefix="$acl_final_prefix"
16655 acl_save_exec_prefix="$exec_prefix"
16656 exec_prefix="$acl_final_exec_prefix"
16657 eval x=\"$x\"
16658 exec_prefix="$acl_save_exec_prefix"
16659 prefix="$acl_save_prefix"
16660
16661 if test "X$x" = "X$element"; then
16662 haveit=yes
16663 break
16664 fi
16665 done
16666 if test -z "$haveit"; then
16667 CY_FILTERS="${CY_FILTERS}${CY_FILTERS:+ }$element"
16668 fi
16669 done
16670
16671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16672$as_echo "no" >&6; }
16673fi
16674
16675rm -f conftest.y
16676
16677
66170b30
JF
16678
16679
16680
16681
16682
16683
16684
16685
16686if ${CFLAGS+:} false; then :
16687 case " $CFLAGS " in
16688 *" "*)
16689 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains "; } >&5
16690 (: CFLAGS already contains ) 2>&5
16691 ac_status=$?
16692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16693 test $ac_status = 0; }
16694 ;;
16695 *)
16696 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \""; } >&5
16697 (: CFLAGS="$CFLAGS ") 2>&5
16698 ac_status=$?
16699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16700 test $ac_status = 0; }
16701 CFLAGS="$CFLAGS "
16702 ;;
16703 esac
16704else
16705 CFLAGS=""
16706fi
16707
e9c9a47c
DWT
16708ac_ext=c
16709ac_cpp='$CPP $CPPFLAGS'
16710ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16711ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16712ac_compiler_gnu=$ac_cv_c_compiler_gnu
632b71ea 16713
66170b30
JF
16714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
16715$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
16716if ${ac_cv_cflags_warn_all+:} false; then :
16717 $as_echo_n "(cached) " >&6
16718else
16719 ac_cv_cflags_warn_all="no, unknown"
16720ac_save_CFLAGS="$CFLAGS"
16721for 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" #
16722do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
16723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16724/* end confdefs.h. */
16725
16726int
16727main ()
16728{
16729
16730 ;
16731 return 0;
16732}
16733_ACEOF
16734if ac_fn_c_try_compile "$LINENO"; then :
16735 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
16736fi
16737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16738done
16739CFLAGS="$ac_save_CFLAGS"
16740
16741fi
16742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
16743$as_echo "$ac_cv_cflags_warn_all" >&6; }
16744
16745case ".$ac_cv_cflags_warn_all" in
16746 .ok|.ok,*) ;;
16747 .|.no|.no,*) ;;
16748 *) if ${CFLAGS+:} false; then :
16749 case " $CFLAGS " in
16750 *" $ac_cv_cflags_warn_all "*)
16751 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5
16752 (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5
16753 ac_status=$?
16754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16755 test $ac_status = 0; }
16756 ;;
16757 *)
16758 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
16759 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
16760 ac_status=$?
16761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16762 test $ac_status = 0; }
16763 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
16764 ;;
16765 esac
16766else
16767 CFLAGS="$ac_cv_cflags_warn_all"
16768fi
16769 ;;
16770esac
16771
b816329d
JF
16772ac_ext=cpp
16773ac_cpp='$CXXCPP $CPPFLAGS'
16774ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16775ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16776ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16777
9c60689e 16778
66170b30
JF
16779ac_ext=cpp
16780ac_cpp='$CXXCPP $CPPFLAGS'
16781ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16782ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16783ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1504c9b8 16784
66170b30
JF
16785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for maximum warnings" >&5
16786$as_echo_n "checking CXXFLAGS for maximum warnings... " >&6; }
16787if ${ac_cv_cxxflags_warn_all+:} false; then :
16788 $as_echo_n "(cached) " >&6
16789else
16790 ac_cv_cxxflags_warn_all="no, unknown"
16791ac_save_CXXFLAGS="$CXXFLAGS"
16792for 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" #
16793do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
16794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16795/* end confdefs.h. */
1504c9b8 16796
66170b30
JF
16797int
16798main ()
16799{
1504c9b8 16800
66170b30
JF
16801 ;
16802 return 0;
16803}
16804_ACEOF
16805if ac_fn_cxx_try_compile "$LINENO"; then :
16806 ac_cv_cxxflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
16807fi
16808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16809done
16810CXXFLAGS="$ac_save_CXXFLAGS"
1504c9b8 16811
66170b30
JF
16812fi
16813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxxflags_warn_all" >&5
16814$as_echo "$ac_cv_cxxflags_warn_all" >&6; }
16815
16816case ".$ac_cv_cxxflags_warn_all" in
16817 .ok|.ok,*) ;;
16818 .|.no|.no,*) ;;
16819 *) if ${CXXFLAGS+:} false; then :
16820 case " $CXXFLAGS " in
16821 *" $ac_cv_cxxflags_warn_all "*)
16822 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$ac_cv_cxxflags_warn_all"; } >&5
16823 (: CXXFLAGS already contains $ac_cv_cxxflags_warn_all) 2>&5
16824 ac_status=$?
16825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16826 test $ac_status = 0; }
16827 ;;
16828 *)
16829 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$ac_cv_cxxflags_warn_all\""; } >&5
16830 (: CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all") 2>&5
16831 ac_status=$?
16832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16833 test $ac_status = 0; }
16834 CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all"
16835 ;;
16836 esac
16837else
16838 CXXFLAGS="$ac_cv_cxxflags_warn_all"
16839fi
16840 ;;
16841esac
16842
16843ac_ext=cpp
16844ac_cpp='$CXXCPP $CPPFLAGS'
16845ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16846ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16847ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16848
16849
babf7fe8
JF
16850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for maximum warnings" >&5
16851$as_echo_n "checking CXXFLAGS for maximum warnings... " >&6; }
16852if ${ac_cv_cxxflags_warn_all+:} false; then :
16853 $as_echo_n "(cached) " >&6
16854else
16855 ac_cv_cxxflags_warn_all="no, unknown"
16856ac_save_CXXFLAGS="$CXXFLAGS"
16857for 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" #
16858do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
16859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16860/* end confdefs.h. */
16861
16862int
16863main ()
16864{
16865
16866 ;
16867 return 0;
16868}
16869_ACEOF
16870if ac_fn_cxx_try_compile "$LINENO"; then :
16871 ac_cv_cxxflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
16872fi
16873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16874done
16875CXXFLAGS="$ac_save_CXXFLAGS"
16876
16877fi
16878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxxflags_warn_all" >&5
16879$as_echo "$ac_cv_cxxflags_warn_all" >&6; }
16880
16881case ".$ac_cv_cxxflags_warn_all" in
16882 .ok|.ok,*) ;;
16883 .|.no|.no,*) ;;
16884 *) if ${CXXFLAGS+:} false; then :
16885 case " $CXXFLAGS " in
16886 *" $ac_cv_cxxflags_warn_all "*)
16887 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$ac_cv_cxxflags_warn_all"; } >&5
16888 (: CXXFLAGS already contains $ac_cv_cxxflags_warn_all) 2>&5
16889 ac_status=$?
16890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16891 test $ac_status = 0; }
16892 ;;
16893 *)
16894 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$ac_cv_cxxflags_warn_all\""; } >&5
16895 (: CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all") 2>&5
16896 ac_status=$?
16897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16898 test $ac_status = 0; }
16899 CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all"
16900 ;;
16901 esac
16902else
16903 CXXFLAGS="$ac_cv_cxxflags_warn_all"
16904fi
16905 ;;
16906esac
16907
66170b30
JF
16908
16909
66170b30 16910
66170b30 16911
c10a2228
JF
16912 ac_ext=c
16913ac_cpp='$CPP $CPPFLAGS'
16914ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16915ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16916ac_compiler_gnu=$ac_cv_c_compiler_gnu
16917
babf7fe8
JF
16918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Werror" >&5
16919$as_echo_n "checking for cc -Werror... " >&6; }
c10a2228
JF
16920
16921 cy_save=$CFLAGS
16922
babf7fe8 16923 for element in -Werror; do
c10a2228
JF
16924 haveit=
16925 for x in $CFLAGS; do
16926
16927 acl_save_prefix="$prefix"
16928 prefix="$acl_final_prefix"
16929 acl_save_exec_prefix="$exec_prefix"
16930 exec_prefix="$acl_final_exec_prefix"
16931 eval x=\"$x\"
16932 exec_prefix="$acl_save_exec_prefix"
16933 prefix="$acl_save_prefix"
16934
16935 if test "X$x" = "X$element"; then
16936 haveit=yes
16937 break
16938 fi
16939 done
16940 if test -z "$haveit"; then
16941 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
16942 fi
16943 done
16944
16945
16946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16947/* end confdefs.h. */
16948
16949_ACEOF
16950if ac_fn_c_try_compile "$LINENO"; then :
16951 cy_good=1
16952else
16953 cy_good=0
16954fi
16955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16956
16957 CFLAGS=$cy_save
16958 if test "x$cy_good" = x1; then :
16959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16960$as_echo "yes" >&6; }
16961
babf7fe8 16962 for element in -Werror; do
c10a2228
JF
16963 haveit=
16964 for x in $CFLAGS; do
16965
16966 acl_save_prefix="$prefix"
16967 prefix="$acl_final_prefix"
16968 acl_save_exec_prefix="$exec_prefix"
16969 exec_prefix="$acl_final_exec_prefix"
16970 eval x=\"$x\"
16971 exec_prefix="$acl_save_exec_prefix"
16972 prefix="$acl_save_prefix"
16973
16974 if test "X$x" = "X$element"; then
16975 haveit=yes
16976 break
16977 fi
16978 done
16979 if test -z "$haveit"; then
16980 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
16981 fi
16982 done
16983
16984
16985else
16986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16987$as_echo "no" >&6; }
16988fi
16989
16990 ac_ext=cpp
16991ac_cpp='$CXXCPP $CPPFLAGS'
16992ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16993ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16994ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16995
16996
16997
16998 ac_ext=cpp
16999ac_cpp='$CXXCPP $CPPFLAGS'
17000ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17001ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17002ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17003
babf7fe8
JF
17004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Werror" >&5
17005$as_echo_n "checking for c++ -Werror... " >&6; }
c10a2228
JF
17006
17007 cy_save=$CXXFLAGS
17008
babf7fe8 17009 for element in -Werror; do
c10a2228
JF
17010 haveit=
17011 for x in $CXXFLAGS; do
17012
17013 acl_save_prefix="$prefix"
17014 prefix="$acl_final_prefix"
17015 acl_save_exec_prefix="$exec_prefix"
17016 exec_prefix="$acl_final_exec_prefix"
17017 eval x=\"$x\"
17018 exec_prefix="$acl_save_exec_prefix"
17019 prefix="$acl_save_prefix"
17020
17021 if test "X$x" = "X$element"; then
17022 haveit=yes
17023 break
17024 fi
17025 done
17026 if test -z "$haveit"; then
17027 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17028 fi
17029 done
17030
17031
17032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17033/* end confdefs.h. */
17034
17035_ACEOF
17036if ac_fn_cxx_try_compile "$LINENO"; then :
17037 cy_good=1
17038else
17039 cy_good=0
17040fi
17041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17042
17043 CXXFLAGS=$cy_save
17044 if test "x$cy_good" = x1; then :
17045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17046$as_echo "yes" >&6; }
17047
babf7fe8 17048 for element in -Werror; do
c10a2228
JF
17049 haveit=
17050 for x in $CXXFLAGS; do
17051
17052 acl_save_prefix="$prefix"
17053 prefix="$acl_final_prefix"
17054 acl_save_exec_prefix="$exec_prefix"
17055 exec_prefix="$acl_final_exec_prefix"
17056 eval x=\"$x\"
17057 exec_prefix="$acl_save_exec_prefix"
17058 prefix="$acl_save_prefix"
17059
17060 if test "X$x" = "X$element"; then
17061 haveit=yes
17062 break
17063 fi
17064 done
17065 if test -z "$haveit"; then
17066 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17067 fi
17068 done
17069
17070
17071else
17072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17073$as_echo "no" >&6; }
17074fi
17075
17076 ac_ext=cpp
17077ac_cpp='$CXXCPP $CPPFLAGS'
17078ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17079ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17080ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17081
17082
17083
17084 ac_ext=mm
17085ac_cpp='$OBJCXXCPP $CPPFLAGS'
17086ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17087ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17088ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
17089
babf7fe8
JF
17090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Werror" >&5
17091$as_echo_n "checking for c++ -ObjC -Werror... " >&6; }
c10a2228
JF
17092
17093 cy_save=$OBJCXXFLAGS
17094
babf7fe8 17095 for element in -Werror; do
c10a2228
JF
17096 haveit=
17097 for x in $OBJCXXFLAGS; do
17098
17099 acl_save_prefix="$prefix"
17100 prefix="$acl_final_prefix"
17101 acl_save_exec_prefix="$exec_prefix"
17102 exec_prefix="$acl_final_exec_prefix"
17103 eval x=\"$x\"
17104 exec_prefix="$acl_save_exec_prefix"
17105 prefix="$acl_save_prefix"
17106
17107 if test "X$x" = "X$element"; then
17108 haveit=yes
17109 break
17110 fi
17111 done
17112 if test -z "$haveit"; then
17113 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
17114 fi
17115 done
17116
17117
17118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17119/* end confdefs.h. */
17120
17121_ACEOF
17122if ac_fn_objcxx_try_compile "$LINENO"; then :
17123 cy_good=1
17124else
17125 cy_good=0
17126fi
17127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17128
17129 OBJCXXFLAGS=$cy_save
17130 if test "x$cy_good" = x1; then :
17131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17132$as_echo "yes" >&6; }
17133
babf7fe8 17134 for element in -Werror; do
c10a2228
JF
17135 haveit=
17136 for x in $OBJCXXFLAGS; do
17137
17138 acl_save_prefix="$prefix"
17139 prefix="$acl_final_prefix"
17140 acl_save_exec_prefix="$exec_prefix"
17141 exec_prefix="$acl_final_exec_prefix"
17142 eval x=\"$x\"
17143 exec_prefix="$acl_save_exec_prefix"
17144 prefix="$acl_save_prefix"
17145
17146 if test "X$x" = "X$element"; then
17147 haveit=yes
17148 break
17149 fi
17150 done
17151 if test -z "$haveit"; then
17152 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
17153 fi
17154 done
17155
17156
17157else
17158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17159$as_echo "no" >&6; }
17160fi
17161
17162 ac_ext=cpp
17163ac_cpp='$CXXCPP $CPPFLAGS'
17164ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17165ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17166ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17167
17168
17169
17170
17171
17172
17173 ac_ext=c
17174ac_cpp='$CPP $CPPFLAGS'
17175ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17176ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17177ac_compiler_gnu=$ac_cv_c_compiler_gnu
17178
babf7fe8
JF
17179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-deprecated-declarations" >&5
17180$as_echo_n "checking for cc -Wno-deprecated-declarations... " >&6; }
c10a2228
JF
17181
17182 cy_save=$CFLAGS
17183
babf7fe8 17184 for element in -Wno-deprecated-declarations; do
c10a2228
JF
17185 haveit=
17186 for x in $CFLAGS; do
17187
17188 acl_save_prefix="$prefix"
17189 prefix="$acl_final_prefix"
17190 acl_save_exec_prefix="$exec_prefix"
17191 exec_prefix="$acl_final_exec_prefix"
17192 eval x=\"$x\"
17193 exec_prefix="$acl_save_exec_prefix"
17194 prefix="$acl_save_prefix"
17195
17196 if test "X$x" = "X$element"; then
17197 haveit=yes
17198 break
17199 fi
17200 done
17201 if test -z "$haveit"; then
17202 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
17203 fi
17204 done
17205
17206
17207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17208/* end confdefs.h. */
17209
17210_ACEOF
17211if ac_fn_c_try_compile "$LINENO"; then :
17212 cy_good=1
17213else
17214 cy_good=0
17215fi
17216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17217
17218 CFLAGS=$cy_save
17219 if test "x$cy_good" = x1; then :
17220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17221$as_echo "yes" >&6; }
17222
babf7fe8 17223 for element in -Wno-deprecated-declarations; do
c10a2228
JF
17224 haveit=
17225 for x in $CFLAGS; do
17226
17227 acl_save_prefix="$prefix"
17228 prefix="$acl_final_prefix"
17229 acl_save_exec_prefix="$exec_prefix"
17230 exec_prefix="$acl_final_exec_prefix"
17231 eval x=\"$x\"
17232 exec_prefix="$acl_save_exec_prefix"
17233 prefix="$acl_save_prefix"
17234
17235 if test "X$x" = "X$element"; then
17236 haveit=yes
17237 break
17238 fi
17239 done
17240 if test -z "$haveit"; then
17241 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
17242 fi
17243 done
17244
17245
17246else
17247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17248$as_echo "no" >&6; }
17249fi
17250
17251 ac_ext=cpp
17252ac_cpp='$CXXCPP $CPPFLAGS'
17253ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17254ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17255ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17256
17257
17258
17259 ac_ext=cpp
17260ac_cpp='$CXXCPP $CPPFLAGS'
17261ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17262ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17263ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17264
babf7fe8
JF
17265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-deprecated-declarations" >&5
17266$as_echo_n "checking for c++ -Wno-deprecated-declarations... " >&6; }
c10a2228
JF
17267
17268 cy_save=$CXXFLAGS
17269
babf7fe8 17270 for element in -Wno-deprecated-declarations; do
c10a2228
JF
17271 haveit=
17272 for x in $CXXFLAGS; do
17273
17274 acl_save_prefix="$prefix"
17275 prefix="$acl_final_prefix"
17276 acl_save_exec_prefix="$exec_prefix"
17277 exec_prefix="$acl_final_exec_prefix"
17278 eval x=\"$x\"
17279 exec_prefix="$acl_save_exec_prefix"
17280 prefix="$acl_save_prefix"
17281
17282 if test "X$x" = "X$element"; then
17283 haveit=yes
17284 break
17285 fi
17286 done
17287 if test -z "$haveit"; then
17288 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17289 fi
17290 done
17291
17292
17293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17294/* end confdefs.h. */
17295
17296_ACEOF
17297if ac_fn_cxx_try_compile "$LINENO"; then :
17298 cy_good=1
17299else
17300 cy_good=0
17301fi
17302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17303
17304 CXXFLAGS=$cy_save
17305 if test "x$cy_good" = x1; then :
17306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17307$as_echo "yes" >&6; }
17308
babf7fe8 17309 for element in -Wno-deprecated-declarations; do
c10a2228
JF
17310 haveit=
17311 for x in $CXXFLAGS; do
17312
17313 acl_save_prefix="$prefix"
17314 prefix="$acl_final_prefix"
17315 acl_save_exec_prefix="$exec_prefix"
17316 exec_prefix="$acl_final_exec_prefix"
17317 eval x=\"$x\"
17318 exec_prefix="$acl_save_exec_prefix"
17319 prefix="$acl_save_prefix"
17320
17321 if test "X$x" = "X$element"; then
17322 haveit=yes
17323 break
17324 fi
17325 done
17326 if test -z "$haveit"; then
17327 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17328 fi
17329 done
17330
17331
17332else
17333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17334$as_echo "no" >&6; }
17335fi
17336
17337 ac_ext=cpp
17338ac_cpp='$CXXCPP $CPPFLAGS'
17339ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17340ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17341ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17342
17343
17344
17345 ac_ext=mm
17346ac_cpp='$OBJCXXCPP $CPPFLAGS'
17347ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17348ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17349ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
17350
babf7fe8
JF
17351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-deprecated-declarations" >&5
17352$as_echo_n "checking for c++ -ObjC -Wno-deprecated-declarations... " >&6; }
c10a2228
JF
17353
17354 cy_save=$OBJCXXFLAGS
17355
babf7fe8 17356 for element in -Wno-deprecated-declarations; do
c10a2228
JF
17357 haveit=
17358 for x in $OBJCXXFLAGS; do
17359
17360 acl_save_prefix="$prefix"
17361 prefix="$acl_final_prefix"
17362 acl_save_exec_prefix="$exec_prefix"
17363 exec_prefix="$acl_final_exec_prefix"
17364 eval x=\"$x\"
17365 exec_prefix="$acl_save_exec_prefix"
17366 prefix="$acl_save_prefix"
17367
17368 if test "X$x" = "X$element"; then
17369 haveit=yes
17370 break
17371 fi
17372 done
17373 if test -z "$haveit"; then
17374 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
17375 fi
17376 done
17377
17378
17379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17380/* end confdefs.h. */
17381
17382_ACEOF
17383if ac_fn_objcxx_try_compile "$LINENO"; then :
17384 cy_good=1
17385else
17386 cy_good=0
17387fi
17388rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17389
17390 OBJCXXFLAGS=$cy_save
17391 if test "x$cy_good" = x1; then :
17392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17393$as_echo "yes" >&6; }
17394
babf7fe8 17395 for element in -Wno-deprecated-declarations; do
c10a2228
JF
17396 haveit=
17397 for x in $OBJCXXFLAGS; do
17398
17399 acl_save_prefix="$prefix"
17400 prefix="$acl_final_prefix"
17401 acl_save_exec_prefix="$exec_prefix"
17402 exec_prefix="$acl_final_exec_prefix"
17403 eval x=\"$x\"
17404 exec_prefix="$acl_save_exec_prefix"
17405 prefix="$acl_save_prefix"
17406
17407 if test "X$x" = "X$element"; then
17408 haveit=yes
17409 break
17410 fi
17411 done
17412 if test -z "$haveit"; then
17413 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
17414 fi
17415 done
17416
17417
17418else
17419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17420$as_echo "no" >&6; }
17421fi
17422
17423 ac_ext=cpp
17424ac_cpp='$CXXCPP $CPPFLAGS'
17425ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17426ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17427ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17428
17429
17430
17431
17432
babf7fe8 17433
c10a2228
JF
17434 ac_ext=c
17435ac_cpp='$CPP $CPPFLAGS'
17436ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17437ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17438ac_compiler_gnu=$ac_cv_c_compiler_gnu
17439
babf7fe8
JF
17440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-dangling-else" >&5
17441$as_echo_n "checking for cc -Wno-dangling-else... " >&6; }
c10a2228
JF
17442
17443 cy_save=$CFLAGS
17444
babf7fe8 17445 for element in -Wno-dangling-else; do
c10a2228
JF
17446 haveit=
17447 for x in $CFLAGS; do
17448
17449 acl_save_prefix="$prefix"
17450 prefix="$acl_final_prefix"
17451 acl_save_exec_prefix="$exec_prefix"
17452 exec_prefix="$acl_final_exec_prefix"
17453 eval x=\"$x\"
17454 exec_prefix="$acl_save_exec_prefix"
17455 prefix="$acl_save_prefix"
17456
17457 if test "X$x" = "X$element"; then
17458 haveit=yes
17459 break
17460 fi
17461 done
17462 if test -z "$haveit"; then
17463 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
17464 fi
17465 done
17466
17467
17468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17469/* end confdefs.h. */
17470
17471_ACEOF
17472if ac_fn_c_try_compile "$LINENO"; then :
17473 cy_good=1
17474else
17475 cy_good=0
17476fi
17477rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17478
17479 CFLAGS=$cy_save
17480 if test "x$cy_good" = x1; then :
17481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17482$as_echo "yes" >&6; }
17483
babf7fe8 17484 for element in -Wno-dangling-else; do
c10a2228
JF
17485 haveit=
17486 for x in $CFLAGS; do
17487
17488 acl_save_prefix="$prefix"
17489 prefix="$acl_final_prefix"
17490 acl_save_exec_prefix="$exec_prefix"
17491 exec_prefix="$acl_final_exec_prefix"
17492 eval x=\"$x\"
17493 exec_prefix="$acl_save_exec_prefix"
17494 prefix="$acl_save_prefix"
17495
17496 if test "X$x" = "X$element"; then
17497 haveit=yes
17498 break
17499 fi
17500 done
17501 if test -z "$haveit"; then
17502 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
17503 fi
17504 done
17505
17506
17507else
17508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17509$as_echo "no" >&6; }
17510fi
17511
17512 ac_ext=cpp
17513ac_cpp='$CXXCPP $CPPFLAGS'
17514ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17515ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17516ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17517
17518
17519
17520 ac_ext=cpp
17521ac_cpp='$CXXCPP $CPPFLAGS'
17522ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17523ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17524ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17525
babf7fe8
JF
17526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-dangling-else" >&5
17527$as_echo_n "checking for c++ -Wno-dangling-else... " >&6; }
c10a2228
JF
17528
17529 cy_save=$CXXFLAGS
17530
babf7fe8 17531 for element in -Wno-dangling-else; do
c10a2228
JF
17532 haveit=
17533 for x in $CXXFLAGS; do
17534
17535 acl_save_prefix="$prefix"
17536 prefix="$acl_final_prefix"
17537 acl_save_exec_prefix="$exec_prefix"
17538 exec_prefix="$acl_final_exec_prefix"
17539 eval x=\"$x\"
17540 exec_prefix="$acl_save_exec_prefix"
17541 prefix="$acl_save_prefix"
17542
17543 if test "X$x" = "X$element"; then
17544 haveit=yes
17545 break
17546 fi
17547 done
17548 if test -z "$haveit"; then
17549 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17550 fi
17551 done
17552
17553
17554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17555/* end confdefs.h. */
17556
17557_ACEOF
17558if ac_fn_cxx_try_compile "$LINENO"; then :
17559 cy_good=1
17560else
17561 cy_good=0
17562fi
17563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17564
17565 CXXFLAGS=$cy_save
17566 if test "x$cy_good" = x1; then :
17567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17568$as_echo "yes" >&6; }
17569
babf7fe8 17570 for element in -Wno-dangling-else; do
c10a2228
JF
17571 haveit=
17572 for x in $CXXFLAGS; do
17573
17574 acl_save_prefix="$prefix"
17575 prefix="$acl_final_prefix"
17576 acl_save_exec_prefix="$exec_prefix"
17577 exec_prefix="$acl_final_exec_prefix"
17578 eval x=\"$x\"
17579 exec_prefix="$acl_save_exec_prefix"
17580 prefix="$acl_save_prefix"
17581
17582 if test "X$x" = "X$element"; then
17583 haveit=yes
17584 break
17585 fi
17586 done
17587 if test -z "$haveit"; then
17588 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17589 fi
17590 done
17591
17592
17593else
17594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17595$as_echo "no" >&6; }
17596fi
17597
17598 ac_ext=cpp
17599ac_cpp='$CXXCPP $CPPFLAGS'
17600ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17601ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17602ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17603
17604
17605
17606 ac_ext=mm
17607ac_cpp='$OBJCXXCPP $CPPFLAGS'
17608ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17609ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17610ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
17611
babf7fe8
JF
17612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-dangling-else" >&5
17613$as_echo_n "checking for c++ -ObjC -Wno-dangling-else... " >&6; }
c10a2228
JF
17614
17615 cy_save=$OBJCXXFLAGS
17616
babf7fe8 17617 for element in -Wno-dangling-else; do
c10a2228
JF
17618 haveit=
17619 for x in $OBJCXXFLAGS; do
17620
17621 acl_save_prefix="$prefix"
17622 prefix="$acl_final_prefix"
17623 acl_save_exec_prefix="$exec_prefix"
17624 exec_prefix="$acl_final_exec_prefix"
17625 eval x=\"$x\"
17626 exec_prefix="$acl_save_exec_prefix"
17627 prefix="$acl_save_prefix"
17628
17629 if test "X$x" = "X$element"; then
17630 haveit=yes
17631 break
17632 fi
17633 done
17634 if test -z "$haveit"; then
17635 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
17636 fi
17637 done
17638
17639
17640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17641/* end confdefs.h. */
17642
17643_ACEOF
17644if ac_fn_objcxx_try_compile "$LINENO"; then :
17645 cy_good=1
17646else
17647 cy_good=0
17648fi
17649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17650
17651 OBJCXXFLAGS=$cy_save
17652 if test "x$cy_good" = x1; then :
17653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17654$as_echo "yes" >&6; }
17655
babf7fe8 17656 for element in -Wno-dangling-else; do
c10a2228
JF
17657 haveit=
17658 for x in $OBJCXXFLAGS; do
17659
17660 acl_save_prefix="$prefix"
17661 prefix="$acl_final_prefix"
17662 acl_save_exec_prefix="$exec_prefix"
17663 exec_prefix="$acl_final_exec_prefix"
17664 eval x=\"$x\"
17665 exec_prefix="$acl_save_exec_prefix"
17666 prefix="$acl_save_prefix"
17667
17668 if test "X$x" = "X$element"; then
17669 haveit=yes
17670 break
17671 fi
17672 done
17673 if test -z "$haveit"; then
17674 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
17675 fi
17676 done
17677
17678
17679else
17680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17681$as_echo "no" >&6; }
17682fi
17683
17684 ac_ext=cpp
17685ac_cpp='$CXXCPP $CPPFLAGS'
17686ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17687ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17688ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17689
17690
17691
17692
17693
17694 ac_ext=c
17695ac_cpp='$CPP $CPPFLAGS'
17696ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17697ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17698ac_compiler_gnu=$ac_cv_c_compiler_gnu
17699
babf7fe8
JF
17700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-overloaded-virtual" >&5
17701$as_echo_n "checking for cc -Wno-overloaded-virtual... " >&6; }
c10a2228
JF
17702
17703 cy_save=$CFLAGS
17704
babf7fe8 17705 for element in -Wno-overloaded-virtual; do
1504c9b8 17706 haveit=
c10a2228 17707 for x in $CFLAGS; do
1504c9b8
DWT
17708
17709 acl_save_prefix="$prefix"
17710 prefix="$acl_final_prefix"
17711 acl_save_exec_prefix="$exec_prefix"
17712 exec_prefix="$acl_final_exec_prefix"
17713 eval x=\"$x\"
17714 exec_prefix="$acl_save_exec_prefix"
17715 prefix="$acl_save_prefix"
17716
17717 if test "X$x" = "X$element"; then
17718 haveit=yes
17719 break
17720 fi
17721 done
17722 if test -z "$haveit"; then
c10a2228 17723 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
1504c9b8
DWT
17724 fi
17725 done
17726
66170b30
JF
17727
17728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1504c9b8
DWT
17729/* end confdefs.h. */
17730
66170b30 17731_ACEOF
c10a2228 17732if ac_fn_c_try_compile "$LINENO"; then :
66170b30
JF
17733 cy_good=1
17734else
17735 cy_good=0
17736fi
17737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17738
c10a2228 17739 CFLAGS=$cy_save
66170b30
JF
17740 if test "x$cy_good" = x1; then :
17741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17742$as_echo "yes" >&6; }
17743
babf7fe8 17744 for element in -Wno-overloaded-virtual; do
66170b30
JF
17745 haveit=
17746 for x in $CFLAGS; do
17747
17748 acl_save_prefix="$prefix"
17749 prefix="$acl_final_prefix"
17750 acl_save_exec_prefix="$exec_prefix"
17751 exec_prefix="$acl_final_exec_prefix"
17752 eval x=\"$x\"
17753 exec_prefix="$acl_save_exec_prefix"
17754 prefix="$acl_save_prefix"
17755
17756 if test "X$x" = "X$element"; then
17757 haveit=yes
17758 break
17759 fi
17760 done
17761 if test -z "$haveit"; then
17762 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
17763 fi
17764 done
17765
17766
c10a2228
JF
17767else
17768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17769$as_echo "no" >&6; }
17770fi
17771
17772 ac_ext=cpp
17773ac_cpp='$CXXCPP $CPPFLAGS'
17774ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17775ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17776ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17777
17778
17779
17780 ac_ext=cpp
17781ac_cpp='$CXXCPP $CPPFLAGS'
17782ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17783ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17784ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17785
babf7fe8
JF
17786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-overloaded-virtual" >&5
17787$as_echo_n "checking for c++ -Wno-overloaded-virtual... " >&6; }
c10a2228
JF
17788
17789 cy_save=$CXXFLAGS
17790
babf7fe8 17791 for element in -Wno-overloaded-virtual; do
66170b30
JF
17792 haveit=
17793 for x in $CXXFLAGS; do
17794
17795 acl_save_prefix="$prefix"
17796 prefix="$acl_final_prefix"
17797 acl_save_exec_prefix="$exec_prefix"
17798 exec_prefix="$acl_final_exec_prefix"
17799 eval x=\"$x\"
17800 exec_prefix="$acl_save_exec_prefix"
17801 prefix="$acl_save_prefix"
17802
17803 if test "X$x" = "X$element"; then
17804 haveit=yes
17805 break
17806 fi
17807 done
17808 if test -z "$haveit"; then
17809 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17810 fi
17811 done
17812
17813
c10a2228
JF
17814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17815/* end confdefs.h. */
17816
17817_ACEOF
17818if ac_fn_cxx_try_compile "$LINENO"; then :
17819 cy_good=1
17820else
17821 cy_good=0
17822fi
17823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17824
17825 CXXFLAGS=$cy_save
17826 if test "x$cy_good" = x1; then :
17827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17828$as_echo "yes" >&6; }
17829
babf7fe8 17830 for element in -Wno-overloaded-virtual; do
66170b30 17831 haveit=
c10a2228 17832 for x in $CXXFLAGS; do
66170b30
JF
17833
17834 acl_save_prefix="$prefix"
17835 prefix="$acl_final_prefix"
17836 acl_save_exec_prefix="$exec_prefix"
17837 exec_prefix="$acl_final_exec_prefix"
17838 eval x=\"$x\"
17839 exec_prefix="$acl_save_exec_prefix"
17840 prefix="$acl_save_prefix"
17841
17842 if test "X$x" = "X$element"; then
17843 haveit=yes
17844 break
17845 fi
17846 done
17847 if test -z "$haveit"; then
c10a2228 17848 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
66170b30
JF
17849 fi
17850 done
17851
17852
66170b30
JF
17853else
17854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17855$as_echo "no" >&6; }
17856fi
17857
c10a2228
JF
17858 ac_ext=cpp
17859ac_cpp='$CXXCPP $CPPFLAGS'
17860ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17861ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17862ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17863
66170b30
JF
17864
17865
c10a2228
JF
17866 ac_ext=mm
17867ac_cpp='$OBJCXXCPP $CPPFLAGS'
17868ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17869ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17870ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
17871
babf7fe8
JF
17872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-overloaded-virtual" >&5
17873$as_echo_n "checking for c++ -ObjC -Wno-overloaded-virtual... " >&6; }
66170b30 17874
c10a2228 17875 cy_save=$OBJCXXFLAGS
66170b30 17876
babf7fe8 17877 for element in -Wno-overloaded-virtual; do
66170b30 17878 haveit=
c10a2228 17879 for x in $OBJCXXFLAGS; do
66170b30
JF
17880
17881 acl_save_prefix="$prefix"
17882 prefix="$acl_final_prefix"
17883 acl_save_exec_prefix="$exec_prefix"
17884 exec_prefix="$acl_final_exec_prefix"
17885 eval x=\"$x\"
17886 exec_prefix="$acl_save_exec_prefix"
17887 prefix="$acl_save_prefix"
17888
17889 if test "X$x" = "X$element"; then
17890 haveit=yes
17891 break
17892 fi
17893 done
17894 if test -z "$haveit"; then
c10a2228 17895 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
66170b30
JF
17896 fi
17897 done
17898
17899
17900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17901/* end confdefs.h. */
1504c9b8 17902
1504c9b8 17903_ACEOF
c10a2228 17904if ac_fn_objcxx_try_compile "$LINENO"; then :
66170b30
JF
17905 cy_good=1
17906else
17907 cy_good=0
17908fi
17909rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17910
c10a2228 17911 OBJCXXFLAGS=$cy_save
66170b30
JF
17912 if test "x$cy_good" = x1; then :
17913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17914$as_echo "yes" >&6; }
1504c9b8 17915
babf7fe8 17916 for element in -Wno-overloaded-virtual; do
1504c9b8 17917 haveit=
c10a2228 17918 for x in $OBJCXXFLAGS; do
1504c9b8
DWT
17919
17920 acl_save_prefix="$prefix"
17921 prefix="$acl_final_prefix"
17922 acl_save_exec_prefix="$exec_prefix"
17923 exec_prefix="$acl_final_exec_prefix"
17924 eval x=\"$x\"
17925 exec_prefix="$acl_save_exec_prefix"
17926 prefix="$acl_save_prefix"
17927
17928 if test "X$x" = "X$element"; then
17929 haveit=yes
17930 break
17931 fi
17932 done
17933 if test -z "$haveit"; then
c10a2228 17934 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
1504c9b8
DWT
17935 fi
17936 done
17937
17938
c10a2228
JF
17939else
17940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17941$as_echo "no" >&6; }
17942fi
17943
17944 ac_ext=cpp
17945ac_cpp='$CXXCPP $CPPFLAGS'
17946ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17947ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17948ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17949
17950
17951
17952
17953
17954 ac_ext=c
17955ac_cpp='$CPP $CPPFLAGS'
17956ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17957ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17958ac_compiler_gnu=$ac_cv_c_compiler_gnu
17959
babf7fe8
JF
17960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-parentheses" >&5
17961$as_echo_n "checking for cc -Wno-parentheses... " >&6; }
c10a2228
JF
17962
17963 cy_save=$CFLAGS
17964
babf7fe8 17965 for element in -Wno-parentheses; do
66170b30 17966 haveit=
c10a2228 17967 for x in $CFLAGS; do
66170b30
JF
17968
17969 acl_save_prefix="$prefix"
17970 prefix="$acl_final_prefix"
17971 acl_save_exec_prefix="$exec_prefix"
17972 exec_prefix="$acl_final_exec_prefix"
17973 eval x=\"$x\"
17974 exec_prefix="$acl_save_exec_prefix"
17975 prefix="$acl_save_prefix"
17976
17977 if test "X$x" = "X$element"; then
17978 haveit=yes
17979 break
17980 fi
17981 done
17982 if test -z "$haveit"; then
c10a2228 17983 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
66170b30
JF
17984 fi
17985 done
17986
17987
c10a2228
JF
17988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17989/* end confdefs.h. */
17990
17991_ACEOF
17992if ac_fn_c_try_compile "$LINENO"; then :
17993 cy_good=1
17994else
17995 cy_good=0
17996fi
17997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17998
17999 CFLAGS=$cy_save
18000 if test "x$cy_good" = x1; then :
18001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18002$as_echo "yes" >&6; }
18003
babf7fe8 18004 for element in -Wno-parentheses; do
66170b30 18005 haveit=
c10a2228 18006 for x in $CFLAGS; do
66170b30
JF
18007
18008 acl_save_prefix="$prefix"
18009 prefix="$acl_final_prefix"
18010 acl_save_exec_prefix="$exec_prefix"
18011 exec_prefix="$acl_final_exec_prefix"
18012 eval x=\"$x\"
18013 exec_prefix="$acl_save_exec_prefix"
18014 prefix="$acl_save_prefix"
18015
18016 if test "X$x" = "X$element"; then
18017 haveit=yes
18018 break
18019 fi
18020 done
18021 if test -z "$haveit"; then
c10a2228 18022 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
66170b30
JF
18023 fi
18024 done
18025
18026
66170b30
JF
18027else
18028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18029$as_echo "no" >&6; }
18030fi
18031
c10a2228
JF
18032 ac_ext=cpp
18033ac_cpp='$CXXCPP $CPPFLAGS'
18034ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18035ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18036ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18037
66170b30
JF
18038
18039
c10a2228
JF
18040 ac_ext=cpp
18041ac_cpp='$CXXCPP $CPPFLAGS'
18042ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18043ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18044ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18045
babf7fe8
JF
18046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-parentheses" >&5
18047$as_echo_n "checking for c++ -Wno-parentheses... " >&6; }
66170b30
JF
18048
18049 cy_save=$CXXFLAGS
18050
babf7fe8 18051 for element in -Wno-parentheses; do
66170b30
JF
18052 haveit=
18053 for x in $CXXFLAGS; do
18054
18055 acl_save_prefix="$prefix"
18056 prefix="$acl_final_prefix"
18057 acl_save_exec_prefix="$exec_prefix"
18058 exec_prefix="$acl_final_exec_prefix"
18059 eval x=\"$x\"
18060 exec_prefix="$acl_save_exec_prefix"
18061 prefix="$acl_save_prefix"
18062
18063 if test "X$x" = "X$element"; then
18064 haveit=yes
18065 break
18066 fi
18067 done
18068 if test -z "$haveit"; then
18069 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
18070 fi
18071 done
18072
18073
18074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18075/* end confdefs.h. */
18076
18077_ACEOF
18078if ac_fn_cxx_try_compile "$LINENO"; then :
18079 cy_good=1
18080else
18081 cy_good=0
18082fi
18083rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18084
18085 CXXFLAGS=$cy_save
18086 if test "x$cy_good" = x1; then :
18087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18088$as_echo "yes" >&6; }
18089
babf7fe8 18090 for element in -Wno-parentheses; do
1504c9b8 18091 haveit=
c10a2228 18092 for x in $CXXFLAGS; do
1504c9b8
DWT
18093
18094 acl_save_prefix="$prefix"
18095 prefix="$acl_final_prefix"
18096 acl_save_exec_prefix="$exec_prefix"
18097 exec_prefix="$acl_final_exec_prefix"
18098 eval x=\"$x\"
18099 exec_prefix="$acl_save_exec_prefix"
18100 prefix="$acl_save_prefix"
18101
18102 if test "X$x" = "X$element"; then
18103 haveit=yes
18104 break
18105 fi
18106 done
18107 if test -z "$haveit"; then
c10a2228 18108 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
1504c9b8
DWT
18109 fi
18110 done
18111
18112
c10a2228
JF
18113else
18114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18115$as_echo "no" >&6; }
18116fi
18117
18118 ac_ext=cpp
18119ac_cpp='$CXXCPP $CPPFLAGS'
18120ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18121ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18122ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18123
18124
18125
18126 ac_ext=mm
18127ac_cpp='$OBJCXXCPP $CPPFLAGS'
18128ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18129ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18130ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
18131
babf7fe8
JF
18132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-parentheses" >&5
18133$as_echo_n "checking for c++ -ObjC -Wno-parentheses... " >&6; }
c10a2228
JF
18134
18135 cy_save=$OBJCXXFLAGS
18136
babf7fe8 18137 for element in -Wno-parentheses; do
1504c9b8 18138 haveit=
c10a2228 18139 for x in $OBJCXXFLAGS; do
1504c9b8
DWT
18140
18141 acl_save_prefix="$prefix"
18142 prefix="$acl_final_prefix"
18143 acl_save_exec_prefix="$exec_prefix"
18144 exec_prefix="$acl_final_exec_prefix"
18145 eval x=\"$x\"
18146 exec_prefix="$acl_save_exec_prefix"
18147 prefix="$acl_save_prefix"
18148
18149 if test "X$x" = "X$element"; then
18150 haveit=yes
18151 break
18152 fi
18153 done
18154 if test -z "$haveit"; then
c10a2228 18155 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
1504c9b8
DWT
18156 fi
18157 done
18158
18159
c10a2228
JF
18160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18161/* end confdefs.h. */
18162
18163_ACEOF
18164if ac_fn_objcxx_try_compile "$LINENO"; then :
18165 cy_good=1
18166else
18167 cy_good=0
18168fi
18169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18170
18171 OBJCXXFLAGS=$cy_save
18172 if test "x$cy_good" = x1; then :
18173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18174$as_echo "yes" >&6; }
18175
babf7fe8 18176 for element in -Wno-parentheses; do
1504c9b8 18177 haveit=
c10a2228 18178 for x in $OBJCXXFLAGS; do
1504c9b8
DWT
18179
18180 acl_save_prefix="$prefix"
18181 prefix="$acl_final_prefix"
18182 acl_save_exec_prefix="$exec_prefix"
18183 exec_prefix="$acl_final_exec_prefix"
18184 eval x=\"$x\"
18185 exec_prefix="$acl_save_exec_prefix"
18186 prefix="$acl_save_prefix"
18187
18188 if test "X$x" = "X$element"; then
18189 haveit=yes
18190 break
18191 fi
18192 done
18193 if test -z "$haveit"; then
c10a2228 18194 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
1504c9b8
DWT
18195 fi
18196 done
18197
18198
66170b30
JF
18199else
18200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18201$as_echo "no" >&6; }
1504c9b8 18202fi
1504c9b8 18203
c10a2228
JF
18204 ac_ext=cpp
18205ac_cpp='$CXXCPP $CPPFLAGS'
18206ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18207ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18208ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18209
18210
1504c9b8 18211
1504c9b8 18212
1504c9b8 18213
babf7fe8
JF
18214 ac_ext=c
18215ac_cpp='$CPP $CPPFLAGS'
18216ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18217ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18218ac_compiler_gnu=$ac_cv_c_compiler_gnu
1504c9b8 18219
babf7fe8
JF
18220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-unneeded-internal-declaration" >&5
18221$as_echo_n "checking for cc -Wno-unneeded-internal-declaration... " >&6; }
18222
18223 cy_save=$CFLAGS
18224
18225 for element in -Wno-unneeded-internal-declaration; do
1504c9b8 18226 haveit=
babf7fe8 18227 for x in $CFLAGS; do
1504c9b8
DWT
18228
18229 acl_save_prefix="$prefix"
18230 prefix="$acl_final_prefix"
18231 acl_save_exec_prefix="$exec_prefix"
18232 exec_prefix="$acl_final_exec_prefix"
18233 eval x=\"$x\"
18234 exec_prefix="$acl_save_exec_prefix"
18235 prefix="$acl_save_prefix"
18236
18237 if test "X$x" = "X$element"; then
18238 haveit=yes
18239 break
18240 fi
18241 done
18242 if test -z "$haveit"; then
babf7fe8 18243 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
1504c9b8
DWT
18244 fi
18245 done
18246
66170b30
JF
18247
18248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1504c9b8
DWT
18249/* end confdefs.h. */
18250
a243b558 18251_ACEOF
babf7fe8 18252if ac_fn_c_try_compile "$LINENO"; then :
a243b558
JF
18253 cy_good=1
18254else
18255 cy_good=0
18256fi
babf7fe8 18257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1504c9b8 18258
babf7fe8 18259 CFLAGS=$cy_save
a243b558
JF
18260 if test "x$cy_good" = x1; then :
18261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18262$as_echo "yes" >&6; }
66170b30 18263
babf7fe8 18264 for element in -Wno-unneeded-internal-declaration; do
1504c9b8 18265 haveit=
babf7fe8 18266 for x in $CFLAGS; do
1504c9b8
DWT
18267
18268 acl_save_prefix="$prefix"
18269 prefix="$acl_final_prefix"
18270 acl_save_exec_prefix="$exec_prefix"
18271 exec_prefix="$acl_final_exec_prefix"
18272 eval x=\"$x\"
18273 exec_prefix="$acl_save_exec_prefix"
18274 prefix="$acl_save_prefix"
18275
18276 if test "X$x" = "X$element"; then
18277 haveit=yes
18278 break
18279 fi
18280 done
18281 if test -z "$haveit"; then
babf7fe8 18282 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
1504c9b8
DWT
18283 fi
18284 done
18285
18286
18287else
66170b30
JF
18288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18289$as_echo "no" >&6; }
1504c9b8
DWT
18290fi
18291
babf7fe8
JF
18292 ac_ext=cpp
18293ac_cpp='$CXXCPP $CPPFLAGS'
18294ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18295ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18296ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
296ee9a6 18297
9c60689e 18298
632b71ea 18299
babf7fe8
JF
18300 ac_ext=cpp
18301ac_cpp='$CXXCPP $CPPFLAGS'
18302ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18303ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18304ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
632b71ea 18305
babf7fe8
JF
18306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-unneeded-internal-declaration" >&5
18307$as_echo_n "checking for c++ -Wno-unneeded-internal-declaration... " >&6; }
9c60689e 18308
babf7fe8 18309 cy_save=$CXXFLAGS
9c60689e 18310
babf7fe8
JF
18311 for element in -Wno-unneeded-internal-declaration; do
18312 haveit=
18313 for x in $CXXFLAGS; do
9c60689e 18314
babf7fe8
JF
18315 acl_save_prefix="$prefix"
18316 prefix="$acl_final_prefix"
18317 acl_save_exec_prefix="$exec_prefix"
18318 exec_prefix="$acl_final_exec_prefix"
18319 eval x=\"$x\"
18320 exec_prefix="$acl_save_exec_prefix"
18321 prefix="$acl_save_prefix"
66170b30 18322
babf7fe8
JF
18323 if test "X$x" = "X$element"; then
18324 haveit=yes
18325 break
18326 fi
18327 done
18328 if test -z "$haveit"; then
18329 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
18330 fi
18331 done
7eda51e0 18332
7eda51e0 18333
babf7fe8
JF
18334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18335/* end confdefs.h. */
7eda51e0 18336
7eda51e0 18337_ACEOF
babf7fe8
JF
18338if ac_fn_cxx_try_compile "$LINENO"; then :
18339 cy_good=1
9c60689e 18340else
babf7fe8 18341 cy_good=0
9c60689e 18342fi
babf7fe8 18343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7eda51e0 18344
babf7fe8
JF
18345 CXXFLAGS=$cy_save
18346 if test "x$cy_good" = x1; then :
18347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18348$as_echo "yes" >&6; }
7eda51e0 18349
babf7fe8 18350 for element in -Wno-unneeded-internal-declaration; do
7eda51e0 18351 haveit=
babf7fe8 18352 for x in $CXXFLAGS; do
9c60689e 18353
7eda51e0
JF
18354 acl_save_prefix="$prefix"
18355 prefix="$acl_final_prefix"
18356 acl_save_exec_prefix="$exec_prefix"
18357 exec_prefix="$acl_final_exec_prefix"
18358 eval x=\"$x\"
18359 exec_prefix="$acl_save_exec_prefix"
18360 prefix="$acl_save_prefix"
9c60689e 18361
7eda51e0
JF
18362 if test "X$x" = "X$element"; then
18363 haveit=yes
18364 break
18365 fi
18366 done
18367 if test -z "$haveit"; then
babf7fe8 18368 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
7eda51e0
JF
18369 fi
18370 done
9c60689e 18371
9c60689e 18372
5053a6d1 18373else
babf7fe8
JF
18374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18375$as_echo "no" >&6; }
632b71ea
DWT
18376fi
18377
babf7fe8
JF
18378 ac_ext=cpp
18379ac_cpp='$CXXCPP $CPPFLAGS'
18380ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18381ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18382ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
632b71ea
DWT
18383
18384
5053a6d1 18385
babf7fe8
JF
18386 ac_ext=mm
18387ac_cpp='$OBJCXXCPP $CPPFLAGS'
18388ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18389ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18390ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
5053a6d1 18391
babf7fe8
JF
18392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-unneeded-internal-declaration" >&5
18393$as_echo_n "checking for c++ -ObjC -Wno-unneeded-internal-declaration... " >&6; }
632b71ea 18394
babf7fe8 18395 cy_save=$OBJCXXFLAGS
632b71ea 18396
babf7fe8 18397 for element in -Wno-unneeded-internal-declaration; do
5053a6d1 18398 haveit=
babf7fe8 18399 for x in $OBJCXXFLAGS; do
632b71ea
DWT
18400
18401 acl_save_prefix="$prefix"
18402 prefix="$acl_final_prefix"
18403 acl_save_exec_prefix="$exec_prefix"
18404 exec_prefix="$acl_final_exec_prefix"
5053a6d1 18405 eval x=\"$x\"
632b71ea
DWT
18406 exec_prefix="$acl_save_exec_prefix"
18407 prefix="$acl_save_prefix"
18408
5053a6d1
DWT
18409 if test "X$x" = "X$element"; then
18410 haveit=yes
18411 break
18412 fi
18413 done
18414 if test -z "$haveit"; then
babf7fe8 18415 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
5053a6d1
DWT
18416 fi
18417 done
18418
66170b30 18419
babf7fe8
JF
18420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18421/* end confdefs.h. */
18422
18423_ACEOF
18424if ac_fn_objcxx_try_compile "$LINENO"; then :
18425 cy_good=1
18426else
18427 cy_good=0
18428fi
18429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18430
18431 OBJCXXFLAGS=$cy_save
18432 if test "x$cy_good" = x1; then :
18433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18434$as_echo "yes" >&6; }
18435
18436 for element in -Wno-unneeded-internal-declaration; do
7eda51e0 18437 haveit=
babf7fe8 18438 for x in $OBJCXXFLAGS; do
7eda51e0
JF
18439
18440 acl_save_prefix="$prefix"
18441 prefix="$acl_final_prefix"
18442 acl_save_exec_prefix="$exec_prefix"
18443 exec_prefix="$acl_final_exec_prefix"
18444 eval x=\"$x\"
18445 exec_prefix="$acl_save_exec_prefix"
18446 prefix="$acl_save_prefix"
18447
18448 if test "X$x" = "X$element"; then
18449 haveit=yes
18450 break
18451 fi
18452 done
18453 if test -z "$haveit"; then
babf7fe8 18454 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
7eda51e0
JF
18455 fi
18456 done
66170b30
JF
18457
18458
babf7fe8
JF
18459else
18460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18461$as_echo "no" >&6; }
5053a6d1 18462fi
7eda51e0 18463
babf7fe8
JF
18464 ac_ext=cpp
18465ac_cpp='$CXXCPP $CPPFLAGS'
18466ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18467ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18468ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5053a6d1 18469
5053a6d1
DWT
18470
18471
5053a6d1 18472
babf7fe8
JF
18473
18474
3615a2f7 18475for cy_arch in ppc ppc64 i386 x86_64 armv6 arm64; do
abc804fa
JF
18476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -arch $cy_arch" >&5
18477$as_echo_n "checking for -arch $cy_arch... " >&6; }
18478
18479 cy_save=$CXXFLAGS
18480
18481 for element in "-arch $cy_arch"; do
18482 haveit=
18483 for x in $CXXFLAGS; do
18484
18485 acl_save_prefix="$prefix"
18486 prefix="$acl_final_prefix"
18487 acl_save_exec_prefix="$exec_prefix"
18488 exec_prefix="$acl_final_exec_prefix"
18489 eval x=\"$x\"
18490 exec_prefix="$acl_save_exec_prefix"
18491 prefix="$acl_save_prefix"
18492
18493 if test "X$x" = "X$element"; then
18494 haveit=yes
18495 break
18496 fi
18497 done
18498 if test -z "$haveit"; then
18499 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
18500 fi
18501 done
18502
18503
18504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18505/* end confdefs.h. */
18506
18507int
18508main ()
18509{
18510
18511 ;
18512 return 0;
18513}
18514_ACEOF
18515if ac_fn_cxx_try_link "$LINENO"; then :
18516 cy_good=1
18517else
18518 cy_good=0
18519fi
18520rm -f core conftest.err conftest.$ac_objext \
18521 conftest$ac_exeext conftest.$ac_ext
18522
18523 CXXFLAGS=$cy_save
18524 if test "x$cy_good" = x1; then :
18525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18526$as_echo "yes" >&6; }
18527
18528 for element in "-arch $cy_arch"; do
18529 haveit=
18530 for x in $CY_ARCH; do
18531
18532 acl_save_prefix="$prefix"
18533 prefix="$acl_final_prefix"
18534 acl_save_exec_prefix="$exec_prefix"
18535 exec_prefix="$acl_final_exec_prefix"
18536 eval x=\"$x\"
18537 exec_prefix="$acl_save_exec_prefix"
18538 prefix="$acl_save_prefix"
18539
18540 if test "X$x" = "X$element"; then
18541 haveit=yes
18542 break
18543 fi
18544 done
18545 if test -z "$haveit"; then
18546 CY_ARCH="${CY_ARCH}${CY_ARCH:+ }$element"
18547 fi
18548 done
18549
18550
18551else
18552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18553$as_echo "no" >&6; }
18554fi
18555
18556done
18557
18558
babf7fe8
JF
18559
18560
18561
18562
18563# Check whether --enable-javascript was given.
18564if test "${enable_javascript+set}" = set; then :
18565 enableval=$enable_javascript;
18566 case $enableval in #(
18567 yes) :
18568
18569
18570
18571
18572 cy_save=$LIBS
18573 LIBS=
9918a0fa
JF
18574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing JSEvaluateScript" >&5
18575$as_echo_n "checking for library containing JSEvaluateScript... " >&6; }
18576if ${ac_cv_search_JSEvaluateScript+:} false; then :
18577 $as_echo_n "(cached) " >&6
18578else
18579 ac_func_search_save_LIBS=$LIBS
18580cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18581/* end confdefs.h. */
18582
18583/* Override any GCC internal prototype to avoid an error.
18584 Use char because int might match the return type of a GCC
18585 builtin and then its argument prototype would still apply. */
18586#ifdef __cplusplus
18587extern "C"
18588#endif
18589char JSEvaluateScript ();
18590int
18591main ()
18592{
18593return JSEvaluateScript ();
18594 ;
18595 return 0;
18596}
18597_ACEOF
18598for ac_lib in '' JavaScriptCore; do
18599 if test -z "$ac_lib"; then
18600 ac_res="none required"
18601 else
18602 ac_res=-l$ac_lib
18603 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18604 fi
18605 if ac_fn_cxx_try_link "$LINENO"; then :
18606 ac_cv_search_JSEvaluateScript=$ac_res
18607fi
18608rm -f core conftest.err conftest.$ac_objext \
18609 conftest$ac_exeext
18610 if ${ac_cv_search_JSEvaluateScript+:} false; then :
18611 break
18612fi
18613done
18614if ${ac_cv_search_JSEvaluateScript+:} false; then :
18615
18616else
18617 ac_cv_search_JSEvaluateScript=no
18618fi
18619rm conftest.$ac_ext
18620LIBS=$ac_func_search_save_LIBS
18621fi
18622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_JSEvaluateScript" >&5
18623$as_echo "$ac_cv_search_JSEvaluateScript" >&6; }
18624ac_res=$ac_cv_search_JSEvaluateScript
18625if test "$ac_res" != no; then :
18626 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18627
18628 CY_EXECUTE=1
18629
18630
18631else
babf7fe8
JF
18632
18633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
18634$as_echo_n "checking for framework JavaScriptCore... " >&6; }
18635if ${ac_cv_framework_JavaScriptCore+:} false; then :
18636 $as_echo_n "(cached) " >&6
18637else
18638
18639 ac_check_framework_save_LIBS=$LIBS
18640 LIBS="-framework JavaScriptCore $LIBS"
18641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18642/* end confdefs.h. */
18643
18644 #include <JavaScriptCore/JSBase.h>
18645
18646int
18647main ()
18648{
18649
18650 JSEvaluateScript(0, 0, 0, 0, 0, 0);
18651
18652 ;
18653 return 0;
18654}
18655_ACEOF
18656if ac_fn_cxx_try_link "$LINENO"; then :
18657
18658 ac_cv_framework_JavaScriptCore=yes
18659
18660else
18661 ac_cv_framework_JavaScriptCore=no
18662fi
18663rm -f core conftest.err conftest.$ac_objext \
18664 conftest$ac_exeext conftest.$ac_ext
18665 LIBS=$ac_check_framework_save_LIBS
18666
18667fi
18668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
18669$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
18670 if test $ac_cv_framework_JavaScriptCore = yes; then :
18671
18672
18673 for element in "-framework JavaScriptCore"; do
18674 haveit=
18675 for x in $LIBS; do
18676
18677 acl_save_prefix="$prefix"
18678 prefix="$acl_final_prefix"
18679 acl_save_exec_prefix="$exec_prefix"
18680 exec_prefix="$acl_final_exec_prefix"
18681 eval x=\"$x\"
18682 exec_prefix="$acl_save_exec_prefix"
18683 prefix="$acl_save_prefix"
18684
18685 if test "X$x" = "X$element"; then
18686 haveit=yes
18687 break
18688 fi
18689 done
18690 if test -z "$haveit"; then
18691 LIBS="${LIBS}${LIBS:+ }$element"
18692 fi
18693 done
18694
18695
18696 CY_EXECUTE=1
18697
18698
18699
18700else
18701
18702 for cy_webkit_pkg in "webkit-1.0" "WebKitGtk"; do
18703
18704pkg_failed=no
18705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
7eda51e0 18706$as_echo_n "checking for WEBKIT... " >&6; }
5053a6d1 18707
7eda51e0
JF
18708if test -n "$WEBKIT_CFLAGS"; then
18709 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
18710 elif test -n "$PKG_CONFIG"; then
18711 if test -n "$PKG_CONFIG" && \
18712 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
18713 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
18714 ac_status=$?
18715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18716 test $ac_status = 0; }; then
18717 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "$cy_webkit_pkg" 2>/dev/null`
18718else
18719 pkg_failed=yes
18720fi
18721 else
18722 pkg_failed=untried
18723fi
18724if test -n "$WEBKIT_LIBS"; then
18725 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
18726 elif test -n "$PKG_CONFIG"; then
18727 if test -n "$PKG_CONFIG" && \
18728 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
18729 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
18730 ac_status=$?
18731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18732 test $ac_status = 0; }; then
18733 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "$cy_webkit_pkg" 2>/dev/null`
18734else
18735 pkg_failed=yes
18736fi
18737 else
18738 pkg_failed=untried
18739fi
632b71ea 18740
7eda51e0
JF
18741
18742
18743if test $pkg_failed = yes; then
18744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18745$as_echo "no" >&6; }
18746
18747if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18748 _pkg_short_errors_supported=yes
18749else
18750 _pkg_short_errors_supported=no
18751fi
18752 if test $_pkg_short_errors_supported = yes; then
00a96142 18753 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$cy_webkit_pkg" 2>&1`
7eda51e0 18754 else
00a96142 18755 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "$cy_webkit_pkg" 2>&1`
7eda51e0
JF
18756 fi
18757 # Put the nasty error message in config.log where it belongs
18758 echo "$WEBKIT_PKG_ERRORS" >&5
18759
18760 :
18761elif test $pkg_failed = untried; then
18762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18763$as_echo "no" >&6; }
18764 :
18765else
18766 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
18767 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
18768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18769$as_echo "yes" >&6; }
18770
18771 CY_EXECUTE=1
18772
18773
7eda51e0
JF
18774 for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do
18775 haveit=
d70419f1 18776 for x in $CPPFLAGS; do
5053a6d1 18777
7eda51e0
JF
18778 acl_save_prefix="$prefix"
18779 prefix="$acl_final_prefix"
18780 acl_save_exec_prefix="$exec_prefix"
18781 exec_prefix="$acl_final_exec_prefix"
18782 eval x=\"$x\"
18783 exec_prefix="$acl_save_exec_prefix"
18784 prefix="$acl_save_prefix"
5053a6d1 18785
7eda51e0
JF
18786 if test "X$x" = "X$element"; then
18787 haveit=yes
18788 break
18789 fi
18790 done
18791 if test -z "$haveit"; then
d70419f1 18792 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7eda51e0
JF
18793 fi
18794 done
5053a6d1 18795
5053a6d1 18796
7eda51e0 18797 for element in `$PKG_CONFIG --libs $cy_webkit_pkg`; do
632b71ea 18798 haveit=
5053a6d1 18799 for x in $LIBS; do
9c60689e 18800
632b71ea
DWT
18801 acl_save_prefix="$prefix"
18802 prefix="$acl_final_prefix"
18803 acl_save_exec_prefix="$exec_prefix"
18804 exec_prefix="$acl_final_exec_prefix"
18805 eval x=\"$x\"
18806 exec_prefix="$acl_save_exec_prefix"
18807 prefix="$acl_save_prefix"
18808
18809 if test "X$x" = "X$element"; then
18810 haveit=yes
18811 break
18812 fi
18813 done
18814 if test -z "$haveit"; then
5053a6d1 18815 LIBS="${LIBS}${LIBS:+ }$element"
632b71ea
DWT
18816 fi
18817 done
b128dfee 18818
66170b30 18819
7eda51e0
JF
18820fi; if test "x$CY_EXECUTE" = x1; then break; fi
18821 done
5053a6d1
DWT
18822
18823fi
9918a0fa
JF
18824fi
18825
babf7fe8
JF
18826 LTJAVASCRIPTCORE=$LIBS
18827 LIBS=$cy_save
18828
18829
7eda51e0 18830 ;; #(
babf7fe8 18831 no) :
7eda51e0 18832
babf7fe8
JF
18833 CY_EXECUTE=0
18834 ;; #(
18835 JavaScriptCore) :
c823f118 18836
5053a6d1
DWT
18837
18838
babf7fe8
JF
18839 cy_save=$LIBS
18840 LIBS=
9918a0fa
JF
18841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing JSEvaluateScript" >&5
18842$as_echo_n "checking for library containing JSEvaluateScript... " >&6; }
18843if ${ac_cv_search_JSEvaluateScript+:} false; then :
18844 $as_echo_n "(cached) " >&6
18845else
18846 ac_func_search_save_LIBS=$LIBS
18847cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18848/* end confdefs.h. */
18849
18850/* Override any GCC internal prototype to avoid an error.
18851 Use char because int might match the return type of a GCC
18852 builtin and then its argument prototype would still apply. */
18853#ifdef __cplusplus
18854extern "C"
18855#endif
18856char JSEvaluateScript ();
18857int
18858main ()
18859{
18860return JSEvaluateScript ();
18861 ;
18862 return 0;
18863}
18864_ACEOF
18865for ac_lib in '' JavaScriptCore; do
18866 if test -z "$ac_lib"; then
18867 ac_res="none required"
18868 else
18869 ac_res=-l$ac_lib
18870 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18871 fi
18872 if ac_fn_cxx_try_link "$LINENO"; then :
18873 ac_cv_search_JSEvaluateScript=$ac_res
18874fi
18875rm -f core conftest.err conftest.$ac_objext \
18876 conftest$ac_exeext
18877 if ${ac_cv_search_JSEvaluateScript+:} false; then :
18878 break
18879fi
18880done
18881if ${ac_cv_search_JSEvaluateScript+:} false; then :
18882
18883else
18884 ac_cv_search_JSEvaluateScript=no
18885fi
18886rm conftest.$ac_ext
18887LIBS=$ac_func_search_save_LIBS
18888fi
18889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_JSEvaluateScript" >&5
18890$as_echo "$ac_cv_search_JSEvaluateScript" >&6; }
18891ac_res=$ac_cv_search_JSEvaluateScript
18892if test "$ac_res" != no; then :
18893 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18894
18895 CY_EXECUTE=1
18896
18897
18898else
babf7fe8 18899
5053a6d1
DWT
18900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
18901$as_echo_n "checking for framework JavaScriptCore... " >&6; }
ee134472 18902if ${ac_cv_framework_JavaScriptCore+:} false; then :
c823f118
DWT
18903 $as_echo_n "(cached) " >&6
18904else
18905
5053a6d1
DWT
18906 ac_check_framework_save_LIBS=$LIBS
18907 LIBS="-framework JavaScriptCore $LIBS"
18908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
632b71ea 18909/* end confdefs.h. */
5053a6d1 18910
7eda51e0 18911 #include <JavaScriptCore/JSBase.h>
5053a6d1 18912
632b71ea
DWT
18913int
18914main ()
18915{
66170b30 18916
7eda51e0 18917 JSEvaluateScript(0, 0, 0, 0, 0, 0);
66170b30 18918
632b71ea
DWT
18919 ;
18920 return 0;
18921}
18922_ACEOF
5053a6d1
DWT
18923if ac_fn_cxx_try_link "$LINENO"; then :
18924
18925 ac_cv_framework_JavaScriptCore=yes
18926
18927else
18928 ac_cv_framework_JavaScriptCore=no
632b71ea
DWT
18929fi
18930rm -f core conftest.err conftest.$ac_objext \
18931 conftest$ac_exeext conftest.$ac_ext
5053a6d1 18932 LIBS=$ac_check_framework_save_LIBS
b128dfee 18933
c823f118 18934fi
5053a6d1
DWT
18935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
18936$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
18937 if test $ac_cv_framework_JavaScriptCore = yes; then :
c823f118
DWT
18938
18939
7eda51e0 18940 for element in "-framework JavaScriptCore"; do
5053a6d1
DWT
18941 haveit=
18942 for x in $LIBS; do
18943
18944 acl_save_prefix="$prefix"
18945 prefix="$acl_final_prefix"
18946 acl_save_exec_prefix="$exec_prefix"
18947 exec_prefix="$acl_final_exec_prefix"
18948 eval x=\"$x\"
18949 exec_prefix="$acl_save_exec_prefix"
18950 prefix="$acl_save_prefix"
18951
18952 if test "X$x" = "X$element"; then
18953 haveit=yes
18954 break
18955 fi
18956 done
18957 if test -z "$haveit"; then
18958 LIBS="${LIBS}${LIBS:+ }$element"
18959 fi
18960 done
c823f118 18961
66170b30 18962
7eda51e0
JF
18963 CY_EXECUTE=1
18964
18965
18966
18967else
18968
18969 for cy_webkit_pkg in "webkit-1.0" "WebKitGtk"; do
18970
18971pkg_failed=no
18972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
18973$as_echo_n "checking for WEBKIT... " >&6; }
18974
18975if test -n "$WEBKIT_CFLAGS"; then
18976 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
18977 elif test -n "$PKG_CONFIG"; then
18978 if test -n "$PKG_CONFIG" && \
18979 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
18980 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
18981 ac_status=$?
18982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18983 test $ac_status = 0; }; then
18984 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "$cy_webkit_pkg" 2>/dev/null`
18985else
18986 pkg_failed=yes
18987fi
18988 else
18989 pkg_failed=untried
18990fi
18991if test -n "$WEBKIT_LIBS"; then
18992 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
18993 elif test -n "$PKG_CONFIG"; then
18994 if test -n "$PKG_CONFIG" && \
18995 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
18996 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
18997 ac_status=$?
18998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18999 test $ac_status = 0; }; then
19000 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "$cy_webkit_pkg" 2>/dev/null`
19001else
19002 pkg_failed=yes
19003fi
19004 else
19005 pkg_failed=untried
19006fi
19007
66170b30
JF
19008
19009
7eda51e0
JF
19010if test $pkg_failed = yes; then
19011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19012$as_echo "no" >&6; }
b128dfee 19013
7eda51e0
JF
19014if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19015 _pkg_short_errors_supported=yes
19016else
19017 _pkg_short_errors_supported=no
632b71ea 19018fi
7eda51e0 19019 if test $_pkg_short_errors_supported = yes; then
00a96142 19020 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$cy_webkit_pkg" 2>&1`
7eda51e0 19021 else
00a96142 19022 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "$cy_webkit_pkg" 2>&1`
7eda51e0
JF
19023 fi
19024 # Put the nasty error message in config.log where it belongs
19025 echo "$WEBKIT_PKG_ERRORS" >&5
c823f118 19026
7eda51e0
JF
19027 :
19028elif test $pkg_failed = untried; then
19029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19030$as_echo "no" >&6; }
19031 :
5053a6d1
DWT
19032else
19033 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
19034 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
19035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19036$as_echo "yes" >&6; }
c823f118 19037
7eda51e0
JF
19038 CY_EXECUTE=1
19039
66170b30 19040
7eda51e0 19041 for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do
5053a6d1 19042 haveit=
d70419f1 19043 for x in $CPPFLAGS; do
c823f118 19044
5053a6d1
DWT
19045 acl_save_prefix="$prefix"
19046 prefix="$acl_final_prefix"
19047 acl_save_exec_prefix="$exec_prefix"
19048 exec_prefix="$acl_final_exec_prefix"
19049 eval x=\"$x\"
19050 exec_prefix="$acl_save_exec_prefix"
19051 prefix="$acl_save_prefix"
c823f118 19052
5053a6d1
DWT
19053 if test "X$x" = "X$element"; then
19054 haveit=yes
19055 break
19056 fi
19057 done
19058 if test -z "$haveit"; then
d70419f1 19059 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5053a6d1
DWT
19060 fi
19061 done
c823f118 19062
b66977f1 19063
7eda51e0 19064 for element in `$PKG_CONFIG --libs $cy_webkit_pkg`; do
5053a6d1
DWT
19065 haveit=
19066 for x in $LIBS; do
19067
19068 acl_save_prefix="$prefix"
19069 prefix="$acl_final_prefix"
19070 acl_save_exec_prefix="$exec_prefix"
19071 exec_prefix="$acl_final_exec_prefix"
19072 eval x=\"$x\"
19073 exec_prefix="$acl_save_exec_prefix"
19074 prefix="$acl_save_prefix"
19075
19076 if test "X$x" = "X$element"; then
19077 haveit=yes
19078 break
19079 fi
19080 done
19081 if test -z "$haveit"; then
19082 LIBS="${LIBS}${LIBS:+ }$element"
19083 fi
19084 done
19085
19086
7eda51e0
JF
19087fi; if test "x$CY_EXECUTE" = x1; then break; fi
19088 done
19089
5053a6d1 19090fi
9918a0fa
JF
19091fi
19092
babf7fe8
JF
19093 LTJAVASCRIPTCORE=$LIBS
19094 LIBS=$cy_save
5053a6d1 19095
b66977f1 19096
babf7fe8
JF
19097 ;; #(
19098 *) :
19099 as_fn_error $? "Unknown JavaScript engine: $enableval" "$LINENO" 5 ;;
19100esac
b66977f1 19101
babf7fe8 19102else
b66977f1 19103
7eda51e0 19104
7eda51e0 19105
babf7fe8
JF
19106 cy_save=$LIBS
19107 LIBS=
9918a0fa
JF
19108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing JSEvaluateScript" >&5
19109$as_echo_n "checking for library containing JSEvaluateScript... " >&6; }
19110if ${ac_cv_search_JSEvaluateScript+:} false; then :
19111 $as_echo_n "(cached) " >&6
19112else
19113 ac_func_search_save_LIBS=$LIBS
19114cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19115/* end confdefs.h. */
19116
19117/* Override any GCC internal prototype to avoid an error.
19118 Use char because int might match the return type of a GCC
19119 builtin and then its argument prototype would still apply. */
19120#ifdef __cplusplus
19121extern "C"
19122#endif
19123char JSEvaluateScript ();
19124int
19125main ()
19126{
19127return JSEvaluateScript ();
19128 ;
19129 return 0;
19130}
19131_ACEOF
19132for ac_lib in '' JavaScriptCore; do
19133 if test -z "$ac_lib"; then
19134 ac_res="none required"
19135 else
19136 ac_res=-l$ac_lib
19137 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19138 fi
19139 if ac_fn_cxx_try_link "$LINENO"; then :
19140 ac_cv_search_JSEvaluateScript=$ac_res
19141fi
19142rm -f core conftest.err conftest.$ac_objext \
19143 conftest$ac_exeext
19144 if ${ac_cv_search_JSEvaluateScript+:} false; then :
19145 break
19146fi
19147done
19148if ${ac_cv_search_JSEvaluateScript+:} false; then :
19149
19150else
19151 ac_cv_search_JSEvaluateScript=no
19152fi
19153rm conftest.$ac_ext
19154LIBS=$ac_func_search_save_LIBS
19155fi
19156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_JSEvaluateScript" >&5
19157$as_echo "$ac_cv_search_JSEvaluateScript" >&6; }
19158ac_res=$ac_cv_search_JSEvaluateScript
19159if test "$ac_res" != no; then :
19160 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19161
19162 CY_EXECUTE=1
19163
19164
19165else
7eda51e0 19166
babf7fe8
JF
19167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
19168$as_echo_n "checking for framework JavaScriptCore... " >&6; }
19169if ${ac_cv_framework_JavaScriptCore+:} false; then :
19170 $as_echo_n "(cached) " >&6
19171else
7eda51e0 19172
babf7fe8
JF
19173 ac_check_framework_save_LIBS=$LIBS
19174 LIBS="-framework JavaScriptCore $LIBS"
19175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19176/* end confdefs.h. */
7eda51e0 19177
babf7fe8 19178 #include <JavaScriptCore/JSBase.h>
7eda51e0 19179
babf7fe8
JF
19180int
19181main ()
19182{
7eda51e0 19183
babf7fe8 19184 JSEvaluateScript(0, 0, 0, 0, 0, 0);
7eda51e0 19185
babf7fe8
JF
19186 ;
19187 return 0;
19188}
19189_ACEOF
19190if ac_fn_cxx_try_link "$LINENO"; then :
7eda51e0 19191
babf7fe8 19192 ac_cv_framework_JavaScriptCore=yes
b66977f1 19193
b66977f1 19194else
babf7fe8
JF
19195 ac_cv_framework_JavaScriptCore=no
19196fi
19197rm -f core conftest.err conftest.$ac_objext \
19198 conftest$ac_exeext conftest.$ac_ext
19199 LIBS=$ac_check_framework_save_LIBS
7eda51e0 19200
babf7fe8
JF
19201fi
19202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
19203$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
19204 if test $ac_cv_framework_JavaScriptCore = yes; then :
7eda51e0 19205
7eda51e0 19206
babf7fe8
JF
19207 for element in "-framework JavaScriptCore"; do
19208 haveit=
19209 for x in $LIBS; do
19210
19211 acl_save_prefix="$prefix"
19212 prefix="$acl_final_prefix"
19213 acl_save_exec_prefix="$exec_prefix"
19214 exec_prefix="$acl_final_exec_prefix"
19215 eval x=\"$x\"
19216 exec_prefix="$acl_save_exec_prefix"
19217 prefix="$acl_save_prefix"
19218
19219 if test "X$x" = "X$element"; then
19220 haveit=yes
19221 break
19222 fi
19223 done
19224 if test -z "$haveit"; then
19225 LIBS="${LIBS}${LIBS:+ }$element"
19226 fi
19227 done
19228
19229
19230 CY_EXECUTE=1
19231
19232
19233
19234else
19235
19236 for cy_webkit_pkg in "webkit-1.0" "WebKitGtk"; do
19237
19238pkg_failed=no
19239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
19240$as_echo_n "checking for WEBKIT... " >&6; }
19241
19242if test -n "$WEBKIT_CFLAGS"; then
19243 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
19244 elif test -n "$PKG_CONFIG"; then
19245 if test -n "$PKG_CONFIG" && \
19246 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
19247 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
19248 ac_status=$?
19249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19250 test $ac_status = 0; }; then
19251 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "$cy_webkit_pkg" 2>/dev/null`
19252else
19253 pkg_failed=yes
19254fi
19255 else
19256 pkg_failed=untried
19257fi
19258if test -n "$WEBKIT_LIBS"; then
19259 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
19260 elif test -n "$PKG_CONFIG"; then
19261 if test -n "$PKG_CONFIG" && \
19262 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
19263 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
19264 ac_status=$?
19265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19266 test $ac_status = 0; }; then
19267 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "$cy_webkit_pkg" 2>/dev/null`
19268else
19269 pkg_failed=yes
19270fi
19271 else
19272 pkg_failed=untried
19273fi
19274
19275
19276
19277if test $pkg_failed = yes; then
19278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19279$as_echo "no" >&6; }
19280
19281if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19282 _pkg_short_errors_supported=yes
19283else
19284 _pkg_short_errors_supported=no
19285fi
19286 if test $_pkg_short_errors_supported = yes; then
00a96142 19287 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$cy_webkit_pkg" 2>&1`
babf7fe8 19288 else
00a96142 19289 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "$cy_webkit_pkg" 2>&1`
babf7fe8
JF
19290 fi
19291 # Put the nasty error message in config.log where it belongs
19292 echo "$WEBKIT_PKG_ERRORS" >&5
19293
19294 :
19295elif test $pkg_failed = untried; then
19296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19297$as_echo "no" >&6; }
19298 :
19299else
19300 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
19301 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
19302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19303$as_echo "yes" >&6; }
19304
19305 CY_EXECUTE=1
19306
19307
19308 for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do
19309 haveit=
19310 for x in $CPPFLAGS; do
19311
19312 acl_save_prefix="$prefix"
19313 prefix="$acl_final_prefix"
19314 acl_save_exec_prefix="$exec_prefix"
19315 exec_prefix="$acl_final_exec_prefix"
19316 eval x=\"$x\"
19317 exec_prefix="$acl_save_exec_prefix"
19318 prefix="$acl_save_prefix"
19319
19320 if test "X$x" = "X$element"; then
19321 haveit=yes
19322 break
19323 fi
19324 done
19325 if test -z "$haveit"; then
19326 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
19327 fi
19328 done
19329
19330
19331 for element in `$PKG_CONFIG --libs $cy_webkit_pkg`; do
19332 haveit=
19333 for x in $LIBS; do
19334
19335 acl_save_prefix="$prefix"
19336 prefix="$acl_final_prefix"
19337 acl_save_exec_prefix="$exec_prefix"
19338 exec_prefix="$acl_final_exec_prefix"
19339 eval x=\"$x\"
19340 exec_prefix="$acl_save_exec_prefix"
19341 prefix="$acl_save_prefix"
19342
19343 if test "X$x" = "X$element"; then
19344 haveit=yes
19345 break
19346 fi
19347 done
19348 if test -z "$haveit"; then
19349 LIBS="${LIBS}${LIBS:+ }$element"
19350 fi
19351 done
19352
19353
19354fi; if test "x$CY_EXECUTE" = x1; then break; fi
19355 done
19356
19357fi
9918a0fa
JF
19358fi
19359
babf7fe8
JF
19360 LTJAVASCRIPTCORE=$LIBS
19361 LIBS=$cy_save
19362
19363
19364
19365fi
19366
19367
a93f15c0
JF
19368# Check whether --enable-console was given.
19369if test "${enable_console+set}" = set; then :
19370 enableval=$enable_console;
19371fi
19372
19373 if test "x$enable_console" != "xno"; then
19374 CY_CONSOLE_TRUE=
19375 CY_CONSOLE_FALSE='#'
19376else
19377 CY_CONSOLE_TRUE='#'
19378 CY_CONSOLE_FALSE=
19379fi
19380
19381
7eda51e0
JF
19382
19383
19384 if test "x$CY_EXECUTE" = x1; then
19385 CY_EXECUTE_TRUE=
19386 CY_EXECUTE_FALSE='#'
b66977f1 19387else
7eda51e0
JF
19388 CY_EXECUTE_TRUE='#'
19389 CY_EXECUTE_FALSE=
b66977f1
DWT
19390fi
19391
19392
19393
7eda51e0
JF
19394case $CY_EXECUTE in #(
19395 1) :
19396
19397 for ac_header in ffi.h ffi/ffi.h
19398do :
19399 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19400ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19401if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19402 cat >>confdefs.h <<_ACEOF
19403#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19404_ACEOF
19405 break
b66977f1 19406fi
7eda51e0
JF
19407
19408done
19409
296ee9a6
JF
19410
19411
19412 cy_save=$LIBS
19413 LIBS=
7eda51e0 19414 if test "x$ac_cv_header_ffi_h" = xno && test "x$ac_cv_header_ffi_ffi_h" = xno; then :
b66977f1 19415
b66977f1 19416
296ee9a6
JF
19417 LIBFFI_CFLAGS
19418 C compiler flags for LIBFFI, overriding pkg-config
19419 LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config
b66977f1
DWT
19420
19421pkg_failed=no
7eda51e0
JF
19422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5
19423$as_echo_n "checking for LIBFFI... " >&6; }
b66977f1 19424
7eda51e0
JF
19425if test -n "$LIBFFI_CFLAGS"; then
19426 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS"
12833ad8
JF
19427 elif test -n "$PKG_CONFIG"; then
19428 if test -n "$PKG_CONFIG" && \
7eda51e0
JF
19429 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
19430 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
b66977f1
DWT
19431 ac_status=$?
19432 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19433 test $ac_status = 0; }; then
7eda51e0 19434 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null`
b66977f1
DWT
19435else
19436 pkg_failed=yes
19437fi
12833ad8
JF
19438 else
19439 pkg_failed=untried
b66977f1 19440fi
7eda51e0
JF
19441if test -n "$LIBFFI_LIBS"; then
19442 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS"
12833ad8
JF
19443 elif test -n "$PKG_CONFIG"; then
19444 if test -n "$PKG_CONFIG" && \
7eda51e0
JF
19445 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
19446 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
b66977f1
DWT
19447 ac_status=$?
19448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19449 test $ac_status = 0; }; then
7eda51e0 19450 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null`
b66977f1
DWT
19451else
19452 pkg_failed=yes
19453fi
12833ad8
JF
19454 else
19455 pkg_failed=untried
b66977f1
DWT
19456fi
19457
19458
19459
19460if test $pkg_failed = yes; then
12833ad8
JF
19461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19462$as_echo "no" >&6; }
b66977f1
DWT
19463
19464if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19465 _pkg_short_errors_supported=yes
19466else
19467 _pkg_short_errors_supported=no
19468fi
19469 if test $_pkg_short_errors_supported = yes; then
00a96142 19470 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libffi" 2>&1`
b66977f1 19471 else
00a96142 19472 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libffi" 2>&1`
b66977f1
DWT
19473 fi
19474 # Put the nasty error message in config.log where it belongs
7eda51e0 19475 echo "$LIBFFI_PKG_ERRORS" >&5
b66977f1 19476
7eda51e0
JF
19477 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
19478elif test $pkg_failed = untried; then
19479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19480$as_echo "no" >&6; }
19481 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
19482else
19483 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS
19484 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS
19485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19486$as_echo "yes" >&6; }
b66977f1
DWT
19487
19488
7eda51e0 19489 for element in `$PKG_CONFIG --cflags libffi`; do
b66977f1 19490 haveit=
d70419f1 19491 for x in $CPPFLAGS; do
b66977f1
DWT
19492
19493 acl_save_prefix="$prefix"
19494 prefix="$acl_final_prefix"
19495 acl_save_exec_prefix="$exec_prefix"
19496 exec_prefix="$acl_final_exec_prefix"
19497 eval x=\"$x\"
19498 exec_prefix="$acl_save_exec_prefix"
19499 prefix="$acl_save_prefix"
19500
19501 if test "X$x" = "X$element"; then
19502 haveit=yes
19503 break
19504 fi
19505 done
19506 if test -z "$haveit"; then
d70419f1 19507 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
b66977f1
DWT
19508 fi
19509 done
19510
19511
7eda51e0 19512 for element in `$PKG_CONFIG --libs libffi`; do
b66977f1
DWT
19513 haveit=
19514 for x in $LIBS; do
19515
19516 acl_save_prefix="$prefix"
19517 prefix="$acl_final_prefix"
19518 acl_save_exec_prefix="$exec_prefix"
19519 exec_prefix="$acl_final_exec_prefix"
19520 eval x=\"$x\"
19521 exec_prefix="$acl_save_exec_prefix"
19522 prefix="$acl_save_prefix"
19523
19524 if test "X$x" = "X$element"; then
19525 haveit=yes
19526 break
19527 fi
19528 done
19529 if test -z "$haveit"; then
19530 LIBS="${LIBS}${LIBS:+ }$element"
19531 fi
19532 done
19533
19534
19535fi
19536
7eda51e0
JF
19537else
19538
19539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ffi_call" >&5
19540$as_echo_n "checking for library containing ffi_call... " >&6; }
19541if ${ac_cv_search_ffi_call+:} false; then :
19542 $as_echo_n "(cached) " >&6
19543else
19544 ac_func_search_save_LIBS=$LIBS
19545cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19546/* end confdefs.h. */
19547
19548/* Override any GCC internal prototype to avoid an error.
19549 Use char because int might match the return type of a GCC
19550 builtin and then its argument prototype would still apply. */
19551#ifdef __cplusplus
19552extern "C"
19553#endif
19554char ffi_call ();
19555int
19556main ()
19557{
19558return ffi_call ();
19559 ;
19560 return 0;
19561}
19562_ACEOF
19563for ac_lib in '' ffi; do
19564 if test -z "$ac_lib"; then
19565 ac_res="none required"
19566 else
19567 ac_res=-l$ac_lib
19568 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19569 fi
19570 if ac_fn_cxx_try_link "$LINENO"; then :
19571 ac_cv_search_ffi_call=$ac_res
19572fi
19573rm -f core conftest.err conftest.$ac_objext \
19574 conftest$ac_exeext
19575 if ${ac_cv_search_ffi_call+:} false; then :
19576 break
19577fi
19578done
19579if ${ac_cv_search_ffi_call+:} false; then :
19580
19581else
19582 ac_cv_search_ffi_call=no
19583fi
19584rm conftest.$ac_ext
19585LIBS=$ac_func_search_save_LIBS
19586fi
19587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ffi_call" >&5
19588$as_echo "$ac_cv_search_ffi_call" >&6; }
19589ac_res=$ac_cv_search_ffi_call
19590if test "$ac_res" != no; then :
19591 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19592
19593fi
19594
19595 case $ac_cv_search_ffi_call in #(
19596 no) :
b66977f1
DWT
19597
19598
19599pkg_failed=no
7eda51e0
JF
19600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5
19601$as_echo_n "checking for LIBFFI... " >&6; }
b66977f1 19602
7eda51e0
JF
19603if test -n "$LIBFFI_CFLAGS"; then
19604 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS"
12833ad8
JF
19605 elif test -n "$PKG_CONFIG"; then
19606 if test -n "$PKG_CONFIG" && \
7eda51e0
JF
19607 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
19608 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
b66977f1
DWT
19609 ac_status=$?
19610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19611 test $ac_status = 0; }; then
7eda51e0 19612 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null`
b66977f1
DWT
19613else
19614 pkg_failed=yes
19615fi
12833ad8
JF
19616 else
19617 pkg_failed=untried
b66977f1 19618fi
7eda51e0
JF
19619if test -n "$LIBFFI_LIBS"; then
19620 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS"
12833ad8
JF
19621 elif test -n "$PKG_CONFIG"; then
19622 if test -n "$PKG_CONFIG" && \
7eda51e0
JF
19623 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
19624 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
b66977f1
DWT
19625 ac_status=$?
19626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19627 test $ac_status = 0; }; then
7eda51e0 19628 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null`
b66977f1
DWT
19629else
19630 pkg_failed=yes
19631fi
12833ad8
JF
19632 else
19633 pkg_failed=untried
b66977f1
DWT
19634fi
19635
19636
19637
19638if test $pkg_failed = yes; then
12833ad8
JF
19639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19640$as_echo "no" >&6; }
b66977f1
DWT
19641
19642if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19643 _pkg_short_errors_supported=yes
19644else
19645 _pkg_short_errors_supported=no
19646fi
19647 if test $_pkg_short_errors_supported = yes; then
00a96142 19648 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libffi" 2>&1`
b66977f1 19649 else
00a96142 19650 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libffi" 2>&1`
b66977f1
DWT
19651 fi
19652 # Put the nasty error message in config.log where it belongs
7eda51e0 19653 echo "$LIBFFI_PKG_ERRORS" >&5
b66977f1 19654
7eda51e0
JF
19655 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
19656elif test $pkg_failed = untried; then
19657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19658$as_echo "no" >&6; }
19659 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
b66977f1 19660else
7eda51e0
JF
19661 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS
19662 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS
19663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19664$as_echo "yes" >&6; }
b66977f1 19665
b66977f1 19666
7eda51e0 19667 for element in `$PKG_CONFIG --cflags libffi`; do
b66977f1 19668 haveit=
d70419f1 19669 for x in $CPPFLAGS; do
7eda51e0
JF
19670
19671 acl_save_prefix="$prefix"
19672 prefix="$acl_final_prefix"
19673 acl_save_exec_prefix="$exec_prefix"
19674 exec_prefix="$acl_final_exec_prefix"
19675 eval x=\"$x\"
19676 exec_prefix="$acl_save_exec_prefix"
19677 prefix="$acl_save_prefix"
19678
19679 if test "X$x" = "X$element"; then
19680 haveit=yes
19681 break
19682 fi
19683 done
19684 if test -z "$haveit"; then
d70419f1 19685 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7eda51e0
JF
19686 fi
19687 done
19688
19689
7eda51e0
JF
19690 for element in `$PKG_CONFIG --libs libffi`; do
19691 haveit=
19692 for x in $LIBS; do
19693
19694 acl_save_prefix="$prefix"
19695 prefix="$acl_final_prefix"
19696 acl_save_exec_prefix="$exec_prefix"
19697 exec_prefix="$acl_final_exec_prefix"
19698 eval x=\"$x\"
19699 exec_prefix="$acl_save_exec_prefix"
19700 prefix="$acl_save_prefix"
19701
19702 if test "X$x" = "X$element"; then
19703 haveit=yes
19704 break
19705 fi
19706 done
19707 if test -z "$haveit"; then
19708 LIBS="${LIBS}${LIBS:+ }$element"
19709 fi
19710 done
19711
19712
19713fi ;; #(
19714 *) :
19715 ;;
19716esac
19717
19718fi
296ee9a6
JF
19719 LTLIBFFI=$LIBS
19720 LIBS=$cy_save
19721
19722
7eda51e0 19723
39ed1631
JF
19724 ac_fn_cxx_check_header_mongrel "$LINENO" "jni.h" "ac_cv_header_jni_h" "$ac_includes_default"
19725if test "x$ac_cv_header_jni_h" = xyes; then :
19726
19727 CY_JAVA=1
19728
19729
19730 cy_save=$LIBS
19731 LIBS=
19732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing JNI_GetCreatedJavaVMs" >&5
19733$as_echo_n "checking for library containing JNI_GetCreatedJavaVMs... " >&6; }
19734if ${ac_cv_search_JNI_GetCreatedJavaVMs+:} false; then :
19735 $as_echo_n "(cached) " >&6
19736else
19737 ac_func_search_save_LIBS=$LIBS
19738cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19739/* end confdefs.h. */
19740
19741/* Override any GCC internal prototype to avoid an error.
19742 Use char because int might match the return type of a GCC
19743 builtin and then its argument prototype would still apply. */
19744#ifdef __cplusplus
19745extern "C"
19746#endif
19747char JNI_GetCreatedJavaVMs ();
19748int
19749main ()
19750{
19751return JNI_GetCreatedJavaVMs ();
19752 ;
19753 return 0;
19754}
19755_ACEOF
19756for ac_lib in '' dvm; do
19757 if test -z "$ac_lib"; then
19758 ac_res="none required"
19759 else
19760 ac_res=-l$ac_lib
19761 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19762 fi
19763 if ac_fn_cxx_try_link "$LINENO"; then :
19764 ac_cv_search_JNI_GetCreatedJavaVMs=$ac_res
19765fi
19766rm -f core conftest.err conftest.$ac_objext \
19767 conftest$ac_exeext
19768 if ${ac_cv_search_JNI_GetCreatedJavaVMs+:} false; then :
19769 break
19770fi
19771done
19772if ${ac_cv_search_JNI_GetCreatedJavaVMs+:} false; then :
19773
19774else
19775 ac_cv_search_JNI_GetCreatedJavaVMs=no
19776fi
19777rm conftest.$ac_ext
19778LIBS=$ac_func_search_save_LIBS
19779fi
19780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_JNI_GetCreatedJavaVMs" >&5
19781$as_echo "$ac_cv_search_JNI_GetCreatedJavaVMs" >&6; }
19782ac_res=$ac_cv_search_JNI_GetCreatedJavaVMs
19783if test "$ac_res" != no; then :
19784 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19785
19786
19787fi
19788
19789 LTJAVA=$LIBS
19790 LIBS=$cy_save
19791
19792
19793
19794else
19795
19796 CY_JAVA=0
19797
19798
19799fi
19800
19801
19802
7eda51e0
JF
19803 ac_ext=mm
19804ac_cpp='$OBJCXXCPP $CPPFLAGS'
19805ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19806ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19807ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
19808
19809
19810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we really have Objective C++" >&5
19811$as_echo_n "checking if we really have Objective C++... " >&6; }
19812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19813/* end confdefs.h. */
19814
19815_ACEOF
19816if ac_fn_objcxx_try_compile "$LINENO"; then :
19817
19818 CY_OBJECTIVEC=1
19819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19820$as_echo "yes" >&6; }
19821
19822else
19823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12833ad8 19824$as_echo "no" >&6; }
7eda51e0
JF
19825fi
19826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b66977f1 19827
7eda51e0 19828 if test "x$CY_OBJECTIVEC" = x1; then :
b66977f1 19829
7eda51e0 19830
babf7fe8
JF
19831 cy_save=$LIBS
19832 LIBS=
19833
7eda51e0
JF
19834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework CoreFoundation" >&5
19835$as_echo_n "checking for framework CoreFoundation... " >&6; }
19836if ${ac_cv_framework_CoreFoundation+:} false; then :
b66977f1
DWT
19837 $as_echo_n "(cached) " >&6
19838else
19839
19840 ac_check_framework_save_LIBS=$LIBS
7eda51e0 19841 LIBS="-framework CoreFoundation $LIBS"
b66977f1
DWT
19842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19843/* end confdefs.h. */
19844
7eda51e0 19845 #include <CoreFoundation/CFBase.h>
b66977f1
DWT
19846
19847int
19848main ()
19849{
7eda51e0 19850CFAllocatorGetDefault();
b66977f1
DWT
19851 ;
19852 return 0;
19853}
19854_ACEOF
7eda51e0 19855if ac_fn_objcxx_try_link "$LINENO"; then :
b66977f1 19856
7eda51e0 19857 ac_cv_framework_CoreFoundation=yes
b66977f1
DWT
19858
19859else
7eda51e0 19860 ac_cv_framework_CoreFoundation=no
b66977f1
DWT
19861fi
19862rm -f core conftest.err conftest.$ac_objext \
19863 conftest$ac_exeext conftest.$ac_ext
19864 LIBS=$ac_check_framework_save_LIBS
19865
19866fi
7eda51e0
JF
19867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_CoreFoundation" >&5
19868$as_echo "$ac_cv_framework_CoreFoundation" >&6; }
19869 if test $ac_cv_framework_CoreFoundation = yes; then :
b66977f1
DWT
19870
19871
7eda51e0 19872 for element in "-framework CoreFoundation"; do
b66977f1
DWT
19873 haveit=
19874 for x in $LIBS; do
19875
19876 acl_save_prefix="$prefix"
19877 prefix="$acl_final_prefix"
19878 acl_save_exec_prefix="$exec_prefix"
19879 exec_prefix="$acl_final_exec_prefix"
19880 eval x=\"$x\"
19881 exec_prefix="$acl_save_exec_prefix"
19882 prefix="$acl_save_prefix"
19883
19884 if test "X$x" = "X$element"; then
19885 haveit=yes
19886 break
19887 fi
19888 done
19889 if test -z "$haveit"; then
19890 LIBS="${LIBS}${LIBS:+ }$element"
19891 fi
19892 done
19893
66170b30 19894
66170b30
JF
19895
19896
b66977f1 19897
b66977f1 19898
7eda51e0
JF
19899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework Foundation" >&5
19900$as_echo_n "checking for framework Foundation... " >&6; }
19901if ${ac_cv_framework_Foundation+:} false; then :
19902 $as_echo_n "(cached) " >&6
b66977f1 19903else
b66977f1 19904
7eda51e0
JF
19905 ac_check_framework_save_LIBS=$LIBS
19906 LIBS="-framework Foundation $LIBS"
19907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19908/* end confdefs.h. */
66170b30 19909
7eda51e0 19910 #include <Foundation/NSObject.h>
b66977f1 19911
7eda51e0
JF
19912int
19913main ()
19914{
19915[[NSObject alloc] init];
19916 ;
19917 return 0;
19918}
19919_ACEOF
19920if ac_fn_objcxx_try_link "$LINENO"; then :
b66977f1 19921
7eda51e0 19922 ac_cv_framework_Foundation=yes
b66977f1 19923
7eda51e0
JF
19924else
19925 ac_cv_framework_Foundation=no
19926fi
19927rm -f core conftest.err conftest.$ac_objext \
19928 conftest$ac_exeext conftest.$ac_ext
19929 LIBS=$ac_check_framework_save_LIBS
19930
19931fi
19932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Foundation" >&5
19933$as_echo "$ac_cv_framework_Foundation" >&6; }
19934 if test $ac_cv_framework_Foundation = yes; then :
b66977f1
DWT
19935
19936
7eda51e0 19937 for element in "-framework Foundation"; do
b66977f1
DWT
19938 haveit=
19939 for x in $LIBS; do
19940
19941 acl_save_prefix="$prefix"
19942 prefix="$acl_final_prefix"
19943 acl_save_exec_prefix="$exec_prefix"
19944 exec_prefix="$acl_final_exec_prefix"
19945 eval x=\"$x\"
19946 exec_prefix="$acl_save_exec_prefix"
19947 prefix="$acl_save_prefix"
19948
19949 if test "X$x" = "X$element"; then
19950 haveit=yes
19951 break
19952 fi
19953 done
19954 if test -z "$haveit"; then
19955 LIBS="${LIBS}${LIBS:+ }$element"
19956 fi
19957 done
19958
7eda51e0
JF
19959 cat >>confdefs.h <<_ACEOF
19960#define HAVE_FRAMEWORK_FOUNDATION 1
19961_ACEOF
19962
b66977f1 19963
7eda51e0 19964fi
b66977f1
DWT
19965
19966
7eda51e0 19967else
b66977f1 19968
b66977f1 19969
7eda51e0
JF
19970 for ac_prog in gnustep-config
19971do
19972 # Extract the first word of "$ac_prog", so it can be a program name with args.
19973set dummy $ac_prog; ac_word=$2
19974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19975$as_echo_n "checking for $ac_word... " >&6; }
19976if ${ac_cv_prog_GNUSTEP_CONFIG+:} false; then :
19977 $as_echo_n "(cached) " >&6
b66977f1 19978else
7eda51e0
JF
19979 if test -n "$GNUSTEP_CONFIG"; then
19980 ac_cv_prog_GNUSTEP_CONFIG="$GNUSTEP_CONFIG" # Let the user override the test.
b66977f1 19981else
7eda51e0
JF
19982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19983for as_dir in $PATH
19984do
19985 IFS=$as_save_IFS
19986 test -z "$as_dir" && as_dir=.
19987 for ac_exec_ext in '' $ac_executable_extensions; do
19988 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19989 ac_cv_prog_GNUSTEP_CONFIG="$ac_prog"
19990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19991 break 2
19992 fi
19993done
19994 done
19995IFS=$as_save_IFS
b66977f1 19996
b66977f1 19997fi
b66977f1 19998fi
7eda51e0
JF
19999GNUSTEP_CONFIG=$ac_cv_prog_GNUSTEP_CONFIG
20000if test -n "$GNUSTEP_CONFIG"; then
20001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_CONFIG" >&5
20002$as_echo "$GNUSTEP_CONFIG" >&6; }
b66977f1 20003else
7eda51e0 20004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12833ad8 20005$as_echo "no" >&6; }
b66977f1 20006fi
66170b30 20007
66170b30 20008
7eda51e0
JF
20009 test -n "$GNUSTEP_CONFIG" && break
20010done
b66977f1 20011
b66977f1 20012
7eda51e0 20013 if test "x$GNUSTEP_CONFIG" != x; then :
b66977f1 20014
b66977f1
DWT
20015
20016
7eda51e0 20017 for element in `$GNUSTEP_CONFIG --objc-flags`; do
b66977f1 20018 haveit=
7eda51e0 20019 for x in $OBJCXXFLAGS; do
b66977f1
DWT
20020
20021 acl_save_prefix="$prefix"
20022 prefix="$acl_final_prefix"
20023 acl_save_exec_prefix="$exec_prefix"
20024 exec_prefix="$acl_final_exec_prefix"
20025 eval x=\"$x\"
20026 exec_prefix="$acl_save_exec_prefix"
20027 prefix="$acl_save_prefix"
20028
20029 if test "X$x" = "X$element"; then
20030 haveit=yes
20031 break
20032 fi
20033 done
babf7fe8
JF
20034 if test -z "$haveit"; then
20035 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
20036 fi
20037 done
a667869d 20038
a667869d 20039
babf7fe8 20040 for element in `$GNUSTEP_CONFIG --base-libs`; do
632b71ea 20041 haveit=
babf7fe8 20042 for x in $LIBS; do
a667869d 20043
632b71ea
DWT
20044 acl_save_prefix="$prefix"
20045 prefix="$acl_final_prefix"
20046 acl_save_exec_prefix="$exec_prefix"
20047 exec_prefix="$acl_final_exec_prefix"
20048 eval x=\"$x\"
20049 exec_prefix="$acl_save_exec_prefix"
20050 prefix="$acl_save_prefix"
20051
20052 if test "X$x" = "X$element"; then
20053 haveit=yes
20054 break
20055 fi
20056 done
20057 if test -z "$haveit"; then
babf7fe8 20058 LIBS="${LIBS}${LIBS:+ }$element"
632b71ea
DWT
20059 fi
20060 done
20061
5053a6d1 20062
babf7fe8
JF
20063else
20064 CY_OBJECTIVEC=0
20065
20066fi
20067
20068fi
20069 LTOBJECTIVEC=$LIBS
20070 LIBS=$cy_save
20071
20072
20073
20074fi
20075
20076 ac_ext=cpp
20077ac_cpp='$CXXCPP $CPPFLAGS'
20078ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20079ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20080ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20081
20082 ;; #(
20083 *) :
20084 ;;
20085esac
20086
39ed1631
JF
20087 if test "x$CY_JAVA" = x1; then
20088 CY_JAVA_TRUE=
20089 CY_JAVA_FALSE='#'
20090else
20091 CY_JAVA_TRUE='#'
20092 CY_JAVA_FALSE=
20093fi
20094
babf7fe8
JF
20095 if test "x$CY_OBJECTIVEC" = x1; then
20096 CY_OBJECTIVEC_TRUE=
20097 CY_OBJECTIVEC_FALSE='#'
20098else
20099 CY_OBJECTIVEC_TRUE='#'
20100 CY_OBJECTIVEC_FALSE=
20101fi
20102
20103
20104
20105 cy_save=$LIBS
20106 LIBS=
20107
20108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
20109$as_echo_n "checking for a readline compatible library... " >&6; }
20110if ${ax_cv_lib_readline+:} false; then :
5053a6d1 20111 $as_echo_n "(cached) " >&6
a667869d 20112else
632b71ea 20113
babf7fe8
JF
20114 ORIG_LIBS="$LIBS"
20115 for readline_lib in readline edit editline; do
20116 for termcap_lib in "" termcap curses ncurses; do
20117 if test -z "$termcap_lib"; then
20118 TRY_LIB="-l$readline_lib"
20119 else
20120 TRY_LIB="-l$readline_lib -l$termcap_lib"
20121 fi
20122 LIBS="$ORIG_LIBS $TRY_LIB"
20123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5053a6d1 20124/* end confdefs.h. */
632b71ea 20125
babf7fe8
JF
20126/* Override any GCC internal prototype to avoid an error.
20127 Use char because int might match the return type of a GCC
20128 builtin and then its argument prototype would still apply. */
20129#ifdef __cplusplus
20130extern "C"
20131#endif
20132char readline ();
5053a6d1
DWT
20133int
20134main ()
20135{
babf7fe8 20136return readline ();
5053a6d1
DWT
20137 ;
20138 return 0;
20139}
20140_ACEOF
babf7fe8
JF
20141if ac_fn_cxx_try_link "$LINENO"; then :
20142 ax_cv_lib_readline="$TRY_LIB"
5053a6d1
DWT
20143fi
20144rm -f core conftest.err conftest.$ac_objext \
20145 conftest$ac_exeext conftest.$ac_ext
babf7fe8
JF
20146 if test -n "$ax_cv_lib_readline"; then
20147 break
20148 fi
20149 done
20150 if test -n "$ax_cv_lib_readline"; then
20151 break
20152 fi
20153 done
20154 if test -z "$ax_cv_lib_readline"; then
20155 ax_cv_lib_readline="no"
20156 fi
20157 LIBS="$ORIG_LIBS"
20158
20159fi
20160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lib_readline" >&5
20161$as_echo "$ax_cv_lib_readline" >&6; }
20162
20163 if test "$ax_cv_lib_readline" != "no"; then
20164 LIBS="$LIBS $ax_cv_lib_readline"
20165
20166$as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
20167
20168 for ac_header in readline.h readline/readline.h
20169do :
20170 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20171ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20172if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20173 cat >>confdefs.h <<_ACEOF
20174#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20175_ACEOF
20176
20177fi
20178
20179done
20180
20181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
20182$as_echo_n "checking whether readline supports history... " >&6; }
20183if ${ax_cv_lib_readline_history+:} false; then :
20184 $as_echo_n "(cached) " >&6
20185else
20186
20187 ax_cv_lib_readline_history="no"
7eda51e0
JF
20188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20189/* end confdefs.h. */
5053a6d1 20190
babf7fe8
JF
20191/* Override any GCC internal prototype to avoid an error.
20192 Use char because int might match the return type of a GCC
20193 builtin and then its argument prototype would still apply. */
20194#ifdef __cplusplus
20195extern "C"
20196#endif
20197char add_history ();
058f1bc8
DWT
20198int
20199main ()
20200{
babf7fe8 20201return add_history ();
058f1bc8
DWT
20202 ;
20203 return 0;
20204}
20205_ACEOF
babf7fe8
JF
20206if ac_fn_cxx_try_link "$LINENO"; then :
20207 ax_cv_lib_readline_history="yes"
058f1bc8
DWT
20208fi
20209rm -f core conftest.err conftest.$ac_objext \
20210 conftest$ac_exeext conftest.$ac_ext
a667869d 20211
a667869d 20212fi
babf7fe8
JF
20213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lib_readline_history" >&5
20214$as_echo "$ax_cv_lib_readline_history" >&6; }
20215 if test "$ax_cv_lib_readline_history" = "yes"; then
058f1bc8 20216
babf7fe8 20217$as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
058f1bc8 20218
babf7fe8
JF
20219 for ac_header in history.h readline/history.h
20220do :
20221 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20222ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20223if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20224 cat >>confdefs.h <<_ACEOF
20225#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7eda51e0 20226_ACEOF
babf7fe8 20227
7eda51e0 20228fi
058f1bc8 20229
babf7fe8 20230done
058f1bc8 20231
babf7fe8 20232 fi
7eda51e0 20233 fi
058f1bc8 20234
babf7fe8
JF
20235 LTLIBREADLINE=$LIBS
20236 LIBS=$cy_save
058f1bc8 20237
058f1bc8 20238
babf7fe8
JF
20239case $ax_cv_lib_readline in #(
20240 no) :
20241 as_fn_error $? "missing \"libreadline\"" "$LINENO" 5 ;; #(
20242 *) :
20243 ;;
20244esac
058f1bc8
DWT
20245
20246
babf7fe8
JF
20247 cy_save=$LIBS
20248 LIBS=
20249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cur_term" >&5
20250$as_echo_n "checking for library containing cur_term... " >&6; }
20251if ${ac_cv_search_cur_term+:} false; then :
7eda51e0
JF
20252 $as_echo_n "(cached) " >&6
20253else
babf7fe8
JF
20254 ac_func_search_save_LIBS=$LIBS
20255cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7eda51e0
JF
20256/* end confdefs.h. */
20257
babf7fe8
JF
20258/* Override any GCC internal prototype to avoid an error.
20259 Use char because int might match the return type of a GCC
20260 builtin and then its argument prototype would still apply. */
7eda51e0 20261#ifdef __cplusplus
babf7fe8 20262extern "C"
7eda51e0 20263#endif
babf7fe8 20264char cur_term ();
7eda51e0
JF
20265int
20266main ()
20267{
babf7fe8 20268return cur_term ();
7eda51e0
JF
20269 ;
20270 return 0;
20271}
20272_ACEOF
a93f15c0 20273for ac_lib in '' termcap ncurses; do
babf7fe8
JF
20274 if test -z "$ac_lib"; then
20275 ac_res="none required"
20276 else
20277 ac_res=-l$ac_lib
20278 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20279 fi
20280 if ac_fn_cxx_try_link "$LINENO"; then :
20281 ac_cv_search_cur_term=$ac_res
7eda51e0 20282fi
babf7fe8
JF
20283rm -f core conftest.err conftest.$ac_objext \
20284 conftest$ac_exeext
20285 if ${ac_cv_search_cur_term+:} false; then :
20286 break
7eda51e0 20287fi
babf7fe8
JF
20288done
20289if ${ac_cv_search_cur_term+:} false; then :
058f1bc8 20290
babf7fe8
JF
20291else
20292 ac_cv_search_cur_term=no
20293fi
20294rm conftest.$ac_ext
20295LIBS=$ac_func_search_save_LIBS
20296fi
20297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cur_term" >&5
20298$as_echo "$ac_cv_search_cur_term" >&6; }
20299ac_res=$ac_cv_search_cur_term
20300if test "$ac_res" != no; then :
20301 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
058f1bc8 20302
babf7fe8 20303fi
058f1bc8 20304
babf7fe8
JF
20305 LTLIBTERMCAP=$LIBS
20306 LIBS=$cy_save
058f1bc8 20307
058f1bc8 20308
66170b30
JF
20309
20310
3615a2f7
JF
20311
20312
9777bd50
JF
20313SO=$acl_shlibext
20314
e1cce270 20315
7eda51e0
JF
20316if test "x$CY_EXECUTE" = x1; then :
20317
20318 ac_fn_cxx_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
ee134472 20319if test "x$ac_cv_header_mach_mach_h" = xyes; then :
e1cce270 20320
7eda51e0 20321 if test -n "$ac_tool_prefix"; then
a243b558 20322 for ac_prog in lipo
794e88e7
DWT
20323 do
20324 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20325set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20327$as_echo_n "checking for $ac_word... " >&6; }
a243b558 20328if ${ac_cv_prog__LIPO+:} false; then :
794e88e7
DWT
20329 $as_echo_n "(cached) " >&6
20330else
a243b558
JF
20331 if test -n "$_LIPO"; then
20332 ac_cv_prog__LIPO="$_LIPO" # Let the user override the test.
794e88e7
DWT
20333else
20334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20335for as_dir in $PATH
20336do
20337 IFS=$as_save_IFS
20338 test -z "$as_dir" && as_dir=.
20339 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 20340 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 20341 ac_cv_prog__LIPO="$ac_tool_prefix$ac_prog"
794e88e7
DWT
20342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20343 break 2
20344 fi
20345done
20346 done
20347IFS=$as_save_IFS
20348
20349fi
20350fi
a243b558
JF
20351_LIPO=$ac_cv_prog__LIPO
20352if test -n "$_LIPO"; then
20353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_LIPO" >&5
20354$as_echo "$_LIPO" >&6; }
794e88e7
DWT
20355else
20356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20357$as_echo "no" >&6; }
20358fi
20359
20360
a243b558 20361 test -n "$_LIPO" && break
794e88e7
DWT
20362 done
20363fi
a243b558
JF
20364if test -z "$_LIPO"; then
20365 ac_ct__LIPO=$_LIPO
20366 for ac_prog in lipo
794e88e7
DWT
20367do
20368 # Extract the first word of "$ac_prog", so it can be a program name with args.
20369set dummy $ac_prog; ac_word=$2
20370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20371$as_echo_n "checking for $ac_word... " >&6; }
a243b558 20372if ${ac_cv_prog_ac_ct__LIPO+:} false; then :
794e88e7
DWT
20373 $as_echo_n "(cached) " >&6
20374else
a243b558
JF
20375 if test -n "$ac_ct__LIPO"; then
20376 ac_cv_prog_ac_ct__LIPO="$ac_ct__LIPO" # Let the user override the test.
794e88e7
DWT
20377else
20378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20379for as_dir in $PATH
20380do
20381 IFS=$as_save_IFS
20382 test -z "$as_dir" && as_dir=.
20383 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 20384 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 20385 ac_cv_prog_ac_ct__LIPO="$ac_prog"
794e88e7
DWT
20386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20387 break 2
20388 fi
20389done
20390 done
20391IFS=$as_save_IFS
20392
20393fi
20394fi
a243b558
JF
20395ac_ct__LIPO=$ac_cv_prog_ac_ct__LIPO
20396if test -n "$ac_ct__LIPO"; then
20397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct__LIPO" >&5
20398$as_echo "$ac_ct__LIPO" >&6; }
794e88e7
DWT
20399else
20400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20401$as_echo "no" >&6; }
20402fi
20403
20404
a243b558 20405 test -n "$ac_ct__LIPO" && break
794e88e7
DWT
20406done
20407
a243b558
JF
20408 if test "x$ac_ct__LIPO" = x; then
20409 _LIPO="as_fn_error $? "missing \"lipo\"" "$LINENO" 5"
794e88e7
DWT
20410 else
20411 case $cross_compiling:$ac_tool_warned in
20412yes:)
20413{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20414$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20415ac_tool_warned=yes ;;
e1cce270 20416esac
a243b558 20417 _LIPO=$ac_ct__LIPO
794e88e7
DWT
20418 fi
20419fi
20420
7eda51e0 20421 if test -n "$ac_tool_prefix"; then
a243b558 20422 for ac_prog in nm
794e88e7
DWT
20423 do
20424 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20425set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20427$as_echo_n "checking for $ac_word... " >&6; }
a243b558 20428if ${ac_cv_prog__NM+:} false; then :
794e88e7
DWT
20429 $as_echo_n "(cached) " >&6
20430else
a243b558
JF
20431 if test -n "$_NM"; then
20432 ac_cv_prog__NM="$_NM" # Let the user override the test.
794e88e7
DWT
20433else
20434as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20435for as_dir in $PATH
20436do
20437 IFS=$as_save_IFS
20438 test -z "$as_dir" && as_dir=.
20439 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 20440 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 20441 ac_cv_prog__NM="$ac_tool_prefix$ac_prog"
794e88e7
DWT
20442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20443 break 2
20444 fi
20445done
20446 done
20447IFS=$as_save_IFS
20448
20449fi
20450fi
a243b558
JF
20451_NM=$ac_cv_prog__NM
20452if test -n "$_NM"; then
20453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_NM" >&5
20454$as_echo "$_NM" >&6; }
794e88e7
DWT
20455else
20456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20457$as_echo "no" >&6; }
20458fi
20459
20460
a243b558 20461 test -n "$_NM" && break
794e88e7
DWT
20462 done
20463fi
a243b558
JF
20464if test -z "$_NM"; then
20465 ac_ct__NM=$_NM
20466 for ac_prog in nm
794e88e7
DWT
20467do
20468 # Extract the first word of "$ac_prog", so it can be a program name with args.
20469set dummy $ac_prog; ac_word=$2
20470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20471$as_echo_n "checking for $ac_word... " >&6; }
a243b558 20472if ${ac_cv_prog_ac_ct__NM+:} false; then :
794e88e7
DWT
20473 $as_echo_n "(cached) " >&6
20474else
a243b558
JF
20475 if test -n "$ac_ct__NM"; then
20476 ac_cv_prog_ac_ct__NM="$ac_ct__NM" # Let the user override the test.
794e88e7
DWT
20477else
20478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20479for as_dir in $PATH
20480do
20481 IFS=$as_save_IFS
20482 test -z "$as_dir" && as_dir=.
20483 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 20484 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 20485 ac_cv_prog_ac_ct__NM="$ac_prog"
794e88e7
DWT
20486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20487 break 2
20488 fi
20489done
20490 done
20491IFS=$as_save_IFS
20492
20493fi
20494fi
a243b558
JF
20495ac_ct__NM=$ac_cv_prog_ac_ct__NM
20496if test -n "$ac_ct__NM"; then
20497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct__NM" >&5
20498$as_echo "$ac_ct__NM" >&6; }
794e88e7
DWT
20499else
20500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20501$as_echo "no" >&6; }
20502fi
20503
20504
a243b558 20505 test -n "$ac_ct__NM" && break
794e88e7
DWT
20506done
20507
a243b558
JF
20508 if test "x$ac_ct__NM" = x; then
20509 _NM="as_fn_error $? "missing \"nm\"" "$LINENO" 5"
794e88e7
DWT
20510 else
20511 case $cross_compiling:$ac_tool_warned in
20512yes:)
20513{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20514$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20515ac_tool_warned=yes ;;
20516esac
a243b558 20517 _NM=$ac_ct__NM
794e88e7
DWT
20518 fi
20519fi
20520
7eda51e0 20521 if test -n "$ac_tool_prefix"; then
a243b558 20522 for ac_prog in otool
794e88e7
DWT
20523 do
20524 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20525set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20527$as_echo_n "checking for $ac_word... " >&6; }
a243b558 20528if ${ac_cv_prog__OTOOL+:} false; then :
794e88e7
DWT
20529 $as_echo_n "(cached) " >&6
20530else
a243b558
JF
20531 if test -n "$_OTOOL"; then
20532 ac_cv_prog__OTOOL="$_OTOOL" # Let the user override the test.
794e88e7
DWT
20533else
20534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20535for as_dir in $PATH
20536do
20537 IFS=$as_save_IFS
20538 test -z "$as_dir" && as_dir=.
20539 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 20540 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 20541 ac_cv_prog__OTOOL="$ac_tool_prefix$ac_prog"
794e88e7
DWT
20542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20543 break 2
20544 fi
20545done
20546 done
20547IFS=$as_save_IFS
20548
20549fi
20550fi
a243b558
JF
20551_OTOOL=$ac_cv_prog__OTOOL
20552if test -n "$_OTOOL"; then
20553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_OTOOL" >&5
20554$as_echo "$_OTOOL" >&6; }
794e88e7
DWT
20555else
20556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20557$as_echo "no" >&6; }
20558fi
20559
20560
a243b558 20561 test -n "$_OTOOL" && break
794e88e7
DWT
20562 done
20563fi
a243b558
JF
20564if test -z "$_OTOOL"; then
20565 ac_ct__OTOOL=$_OTOOL
20566 for ac_prog in otool
794e88e7
DWT
20567do
20568 # Extract the first word of "$ac_prog", so it can be a program name with args.
20569set dummy $ac_prog; ac_word=$2
20570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20571$as_echo_n "checking for $ac_word... " >&6; }
a243b558 20572if ${ac_cv_prog_ac_ct__OTOOL+:} false; then :
794e88e7
DWT
20573 $as_echo_n "(cached) " >&6
20574else
a243b558
JF
20575 if test -n "$ac_ct__OTOOL"; then
20576 ac_cv_prog_ac_ct__OTOOL="$ac_ct__OTOOL" # Let the user override the test.
794e88e7
DWT
20577else
20578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20579for as_dir in $PATH
20580do
20581 IFS=$as_save_IFS
20582 test -z "$as_dir" && as_dir=.
20583 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 20584 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 20585 ac_cv_prog_ac_ct__OTOOL="$ac_prog"
794e88e7
DWT
20586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20587 break 2
20588 fi
20589done
20590 done
20591IFS=$as_save_IFS
20592
20593fi
20594fi
a243b558
JF
20595ac_ct__OTOOL=$ac_cv_prog_ac_ct__OTOOL
20596if test -n "$ac_ct__OTOOL"; then
20597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct__OTOOL" >&5
20598$as_echo "$ac_ct__OTOOL" >&6; }
794e88e7
DWT
20599else
20600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20601$as_echo "no" >&6; }
20602fi
20603
20604
a243b558 20605 test -n "$ac_ct__OTOOL" && break
794e88e7
DWT
20606done
20607
a243b558
JF
20608 if test "x$ac_ct__OTOOL" = x; then
20609 _OTOOL="as_fn_error $? "missing \"otool\"" "$LINENO" 5"
794e88e7
DWT
20610 else
20611 case $cross_compiling:$ac_tool_warned in
20612yes:)
20613{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20614$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20615ac_tool_warned=yes ;;
20616esac
a243b558 20617 _OTOOL=$ac_ct__OTOOL
794e88e7
DWT
20618 fi
20619fi
20620
7eda51e0 20621 CY_ATTACH_GROUP=procmod
794e88e7 20622
7eda51e0 20623 CY_MACH=1
e1cce270
DWT
20624
20625fi
20626
20627
7eda51e0 20628fi
a243b558
JF
20629 if test "x$CY_MACH" = x1; then
20630 CY_MACH_TRUE=
20631 CY_MACH_FALSE='#'
20632else
20633 CY_MACH_TRUE='#'
20634 CY_MACH_FALSE=
47aaa820 20635fi
9c60689e 20636
66170b30 20637
a243b558
JF
20638ac_config_files="$ac_config_files Makefile"
20639
9c60689e
DWT
20640cat >confcache <<\_ACEOF
20641# This file is a shell script that caches the results of configure
20642# tests run on this system so they can be shared between configure
20643# scripts and configure runs, see configure's option --config-cache.
20644# It is not useful on other systems. If it contains results you don't
20645# want to keep, you may remove or edit it.
20646#
20647# config.status only pays attention to the cache file if you give it
20648# the --recheck option to rerun configure.
20649#
20650# `ac_cv_env_foo' variables (set or unset) will be overridden when
20651# loading this file, other *unset* `ac_cv_foo' will be assigned the
20652# following values.
20653
20654_ACEOF
20655
20656# The following way of writing the cache mishandles newlines in values,
20657# but we know of no workaround that is simple, portable, and efficient.
20658# So, we kill variables containing newlines.
20659# Ultrix sh set writes to stderr and can't be redirected directly,
20660# and sets the high bit in the cache file unless we assign to the vars.
20661(
20662 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20663 eval ac_val=\$$ac_var
20664 case $ac_val in #(
20665 *${as_nl}*)
20666 case $ac_var in #(
20667 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20668$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20669 esac
20670 case $ac_var in #(
20671 _ | IFS | as_nl) ;; #(
20672 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20673 *) { eval $ac_var=; unset $ac_var;} ;;
20674 esac ;;
20675 esac
20676 done
20677
20678 (set) 2>&1 |
20679 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20680 *${as_nl}ac_space=\ *)
20681 # `set' does not quote correctly, so add quotes: double-quote
20682 # substitution turns \\\\ into \\, and sed turns \\ into \.
20683 sed -n \
20684 "s/'/'\\\\''/g;
20685 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20686 ;; #(
20687 *)
20688 # `set' quotes correctly as required by POSIX, so do not add quotes.
20689 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20690 ;;
20691 esac |
20692 sort
20693) |
20694 sed '
20695 /^ac_cv_env_/b end
20696 t clear
20697 :clear
20698 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20699 t end
20700 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20701 :end' >>confcache
20702if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20703 if test -w "$cache_file"; then
ee134472 20704 if test "x$cache_file" != "x/dev/null"; then
9c60689e
DWT
20705 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20706$as_echo "$as_me: updating cache $cache_file" >&6;}
ee134472
JF
20707 if test ! -f "$cache_file" || test -h "$cache_file"; then
20708 cat confcache >"$cache_file"
20709 else
20710 case $cache_file in #(
20711 */* | ?:*)
20712 mv -f confcache "$cache_file"$$ &&
20713 mv -f "$cache_file"$$ "$cache_file" ;; #(
20714 *)
20715 mv -f confcache "$cache_file" ;;
20716 esac
20717 fi
20718 fi
9c60689e
DWT
20719 else
20720 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20721$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20722 fi
20723fi
20724rm -f confcache
20725
20726test "x$prefix" = xNONE && prefix=$ac_default_prefix
20727# Let make expand exec_prefix.
20728test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20729
296ee9a6 20730DEFS=-DHAVE_CONFIG_H
9c60689e
DWT
20731
20732ac_libobjs=
20733ac_ltlibobjs=
12833ad8 20734U=
9c60689e
DWT
20735for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20736 # 1. Remove the extension, and $U if already installed.
20737 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20738 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20739 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20740 # will be set to the directory where LIBOBJS objects are built.
20741 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20742 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20743done
20744LIBOBJS=$ac_libobjs
20745
20746LTLIBOBJS=$ac_ltlibobjs
20747
20748
66170b30
JF
20749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
20750$as_echo_n "checking that generated files are newer than configure... " >&6; }
20751 if test -n "$am_sleep_pid"; then
20752 # Hide warnings about reused PIDs.
20753 wait $am_sleep_pid 2>/dev/null
20754 fi
20755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
20756$as_echo "done" >&6; }
20757 if test -n "$EXEEXT"; then
20758 am__EXEEXT_TRUE=
20759 am__EXEEXT_FALSE='#'
20760else
20761 am__EXEEXT_TRUE='#'
20762 am__EXEEXT_FALSE=
20763fi
20764
babf7fe8
JF
20765if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20766 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
20767Usually this means the macro was only invoked conditionally." "$LINENO" 5
20768fi
66170b30
JF
20769if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20770 as_fn_error $? "conditional \"AMDEP\" was never defined.
20771Usually this means the macro was only invoked conditionally." "$LINENO" 5
20772fi
a93f15c0
JF
20773if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20774 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20775Usually this means the macro was only invoked conditionally." "$LINENO" 5
20776fi
66170b30
JF
20777if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20778 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
20779Usually this means the macro was only invoked conditionally." "$LINENO" 5
20780fi
20781if test -z "${am__fastdepOBJCXX_TRUE}" && test -z "${am__fastdepOBJCXX_FALSE}"; then
20782 as_fn_error $? "conditional \"am__fastdepOBJCXX\" was never defined.
20783Usually this means the macro was only invoked conditionally." "$LINENO" 5
20784fi
a93f15c0
JF
20785if test -z "${CY_CONSOLE_TRUE}" && test -z "${CY_CONSOLE_FALSE}"; then
20786 as_fn_error $? "conditional \"CY_CONSOLE\" was never defined.
babf7fe8
JF
20787Usually this means the macro was only invoked conditionally." "$LINENO" 5
20788fi
a243b558
JF
20789if test -z "${CY_EXECUTE_TRUE}" && test -z "${CY_EXECUTE_FALSE}"; then
20790 as_fn_error $? "conditional \"CY_EXECUTE\" was never defined.
20791Usually this means the macro was only invoked conditionally." "$LINENO" 5
20792fi
39ed1631
JF
20793if test -z "${CY_JAVA_TRUE}" && test -z "${CY_JAVA_FALSE}"; then
20794 as_fn_error $? "conditional \"CY_JAVA\" was never defined.
20795Usually this means the macro was only invoked conditionally." "$LINENO" 5
20796fi
a243b558
JF
20797if test -z "${CY_OBJECTIVEC_TRUE}" && test -z "${CY_OBJECTIVEC_FALSE}"; then
20798 as_fn_error $? "conditional \"CY_OBJECTIVEC\" was never defined.
20799Usually this means the macro was only invoked conditionally." "$LINENO" 5
20800fi
20801if test -z "${CY_MACH_TRUE}" && test -z "${CY_MACH_FALSE}"; then
20802 as_fn_error $? "conditional \"CY_MACH\" was never defined.
20803Usually this means the macro was only invoked conditionally." "$LINENO" 5
20804fi
9c60689e 20805
ee134472 20806: "${CONFIG_STATUS=./config.status}"
9c60689e
DWT
20807ac_write_fail=0
20808ac_clean_files_save=$ac_clean_files
20809ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20810{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20811$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20812as_write_fail=0
20813cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20814#! $SHELL
20815# Generated by $as_me.
20816# Run this file to recreate the current configuration.
20817# Compiler output produced by configure, useful for debugging
20818# configure, is in config.log if it exists.
20819
20820debug=false
20821ac_cs_recheck=false
20822ac_cs_silent=false
20823
20824SHELL=\${CONFIG_SHELL-$SHELL}
20825export SHELL
20826_ASEOF
20827cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20828## -------------------- ##
20829## M4sh Initialization. ##
20830## -------------------- ##
20831
20832# Be more Bourne compatible
20833DUALCASE=1; export DUALCASE # for MKS sh
20834if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20835 emulate sh
20836 NULLCMD=:
20837 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20838 # is contrary to our usage. Disable this feature.
20839 alias -g '${1+"$@"}'='"$@"'
20840 setopt NO_GLOB_SUBST
20841else
20842 case `(set -o) 2>/dev/null` in #(
20843 *posix*) :
20844 set -o posix ;; #(
20845 *) :
20846 ;;
20847esac
20848fi
20849
20850
20851as_nl='
20852'
20853export as_nl
20854# Printing a long string crashes Solaris 7 /usr/bin/printf.
20855as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20856as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20857as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20858# Prefer a ksh shell builtin over an external printf program on Solaris,
20859# but without wasting forks for bash or zsh.
20860if test -z "$BASH_VERSION$ZSH_VERSION" \
20861 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20862 as_echo='print -r --'
20863 as_echo_n='print -rn --'
20864elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20865 as_echo='printf %s\n'
20866 as_echo_n='printf %s'
20867else
20868 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20869 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20870 as_echo_n='/usr/ucb/echo -n'
20871 else
20872 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20873 as_echo_n_body='eval
20874 arg=$1;
20875 case $arg in #(
20876 *"$as_nl"*)
20877 expr "X$arg" : "X\\(.*\\)$as_nl";
20878 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20879 esac;
20880 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20881 '
20882 export as_echo_n_body
20883 as_echo_n='sh -c $as_echo_n_body as_echo'
20884 fi
20885 export as_echo_body
20886 as_echo='sh -c $as_echo_body as_echo'
20887fi
20888
20889# The user is always right.
20890if test "${PATH_SEPARATOR+set}" != set; then
20891 PATH_SEPARATOR=:
20892 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20893 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20894 PATH_SEPARATOR=';'
20895 }
20896fi
20897
20898
20899# IFS
20900# We need space, tab and new line, in precisely that order. Quoting is
20901# there to prevent editors from complaining about space-tab.
20902# (If _AS_PATH_WALK were called with IFS unset, it would disable word
20903# splitting by setting IFS to empty value.)
20904IFS=" "" $as_nl"
20905
20906# Find who we are. Look in the path if we contain no directory separator.
ee134472 20907as_myself=
9c60689e
DWT
20908case $0 in #((
20909 *[\\/]* ) as_myself=$0 ;;
20910 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20911for as_dir in $PATH
20912do
20913 IFS=$as_save_IFS
20914 test -z "$as_dir" && as_dir=.
20915 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20916 done
20917IFS=$as_save_IFS
20918
20919 ;;
20920esac
20921# We did not find ourselves, most probably we were run as `sh COMMAND'
20922# in which case we are not to be found in the path.
20923if test "x$as_myself" = x; then
20924 as_myself=$0
20925fi
20926if test ! -f "$as_myself"; then
20927 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20928 exit 1
20929fi
20930
20931# Unset variables that we do not need and which cause bugs (e.g. in
20932# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
20933# suppresses any "Segmentation fault" message there. '((' could
20934# trigger a bug in pdksh 5.2.14.
20935for as_var in BASH_ENV ENV MAIL MAILPATH
20936do eval test x\${$as_var+set} = xset \
20937 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20938done
20939PS1='$ '
20940PS2='> '
20941PS4='+ '
20942
20943# NLS nuisances.
20944LC_ALL=C
20945export LC_ALL
20946LANGUAGE=C
20947export LANGUAGE
20948
20949# CDPATH.
20950(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20951
20952
12833ad8
JF
20953# as_fn_error STATUS ERROR [LINENO LOG_FD]
20954# ----------------------------------------
9c60689e
DWT
20955# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20956# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12833ad8 20957# script with STATUS, using 1 if that was 0.
9c60689e
DWT
20958as_fn_error ()
20959{
12833ad8
JF
20960 as_status=$1; test $as_status -eq 0 && as_status=1
20961 if test "$4"; then
20962 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20963 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
9c60689e 20964 fi
12833ad8 20965 $as_echo "$as_me: error: $2" >&2
9c60689e
DWT
20966 as_fn_exit $as_status
20967} # as_fn_error
20968
20969
20970# as_fn_set_status STATUS
20971# -----------------------
20972# Set $? to STATUS, without forking.
20973as_fn_set_status ()
20974{
20975 return $1
20976} # as_fn_set_status
20977
20978# as_fn_exit STATUS
20979# -----------------
20980# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20981as_fn_exit ()
20982{
20983 set +e
20984 as_fn_set_status $1
20985 exit $1
20986} # as_fn_exit
20987
20988# as_fn_unset VAR
20989# ---------------
20990# Portably unset VAR.
20991as_fn_unset ()
20992{
20993 { eval $1=; unset $1;}
20994}
20995as_unset=as_fn_unset
20996# as_fn_append VAR VALUE
20997# ----------------------
20998# Append the text in VALUE to the end of the definition contained in VAR. Take
20999# advantage of any shell optimizations that allow amortized linear growth over
21000# repeated appends, instead of the typical quadratic growth present in naive
21001# implementations.
21002if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
21003 eval 'as_fn_append ()
21004 {
21005 eval $1+=\$2
21006 }'
21007else
21008 as_fn_append ()
21009 {
21010 eval $1=\$$1\$2
21011 }
21012fi # as_fn_append
21013
21014# as_fn_arith ARG...
21015# ------------------
21016# Perform arithmetic evaluation on the ARGs, and store the result in the
21017# global $as_val. Take advantage of shells that can avoid forks. The arguments
21018# must be portable across $(()) and expr.
21019if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
21020 eval 'as_fn_arith ()
21021 {
21022 as_val=$(( $* ))
21023 }'
21024else
21025 as_fn_arith ()
21026 {
21027 as_val=`expr "$@" || test $? -eq 1`
21028 }
21029fi # as_fn_arith
21030
21031
21032if expr a : '\(a\)' >/dev/null 2>&1 &&
21033 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21034 as_expr=expr
21035else
21036 as_expr=false
21037fi
21038
21039if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21040 as_basename=basename
21041else
21042 as_basename=false
21043fi
21044
21045if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21046 as_dirname=dirname
21047else
21048 as_dirname=false
21049fi
21050
21051as_me=`$as_basename -- "$0" ||
21052$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21053 X"$0" : 'X\(//\)$' \| \
21054 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21055$as_echo X/"$0" |
21056 sed '/^.*\/\([^/][^/]*\)\/*$/{
21057 s//\1/
21058 q
21059 }
21060 /^X\/\(\/\/\)$/{
21061 s//\1/
21062 q
21063 }
21064 /^X\/\(\/\).*/{
21065 s//\1/
21066 q
21067 }
21068 s/.*/./; q'`
21069
21070# Avoid depending upon Character Ranges.
21071as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21072as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21073as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21074as_cr_digits='0123456789'
21075as_cr_alnum=$as_cr_Letters$as_cr_digits
21076
21077ECHO_C= ECHO_N= ECHO_T=
21078case `echo -n x` in #(((((
21079-n*)
21080 case `echo 'xy\c'` in
21081 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21082 xy) ECHO_C='\c';;
21083 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
21084 ECHO_T=' ';;
21085 esac;;
21086*)
21087 ECHO_N='-n';;
21088esac
21089
21090rm -f conf$$ conf$$.exe conf$$.file
21091if test -d conf$$.dir; then
21092 rm -f conf$$.dir/conf$$.file
21093else
21094 rm -f conf$$.dir
21095 mkdir conf$$.dir 2>/dev/null
21096fi
21097if (echo >conf$$.file) 2>/dev/null; then
21098 if ln -s conf$$.file conf$$ 2>/dev/null; then
21099 as_ln_s='ln -s'
21100 # ... but there are two gotchas:
21101 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21102 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
53ba6704 21103 # In both cases, we have to default to `cp -pR'.
9c60689e 21104 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
53ba6704 21105 as_ln_s='cp -pR'
9c60689e
DWT
21106 elif ln conf$$.file conf$$ 2>/dev/null; then
21107 as_ln_s=ln
21108 else
53ba6704 21109 as_ln_s='cp -pR'
9c60689e
DWT
21110 fi
21111else
53ba6704 21112 as_ln_s='cp -pR'
9c60689e
DWT
21113fi
21114rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21115rmdir conf$$.dir 2>/dev/null
21116
21117
21118# as_fn_mkdir_p
21119# -------------
21120# Create "$as_dir" as a directory, including parents if necessary.
21121as_fn_mkdir_p ()
21122{
21123
21124 case $as_dir in #(
21125 -*) as_dir=./$as_dir;;
21126 esac
21127 test -d "$as_dir" || eval $as_mkdir_p || {
21128 as_dirs=
21129 while :; do
21130 case $as_dir in #(
21131 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21132 *) as_qdir=$as_dir;;
21133 esac
21134 as_dirs="'$as_qdir' $as_dirs"
21135 as_dir=`$as_dirname -- "$as_dir" ||
21136$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21137 X"$as_dir" : 'X\(//\)[^/]' \| \
21138 X"$as_dir" : 'X\(//\)$' \| \
21139 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21140$as_echo X"$as_dir" |
21141 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21142 s//\1/
21143 q
21144 }
21145 /^X\(\/\/\)[^/].*/{
21146 s//\1/
21147 q
21148 }
21149 /^X\(\/\/\)$/{
21150 s//\1/
21151 q
21152 }
21153 /^X\(\/\).*/{
21154 s//\1/
21155 q
21156 }
21157 s/.*/./; q'`
21158 test -d "$as_dir" && break
21159 done
21160 test -z "$as_dirs" || eval "mkdir $as_dirs"
12833ad8 21161 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
9c60689e
DWT
21162
21163
21164} # as_fn_mkdir_p
21165if mkdir -p . 2>/dev/null; then
21166 as_mkdir_p='mkdir -p "$as_dir"'
21167else
21168 test -d ./-p && rmdir ./-p
21169 as_mkdir_p=false
21170fi
21171
53ba6704
JF
21172
21173# as_fn_executable_p FILE
21174# -----------------------
21175# Test if FILE is an executable regular file.
21176as_fn_executable_p ()
21177{
21178 test -f "$1" && test -x "$1"
21179} # as_fn_executable_p
21180as_test_x='test -x'
21181as_executable_p=as_fn_executable_p
9c60689e
DWT
21182
21183# Sed expression to map a string onto a valid CPP name.
21184as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21185
21186# Sed expression to map a string onto a valid variable name.
21187as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21188
21189
21190exec 6>&1
21191## ----------------------------------- ##
21192## Main body of $CONFIG_STATUS script. ##
21193## ----------------------------------- ##
21194_ASEOF
21195test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21196
21197cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21198# Save the log message, to keep $0 and so on meaningful, and to
21199# report actual input values of CONFIG_FILES etc. instead of their
21200# values after options handling.
21201ac_log="
21202This file was extended by Cycript $as_me 0.9, which was
53ba6704 21203generated by GNU Autoconf 2.69. Invocation command line was
9c60689e
DWT
21204
21205 CONFIG_FILES = $CONFIG_FILES
21206 CONFIG_HEADERS = $CONFIG_HEADERS
21207 CONFIG_LINKS = $CONFIG_LINKS
21208 CONFIG_COMMANDS = $CONFIG_COMMANDS
21209 $ $0 $@
21210
21211on `(hostname || uname -n) 2>/dev/null | sed 1q`
21212"
21213
21214_ACEOF
21215
21216case $ac_config_files in *"
21217"*) set x $ac_config_files; shift; ac_config_files=$*;;
21218esac
21219
296ee9a6
JF
21220case $ac_config_headers in *"
21221"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21222esac
9c60689e
DWT
21223
21224
21225cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21226# Files that config.status was made for.
21227config_files="$ac_config_files"
296ee9a6 21228config_headers="$ac_config_headers"
9c60689e
DWT
21229config_commands="$ac_config_commands"
21230
21231_ACEOF
21232
21233cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21234ac_cs_usage="\
21235\`$as_me' instantiates files and other configuration actions
21236from templates according to the current configuration. Unless the files
21237and actions are specified as TAGs, all are instantiated by default.
21238
21239Usage: $0 [OPTION]... [TAG]...
21240
21241 -h, --help print this help, then exit
21242 -V, --version print version number and configuration settings, then exit
21243 --config print configuration, then exit
21244 -q, --quiet, --silent
21245 do not print progress messages
21246 -d, --debug don't remove temporary files
21247 --recheck update $as_me by reconfiguring in the same conditions
21248 --file=FILE[:TEMPLATE]
21249 instantiate the configuration file FILE
296ee9a6
JF
21250 --header=FILE[:TEMPLATE]
21251 instantiate the configuration header FILE
9c60689e
DWT
21252
21253Configuration files:
21254$config_files
21255
296ee9a6
JF
21256Configuration headers:
21257$config_headers
21258
9c60689e
DWT
21259Configuration commands:
21260$config_commands
21261
21262Report bugs to <saurik@saurik.com>.
21263Cycript home page: <http://www.cycript.org/>."
21264
21265_ACEOF
21266cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21267ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
21268ac_cs_version="\\
21269Cycript config.status 0.9
53ba6704 21270configured by $0, generated by GNU Autoconf 2.69,
9c60689e
DWT
21271 with options \\"\$ac_cs_config\\"
21272
53ba6704 21273Copyright (C) 2012 Free Software Foundation, Inc.
9c60689e
DWT
21274This config.status script is free software; the Free Software Foundation
21275gives unlimited permission to copy, distribute and modify it."
21276
21277ac_pwd='$ac_pwd'
21278srcdir='$srcdir'
21279INSTALL='$INSTALL'
66170b30
JF
21280MKDIR_P='$MKDIR_P'
21281AWK='$AWK'
9c60689e
DWT
21282test -n "\$AWK" || AWK=awk
21283_ACEOF
21284
21285cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21286# The default lists apply if the user does not specify any file.
21287ac_need_defaults=:
21288while test $# != 0
21289do
21290 case $1 in
12833ad8 21291 --*=?*)
9c60689e
DWT
21292 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21293 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21294 ac_shift=:
21295 ;;
12833ad8
JF
21296 --*=)
21297 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21298 ac_optarg=
21299 ac_shift=:
21300 ;;
9c60689e
DWT
21301 *)
21302 ac_option=$1
21303 ac_optarg=$2
21304 ac_shift=shift
21305 ;;
21306 esac
21307
21308 case $ac_option in
21309 # Handling of the options.
21310 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21311 ac_cs_recheck=: ;;
21312 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21313 $as_echo "$ac_cs_version"; exit ;;
21314 --config | --confi | --conf | --con | --co | --c )
21315 $as_echo "$ac_cs_config"; exit ;;
21316 --debug | --debu | --deb | --de | --d | -d )
21317 debug=: ;;
21318 --file | --fil | --fi | --f )
21319 $ac_shift
21320 case $ac_optarg in
21321 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12833ad8 21322 '') as_fn_error $? "missing file argument" ;;
9c60689e
DWT
21323 esac
21324 as_fn_append CONFIG_FILES " '$ac_optarg'"
21325 ac_need_defaults=false;;
296ee9a6
JF
21326 --header | --heade | --head | --hea )
21327 $ac_shift
21328 case $ac_optarg in
21329 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21330 esac
21331 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21332 ac_need_defaults=false;;
21333 --he | --h)
21334 # Conflict between --help and --header
21335 as_fn_error $? "ambiguous option: \`$1'
21336Try \`$0 --help' for more information.";;
21337 --help | --hel | -h )
9c60689e
DWT
21338 $as_echo "$ac_cs_usage"; exit ;;
21339 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21340 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21341 ac_cs_silent=: ;;
21342
21343 # This is an error.
12833ad8 21344 -*) as_fn_error $? "unrecognized option: \`$1'
9c60689e
DWT
21345Try \`$0 --help' for more information." ;;
21346
21347 *) as_fn_append ac_config_targets " $1"
21348 ac_need_defaults=false ;;
21349
21350 esac
21351 shift
21352done
21353
21354ac_configure_extra_args=
21355
21356if $ac_cs_silent; then
21357 exec 6>/dev/null
21358 ac_configure_extra_args="$ac_configure_extra_args --silent"
21359fi
21360
21361_ACEOF
21362cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21363if \$ac_cs_recheck; then
53ba6704 21364 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9c60689e
DWT
21365 shift
21366 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
21367 CONFIG_SHELL='$SHELL'
21368 export CONFIG_SHELL
21369 exec "\$@"
21370fi
21371
21372_ACEOF
21373cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21374exec 5>>config.log
21375{
21376 echo
21377 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21378## Running $as_me. ##
21379_ASBOX
21380 $as_echo "$ac_log"
21381} >&5
21382
21383_ACEOF
21384cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21385#
21386# INIT-COMMANDS
21387#
66170b30 21388AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
9c60689e
DWT
21389
21390
21391# The HP-UX ksh and POSIX shell print the target directory to stdout
21392# if CDPATH is set.
21393(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21394
21395sed_quote_subst='$sed_quote_subst'
21396double_quote_subst='$double_quote_subst'
21397delay_variable_subst='$delay_variable_subst'
ee134472
JF
21398macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
21399macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
21400enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
21401enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
21402pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
21403enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
21404SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
21405ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
53ba6704 21406PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
ee134472
JF
21407host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
21408host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
21409host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
21410build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
21411build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
21412build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
21413SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
21414Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
21415GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
21416EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
21417FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
21418LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
21419NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
21420LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
21421max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
21422ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
21423exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
21424lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
21425lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
21426lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
21427lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
21428lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
21429reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
21430reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
21431OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
21432deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
21433file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
21434file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
21435want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
21436DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
21437sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
21438AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
21439AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
21440archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
21441STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
21442RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
21443old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21444old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21445old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
21446lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
21447CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
21448CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
21449compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
21450GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
21451lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
21452lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
21453lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
21454lt_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"`'
21455nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
21456lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
21457objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
21458MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
21459lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
21460lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
21461lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
21462lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
21463lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
21464need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
21465MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
21466DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
21467NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
21468LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
21469OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
21470OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
21471libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
21472shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
21473extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21474archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
21475enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
21476export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
21477whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
21478compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
21479old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
21480old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21481archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
21482archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21483module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
21484module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21485with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
21486allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
21487no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
21488hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
ee134472
JF
21489hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
21490hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
21491hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
21492hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
21493hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
21494hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
21495inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
21496link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
21497always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
21498export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
21499exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
21500include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
21501prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
21502postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
21503file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
21504variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
21505need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
21506need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
21507version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
21508runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
21509shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
21510shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
21511libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
21512library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
21513soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
21514install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
21515postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21516postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21517finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
21518finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
21519hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
21520sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
21521sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
21522hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
21523enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
21524enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
21525enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
21526old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
21527striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
21528compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
21529predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
21530postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
21531predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
21532postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
21533compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
21534LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
21535reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
21536reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21537old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21538compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
21539GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
21540lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
21541lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
21542lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
21543lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
21544lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
21545archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
21546enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
21547export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21548whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21549compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
21550old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21551old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21552archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21553archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21554module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21555module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21556with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
21557allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
21558no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
21559hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
ee134472
JF
21560hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
21561hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
21562hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
21563hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
21564hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
21565hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
21566inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
21567link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
21568always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
21569export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21570exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
21571include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
21572prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21573postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21574file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
21575hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
21576compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
21577predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
21578postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
21579predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
21580postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
21581compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
9c60689e
DWT
21582
21583LTCC='$LTCC'
21584LTCFLAGS='$LTCFLAGS'
21585compiler='$compiler_DEFAULT'
21586
ee134472
JF
21587# A function that is used when there is no print builtin or printf.
21588func_fallback_echo ()
21589{
21590 eval 'cat <<_LTECHO_EOF
21591\$1
21592_LTECHO_EOF'
21593}
21594
9c60689e 21595# Quote evaled strings.
ee134472
JF
21596for var in SHELL \
21597ECHO \
53ba6704 21598PATH_SEPARATOR \
ee134472 21599SED \
9c60689e
DWT
21600GREP \
21601EGREP \
21602FGREP \
21603LD \
21604NM \
21605LN_S \
21606lt_SP2NL \
21607lt_NL2SP \
21608reload_flag \
21609OBJDUMP \
21610deplibs_check_method \
21611file_magic_cmd \
ee134472
JF
21612file_magic_glob \
21613want_nocaseglob \
21614DLLTOOL \
21615sharedlib_from_linklib_cmd \
9c60689e
DWT
21616AR \
21617AR_FLAGS \
ee134472 21618archiver_list_spec \
9c60689e
DWT
21619STRIP \
21620RANLIB \
21621CC \
21622CFLAGS \
21623compiler \
21624lt_cv_sys_global_symbol_pipe \
21625lt_cv_sys_global_symbol_to_cdecl \
21626lt_cv_sys_global_symbol_to_c_name_address \
21627lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
ee134472 21628nm_file_list_spec \
9c60689e 21629lt_prog_compiler_no_builtin_flag \
9c60689e 21630lt_prog_compiler_pic \
ee134472 21631lt_prog_compiler_wl \
9c60689e
DWT
21632lt_prog_compiler_static \
21633lt_cv_prog_compiler_c_o \
21634need_locks \
ee134472 21635MANIFEST_TOOL \
9c60689e
DWT
21636DSYMUTIL \
21637NMEDIT \
21638LIPO \
21639OTOOL \
21640OTOOL64 \
21641shrext_cmds \
21642export_dynamic_flag_spec \
21643whole_archive_flag_spec \
21644compiler_needs_object \
21645with_gnu_ld \
21646allow_undefined_flag \
21647no_undefined_flag \
21648hardcode_libdir_flag_spec \
9c60689e 21649hardcode_libdir_separator \
9c60689e
DWT
21650exclude_expsyms \
21651include_expsyms \
21652file_list_spec \
21653variables_saved_for_relink \
21654libname_spec \
21655library_names_spec \
21656soname_spec \
ee134472 21657install_override_mode \
9c60689e
DWT
21658finish_eval \
21659old_striplib \
21660striplib \
21661compiler_lib_search_dirs \
21662predep_objects \
21663postdep_objects \
21664predeps \
21665postdeps \
21666compiler_lib_search_path \
21667LD_CXX \
ee134472 21668reload_flag_CXX \
9c60689e
DWT
21669compiler_CXX \
21670lt_prog_compiler_no_builtin_flag_CXX \
9c60689e 21671lt_prog_compiler_pic_CXX \
ee134472 21672lt_prog_compiler_wl_CXX \
9c60689e
DWT
21673lt_prog_compiler_static_CXX \
21674lt_cv_prog_compiler_c_o_CXX \
21675export_dynamic_flag_spec_CXX \
21676whole_archive_flag_spec_CXX \
21677compiler_needs_object_CXX \
21678with_gnu_ld_CXX \
21679allow_undefined_flag_CXX \
21680no_undefined_flag_CXX \
21681hardcode_libdir_flag_spec_CXX \
9c60689e 21682hardcode_libdir_separator_CXX \
9c60689e
DWT
21683exclude_expsyms_CXX \
21684include_expsyms_CXX \
21685file_list_spec_CXX \
21686compiler_lib_search_dirs_CXX \
21687predep_objects_CXX \
21688postdep_objects_CXX \
21689predeps_CXX \
21690postdeps_CXX \
21691compiler_lib_search_path_CXX; do
ee134472 21692 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
9c60689e 21693 *[\\\\\\\`\\"\\\$]*)
ee134472 21694 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
9c60689e
DWT
21695 ;;
21696 *)
21697 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21698 ;;
21699 esac
21700done
21701
21702# Double-quote double-evaled strings.
21703for var in reload_cmds \
21704old_postinstall_cmds \
21705old_postuninstall_cmds \
21706old_archive_cmds \
21707extract_expsyms_cmds \
21708old_archive_from_new_cmds \
21709old_archive_from_expsyms_cmds \
21710archive_cmds \
21711archive_expsym_cmds \
21712module_cmds \
21713module_expsym_cmds \
21714export_symbols_cmds \
21715prelink_cmds \
ee134472 21716postlink_cmds \
9c60689e
DWT
21717postinstall_cmds \
21718postuninstall_cmds \
21719finish_cmds \
21720sys_lib_search_path_spec \
21721sys_lib_dlsearch_path_spec \
ee134472 21722reload_cmds_CXX \
9c60689e
DWT
21723old_archive_cmds_CXX \
21724old_archive_from_new_cmds_CXX \
21725old_archive_from_expsyms_cmds_CXX \
21726archive_cmds_CXX \
21727archive_expsym_cmds_CXX \
21728module_cmds_CXX \
21729module_expsym_cmds_CXX \
21730export_symbols_cmds_CXX \
ee134472
JF
21731prelink_cmds_CXX \
21732postlink_cmds_CXX; do
21733 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
9c60689e 21734 *[\\\\\\\`\\"\\\$]*)
ee134472 21735 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
9c60689e
DWT
21736 ;;
21737 *)
21738 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21739 ;;
21740 esac
21741done
21742
9c60689e
DWT
21743ac_aux_dir='$ac_aux_dir'
21744xsi_shell='$xsi_shell'
21745lt_shell_append='$lt_shell_append'
21746
21747# See if we are running on zsh, and set the options which allow our
21748# commands through without removal of \ escapes INIT.
21749if test -n "\${ZSH_VERSION+set}" ; then
21750 setopt NO_GLOB_SUBST
21751fi
21752
21753
21754 PACKAGE='$PACKAGE'
21755 VERSION='$VERSION'
21756 TIMESTAMP='$TIMESTAMP'
21757 RM='$RM'
21758 ofile='$ofile'
21759
21760
21761
21762
21763
21764
21765_ACEOF
21766
21767cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21768
21769# Handling of arguments.
21770for ac_config_target in $ac_config_targets
21771do
21772 case $ac_config_target in
296ee9a6 21773 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
66170b30 21774 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
9c60689e 21775 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
790e5246 21776 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9c60689e 21777
ee134472 21778 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
9c60689e
DWT
21779 esac
21780done
21781
21782
21783# If the user did not use the arguments to specify the items to instantiate,
21784# then the envvar interface is used. Set only those that are not.
21785# We use the long form for the default assignment because of an extremely
21786# bizarre bug on SunOS 4.1.3.
21787if $ac_need_defaults; then
21788 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
296ee9a6 21789 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9c60689e
DWT
21790 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21791fi
21792
21793# Have a temporary directory for convenience. Make it in the build tree
21794# simply because there is no reason against having it here, and in addition,
21795# creating and moving files from /tmp can sometimes cause problems.
21796# Hook for its removal unless debugging.
21797# Note that there is a small window in which the directory will not be cleaned:
21798# after its creation but before its name has been assigned to `$tmp'.
21799$debug ||
21800{
ee134472 21801 tmp= ac_tmp=
9c60689e 21802 trap 'exit_status=$?
ee134472
JF
21803 : "${ac_tmp:=$tmp}"
21804 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
9c60689e
DWT
21805' 0
21806 trap 'as_fn_exit 1' 1 2 13 15
21807}
21808# Create a (secure) tmp directory for tmp files.
21809
21810{
21811 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
ee134472 21812 test -d "$tmp"
9c60689e
DWT
21813} ||
21814{
21815 tmp=./conf$$-$RANDOM
21816 (umask 077 && mkdir "$tmp")
12833ad8 21817} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
ee134472 21818ac_tmp=$tmp
9c60689e
DWT
21819
21820# Set up the scripts for CONFIG_FILES section.
21821# No need to generate them if there are no CONFIG_FILES.
21822# This happens for instance with `./config.status config.h'.
21823if test -n "$CONFIG_FILES"; then
21824
21825
21826ac_cr=`echo X | tr X '\015'`
21827# On cygwin, bash can eat \r inside `` if the user requested igncr.
21828# But we know of no other shell where ac_cr would be empty at this
21829# point, so we can use a bashism as a fallback.
21830if test "x$ac_cr" = x; then
21831 eval ac_cr=\$\'\\r\'
21832fi
21833ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21834if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12833ad8 21835 ac_cs_awk_cr='\\r'
9c60689e
DWT
21836else
21837 ac_cs_awk_cr=$ac_cr
21838fi
21839
ee134472 21840echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
9c60689e
DWT
21841_ACEOF
21842
21843
21844{
21845 echo "cat >conf$$subs.awk <<_ACEOF" &&
21846 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21847 echo "_ACEOF"
21848} >conf$$subs.sh ||
12833ad8
JF
21849 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21850ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
9c60689e
DWT
21851ac_delim='%!_!# '
21852for ac_last_try in false false false false false :; do
21853 . ./conf$$subs.sh ||
12833ad8 21854 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9c60689e
DWT
21855
21856 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21857 if test $ac_delim_n = $ac_delim_num; then
21858 break
21859 elif $ac_last_try; then
12833ad8 21860 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9c60689e
DWT
21861 else
21862 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21863 fi
21864done
21865rm -f conf$$subs.sh
21866
21867cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ee134472 21868cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
9c60689e
DWT
21869_ACEOF
21870sed -n '
21871h
21872s/^/S["/; s/!.*/"]=/
21873p
21874g
21875s/^[^!]*!//
21876:repl
21877t repl
21878s/'"$ac_delim"'$//
21879t delim
21880:nl
21881h
21882s/\(.\{148\}\)..*/\1/
21883t more1
21884s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21885p
21886n
21887b repl
21888:more1
21889s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21890p
21891g
21892s/.\{148\}//
21893t nl
21894:delim
21895h
21896s/\(.\{148\}\)..*/\1/
21897t more2
21898s/["\\]/\\&/g; s/^/"/; s/$/"/
21899p
21900b
21901:more2
21902s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21903p
21904g
21905s/.\{148\}//
21906t delim
21907' <conf$$subs.awk | sed '
21908/^[^""]/{
21909 N
21910 s/\n//
21911}
21912' >>$CONFIG_STATUS || ac_write_fail=1
21913rm -f conf$$subs.awk
21914cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21915_ACAWK
ee134472 21916cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
9c60689e
DWT
21917 for (key in S) S_is_set[key] = 1
21918 FS = "\a"
21919
21920}
21921{
21922 line = $ 0
21923 nfields = split(line, field, "@")
21924 substed = 0
21925 len = length(field[1])
21926 for (i = 2; i < nfields; i++) {
21927 key = field[i]
21928 keylen = length(key)
21929 if (S_is_set[key]) {
21930 value = S[key]
21931 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21932 len += length(value) + length(field[++i])
21933 substed = 1
21934 } else
21935 len += 1 + keylen
21936 }
21937
21938 print line
21939}
21940
21941_ACAWK
21942_ACEOF
21943cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21944if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21945 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21946else
21947 cat
ee134472 21948fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12833ad8 21949 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
9c60689e
DWT
21950_ACEOF
21951
12833ad8
JF
21952# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21953# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
9c60689e
DWT
21954# trailing colons and then remove the whole line if VPATH becomes empty
21955# (actually we leave an empty line to preserve line numbers).
21956if test "x$srcdir" = x.; then
12833ad8
JF
21957 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
21958h
21959s///
21960s/^/:/
21961s/[ ]*$/:/
21962s/:\$(srcdir):/:/g
21963s/:\${srcdir}:/:/g
21964s/:@srcdir@:/:/g
21965s/^:*//
9c60689e 21966s/:*$//
12833ad8
JF
21967x
21968s/\(=[ ]*\).*/\1/
21969G
21970s/\n//
9c60689e
DWT
21971s/^[^=]*=[ ]*$//
21972}'
21973fi
21974
21975cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21976fi # test -n "$CONFIG_FILES"
21977
296ee9a6
JF
21978# Set up the scripts for CONFIG_HEADERS section.
21979# No need to generate them if there are no CONFIG_HEADERS.
21980# This happens for instance with `./config.status Makefile'.
21981if test -n "$CONFIG_HEADERS"; then
21982cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21983BEGIN {
21984_ACEOF
21985
21986# Transform confdefs.h into an awk script `defines.awk', embedded as
21987# here-document in config.status, that substitutes the proper values into
21988# config.h.in to produce config.h.
21989
21990# Create a delimiter string that does not exist in confdefs.h, to ease
21991# handling of long lines.
21992ac_delim='%!_!# '
21993for ac_last_try in false false :; do
21994 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21995 if test -z "$ac_tt"; then
21996 break
21997 elif $ac_last_try; then
21998 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21999 else
22000 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22001 fi
22002done
22003
22004# For the awk script, D is an array of macro values keyed by name,
22005# likewise P contains macro parameters if any. Preserve backslash
22006# newline sequences.
22007
22008ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22009sed -n '
22010s/.\{148\}/&'"$ac_delim"'/g
22011t rset
22012:rset
22013s/^[ ]*#[ ]*define[ ][ ]*/ /
22014t def
22015d
22016:def
22017s/\\$//
22018t bsnl
22019s/["\\]/\\&/g
22020s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22021D["\1"]=" \3"/p
22022s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
22023d
22024:bsnl
22025s/["\\]/\\&/g
22026s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22027D["\1"]=" \3\\\\\\n"\\/p
22028t cont
22029s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22030t cont
22031d
22032:cont
22033n
22034s/.\{148\}/&'"$ac_delim"'/g
22035t clear
22036:clear
22037s/\\$//
22038t bsnlc
22039s/["\\]/\\&/g; s/^/"/; s/$/"/p
22040d
22041:bsnlc
22042s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22043b cont
22044' <confdefs.h | sed '
22045s/'"$ac_delim"'/"\\\
22046"/g' >>$CONFIG_STATUS || ac_write_fail=1
22047
22048cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22049 for (key in D) D_is_set[key] = 1
22050 FS = "\a"
22051}
22052/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22053 line = \$ 0
22054 split(line, arg, " ")
22055 if (arg[1] == "#") {
22056 defundef = arg[2]
22057 mac1 = arg[3]
22058 } else {
22059 defundef = substr(arg[1], 2)
22060 mac1 = arg[2]
22061 }
22062 split(mac1, mac2, "(") #)
22063 macro = mac2[1]
22064 prefix = substr(line, 1, index(line, defundef) - 1)
22065 if (D_is_set[macro]) {
22066 # Preserve the white space surrounding the "#".
22067 print prefix "define", macro P[macro] D[macro]
22068 next
22069 } else {
22070 # Replace #undef with comments. This is necessary, for example,
22071 # in the case of _POSIX_SOURCE, which is predefined and required
22072 # on some systems where configure will not decide to define it.
22073 if (defundef == "undef") {
22074 print "/*", prefix defundef, macro, "*/"
22075 next
22076 }
22077 }
22078}
22079{ print }
22080_ACAWK
22081_ACEOF
22082cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22083 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
22084fi # test -n "$CONFIG_HEADERS"
22085
9c60689e 22086
296ee9a6 22087eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
9c60689e
DWT
22088shift
22089for ac_tag
22090do
22091 case $ac_tag in
22092 :[FHLC]) ac_mode=$ac_tag; continue;;
22093 esac
22094 case $ac_mode$ac_tag in
22095 :[FHL]*:*);;
ee134472 22096 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
9c60689e
DWT
22097 :[FH]-) ac_tag=-:-;;
22098 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22099 esac
22100 ac_save_IFS=$IFS
22101 IFS=:
22102 set x $ac_tag
22103 IFS=$ac_save_IFS
22104 shift
22105 ac_file=$1
22106 shift
22107
22108 case $ac_mode in
22109 :L) ac_source=$1;;
22110 :[FH])
22111 ac_file_inputs=
22112 for ac_f
22113 do
22114 case $ac_f in
ee134472 22115 -) ac_f="$ac_tmp/stdin";;
9c60689e
DWT
22116 *) # Look for the file first in the build tree, then in the source tree
22117 # (if the path is not absolute). The absolute path cannot be DOS-style,
22118 # because $ac_f cannot contain `:'.
22119 test -f "$ac_f" ||
22120 case $ac_f in
22121 [\\/$]*) false;;
22122 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22123 esac ||
ee134472 22124 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
9c60689e
DWT
22125 esac
22126 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22127 as_fn_append ac_file_inputs " '$ac_f'"
22128 done
22129
22130 # Let's still pretend it is `configure' which instantiates (i.e., don't
22131 # use $as_me), people would be surprised to read:
22132 # /* config.h. Generated by config.status. */
22133 configure_input='Generated from '`
22134 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22135 `' by configure.'
22136 if test x"$ac_file" != x-; then
22137 configure_input="$ac_file. $configure_input"
22138 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22139$as_echo "$as_me: creating $ac_file" >&6;}
22140 fi
22141 # Neutralize special characters interpreted by sed in replacement strings.
22142 case $configure_input in #(
22143 *\&* | *\|* | *\\* )
22144 ac_sed_conf_input=`$as_echo "$configure_input" |
22145 sed 's/[\\\\&|]/\\\\&/g'`;; #(
22146 *) ac_sed_conf_input=$configure_input;;
22147 esac
22148
22149 case $ac_tag in
ee134472
JF
22150 *:-:* | *:-) cat >"$ac_tmp/stdin" \
22151 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
9c60689e
DWT
22152 esac
22153 ;;
22154 esac
22155
22156 ac_dir=`$as_dirname -- "$ac_file" ||
22157$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22158 X"$ac_file" : 'X\(//\)[^/]' \| \
22159 X"$ac_file" : 'X\(//\)$' \| \
22160 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22161$as_echo X"$ac_file" |
22162 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22163 s//\1/
22164 q
22165 }
22166 /^X\(\/\/\)[^/].*/{
22167 s//\1/
22168 q
22169 }
22170 /^X\(\/\/\)$/{
22171 s//\1/
22172 q
22173 }
22174 /^X\(\/\).*/{
22175 s//\1/
22176 q
22177 }
22178 s/.*/./; q'`
22179 as_dir="$ac_dir"; as_fn_mkdir_p
22180 ac_builddir=.
22181
22182case "$ac_dir" in
22183.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22184*)
22185 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
22186 # A ".." for each directory in $ac_dir_suffix.
22187 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22188 case $ac_top_builddir_sub in
22189 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22190 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22191 esac ;;
22192esac
22193ac_abs_top_builddir=$ac_pwd
22194ac_abs_builddir=$ac_pwd$ac_dir_suffix
22195# for backward compatibility:
22196ac_top_builddir=$ac_top_build_prefix
35fa52c0 22197
9c60689e
DWT
22198case $srcdir in
22199 .) # We are building in place.
22200 ac_srcdir=.
22201 ac_top_srcdir=$ac_top_builddir_sub
22202 ac_abs_top_srcdir=$ac_pwd ;;
22203 [\\/]* | ?:[\\/]* ) # Absolute name.
22204 ac_srcdir=$srcdir$ac_dir_suffix;
22205 ac_top_srcdir=$srcdir
22206 ac_abs_top_srcdir=$srcdir ;;
22207 *) # Relative name.
22208 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22209 ac_top_srcdir=$ac_top_build_prefix$srcdir
22210 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22211esac
22212ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35fa52c0
DWT
22213
22214
9c60689e
DWT
22215 case $ac_mode in
22216 :F)
22217 #
22218 # CONFIG_FILE
22219 #
35fa52c0 22220
9c60689e
DWT
22221 case $INSTALL in
22222 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22223 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22224 esac
66170b30
JF
22225 ac_MKDIR_P=$MKDIR_P
22226 case $MKDIR_P in
22227 [\\/$]* | ?:[\\/]* ) ;;
22228 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22229 esac
9c60689e 22230_ACEOF
35fa52c0 22231
9c60689e
DWT
22232cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22233# If the template does not know about datarootdir, expand it.
22234# FIXME: This hack should be removed a few years after 2.60.
22235ac_datarootdir_hack=; ac_datarootdir_seen=
22236ac_sed_dataroot='
22237/datarootdir/ {
22238 p
22239 q
22240}
22241/@datadir@/p
22242/@docdir@/p
22243/@infodir@/p
22244/@localedir@/p
22245/@mandir@/p'
22246case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22247*datarootdir*) ac_datarootdir_seen=yes;;
22248*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22249 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22250$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22251_ACEOF
22252cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22253 ac_datarootdir_hack='
22254 s&@datadir@&$datadir&g
22255 s&@docdir@&$docdir&g
22256 s&@infodir@&$infodir&g
22257 s&@localedir@&$localedir&g
22258 s&@mandir@&$mandir&g
22259 s&\\\${datarootdir}&$datarootdir&g' ;;
22260esac
22261_ACEOF
35fa52c0 22262
9c60689e
DWT
22263# Neutralize VPATH when `$srcdir' = `.'.
22264# Shell code in configure.ac might set extrasub.
22265# FIXME: do we really want to maintain this feature?
22266cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22267ac_sed_extra="$ac_vpsub
22268$extrasub
22269_ACEOF
22270cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22271:t
22272/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22273s|@configure_input@|$ac_sed_conf_input|;t t
22274s&@top_builddir@&$ac_top_builddir_sub&;t t
22275s&@top_build_prefix@&$ac_top_build_prefix&;t t
22276s&@srcdir@&$ac_srcdir&;t t
22277s&@abs_srcdir@&$ac_abs_srcdir&;t t
22278s&@top_srcdir@&$ac_top_srcdir&;t t
22279s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22280s&@builddir@&$ac_builddir&;t t
22281s&@abs_builddir@&$ac_abs_builddir&;t t
22282s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22283s&@INSTALL@&$ac_INSTALL&;t t
66170b30 22284s&@MKDIR_P@&$ac_MKDIR_P&;t t
9c60689e
DWT
22285$ac_datarootdir_hack
22286"
ee134472
JF
22287eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
22288 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9c60689e
DWT
22289
22290test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
ee134472
JF
22291 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
22292 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
22293 "$ac_tmp/out"`; test -z "$ac_out"; } &&
9c60689e 22294 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12833ad8 22295which seems to be undefined. Please make sure it is defined" >&5
9c60689e 22296$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12833ad8 22297which seems to be undefined. Please make sure it is defined" >&2;}
9c60689e 22298
ee134472 22299 rm -f "$ac_tmp/stdin"
9c60689e 22300 case $ac_file in
ee134472
JF
22301 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
22302 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
9c60689e 22303 esac \
12833ad8 22304 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9c60689e 22305 ;;
296ee9a6
JF
22306 :H)
22307 #
22308 # CONFIG_HEADER
22309 #
22310 if test x"$ac_file" != x-; then
22311 {
22312 $as_echo "/* $configure_input */" \
22313 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
22314 } >"$ac_tmp/config.h" \
22315 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22316 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
22317 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22318$as_echo "$as_me: $ac_file is unchanged" >&6;}
22319 else
22320 rm -f "$ac_file"
22321 mv "$ac_tmp/config.h" "$ac_file" \
22322 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22323 fi
22324 else
22325 $as_echo "/* $configure_input */" \
22326 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
22327 || as_fn_error $? "could not create -" "$LINENO" 5
22328 fi
22329# Compute "$ac_file"'s index in $config_headers.
22330_am_arg="$ac_file"
22331_am_stamp_count=1
22332for _am_header in $config_headers :; do
22333 case $_am_header in
22334 $_am_arg | $_am_arg:* )
22335 break ;;
22336 * )
22337 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22338 esac
22339done
22340echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22341$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22342 X"$_am_arg" : 'X\(//\)[^/]' \| \
22343 X"$_am_arg" : 'X\(//\)$' \| \
22344 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22345$as_echo X"$_am_arg" |
22346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22347 s//\1/
22348 q
22349 }
22350 /^X\(\/\/\)[^/].*/{
22351 s//\1/
22352 q
22353 }
22354 /^X\(\/\/\)$/{
22355 s//\1/
22356 q
22357 }
22358 /^X\(\/\).*/{
22359 s//\1/
22360 q
22361 }
22362 s/.*/./; q'`/stamp-h$_am_stamp_count
22363 ;;
35fa52c0 22364
9c60689e
DWT
22365 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22366$as_echo "$as_me: executing $ac_file commands" >&6;}
22367 ;;
22368 esac
35fa52c0 22369
35fa52c0 22370
9c60689e 22371 case $ac_file$ac_mode in
66170b30
JF
22372 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22373 # Older Autoconf quotes --file arguments for eval, but not when files
22374 # are listed without --file. Let's play safe and only enable the eval
22375 # if we detect the quoting.
22376 case $CONFIG_FILES in
22377 *\'*) eval set x "$CONFIG_FILES" ;;
22378 *) set x $CONFIG_FILES ;;
22379 esac
22380 shift
22381 for mf
22382 do
22383 # Strip MF so we end up with the name of the file.
22384 mf=`echo "$mf" | sed -e 's/:.*$//'`
22385 # Check whether this is an Automake generated Makefile or not.
22386 # We used to match only the files named 'Makefile.in', but
22387 # some people rename them; so instead we look at the file content.
22388 # Grep'ing the first line is not enough: some people post-process
22389 # each Makefile.in and add a new line on top of each file to say so.
22390 # Grep'ing the whole file is not good either: AIX grep has a line
22391 # limit of 2048, but all sed's we know have understand at least 4000.
22392 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
22393 dirpart=`$as_dirname -- "$mf" ||
22394$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22395 X"$mf" : 'X\(//\)[^/]' \| \
22396 X"$mf" : 'X\(//\)$' \| \
22397 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22398$as_echo X"$mf" |
22399 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22400 s//\1/
22401 q
22402 }
22403 /^X\(\/\/\)[^/].*/{
22404 s//\1/
22405 q
22406 }
22407 /^X\(\/\/\)$/{
22408 s//\1/
22409 q
22410 }
22411 /^X\(\/\).*/{
22412 s//\1/
22413 q
22414 }
22415 s/.*/./; q'`
22416 else
22417 continue
22418 fi
22419 # Extract the definition of DEPDIR, am__include, and am__quote
22420 # from the Makefile without running 'make'.
22421 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22422 test -z "$DEPDIR" && continue
22423 am__include=`sed -n 's/^am__include = //p' < "$mf"`
a93f15c0 22424 test -z "$am__include" && continue
66170b30
JF
22425 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22426 # Find all dependency output files, they are included files with
22427 # $(DEPDIR) in their names. We invoke sed twice because it is the
22428 # simplest approach to changing $(DEPDIR) to its actual value in the
22429 # expansion.
22430 for file in `sed -n "
22431 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22432 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
22433 # Make sure the directory exists.
22434 test -f "$dirpart/$file" && continue
22435 fdir=`$as_dirname -- "$file" ||
22436$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22437 X"$file" : 'X\(//\)[^/]' \| \
22438 X"$file" : 'X\(//\)$' \| \
22439 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22440$as_echo X"$file" |
22441 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22442 s//\1/
22443 q
22444 }
22445 /^X\(\/\/\)[^/].*/{
22446 s//\1/
22447 q
22448 }
22449 /^X\(\/\/\)$/{
22450 s//\1/
22451 q
22452 }
22453 /^X\(\/\).*/{
22454 s//\1/
22455 q
22456 }
22457 s/.*/./; q'`
22458 as_dir=$dirpart/$fdir; as_fn_mkdir_p
22459 # echo "creating $dirpart/$file"
22460 echo '# dummy' > "$dirpart/$file"
22461 done
22462 done
22463}
22464 ;;
9c60689e
DWT
22465 "libtool":C)
22466
22467 # See if we are running on zsh, and set the options which allow our
22468 # commands through without removal of \ escapes.
22469 if test -n "${ZSH_VERSION+set}" ; then
22470 setopt NO_GLOB_SUBST
35fa52c0 22471 fi
35fa52c0 22472
9c60689e
DWT
22473 cfgfile="${ofile}T"
22474 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22475 $RM "$cfgfile"
35fa52c0 22476
9c60689e
DWT
22477 cat <<_LT_EOF >> "$cfgfile"
22478#! $SHELL
35fa52c0 22479
9c60689e
DWT
22480# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
22481# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
22482# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22483# NOTE: Changes made to this file will be lost: look at ltmain.sh.
22484#
22485# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
53ba6704
JF
22486# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
22487# Foundation, Inc.
9c60689e
DWT
22488# Written by Gordon Matzigkeit, 1996
22489#
22490# This file is part of GNU Libtool.
22491#
22492# GNU Libtool is free software; you can redistribute it and/or
22493# modify it under the terms of the GNU General Public License as
22494# published by the Free Software Foundation; either version 2 of
22495# the License, or (at your option) any later version.
22496#
22497# As a special exception to the GNU General Public License,
22498# if you distribute this file as part of a program or library that
22499# is built using GNU Libtool, you may include this file under the
22500# same distribution terms that you use for the rest of that program.
22501#
22502# GNU Libtool is distributed in the hope that it will be useful,
22503# but WITHOUT ANY WARRANTY; without even the implied warranty of
22504# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22505# GNU General Public License for more details.
22506#
22507# You should have received a copy of the GNU General Public License
22508# along with GNU Libtool; see the file COPYING. If not, a copy
22509# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
22510# obtained by writing to the Free Software Foundation, Inc.,
22511# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
35fa52c0 22512
35fa52c0 22513
9c60689e
DWT
22514# The names of the tagged configurations supported by this script.
22515available_tags="CXX "
35fa52c0 22516
9c60689e 22517# ### BEGIN LIBTOOL CONFIG
35fa52c0 22518
9c60689e
DWT
22519# Which release of libtool.m4 was used?
22520macro_version=$macro_version
22521macro_revision=$macro_revision
35fa52c0 22522
9c60689e
DWT
22523# Whether or not to build static libraries.
22524build_old_libs=$enable_static
35fa52c0 22525
549f29b5
DWT
22526# Whether or not to build shared libraries.
22527build_libtool_libs=$enable_shared
22528
9c60689e
DWT
22529# What type of objects to build.
22530pic_mode=$pic_mode
35fa52c0 22531
9c60689e
DWT
22532# Whether or not to optimize for fast installation.
22533fast_install=$enable_fast_install
35fa52c0 22534
ee134472
JF
22535# Shell to use when invoking shell scripts.
22536SHELL=$lt_SHELL
22537
22538# An echo program that protects backslashes.
22539ECHO=$lt_ECHO
22540
53ba6704
JF
22541# The PATH separator for the build system.
22542PATH_SEPARATOR=$lt_PATH_SEPARATOR
22543
9c60689e
DWT
22544# The host system.
22545host_alias=$host_alias
22546host=$host
22547host_os=$host_os
35fa52c0 22548
9c60689e
DWT
22549# The build system.
22550build_alias=$build_alias
22551build=$build
22552build_os=$build_os
22553
22554# A sed program that does not truncate output.
22555SED=$lt_SED
22556
22557# Sed that helps us avoid accidentally triggering echo(1) options like -n.
22558Xsed="\$SED -e 1s/^X//"
22559
22560# A grep program that handles long lines.
22561GREP=$lt_GREP
22562
22563# An ERE matcher.
22564EGREP=$lt_EGREP
22565
22566# A literal string matcher.
22567FGREP=$lt_FGREP
22568
22569# A BSD- or MS-compatible name lister.
22570NM=$lt_NM
22571
22572# Whether we need soft or hard links.
22573LN_S=$lt_LN_S
22574
22575# What is the maximum length of a command?
22576max_cmd_len=$max_cmd_len
22577
22578# Object file suffix (normally "o").
22579objext=$ac_objext
22580
22581# Executable file suffix (normally "").
22582exeext=$exeext
22583
22584# whether the shell understands "unset".
22585lt_unset=$lt_unset
22586
22587# turn spaces into newlines.
22588SP2NL=$lt_lt_SP2NL
22589
22590# turn newlines into spaces.
22591NL2SP=$lt_lt_NL2SP
22592
ee134472
JF
22593# convert \$build file names to \$host format.
22594to_host_file_cmd=$lt_cv_to_host_file_cmd
22595
22596# convert \$build files to toolchain format.
22597to_tool_file_cmd=$lt_cv_to_tool_file_cmd
9c60689e
DWT
22598
22599# An object symbol dumper.
22600OBJDUMP=$lt_OBJDUMP
22601
22602# Method to check whether dependent libraries are shared objects.
22603deplibs_check_method=$lt_deplibs_check_method
22604
ee134472 22605# Command to use when deplibs_check_method = "file_magic".
9c60689e
DWT
22606file_magic_cmd=$lt_file_magic_cmd
22607
ee134472
JF
22608# How to find potential files when deplibs_check_method = "file_magic".
22609file_magic_glob=$lt_file_magic_glob
22610
22611# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
22612want_nocaseglob=$lt_want_nocaseglob
22613
22614# DLL creation program.
22615DLLTOOL=$lt_DLLTOOL
22616
22617# Command to associate shared and link libraries.
22618sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
22619
9c60689e
DWT
22620# The archiver.
22621AR=$lt_AR
ee134472
JF
22622
22623# Flags to create an archive.
9c60689e
DWT
22624AR_FLAGS=$lt_AR_FLAGS
22625
ee134472
JF
22626# How to feed a file listing to the archiver.
22627archiver_list_spec=$lt_archiver_list_spec
22628
9c60689e
DWT
22629# A symbol stripping program.
22630STRIP=$lt_STRIP
22631
22632# Commands used to install an old-style archive.
22633RANLIB=$lt_RANLIB
22634old_postinstall_cmds=$lt_old_postinstall_cmds
22635old_postuninstall_cmds=$lt_old_postuninstall_cmds
22636
ee134472
JF
22637# Whether to use a lock for old archive extraction.
22638lock_old_archive_extraction=$lock_old_archive_extraction
22639
9c60689e
DWT
22640# A C compiler.
22641LTCC=$lt_CC
22642
22643# LTCC compiler flags.
22644LTCFLAGS=$lt_CFLAGS
22645
22646# Take the output of nm and produce a listing of raw symbols and C names.
22647global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22648
22649# Transform the output of nm in a proper C declaration.
22650global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22651
22652# Transform the output of nm in a C name address pair.
22653global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22654
22655# Transform the output of nm in a C name address pair when lib prefix is needed.
22656global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22657
ee134472
JF
22658# Specify filename containing input files for \$NM.
22659nm_file_list_spec=$lt_nm_file_list_spec
9c60689e 22660
ee134472
JF
22661# The root where to search for dependent libraries,and in which our libraries should be installed.
22662lt_sysroot=$lt_sysroot
9c60689e 22663
ee134472
JF
22664# The name of the directory that contains temporary libtool files.
22665objdir=$objdir
9c60689e
DWT
22666
22667# Used to examine libraries when file_magic_cmd begins with "file".
22668MAGIC_CMD=$MAGIC_CMD
22669
22670# Must we lock files when doing compilation?
22671need_locks=$lt_need_locks
22672
ee134472
JF
22673# Manifest tool.
22674MANIFEST_TOOL=$lt_MANIFEST_TOOL
22675
9c60689e
DWT
22676# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22677DSYMUTIL=$lt_DSYMUTIL
22678
22679# Tool to change global to local symbols on Mac OS X.
22680NMEDIT=$lt_NMEDIT
22681
22682# Tool to manipulate fat objects and archives on Mac OS X.
22683LIPO=$lt_LIPO
22684
22685# ldd/readelf like tool for Mach-O binaries on Mac OS X.
22686OTOOL=$lt_OTOOL
22687
22688# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22689OTOOL64=$lt_OTOOL64
22690
22691# Old archive suffix (normally "a").
22692libext=$libext
22693
22694# Shared library suffix (normally ".so").
22695shrext_cmds=$lt_shrext_cmds
35fa52c0 22696
9c60689e
DWT
22697# The commands to extract the exported symbol list from a shared archive.
22698extract_expsyms_cmds=$lt_extract_expsyms_cmds
35fa52c0 22699
9c60689e
DWT
22700# Variables whose values should be saved in libtool wrapper scripts and
22701# restored at link time.
22702variables_saved_for_relink=$lt_variables_saved_for_relink
35fa52c0 22703
9c60689e
DWT
22704# Do we need the "lib" prefix for modules?
22705need_lib_prefix=$need_lib_prefix
35fa52c0 22706
9c60689e
DWT
22707# Do we need a version for libraries?
22708need_version=$need_version
35fa52c0 22709
9c60689e
DWT
22710# Library versioning type.
22711version_type=$version_type
35fa52c0 22712
9c60689e
DWT
22713# Shared library runtime path variable.
22714runpath_var=$runpath_var
35fa52c0 22715
9c60689e
DWT
22716# Shared library path variable.
22717shlibpath_var=$shlibpath_var
35fa52c0 22718
9c60689e
DWT
22719# Is shlibpath searched before the hard-coded library search path?
22720shlibpath_overrides_runpath=$shlibpath_overrides_runpath
35fa52c0 22721
9c60689e
DWT
22722# Format of library name prefix.
22723libname_spec=$lt_libname_spec
35fa52c0 22724
9c60689e
DWT
22725# List of archive names. First name is the real one, the rest are links.
22726# The last name is the one that the linker finds with -lNAME
22727library_names_spec=$lt_library_names_spec
dbadc56a 22728
9c60689e
DWT
22729# The coded name of the library, if different from the real name.
22730soname_spec=$lt_soname_spec
dbadc56a 22731
ee134472
JF
22732# Permission mode override for installation of shared libraries.
22733install_override_mode=$lt_install_override_mode
22734
9c60689e
DWT
22735# Command to use after installation of a shared archive.
22736postinstall_cmds=$lt_postinstall_cmds
35fa52c0 22737
9c60689e
DWT
22738# Command to use after uninstallation of a shared archive.
22739postuninstall_cmds=$lt_postuninstall_cmds
dbadc56a 22740
9c60689e
DWT
22741# Commands used to finish a libtool library installation in a directory.
22742finish_cmds=$lt_finish_cmds
35fa52c0 22743
9c60689e
DWT
22744# As "finish_cmds", except a single script fragment to be evaled but
22745# not shown.
22746finish_eval=$lt_finish_eval
35fa52c0 22747
9c60689e
DWT
22748# Whether we should hardcode library paths into libraries.
22749hardcode_into_libs=$hardcode_into_libs
dbadc56a 22750
9c60689e
DWT
22751# Compile-time system search path for libraries.
22752sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
35fa52c0 22753
9c60689e
DWT
22754# Run-time system search path for libraries.
22755sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
dbadc56a 22756
9c60689e
DWT
22757# Whether dlopen is supported.
22758dlopen_support=$enable_dlopen
dbadc56a 22759
9c60689e
DWT
22760# Whether dlopen of programs is supported.
22761dlopen_self=$enable_dlopen_self
35fa52c0 22762
9c60689e
DWT
22763# Whether dlopen of statically linked programs is supported.
22764dlopen_self_static=$enable_dlopen_self_static
35fa52c0 22765
9c60689e
DWT
22766# Commands to strip libraries.
22767old_striplib=$lt_old_striplib
22768striplib=$lt_striplib
35fa52c0 22769
35fa52c0 22770
9c60689e
DWT
22771# The linker used to build libraries.
22772LD=$lt_LD
dbadc56a 22773
ee134472
JF
22774# How to create reloadable object files.
22775reload_flag=$lt_reload_flag
22776reload_cmds=$lt_reload_cmds
22777
9c60689e
DWT
22778# Commands used to build an old-style archive.
22779old_archive_cmds=$lt_old_archive_cmds
dbadc56a 22780
9c60689e
DWT
22781# A language specific compiler.
22782CC=$lt_compiler
35fa52c0 22783
9c60689e
DWT
22784# Is the compiler the GNU compiler?
22785with_gcc=$GCC
dbadc56a 22786
9c60689e
DWT
22787# Compiler flag to turn off builtin functions.
22788no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
dbadc56a 22789
9c60689e
DWT
22790# Additional compiler flags for building library objects.
22791pic_flag=$lt_lt_prog_compiler_pic
35fa52c0 22792
ee134472
JF
22793# How to pass a linker flag through the compiler.
22794wl=$lt_lt_prog_compiler_wl
22795
9c60689e
DWT
22796# Compiler flag to prevent dynamic linking.
22797link_static_flag=$lt_lt_prog_compiler_static
35fa52c0 22798
9c60689e
DWT
22799# Does compiler simultaneously support -c and -o options?
22800compiler_c_o=$lt_lt_cv_prog_compiler_c_o
dbadc56a 22801
9c60689e
DWT
22802# Whether or not to add -lc for building shared libraries.
22803build_libtool_need_lc=$archive_cmds_need_lc
35fa52c0 22804
9c60689e
DWT
22805# Whether or not to disallow shared libs when runtime libs are static.
22806allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
35fa52c0 22807
9c60689e
DWT
22808# Compiler flag to allow reflexive dlopens.
22809export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
35fa52c0 22810
9c60689e
DWT
22811# Compiler flag to generate shared objects directly from archives.
22812whole_archive_flag_spec=$lt_whole_archive_flag_spec
dbadc56a 22813
9c60689e
DWT
22814# Whether the compiler copes with passing no objects directly.
22815compiler_needs_object=$lt_compiler_needs_object
dbadc56a 22816
9c60689e
DWT
22817# Create an old-style archive from a shared archive.
22818old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
dbadc56a 22819
9c60689e
DWT
22820# Create a temporary old-style archive to link instead of a shared archive.
22821old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
dbadc56a 22822
9c60689e
DWT
22823# Commands used to build a shared archive.
22824archive_cmds=$lt_archive_cmds
22825archive_expsym_cmds=$lt_archive_expsym_cmds
35fa52c0 22826
9c60689e
DWT
22827# Commands used to build a loadable module if different from building
22828# a shared archive.
22829module_cmds=$lt_module_cmds
22830module_expsym_cmds=$lt_module_expsym_cmds
dbadc56a 22831
9c60689e
DWT
22832# Whether we are building with GNU ld or not.
22833with_gnu_ld=$lt_with_gnu_ld
6b66678a 22834
9c60689e
DWT
22835# Flag that allows shared libraries with undefined symbols to be built.
22836allow_undefined_flag=$lt_allow_undefined_flag
6b66678a 22837
9c60689e
DWT
22838# Flag that enforces no undefined symbols.
22839no_undefined_flag=$lt_no_undefined_flag
6b66678a 22840
9c60689e
DWT
22841# Flag to hardcode \$libdir into a binary during linking.
22842# This must work even if \$libdir does not exist
22843hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
6b66678a 22844
9c60689e
DWT
22845# Whether we need a single "-rpath" flag with a separated argument.
22846hardcode_libdir_separator=$lt_hardcode_libdir_separator
6b66678a 22847
9c60689e
DWT
22848# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22849# DIR into the resulting binary.
22850hardcode_direct=$hardcode_direct
6b66678a 22851
9c60689e
DWT
22852# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22853# DIR into the resulting binary and the resulting library dependency is
22854# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22855# library is relocated.
22856hardcode_direct_absolute=$hardcode_direct_absolute
6b66678a 22857
9c60689e
DWT
22858# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22859# into the resulting binary.
22860hardcode_minus_L=$hardcode_minus_L
6b66678a 22861
9c60689e
DWT
22862# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22863# into the resulting binary.
22864hardcode_shlibpath_var=$hardcode_shlibpath_var
6b66678a 22865
9c60689e
DWT
22866# Set to "yes" if building a shared library automatically hardcodes DIR
22867# into the library and all subsequent libraries and executables linked
22868# against it.
22869hardcode_automatic=$hardcode_automatic
6b66678a 22870
9c60689e
DWT
22871# Set to yes if linker adds runtime paths of dependent libraries
22872# to runtime path list.
22873inherit_rpath=$inherit_rpath
6b66678a 22874
9c60689e
DWT
22875# Whether libtool must link a program against all its dependency libraries.
22876link_all_deplibs=$link_all_deplibs
22877
9c60689e
DWT
22878# Set to "yes" if exported symbols are required.
22879always_export_symbols=$always_export_symbols
6b66678a 22880
9c60689e
DWT
22881# The commands to list exported symbols.
22882export_symbols_cmds=$lt_export_symbols_cmds
6b66678a 22883
9c60689e
DWT
22884# Symbols that should not be listed in the preloaded symbols.
22885exclude_expsyms=$lt_exclude_expsyms
6b66678a 22886
9c60689e
DWT
22887# Symbols that must always be exported.
22888include_expsyms=$lt_include_expsyms
6b66678a 22889
9c60689e
DWT
22890# Commands necessary for linking programs (against libraries) with templates.
22891prelink_cmds=$lt_prelink_cmds
6b66678a 22892
ee134472
JF
22893# Commands necessary for finishing linking programs.
22894postlink_cmds=$lt_postlink_cmds
22895
9c60689e
DWT
22896# Specify filename containing input files.
22897file_list_spec=$lt_file_list_spec
6b66678a 22898
9c60689e
DWT
22899# How to hardcode a shared library path into an executable.
22900hardcode_action=$hardcode_action
22901
22902# The directories searched by this compiler when creating a shared library.
22903compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
22904
22905# Dependencies to place before and after the objects being linked to
22906# create a shared library.
22907predep_objects=$lt_predep_objects
22908postdep_objects=$lt_postdep_objects
22909predeps=$lt_predeps
22910postdeps=$lt_postdeps
22911
22912# The library search path used internally by the compiler when linking
22913# a shared library.
22914compiler_lib_search_path=$lt_compiler_lib_search_path
22915
22916# ### END LIBTOOL CONFIG
22917
22918_LT_EOF
22919
22920 case $host_os in
22921 aix3*)
22922 cat <<\_LT_EOF >> "$cfgfile"
22923# AIX sometimes has problems with the GCC collect2 program. For some
22924# reason, if we set the COLLECT_NAMES environment variable, the problems
22925# vanish in a puff of smoke.
22926if test "X${COLLECT_NAMES+set}" != Xset; then
22927 COLLECT_NAMES=
22928 export COLLECT_NAMES
6b66678a 22929fi
9c60689e
DWT
22930_LT_EOF
22931 ;;
22932 esac
6b66678a
DWT
22933
22934
9c60689e 22935ltmain="$ac_aux_dir/ltmain.sh"
6b66678a 22936
9c60689e
DWT
22937
22938 # We use sed instead of cat because bash on DJGPP gets confused if
22939 # if finds mixed CR/LF and LF-only lines. Since sed operates in
22940 # text mode, it properly converts lines to CR/LF. This bash problem
22941 # is reportedly fixed, but why not run on old versions too?
ee134472
JF
22942 sed '$q' "$ltmain" >> "$cfgfile" \
22943 || (rm -f "$cfgfile"; exit 1)
22944
22945 if test x"$xsi_shell" = xyes; then
22946 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
22947func_dirname ()\
22948{\
22949\ case ${1} in\
22950\ */*) func_dirname_result="${1%/*}${2}" ;;\
22951\ * ) func_dirname_result="${3}" ;;\
22952\ esac\
22953} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
22954 && mv -f "$cfgfile.tmp" "$cfgfile" \
22955 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22956test 0 -eq $? || _lt_function_replace_fail=:
22957
22958
22959 sed -e '/^func_basename ()$/,/^} # func_basename /c\
22960func_basename ()\
22961{\
22962\ func_basename_result="${1##*/}"\
22963} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
22964 && mv -f "$cfgfile.tmp" "$cfgfile" \
22965 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22966test 0 -eq $? || _lt_function_replace_fail=:
22967
22968
22969 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
22970func_dirname_and_basename ()\
22971{\
22972\ case ${1} in\
22973\ */*) func_dirname_result="${1%/*}${2}" ;;\
22974\ * ) func_dirname_result="${3}" ;;\
22975\ esac\
22976\ func_basename_result="${1##*/}"\
22977} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
22978 && mv -f "$cfgfile.tmp" "$cfgfile" \
22979 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22980test 0 -eq $? || _lt_function_replace_fail=:
22981
22982
22983 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
22984func_stripname ()\
22985{\
22986\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
22987\ # positional parameters, so assign one to ordinary parameter first.\
22988\ func_stripname_result=${3}\
22989\ func_stripname_result=${func_stripname_result#"${1}"}\
22990\ func_stripname_result=${func_stripname_result%"${2}"}\
22991} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
22992 && mv -f "$cfgfile.tmp" "$cfgfile" \
22993 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22994test 0 -eq $? || _lt_function_replace_fail=:
22995
22996
22997 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
22998func_split_long_opt ()\
22999{\
23000\ func_split_long_opt_name=${1%%=*}\
23001\ func_split_long_opt_arg=${1#*=}\
23002} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
23003 && mv -f "$cfgfile.tmp" "$cfgfile" \
23004 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23005test 0 -eq $? || _lt_function_replace_fail=:
23006
23007
23008 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
23009func_split_short_opt ()\
23010{\
23011\ func_split_short_opt_arg=${1#??}\
23012\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
23013} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
23014 && mv -f "$cfgfile.tmp" "$cfgfile" \
23015 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23016test 0 -eq $? || _lt_function_replace_fail=:
23017
23018
23019 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
23020func_lo2o ()\
23021{\
23022\ case ${1} in\
23023\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
23024\ *) func_lo2o_result=${1} ;;\
23025\ esac\
23026} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
23027 && mv -f "$cfgfile.tmp" "$cfgfile" \
23028 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23029test 0 -eq $? || _lt_function_replace_fail=:
23030
23031
23032 sed -e '/^func_xform ()$/,/^} # func_xform /c\
23033func_xform ()\
23034{\
23035 func_xform_result=${1%.*}.lo\
23036} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
23037 && mv -f "$cfgfile.tmp" "$cfgfile" \
23038 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23039test 0 -eq $? || _lt_function_replace_fail=:
23040
23041
23042 sed -e '/^func_arith ()$/,/^} # func_arith /c\
23043func_arith ()\
23044{\
23045 func_arith_result=$(( $* ))\
23046} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
23047 && mv -f "$cfgfile.tmp" "$cfgfile" \
23048 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23049test 0 -eq $? || _lt_function_replace_fail=:
23050
23051
23052 sed -e '/^func_len ()$/,/^} # func_len /c\
23053func_len ()\
23054{\
23055 func_len_result=${#1}\
23056} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
23057 && mv -f "$cfgfile.tmp" "$cfgfile" \
23058 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23059test 0 -eq $? || _lt_function_replace_fail=:
23060
23061fi
23062
23063if test x"$lt_shell_append" = xyes; then
23064 sed -e '/^func_append ()$/,/^} # func_append /c\
23065func_append ()\
23066{\
23067 eval "${1}+=\\${2}"\
23068} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
23069 && mv -f "$cfgfile.tmp" "$cfgfile" \
23070 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23071test 0 -eq $? || _lt_function_replace_fail=:
23072
23073
23074 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
23075func_append_quoted ()\
23076{\
23077\ func_quote_for_eval "${2}"\
23078\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
23079} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
23080 && mv -f "$cfgfile.tmp" "$cfgfile" \
23081 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23082test 0 -eq $? || _lt_function_replace_fail=:
23083
23084
23085 # Save a `func_append' function call where possible by direct use of '+='
23086 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
23087 && mv -f "$cfgfile.tmp" "$cfgfile" \
23088 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23089 test 0 -eq $? || _lt_function_replace_fail=:
23090else
23091 # Save a `func_append' function call even when '+=' is not available
23092 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
23093 && mv -f "$cfgfile.tmp" "$cfgfile" \
23094 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23095 test 0 -eq $? || _lt_function_replace_fail=:
23096fi
23097
23098if test x"$_lt_function_replace_fail" = x":"; then
23099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
23100$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
23101fi
23102
23103
23104 mv -f "$cfgfile" "$ofile" ||
9c60689e
DWT
23105 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23106 chmod +x "$ofile"
23107
23108
23109 cat <<_LT_EOF >> "$ofile"
23110
23111# ### BEGIN LIBTOOL TAG CONFIG: CXX
23112
23113# The linker used to build libraries.
23114LD=$lt_LD_CXX
23115
ee134472
JF
23116# How to create reloadable object files.
23117reload_flag=$lt_reload_flag_CXX
23118reload_cmds=$lt_reload_cmds_CXX
23119
9c60689e
DWT
23120# Commands used to build an old-style archive.
23121old_archive_cmds=$lt_old_archive_cmds_CXX
23122
23123# A language specific compiler.
23124CC=$lt_compiler_CXX
23125
23126# Is the compiler the GNU compiler?
23127with_gcc=$GCC_CXX
23128
23129# Compiler flag to turn off builtin functions.
23130no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
6b66678a 23131
9c60689e
DWT
23132# Additional compiler flags for building library objects.
23133pic_flag=$lt_lt_prog_compiler_pic_CXX
6b66678a 23134
ee134472
JF
23135# How to pass a linker flag through the compiler.
23136wl=$lt_lt_prog_compiler_wl_CXX
23137
9c60689e
DWT
23138# Compiler flag to prevent dynamic linking.
23139link_static_flag=$lt_lt_prog_compiler_static_CXX
6b66678a 23140
9c60689e
DWT
23141# Does compiler simultaneously support -c and -o options?
23142compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
dbadc56a 23143
9c60689e
DWT
23144# Whether or not to add -lc for building shared libraries.
23145build_libtool_need_lc=$archive_cmds_need_lc_CXX
dbadc56a 23146
9c60689e
DWT
23147# Whether or not to disallow shared libs when runtime libs are static.
23148allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
35fa52c0 23149
9c60689e
DWT
23150# Compiler flag to allow reflexive dlopens.
23151export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
35fa52c0 23152
9c60689e
DWT
23153# Compiler flag to generate shared objects directly from archives.
23154whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
35fa52c0 23155
9c60689e
DWT
23156# Whether the compiler copes with passing no objects directly.
23157compiler_needs_object=$lt_compiler_needs_object_CXX
35fa52c0 23158
9c60689e
DWT
23159# Create an old-style archive from a shared archive.
23160old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
35fa52c0 23161
9c60689e
DWT
23162# Create a temporary old-style archive to link instead of a shared archive.
23163old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
35fa52c0 23164
9c60689e
DWT
23165# Commands used to build a shared archive.
23166archive_cmds=$lt_archive_cmds_CXX
23167archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
6b66678a 23168
9c60689e
DWT
23169# Commands used to build a loadable module if different from building
23170# a shared archive.
23171module_cmds=$lt_module_cmds_CXX
23172module_expsym_cmds=$lt_module_expsym_cmds_CXX
6b66678a 23173
9c60689e
DWT
23174# Whether we are building with GNU ld or not.
23175with_gnu_ld=$lt_with_gnu_ld_CXX
6b66678a 23176
9c60689e
DWT
23177# Flag that allows shared libraries with undefined symbols to be built.
23178allow_undefined_flag=$lt_allow_undefined_flag_CXX
35fa52c0 23179
9c60689e
DWT
23180# Flag that enforces no undefined symbols.
23181no_undefined_flag=$lt_no_undefined_flag_CXX
35fa52c0 23182
9c60689e
DWT
23183# Flag to hardcode \$libdir into a binary during linking.
23184# This must work even if \$libdir does not exist
23185hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
6b66678a 23186
9c60689e
DWT
23187# Whether we need a single "-rpath" flag with a separated argument.
23188hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
6b66678a 23189
9c60689e
DWT
23190# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23191# DIR into the resulting binary.
23192hardcode_direct=$hardcode_direct_CXX
6b66678a 23193
9c60689e
DWT
23194# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23195# DIR into the resulting binary and the resulting library dependency is
23196# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
23197# library is relocated.
23198hardcode_direct_absolute=$hardcode_direct_absolute_CXX
6b66678a 23199
9c60689e
DWT
23200# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23201# into the resulting binary.
23202hardcode_minus_L=$hardcode_minus_L_CXX
35fa52c0 23203
9c60689e
DWT
23204# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23205# into the resulting binary.
23206hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
35fa52c0 23207
9c60689e
DWT
23208# Set to "yes" if building a shared library automatically hardcodes DIR
23209# into the library and all subsequent libraries and executables linked
23210# against it.
23211hardcode_automatic=$hardcode_automatic_CXX
6b66678a 23212
9c60689e
DWT
23213# Set to yes if linker adds runtime paths of dependent libraries
23214# to runtime path list.
23215inherit_rpath=$inherit_rpath_CXX
6b66678a 23216
9c60689e
DWT
23217# Whether libtool must link a program against all its dependency libraries.
23218link_all_deplibs=$link_all_deplibs_CXX
6b66678a 23219
9c60689e
DWT
23220# Set to "yes" if exported symbols are required.
23221always_export_symbols=$always_export_symbols_CXX
6b66678a 23222
9c60689e
DWT
23223# The commands to list exported symbols.
23224export_symbols_cmds=$lt_export_symbols_cmds_CXX
6b66678a 23225
9c60689e
DWT
23226# Symbols that should not be listed in the preloaded symbols.
23227exclude_expsyms=$lt_exclude_expsyms_CXX
6b66678a 23228
9c60689e
DWT
23229# Symbols that must always be exported.
23230include_expsyms=$lt_include_expsyms_CXX
6b66678a 23231
9c60689e
DWT
23232# Commands necessary for linking programs (against libraries) with templates.
23233prelink_cmds=$lt_prelink_cmds_CXX
6b66678a 23234
ee134472
JF
23235# Commands necessary for finishing linking programs.
23236postlink_cmds=$lt_postlink_cmds_CXX
23237
9c60689e
DWT
23238# Specify filename containing input files.
23239file_list_spec=$lt_file_list_spec_CXX
dbadc56a 23240
9c60689e
DWT
23241# How to hardcode a shared library path into an executable.
23242hardcode_action=$hardcode_action_CXX
309b0535 23243
9c60689e
DWT
23244# The directories searched by this compiler when creating a shared library.
23245compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
309b0535 23246
9c60689e
DWT
23247# Dependencies to place before and after the objects being linked to
23248# create a shared library.
23249predep_objects=$lt_predep_objects_CXX
23250postdep_objects=$lt_postdep_objects_CXX
23251predeps=$lt_predeps_CXX
23252postdeps=$lt_postdeps_CXX
309b0535 23253
9c60689e
DWT
23254# The library search path used internally by the compiler when linking
23255# a shared library.
23256compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
23257
23258# ### END LIBTOOL TAG CONFIG: CXX
23259_LT_EOF
23260
23261 ;;
23262
23263 esac
23264done # for ac_tag
23265
23266
23267as_fn_exit 0
23268_ACEOF
23269ac_clean_files=$ac_clean_files_save
23270
23271test $ac_write_fail = 0 ||
12833ad8 23272 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
9c60689e
DWT
23273
23274
23275# configure is writing to config.log, and then calls config.status.
23276# config.status does its own redirection, appending to config.log.
23277# Unfortunately, on DOS this fails, as config.log is still kept open
23278# by configure, so config.status won't be able to write to it; its
23279# output is simply discarded. So we exec the FD to /dev/null,
23280# effectively closing config.log, so it can be properly (re)opened and
23281# appended to by config.status. When coming back to configure, we
23282# need to make the FD available again.
23283if test "$no_create" != yes; then
23284 ac_cs_success=:
23285 ac_config_status_args=
23286 test "$silent" = yes &&
23287 ac_config_status_args="$ac_config_status_args --quiet"
23288 exec 5>/dev/null
23289 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23290 exec 5>>config.log
23291 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23292 # would make configure fail if this is the last instruction.
12833ad8 23293 $ac_cs_success || as_fn_exit 1
309b0535 23294fi
9c60689e
DWT
23295if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23296 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23297$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23298fi
23299