]> git.saurik.com Git - cycript.git/blame - configure
Use osx as the short tag for OS X instead of mac.
[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
JF
13#
14# Copyright (C) 2009-2012 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
babf7fe8 658LTOBJECTIVEC
47aaa820 659GNUSTEP_CONFIG
c823f118 660CY_OBJECTIVEC
296ee9a6 661LTLIBFFI
309b0535 662LIBFFI_LIBS
35fa52c0 663LIBFFI_CFLAGS
a243b558
JF
664CY_EXECUTE_FALSE
665CY_EXECUTE_TRUE
d4f27204 666LTLIBAPR
a93f15c0
JF
667CY_CONSOLE_FALSE
668CY_CONSOLE_TRUE
babf7fe8 669LTJAVASCRIPTCORE
35fa52c0
DWT
670WEBKIT_LIBS
671WEBKIT_CFLAGS
7eda51e0 672CY_EXECUTE
abc804fa 673CY_ARCH
9228a43a 674CY_FILTERS
e9c9a47c 675GNUTAR
e9c9a47c
DWT
676GPERF
677FLEX
678BISON
679TIME
66170b30 680GIT
12833ad8
JF
681PKG_CONFIG_LIBDIR
682PKG_CONFIG_PATH
3fd51f51 683PKG_CONFIG
a243b558 684CXXCPP
9c60689e
DWT
685CPP
686OTOOL64
687OTOOL
688LIPO
689NMEDIT
690DSYMUTIL
ee134472 691MANIFEST_TOOL
9c60689e 692RANLIB
ee134472 693DLLTOOL
9c60689e
DWT
694OBJDUMP
695LN_S
696NM
697ac_ct_DUMPBIN
698DUMPBIN
699LD
700FGREP
701EGREP
702GREP
703SED
a243b558
JF
704host_os
705host_vendor
706host_cpu
707host
708build_os
709build_vendor
710build_cpu
711build
712LIBTOOL
a243b558
JF
713ac_ct_AR
714AR
715am__fastdepOBJCXX_FALSE
716am__fastdepOBJCXX_TRUE
717OBJCXXDEPMODE
718ac_ct_OBJCXX
719OBJCXXFLAGS
720OBJCXX
721am__fastdepCXX_FALSE
722am__fastdepCXX_TRUE
723CXXDEPMODE
a93f15c0
JF
724ac_ct_CXX
725CXXFLAGS
726CXX
727am__fastdepCC_FALSE
728am__fastdepCC_TRUE
729CCDEPMODE
66170b30
JF
730am__nodep
731AMDEPBACKSLASH
732AMDEP_FALSE
733AMDEP_TRUE
734am__quote
735am__include
736DEPDIR
35fa52c0
DWT
737OBJEXT
738EXEEXT
a93f15c0 739ac_ct_CC
35fa52c0
DWT
740CPPFLAGS
741LDFLAGS
a93f15c0
JF
742CFLAGS
743CC
babf7fe8
JF
744MAINT
745MAINTAINER_MODE_FALSE
746MAINTAINER_MODE_TRUE
66170b30
JF
747AM_BACKSLASH
748AM_DEFAULT_VERBOSITY
749AM_DEFAULT_V
750AM_V
751am__untar
752am__tar
753AMTAR
754am__leading_dot
755SET_MAKE
756AWK
757mkdir_p
758MKDIR_P
759INSTALL_STRIP_PROGRAM
760STRIP
761install_sh
762MAKEINFO
763AUTOHEADER
764AUTOMAKE
765AUTOCONF
766ACLOCAL
767VERSION
768PACKAGE
769CYGPATH_W
770am__isrc
771INSTALL_DATA
772INSTALL_SCRIPT
773INSTALL_PROGRAM
dbadc56a 774target_alias
c7aa54aa
DWT
775host_alias
776build_alias
777LIBS
778ECHO_T
779ECHO_N
780ECHO_C
781DEFS
782mandir
783localedir
784libdir
785psdir
786pdfdir
787dvidir
788htmldir
789infodir
790docdir
791oldincludedir
792includedir
793localstatedir
794sharedstatedir
795sysconfdir
796datadir
797datarootdir
798libexecdir
799sbindir
800bindir
801program_transform_name
802prefix
803exec_prefix
804PACKAGE_URL
805PACKAGE_BUGREPORT
806PACKAGE_STRING
807PACKAGE_VERSION
808PACKAGE_TARNAME
809PACKAGE_NAME
810PATH_SEPARATOR
811SHELL'
812ac_subst_files=''
813ac_user_opts='
814enable_option_checking
66170b30 815enable_silent_rules
babf7fe8 816enable_maintainer_mode
a243b558 817enable_dependency_tracking
9c60689e 818enable_static
549f29b5 819enable_shared
9c60689e
DWT
820with_pic
821enable_fast_install
35fa52c0 822with_gnu_ld
ee134472 823with_sysroot
9c60689e 824enable_libtool_lock
5053a6d1 825enable_javascript
a93f15c0 826enable_console
66170b30 827with_apr
c7aa54aa
DWT
828'
829 ac_precious_vars='build_alias
830host_alias
dbadc56a 831target_alias
a93f15c0
JF
832CC
833CFLAGS
dbadc56a
DWT
834LDFLAGS
835LIBS
836CPPFLAGS
a93f15c0
JF
837CXX
838CXXFLAGS
a243b558
JF
839CCC
840OBJCXX
841OBJCXXFLAGS
9c60689e 842CPP
a243b558 843CXXCPP
3fd51f51 844PKG_CONFIG
12833ad8
JF
845PKG_CONFIG_PATH
846PKG_CONFIG_LIBDIR
e9c9a47c
DWT
847BISON
848FLEX
849GPERF
66170b30 850GNUTAR
35fa52c0
DWT
851WEBKIT_CFLAGS
852WEBKIT_LIBS
a667869d 853LIBFFI_CFLAGS
790e5246
DWT
854LIBFFI_LIBS
855GNUSTEP_CONFIG'
c7aa54aa
DWT
856
857
858# Initialize some variables set by options.
859ac_init_help=
860ac_init_version=false
861ac_unrecognized_opts=
862ac_unrecognized_sep=
863# The variables have the same names as the options, with
864# dashes changed to underlines.
865cache_file=/dev/null
866exec_prefix=NONE
867no_create=
868no_recursion=
869prefix=NONE
870program_prefix=NONE
871program_suffix=NONE
872program_transform_name=s,x,x,
873silent=
874site=
875srcdir=
876verbose=
877x_includes=NONE
878x_libraries=NONE
879
880# Installation directory options.
881# These are left unexpanded so users can "make install exec_prefix=/foo"
882# and all the variables that are supposed to be based on exec_prefix
883# by default will actually change.
884# Use braces instead of parens because sh, perl, etc. also accept them.
885# (The list follows the same order as the GNU Coding Standards.)
886bindir='${exec_prefix}/bin'
887sbindir='${exec_prefix}/sbin'
888libexecdir='${exec_prefix}/libexec'
889datarootdir='${prefix}/share'
890datadir='${datarootdir}'
891sysconfdir='${prefix}/etc'
892sharedstatedir='${prefix}/com'
893localstatedir='${prefix}/var'
894includedir='${prefix}/include'
895oldincludedir='/usr/include'
896docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
897infodir='${datarootdir}/info'
898htmldir='${docdir}'
899dvidir='${docdir}'
900pdfdir='${docdir}'
901psdir='${docdir}'
902libdir='${exec_prefix}/lib'
903localedir='${datarootdir}/locale'
904mandir='${datarootdir}/man'
905
906ac_prev=
907ac_dashdash=
908for ac_option
909do
910 # If the previous option needs an argument, assign it.
911 if test -n "$ac_prev"; then
912 eval $ac_prev=\$ac_option
913 ac_prev=
914 continue
915 fi
916
917 case $ac_option in
12833ad8
JF
918 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
919 *=) ac_optarg= ;;
920 *) ac_optarg=yes ;;
c7aa54aa
DWT
921 esac
922
923 # Accept the important Cygnus configure options, so we can diagnose typos.
924
925 case $ac_dashdash$ac_option in
926 --)
927 ac_dashdash=yes ;;
928
929 -bindir | --bindir | --bindi | --bind | --bin | --bi)
930 ac_prev=bindir ;;
931 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
932 bindir=$ac_optarg ;;
933
934 -build | --build | --buil | --bui | --bu)
935 ac_prev=build_alias ;;
936 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
937 build_alias=$ac_optarg ;;
938
939 -cache-file | --cache-file | --cache-fil | --cache-fi \
940 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
941 ac_prev=cache_file ;;
942 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
943 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
944 cache_file=$ac_optarg ;;
945
946 --config-cache | -C)
947 cache_file=config.cache ;;
948
949 -datadir | --datadir | --datadi | --datad)
950 ac_prev=datadir ;;
951 -datadir=* | --datadir=* | --datadi=* | --datad=*)
952 datadir=$ac_optarg ;;
953
954 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
955 | --dataroo | --dataro | --datar)
956 ac_prev=datarootdir ;;
957 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
958 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
959 datarootdir=$ac_optarg ;;
960
961 -disable-* | --disable-*)
962 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
963 # Reject names that are not valid shell variable names.
964 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
12833ad8 965 as_fn_error $? "invalid feature name: $ac_useropt"
c7aa54aa
DWT
966 ac_useropt_orig=$ac_useropt
967 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
968 case $ac_user_opts in
969 *"
970"enable_$ac_useropt"
971"*) ;;
972 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
973 ac_unrecognized_sep=', ';;
974 esac
975 eval enable_$ac_useropt=no ;;
976
977 -docdir | --docdir | --docdi | --doc | --do)
978 ac_prev=docdir ;;
979 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
980 docdir=$ac_optarg ;;
981
982 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
983 ac_prev=dvidir ;;
984 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
985 dvidir=$ac_optarg ;;
986
987 -enable-* | --enable-*)
988 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
989 # Reject names that are not valid shell variable names.
990 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
12833ad8 991 as_fn_error $? "invalid feature name: $ac_useropt"
c7aa54aa
DWT
992 ac_useropt_orig=$ac_useropt
993 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
994 case $ac_user_opts in
995 *"
996"enable_$ac_useropt"
997"*) ;;
998 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
999 ac_unrecognized_sep=', ';;
1000 esac
1001 eval enable_$ac_useropt=\$ac_optarg ;;
1002
1003 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1004 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1005 | --exec | --exe | --ex)
1006 ac_prev=exec_prefix ;;
1007 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1008 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1009 | --exec=* | --exe=* | --ex=*)
1010 exec_prefix=$ac_optarg ;;
1011
1012 -gas | --gas | --ga | --g)
1013 # Obsolete; use --with-gas.
1014 with_gas=yes ;;
1015
1016 -help | --help | --hel | --he | -h)
1017 ac_init_help=long ;;
1018 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1019 ac_init_help=recursive ;;
1020 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1021 ac_init_help=short ;;
1022
1023 -host | --host | --hos | --ho)
1024 ac_prev=host_alias ;;
1025 -host=* | --host=* | --hos=* | --ho=*)
1026 host_alias=$ac_optarg ;;
1027
1028 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1029 ac_prev=htmldir ;;
1030 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1031 | --ht=*)
1032 htmldir=$ac_optarg ;;
1033
1034 -includedir | --includedir | --includedi | --included | --include \
1035 | --includ | --inclu | --incl | --inc)
1036 ac_prev=includedir ;;
1037 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1038 | --includ=* | --inclu=* | --incl=* | --inc=*)
1039 includedir=$ac_optarg ;;
1040
1041 -infodir | --infodir | --infodi | --infod | --info | --inf)
1042 ac_prev=infodir ;;
1043 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1044 infodir=$ac_optarg ;;
1045
1046 -libdir | --libdir | --libdi | --libd)
1047 ac_prev=libdir ;;
1048 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1049 libdir=$ac_optarg ;;
1050
1051 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1052 | --libexe | --libex | --libe)
1053 ac_prev=libexecdir ;;
1054 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1055 | --libexe=* | --libex=* | --libe=*)
1056 libexecdir=$ac_optarg ;;
1057
1058 -localedir | --localedir | --localedi | --localed | --locale)
1059 ac_prev=localedir ;;
1060 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1061 localedir=$ac_optarg ;;
1062
1063 -localstatedir | --localstatedir | --localstatedi | --localstated \
1064 | --localstate | --localstat | --localsta | --localst | --locals)
1065 ac_prev=localstatedir ;;
1066 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1067 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1068 localstatedir=$ac_optarg ;;
1069
1070 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1071 ac_prev=mandir ;;
1072 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1073 mandir=$ac_optarg ;;
1074
1075 -nfp | --nfp | --nf)
1076 # Obsolete; use --without-fp.
1077 with_fp=no ;;
1078
1079 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1080 | --no-cr | --no-c | -n)
1081 no_create=yes ;;
1082
1083 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1084 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1085 no_recursion=yes ;;
1086
1087 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1088 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1089 | --oldin | --oldi | --old | --ol | --o)
1090 ac_prev=oldincludedir ;;
1091 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1092 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1093 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1094 oldincludedir=$ac_optarg ;;
1095
1096 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1097 ac_prev=prefix ;;
1098 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1099 prefix=$ac_optarg ;;
1100
1101 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1102 | --program-pre | --program-pr | --program-p)
1103 ac_prev=program_prefix ;;
1104 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1105 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1106 program_prefix=$ac_optarg ;;
1107
1108 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1109 | --program-suf | --program-su | --program-s)
1110 ac_prev=program_suffix ;;
1111 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1112 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1113 program_suffix=$ac_optarg ;;
1114
1115 -program-transform-name | --program-transform-name \
1116 | --program-transform-nam | --program-transform-na \
1117 | --program-transform-n | --program-transform- \
1118 | --program-transform | --program-transfor \
1119 | --program-transfo | --program-transf \
1120 | --program-trans | --program-tran \
1121 | --progr-tra | --program-tr | --program-t)
1122 ac_prev=program_transform_name ;;
1123 -program-transform-name=* | --program-transform-name=* \
1124 | --program-transform-nam=* | --program-transform-na=* \
1125 | --program-transform-n=* | --program-transform-=* \
1126 | --program-transform=* | --program-transfor=* \
1127 | --program-transfo=* | --program-transf=* \
1128 | --program-trans=* | --program-tran=* \
1129 | --progr-tra=* | --program-tr=* | --program-t=*)
1130 program_transform_name=$ac_optarg ;;
1131
1132 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1133 ac_prev=pdfdir ;;
1134 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1135 pdfdir=$ac_optarg ;;
1136
1137 -psdir | --psdir | --psdi | --psd | --ps)
1138 ac_prev=psdir ;;
1139 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1140 psdir=$ac_optarg ;;
1141
1142 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1143 | -silent | --silent | --silen | --sile | --sil)
1144 silent=yes ;;
1145
1146 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1147 ac_prev=sbindir ;;
1148 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1149 | --sbi=* | --sb=*)
1150 sbindir=$ac_optarg ;;
1151
1152 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1153 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1154 | --sharedst | --shareds | --shared | --share | --shar \
1155 | --sha | --sh)
1156 ac_prev=sharedstatedir ;;
1157 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1158 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1159 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1160 | --sha=* | --sh=*)
1161 sharedstatedir=$ac_optarg ;;
1162
1163 -site | --site | --sit)
1164 ac_prev=site ;;
1165 -site=* | --site=* | --sit=*)
1166 site=$ac_optarg ;;
1167
1168 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1169 ac_prev=srcdir ;;
1170 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1171 srcdir=$ac_optarg ;;
1172
1173 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1174 | --syscon | --sysco | --sysc | --sys | --sy)
1175 ac_prev=sysconfdir ;;
1176 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1177 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1178 sysconfdir=$ac_optarg ;;
1179
1180 -target | --target | --targe | --targ | --tar | --ta | --t)
1181 ac_prev=target_alias ;;
1182 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1183 target_alias=$ac_optarg ;;
1184
1185 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1186 verbose=yes ;;
1187
1188 -version | --version | --versio | --versi | --vers | -V)
1189 ac_init_version=: ;;
1190
1191 -with-* | --with-*)
1192 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1193 # Reject names that are not valid shell variable names.
1194 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
12833ad8 1195 as_fn_error $? "invalid package name: $ac_useropt"
c7aa54aa
DWT
1196 ac_useropt_orig=$ac_useropt
1197 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1198 case $ac_user_opts in
1199 *"
1200"with_$ac_useropt"
1201"*) ;;
1202 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1203 ac_unrecognized_sep=', ';;
1204 esac
1205 eval with_$ac_useropt=\$ac_optarg ;;
1206
1207 -without-* | --without-*)
1208 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1209 # Reject names that are not valid shell variable names.
1210 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
12833ad8 1211 as_fn_error $? "invalid package name: $ac_useropt"
c7aa54aa
DWT
1212 ac_useropt_orig=$ac_useropt
1213 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1214 case $ac_user_opts in
1215 *"
1216"with_$ac_useropt"
1217"*) ;;
1218 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1219 ac_unrecognized_sep=', ';;
1220 esac
1221 eval with_$ac_useropt=no ;;
1222
1223 --x)
1224 # Obsolete; use --with-x.
1225 with_x=yes ;;
1226
1227 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1228 | --x-incl | --x-inc | --x-in | --x-i)
1229 ac_prev=x_includes ;;
1230 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1231 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1232 x_includes=$ac_optarg ;;
1233
1234 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1235 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1236 ac_prev=x_libraries ;;
1237 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1238 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1239 x_libraries=$ac_optarg ;;
1240
12833ad8
JF
1241 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1242Try \`$0 --help' for more information"
c7aa54aa
DWT
1243 ;;
1244
1245 *=*)
1246 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1247 # Reject names that are not valid shell variable names.
1248 case $ac_envvar in #(
1249 '' | [0-9]* | *[!_$as_cr_alnum]* )
12833ad8 1250 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
c7aa54aa
DWT
1251 esac
1252 eval $ac_envvar=\$ac_optarg
1253 export $ac_envvar ;;
1254
1255 *)
1256 # FIXME: should be removed in autoconf 3.0.
1257 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1258 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1259 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
ee134472 1260 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
c7aa54aa
DWT
1261 ;;
1262
1263 esac
1264done
1265
1266if test -n "$ac_prev"; then
1267 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
12833ad8 1268 as_fn_error $? "missing argument to $ac_option"
c7aa54aa
DWT
1269fi
1270
1271if test -n "$ac_unrecognized_opts"; then
1272 case $enable_option_checking in
1273 no) ;;
12833ad8 1274 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
c7aa54aa
DWT
1275 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1276 esac
1277fi
1278
1279# Check all directory arguments for consistency.
1280for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1281 datadir sysconfdir sharedstatedir localstatedir includedir \
1282 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1283 libdir localedir mandir
1284do
1285 eval ac_val=\$$ac_var
1286 # Remove trailing slashes.
1287 case $ac_val in
1288 */ )
1289 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1290 eval $ac_var=\$ac_val;;
1291 esac
1292 # Be sure to have absolute directory names.
1293 case $ac_val in
1294 [\\/$]* | ?:[\\/]* ) continue;;
1295 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1296 esac
12833ad8 1297 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
c7aa54aa
DWT
1298done
1299
1300# There might be people who depend on the old broken behavior: `$host'
1301# used to hold the argument of --host etc.
1302# FIXME: To remove some day.
1303build=$build_alias
1304host=$host_alias
1305target=$target_alias
1306
1307# FIXME: To remove some day.
1308if test "x$host_alias" != x; then
1309 if test "x$build_alias" = x; then
1310 cross_compiling=maybe
c7aa54aa
DWT
1311 elif test "x$build_alias" != "x$host_alias"; then
1312 cross_compiling=yes
1313 fi
1314fi
1315
1316ac_tool_prefix=
1317test -n "$host_alias" && ac_tool_prefix=$host_alias-
1318
1319test "$silent" = yes && exec 6>/dev/null
1320
1321
1322ac_pwd=`pwd` && test -n "$ac_pwd" &&
1323ac_ls_di=`ls -di .` &&
1324ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
12833ad8 1325 as_fn_error $? "working directory cannot be determined"
c7aa54aa 1326test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
12833ad8 1327 as_fn_error $? "pwd does not report name of working directory"
c7aa54aa
DWT
1328
1329
1330# Find the source files, if location was not specified.
1331if test -z "$srcdir"; then
1332 ac_srcdir_defaulted=yes
1333 # Try the directory containing this script, then the parent directory.
1334 ac_confdir=`$as_dirname -- "$as_myself" ||
1335$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1336 X"$as_myself" : 'X\(//\)[^/]' \| \
1337 X"$as_myself" : 'X\(//\)$' \| \
1338 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1339$as_echo X"$as_myself" |
1340 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1341 s//\1/
1342 q
1343 }
1344 /^X\(\/\/\)[^/].*/{
1345 s//\1/
1346 q
1347 }
1348 /^X\(\/\/\)$/{
1349 s//\1/
1350 q
1351 }
1352 /^X\(\/\).*/{
1353 s//\1/
1354 q
1355 }
1356 s/.*/./; q'`
1357 srcdir=$ac_confdir
1358 if test ! -r "$srcdir/$ac_unique_file"; then
1359 srcdir=..
1360 fi
1361else
1362 ac_srcdir_defaulted=no
1363fi
1364if test ! -r "$srcdir/$ac_unique_file"; then
1365 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
12833ad8 1366 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
c7aa54aa
DWT
1367fi
1368ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1369ac_abs_confdir=`(
12833ad8 1370 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
c7aa54aa
DWT
1371 pwd)`
1372# When building in place, set srcdir=.
1373if test "$ac_abs_confdir" = "$ac_pwd"; then
1374 srcdir=.
1375fi
1376# Remove unnecessary trailing slashes from srcdir.
1377# Double slashes in file names in object file debugging info
1378# mess up M-x gdb in Emacs.
1379case $srcdir in
1380*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1381esac
1382for ac_var in $ac_precious_vars; do
1383 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1384 eval ac_env_${ac_var}_value=\$${ac_var}
1385 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1386 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1387done
1388
1389#
1390# Report the --help message.
1391#
1392if test "$ac_init_help" = "long"; then
1393 # Omit some internal or obsolete options to make the list less imposing.
1394 # This message is too long to be a string in the A/UX 3.1 sh.
1395 cat <<_ACEOF
1396\`configure' configures Cycript 0.9 to adapt to many kinds of systems.
1397
1398Usage: $0 [OPTION]... [VAR=VALUE]...
1399
1400To assign environment variables (e.g., CC, CFLAGS...), specify them as
1401VAR=VALUE. See below for descriptions of some of the useful variables.
1402
1403Defaults for the options are specified in brackets.
1404
1405Configuration:
1406 -h, --help display this help and exit
1407 --help=short display options specific to this package
1408 --help=recursive display the short help of all the included packages
1409 -V, --version display version information and exit
12833ad8 1410 -q, --quiet, --silent do not print \`checking ...' messages
c7aa54aa
DWT
1411 --cache-file=FILE cache test results in FILE [disabled]
1412 -C, --config-cache alias for \`--cache-file=config.cache'
1413 -n, --no-create do not create output files
1414 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1415
1416Installation directories:
1417 --prefix=PREFIX install architecture-independent files in PREFIX
1418 [$ac_default_prefix]
1419 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1420 [PREFIX]
1421
1422By default, \`make install' will install all the files in
1423\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1424an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1425for instance \`--prefix=\$HOME'.
1426
1427For better control, use the options below.
1428
1429Fine tuning of the installation directories:
1430 --bindir=DIR user executables [EPREFIX/bin]
1431 --sbindir=DIR system admin executables [EPREFIX/sbin]
1432 --libexecdir=DIR program executables [EPREFIX/libexec]
1433 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1434 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1435 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1436 --libdir=DIR object code libraries [EPREFIX/lib]
1437 --includedir=DIR C header files [PREFIX/include]
1438 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1439 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1440 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1441 --infodir=DIR info documentation [DATAROOTDIR/info]
1442 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1443 --mandir=DIR man documentation [DATAROOTDIR/man]
1444 --docdir=DIR documentation root [DATAROOTDIR/doc/cycript]
1445 --htmldir=DIR html documentation [DOCDIR]
1446 --dvidir=DIR dvi documentation [DOCDIR]
1447 --pdfdir=DIR pdf documentation [DOCDIR]
1448 --psdir=DIR ps documentation [DOCDIR]
1449_ACEOF
1450
1451 cat <<\_ACEOF
35fa52c0 1452
66170b30
JF
1453Program names:
1454 --program-prefix=PREFIX prepend PREFIX to installed program names
1455 --program-suffix=SUFFIX append SUFFIX to installed program names
1456 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1457
35fa52c0
DWT
1458System types:
1459 --build=BUILD configure for building on BUILD [guessed]
1460 --host=HOST cross-compile to build programs to run on HOST [BUILD]
c7aa54aa
DWT
1461_ACEOF
1462fi
1463
1464if test -n "$ac_init_help"; then
1465 case $ac_init_help in
1466 short | recursive ) echo "Configuration of Cycript 0.9:";;
1467 esac
1468 cat <<\_ACEOF
1469
35fa52c0
DWT
1470Optional Features:
1471 --disable-option-checking ignore unrecognized --enable/--with options
1472 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1473 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
66170b30
JF
1474 --enable-silent-rules less verbose build output (undo: "make V=1")
1475 --disable-silent-rules verbose build output (undo: "make V=0")
babf7fe8
JF
1476 --enable-maintainer-mode
1477 enable make rules and dependencies not useful (and
1478 sometimes confusing) to the casual installer
66170b30
JF
1479 --enable-dependency-tracking
1480 do not reject slow dependency extractors
1481 --disable-dependency-tracking
1482 speeds up one-time build
a243b558
JF
1483 --enable-static[=PKGS] build static libraries [default=no]
1484 --enable-shared[=PKGS] build shared libraries [default=yes]
1485 --enable-fast-install[=PKGS]
1486 optimize for fast installation [default=yes]
9c60689e 1487 --disable-libtool-lock avoid locking (might break parallel builds)
b66977f1 1488 --enable-javascript[=ENGINE]
790e5246 1489 use a JavaScript runtime (currently the only
b66977f1
DWT
1490 available option for ENGINE is JavaScriptCore)
1491 [default=yes]
a93f15c0 1492 --disable-console disable console
35fa52c0
DWT
1493
1494Optional Packages:
1495 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1496 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
53ba6704 1497 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
9c60689e
DWT
1498 both]
1499 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
ee134472
JF
1500 --with-sysroot=DIR Search for dependent libraries within DIR
1501 (or the compiler's sysroot if not specified).
309b0535
DWT
1502 --with-apr=PATH prefix for installed APR or the full path to
1503 apr-config
35fa52c0 1504
dbadc56a 1505Some influential environment variables:
a93f15c0
JF
1506 CC C compiler command
1507 CFLAGS C compiler flags
dbadc56a
DWT
1508 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1509 nonstandard directory <lib dir>
1510 LIBS libraries to pass to the linker, e.g. -l<library>
9c60689e 1511 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
dbadc56a 1512 you have headers in a nonstandard directory <include dir>
a93f15c0
JF
1513 CXX C++ compiler command
1514 CXXFLAGS C++ compiler flags
a243b558
JF
1515 OBJCXX Objective C++ compiler command
1516 OBJCXXFLAGS Objective C++ compiler flags
9c60689e 1517 CPP C preprocessor
a243b558 1518 CXXCPP C++ preprocessor
3fd51f51 1519 PKG_CONFIG path to pkg-config utility
12833ad8
JF
1520 PKG_CONFIG_PATH
1521 directories to add to pkg-config's search path
1522 PKG_CONFIG_LIBDIR
1523 path overriding pkg-config's built-in search path
e9c9a47c
DWT
1524 BISON GNU Project parser generator (yacc replacement)
1525 FLEX the fast lexical analyser generator
1526 GPERF perfect hash function generator
66170b30 1527 GNUTAR a very sticky lump of files
35fa52c0
DWT
1528 WEBKIT_CFLAGS
1529 C compiler flags for WEBKIT, overriding pkg-config
1530 WEBKIT_LIBS linker flags for WEBKIT, overriding pkg-config
790e5246
DWT
1531 GNUSTEP_CONFIG
1532 prints information about the current gnustep installation
dbadc56a
DWT
1533
1534Use these variables to override the choices made by `configure' or to help
1535it to find libraries and programs with nonstandard names/locations.
1536
c7aa54aa
DWT
1537Report bugs to <saurik@saurik.com>.
1538Cycript home page: <http://www.cycript.org/>.
1539_ACEOF
1540ac_status=$?
1541fi
1542
1543if test "$ac_init_help" = "recursive"; then
1544 # If there are subdirs, report their specific --help.
1545 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1546 test -d "$ac_dir" ||
1547 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1548 continue
1549 ac_builddir=.
1550
1551case "$ac_dir" in
1552.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1553*)
1554 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1555 # A ".." for each directory in $ac_dir_suffix.
1556 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1557 case $ac_top_builddir_sub in
1558 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1559 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1560 esac ;;
1561esac
1562ac_abs_top_builddir=$ac_pwd
1563ac_abs_builddir=$ac_pwd$ac_dir_suffix
1564# for backward compatibility:
1565ac_top_builddir=$ac_top_build_prefix
1566
1567case $srcdir in
1568 .) # We are building in place.
1569 ac_srcdir=.
1570 ac_top_srcdir=$ac_top_builddir_sub
1571 ac_abs_top_srcdir=$ac_pwd ;;
1572 [\\/]* | ?:[\\/]* ) # Absolute name.
1573 ac_srcdir=$srcdir$ac_dir_suffix;
1574 ac_top_srcdir=$srcdir
1575 ac_abs_top_srcdir=$srcdir ;;
1576 *) # Relative name.
1577 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1578 ac_top_srcdir=$ac_top_build_prefix$srcdir
1579 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1580esac
1581ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1582
1583 cd "$ac_dir" || { ac_status=$?; continue; }
1584 # Check for guested configure.
1585 if test -f "$ac_srcdir/configure.gnu"; then
1586 echo &&
1587 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1588 elif test -f "$ac_srcdir/configure"; then
1589 echo &&
1590 $SHELL "$ac_srcdir/configure" --help=recursive
1591 else
1592 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1593 fi || ac_status=$?
1594 cd "$ac_pwd" || { ac_status=$?; break; }
1595 done
1596fi
1597
1598test -n "$ac_init_help" && exit $ac_status
1599if $ac_init_version; then
1600 cat <<\_ACEOF
1601Cycript configure 0.9
53ba6704 1602generated by GNU Autoconf 2.69
c7aa54aa 1603
53ba6704 1604Copyright (C) 2012 Free Software Foundation, Inc.
c7aa54aa
DWT
1605This configure script is free software; the Free Software Foundation
1606gives unlimited permission to copy, distribute and modify it.
66170b30
JF
1607
1608Copyright (C) 2009-2012 Jay Freeman (saurik)
c7aa54aa
DWT
1609_ACEOF
1610 exit
1611fi
1612
1613## ------------------------ ##
1614## Autoconf initialization. ##
1615## ------------------------ ##
dbadc56a 1616
a93f15c0
JF
1617# ac_fn_c_try_compile LINENO
1618# --------------------------
a243b558 1619# Try to compile conftest.$ac_ext, and return whether this succeeded.
a93f15c0 1620ac_fn_c_try_compile ()
a243b558
JF
1621{
1622 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1623 rm -f conftest.$ac_objext
1624 if { { ac_try="$ac_compile"
1625case "(($ac_try" in
1626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1627 *) ac_try_echo=$ac_try;;
1628esac
1629eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1630$as_echo "$ac_try_echo"; } >&5
1631 (eval "$ac_compile") 2>conftest.err
1632 ac_status=$?
1633 if test -s conftest.err; then
1634 grep -v '^ *+' conftest.err >conftest.er1
1635 cat conftest.er1 >&5
1636 mv -f conftest.er1 conftest.err
1637 fi
1638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1639 test $ac_status = 0; } && {
a93f15c0 1640 test -z "$ac_c_werror_flag" ||
a243b558
JF
1641 test ! -s conftest.err
1642 } && test -s conftest.$ac_objext; then :
1643 ac_retval=0
1644else
1645 $as_echo "$as_me: failed program was:" >&5
1646sed 's/^/| /' conftest.$ac_ext >&5
1647
1648 ac_retval=1
1649fi
1650 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1651 as_fn_set_status $ac_retval
1652
a93f15c0 1653} # ac_fn_c_try_compile
a243b558 1654
a93f15c0
JF
1655# ac_fn_cxx_try_compile LINENO
1656# ----------------------------
a243b558 1657# Try to compile conftest.$ac_ext, and return whether this succeeded.
a93f15c0 1658ac_fn_cxx_try_compile ()
a243b558
JF
1659{
1660 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1661 rm -f conftest.$ac_objext
1662 if { { ac_try="$ac_compile"
1663case "(($ac_try" in
1664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1665 *) ac_try_echo=$ac_try;;
1666esac
1667eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1668$as_echo "$ac_try_echo"; } >&5
1669 (eval "$ac_compile") 2>conftest.err
1670 ac_status=$?
1671 if test -s conftest.err; then
1672 grep -v '^ *+' conftest.err >conftest.er1
1673 cat conftest.er1 >&5
1674 mv -f conftest.er1 conftest.err
1675 fi
1676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1677 test $ac_status = 0; } && {
a93f15c0 1678 test -z "$ac_cxx_werror_flag" ||
a243b558
JF
1679 test ! -s conftest.err
1680 } && test -s conftest.$ac_objext; then :
1681 ac_retval=0
1682else
1683 $as_echo "$as_me: failed program was:" >&5
1684sed 's/^/| /' conftest.$ac_ext >&5
1685
1686 ac_retval=1
1687fi
1688 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1689 as_fn_set_status $ac_retval
1690
a93f15c0 1691} # ac_fn_cxx_try_compile
a243b558 1692
a93f15c0
JF
1693# ac_fn_objcxx_try_compile LINENO
1694# -------------------------------
35fa52c0 1695# Try to compile conftest.$ac_ext, and return whether this succeeded.
a93f15c0 1696ac_fn_objcxx_try_compile ()
35fa52c0
DWT
1697{
1698 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1699 rm -f conftest.$ac_objext
1700 if { { ac_try="$ac_compile"
1701case "(($ac_try" in
1702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1703 *) ac_try_echo=$ac_try;;
1704esac
1705eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1706$as_echo "$ac_try_echo"; } >&5
1707 (eval "$ac_compile") 2>conftest.err
1708 ac_status=$?
1709 if test -s conftest.err; then
1710 grep -v '^ *+' conftest.err >conftest.er1
1711 cat conftest.er1 >&5
1712 mv -f conftest.er1 conftest.err
1713 fi
1714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1715 test $ac_status = 0; } && {
a93f15c0 1716 test -z "$ac_objcxx_werror_flag" ||
35fa52c0
DWT
1717 test ! -s conftest.err
1718 } && test -s conftest.$ac_objext; then :
1719 ac_retval=0
1720else
1721 $as_echo "$as_me: failed program was:" >&5
1722sed 's/^/| /' conftest.$ac_ext >&5
1723
1724 ac_retval=1
1725fi
ee134472 1726 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9c60689e 1727 as_fn_set_status $ac_retval
35fa52c0 1728
a93f15c0 1729} # ac_fn_objcxx_try_compile
35fa52c0
DWT
1730
1731# ac_fn_c_try_link LINENO
1732# -----------------------
1733# Try to link conftest.$ac_ext, and return whether this succeeded.
1734ac_fn_c_try_link ()
1735{
1736 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1737 rm -f conftest.$ac_objext conftest$ac_exeext
1738 if { { ac_try="$ac_link"
1739case "(($ac_try" in
1740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1741 *) ac_try_echo=$ac_try;;
1742esac
1743eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1744$as_echo "$ac_try_echo"; } >&5
1745 (eval "$ac_link") 2>conftest.err
1746 ac_status=$?
1747 if test -s conftest.err; then
1748 grep -v '^ *+' conftest.err >conftest.er1
1749 cat conftest.er1 >&5
1750 mv -f conftest.er1 conftest.err
1751 fi
1752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1753 test $ac_status = 0; } && {
1754 test -z "$ac_c_werror_flag" ||
1755 test ! -s conftest.err
1756 } && test -s conftest$ac_exeext && {
1757 test "$cross_compiling" = yes ||
53ba6704 1758 test -x conftest$ac_exeext
35fa52c0
DWT
1759 }; then :
1760 ac_retval=0
1761else
1762 $as_echo "$as_me: failed program was:" >&5
1763sed 's/^/| /' conftest.$ac_ext >&5
1764
1765 ac_retval=1
1766fi
1767 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1768 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1769 # interfere with the next link command; also delete a directory that is
1770 # left behind by Apple's compiler. We do this before executing the actions.
1771 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
ee134472 1772 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9c60689e 1773 as_fn_set_status $ac_retval
35fa52c0
DWT
1774
1775} # ac_fn_c_try_link
1776
9c60689e
DWT
1777# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1778# -------------------------------------------------------
1779# Tests whether HEADER exists and can be compiled using the include files in
1780# INCLUDES, setting the cache variable VAR accordingly.
1781ac_fn_c_check_header_compile ()
dbadc56a
DWT
1782{
1783 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9c60689e
DWT
1784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1785$as_echo_n "checking for $2... " >&6; }
ee134472 1786if eval \${$3+:} false; then :
9c60689e
DWT
1787 $as_echo_n "(cached) " >&6
1788else
1789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1790/* end confdefs.h. */
1791$4
1792#include <$2>
1793_ACEOF
1794if ac_fn_c_try_compile "$LINENO"; then :
1795 eval "$3=yes"
1796else
1797 eval "$3=no"
1798fi
1799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1800fi
1801eval ac_res=\$$3
1802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1803$as_echo "$ac_res" >&6; }
ee134472 1804 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9c60689e
DWT
1805
1806} # ac_fn_c_check_header_compile
1807
1808# ac_fn_c_try_cpp LINENO
1809# ----------------------
1810# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1811ac_fn_c_try_cpp ()
1812{
1813 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1814 if { { ac_try="$ac_cpp conftest.$ac_ext"
dbadc56a
DWT
1815case "(($ac_try" in
1816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1817 *) ac_try_echo=$ac_try;;
1818esac
1819eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1820$as_echo "$ac_try_echo"; } >&5
9c60689e 1821 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
dbadc56a
DWT
1822 ac_status=$?
1823 if test -s conftest.err; then
1824 grep -v '^ *+' conftest.err >conftest.er1
1825 cat conftest.er1 >&5
1826 mv -f conftest.er1 conftest.err
1827 fi
1828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12833ad8 1829 test $ac_status = 0; } > conftest.i && {
9c60689e 1830 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
dbadc56a 1831 test ! -s conftest.err
9c60689e 1832 }; then :
dbadc56a
DWT
1833 ac_retval=0
1834else
1835 $as_echo "$as_me: failed program was:" >&5
1836sed 's/^/| /' conftest.$ac_ext >&5
1837
9c60689e 1838 ac_retval=1
dbadc56a 1839fi
ee134472 1840 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9c60689e 1841 as_fn_set_status $ac_retval
dbadc56a 1842
9c60689e 1843} # ac_fn_c_try_cpp
35fa52c0
DWT
1844
1845# ac_fn_c_try_run LINENO
1846# ----------------------
1847# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1848# that executables *can* be run.
1849ac_fn_c_try_run ()
1850{
1851 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1852 if { { ac_try="$ac_link"
1853case "(($ac_try" in
1854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1855 *) ac_try_echo=$ac_try;;
1856esac
1857eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1858$as_echo "$ac_try_echo"; } >&5
1859 (eval "$ac_link") 2>&5
1860 ac_status=$?
1861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1862 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1863 { { case "(($ac_try" in
1864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1865 *) ac_try_echo=$ac_try;;
1866esac
1867eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1868$as_echo "$ac_try_echo"; } >&5
1869 (eval "$ac_try") 2>&5
1870 ac_status=$?
1871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1872 test $ac_status = 0; }; }; then :
1873 ac_retval=0
1874else
1875 $as_echo "$as_me: program exited with status $ac_status" >&5
1876 $as_echo "$as_me: failed program was:" >&5
1877sed 's/^/| /' conftest.$ac_ext >&5
1878
1879 ac_retval=$ac_status
1880fi
1881 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
ee134472 1882 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9c60689e 1883 as_fn_set_status $ac_retval
35fa52c0
DWT
1884
1885} # ac_fn_c_try_run
6b66678a 1886
9c60689e
DWT
1887# ac_fn_c_check_func LINENO FUNC VAR
1888# ----------------------------------
1889# Tests whether FUNC exists, setting the cache variable VAR accordingly
1890ac_fn_c_check_func ()
6b66678a
DWT
1891{
1892 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9c60689e
DWT
1893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1894$as_echo_n "checking for $2... " >&6; }
ee134472 1895if eval \${$3+:} false; then :
9c60689e 1896 $as_echo_n "(cached) " >&6
6b66678a 1897else
9c60689e
DWT
1898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1899/* end confdefs.h. */
1900/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1901 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1902#define $2 innocuous_$2
6b66678a 1903
9c60689e
DWT
1904/* System header to define __stub macros and hopefully few prototypes,
1905 which can conflict with char $2 (); below.
1906 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1907 <limits.h> exists even on freestanding compilers. */
1908
1909#ifdef __STDC__
1910# include <limits.h>
1911#else
1912# include <assert.h>
1913#endif
1914
1915#undef $2
1916
1917/* Override any GCC internal prototype to avoid an error.
1918 Use char because int might match the return type of a GCC
1919 builtin and then its argument prototype would still apply. */
1920#ifdef __cplusplus
1921extern "C"
1922#endif
1923char $2 ();
1924/* The GNU C library defines this for functions which it implements
1925 to always fail with ENOSYS. Some functions are actually named
1926 something starting with __ and the normal name is an alias. */
1927#if defined __stub_$2 || defined __stub___$2
1928choke me
1929#endif
1930
1931int
1932main ()
1933{
1934return $2 ();
1935 ;
1936 return 0;
1937}
1938_ACEOF
1939if ac_fn_c_try_link "$LINENO"; then :
1940 eval "$3=yes"
1941else
1942 eval "$3=no"
1943fi
1944rm -f core conftest.err conftest.$ac_objext \
1945 conftest$ac_exeext conftest.$ac_ext
6b66678a 1946fi
9c60689e
DWT
1947eval ac_res=\$$3
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1949$as_echo "$ac_res" >&6; }
ee134472 1950 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
6b66678a 1951
9c60689e 1952} # ac_fn_c_check_func
6b66678a 1953
9c60689e
DWT
1954# ac_fn_cxx_try_cpp LINENO
1955# ------------------------
1956# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1957ac_fn_cxx_try_cpp ()
1958{
1959 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1960 if { { ac_try="$ac_cpp conftest.$ac_ext"
1961case "(($ac_try" in
1962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1963 *) ac_try_echo=$ac_try;;
1964esac
1965eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1966$as_echo "$ac_try_echo"; } >&5
1967 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1968 ac_status=$?
1969 if test -s conftest.err; then
1970 grep -v '^ *+' conftest.err >conftest.er1
1971 cat conftest.er1 >&5
1972 mv -f conftest.er1 conftest.err
1973 fi
1974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12833ad8 1975 test $ac_status = 0; } > conftest.i && {
9c60689e
DWT
1976 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1977 test ! -s conftest.err
1978 }; then :
1979 ac_retval=0
1980else
1981 $as_echo "$as_me: failed program was:" >&5
1982sed 's/^/| /' conftest.$ac_ext >&5
1983
1984 ac_retval=1
1985fi
ee134472 1986 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9c60689e
DWT
1987 as_fn_set_status $ac_retval
1988
1989} # ac_fn_cxx_try_cpp
1990
1991# ac_fn_cxx_try_link LINENO
1992# -------------------------
1993# Try to link conftest.$ac_ext, and return whether this succeeded.
1994ac_fn_cxx_try_link ()
1995{
1996 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1997 rm -f conftest.$ac_objext conftest$ac_exeext
1998 if { { ac_try="$ac_link"
1999case "(($ac_try" in
2000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2001 *) ac_try_echo=$ac_try;;
2002esac
2003eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2004$as_echo "$ac_try_echo"; } >&5
2005 (eval "$ac_link") 2>conftest.err
2006 ac_status=$?
2007 if test -s conftest.err; then
2008 grep -v '^ *+' conftest.err >conftest.er1
2009 cat conftest.er1 >&5
2010 mv -f conftest.er1 conftest.err
2011 fi
2012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2013 test $ac_status = 0; } && {
2014 test -z "$ac_cxx_werror_flag" ||
2015 test ! -s conftest.err
2016 } && test -s conftest$ac_exeext && {
2017 test "$cross_compiling" = yes ||
53ba6704 2018 test -x conftest$ac_exeext
9c60689e
DWT
2019 }; then :
2020 ac_retval=0
2021else
2022 $as_echo "$as_me: failed program was:" >&5
2023sed 's/^/| /' conftest.$ac_ext >&5
2024
2025 ac_retval=1
2026fi
2027 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2028 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2029 # interfere with the next link command; also delete a directory that is
2030 # left behind by Apple's compiler. We do this before executing the actions.
2031 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
ee134472 2032 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9c60689e
DWT
2033 as_fn_set_status $ac_retval
2034
2035} # ac_fn_cxx_try_link
2036
47aaa820
DWT
2037# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2038# ---------------------------------------------------------
2039# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2040# the include files in INCLUDES and setting the cache variable VAR
2041# accordingly.
2042ac_fn_cxx_check_header_mongrel ()
2043{
2044 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
ee134472 2045 if eval \${$3+:} false; then :
47aaa820
DWT
2046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2047$as_echo_n "checking for $2... " >&6; }
ee134472 2048if eval \${$3+:} false; then :
47aaa820
DWT
2049 $as_echo_n "(cached) " >&6
2050fi
2051eval ac_res=\$$3
2052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2053$as_echo "$ac_res" >&6; }
2054else
2055 # Is the header compilable?
2056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2057$as_echo_n "checking $2 usability... " >&6; }
2058cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2059/* end confdefs.h. */
2060$4
2061#include <$2>
2062_ACEOF
2063if ac_fn_cxx_try_compile "$LINENO"; then :
2064 ac_header_compiler=yes
2065else
2066 ac_header_compiler=no
2067fi
2068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2070$as_echo "$ac_header_compiler" >&6; }
2071
2072# Is the header present?
2073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2074$as_echo_n "checking $2 presence... " >&6; }
2075cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2076/* end confdefs.h. */
2077#include <$2>
2078_ACEOF
2079if ac_fn_cxx_try_cpp "$LINENO"; then :
2080 ac_header_preproc=yes
2081else
2082 ac_header_preproc=no
2083fi
12833ad8 2084rm -f conftest.err conftest.i conftest.$ac_ext
47aaa820
DWT
2085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2086$as_echo "$ac_header_preproc" >&6; }
2087
2088# So? What about this header?
2089case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2090 yes:no: )
2091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2092$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2093 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2094$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2095 ;;
2096 no:yes:* )
2097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2098$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2100$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2102$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2103 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2104$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2105 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2106$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
12833ad8 2107( $as_echo "## -------------------------------- ##
47aaa820 2108## Report this to saurik@saurik.com ##
12833ad8 2109## -------------------------------- ##"
47aaa820
DWT
2110 ) | sed "s/^/$as_me: WARNING: /" >&2
2111 ;;
2112esac
2113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2114$as_echo_n "checking for $2... " >&6; }
ee134472 2115if eval \${$3+:} false; then :
47aaa820
DWT
2116 $as_echo_n "(cached) " >&6
2117else
2118 eval "$3=\$ac_header_compiler"
2119fi
2120eval ac_res=\$$3
2121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2122$as_echo "$ac_res" >&6; }
2123fi
ee134472 2124 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
47aaa820
DWT
2125
2126} # ac_fn_cxx_check_header_mongrel
2127
c823f118
DWT
2128# ac_fn_objcxx_try_link LINENO
2129# ----------------------------
2130# Try to link conftest.$ac_ext, and return whether this succeeded.
2131ac_fn_objcxx_try_link ()
2132{
2133 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2134 rm -f conftest.$ac_objext conftest$ac_exeext
2135 if { { ac_try="$ac_link"
2136case "(($ac_try" in
2137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2138 *) ac_try_echo=$ac_try;;
2139esac
2140eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2141$as_echo "$ac_try_echo"; } >&5
2142 (eval "$ac_link") 2>conftest.err
2143 ac_status=$?
2144 if test -s conftest.err; then
2145 grep -v '^ *+' conftest.err >conftest.er1
2146 cat conftest.er1 >&5
2147 mv -f conftest.er1 conftest.err
2148 fi
2149 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2150 test $ac_status = 0; } && {
2151 test -z "$ac_objcxx_werror_flag" ||
2152 test ! -s conftest.err
2153 } && test -s conftest$ac_exeext && {
2154 test "$cross_compiling" = yes ||
53ba6704 2155 test -x conftest$ac_exeext
c823f118
DWT
2156 }; then :
2157 ac_retval=0
2158else
2159 $as_echo "$as_me: failed program was:" >&5
2160sed 's/^/| /' conftest.$ac_ext >&5
2161
2162 ac_retval=1
2163fi
2164 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2165 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2166 # interfere with the next link command; also delete a directory that is
2167 # left behind by Apple's compiler. We do this before executing the actions.
2168 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
ee134472 2169 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
c823f118
DWT
2170 as_fn_set_status $ac_retval
2171
2172} # ac_fn_objcxx_try_link
c7aa54aa
DWT
2173cat >config.log <<_ACEOF
2174This file contains any messages produced by compilers while
2175running configure, to aid debugging if configure makes a mistake.
2176
2177It was created by Cycript $as_me 0.9, which was
53ba6704 2178generated by GNU Autoconf 2.69. Invocation command line was
c7aa54aa
DWT
2179
2180 $ $0 $@
2181
2182_ACEOF
2183exec 5>>config.log
2184{
2185cat <<_ASUNAME
2186## --------- ##
2187## Platform. ##
2188## --------- ##
2189
2190hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2191uname -m = `(uname -m) 2>/dev/null || echo unknown`
2192uname -r = `(uname -r) 2>/dev/null || echo unknown`
2193uname -s = `(uname -s) 2>/dev/null || echo unknown`
2194uname -v = `(uname -v) 2>/dev/null || echo unknown`
2195
2196/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2197/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2198
2199/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2200/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2201/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2202/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2203/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2204/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2205/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2206
2207_ASUNAME
2208
2209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2210for as_dir in $PATH
2211do
2212 IFS=$as_save_IFS
2213 test -z "$as_dir" && as_dir=.
2214 $as_echo "PATH: $as_dir"
2215 done
2216IFS=$as_save_IFS
2217
2218} >&5
2219
2220cat >&5 <<_ACEOF
2221
2222
2223## ----------- ##
2224## Core tests. ##
2225## ----------- ##
2226
2227_ACEOF
2228
2229
2230# Keep a trace of the command line.
2231# Strip out --no-create and --no-recursion so they do not pile up.
2232# Strip out --silent because we don't want to record it for future runs.
2233# Also quote any args containing shell meta-characters.
2234# Make two passes to allow for proper duplicate-argument suppression.
2235ac_configure_args=
2236ac_configure_args0=
2237ac_configure_args1=
2238ac_must_keep_next=false
2239for ac_pass in 1 2
2240do
2241 for ac_arg
2242 do
2243 case $ac_arg in
2244 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2245 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2246 | -silent | --silent | --silen | --sile | --sil)
2247 continue ;;
2248 *\'*)
2249 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2250 esac
2251 case $ac_pass in
2252 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2253 2)
2254 as_fn_append ac_configure_args1 " '$ac_arg'"
2255 if test $ac_must_keep_next = true; then
2256 ac_must_keep_next=false # Got value, back to normal.
2257 else
2258 case $ac_arg in
2259 *=* | --config-cache | -C | -disable-* | --disable-* \
2260 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2261 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2262 | -with-* | --with-* | -without-* | --without-* | --x)
2263 case "$ac_configure_args0 " in
2264 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2265 esac
2266 ;;
2267 -* ) ac_must_keep_next=true ;;
2268 esac
2269 fi
2270 as_fn_append ac_configure_args " '$ac_arg'"
2271 ;;
2272 esac
2273 done
2274done
2275{ ac_configure_args0=; unset ac_configure_args0;}
2276{ ac_configure_args1=; unset ac_configure_args1;}
2277
2278# When interrupted or exit'd, cleanup temporary files, and complete
2279# config.log. We remove comments because anyway the quotes in there
2280# would cause problems or look ugly.
2281# WARNING: Use '\'' to represent an apostrophe within the trap.
2282# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2283trap 'exit_status=$?
2284 # Save into config.log some information that might help in debugging.
2285 {
2286 echo
2287
12833ad8 2288 $as_echo "## ---------------- ##
c7aa54aa 2289## Cache variables. ##
12833ad8 2290## ---------------- ##"
c7aa54aa
DWT
2291 echo
2292 # The following way of writing the cache mishandles newlines in values,
2293(
2294 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2295 eval ac_val=\$$ac_var
2296 case $ac_val in #(
2297 *${as_nl}*)
2298 case $ac_var in #(
2299 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2300$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2301 esac
2302 case $ac_var in #(
2303 _ | IFS | as_nl) ;; #(
2304 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2305 *) { eval $ac_var=; unset $ac_var;} ;;
2306 esac ;;
2307 esac
2308 done
2309 (set) 2>&1 |
2310 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2311 *${as_nl}ac_space=\ *)
2312 sed -n \
2313 "s/'\''/'\''\\\\'\'''\''/g;
2314 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2315 ;; #(
2316 *)
2317 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2318 ;;
2319 esac |
2320 sort
2321)
2322 echo
2323
12833ad8 2324 $as_echo "## ----------------- ##
c7aa54aa 2325## Output variables. ##
12833ad8 2326## ----------------- ##"
c7aa54aa
DWT
2327 echo
2328 for ac_var in $ac_subst_vars
2329 do
2330 eval ac_val=\$$ac_var
2331 case $ac_val in
2332 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2333 esac
2334 $as_echo "$ac_var='\''$ac_val'\''"
2335 done | sort
2336 echo
2337
2338 if test -n "$ac_subst_files"; then
12833ad8 2339 $as_echo "## ------------------- ##
c7aa54aa 2340## File substitutions. ##
12833ad8 2341## ------------------- ##"
c7aa54aa
DWT
2342 echo
2343 for ac_var in $ac_subst_files
2344 do
2345 eval ac_val=\$$ac_var
2346 case $ac_val in
2347 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2348 esac
2349 $as_echo "$ac_var='\''$ac_val'\''"
2350 done | sort
2351 echo
2352 fi
2353
2354 if test -s confdefs.h; then
12833ad8 2355 $as_echo "## ----------- ##
c7aa54aa 2356## confdefs.h. ##
12833ad8 2357## ----------- ##"
c7aa54aa
DWT
2358 echo
2359 cat confdefs.h
2360 echo
2361 fi
2362 test "$ac_signal" != 0 &&
2363 $as_echo "$as_me: caught signal $ac_signal"
2364 $as_echo "$as_me: exit $exit_status"
2365 } >&5
2366 rm -f core *.core core.conftest.* &&
2367 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2368 exit $exit_status
2369' 0
2370for ac_signal in 1 2 13 15; do
2371 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2372done
2373ac_signal=0
2374
2375# confdefs.h avoids OS command line length limits that DEFS can exceed.
2376rm -f -r conftest* confdefs.h
2377
2378$as_echo "/* confdefs.h */" > confdefs.h
2379
2380# Predefined preprocessor variables.
2381
2382cat >>confdefs.h <<_ACEOF
2383#define PACKAGE_NAME "$PACKAGE_NAME"
2384_ACEOF
2385
2386cat >>confdefs.h <<_ACEOF
2387#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2388_ACEOF
2389
2390cat >>confdefs.h <<_ACEOF
2391#define PACKAGE_VERSION "$PACKAGE_VERSION"
2392_ACEOF
2393
2394cat >>confdefs.h <<_ACEOF
2395#define PACKAGE_STRING "$PACKAGE_STRING"
2396_ACEOF
2397
2398cat >>confdefs.h <<_ACEOF
2399#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2400_ACEOF
2401
2402cat >>confdefs.h <<_ACEOF
2403#define PACKAGE_URL "$PACKAGE_URL"
2404_ACEOF
2405
2406
2407# Let the site file select an alternate cache file if it wants to.
2408# Prefer an explicitly selected file to automatically selected ones.
2409ac_site_file1=NONE
2410ac_site_file2=NONE
2411if test -n "$CONFIG_SITE"; then
12833ad8
JF
2412 # We do not want a PATH search for config.site.
2413 case $CONFIG_SITE in #((
2414 -*) ac_site_file1=./$CONFIG_SITE;;
2415 */*) ac_site_file1=$CONFIG_SITE;;
2416 *) ac_site_file1=./$CONFIG_SITE;;
2417 esac
c7aa54aa
DWT
2418elif test "x$prefix" != xNONE; then
2419 ac_site_file1=$prefix/share/config.site
2420 ac_site_file2=$prefix/etc/config.site
2421else
2422 ac_site_file1=$ac_default_prefix/share/config.site
2423 ac_site_file2=$ac_default_prefix/etc/config.site
2424fi
2425for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2426do
2427 test "x$ac_site_file" = xNONE && continue
9c60689e 2428 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
c7aa54aa
DWT
2429 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2430$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2431 sed 's/^/| /' "$ac_site_file" >&5
12833ad8
JF
2432 . "$ac_site_file" \
2433 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2434$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2435as_fn_error $? "failed to load site script $ac_site_file
ee134472 2436See \`config.log' for more details" "$LINENO" 5; }
c7aa54aa
DWT
2437 fi
2438done
2439
2440if test -r "$cache_file"; then
9c60689e
DWT
2441 # Some versions of bash will fail to source /dev/null (special files
2442 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2443 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
c7aa54aa
DWT
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2445$as_echo "$as_me: loading cache $cache_file" >&6;}
2446 case $cache_file in
2447 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2448 *) . "./$cache_file";;
2449 esac
2450 fi
2451else
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2453$as_echo "$as_me: creating cache $cache_file" >&6;}
2454 >$cache_file
2455fi
2456
2457# Check that the precious variables saved in the cache have kept the same
2458# value.
2459ac_cache_corrupted=false
2460for ac_var in $ac_precious_vars; do
2461 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2462 eval ac_new_set=\$ac_env_${ac_var}_set
2463 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2464 eval ac_new_val=\$ac_env_${ac_var}_value
2465 case $ac_old_set,$ac_new_set in
2466 set,)
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2468$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2469 ac_cache_corrupted=: ;;
2470 ,set)
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2472$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2473 ac_cache_corrupted=: ;;
2474 ,);;
2475 *)
2476 if test "x$ac_old_val" != "x$ac_new_val"; then
2477 # differences in whitespace do not lead to failure.
2478 ac_old_val_w=`echo x $ac_old_val`
2479 ac_new_val_w=`echo x $ac_new_val`
2480 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2482$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2483 ac_cache_corrupted=:
2484 else
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2486$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2487 eval $ac_var=\$ac_old_val
2488 fi
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2490$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2492$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2493 fi;;
2494 esac
2495 # Pass precious variables to config.status.
2496 if test "$ac_new_set" = set; then
2497 case $ac_new_val in
2498 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2499 *) ac_arg=$ac_var=$ac_new_val ;;
2500 esac
2501 case " $ac_configure_args " in
2502 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2503 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2504 esac
2505 fi
2506done
2507if $ac_cache_corrupted; then
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2509$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2511$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
12833ad8 2512 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
c7aa54aa
DWT
2513fi
2514## -------------------- ##
2515## Main body of script. ##
2516## -------------------- ##
2517
2518ac_ext=c
2519ac_cpp='$CPP $CPPFLAGS'
2520ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2521ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2522ac_compiler_gnu=$ac_cv_c_compiler_gnu
2523
2524
66170b30
JF
2525
2526
35fa52c0 2527
6b66678a
DWT
2528ac_aux_dir=
2529for ac_dir in . "$srcdir"/.; do
12833ad8
JF
2530 if test -f "$ac_dir/install-sh"; then
2531 ac_aux_dir=$ac_dir
2532 ac_install_sh="$ac_aux_dir/install-sh -c"
2533 break
2534 elif test -f "$ac_dir/install.sh"; then
2535 ac_aux_dir=$ac_dir
2536 ac_install_sh="$ac_aux_dir/install.sh -c"
2537 break
2538 elif test -f "$ac_dir/shtool"; then
2539 ac_aux_dir=$ac_dir
2540 ac_install_sh="$ac_aux_dir/shtool install -c"
2541 break
2542 fi
6b66678a
DWT
2543done
2544if test -z "$ac_aux_dir"; then
12833ad8 2545 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
6b66678a
DWT
2546fi
2547
2548# These three variables are undocumented and unsupported,
2549# and are intended to be withdrawn in a future Autoconf release.
2550# They can cause serious problems if a builder's source tree is in a directory
2551# whose full name contains unusual characters.
2552ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2553ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2554ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2555
2556
9c60689e 2557
296ee9a6
JF
2558ac_config_headers="$ac_config_headers config.h"
2559
9c60689e 2560
a93f15c0 2561am__api_version='1.14'
9c60689e 2562
66170b30
JF
2563# Find a good install program. We prefer a C program (faster),
2564# so one script is as good as another. But avoid the broken or
2565# incompatible versions:
2566# SysV /etc/install, /usr/sbin/install
2567# SunOS /usr/etc/install
2568# IRIX /sbin/install
2569# AIX /bin/install
2570# AmigaOS /C/install, which installs bootblocks on floppy discs
2571# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2572# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2573# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2574# OS/2's system install, which has a completely different semantic
2575# ./install, which can be erroneously created by make from ./install.sh.
2576# Reject install programs that cannot install multiple files.
2577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2578$as_echo_n "checking for a BSD-compatible install... " >&6; }
2579if test -z "$INSTALL"; then
2580if ${ac_cv_path_install+:} false; then :
2581 $as_echo_n "(cached) " >&6
2582else
2583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2584for as_dir in $PATH
2585do
2586 IFS=$as_save_IFS
2587 test -z "$as_dir" && as_dir=.
2588 # Account for people who put trailing slashes in PATH elements.
2589case $as_dir/ in #((
2590 ./ | .// | /[cC]/* | \
2591 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2592 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2593 /usr/ucb/* ) ;;
2594 *)
2595 # OSF1 and SCO ODT 3.0 have their own names for install.
2596 # Don't use installbsd from OSF since it installs stuff as root
2597 # by default.
2598 for ac_prog in ginstall scoinst install; do
2599 for ac_exec_ext in '' $ac_executable_extensions; do
2600 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2601 if test $ac_prog = install &&
2602 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2603 # AIX install. It has an incompatible calling convention.
2604 :
2605 elif test $ac_prog = install &&
2606 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2607 # program-specific install script used by HP pwplus--don't use.
2608 :
2609 else
2610 rm -rf conftest.one conftest.two conftest.dir
2611 echo one > conftest.one
2612 echo two > conftest.two
2613 mkdir conftest.dir
2614 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2615 test -s conftest.one && test -s conftest.two &&
2616 test -s conftest.dir/conftest.one &&
2617 test -s conftest.dir/conftest.two
2618 then
2619 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2620 break 3
2621 fi
2622 fi
2623 fi
2624 done
2625 done
2626 ;;
2627esac
9c60689e 2628
66170b30
JF
2629 done
2630IFS=$as_save_IFS
9c60689e 2631
66170b30 2632rm -rf conftest.one conftest.two conftest.dir
9c60689e 2633
66170b30
JF
2634fi
2635 if test "${ac_cv_path_install+set}" = set; then
2636 INSTALL=$ac_cv_path_install
2637 else
2638 # As a last resort, use the slow shell script. Don't cache a
2639 # value for INSTALL within a source directory, because that will
2640 # break other packages using the cache if that directory is
2641 # removed, or if the value is a relative name.
2642 INSTALL=$ac_install_sh
2643 fi
2644fi
2645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2646$as_echo "$INSTALL" >&6; }
9c60689e 2647
66170b30
JF
2648# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2649# It thinks the first close brace ends the variable substitution.
2650test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9c60689e 2651
66170b30 2652test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
9c60689e 2653
66170b30 2654test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9c60689e 2655
66170b30
JF
2656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2657$as_echo_n "checking whether build environment is sane... " >&6; }
2658# Reject unsafe characters in $srcdir or the absolute working directory
2659# name. Accept space and tab only in the latter.
2660am_lf='
2661'
2662case `pwd` in
2663 *[\\\"\#\$\&\'\`$am_lf]*)
2664 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2665esac
2666case $srcdir in
2667 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2668 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2669esac
9c60689e 2670
66170b30
JF
2671# Do 'set' in a subshell so we don't clobber the current shell's
2672# arguments. Must try -L first in case configure is actually a
2673# symlink; some systems play weird games with the mod time of symlinks
2674# (eg FreeBSD returns the mod time of the symlink's containing
2675# directory).
2676if (
2677 am_has_slept=no
2678 for am_try in 1 2; do
2679 echo "timestamp, slept: $am_has_slept" > conftest.file
2680 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2681 if test "$*" = "X"; then
2682 # -L didn't work.
2683 set X `ls -t "$srcdir/configure" conftest.file`
2684 fi
2685 if test "$*" != "X $srcdir/configure conftest.file" \
2686 && test "$*" != "X conftest.file $srcdir/configure"; then
2687
2688 # If neither matched, then we have a broken ls. This can happen
2689 # if, for instance, CONFIG_SHELL is bash and it inherits a
2690 # broken ls alias from the environment. This has actually
2691 # happened. Such a system could not be considered "sane".
2692 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2693 alias in your environment" "$LINENO" 5
2694 fi
2695 if test "$2" = conftest.file || test $am_try -eq 2; then
2696 break
2697 fi
2698 # Just in case.
2699 sleep 1
2700 am_has_slept=yes
2701 done
2702 test "$2" = conftest.file
2703 )
2704then
2705 # Ok.
2706 :
2707else
2708 as_fn_error $? "newly created file is older than distributed files!
2709Check your system clock" "$LINENO" 5
2710fi
2711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2712$as_echo "yes" >&6; }
2713# If we didn't sleep, we still need to ensure time stamps of config.status and
2714# generated files are strictly newer.
2715am_sleep_pid=
2716if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2717 ( sleep 1 ) &
2718 am_sleep_pid=$!
2719fi
2720
2721rm -f conftest.file
2722
2723test "$program_prefix" != NONE &&
2724 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2725# Use a double $ so make ignores it.
2726test "$program_suffix" != NONE &&
2727 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2728# Double any \ or $.
2729# By default was `s,x,x', remove it if useless.
2730ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2731program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2732
2733# expand $ac_aux_dir to an absolute path
2734am_aux_dir=`cd $ac_aux_dir && pwd`
2735
2736if test x"${MISSING+set}" != xset; then
2737 case $am_aux_dir in
2738 *\ * | *\ *)
2739 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2740 *)
2741 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2742 esac
2743fi
2744# Use eval to expand $SHELL
2745if eval "$MISSING --is-lightweight"; then
2746 am_missing_run="$MISSING "
2747else
2748 am_missing_run=
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2750$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2751fi
9c60689e 2752
66170b30
JF
2753if test x"${install_sh}" != xset; then
2754 case $am_aux_dir in
2755 *\ * | *\ *)
2756 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2757 *)
2758 install_sh="\${SHELL} $am_aux_dir/install-sh"
2759 esac
2760fi
9c60689e 2761
66170b30
JF
2762# Installed binaries are usually stripped using 'strip' when the user
2763# run "make install-strip". However 'strip' might not be the right
2764# tool to use in cross-compilation environments, therefore Automake
2765# will honor the 'STRIP' environment variable to overrule this program.
2766if test "$cross_compiling" != no; then
2767 if test -n "$ac_tool_prefix"; then
2768 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2769set dummy ${ac_tool_prefix}strip; ac_word=$2
2770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2771$as_echo_n "checking for $ac_word... " >&6; }
2772if ${ac_cv_prog_STRIP+:} false; then :
2773 $as_echo_n "(cached) " >&6
2774else
2775 if test -n "$STRIP"; then
2776 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2777else
2778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2779for as_dir in $PATH
2780do
2781 IFS=$as_save_IFS
2782 test -z "$as_dir" && as_dir=.
2783 for ac_exec_ext in '' $ac_executable_extensions; do
2784 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2785 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2787 break 2
2788 fi
2789done
2790 done
2791IFS=$as_save_IFS
9c60689e 2792
66170b30
JF
2793fi
2794fi
2795STRIP=$ac_cv_prog_STRIP
2796if test -n "$STRIP"; then
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2798$as_echo "$STRIP" >&6; }
2799else
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2801$as_echo "no" >&6; }
2802fi
9c60689e 2803
9c60689e 2804
66170b30
JF
2805fi
2806if test -z "$ac_cv_prog_STRIP"; then
2807 ac_ct_STRIP=$STRIP
2808 # Extract the first word of "strip", so it can be a program name with args.
2809set dummy strip; ac_word=$2
2810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2811$as_echo_n "checking for $ac_word... " >&6; }
2812if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
9c60689e
DWT
2813 $as_echo_n "(cached) " >&6
2814else
66170b30
JF
2815 if test -n "$ac_ct_STRIP"; then
2816 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2817else
2818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2819for as_dir in $PATH
2820do
2821 IFS=$as_save_IFS
2822 test -z "$as_dir" && as_dir=.
2823 for ac_exec_ext in '' $ac_executable_extensions; do
2824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2825 ac_cv_prog_ac_ct_STRIP="strip"
2826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2827 break 2
2828 fi
2829done
2830 done
2831IFS=$as_save_IFS
9c60689e
DWT
2832
2833fi
66170b30
JF
2834fi
2835ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2836if test -n "$ac_ct_STRIP"; then
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2838$as_echo "$ac_ct_STRIP" >&6; }
2839else
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2841$as_echo "no" >&6; }
2842fi
2843
2844 if test "x$ac_ct_STRIP" = x; then
2845 STRIP=":"
2846 else
2847 case $cross_compiling:$ac_tool_warned in
2848yes:)
2849{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2850$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2851ac_tool_warned=yes ;;
9c60689e 2852esac
66170b30
JF
2853 STRIP=$ac_ct_STRIP
2854 fi
2855else
2856 STRIP="$ac_cv_prog_STRIP"
2857fi
9c60689e 2858
66170b30
JF
2859fi
2860INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
9c60689e 2861
66170b30
JF
2862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2863$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2864if test -z "$MKDIR_P"; then
2865 if ${ac_cv_path_mkdir+:} false; then :
9c60689e
DWT
2866 $as_echo_n "(cached) " >&6
2867else
66170b30
JF
2868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2869for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2870do
2871 IFS=$as_save_IFS
2872 test -z "$as_dir" && as_dir=.
2873 for ac_prog in mkdir gmkdir; do
2874 for ac_exec_ext in '' $ac_executable_extensions; do
2875 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2876 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2877 'mkdir (GNU coreutils) '* | \
2878 'mkdir (coreutils) '* | \
2879 'mkdir (fileutils) '4.1*)
2880 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2881 break 3;;
2882 esac
2883 done
2884 done
2885 done
2886IFS=$as_save_IFS
2887
2888fi
2889
2890 test -d ./--version && rmdir ./--version
2891 if test "${ac_cv_path_mkdir+set}" = set; then
2892 MKDIR_P="$ac_cv_path_mkdir -p"
2893 else
2894 # As a last resort, use the slow shell script. Don't cache a
2895 # value for MKDIR_P within a source directory, because that will
2896 # break other packages using the cache if that directory is
2897 # removed, or if the value is a relative name.
2898 MKDIR_P="$ac_install_sh -d"
2899 fi
2900fi
2901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2902$as_echo "$MKDIR_P" >&6; }
2903
2904for ac_prog in gawk mawk nawk awk
2905do
2906 # Extract the first word of "$ac_prog", so it can be a program name with args.
2907set dummy $ac_prog; ac_word=$2
2908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2909$as_echo_n "checking for $ac_word... " >&6; }
2910if ${ac_cv_prog_AWK+:} false; then :
2911 $as_echo_n "(cached) " >&6
2912else
2913 if test -n "$AWK"; then
2914 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2915else
2916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2917for as_dir in $PATH
2918do
2919 IFS=$as_save_IFS
2920 test -z "$as_dir" && as_dir=.
2921 for ac_exec_ext in '' $ac_executable_extensions; do
2922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2923 ac_cv_prog_AWK="$ac_prog"
2924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2925 break 2
2926 fi
2927done
2928 done
2929IFS=$as_save_IFS
2930
2931fi
2932fi
2933AWK=$ac_cv_prog_AWK
2934if test -n "$AWK"; then
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2936$as_echo "$AWK" >&6; }
2937else
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2939$as_echo "no" >&6; }
2940fi
2941
2942
2943 test -n "$AWK" && break
2944done
2945
2946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2947$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2948set x ${MAKE-make}
2949ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2950if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2951 $as_echo_n "(cached) " >&6
2952else
2953 cat >conftest.make <<\_ACEOF
2954SHELL = /bin/sh
2955all:
2956 @echo '@@@%%%=$(MAKE)=@@@%%%'
2957_ACEOF
2958# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2959case `${MAKE-make} -f conftest.make 2>/dev/null` in
2960 *@@@%%%=?*=@@@%%%*)
2961 eval ac_cv_prog_make_${ac_make}_set=yes;;
2962 *)
2963 eval ac_cv_prog_make_${ac_make}_set=no;;
2964esac
2965rm -f conftest.make
2966fi
2967if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2969$as_echo "yes" >&6; }
2970 SET_MAKE=
2971else
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2973$as_echo "no" >&6; }
2974 SET_MAKE="MAKE=${MAKE-make}"
2975fi
2976
2977rm -rf .tst 2>/dev/null
2978mkdir .tst 2>/dev/null
2979if test -d .tst; then
2980 am__leading_dot=.
2981else
2982 am__leading_dot=_
2983fi
2984rmdir .tst 2>/dev/null
2985
2986# Check whether --enable-silent-rules was given.
2987if test "${enable_silent_rules+set}" = set; then :
2988 enableval=$enable_silent_rules;
2989fi
2990
2991case $enable_silent_rules in # (((
2992 yes) AM_DEFAULT_VERBOSITY=0;;
2993 no) AM_DEFAULT_VERBOSITY=1;;
2994 *) AM_DEFAULT_VERBOSITY=1;;
2995esac
2996am_make=${MAKE-make}
2997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2998$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2999if ${am_cv_make_support_nested_variables+:} false; then :
3000 $as_echo_n "(cached) " >&6
3001else
3002 if $as_echo 'TRUE=$(BAR$(V))
3003BAR0=false
3004BAR1=true
3005V=1
3006am__doit:
3007 @$(TRUE)
3008.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3009 am_cv_make_support_nested_variables=yes
3010else
3011 am_cv_make_support_nested_variables=no
3012fi
3013fi
3014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3015$as_echo "$am_cv_make_support_nested_variables" >&6; }
3016if test $am_cv_make_support_nested_variables = yes; then
3017 AM_V='$(V)'
3018 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3019else
3020 AM_V=$AM_DEFAULT_VERBOSITY
3021 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3022fi
3023AM_BACKSLASH='\'
3024
3025if test "`cd $srcdir && pwd`" != "`pwd`"; then
3026 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3027 # is not polluted with repeated "-I."
3028 am__isrc=' -I$(srcdir)'
3029 # test to see if srcdir already configured
3030 if test -f $srcdir/config.status; then
3031 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3032 fi
3033fi
3034
3035# test whether we have cygpath
3036if test -z "$CYGPATH_W"; then
3037 if (cygpath --version) >/dev/null 2>/dev/null; then
3038 CYGPATH_W='cygpath -w'
3039 else
3040 CYGPATH_W=echo
3041 fi
3042fi
3043
3044
3045# Define the identity of the package.
3046 PACKAGE='cycript'
3047 VERSION='0.9'
3048
3049
3050cat >>confdefs.h <<_ACEOF
3051#define PACKAGE "$PACKAGE"
3052_ACEOF
3053
3054
3055cat >>confdefs.h <<_ACEOF
3056#define VERSION "$VERSION"
3057_ACEOF
3058
3059# Some tools Automake needs.
3060
3061ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3062
3063
3064AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3065
3066
3067AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3068
3069
3070AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3071
3072
3073MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3074
3075# For better backward compatibility. To be removed once Automake 1.9.x
3076# dies out for good. For more background, see:
3077# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3078# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3079mkdir_p='$(MKDIR_P)'
3080
3081# We need awk for the "check" target. The system "awk" is bad on
3082# some platforms.
3083# Always define AMTAR for backward compatibility. Yes, it's still used
3084# in the wild :-( We should find a proper way to deprecate it ...
3085AMTAR='$${TAR-tar}'
3086
a93f15c0
JF
3087
3088# We'll loop over all known methods to create a tar archive until one works.
3089_am_tools='gnutar pax cpio none'
3090
66170b30
JF
3091am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3092
3093
3094
3095
3096
66170b30 3097
a93f15c0
JF
3098# POSIX will say in a future version that running "rm -f" with no argument
3099# is OK; and we want to be able to make that assumption in our Makefile
3100# recipes. So use an aggressive probe to check that the usage we want is
3101# actually supported "in the wild" to an acceptable degree.
3102# See automake bug#10828.
3103# To make any issue more visible, cause the running configure to be aborted
3104# by default if the 'rm' program in use doesn't match our expectations; the
3105# user can still override this though.
3106if rm -f && rm -fr && rm -rf; then : OK; else
3107 cat >&2 <<'END'
3108Oops!
3109
3110Your 'rm' program seems unable to run without file operands specified
3111on the command line, even when the '-f' option is present. This is contrary
3112to the behaviour of most rm programs out there, and not conforming with
3113the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3114
3115Please tell bug-automake@gnu.org about your system, including the value
3116of your $PATH and any error possibly output before this message. This
3117can help us improve future automake versions.
3118
3119END
3120 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3121 echo 'Configuration will proceed anyway, since you have set the' >&2
3122 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3123 echo >&2
3124 else
3125 cat >&2 <<'END'
3126Aborting the configuration process, to ensure you take notice of the issue.
3127
3128You can download and install GNU coreutils to get an 'rm' implementation
3129that behaves properly: <http://www.gnu.org/software/coreutils/>.
3130
3131If you want to complete the configuration process using your problematic
3132'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3133to "yes", and re-run configure.
3134
3135END
3136 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3137 fi
3138fi
3139
babf7fe8
JF
3140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3141$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3142 # Check whether --enable-maintainer-mode was given.
3143if test "${enable_maintainer_mode+set}" = set; then :
3144 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3145else
3146 USE_MAINTAINER_MODE=no
3147fi
3148
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3150$as_echo "$USE_MAINTAINER_MODE" >&6; }
3151 if test $USE_MAINTAINER_MODE = yes; then
3152 MAINTAINER_MODE_TRUE=
3153 MAINTAINER_MODE_FALSE='#'
3154else
3155 MAINTAINER_MODE_TRUE='#'
3156 MAINTAINER_MODE_FALSE=
3157fi
3158
3159 MAINT=$MAINTAINER_MODE_TRUE
3160
3161
3162
a93f15c0
JF
3163ac_ext=c
3164ac_cpp='$CPP $CPPFLAGS'
3165ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3166ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3167ac_compiler_gnu=$ac_cv_c_compiler_gnu
3168if test -n "$ac_tool_prefix"; then
3169 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3170set dummy ${ac_tool_prefix}gcc; ac_word=$2
dbadc56a
DWT
3171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3172$as_echo_n "checking for $ac_word... " >&6; }
a93f15c0 3173if ${ac_cv_prog_CC+:} false; then :
dbadc56a
DWT
3174 $as_echo_n "(cached) " >&6
3175else
a93f15c0
JF
3176 if test -n "$CC"; then
3177 ac_cv_prog_CC="$CC" # Let the user override the test.
dbadc56a
DWT
3178else
3179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3180for as_dir in $PATH
3181do
3182 IFS=$as_save_IFS
3183 test -z "$as_dir" && as_dir=.
3184 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 3185 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a93f15c0 3186 ac_cv_prog_CC="${ac_tool_prefix}gcc"
dbadc56a
DWT
3187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3188 break 2
3189 fi
3190done
3191 done
3192IFS=$as_save_IFS
3193
3194fi
3195fi
a93f15c0
JF
3196CC=$ac_cv_prog_CC
3197if test -n "$CC"; then
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3199$as_echo "$CC" >&6; }
35fa52c0
DWT
3200else
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3202$as_echo "no" >&6; }
3203fi
3204
3205
35fa52c0 3206fi
a93f15c0
JF
3207if test -z "$ac_cv_prog_CC"; then
3208 ac_ct_CC=$CC
3209 # Extract the first word of "gcc", so it can be a program name with args.
3210set dummy gcc; ac_word=$2
35fa52c0
DWT
3211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3212$as_echo_n "checking for $ac_word... " >&6; }
a93f15c0 3213if ${ac_cv_prog_ac_ct_CC+:} false; then :
35fa52c0
DWT
3214 $as_echo_n "(cached) " >&6
3215else
a93f15c0
JF
3216 if test -n "$ac_ct_CC"; then
3217 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
35fa52c0
DWT
3218else
3219as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3220for as_dir in $PATH
3221do
3222 IFS=$as_save_IFS
3223 test -z "$as_dir" && as_dir=.
3224 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 3225 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a93f15c0 3226 ac_cv_prog_ac_ct_CC="gcc"
35fa52c0
DWT
3227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3228 break 2
3229 fi
3230done
3231 done
3232IFS=$as_save_IFS
3233
3234fi
3235fi
a93f15c0
JF
3236ac_ct_CC=$ac_cv_prog_ac_ct_CC
3237if test -n "$ac_ct_CC"; then
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3239$as_echo "$ac_ct_CC" >&6; }
35fa52c0
DWT
3240else
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3242$as_echo "no" >&6; }
3243fi
3244
a93f15c0
JF
3245 if test "x$ac_ct_CC" = x; then
3246 CC=""
35fa52c0
DWT
3247 else
3248 case $cross_compiling:$ac_tool_warned in
3249yes:)
3250{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3251$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3252ac_tool_warned=yes ;;
3253esac
a93f15c0 3254 CC=$ac_ct_CC
35fa52c0 3255 fi
a93f15c0
JF
3256else
3257 CC="$ac_cv_prog_CC"
35fa52c0
DWT
3258fi
3259
a93f15c0
JF
3260if test -z "$CC"; then
3261 if test -n "$ac_tool_prefix"; then
3262 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3263set dummy ${ac_tool_prefix}cc; ac_word=$2
3264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3265$as_echo_n "checking for $ac_word... " >&6; }
3266if ${ac_cv_prog_CC+:} false; then :
3267 $as_echo_n "(cached) " >&6
3268else
3269 if test -n "$CC"; then
3270 ac_cv_prog_CC="$CC" # Let the user override the test.
3271else
3272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3273for as_dir in $PATH
3274do
3275 IFS=$as_save_IFS
3276 test -z "$as_dir" && as_dir=.
3277 for ac_exec_ext in '' $ac_executable_extensions; do
3278 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3279 ac_cv_prog_CC="${ac_tool_prefix}cc"
3280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3281 break 2
a243b558 3282 fi
35fa52c0 3283done
a93f15c0
JF
3284 done
3285IFS=$as_save_IFS
35fa52c0 3286
a93f15c0
JF
3287fi
3288fi
3289CC=$ac_cv_prog_CC
3290if test -n "$CC"; then
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3292$as_echo "$CC" >&6; }
3293else
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3295$as_echo "no" >&6; }
3296fi
35fa52c0 3297
35fa52c0 3298
a93f15c0
JF
3299 fi
3300fi
3301if test -z "$CC"; then
3302 # Extract the first word of "cc", so it can be a program name with args.
3303set dummy cc; ac_word=$2
3304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3305$as_echo_n "checking for $ac_word... " >&6; }
3306if ${ac_cv_prog_CC+:} false; then :
3307 $as_echo_n "(cached) " >&6
3308else
3309 if test -n "$CC"; then
3310 ac_cv_prog_CC="$CC" # Let the user override the test.
3311else
3312 ac_prog_rejected=no
3313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3314for as_dir in $PATH
35fa52c0 3315do
a93f15c0
JF
3316 IFS=$as_save_IFS
3317 test -z "$as_dir" && as_dir=.
3318 for ac_exec_ext in '' $ac_executable_extensions; do
3319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3320 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3321 ac_prog_rejected=yes
3322 continue
3323 fi
3324 ac_cv_prog_CC="cc"
3325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3326 break 2
3327 fi
3328done
3329 done
3330IFS=$as_save_IFS
3331
3332if test $ac_prog_rejected = yes; then
3333 # We found a bogon in the path, so make sure we never use it.
3334 set dummy $ac_cv_prog_CC
3335 shift
3336 if test $# != 0; then
3337 # We chose a different compiler from the bogus one.
3338 # However, it has the same basename, so the bogon will be chosen
3339 # first if we set CC to just the basename; use the full file name.
3340 shift
3341 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3342 fi
3343fi
3344fi
3345fi
3346CC=$ac_cv_prog_CC
3347if test -n "$CC"; then
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3349$as_echo "$CC" >&6; }
3350else
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3352$as_echo "no" >&6; }
3353fi
3354
3355
3356fi
3357if test -z "$CC"; then
3358 if test -n "$ac_tool_prefix"; then
3359 for ac_prog in cl.exe
3360 do
3361 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3362set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3364$as_echo_n "checking for $ac_word... " >&6; }
3365if ${ac_cv_prog_CC+:} false; then :
3366 $as_echo_n "(cached) " >&6
3367else
3368 if test -n "$CC"; then
3369 ac_cv_prog_CC="$CC" # Let the user override the test.
3370else
3371as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3372for as_dir in $PATH
3373do
3374 IFS=$as_save_IFS
3375 test -z "$as_dir" && as_dir=.
3376 for ac_exec_ext in '' $ac_executable_extensions; do
3377 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3378 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3380 break 2
3381 fi
3382done
3383 done
3384IFS=$as_save_IFS
3385
3386fi
3387fi
3388CC=$ac_cv_prog_CC
3389if test -n "$CC"; then
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3391$as_echo "$CC" >&6; }
3392else
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3394$as_echo "no" >&6; }
3395fi
3396
3397
3398 test -n "$CC" && break
3399 done
3400fi
3401if test -z "$CC"; then
3402 ac_ct_CC=$CC
3403 for ac_prog in cl.exe
3404do
3405 # Extract the first word of "$ac_prog", so it can be a program name with args.
3406set dummy $ac_prog; ac_word=$2
3407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3408$as_echo_n "checking for $ac_word... " >&6; }
3409if ${ac_cv_prog_ac_ct_CC+:} false; then :
3410 $as_echo_n "(cached) " >&6
3411else
3412 if test -n "$ac_ct_CC"; then
3413 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3414else
3415as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3416for as_dir in $PATH
3417do
3418 IFS=$as_save_IFS
3419 test -z "$as_dir" && as_dir=.
3420 for ac_exec_ext in '' $ac_executable_extensions; do
3421 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3422 ac_cv_prog_ac_ct_CC="$ac_prog"
3423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3424 break 2
3425 fi
3426done
3427 done
3428IFS=$as_save_IFS
3429
3430fi
3431fi
3432ac_ct_CC=$ac_cv_prog_ac_ct_CC
3433if test -n "$ac_ct_CC"; then
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3435$as_echo "$ac_ct_CC" >&6; }
3436else
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3438$as_echo "no" >&6; }
3439fi
3440
3441
3442 test -n "$ac_ct_CC" && break
3443done
3444
3445 if test "x$ac_ct_CC" = x; then
3446 CC=""
3447 else
3448 case $cross_compiling:$ac_tool_warned in
3449yes:)
3450{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3451$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3452ac_tool_warned=yes ;;
3453esac
3454 CC=$ac_ct_CC
3455 fi
3456fi
3457
3458fi
3459
3460
3461test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3462$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3463as_fn_error $? "no acceptable C compiler found in \$PATH
3464See \`config.log' for more details" "$LINENO" 5; }
3465
3466# Provide some information about the compiler.
3467$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3468set X $ac_compile
3469ac_compiler=$2
3470for ac_option in --version -v -V -qversion; do
3471 { { ac_try="$ac_compiler $ac_option >&5"
3472case "(($ac_try" in
3473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3474 *) ac_try_echo=$ac_try;;
3475esac
3476eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3477$as_echo "$ac_try_echo"; } >&5
3478 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3479 ac_status=$?
3480 if test -s conftest.err; then
3481 sed '10a\
3482... rest of stderr output deleted ...
3483 10q' conftest.err >conftest.er1
3484 cat conftest.er1 >&5
3485 fi
3486 rm -f conftest.er1 conftest.err
3487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3488 test $ac_status = 0; }
3489done
3490
3491cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3492/* end confdefs.h. */
3493
3494int
3495main ()
3496{
3497
3498 ;
3499 return 0;
3500}
3501_ACEOF
3502ac_clean_files_save=$ac_clean_files
3503ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3504# Try to create an executable without -o first, disregard a.out.
3505# It will help us diagnose broken compilers, and finding out an intuition
3506# of exeext.
3507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3508$as_echo_n "checking whether the C compiler works... " >&6; }
3509ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3510
3511# The possible output files:
3512ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3513
3514ac_rmfiles=
3515for ac_file in $ac_files
3516do
3517 case $ac_file in
3518 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3519 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3520 esac
3521done
35fa52c0
DWT
3522rm -f $ac_rmfiles
3523
3524if { { ac_try="$ac_link_default"
3525case "(($ac_try" in
3526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3527 *) ac_try_echo=$ac_try;;
3528esac
3529eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3530$as_echo "$ac_try_echo"; } >&5
3531 (eval "$ac_link_default") 2>&5
3532 ac_status=$?
3533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3534 test $ac_status = 0; }; then :
3535 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3536# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3537# in a Makefile. We should not override ac_cv_exeext if it was cached,
3538# so that the user can short-circuit this test for compilers unknown to
3539# Autoconf.
3540for ac_file in $ac_files ''
3541do
3542 test -f "$ac_file" || continue
3543 case $ac_file in
3544 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3545 ;;
3546 [ab].out )
3547 # We found the default executable, but exeext='' is most
3548 # certainly right.
3549 break;;
3550 *.* )
3551 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3552 then :; else
3553 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3554 fi
3555 # We set ac_cv_exeext here because the later test for it is not
3556 # safe: cross compilers may not add the suffix if given an `-o'
3557 # argument, so we may need to know it at that point already.
3558 # Even if this section looks crufty: it has the advantage of
3559 # actually working.
3560 break;;
3561 * )
3562 break;;
3563 esac
3564done
3565test "$ac_cv_exeext" = no && ac_cv_exeext=
3566
3567else
3568 ac_file=''
3569fi
35fa52c0 3570if test -z "$ac_file"; then :
9c60689e
DWT
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3572$as_echo "no" >&6; }
3573$as_echo "$as_me: failed program was:" >&5
35fa52c0
DWT
3574sed 's/^/| /' conftest.$ac_ext >&5
3575
3576{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3577$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
a93f15c0 3578as_fn_error 77 "C compiler cannot create executables
ee134472 3579See \`config.log' for more details" "$LINENO" 5; }
9c60689e
DWT
3580else
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3582$as_echo "yes" >&6; }
35fa52c0 3583fi
a93f15c0
JF
3584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3585$as_echo_n "checking for C compiler default output file name... " >&6; }
9c60689e
DWT
3586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3587$as_echo "$ac_file" >&6; }
35fa52c0
DWT
3588ac_exeext=$ac_cv_exeext
3589
9c60689e 3590rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
35fa52c0 3591ac_clean_files=$ac_clean_files_save
35fa52c0
DWT
3592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3593$as_echo_n "checking for suffix of executables... " >&6; }
3594if { { ac_try="$ac_link"
3595case "(($ac_try" in
3596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3597 *) ac_try_echo=$ac_try;;
3598esac
3599eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3600$as_echo "$ac_try_echo"; } >&5
3601 (eval "$ac_link") 2>&5
3602 ac_status=$?
3603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3604 test $ac_status = 0; }; then :
3605 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3606# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3607# work properly (i.e., refer to `conftest.exe'), while it won't with
3608# `rm'.
3609for ac_file in conftest.exe conftest conftest.*; do
3610 test -f "$ac_file" || continue
3611 case $ac_file in
3612 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3613 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3614 break;;
3615 * ) break;;
3616 esac
3617done
3618else
3619 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3620$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12833ad8 3621as_fn_error $? "cannot compute suffix of executables: cannot compile and link
ee134472 3622See \`config.log' for more details" "$LINENO" 5; }
35fa52c0 3623fi
9c60689e 3624rm -f conftest conftest$ac_cv_exeext
35fa52c0
DWT
3625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3626$as_echo "$ac_cv_exeext" >&6; }
3627
3628rm -f conftest.$ac_ext
3629EXEEXT=$ac_cv_exeext
3630ac_exeext=$EXEEXT
9c60689e
DWT
3631cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3632/* end confdefs.h. */
3633#include <stdio.h>
3634int
3635main ()
3636{
3637FILE *f = fopen ("conftest.out", "w");
3638 return ferror (f) || fclose (f) != 0;
3639
3640 ;
3641 return 0;
3642}
3643_ACEOF
3644ac_clean_files="$ac_clean_files conftest.out"
3645# Check that the compiler produces executables we can run. If not, either
3646# the compiler is broken, or we cross compile.
3647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3648$as_echo_n "checking whether we are cross compiling... " >&6; }
3649if test "$cross_compiling" != yes; then
3650 { { ac_try="$ac_link"
3651case "(($ac_try" in
3652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3653 *) ac_try_echo=$ac_try;;
3654esac
3655eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3656$as_echo "$ac_try_echo"; } >&5
3657 (eval "$ac_link") 2>&5
3658 ac_status=$?
3659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3660 test $ac_status = 0; }
3661 if { ac_try='./conftest$ac_cv_exeext'
3662 { { case "(($ac_try" in
3663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3664 *) ac_try_echo=$ac_try;;
3665esac
3666eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3667$as_echo "$ac_try_echo"; } >&5
3668 (eval "$ac_try") 2>&5
3669 ac_status=$?
3670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3671 test $ac_status = 0; }; }; then
3672 cross_compiling=no
3673 else
3674 if test "$cross_compiling" = maybe; then
3675 cross_compiling=yes
3676 else
3677 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3678$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
a93f15c0 3679as_fn_error $? "cannot run C compiled programs.
9c60689e 3680If you meant to cross compile, use \`--host'.
ee134472 3681See \`config.log' for more details" "$LINENO" 5; }
9c60689e
DWT
3682 fi
3683 fi
3684fi
3685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3686$as_echo "$cross_compiling" >&6; }
3687
3688rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3689ac_clean_files=$ac_clean_files_save
35fa52c0
DWT
3690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3691$as_echo_n "checking for suffix of object files... " >&6; }
ee134472 3692if ${ac_cv_objext+:} false; then :
35fa52c0
DWT
3693 $as_echo_n "(cached) " >&6
3694else
3695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3696/* end confdefs.h. */
3697
3698int
3699main ()
3700{
3701
3702 ;
3703 return 0;
3704}
3705_ACEOF
3706rm -f conftest.o conftest.obj
3707if { { ac_try="$ac_compile"
3708case "(($ac_try" in
3709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3710 *) ac_try_echo=$ac_try;;
3711esac
3712eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3713$as_echo "$ac_try_echo"; } >&5
3714 (eval "$ac_compile") 2>&5
3715 ac_status=$?
3716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3717 test $ac_status = 0; }; then :
3718 for ac_file in conftest.o conftest.obj conftest.*; do
3719 test -f "$ac_file" || continue;
3720 case $ac_file in
3721 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3722 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3723 break;;
3724 esac
3725done
3726else
3727 $as_echo "$as_me: failed program was:" >&5
3728sed 's/^/| /' conftest.$ac_ext >&5
3729
3730{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3731$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12833ad8 3732as_fn_error $? "cannot compute suffix of object files: cannot compile
ee134472 3733See \`config.log' for more details" "$LINENO" 5; }
35fa52c0
DWT
3734fi
3735rm -f conftest.$ac_cv_objext conftest.$ac_ext
3736fi
3737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3738$as_echo "$ac_cv_objext" >&6; }
3739OBJEXT=$ac_cv_objext
3740ac_objext=$OBJEXT
a93f15c0
JF
3741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3742$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3743if ${ac_cv_c_compiler_gnu+:} false; then :
35fa52c0
DWT
3744 $as_echo_n "(cached) " >&6
3745else
3746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3747/* end confdefs.h. */
3748
3749int
3750main ()
3751{
3752#ifndef __GNUC__
3753 choke me
3754#endif
3755
3756 ;
3757 return 0;
3758}
3759_ACEOF
a93f15c0 3760if ac_fn_c_try_compile "$LINENO"; then :
35fa52c0
DWT
3761 ac_compiler_gnu=yes
3762else
3763 ac_compiler_gnu=no
3764fi
3765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a93f15c0 3766ac_cv_c_compiler_gnu=$ac_compiler_gnu
35fa52c0
DWT
3767
3768fi
a93f15c0
JF
3769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3770$as_echo "$ac_cv_c_compiler_gnu" >&6; }
35fa52c0 3771if test $ac_compiler_gnu = yes; then
a93f15c0 3772 GCC=yes
35fa52c0 3773else
a93f15c0 3774 GCC=
35fa52c0 3775fi
a93f15c0
JF
3776ac_test_CFLAGS=${CFLAGS+set}
3777ac_save_CFLAGS=$CFLAGS
3778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3779$as_echo_n "checking whether $CC accepts -g... " >&6; }
3780if ${ac_cv_prog_cc_g+:} false; then :
35fa52c0
DWT
3781 $as_echo_n "(cached) " >&6
3782else
a93f15c0
JF
3783 ac_save_c_werror_flag=$ac_c_werror_flag
3784 ac_c_werror_flag=yes
3785 ac_cv_prog_cc_g=no
3786 CFLAGS="-g"
35fa52c0
DWT
3787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3788/* end confdefs.h. */
3789
3790int
3791main ()
3792{
3793
3794 ;
3795 return 0;
3796}
3797_ACEOF
a93f15c0
JF
3798if ac_fn_c_try_compile "$LINENO"; then :
3799 ac_cv_prog_cc_g=yes
35fa52c0 3800else
a93f15c0 3801 CFLAGS=""
35fa52c0
DWT
3802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3803/* end confdefs.h. */
3804
3805int
3806main ()
3807{
3808
3809 ;
3810 return 0;
3811}
3812_ACEOF
a93f15c0 3813if ac_fn_c_try_compile "$LINENO"; then :
35fa52c0
DWT
3814
3815else
a93f15c0
JF
3816 ac_c_werror_flag=$ac_save_c_werror_flag
3817 CFLAGS="-g"
35fa52c0
DWT
3818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3819/* end confdefs.h. */
3820
3821int
3822main ()
3823{
3824
3825 ;
3826 return 0;
3827}
3828_ACEOF
a93f15c0
JF
3829if ac_fn_c_try_compile "$LINENO"; then :
3830 ac_cv_prog_cc_g=yes
35fa52c0
DWT
3831fi
3832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3833fi
3834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3835fi
3836rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a93f15c0 3837 ac_c_werror_flag=$ac_save_c_werror_flag
35fa52c0 3838fi
a93f15c0
JF
3839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3840$as_echo "$ac_cv_prog_cc_g" >&6; }
3841if test "$ac_test_CFLAGS" = set; then
3842 CFLAGS=$ac_save_CFLAGS
3843elif test $ac_cv_prog_cc_g = yes; then
3844 if test "$GCC" = yes; then
3845 CFLAGS="-g -O2"
35fa52c0 3846 else
a93f15c0 3847 CFLAGS="-g"
35fa52c0
DWT
3848 fi
3849else
a93f15c0
JF
3850 if test "$GCC" = yes; then
3851 CFLAGS="-O2"
35fa52c0 3852 else
a93f15c0 3853 CFLAGS=
35fa52c0
DWT
3854 fi
3855fi
a93f15c0
JF
3856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3857$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3858if ${ac_cv_prog_cc_c89+:} false; then :
3859 $as_echo_n "(cached) " >&6
3860else
3861 ac_cv_prog_cc_c89=no
3862ac_save_CC=$CC
3863cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3864/* end confdefs.h. */
3865#include <stdarg.h>
3866#include <stdio.h>
3867struct stat;
3868/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3869struct buf { int x; };
3870FILE * (*rcsopen) (struct buf *, struct stat *, int);
3871static char *e (p, i)
3872 char **p;
3873 int i;
3874{
3875 return p[i];
3876}
3877static char *f (char * (*g) (char **, int), char **p, ...)
3878{
3879 char *s;
3880 va_list v;
3881 va_start (v,p);
3882 s = g (p, va_arg (v,int));
3883 va_end (v);
3884 return s;
3885}
3886
3887/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3888 function prototypes and stuff, but not '\xHH' hex character constants.
3889 These don't provoke an error unfortunately, instead are silently treated
3890 as 'x'. The following induces an error, until -std is added to get
3891 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3892 array size at least. It's necessary to write '\x00'==0 to get something
3893 that's true only with -std. */
3894int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3895
3896/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3897 inside strings and character constants. */
3898#define FOO(x) 'x'
3899int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3900
3901int test (int i, double x);
3902struct s1 {int (*f) (int a);};
3903struct s2 {int (*f) (double a);};
3904int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3905int argc;
3906char **argv;
3907int
3908main ()
3909{
3910return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3911 ;
3912 return 0;
3913}
3914_ACEOF
3915for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3916 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3917do
3918 CC="$ac_save_CC $ac_arg"
3919 if ac_fn_c_try_compile "$LINENO"; then :
3920 ac_cv_prog_cc_c89=$ac_arg
3921fi
3922rm -f core conftest.err conftest.$ac_objext
3923 test "x$ac_cv_prog_cc_c89" != "xno" && break
3924done
3925rm -f conftest.$ac_ext
3926CC=$ac_save_CC
3927
3928fi
3929# AC_CACHE_VAL
3930case "x$ac_cv_prog_cc_c89" in
3931 x)
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3933$as_echo "none needed" >&6; } ;;
3934 xno)
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3936$as_echo "unsupported" >&6; } ;;
3937 *)
3938 CC="$CC $ac_cv_prog_cc_c89"
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3940$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3941esac
3942if test "x$ac_cv_prog_cc_c89" != xno; then :
3943
3944fi
3945
3946ac_ext=c
3947ac_cpp='$CPP $CPPFLAGS'
3948ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3949ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3950ac_compiler_gnu=$ac_cv_c_compiler_gnu
3951
3952ac_ext=c
3953ac_cpp='$CPP $CPPFLAGS'
3954ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3955ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3956ac_compiler_gnu=$ac_cv_c_compiler_gnu
3957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3958$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3959if ${am_cv_prog_cc_c_o+:} false; then :
3960 $as_echo_n "(cached) " >&6
3961else
3962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3963/* end confdefs.h. */
3964
3965int
3966main ()
3967{
3968
3969 ;
3970 return 0;
3971}
3972_ACEOF
3973 # Make sure it works both with $CC and with simple cc.
3974 # Following AC_PROG_CC_C_O, we do the test twice because some
3975 # compilers refuse to overwrite an existing .o file with -o,
3976 # though they will create one.
3977 am_cv_prog_cc_c_o=yes
3978 for am_i in 1 2; do
3979 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3980 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3981 ac_status=$?
3982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3983 (exit $ac_status); } \
3984 && test -f conftest2.$ac_objext; then
3985 : OK
3986 else
3987 am_cv_prog_cc_c_o=no
3988 break
3989 fi
3990 done
3991 rm -f core conftest*
3992 unset am_i
3993fi
3994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3995$as_echo "$am_cv_prog_cc_c_o" >&6; }
3996if test "$am_cv_prog_cc_c_o" != yes; then
3997 # Losing compiler, so override with the script.
3998 # FIXME: It is wrong to rewrite CC.
3999 # But if we don't then we get into trouble of one sort or another.
4000 # A longer-term fix would be to have automake use am__CC in this case,
4001 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4002 CC="$am_aux_dir/compile $CC"
4003fi
a243b558
JF
4004ac_ext=c
4005ac_cpp='$CPP $CPPFLAGS'
4006ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4007ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4008ac_compiler_gnu=$ac_cv_c_compiler_gnu
a93f15c0 4009
a243b558 4010DEPDIR="${am__leading_dot}deps"
35fa52c0 4011
a243b558 4012ac_config_commands="$ac_config_commands depfiles"
35fa52c0 4013
35fa52c0 4014
a243b558
JF
4015am_make=${MAKE-make}
4016cat > confinc << 'END'
4017am__doit:
4018 @echo this is the am__doit target
4019.PHONY: am__doit
4020END
4021# If we don't find an include directive, just comment out the code.
4022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4023$as_echo_n "checking for style of include used by $am_make... " >&6; }
4024am__include="#"
4025am__quote=
4026_am_result=none
4027# First try GNU make style include.
4028echo "include confinc" > confmf
4029# Ignore all kinds of additional output from 'make'.
4030case `$am_make -s -f confmf 2> /dev/null` in #(
4031*the\ am__doit\ target*)
4032 am__include=include
4033 am__quote=
4034 _am_result=GNU
4035 ;;
4036esac
4037# Now try BSD make style include.
4038if test "$am__include" = "#"; then
4039 echo '.include "confinc"' > confmf
4040 case `$am_make -s -f confmf 2> /dev/null` in #(
4041 *the\ am__doit\ target*)
4042 am__include=.include
4043 am__quote="\""
4044 _am_result=BSD
4045 ;;
4046 esac
35fa52c0 4047fi
35fa52c0 4048
a243b558
JF
4049
4050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4051$as_echo "$_am_result" >&6; }
4052rm -f confinc confmf
4053
4054# Check whether --enable-dependency-tracking was given.
4055if test "${enable_dependency_tracking+set}" = set; then :
4056 enableval=$enable_dependency_tracking;
35fa52c0 4057fi
35fa52c0 4058
a243b558
JF
4059if test "x$enable_dependency_tracking" != xno; then
4060 am_depcomp="$ac_aux_dir/depcomp"
4061 AMDEPBACKSLASH='\'
4062 am__nodep='_no'
4063fi
4064 if test "x$enable_dependency_tracking" != xno; then
4065 AMDEP_TRUE=
4066 AMDEP_FALSE='#'
4067else
4068 AMDEP_TRUE='#'
4069 AMDEP_FALSE=
35fa52c0
DWT
4070fi
4071
35fa52c0 4072
a243b558 4073
a93f15c0 4074depcc="$CC" am_compiler_list=
66170b30
JF
4075
4076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4077$as_echo_n "checking dependency style of $depcc... " >&6; }
a93f15c0 4078if ${am_cv_CC_dependencies_compiler_type+:} false; then :
66170b30
JF
4079 $as_echo_n "(cached) " >&6
4080else
4081 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4082 # We make a subdir and do the tests there. Otherwise we can end up
4083 # making bogus files that we don't know about and never remove. For
4084 # instance it was reported that on HP-UX the gcc test will end up
4085 # making a dummy file named 'D' -- because '-MD' means "put the output
4086 # in D".
4087 rm -rf conftest.dir
4088 mkdir conftest.dir
4089 # Copy depcomp to subdir because otherwise we won't find it if we're
4090 # using a relative directory.
4091 cp "$am_depcomp" conftest.dir
4092 cd conftest.dir
4093 # We will build objects and dependencies in a subdirectory because
4094 # it helps to detect inapplicable dependency modes. For instance
4095 # both Tru64's cc and ICC support -MD to output dependencies as a
4096 # side effect of compilation, but ICC will put the dependencies in
4097 # the current directory while Tru64 will put them in the object
4098 # directory.
4099 mkdir sub
4100
a93f15c0 4101 am_cv_CC_dependencies_compiler_type=none
66170b30
JF
4102 if test "$am_compiler_list" = ""; then
4103 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4104 fi
4105 am__universal=false
4106 case " $depcc " in #(
4107 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4108 esac
4109
4110 for depmode in $am_compiler_list; do
4111 # Setup a source with many dependencies, because some compilers
4112 # like to wrap large dependency lists on column 80 (with \), and
4113 # we should not choose a depcomp mode which is confused by this.
4114 #
4115 # We need to recreate these files for each test, as the compiler may
4116 # overwrite some of them when testing with obscure command lines.
4117 # This happens at least with the AIX C compiler.
4118 : > sub/conftest.c
4119 for i in 1 2 3 4 5 6; do
4120 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4121 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4122 # Solaris 10 /bin/sh.
4123 echo '/* dummy */' > sub/conftst$i.h
4124 done
4125 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4126
4127 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4128 # mode. It turns out that the SunPro C++ compiler does not properly
4129 # handle '-M -o', and we need to detect this. Also, some Intel
4130 # versions had trouble with output in subdirs.
4131 am__obj=sub/conftest.${OBJEXT-o}
4132 am__minus_obj="-o $am__obj"
4133 case $depmode in
4134 gcc)
4135 # This depmode causes a compiler race in universal mode.
4136 test "$am__universal" = false || continue
4137 ;;
4138 nosideeffect)
4139 # After this tag, mechanisms are not by side-effect, so they'll
4140 # only be used when explicitly requested.
4141 if test "x$enable_dependency_tracking" = xyes; then
4142 continue
4143 else
4144 break
4145 fi
4146 ;;
4147 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4148 # This compiler won't grok '-c -o', but also, the minuso test has
4149 # not run yet. These depmodes are late enough in the game, and
4150 # so weak that their functioning should not be impacted.
4151 am__obj=conftest.${OBJEXT-o}
4152 am__minus_obj=
4153 ;;
4154 none) break ;;
4155 esac
4156 if depmode=$depmode \
4157 source=sub/conftest.c object=$am__obj \
4158 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4159 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4160 >/dev/null 2>conftest.err &&
4161 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4162 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4163 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4164 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4165 # icc doesn't choke on unknown options, it will just issue warnings
4166 # or remarks (even with -Werror). So we grep stderr for any message
4167 # that says an option was ignored or not supported.
4168 # When given -MP, icc 7.0 and 7.1 complain thusly:
4169 # icc: Command line warning: ignoring option '-M'; no argument required
4170 # The diagnosis changed in icc 8.0:
4171 # icc: Command line remark: option '-MP' not supported
4172 if (grep 'ignoring option' conftest.err ||
4173 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
a93f15c0 4174 am_cv_CC_dependencies_compiler_type=$depmode
66170b30
JF
4175 break
4176 fi
4177 fi
4178 done
4179
4180 cd ..
4181 rm -rf conftest.dir
4182else
a93f15c0 4183 am_cv_CC_dependencies_compiler_type=none
66170b30
JF
4184fi
4185
4186fi
a93f15c0
JF
4187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4188$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4189CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
66170b30
JF
4190
4191 if
4192 test "x$enable_dependency_tracking" != xno \
a93f15c0
JF
4193 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4194 am__fastdepCC_TRUE=
4195 am__fastdepCC_FALSE='#'
66170b30 4196else
a93f15c0
JF
4197 am__fastdepCC_TRUE='#'
4198 am__fastdepCC_FALSE=
66170b30
JF
4199fi
4200
4201
a93f15c0
JF
4202ac_ext=cpp
4203ac_cpp='$CXXCPP $CPPFLAGS'
4204ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4205ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4206ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4207if test -z "$CXX"; then
4208 if test -n "$CCC"; then
4209 CXX=$CCC
4210 else
4211 if test -n "$ac_tool_prefix"; then
4212 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
a243b558
JF
4213 do
4214 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4215set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4217$as_echo_n "checking for $ac_word... " >&6; }
a93f15c0 4218if ${ac_cv_prog_CXX+:} false; then :
35fa52c0
DWT
4219 $as_echo_n "(cached) " >&6
4220else
a93f15c0
JF
4221 if test -n "$CXX"; then
4222 ac_cv_prog_CXX="$CXX" # Let the user override the test.
a243b558
JF
4223else
4224as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4225for as_dir in $PATH
4226do
35fa52c0
DWT
4227 IFS=$as_save_IFS
4228 test -z "$as_dir" && as_dir=.
4229 for ac_exec_ext in '' $ac_executable_extensions; do
a243b558 4230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a93f15c0 4231 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
a243b558
JF
4232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4233 break 2
4234 fi
4235done
9c60689e
DWT
4236 done
4237IFS=$as_save_IFS
35fa52c0 4238
9c60689e 4239fi
a243b558 4240fi
a93f15c0
JF
4241CXX=$ac_cv_prog_CXX
4242if test -n "$CXX"; then
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4244$as_echo "$CXX" >&6; }
a243b558
JF
4245else
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4247$as_echo "no" >&6; }
4248fi
35fa52c0 4249
35fa52c0 4250
a93f15c0 4251 test -n "$CXX" && break
a243b558
JF
4252 done
4253fi
a93f15c0
JF
4254if test -z "$CXX"; then
4255 ac_ct_CXX=$CXX
4256 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
a243b558
JF
4257do
4258 # Extract the first word of "$ac_prog", so it can be a program name with args.
4259set dummy $ac_prog; ac_word=$2
4260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4261$as_echo_n "checking for $ac_word... " >&6; }
a93f15c0 4262if ${ac_cv_prog_ac_ct_CXX+:} false; then :
9c60689e
DWT
4263 $as_echo_n "(cached) " >&6
4264else
a93f15c0
JF
4265 if test -n "$ac_ct_CXX"; then
4266 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
a243b558
JF
4267else
4268as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4269for as_dir in $PATH
9c60689e
DWT
4270do
4271 IFS=$as_save_IFS
4272 test -z "$as_dir" && as_dir=.
9c60689e 4273 for ac_exec_ext in '' $ac_executable_extensions; do
a243b558 4274 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a93f15c0 4275 ac_cv_prog_ac_ct_CXX="$ac_prog"
a243b558
JF
4276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4277 break 2
4278 fi
4279done
9c60689e
DWT
4280 done
4281IFS=$as_save_IFS
a243b558
JF
4282
4283fi
4284fi
a93f15c0
JF
4285ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4286if test -n "$ac_ct_CXX"; then
4287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4288$as_echo "$ac_ct_CXX" >&6; }
9c60689e 4289else
a243b558
JF
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4291$as_echo "no" >&6; }
9c60689e 4292fi
6b66678a
DWT
4293
4294
a93f15c0 4295 test -n "$ac_ct_CXX" && break
a243b558 4296done
6b66678a 4297
a93f15c0
JF
4298 if test "x$ac_ct_CXX" = x; then
4299 CXX="g++"
a243b558
JF
4300 else
4301 case $cross_compiling:$ac_tool_warned in
4302yes:)
4303{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4304$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4305ac_tool_warned=yes ;;
9c60689e 4306esac
a93f15c0 4307 CXX=$ac_ct_CXX
9c60689e 4308 fi
9c60689e 4309fi
6b66678a 4310
a93f15c0
JF
4311 fi
4312fi
a243b558 4313# Provide some information about the compiler.
a93f15c0 4314$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
a243b558
JF
4315set X $ac_compile
4316ac_compiler=$2
4317for ac_option in --version -v -V -qversion; do
4318 { { ac_try="$ac_compiler $ac_option >&5"
4319case "(($ac_try" in
4320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4321 *) ac_try_echo=$ac_try;;
4322esac
4323eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4324$as_echo "$ac_try_echo"; } >&5
4325 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4326 ac_status=$?
4327 if test -s conftest.err; then
4328 sed '10a\
4329... rest of stderr output deleted ...
4330 10q' conftest.err >conftest.er1
4331 cat conftest.er1 >&5
4332 fi
4333 rm -f conftest.er1 conftest.err
4334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4335 test $ac_status = 0; }
4336done
6b66678a 4337
a93f15c0
JF
4338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4339$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4340if ${ac_cv_cxx_compiler_gnu+:} false; then :
9c60689e 4341 $as_echo_n "(cached) " >&6
6b66678a 4342else
a243b558
JF
4343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4344/* end confdefs.h. */
6b66678a 4345
a243b558
JF
4346int
4347main ()
4348{
4349#ifndef __GNUC__
4350 choke me
4351#endif
4352
4353 ;
4354 return 0;
4355}
4356_ACEOF
a93f15c0 4357if ac_fn_cxx_try_compile "$LINENO"; then :
a243b558 4358 ac_compiler_gnu=yes
9c60689e 4359else
a243b558 4360 ac_compiler_gnu=no
6b66678a 4361fi
a243b558 4362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a93f15c0 4363ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6b66678a
DWT
4364
4365fi
a93f15c0
JF
4366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4367$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
a243b558 4368if test $ac_compiler_gnu = yes; then
a93f15c0 4369 GXX=yes
a243b558 4370else
a93f15c0 4371 GXX=
a243b558 4372fi
a93f15c0
JF
4373ac_test_CXXFLAGS=${CXXFLAGS+set}
4374ac_save_CXXFLAGS=$CXXFLAGS
4375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4376$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4377if ${ac_cv_prog_cxx_g+:} false; then :
a243b558
JF
4378 $as_echo_n "(cached) " >&6
4379else
a93f15c0
JF
4380 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4381 ac_cxx_werror_flag=yes
4382 ac_cv_prog_cxx_g=no
4383 CXXFLAGS="-g"
a243b558
JF
4384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4385/* end confdefs.h. */
309b0535 4386
a243b558
JF
4387int
4388main ()
4389{
309b0535 4390
a243b558
JF
4391 ;
4392 return 0;
4393}
4394_ACEOF
a93f15c0
JF
4395if ac_fn_cxx_try_compile "$LINENO"; then :
4396 ac_cv_prog_cxx_g=yes
a243b558 4397else
a93f15c0 4398 CXXFLAGS=""
a243b558
JF
4399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4400/* end confdefs.h. */
309b0535 4401
a243b558
JF
4402int
4403main ()
4404{
309b0535 4405
a243b558
JF
4406 ;
4407 return 0;
4408}
4409_ACEOF
a93f15c0 4410if ac_fn_cxx_try_compile "$LINENO"; then :
309b0535 4411
a243b558 4412else
a93f15c0
JF
4413 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4414 CXXFLAGS="-g"
a243b558
JF
4415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4416/* end confdefs.h. */
309b0535 4417
a243b558
JF
4418int
4419main ()
4420{
309b0535 4421
a243b558
JF
4422 ;
4423 return 0;
4424}
4425_ACEOF
a93f15c0
JF
4426if ac_fn_cxx_try_compile "$LINENO"; then :
4427 ac_cv_prog_cxx_g=yes
9c60689e 4428fi
a243b558 4429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9c60689e 4430fi
a243b558 4431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9c60689e 4432fi
a243b558 4433rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a93f15c0 4434 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
9c60689e 4435fi
a93f15c0
JF
4436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4437$as_echo "$ac_cv_prog_cxx_g" >&6; }
4438if test "$ac_test_CXXFLAGS" = set; then
4439 CXXFLAGS=$ac_save_CXXFLAGS
4440elif test $ac_cv_prog_cxx_g = yes; then
4441 if test "$GXX" = yes; then
4442 CXXFLAGS="-g -O2"
a243b558 4443 else
a93f15c0 4444 CXXFLAGS="-g"
a243b558 4445 fi
9c60689e 4446else
a93f15c0
JF
4447 if test "$GXX" = yes; then
4448 CXXFLAGS="-O2"
a243b558 4449 else
a93f15c0 4450 CXXFLAGS=
a243b558 4451 fi
9c60689e 4452fi
a243b558
JF
4453ac_ext=c
4454ac_cpp='$CPP $CPPFLAGS'
4455ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4456ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4457ac_compiler_gnu=$ac_cv_c_compiler_gnu
309b0535 4458
a93f15c0 4459depcc="$CXX" am_compiler_list=
309b0535 4460
a243b558
JF
4461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4462$as_echo_n "checking dependency style of $depcc... " >&6; }
a93f15c0 4463if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
a243b558
JF
4464 $as_echo_n "(cached) " >&6
4465else
4466 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4467 # We make a subdir and do the tests there. Otherwise we can end up
4468 # making bogus files that we don't know about and never remove. For
4469 # instance it was reported that on HP-UX the gcc test will end up
4470 # making a dummy file named 'D' -- because '-MD' means "put the output
4471 # in D".
4472 rm -rf conftest.dir
4473 mkdir conftest.dir
4474 # Copy depcomp to subdir because otherwise we won't find it if we're
4475 # using a relative directory.
4476 cp "$am_depcomp" conftest.dir
4477 cd conftest.dir
4478 # We will build objects and dependencies in a subdirectory because
4479 # it helps to detect inapplicable dependency modes. For instance
4480 # both Tru64's cc and ICC support -MD to output dependencies as a
4481 # side effect of compilation, but ICC will put the dependencies in
4482 # the current directory while Tru64 will put them in the object
4483 # directory.
4484 mkdir sub
309b0535 4485
a93f15c0 4486 am_cv_CXX_dependencies_compiler_type=none
a243b558
JF
4487 if test "$am_compiler_list" = ""; then
4488 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4489 fi
4490 am__universal=false
a93f15c0
JF
4491 case " $depcc " in #(
4492 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4493 esac
9c60689e 4494
a243b558
JF
4495 for depmode in $am_compiler_list; do
4496 # Setup a source with many dependencies, because some compilers
4497 # like to wrap large dependency lists on column 80 (with \), and
4498 # we should not choose a depcomp mode which is confused by this.
4499 #
4500 # We need to recreate these files for each test, as the compiler may
4501 # overwrite some of them when testing with obscure command lines.
4502 # This happens at least with the AIX C compiler.
4503 : > sub/conftest.c
4504 for i in 1 2 3 4 5 6; do
4505 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4506 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4507 # Solaris 10 /bin/sh.
4508 echo '/* dummy */' > sub/conftst$i.h
4509 done
4510 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
9c60689e 4511
a243b558
JF
4512 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4513 # mode. It turns out that the SunPro C++ compiler does not properly
4514 # handle '-M -o', and we need to detect this. Also, some Intel
4515 # versions had trouble with output in subdirs.
4516 am__obj=sub/conftest.${OBJEXT-o}
4517 am__minus_obj="-o $am__obj"
4518 case $depmode in
4519 gcc)
4520 # This depmode causes a compiler race in universal mode.
4521 test "$am__universal" = false || continue
4522 ;;
4523 nosideeffect)
4524 # After this tag, mechanisms are not by side-effect, so they'll
4525 # only be used when explicitly requested.
4526 if test "x$enable_dependency_tracking" = xyes; then
4527 continue
4528 else
4529 break
309b0535 4530 fi
a243b558
JF
4531 ;;
4532 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4533 # This compiler won't grok '-c -o', but also, the minuso test has
4534 # not run yet. These depmodes are late enough in the game, and
4535 # so weak that their functioning should not be impacted.
4536 am__obj=conftest.${OBJEXT-o}
4537 am__minus_obj=
4538 ;;
4539 none) break ;;
4540 esac
4541 if depmode=$depmode \
4542 source=sub/conftest.c object=$am__obj \
4543 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4544 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4545 >/dev/null 2>conftest.err &&
4546 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4547 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4548 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4549 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4550 # icc doesn't choke on unknown options, it will just issue warnings
4551 # or remarks (even with -Werror). So we grep stderr for any message
4552 # that says an option was ignored or not supported.
4553 # When given -MP, icc 7.0 and 7.1 complain thusly:
4554 # icc: Command line warning: ignoring option '-M'; no argument required
4555 # The diagnosis changed in icc 8.0:
4556 # icc: Command line remark: option '-MP' not supported
4557 if (grep 'ignoring option' conftest.err ||
4558 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
a93f15c0 4559 am_cv_CXX_dependencies_compiler_type=$depmode
a243b558
JF
4560 break
4561 fi
4562 fi
309b0535 4563 done
a243b558
JF
4564
4565 cd ..
4566 rm -rf conftest.dir
4567else
a93f15c0 4568 am_cv_CXX_dependencies_compiler_type=none
9c60689e 4569fi
a243b558 4570
9c60689e 4571fi
a93f15c0
JF
4572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4573$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4574CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
a243b558
JF
4575
4576 if
4577 test "x$enable_dependency_tracking" != xno \
a93f15c0
JF
4578 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4579 am__fastdepCXX_TRUE=
4580 am__fastdepCXX_FALSE='#'
9c60689e 4581else
a93f15c0
JF
4582 am__fastdepCXX_TRUE='#'
4583 am__fastdepCXX_FALSE=
a243b558
JF
4584fi
4585
4586
a93f15c0
JF
4587ac_ext=mm
4588ac_cpp='$OBJCXXCPP $CPPFLAGS'
4589ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4590ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4591ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
a243b558 4592if test -n "$ac_tool_prefix"; then
a93f15c0 4593 for ac_prog in g++ objc++ objcxx c++ CXX
a243b558
JF
4594 do
4595 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4596set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4598$as_echo_n "checking for $ac_word... " >&6; }
a93f15c0 4599if ${ac_cv_prog_OBJCXX+:} false; then :
9c60689e
DWT
4600 $as_echo_n "(cached) " >&6
4601else
a93f15c0
JF
4602 if test -n "$OBJCXX"; then
4603 ac_cv_prog_OBJCXX="$OBJCXX" # Let the user override the test.
a243b558
JF
4604else
4605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4606for as_dir in $PATH
4607do
4608 IFS=$as_save_IFS
4609 test -z "$as_dir" && as_dir=.
4610 for ac_exec_ext in '' $ac_executable_extensions; do
4611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a93f15c0 4612 ac_cv_prog_OBJCXX="$ac_tool_prefix$ac_prog"
a243b558
JF
4613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4614 break 2
9c60689e 4615 fi
a243b558
JF
4616done
4617 done
4618IFS=$as_save_IFS
9c60689e 4619
a243b558
JF
4620fi
4621fi
a93f15c0
JF
4622OBJCXX=$ac_cv_prog_OBJCXX
4623if test -n "$OBJCXX"; then
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCXX" >&5
4625$as_echo "$OBJCXX" >&6; }
35fa52c0 4626else
a243b558
JF
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4628$as_echo "no" >&6; }
35fa52c0 4629fi
9c60689e 4630
a243b558 4631
a93f15c0 4632 test -n "$OBJCXX" && break
a243b558
JF
4633 done
4634fi
a93f15c0
JF
4635if test -z "$OBJCXX"; then
4636 ac_ct_OBJCXX=$OBJCXX
4637 for ac_prog in g++ objc++ objcxx c++ CXX
a243b558
JF
4638do
4639 # Extract the first word of "$ac_prog", so it can be a program name with args.
4640set dummy $ac_prog; ac_word=$2
4641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4642$as_echo_n "checking for $ac_word... " >&6; }
a93f15c0 4643if ${ac_cv_prog_ac_ct_OBJCXX+:} false; then :
35fa52c0
DWT
4644 $as_echo_n "(cached) " >&6
4645else
a93f15c0
JF
4646 if test -n "$ac_ct_OBJCXX"; then
4647 ac_cv_prog_ac_ct_OBJCXX="$ac_ct_OBJCXX" # Let the user override the test.
a243b558
JF
4648else
4649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4650for as_dir in $PATH
4651do
4652 IFS=$as_save_IFS
4653 test -z "$as_dir" && as_dir=.
4654 for ac_exec_ext in '' $ac_executable_extensions; do
4655 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a93f15c0 4656 ac_cv_prog_ac_ct_OBJCXX="$ac_prog"
a243b558
JF
4657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4658 break 2
4659 fi
4660done
4661 done
4662IFS=$as_save_IFS
9c60689e 4663
a243b558
JF
4664fi
4665fi
a93f15c0
JF
4666ac_ct_OBJCXX=$ac_cv_prog_ac_ct_OBJCXX
4667if test -n "$ac_ct_OBJCXX"; then
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCXX" >&5
4669$as_echo "$ac_ct_OBJCXX" >&6; }
a243b558
JF
4670else
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4672$as_echo "no" >&6; }
4673fi
35fa52c0 4674
35fa52c0 4675
a93f15c0 4676 test -n "$ac_ct_OBJCXX" && break
a243b558 4677done
35fa52c0 4678
a93f15c0
JF
4679 if test "x$ac_ct_OBJCXX" = x; then
4680 OBJCXX="g++"
a243b558
JF
4681 else
4682 case $cross_compiling:$ac_tool_warned in
4683yes:)
4684{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4685$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4686ac_tool_warned=yes ;;
4687esac
a93f15c0 4688 OBJCXX=$ac_ct_OBJCXX
a243b558
JF
4689 fi
4690fi
ee134472 4691
a243b558 4692# Provide some information about the compiler.
a93f15c0 4693$as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C++ compiler version" >&5
a243b558
JF
4694set X $ac_compile
4695ac_compiler=$2
4696for ac_option in --version -v -V -qversion; do
4697 { { ac_try="$ac_compiler $ac_option >&5"
4698case "(($ac_try" in
4699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4700 *) ac_try_echo=$ac_try;;
4701esac
4702eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4703$as_echo "$ac_try_echo"; } >&5
4704 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4705 ac_status=$?
4706 if test -s conftest.err; then
4707 sed '10a\
4708... rest of stderr output deleted ...
4709 10q' conftest.err >conftest.er1
4710 cat conftest.er1 >&5
4711 fi
4712 rm -f conftest.er1 conftest.err
4713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4714 test $ac_status = 0; }
4715done
53ba6704 4716
a93f15c0
JF
4717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C++ compiler" >&5
4718$as_echo_n "checking whether we are using the GNU Objective C++ compiler... " >&6; }
4719if ${ac_cv_objcxx_compiler_gnu+:} false; then :
a243b558
JF
4720 $as_echo_n "(cached) " >&6
4721else
4722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4723/* end confdefs.h. */
35fa52c0 4724
a243b558
JF
4725int
4726main ()
4727{
4728#ifndef __GNUC__
4729 choke me
4730#endif
9c60689e 4731
a243b558
JF
4732 ;
4733 return 0;
4734}
4735_ACEOF
a93f15c0 4736if ac_fn_objcxx_try_compile "$LINENO"; then :
a243b558 4737 ac_compiler_gnu=yes
35fa52c0 4738else
a243b558 4739 ac_compiler_gnu=no
35fa52c0 4740fi
a243b558 4741rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a93f15c0 4742ac_cv_objcxx_compiler_gnu=$ac_compiler_gnu
9c60689e 4743
a243b558 4744fi
a93f15c0
JF
4745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objcxx_compiler_gnu" >&5
4746$as_echo "$ac_cv_objcxx_compiler_gnu" >&6; }
a243b558 4747if test $ac_compiler_gnu = yes; then
a93f15c0 4748 GOBJCXX=yes
35fa52c0 4749else
a93f15c0 4750 GOBJCXX=
9c60689e 4751fi
a93f15c0
JF
4752ac_test_OBJCXXFLAGS=${OBJCXXFLAGS+set}
4753ac_save_OBJCXXFLAGS=$OBJCXXFLAGS
4754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJCXX accepts -g" >&5
4755$as_echo_n "checking whether $OBJCXX accepts -g... " >&6; }
4756if ${ac_cv_prog_objcxx_g+:} false; then :
a243b558
JF
4757 $as_echo_n "(cached) " >&6
4758else
a93f15c0
JF
4759 ac_save_objcxx_werror_flag=$ac_objcxx_werror_flag
4760 ac_objcxx_werror_flag=yes
4761 ac_cv_prog_objcxx_g=no
4762 OBJCXXFLAGS="-g"
a243b558
JF
4763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4764/* end confdefs.h. */
9c60689e 4765
a243b558
JF
4766int
4767main ()
4768{
9c60689e 4769
a243b558
JF
4770 ;
4771 return 0;
4772}
4773_ACEOF
a93f15c0
JF
4774if ac_fn_objcxx_try_compile "$LINENO"; then :
4775 ac_cv_prog_objcxx_g=yes
a243b558 4776else
a93f15c0 4777 OBJCXXFLAGS=""
a243b558
JF
4778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4779/* end confdefs.h. */
9c60689e 4780
a243b558
JF
4781int
4782main ()
4783{
9c60689e 4784
a243b558
JF
4785 ;
4786 return 0;
4787}
4788_ACEOF
a93f15c0 4789if ac_fn_objcxx_try_compile "$LINENO"; then :
9c60689e 4790
a243b558 4791else
a93f15c0
JF
4792 ac_objcxx_werror_flag=$ac_save_objcxx_werror_flag
4793 OBJCXXFLAGS="-g"
a243b558 4794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a93f15c0
JF
4795/* end confdefs.h. */
4796
a243b558
JF
4797int
4798main ()
4799{
a93f15c0 4800
a243b558
JF
4801 ;
4802 return 0;
4803}
4804_ACEOF
a93f15c0
JF
4805if ac_fn_objcxx_try_compile "$LINENO"; then :
4806 ac_cv_prog_objcxx_g=yes
a243b558 4807fi
a93f15c0 4808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35fa52c0 4809fi
a93f15c0
JF
4810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4811fi
4812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4813 ac_objcxx_werror_flag=$ac_save_objcx_werror_flag
4814fi
4815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objcxx_g" >&5
4816$as_echo "$ac_cv_prog_objcxx_g" >&6; }
4817if test "$ac_test_OBJCXXFLAGS" = set; then
4818 OBJCXXFLAGS=$ac_save_OBJCXXFLAGS
4819elif test $ac_cv_prog_objcxx_g = yes; then
4820 if test "$GOBJCXX" = yes; then
4821 OBJCXXFLAGS="-g -O2"
4822 else
4823 OBJCXXFLAGS="-g"
4824 fi
4825else
4826 if test "$GOBJCXX" = yes; then
4827 OBJCXXFLAGS="-O2"
4828 else
4829 OBJCXXFLAGS=
4830 fi
35fa52c0 4831fi
a243b558
JF
4832ac_ext=c
4833ac_cpp='$CPP $CPPFLAGS'
4834ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4835ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4836ac_compiler_gnu=$ac_cv_c_compiler_gnu
4837
a93f15c0 4838depcc="$OBJCXX" am_compiler_list='gcc3 gcc'
9c60689e 4839
a243b558
JF
4840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4841$as_echo_n "checking dependency style of $depcc... " >&6; }
a93f15c0 4842if ${am_cv_OBJCXX_dependencies_compiler_type+:} false; then :
35fa52c0
DWT
4843 $as_echo_n "(cached) " >&6
4844else
a243b558
JF
4845 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4846 # We make a subdir and do the tests there. Otherwise we can end up
4847 # making bogus files that we don't know about and never remove. For
4848 # instance it was reported that on HP-UX the gcc test will end up
4849 # making a dummy file named 'D' -- because '-MD' means "put the output
4850 # in D".
4851 rm -rf conftest.dir
4852 mkdir conftest.dir
4853 # Copy depcomp to subdir because otherwise we won't find it if we're
4854 # using a relative directory.
4855 cp "$am_depcomp" conftest.dir
4856 cd conftest.dir
4857 # We will build objects and dependencies in a subdirectory because
4858 # it helps to detect inapplicable dependency modes. For instance
4859 # both Tru64's cc and ICC support -MD to output dependencies as a
4860 # side effect of compilation, but ICC will put the dependencies in
4861 # the current directory while Tru64 will put them in the object
4862 # directory.
4863 mkdir sub
4864
a93f15c0 4865 am_cv_OBJCXX_dependencies_compiler_type=none
a243b558
JF
4866 if test "$am_compiler_list" = ""; then
4867 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4868 fi
4869 am__universal=false
a93f15c0 4870
a243b558
JF
4871
4872 for depmode in $am_compiler_list; do
4873 # Setup a source with many dependencies, because some compilers
4874 # like to wrap large dependency lists on column 80 (with \), and
4875 # we should not choose a depcomp mode which is confused by this.
4876 #
4877 # We need to recreate these files for each test, as the compiler may
4878 # overwrite some of them when testing with obscure command lines.
4879 # This happens at least with the AIX C compiler.
4880 : > sub/conftest.c
4881 for i in 1 2 3 4 5 6; do
4882 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4883 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4884 # Solaris 10 /bin/sh.
4885 echo '/* dummy */' > sub/conftst$i.h
4886 done
4887 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4888
4889 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4890 # mode. It turns out that the SunPro C++ compiler does not properly
4891 # handle '-M -o', and we need to detect this. Also, some Intel
4892 # versions had trouble with output in subdirs.
4893 am__obj=sub/conftest.${OBJEXT-o}
4894 am__minus_obj="-o $am__obj"
4895 case $depmode in
4896 gcc)
4897 # This depmode causes a compiler race in universal mode.
4898 test "$am__universal" = false || continue
4899 ;;
4900 nosideeffect)
4901 # After this tag, mechanisms are not by side-effect, so they'll
4902 # only be used when explicitly requested.
4903 if test "x$enable_dependency_tracking" = xyes; then
4904 continue
4905 else
4906 break
4907 fi
4908 ;;
4909 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4910 # This compiler won't grok '-c -o', but also, the minuso test has
4911 # not run yet. These depmodes are late enough in the game, and
4912 # so weak that their functioning should not be impacted.
4913 am__obj=conftest.${OBJEXT-o}
4914 am__minus_obj=
4915 ;;
4916 none) break ;;
4917 esac
4918 if depmode=$depmode \
4919 source=sub/conftest.c object=$am__obj \
4920 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4921 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4922 >/dev/null 2>conftest.err &&
4923 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4924 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4925 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4926 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4927 # icc doesn't choke on unknown options, it will just issue warnings
4928 # or remarks (even with -Werror). So we grep stderr for any message
4929 # that says an option was ignored or not supported.
4930 # When given -MP, icc 7.0 and 7.1 complain thusly:
4931 # icc: Command line warning: ignoring option '-M'; no argument required
4932 # The diagnosis changed in icc 8.0:
4933 # icc: Command line remark: option '-MP' not supported
4934 if (grep 'ignoring option' conftest.err ||
4935 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
a93f15c0 4936 am_cv_OBJCXX_dependencies_compiler_type=$depmode
a243b558
JF
4937 break
4938 fi
4939 fi
4940 done
9c60689e 4941
a243b558
JF
4942 cd ..
4943 rm -rf conftest.dir
4944else
a93f15c0 4945 am_cv_OBJCXX_dependencies_compiler_type=none
35fa52c0 4946fi
a243b558 4947
35fa52c0 4948fi
a93f15c0
JF
4949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_OBJCXX_dependencies_compiler_type" >&5
4950$as_echo "$am_cv_OBJCXX_dependencies_compiler_type" >&6; }
4951OBJCXXDEPMODE=depmode=$am_cv_OBJCXX_dependencies_compiler_type
a243b558
JF
4952
4953 if
4954 test "x$enable_dependency_tracking" != xno \
a93f15c0
JF
4955 && test "$am_cv_OBJCXX_dependencies_compiler_type" = gcc3; then
4956 am__fastdepOBJCXX_TRUE=
4957 am__fastdepOBJCXX_FALSE='#'
a243b558 4958else
a93f15c0
JF
4959 am__fastdepOBJCXX_TRUE='#'
4960 am__fastdepOBJCXX_FALSE=
a243b558
JF
4961fi
4962
4963
4964
a93f15c0 4965
a243b558
JF
4966if test -n "$ac_tool_prefix"; then
4967 for ac_prog in ar lib "link -lib"
4968 do
4969 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4970set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4972$as_echo_n "checking for $ac_word... " >&6; }
4973if ${ac_cv_prog_AR+:} false; then :
4974 $as_echo_n "(cached) " >&6
4975else
4976 if test -n "$AR"; then
4977 ac_cv_prog_AR="$AR" # Let the user override the test.
4978else
4979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4980for as_dir in $PATH
4981do
4982 IFS=$as_save_IFS
4983 test -z "$as_dir" && as_dir=.
4984 for ac_exec_ext in '' $ac_executable_extensions; do
4985 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4986 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4988 break 2
4989 fi
4990done
4991 done
4992IFS=$as_save_IFS
4993
4994fi
4995fi
4996AR=$ac_cv_prog_AR
4997if test -n "$AR"; then
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4999$as_echo "$AR" >&6; }
35fa52c0
DWT
5000else
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5002$as_echo "no" >&6; }
5003fi
9c60689e 5004
a243b558
JF
5005
5006 test -n "$AR" && break
5007 done
5008fi
5009if test -z "$AR"; then
5010 ac_ct_AR=$AR
5011 for ac_prog in ar lib "link -lib"
5012do
5013 # Extract the first word of "$ac_prog", so it can be a program name with args.
5014set dummy $ac_prog; ac_word=$2
5015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5016$as_echo_n "checking for $ac_word... " >&6; }
5017if ${ac_cv_prog_ac_ct_AR+:} false; then :
5018 $as_echo_n "(cached) " >&6
5019else
5020 if test -n "$ac_ct_AR"; then
5021 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5022else
5023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5024for as_dir in $PATH
5025do
5026 IFS=$as_save_IFS
5027 test -z "$as_dir" && as_dir=.
5028 for ac_exec_ext in '' $ac_executable_extensions; do
5029 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5030 ac_cv_prog_ac_ct_AR="$ac_prog"
5031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5032 break 2
5033 fi
5034done
5035 done
5036IFS=$as_save_IFS
5037
5038fi
5039fi
5040ac_ct_AR=$ac_cv_prog_ac_ct_AR
5041if test -n "$ac_ct_AR"; then
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5043$as_echo "$ac_ct_AR" >&6; }
5044else
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5046$as_echo "no" >&6; }
5047fi
5048
5049
5050 test -n "$ac_ct_AR" && break
5051done
5052
5053 if test "x$ac_ct_AR" = x; then
5054 AR="false"
9c60689e
DWT
5055 else
5056 case $cross_compiling:$ac_tool_warned in
5057yes:)
5058{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5059$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5060ac_tool_warned=yes ;;
35fa52c0 5061esac
a243b558 5062 AR=$ac_ct_AR
9c60689e 5063 fi
a243b558
JF
5064fi
5065
5066: ${AR=ar}
5067
5068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5069$as_echo_n "checking the archiver ($AR) interface... " >&6; }
5070if ${am_cv_ar_interface+:} false; then :
5071 $as_echo_n "(cached) " >&6
9c60689e 5072else
a93f15c0
JF
5073 ac_ext=c
5074ac_cpp='$CPP $CPPFLAGS'
5075ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5076ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5077ac_compiler_gnu=$ac_cv_c_compiler_gnu
5078
5079 am_cv_ar_interface=ar
a243b558
JF
5080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5081/* end confdefs.h. */
5082int some_variable = 0;
5083_ACEOF
5084if ac_fn_c_try_compile "$LINENO"; then :
5085 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
5086 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5087 (eval $am_ar_try) 2>&5
5088 ac_status=$?
5089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5090 test $ac_status = 0; }
5091 if test "$ac_status" -eq 0; then
5092 am_cv_ar_interface=ar
5093 else
5094 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5095 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5096 (eval $am_ar_try) 2>&5
5097 ac_status=$?
5098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5099 test $ac_status = 0; }
5100 if test "$ac_status" -eq 0; then
5101 am_cv_ar_interface=lib
5102 else
5103 am_cv_ar_interface=unknown
5104 fi
5105 fi
5106 rm -f conftest.lib libconftest.a
5107
35fa52c0 5108fi
a243b558 5109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a93f15c0
JF
5110 ac_ext=c
5111ac_cpp='$CPP $CPPFLAGS'
5112ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5113ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5114ac_compiler_gnu=$ac_cv_c_compiler_gnu
35fa52c0 5115
a243b558
JF
5116fi
5117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5118$as_echo "$am_cv_ar_interface" >&6; }
35fa52c0 5119
a243b558
JF
5120case $am_cv_ar_interface in
5121ar)
5122 ;;
5123lib)
5124 # Microsoft lib, so override with the ar-lib wrapper script.
5125 # FIXME: It is wrong to rewrite AR.
5126 # But if we don't then we get into trouble of one sort or another.
5127 # A longer-term fix would be to have automake use am__AR in this case,
5128 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5129 # similar.
5130 AR="$am_aux_dir/ar-lib $AR"
5131 ;;
5132unknown)
5133 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
5134 ;;
5135esac
35fa52c0 5136
35fa52c0 5137
35fa52c0 5138
a243b558
JF
5139case `pwd` in
5140 *\ * | *\ *)
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5142$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5143esac
35fa52c0
DWT
5144
5145
5146
a243b558
JF
5147macro_version='2.4.2'
5148macro_revision='1.3337'
35fa52c0
DWT
5149
5150
5151
5152
5153
5154
5155
5156
5157
35fa52c0 5158
35fa52c0 5159
ee134472 5160
35fa52c0 5161
a243b558 5162ltmain="$ac_aux_dir/ltmain.sh"
35fa52c0 5163
a243b558
JF
5164# Make sure we can run config.sub.
5165$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5166 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
35fa52c0 5167
a243b558
JF
5168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5169$as_echo_n "checking build system type... " >&6; }
5170if ${ac_cv_build+:} false; then :
5171 $as_echo_n "(cached) " >&6
5172else
5173 ac_build_alias=$build_alias
5174test "x$ac_build_alias" = x &&
5175 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5176test "x$ac_build_alias" = x &&
5177 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5178ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5179 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
35fa52c0 5180
a243b558
JF
5181fi
5182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5183$as_echo "$ac_cv_build" >&6; }
5184case $ac_cv_build in
5185*-*-*) ;;
5186*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5187esac
5188build=$ac_cv_build
5189ac_save_IFS=$IFS; IFS='-'
5190set x $ac_cv_build
5191shift
5192build_cpu=$1
5193build_vendor=$2
5194shift; shift
5195# Remember, the first character of IFS is used to create $*,
5196# except with old shells:
5197build_os=$*
5198IFS=$ac_save_IFS
5199case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
35fa52c0 5200
35fa52c0 5201
a243b558
JF
5202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5203$as_echo_n "checking host system type... " >&6; }
5204if ${ac_cv_host+:} false; then :
5205 $as_echo_n "(cached) " >&6
5206else
5207 if test "x$host_alias" = x; then
5208 ac_cv_host=$ac_cv_build
5209else
5210 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5211 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5212fi
35fa52c0 5213
a243b558
JF
5214fi
5215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5216$as_echo "$ac_cv_host" >&6; }
5217case $ac_cv_host in
5218*-*-*) ;;
5219*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5220esac
5221host=$ac_cv_host
5222ac_save_IFS=$IFS; IFS='-'
5223set x $ac_cv_host
5224shift
5225host_cpu=$1
5226host_vendor=$2
5227shift; shift
5228# Remember, the first character of IFS is used to create $*,
5229# except with old shells:
5230host_os=$*
5231IFS=$ac_save_IFS
5232case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
9c60689e 5233
9c60689e 5234
a243b558
JF
5235# Backslashify metacharacters that are still active within
5236# double-quoted strings.
5237sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9c60689e 5238
a243b558
JF
5239# Same as above, but do not quote variable references.
5240double_quote_subst='s/\(["`\\]\)/\\\1/g'
9c60689e 5241
a243b558
JF
5242# Sed substitution to delay expansion of an escaped shell variable in a
5243# double_quote_subst'ed string.
5244delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9c60689e 5245
a243b558
JF
5246# Sed substitution to delay expansion of an escaped single quote.
5247delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9c60689e 5248
a243b558
JF
5249# Sed substitution to avoid accidental globbing in evaled expressions
5250no_glob_subst='s/\*/\\\*/g'
35fa52c0 5251
a243b558
JF
5252ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5253ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5254ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
ee134472 5255
a243b558
JF
5256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5257$as_echo_n "checking how to print strings... " >&6; }
5258# Test print first, because it will be a builtin if present.
5259if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5260 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5261 ECHO='print -r --'
5262elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5263 ECHO='printf %s\n'
5264else
5265 # Use this function as a fallback that always works.
5266 func_fallback_echo ()
5267 {
5268 eval 'cat <<_LTECHO_EOF
5269$1
5270_LTECHO_EOF'
5271 }
5272 ECHO='func_fallback_echo'
ee134472
JF
5273fi
5274
a243b558
JF
5275# func_echo_all arg...
5276# Invoke $ECHO with all args, space-separated.
5277func_echo_all ()
5278{
5279 $ECHO ""
5280}
35fa52c0 5281
a243b558
JF
5282case "$ECHO" in
5283 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5284$as_echo "printf" >&6; } ;;
5285 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5286$as_echo "print -r" >&6; } ;;
5287 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5288$as_echo "cat" >&6; } ;;
5289esac
35fa52c0 5290
35fa52c0 5291
ee134472
JF
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
35fa52c0 5302
9c60689e 5303
a243b558
JF
5304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5305$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5306if ${ac_cv_path_SED+:} false; then :
9c60689e
DWT
5307 $as_echo_n "(cached) " >&6
5308else
a243b558
JF
5309 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5310 for ac_i in 1 2 3 4 5 6 7; do
5311 ac_script="$ac_script$as_nl$ac_script"
5312 done
5313 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5314 { ac_script=; unset ac_script;}
5315 if test -z "$SED"; then
5316 ac_path_SED_found=false
5317 # Loop through the user's path and test for each of PROGNAME-LIST
5318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9c60689e
DWT
5319for as_dir in $PATH
5320do
5321 IFS=$as_save_IFS
5322 test -z "$as_dir" && as_dir=.
a243b558 5323 for ac_prog in sed gsed; do
9c60689e 5324 for ac_exec_ext in '' $ac_executable_extensions; do
a243b558
JF
5325 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5326 as_fn_executable_p "$ac_path_SED" || continue
5327# Check for GNU ac_path_SED and select it if it is found.
5328 # Check for GNU $ac_path_SED
5329case `"$ac_path_SED" --version 2>&1` in
5330*GNU*)
5331 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5332*)
5333 ac_count=0
5334 $as_echo_n 0123456789 >"conftest.in"
5335 while :
5336 do
5337 cat "conftest.in" "conftest.in" >"conftest.tmp"
5338 mv "conftest.tmp" "conftest.in"
5339 cp "conftest.in" "conftest.nl"
5340 $as_echo '' >> "conftest.nl"
5341 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5342 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5343 as_fn_arith $ac_count + 1 && ac_count=$as_val
5344 if test $ac_count -gt ${ac_path_SED_max-0}; then
5345 # Best one so far, save it but keep looking for a better one
5346 ac_cv_path_SED="$ac_path_SED"
5347 ac_path_SED_max=$ac_count
5348 fi
5349 # 10*(2^10) chars as input seems more than enough
5350 test $ac_count -gt 10 && break
35fa52c0 5351 done
a243b558
JF
5352 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5353esac
9c60689e 5354
a243b558
JF
5355 $ac_path_SED_found && break 3
5356 done
5357 done
9c60689e
DWT
5358 done
5359IFS=$as_save_IFS
a243b558
JF
5360 if test -z "$ac_cv_path_SED"; then
5361 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
9c60689e
DWT
5362 fi
5363else
a243b558 5364 ac_cv_path_SED=$SED
9c60689e
DWT
5365fi
5366
a243b558
JF
5367fi
5368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5369$as_echo "$ac_cv_path_SED" >&6; }
5370 SED="$ac_cv_path_SED"
5371 rm -f conftest.sed
9c60689e 5372
a243b558
JF
5373test -z "$SED" && SED=sed
5374Xsed="$SED -e 1s/^X//"
9c60689e 5375
ee134472 5376
ee134472 5377
9c60689e
DWT
5378
5379
5380
5381
5382
5383
5384
5385
a243b558
JF
5386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5387$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5388if ${ac_cv_path_GREP+:} false; then :
9c60689e
DWT
5389 $as_echo_n "(cached) " >&6
5390else
a243b558
JF
5391 if test -z "$GREP"; then
5392 ac_path_GREP_found=false
5393 # Loop through the user's path and test for each of PROGNAME-LIST
5394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5395for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9c60689e
DWT
5396do
5397 IFS=$as_save_IFS
5398 test -z "$as_dir" && as_dir=.
a243b558 5399 for ac_prog in grep ggrep; do
9c60689e 5400 for ac_exec_ext in '' $ac_executable_extensions; do
a243b558
JF
5401 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5402 as_fn_executable_p "$ac_path_GREP" || continue
5403# Check for GNU ac_path_GREP and select it if it is found.
5404 # Check for GNU $ac_path_GREP
5405case `"$ac_path_GREP" --version 2>&1` in
5406*GNU*)
5407 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5408*)
5409 ac_count=0
5410 $as_echo_n 0123456789 >"conftest.in"
5411 while :
5412 do
5413 cat "conftest.in" "conftest.in" >"conftest.tmp"
5414 mv "conftest.tmp" "conftest.in"
5415 cp "conftest.in" "conftest.nl"
5416 $as_echo 'GREP' >> "conftest.nl"
5417 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5418 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5419 as_fn_arith $ac_count + 1 && ac_count=$as_val
5420 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5421 # Best one so far, save it but keep looking for a better one
5422 ac_cv_path_GREP="$ac_path_GREP"
5423 ac_path_GREP_max=$ac_count
5424 fi
5425 # 10*(2^10) chars as input seems more than enough
5426 test $ac_count -gt 10 && break
5427 done
5428 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5429esac
9c60689e 5430
a243b558
JF
5431 $ac_path_GREP_found && break 3
5432 done
ee134472 5433 done
a243b558
JF
5434 done
5435IFS=$as_save_IFS
5436 if test -z "$ac_cv_path_GREP"; then
5437 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5438 fi
5439else
5440 ac_cv_path_GREP=$GREP
9c60689e 5441fi
a243b558
JF
5442
5443fi
5444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5445$as_echo "$ac_cv_path_GREP" >&6; }
5446 GREP="$ac_cv_path_GREP"
5447
5448
5449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5450$as_echo_n "checking for egrep... " >&6; }
5451if ${ac_cv_path_EGREP+:} false; then :
9c60689e
DWT
5452 $as_echo_n "(cached) " >&6
5453else
a243b558
JF
5454 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5455 then ac_cv_path_EGREP="$GREP -E"
5456 else
5457 if test -z "$EGREP"; then
5458 ac_path_EGREP_found=false
5459 # Loop through the user's path and test for each of PROGNAME-LIST
5460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5461for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9c60689e
DWT
5462do
5463 IFS=$as_save_IFS
5464 test -z "$as_dir" && as_dir=.
a243b558 5465 for ac_prog in egrep; do
9c60689e 5466 for ac_exec_ext in '' $ac_executable_extensions; do
a243b558
JF
5467 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5468 as_fn_executable_p "$ac_path_EGREP" || continue
5469# Check for GNU ac_path_EGREP and select it if it is found.
5470 # Check for GNU $ac_path_EGREP
5471case `"$ac_path_EGREP" --version 2>&1` in
5472*GNU*)
5473 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5474*)
5475 ac_count=0
5476 $as_echo_n 0123456789 >"conftest.in"
5477 while :
5478 do
5479 cat "conftest.in" "conftest.in" >"conftest.tmp"
5480 mv "conftest.tmp" "conftest.in"
5481 cp "conftest.in" "conftest.nl"
5482 $as_echo 'EGREP' >> "conftest.nl"
5483 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5484 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5485 as_fn_arith $ac_count + 1 && ac_count=$as_val
5486 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5487 # Best one so far, save it but keep looking for a better one
5488 ac_cv_path_EGREP="$ac_path_EGREP"
5489 ac_path_EGREP_max=$ac_count
5490 fi
5491 # 10*(2^10) chars as input seems more than enough
5492 test $ac_count -gt 10 && break
9c60689e 5493 done
a243b558
JF
5494 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5495esac
9c60689e 5496
a243b558
JF
5497 $ac_path_EGREP_found && break 3
5498 done
5499 done
5500 done
5501IFS=$as_save_IFS
5502 if test -z "$ac_cv_path_EGREP"; then
5503 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5504 fi
9c60689e 5505else
a243b558 5506 ac_cv_path_EGREP=$EGREP
9c60689e
DWT
5507fi
5508
a243b558
JF
5509 fi
5510fi
5511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5512$as_echo "$ac_cv_path_EGREP" >&6; }
5513 EGREP="$ac_cv_path_EGREP"
ee134472 5514
ee134472 5515
a243b558
JF
5516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5517$as_echo_n "checking for fgrep... " >&6; }
5518if ${ac_cv_path_FGREP+:} false; then :
5519 $as_echo_n "(cached) " >&6
5520else
5521 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5522 then ac_cv_path_FGREP="$GREP -F"
5523 else
5524 if test -z "$FGREP"; then
5525 ac_path_FGREP_found=false
5526 # Loop through the user's path and test for each of PROGNAME-LIST
5527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5528for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5529do
5530 IFS=$as_save_IFS
5531 test -z "$as_dir" && as_dir=.
5532 for ac_prog in fgrep; do
5533 for ac_exec_ext in '' $ac_executable_extensions; do
5534 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5535 as_fn_executable_p "$ac_path_FGREP" || continue
5536# Check for GNU ac_path_FGREP and select it if it is found.
5537 # Check for GNU $ac_path_FGREP
5538case `"$ac_path_FGREP" --version 2>&1` in
5539*GNU*)
5540 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5541*)
5542 ac_count=0
5543 $as_echo_n 0123456789 >"conftest.in"
5544 while :
5545 do
5546 cat "conftest.in" "conftest.in" >"conftest.tmp"
5547 mv "conftest.tmp" "conftest.in"
5548 cp "conftest.in" "conftest.nl"
5549 $as_echo 'FGREP' >> "conftest.nl"
5550 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5551 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5552 as_fn_arith $ac_count + 1 && ac_count=$as_val
5553 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5554 # Best one so far, save it but keep looking for a better one
5555 ac_cv_path_FGREP="$ac_path_FGREP"
5556 ac_path_FGREP_max=$ac_count
5557 fi
5558 # 10*(2^10) chars as input seems more than enough
5559 test $ac_count -gt 10 && break
5560 done
5561 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9c60689e 5562esac
a243b558
JF
5563
5564 $ac_path_FGREP_found && break 3
5565 done
5566 done
5567 done
5568IFS=$as_save_IFS
5569 if test -z "$ac_cv_path_FGREP"; then
5570 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
ee134472 5571 fi
a243b558
JF
5572else
5573 ac_cv_path_FGREP=$FGREP
ee134472
JF
5574fi
5575
a243b558
JF
5576 fi
5577fi
5578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5579$as_echo "$ac_cv_path_FGREP" >&6; }
5580 FGREP="$ac_cv_path_FGREP"
ee134472
JF
5581
5582
a243b558 5583test -z "$GREP" && GREP=grep
ee134472
JF
5584
5585
5586
5587
5588
5589
5590
ee134472 5591
ee134472 5592
ee134472 5593
ee134472 5594
ee134472 5595
ee134472
JF
5596
5597
5598
5599
5600
5601
5602
a243b558
JF
5603# Check whether --with-gnu-ld was given.
5604if test "${with_gnu_ld+set}" = set; then :
5605 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5606else
5607 with_gnu_ld=no
5608fi
5609
5610ac_prog=ld
5611if test "$GCC" = yes; then
5612 # Check if gcc -print-prog-name=ld gives a path.
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5614$as_echo_n "checking for ld used by $CC... " >&6; }
5615 case $host in
5616 *-*-mingw*)
5617 # gcc leaves a trailing carriage return which upsets mingw
5618 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5619 *)
5620 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5621 esac
5622 case $ac_prog in
5623 # Accept absolute paths.
5624 [\\/]* | ?:[\\/]*)
5625 re_direlt='/[^/][^/]*/\.\./'
5626 # Canonicalize the pathname of ld
5627 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5628 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5629 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5630 done
5631 test -z "$LD" && LD="$ac_prog"
5632 ;;
5633 "")
5634 # If it fails, then pretend we aren't using GCC.
5635 ac_prog=ld
5636 ;;
5637 *)
5638 # If it is relative, then search for the first ld in PATH.
5639 with_gnu_ld=unknown
5640 ;;
5641 esac
5642elif test "$with_gnu_ld" = yes; then
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5644$as_echo_n "checking for GNU ld... " >&6; }
5645else
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5647$as_echo_n "checking for non-GNU ld... " >&6; }
5648fi
5649if ${lt_cv_path_LD+:} false; then :
5650 $as_echo_n "(cached) " >&6
5651else
5652 if test -z "$LD"; then
5653 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5654 for ac_dir in $PATH; do
5655 IFS="$lt_save_ifs"
5656 test -z "$ac_dir" && ac_dir=.
5657 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5658 lt_cv_path_LD="$ac_dir/$ac_prog"
5659 # Check to see if the program is GNU ld. I'd rather use --version,
5660 # but apparently some variants of GNU ld only accept -v.
5661 # Break only if it was the GNU/non-GNU ld that we prefer.
5662 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5663 *GNU* | *'with BFD'*)
5664 test "$with_gnu_ld" != no && break
5665 ;;
5666 *)
5667 test "$with_gnu_ld" != yes && break
5668 ;;
5669 esac
5670 fi
5671 done
5672 IFS="$lt_save_ifs"
5673else
5674 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5675fi
5676fi
5677
5678LD="$lt_cv_path_LD"
5679if test -n "$LD"; then
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5681$as_echo "$LD" >&6; }
5682else
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5684$as_echo "no" >&6; }
5685fi
5686test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5688$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5689if ${lt_cv_prog_gnu_ld+:} false; then :
5690 $as_echo_n "(cached) " >&6
5691else
5692 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5693case `$LD -v 2>&1 </dev/null` in
5694*GNU* | *'with BFD'*)
5695 lt_cv_prog_gnu_ld=yes
5696 ;;
5697*)
5698 lt_cv_prog_gnu_ld=no
5699 ;;
5700esac
5701fi
5702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5703$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5704with_gnu_ld=$lt_cv_prog_gnu_ld
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5715$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5716if ${lt_cv_path_NM+:} false; then :
5717 $as_echo_n "(cached) " >&6
5718else
5719 if test -n "$NM"; then
5720 # Let the user override the test.
5721 lt_cv_path_NM="$NM"
5722else
5723 lt_nm_to_check="${ac_tool_prefix}nm"
5724 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5725 lt_nm_to_check="$lt_nm_to_check nm"
5726 fi
5727 for lt_tmp_nm in $lt_nm_to_check; do
5728 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5729 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5730 IFS="$lt_save_ifs"
5731 test -z "$ac_dir" && ac_dir=.
5732 tmp_nm="$ac_dir/$lt_tmp_nm"
5733 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5734 # Check to see if the nm accepts a BSD-compat flag.
5735 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5736 # nm: unknown option "B" ignored
5737 # Tru64's nm complains that /dev/null is an invalid object file
5738 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5739 */dev/null* | *'Invalid file or object type'*)
5740 lt_cv_path_NM="$tmp_nm -B"
5741 break
5742 ;;
5743 *)
5744 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5745 */dev/null*)
5746 lt_cv_path_NM="$tmp_nm -p"
5747 break
5748 ;;
5749 *)
5750 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5751 continue # so that we can try to find one that supports BSD flags
5752 ;;
5753 esac
5754 ;;
5755 esac
5756 fi
5757 done
5758 IFS="$lt_save_ifs"
5759 done
5760 : ${lt_cv_path_NM=no}
5761fi
5762fi
5763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5764$as_echo "$lt_cv_path_NM" >&6; }
5765if test "$lt_cv_path_NM" != "no"; then
5766 NM="$lt_cv_path_NM"
5767else
5768 # Didn't find any BSD compatible name lister, look for dumpbin.
5769 if test -n "$DUMPBIN"; then :
5770 # Let the user override the test.
5771 else
5772 if test -n "$ac_tool_prefix"; then
5773 for ac_prog in dumpbin "link -dump"
5774 do
5775 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5776set dummy $ac_tool_prefix$ac_prog; ac_word=$2
ee134472
JF
5777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5778$as_echo_n "checking for $ac_word... " >&6; }
a243b558 5779if ${ac_cv_prog_DUMPBIN+:} false; then :
ee134472
JF
5780 $as_echo_n "(cached) " >&6
5781else
a243b558
JF
5782 if test -n "$DUMPBIN"; then
5783 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
ee134472
JF
5784else
5785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5786for as_dir in $PATH
5787do
5788 IFS=$as_save_IFS
5789 test -z "$as_dir" && as_dir=.
5790 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 5791 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 5792 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
ee134472
JF
5793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5794 break 2
5795 fi
5796done
5797 done
5798IFS=$as_save_IFS
5799
5800fi
5801fi
a243b558
JF
5802DUMPBIN=$ac_cv_prog_DUMPBIN
5803if test -n "$DUMPBIN"; then
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5805$as_echo "$DUMPBIN" >&6; }
ee134472
JF
5806else
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5808$as_echo "no" >&6; }
5809fi
5810
5811
a243b558
JF
5812 test -n "$DUMPBIN" && break
5813 done
ee134472 5814fi
a243b558
JF
5815if test -z "$DUMPBIN"; then
5816 ac_ct_DUMPBIN=$DUMPBIN
5817 for ac_prog in dumpbin "link -dump"
5818do
5819 # Extract the first word of "$ac_prog", so it can be a program name with args.
5820set dummy $ac_prog; ac_word=$2
ee134472
JF
5821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5822$as_echo_n "checking for $ac_word... " >&6; }
a243b558 5823if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
ee134472
JF
5824 $as_echo_n "(cached) " >&6
5825else
a243b558
JF
5826 if test -n "$ac_ct_DUMPBIN"; then
5827 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
ee134472
JF
5828else
5829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5830for as_dir in $PATH
5831do
5832 IFS=$as_save_IFS
5833 test -z "$as_dir" && as_dir=.
5834 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 5835 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 5836 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
ee134472
JF
5837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5838 break 2
5839 fi
5840done
5841 done
5842IFS=$as_save_IFS
5843
5844fi
5845fi
a243b558
JF
5846ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5847if test -n "$ac_ct_DUMPBIN"; then
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5849$as_echo "$ac_ct_DUMPBIN" >&6; }
ee134472
JF
5850else
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5852$as_echo "no" >&6; }
5853fi
5854
a243b558
JF
5855
5856 test -n "$ac_ct_DUMPBIN" && break
5857done
5858
5859 if test "x$ac_ct_DUMPBIN" = x; then
5860 DUMPBIN=":"
ee134472
JF
5861 else
5862 case $cross_compiling:$ac_tool_warned in
5863yes:)
5864{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5865$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5866ac_tool_warned=yes ;;
5867esac
a243b558 5868 DUMPBIN=$ac_ct_DUMPBIN
9c60689e 5869 fi
9c60689e
DWT
5870fi
5871
a243b558
JF
5872 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5873 *COFF*)
5874 DUMPBIN="$DUMPBIN -symbols"
5875 ;;
5876 *)
5877 DUMPBIN=:
5878 ;;
5879 esac
5880 fi
9c60689e 5881
a243b558
JF
5882 if test "$DUMPBIN" != ":"; then
5883 NM="$DUMPBIN"
5884 fi
5885fi
5886test -z "$NM" && NM=nm
9c60689e
DWT
5887
5888
5889
5890
5891
a243b558
JF
5892
5893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5894$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5895if ${lt_cv_nm_interface+:} false; then :
9c60689e
DWT
5896 $as_echo_n "(cached) " >&6
5897else
a243b558
JF
5898 lt_cv_nm_interface="BSD nm"
5899 echo "int some_variable = 0;" > conftest.$ac_ext
5900 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5901 (eval "$ac_compile" 2>conftest.err)
5902 cat conftest.err >&5
5903 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5904 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5905 cat conftest.err >&5
5906 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5907 cat conftest.out >&5
5908 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5909 lt_cv_nm_interface="MS dumpbin"
9c60689e 5910 fi
00a96142 5911 rm -rf conftest*
9c60689e 5912fi
a243b558
JF
5913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5914$as_echo "$lt_cv_nm_interface" >&6; }
5915
5916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5917$as_echo_n "checking whether ln -s works... " >&6; }
5918LN_S=$as_ln_s
5919if test "$LN_S" = "ln -s"; then
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5921$as_echo "yes" >&6; }
9c60689e 5922else
a243b558
JF
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5924$as_echo "no, using $LN_S" >&6; }
9c60689e
DWT
5925fi
5926
a243b558
JF
5927# find the maximum length of command line arguments
5928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5929$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5930if ${lt_cv_sys_max_cmd_len+:} false; then :
9c60689e
DWT
5931 $as_echo_n "(cached) " >&6
5932else
a243b558
JF
5933 i=0
5934 teststring="ABCD"
9c60689e 5935
a243b558
JF
5936 case $build_os in
5937 msdosdjgpp*)
5938 # On DJGPP, this test can blow up pretty badly due to problems in libc
5939 # (any single argument exceeding 2000 bytes causes a buffer overrun
5940 # during glob expansion). Even if it were fixed, the result of this
5941 # check would be larger than it should be.
5942 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5943 ;;
9c60689e 5944
a243b558
JF
5945 gnu*)
5946 # Under GNU Hurd, this test is not required because there is
5947 # no limit to the length of command line arguments.
5948 # Libtool will interpret -1 as no limit whatsoever
5949 lt_cv_sys_max_cmd_len=-1;
5950 ;;
9c60689e 5951
a243b558
JF
5952 cygwin* | mingw* | cegcc*)
5953 # On Win9x/ME, this test blows up -- it succeeds, but takes
5954 # about 5 minutes as the teststring grows exponentially.
5955 # Worse, since 9x/ME are not pre-emptively multitasking,
5956 # you end up with a "frozen" computer, even though with patience
5957 # the test eventually succeeds (with a max line length of 256k).
5958 # Instead, let's just punt: use the minimum linelength reported by
5959 # all of the supported platforms: 8192 (on NT/2K/XP).
5960 lt_cv_sys_max_cmd_len=8192;
5961 ;;
9c60689e 5962
a243b558
JF
5963 mint*)
5964 # On MiNT this can take a long time and run out of memory.
5965 lt_cv_sys_max_cmd_len=8192;
5966 ;;
9c60689e 5967
a243b558
JF
5968 amigaos*)
5969 # On AmigaOS with pdksh, this test takes hours, literally.
5970 # So we just punt and use a minimum line length of 8192.
5971 lt_cv_sys_max_cmd_len=8192;
5972 ;;
9c60689e 5973
a243b558
JF
5974 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5975 # This has been around since 386BSD, at least. Likely further.
5976 if test -x /sbin/sysctl; then
5977 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5978 elif test -x /usr/sbin/sysctl; then
5979 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5980 else
5981 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5982 fi
5983 # And add a safety zone
5984 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5985 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5986 ;;
9c60689e 5987
a243b558
JF
5988 interix*)
5989 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5990 lt_cv_sys_max_cmd_len=196608
5991 ;;
9c60689e 5992
a243b558
JF
5993 os2*)
5994 # The test takes a long time on OS/2.
5995 lt_cv_sys_max_cmd_len=8192
5996 ;;
9c60689e 5997
a243b558
JF
5998 osf*)
5999 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6000 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6001 # nice to cause kernel panics so lets avoid the loop below.
6002 # First set a reasonable default.
6003 lt_cv_sys_max_cmd_len=16384
6004 #
6005 if test -x /sbin/sysconfig; then
6006 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6007 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6008 esac
6009 fi
6010 ;;
6011 sco3.2v5*)
6012 lt_cv_sys_max_cmd_len=102400
6013 ;;
6014 sysv5* | sco5v6* | sysv4.2uw2*)
6015 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6016 if test -n "$kargmax"; then
6017 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6018 else
6019 lt_cv_sys_max_cmd_len=32768
6020 fi
9c60689e
DWT
6021 ;;
6022 *)
a243b558
JF
6023 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6024 if test -n "$lt_cv_sys_max_cmd_len"; then
6025 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6026 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6027 else
6028 # Make teststring a little bigger before we do anything with it.
6029 # a 1K string should be a reasonable start.
6030 for i in 1 2 3 4 5 6 7 8 ; do
6031 teststring=$teststring$teststring
6032 done
6033 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6034 # If test is not a shell built-in, we'll probably end up computing a
6035 # maximum length that is only half of the actual maximum length, but
6036 # we can't tell.
6037 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
6038 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6039 test $i != 17 # 1/2 MB should be enough
6040 do
6041 i=`expr $i + 1`
6042 teststring=$teststring$teststring
6043 done
6044 # Only check the string length outside the loop.
6045 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6046 teststring=
6047 # Add a significant safety factor because C++ compilers can tack on
6048 # massive amounts of additional arguments before passing them to the
6049 # linker. It appears as though 1/2 is a usable value.
6050 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6051 fi
9c60689e
DWT
6052 ;;
6053 esac
ee134472 6054
a243b558 6055fi
ee134472 6056
a243b558
JF
6057if test -n $lt_cv_sys_max_cmd_len ; then
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6059$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6060else
6061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6062$as_echo "none" >&6; }
6063fi
6064max_cmd_len=$lt_cv_sys_max_cmd_len
ee134472
JF
6065
6066
9c60689e
DWT
6067
6068
6069
6070
a243b558
JF
6071: ${CP="cp -f"}
6072: ${MV="mv -f"}
6073: ${RM="rm -f"}
9c60689e 6074
a243b558
JF
6075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6076$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6077# Try some XSI features
6078xsi_shell=no
6079( _lt_dummy="a/b/c"
6080 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6081 = c,a/b,b/c, \
6082 && eval 'test $(( 1 + 1 )) -eq 2 \
6083 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6084 && xsi_shell=yes
6085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6086$as_echo "$xsi_shell" >&6; }
9c60689e
DWT
6087
6088
a243b558
JF
6089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6090$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6091lt_shell_append=no
6092( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6093 >/dev/null 2>&1 \
6094 && lt_shell_append=yes
6095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6096$as_echo "$lt_shell_append" >&6; }
9c60689e
DWT
6097
6098
a243b558
JF
6099if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6100 lt_unset=unset
6101else
6102 lt_unset=false
6103fi
9c60689e
DWT
6104
6105
6106
6107
6108
a243b558
JF
6109# test EBCDIC or ASCII
6110case `echo X|tr X '\101'` in
6111 A) # ASCII based system
6112 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6113 lt_SP2NL='tr \040 \012'
6114 lt_NL2SP='tr \015\012 \040\040'
6115 ;;
6116 *) # EBCDIC based system
6117 lt_SP2NL='tr \100 \n'
6118 lt_NL2SP='tr \r\n \100\100'
6119 ;;
6120esac
9c60689e
DWT
6121
6122
6123
6124
6125
6126
6127
6128
6129
a243b558
JF
6130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6131$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6132if ${lt_cv_to_host_file_cmd+:} false; then :
6133 $as_echo_n "(cached) " >&6
6134else
6135 case $host in
6136 *-*-mingw* )
6137 case $build in
6138 *-*-mingw* ) # actually msys
6139 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6140 ;;
6141 *-*-cygwin* )
6142 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6143 ;;
6144 * ) # otherwise, assume *nix
6145 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6146 ;;
6147 esac
6148 ;;
6149 *-*-cygwin* )
6150 case $build in
6151 *-*-mingw* ) # actually msys
6152 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6153 ;;
6154 *-*-cygwin* )
6155 lt_cv_to_host_file_cmd=func_convert_file_noop
6156 ;;
6157 * ) # otherwise, assume *nix
6158 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6159 ;;
6160 esac
6161 ;;
6162 * ) # unhandled hosts (and "normal" native builds)
6163 lt_cv_to_host_file_cmd=func_convert_file_noop
6164 ;;
6165esac
9c60689e 6166
a243b558 6167fi
9c60689e 6168
a243b558
JF
6169to_host_file_cmd=$lt_cv_to_host_file_cmd
6170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6171$as_echo "$lt_cv_to_host_file_cmd" >&6; }
9c60689e
DWT
6172
6173
6174
6175
6176
a243b558
JF
6177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6178$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6179if ${lt_cv_to_tool_file_cmd+:} false; then :
6180 $as_echo_n "(cached) " >&6
6181else
6182 #assume ordinary cross tools, or native build.
6183lt_cv_to_tool_file_cmd=func_convert_file_noop
6184case $host in
6185 *-*-mingw* )
6186 case $build in
6187 *-*-mingw* ) # actually msys
6188 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6189 ;;
6190 esac
6191 ;;
6192esac
9c60689e 6193
a243b558 6194fi
9c60689e 6195
a243b558
JF
6196to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6198$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
9c60689e 6199
9c60689e 6200
9c60689e 6201
9c60689e
DWT
6202
6203
a243b558
JF
6204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6205$as_echo_n "checking for $LD option to reload object files... " >&6; }
6206if ${lt_cv_ld_reload_flag+:} false; then :
9c60689e
DWT
6207 $as_echo_n "(cached) " >&6
6208else
a243b558
JF
6209 lt_cv_ld_reload_flag='-r'
6210fi
6211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6212$as_echo "$lt_cv_ld_reload_flag" >&6; }
6213reload_flag=$lt_cv_ld_reload_flag
6214case $reload_flag in
6215"" | " "*) ;;
6216*) reload_flag=" $reload_flag" ;;
6217esac
6218reload_cmds='$LD$reload_flag -o $output$reload_objs'
9c60689e 6219case $host_os in
a243b558
JF
6220 cygwin* | mingw* | pw32* | cegcc*)
6221 if test "$GCC" != yes; then
6222 reload_cmds=false
6223 fi
6224 ;;
6225 darwin*)
6226 if test "$GCC" = yes; then
6227 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6228 else
6229 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6230 fi
6231 ;;
9c60689e
DWT
6232esac
6233
9c60689e 6234
9c60689e 6235
9c60689e 6236
9c60689e 6237
9c60689e 6238
9c60689e 6239
9c60689e 6240
9c60689e 6241
a243b558
JF
6242if test -n "$ac_tool_prefix"; then
6243 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6244set dummy ${ac_tool_prefix}objdump; ac_word=$2
6245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6246$as_echo_n "checking for $ac_word... " >&6; }
6247if ${ac_cv_prog_OBJDUMP+:} false; then :
6248 $as_echo_n "(cached) " >&6
6249else
6250 if test -n "$OBJDUMP"; then
6251 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6252else
6253as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6254for as_dir in $PATH
6255do
6256 IFS=$as_save_IFS
6257 test -z "$as_dir" && as_dir=.
6258 for ac_exec_ext in '' $ac_executable_extensions; do
6259 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6260 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6262 break 2
6263 fi
6264done
6265 done
6266IFS=$as_save_IFS
9c60689e 6267
a243b558
JF
6268fi
6269fi
6270OBJDUMP=$ac_cv_prog_OBJDUMP
6271if test -n "$OBJDUMP"; then
6272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6273$as_echo "$OBJDUMP" >&6; }
6274else
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6276$as_echo "no" >&6; }
6277fi
9c60689e 6278
9c60689e 6279
a243b558
JF
6280fi
6281if test -z "$ac_cv_prog_OBJDUMP"; then
6282 ac_ct_OBJDUMP=$OBJDUMP
6283 # Extract the first word of "objdump", so it can be a program name with args.
6284set dummy objdump; ac_word=$2
6285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6286$as_echo_n "checking for $ac_word... " >&6; }
6287if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6288 $as_echo_n "(cached) " >&6
6289else
6290 if test -n "$ac_ct_OBJDUMP"; then
6291 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6292else
6293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6294for as_dir in $PATH
6295do
6296 IFS=$as_save_IFS
6297 test -z "$as_dir" && as_dir=.
6298 for ac_exec_ext in '' $ac_executable_extensions; do
6299 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6300 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6302 break 2
9c60689e
DWT
6303 fi
6304done
a243b558
JF
6305 done
6306IFS=$as_save_IFS
9c60689e
DWT
6307
6308fi
9c60689e 6309fi
a243b558
JF
6310ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6311if test -n "$ac_ct_OBJDUMP"; then
6312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6313$as_echo "$ac_ct_OBJDUMP" >&6; }
9c60689e 6314else
a243b558
JF
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6316$as_echo "no" >&6; }
9c60689e
DWT
6317fi
6318
a243b558
JF
6319 if test "x$ac_ct_OBJDUMP" = x; then
6320 OBJDUMP="false"
6321 else
6322 case $cross_compiling:$ac_tool_warned in
6323yes:)
6324{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6325$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6326ac_tool_warned=yes ;;
6327esac
6328 OBJDUMP=$ac_ct_OBJDUMP
6329 fi
6330else
6331 OBJDUMP="$ac_cv_prog_OBJDUMP"
ee134472
JF
6332fi
6333
a243b558 6334test -z "$OBJDUMP" && OBJDUMP=objdump
ee134472
JF
6335
6336
6337
6338
6339
6340
6341
6342
6343
a243b558
JF
6344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6345$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6346if ${lt_cv_deplibs_check_method+:} false; then :
6347 $as_echo_n "(cached) " >&6
6348else
6349 lt_cv_file_magic_cmd='$MAGIC_CMD'
6350lt_cv_file_magic_test_file=
6351lt_cv_deplibs_check_method='unknown'
6352# Need to set the preceding variable on all platforms that support
6353# interlibrary dependencies.
6354# 'none' -- dependencies not supported.
6355# `unknown' -- same as none, but documents that we really don't know.
6356# 'pass_all' -- all dependencies passed with no checks.
6357# 'test_compile' -- check by making test program.
6358# 'file_magic [[regex]]' -- check by looking for files in library path
6359# which responds to the $file_magic_cmd with a given extended regex.
6360# If you have `file' or equivalent on your system and you're not sure
6361# whether `pass_all' will *always* work, you probably want this one.
9c60689e 6362
a243b558
JF
6363case $host_os in
6364aix[4-9]*)
6365 lt_cv_deplibs_check_method=pass_all
6366 ;;
9c60689e 6367
a243b558
JF
6368beos*)
6369 lt_cv_deplibs_check_method=pass_all
6370 ;;
9c60689e 6371
a243b558
JF
6372bsdi[45]*)
6373 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6374 lt_cv_file_magic_cmd='/usr/bin/file -L'
6375 lt_cv_file_magic_test_file=/shlib/libc.so
6376 ;;
9c60689e 6377
a243b558
JF
6378cygwin*)
6379 # func_win32_libid is a shell function defined in ltmain.sh
6380 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6381 lt_cv_file_magic_cmd='func_win32_libid'
6382 ;;
9c60689e 6383
a243b558
JF
6384mingw* | pw32*)
6385 # Base MSYS/MinGW do not provide the 'file' command needed by
6386 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6387 # unless we find 'file', for example because we are cross-compiling.
6388 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6389 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6390 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6391 lt_cv_file_magic_cmd='func_win32_libid'
6392 else
6393 # Keep this pattern in sync with the one in func_win32_libid.
6394 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6395 lt_cv_file_magic_cmd='$OBJDUMP -f'
6396 fi
6397 ;;
9c60689e 6398
a243b558
JF
6399cegcc*)
6400 # use the weaker test based on 'objdump'. See mingw*.
6401 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6402 lt_cv_file_magic_cmd='$OBJDUMP -f'
6403 ;;
9c60689e 6404
a243b558
JF
6405darwin* | rhapsody*)
6406 lt_cv_deplibs_check_method=pass_all
6407 ;;
9c60689e 6408
a243b558
JF
6409freebsd* | dragonfly*)
6410 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6411 case $host_cpu in
6412 i*86 )
6413 # Not sure whether the presence of OpenBSD here was a mistake.
6414 # Let's accept both of them until this is cleared up.
6415 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6416 lt_cv_file_magic_cmd=/usr/bin/file
6417 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6418 ;;
6419 esac
6420 else
6421 lt_cv_deplibs_check_method=pass_all
6422 fi
6423 ;;
9c60689e 6424
a243b558
JF
6425gnu*)
6426 lt_cv_deplibs_check_method=pass_all
6427 ;;
9c60689e 6428
a243b558
JF
6429haiku*)
6430 lt_cv_deplibs_check_method=pass_all
6431 ;;
9c60689e 6432
a243b558
JF
6433hpux10.20* | hpux11*)
6434 lt_cv_file_magic_cmd=/usr/bin/file
6435 case $host_cpu in
6436 ia64*)
6437 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6438 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6439 ;;
6440 hppa*64*)
6441 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]'
6442 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6443 ;;
6444 *)
6445 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6446 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6447 ;;
6448 esac
6449 ;;
9c60689e 6450
a243b558
JF
6451interix[3-9]*)
6452 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6453 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6454 ;;
9c60689e 6455
a243b558
JF
6456irix5* | irix6* | nonstopux*)
6457 case $LD in
6458 *-32|*"-32 ") libmagic=32-bit;;
6459 *-n32|*"-n32 ") libmagic=N32;;
6460 *-64|*"-64 ") libmagic=64-bit;;
6461 *) libmagic=never-match;;
6462 esac
6463 lt_cv_deplibs_check_method=pass_all
6464 ;;
9c60689e 6465
a243b558
JF
6466# This must be glibc/ELF.
6467linux* | k*bsd*-gnu | kopensolaris*-gnu)
6468 lt_cv_deplibs_check_method=pass_all
6469 ;;
9c60689e 6470
a243b558
JF
6471netbsd*)
6472 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6473 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6474 else
6475 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6476 fi
6477 ;;
9c60689e 6478
a243b558
JF
6479newos6*)
6480 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6481 lt_cv_file_magic_cmd=/usr/bin/file
6482 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6483 ;;
9c60689e 6484
a243b558
JF
6485*nto* | *qnx*)
6486 lt_cv_deplibs_check_method=pass_all
6487 ;;
9c60689e 6488
a243b558
JF
6489openbsd*)
6490 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6491 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6492 else
6493 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6494 fi
6495 ;;
9c60689e 6496
a243b558
JF
6497osf3* | osf4* | osf5*)
6498 lt_cv_deplibs_check_method=pass_all
6499 ;;
9c60689e 6500
a243b558
JF
6501rdos*)
6502 lt_cv_deplibs_check_method=pass_all
9c60689e 6503 ;;
a243b558
JF
6504
6505solaris*)
6506 lt_cv_deplibs_check_method=pass_all
9c60689e
DWT
6507 ;;
6508
a243b558
JF
6509sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6510 lt_cv_deplibs_check_method=pass_all
9c60689e
DWT
6511 ;;
6512
a243b558
JF
6513sysv4 | sysv4.3*)
6514 case $host_vendor in
6515 motorola)
6516 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]'
6517 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6518 ;;
6519 ncr)
6520 lt_cv_deplibs_check_method=pass_all
6521 ;;
6522 sequent)
6523 lt_cv_file_magic_cmd='/bin/file'
6524 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6525 ;;
6526 sni)
6527 lt_cv_file_magic_cmd='/bin/file'
6528 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6529 lt_cv_file_magic_test_file=/lib/libc.so
6530 ;;
6531 siemens)
6532 lt_cv_deplibs_check_method=pass_all
6533 ;;
6534 pc)
6535 lt_cv_deplibs_check_method=pass_all
6536 ;;
6537 esac
6538 ;;
9c60689e 6539
a243b558
JF
6540tpf*)
6541 lt_cv_deplibs_check_method=pass_all
6542 ;;
6543esac
9c60689e 6544
a243b558
JF
6545fi
6546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6547$as_echo "$lt_cv_deplibs_check_method" >&6; }
9c60689e 6548
a243b558
JF
6549file_magic_glob=
6550want_nocaseglob=no
6551if test "$build" = "$host"; then
6552 case $host_os in
6553 mingw* | pw32*)
6554 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6555 want_nocaseglob=yes
6556 else
6557 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6558 fi
6559 ;;
6560 esac
9c60689e 6561fi
9c60689e 6562
a243b558
JF
6563file_magic_cmd=$lt_cv_file_magic_cmd
6564deplibs_check_method=$lt_cv_deplibs_check_method
6565test -z "$deplibs_check_method" && deplibs_check_method=unknown
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
9c60689e 6586
9c60689e 6587
ee134472 6588if test -n "$ac_tool_prefix"; then
a243b558
JF
6589 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6590set dummy ${ac_tool_prefix}dlltool; ac_word=$2
ee134472
JF
6591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6592$as_echo_n "checking for $ac_word... " >&6; }
a243b558 6593if ${ac_cv_prog_DLLTOOL+:} false; then :
ee134472
JF
6594 $as_echo_n "(cached) " >&6
6595else
a243b558
JF
6596 if test -n "$DLLTOOL"; then
6597 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
ee134472
JF
6598else
6599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6600for as_dir in $PATH
6601do
6602 IFS=$as_save_IFS
6603 test -z "$as_dir" && as_dir=.
6604 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 6605 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 6606 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
ee134472
JF
6607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6608 break 2
6609 fi
6610done
6611 done
6612IFS=$as_save_IFS
6613
6614fi
6615fi
a243b558
JF
6616DLLTOOL=$ac_cv_prog_DLLTOOL
6617if test -n "$DLLTOOL"; then
6618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6619$as_echo "$DLLTOOL" >&6; }
ee134472
JF
6620else
6621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6622$as_echo "no" >&6; }
6623fi
6624
6625
6626fi
a243b558
JF
6627if test -z "$ac_cv_prog_DLLTOOL"; then
6628 ac_ct_DLLTOOL=$DLLTOOL
6629 # Extract the first word of "dlltool", so it can be a program name with args.
6630set dummy dlltool; ac_word=$2
ee134472
JF
6631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6632$as_echo_n "checking for $ac_word... " >&6; }
a243b558 6633if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
ee134472
JF
6634 $as_echo_n "(cached) " >&6
6635else
a243b558
JF
6636 if test -n "$ac_ct_DLLTOOL"; then
6637 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
ee134472
JF
6638else
6639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6640for as_dir in $PATH
6641do
6642 IFS=$as_save_IFS
6643 test -z "$as_dir" && as_dir=.
6644 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 6645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 6646 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
ee134472
JF
6647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6648 break 2
6649 fi
6650done
6651 done
6652IFS=$as_save_IFS
6653
6654fi
6655fi
a243b558
JF
6656ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6657if test -n "$ac_ct_DLLTOOL"; then
6658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6659$as_echo "$ac_ct_DLLTOOL" >&6; }
ee134472
JF
6660else
6661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6662$as_echo "no" >&6; }
6663fi
6664
a243b558
JF
6665 if test "x$ac_ct_DLLTOOL" = x; then
6666 DLLTOOL="false"
ee134472
JF
6667 else
6668 case $cross_compiling:$ac_tool_warned in
6669yes:)
6670{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6671$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6672ac_tool_warned=yes ;;
6673esac
a243b558 6674 DLLTOOL=$ac_ct_DLLTOOL
ee134472
JF
6675 fi
6676else
a243b558 6677 DLLTOOL="$ac_cv_prog_DLLTOOL"
ee134472
JF
6678fi
6679
a243b558
JF
6680test -z "$DLLTOOL" && DLLTOOL=dlltool
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6692$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6693if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
ee134472
JF
6694 $as_echo_n "(cached) " >&6
6695else
a243b558
JF
6696 lt_cv_sharedlib_from_linklib_cmd='unknown'
6697
6698case $host_os in
6699cygwin* | mingw* | pw32* | cegcc*)
6700 # two different shell functions defined in ltmain.sh
6701 # decide which to use based on capabilities of $DLLTOOL
6702 case `$DLLTOOL --help 2>&1` in
6703 *--identify-strict*)
6704 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6705 ;;
6706 *)
6707 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6708 ;;
6709 esac
6710 ;;
6711*)
6712 # fallback: assume linklib IS sharedlib
6713 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6714 ;;
6715esac
6716
ee134472 6717fi
a243b558
JF
6718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6719$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6720sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6721test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
ee134472
JF
6722
6723
6724
6725
6726
9c60689e 6727
a243b558
JF
6728
6729if test -n "$ac_tool_prefix"; then
6730 for ac_prog in ar
6731 do
6732 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6733set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9c60689e
DWT
6734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6735$as_echo_n "checking for $ac_word... " >&6; }
a243b558 6736if ${ac_cv_prog_AR+:} false; then :
9c60689e
DWT
6737 $as_echo_n "(cached) " >&6
6738else
a243b558
JF
6739 if test -n "$AR"; then
6740 ac_cv_prog_AR="$AR" # Let the user override the test.
9c60689e
DWT
6741else
6742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6743for as_dir in $PATH
6744do
6745 IFS=$as_save_IFS
6746 test -z "$as_dir" && as_dir=.
6747 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 6748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 6749 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
9c60689e
DWT
6750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6751 break 2
6752 fi
6753done
6754 done
6755IFS=$as_save_IFS
6756
6757fi
6758fi
a243b558
JF
6759AR=$ac_cv_prog_AR
6760if test -n "$AR"; then
6761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6762$as_echo "$AR" >&6; }
9c60689e
DWT
6763else
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6765$as_echo "no" >&6; }
6766fi
6767
6768
a243b558
JF
6769 test -n "$AR" && break
6770 done
9c60689e 6771fi
a243b558
JF
6772if test -z "$AR"; then
6773 ac_ct_AR=$AR
6774 for ac_prog in ar
6775do
6776 # Extract the first word of "$ac_prog", so it can be a program name with args.
6777set dummy $ac_prog; ac_word=$2
9c60689e
DWT
6778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6779$as_echo_n "checking for $ac_word... " >&6; }
a243b558 6780if ${ac_cv_prog_ac_ct_AR+:} false; then :
9c60689e
DWT
6781 $as_echo_n "(cached) " >&6
6782else
a243b558
JF
6783 if test -n "$ac_ct_AR"; then
6784 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9c60689e
DWT
6785else
6786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6787for as_dir in $PATH
6788do
6789 IFS=$as_save_IFS
6790 test -z "$as_dir" && as_dir=.
6791 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 6792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 6793 ac_cv_prog_ac_ct_AR="$ac_prog"
9c60689e
DWT
6794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6795 break 2
6796 fi
6797done
6798 done
6799IFS=$as_save_IFS
6800
6801fi
6802fi
a243b558
JF
6803ac_ct_AR=$ac_cv_prog_ac_ct_AR
6804if test -n "$ac_ct_AR"; then
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6806$as_echo "$ac_ct_AR" >&6; }
9c60689e
DWT
6807else
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6809$as_echo "no" >&6; }
6810fi
6811
a243b558
JF
6812
6813 test -n "$ac_ct_AR" && break
6814done
6815
6816 if test "x$ac_ct_AR" = x; then
6817 AR="false"
9c60689e
DWT
6818 else
6819 case $cross_compiling:$ac_tool_warned in
6820yes:)
6821{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6822$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6823ac_tool_warned=yes ;;
6824esac
a243b558 6825 AR=$ac_ct_AR
9c60689e 6826 fi
a243b558
JF
6827fi
6828
6829: ${AR=ar}
6830: ${AR_FLAGS=cru}
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6843$as_echo_n "checking for archiver @FILE support... " >&6; }
6844if ${lt_cv_ar_at_file+:} false; then :
6845 $as_echo_n "(cached) " >&6
9c60689e 6846else
a243b558
JF
6847 lt_cv_ar_at_file=no
6848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6849/* end confdefs.h. */
6850
6851int
6852main ()
6853{
6854
6855 ;
6856 return 0;
6857}
6858_ACEOF
6859if ac_fn_c_try_compile "$LINENO"; then :
6860 echo conftest.$ac_objext > conftest.lst
6861 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6862 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6863 (eval $lt_ar_try) 2>&5
6864 ac_status=$?
6865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6866 test $ac_status = 0; }
6867 if test "$ac_status" -eq 0; then
6868 # Ensure the archiver fails upon bogus file names.
6869 rm -f conftest.$ac_objext libconftest.a
6870 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6871 (eval $lt_ar_try) 2>&5
6872 ac_status=$?
6873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6874 test $ac_status = 0; }
6875 if test "$ac_status" -ne 0; then
6876 lt_cv_ar_at_file=@
6877 fi
6878 fi
6879 rm -f conftest.* libconftest.a
6880
9c60689e 6881fi
a243b558 6882rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9c60689e 6883
a243b558
JF
6884fi
6885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6886$as_echo "$lt_cv_ar_at_file" >&6; }
6887
6888if test "x$lt_cv_ar_at_file" = xno; then
6889 archiver_list_spec=
6890else
6891 archiver_list_spec=$lt_cv_ar_at_file
6892fi
6893
6894
6895
6896
6897
6898
6899
6900if test -n "$ac_tool_prefix"; then
6901 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6902set dummy ${ac_tool_prefix}strip; ac_word=$2
9c60689e
DWT
6903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6904$as_echo_n "checking for $ac_word... " >&6; }
a243b558 6905if ${ac_cv_prog_STRIP+:} false; then :
9c60689e
DWT
6906 $as_echo_n "(cached) " >&6
6907else
a243b558
JF
6908 if test -n "$STRIP"; then
6909 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9c60689e
DWT
6910else
6911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6912for as_dir in $PATH
6913do
6914 IFS=$as_save_IFS
6915 test -z "$as_dir" && as_dir=.
6916 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 6917 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 6918 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9c60689e
DWT
6919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6920 break 2
6921 fi
6922done
6923 done
6924IFS=$as_save_IFS
6925
6926fi
6927fi
a243b558
JF
6928STRIP=$ac_cv_prog_STRIP
6929if test -n "$STRIP"; then
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6931$as_echo "$STRIP" >&6; }
9c60689e
DWT
6932else
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6934$as_echo "no" >&6; }
6935fi
6936
6937
6938fi
a243b558
JF
6939if test -z "$ac_cv_prog_STRIP"; then
6940 ac_ct_STRIP=$STRIP
6941 # Extract the first word of "strip", so it can be a program name with args.
6942set dummy strip; ac_word=$2
9c60689e
DWT
6943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6944$as_echo_n "checking for $ac_word... " >&6; }
a243b558 6945if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
9c60689e
DWT
6946 $as_echo_n "(cached) " >&6
6947else
a243b558
JF
6948 if test -n "$ac_ct_STRIP"; then
6949 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9c60689e
DWT
6950else
6951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6952for as_dir in $PATH
6953do
6954 IFS=$as_save_IFS
6955 test -z "$as_dir" && as_dir=.
6956 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 6957 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 6958 ac_cv_prog_ac_ct_STRIP="strip"
9c60689e
DWT
6959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6960 break 2
6961 fi
6962done
6963 done
6964IFS=$as_save_IFS
6965
6966fi
6967fi
a243b558
JF
6968ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6969if test -n "$ac_ct_STRIP"; then
6970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6971$as_echo "$ac_ct_STRIP" >&6; }
9c60689e
DWT
6972else
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6974$as_echo "no" >&6; }
6975fi
6976
a243b558
JF
6977 if test "x$ac_ct_STRIP" = x; then
6978 STRIP=":"
9c60689e
DWT
6979 else
6980 case $cross_compiling:$ac_tool_warned in
6981yes:)
6982{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6983$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6984ac_tool_warned=yes ;;
6985esac
a243b558 6986 STRIP=$ac_ct_STRIP
9c60689e
DWT
6987 fi
6988else
a243b558 6989 STRIP="$ac_cv_prog_STRIP"
9c60689e
DWT
6990fi
6991
a243b558
JF
6992test -z "$STRIP" && STRIP=:
6993
6994
6995
6996
6997
6998
6999if test -n "$ac_tool_prefix"; then
7000 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7001set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9c60689e
DWT
7002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7003$as_echo_n "checking for $ac_word... " >&6; }
a243b558 7004if ${ac_cv_prog_RANLIB+:} false; then :
9c60689e
DWT
7005 $as_echo_n "(cached) " >&6
7006else
a243b558
JF
7007 if test -n "$RANLIB"; then
7008 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9c60689e
DWT
7009else
7010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7011for as_dir in $PATH
7012do
7013 IFS=$as_save_IFS
7014 test -z "$as_dir" && as_dir=.
7015 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 7016 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 7017 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9c60689e
DWT
7018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7019 break 2
7020 fi
7021done
7022 done
7023IFS=$as_save_IFS
7024
7025fi
7026fi
a243b558
JF
7027RANLIB=$ac_cv_prog_RANLIB
7028if test -n "$RANLIB"; then
7029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7030$as_echo "$RANLIB" >&6; }
9c60689e
DWT
7031else
7032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7033$as_echo "no" >&6; }
7034fi
7035
7036
7037fi
a243b558
JF
7038if test -z "$ac_cv_prog_RANLIB"; then
7039 ac_ct_RANLIB=$RANLIB
7040 # Extract the first word of "ranlib", so it can be a program name with args.
7041set dummy ranlib; ac_word=$2
9c60689e
DWT
7042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7043$as_echo_n "checking for $ac_word... " >&6; }
a243b558 7044if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
9c60689e
DWT
7045 $as_echo_n "(cached) " >&6
7046else
a243b558
JF
7047 if test -n "$ac_ct_RANLIB"; then
7048 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9c60689e
DWT
7049else
7050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7051for as_dir in $PATH
7052do
7053 IFS=$as_save_IFS
7054 test -z "$as_dir" && as_dir=.
7055 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 7056 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 7057 ac_cv_prog_ac_ct_RANLIB="ranlib"
9c60689e
DWT
7058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7059 break 2
7060 fi
7061done
7062 done
7063IFS=$as_save_IFS
7064
7065fi
7066fi
a243b558
JF
7067ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7068if test -n "$ac_ct_RANLIB"; then
7069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7070$as_echo "$ac_ct_RANLIB" >&6; }
9c60689e
DWT
7071else
7072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7073$as_echo "no" >&6; }
7074fi
7075
a243b558
JF
7076 if test "x$ac_ct_RANLIB" = x; then
7077 RANLIB=":"
9c60689e
DWT
7078 else
7079 case $cross_compiling:$ac_tool_warned in
7080yes:)
7081{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7082$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7083ac_tool_warned=yes ;;
7084esac
a243b558 7085 RANLIB=$ac_ct_RANLIB
9c60689e
DWT
7086 fi
7087else
a243b558 7088 RANLIB="$ac_cv_prog_RANLIB"
9c60689e
DWT
7089fi
7090
a243b558
JF
7091test -z "$RANLIB" && RANLIB=:
7092
7093
9c60689e 7094
9c60689e
DWT
7095
7096
a243b558
JF
7097
7098# Determine commands to create old-style static archives.
7099old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7100old_postinstall_cmds='chmod 644 $oldlib'
7101old_postuninstall_cmds=
7102
7103if test -n "$RANLIB"; then
7104 case $host_os in
7105 openbsd*)
7106 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7107 ;;
7108 *)
7109 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7110 ;;
7111 esac
7112 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
9c60689e
DWT
7113fi
7114
a243b558
JF
7115case $host_os in
7116 darwin*)
7117 lock_old_archive_extraction=yes ;;
7118 *)
7119 lock_old_archive_extraction=no ;;
9c60689e 7120esac
9c60689e 7121
9c60689e 7122
9c60689e
DWT
7123
7124
9c60689e 7125
9c60689e 7126
9c60689e
DWT
7127
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
53ba6704 7154
9c60689e 7155
9c60689e 7156
9c60689e 7157
53ba6704 7158
a243b558
JF
7159
7160# If no C compiler was specified, use CC.
7161LTCC=${LTCC-"$CC"}
7162
7163# If no C compiler flags were specified, use CFLAGS.
7164LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7165
7166# Allow CC to be a program name with arguments.
7167compiler=$CC
7168
7169
7170# Check for command to grab the raw symbol name followed by C symbol from nm.
7171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7172$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7173if ${lt_cv_sys_global_symbol_pipe+:} false; then :
ee134472
JF
7174 $as_echo_n "(cached) " >&6
7175else
ee134472 7176
a243b558
JF
7177# These are sane defaults that work on at least a few old systems.
7178# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9c60689e 7179
a243b558
JF
7180# Character class describing NM global symbol codes.
7181symcode='[BCDEGRST]'
9c60689e 7182
a243b558
JF
7183# Regexp to match symbols that can be accessed directly from C.
7184sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9c60689e 7185
a243b558
JF
7186# Define system-specific variables.
7187case $host_os in
7188aix*)
7189 symcode='[BCDT]'
7190 ;;
7191cygwin* | mingw* | pw32* | cegcc*)
7192 symcode='[ABCDGISTW]'
7193 ;;
7194hpux*)
7195 if test "$host_cpu" = ia64; then
7196 symcode='[ABCDEGRST]'
7197 fi
7198 ;;
7199irix* | nonstopux*)
7200 symcode='[BCDEGRST]'
7201 ;;
7202osf*)
7203 symcode='[BCDEGQRST]'
7204 ;;
7205solaris*)
7206 symcode='[BDRT]'
7207 ;;
7208sco3.2v5*)
7209 symcode='[DT]'
7210 ;;
7211sysv4.2uw2*)
7212 symcode='[DT]'
7213 ;;
7214sysv5* | sco5v6* | unixware* | OpenUNIX*)
7215 symcode='[ABDT]'
7216 ;;
7217sysv4)
7218 symcode='[DFNSTU]'
7219 ;;
7220esac
9c60689e 7221
a243b558
JF
7222# If we're using GNU nm, then use its standard symbol codes.
7223case `$NM -V 2>&1` in
7224*GNU* | *'with BFD'*)
7225 symcode='[ABCDGIRSTW]' ;;
7226esac
9c60689e 7227
a243b558
JF
7228# Transform an extracted symbol line into a proper C declaration.
7229# Some systems (esp. on ia64) link data and code symbols differently,
7230# so use this general approach.
7231lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9c60689e 7232
a243b558
JF
7233# Transform an extracted symbol line into symbol name and symbol address
7234lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7235lt_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 7236
a243b558
JF
7237# Handle CRLF in mingw tool chain
7238opt_cr=
7239case $build_os in
7240mingw*)
7241 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7242 ;;
7243esac
9c60689e 7244
a243b558
JF
7245# Try without a prefix underscore, then with it.
7246for ac_symprfx in "" "_"; do
9c60689e 7247
a243b558
JF
7248 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7249 symxfrm="\\1 $ac_symprfx\\2 \\2"
9c60689e 7250
a243b558
JF
7251 # Write the raw and C identifiers.
7252 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7253 # Fake it for dumpbin and say T for any non-static function
7254 # and D for any global variable.
7255 # Also find C++ and __fastcall symbols from MSVC++,
7256 # which start with @ or ?.
7257 lt_cv_sys_global_symbol_pipe="$AWK '"\
7258" {last_section=section; section=\$ 3};"\
7259" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7260" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7261" \$ 0!~/External *\|/{next};"\
7262" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7263" {if(hide[section]) next};"\
7264" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7265" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7266" s[1]~/^[@?]/{print s[1], s[1]; next};"\
7267" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7268" ' prfx=^$ac_symprfx"
7269 else
7270 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7271 fi
7272 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
9c60689e 7273
a243b558
JF
7274 # Check to see that the pipe works correctly.
7275 pipe_works=no
9c60689e 7276
00a96142 7277 rm -rf conftest*
a243b558
JF
7278 cat > conftest.$ac_ext <<_LT_EOF
7279#ifdef __cplusplus
7280extern "C" {
7281#endif
7282char nm_test_var;
7283void nm_test_func(void);
7284void nm_test_func(void){}
7285#ifdef __cplusplus
7286}
7287#endif
7288int main(){nm_test_var='a';nm_test_func();return(0);}
7289_LT_EOF
9c60689e 7290
a243b558
JF
7291 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7292 (eval $ac_compile) 2>&5
7293 ac_status=$?
7294 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7295 test $ac_status = 0; }; then
7296 # Now try to grab the symbols.
7297 nlist=conftest.nm
7298 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7299 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7300 ac_status=$?
7301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7302 test $ac_status = 0; } && test -s "$nlist"; then
7303 # Try sorting and uniquifying the output.
7304 if sort "$nlist" | uniq > "$nlist"T; then
7305 mv -f "$nlist"T "$nlist"
7306 else
7307 rm -f "$nlist"T
7308 fi
9c60689e 7309
a243b558
JF
7310 # Make sure that we snagged all the symbols we need.
7311 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7312 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7313 cat <<_LT_EOF > conftest.$ac_ext
7314/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7315#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7316/* DATA imports from DLLs on WIN32 con't be const, because runtime
7317 relocations are performed -- see ld's documentation on pseudo-relocs. */
7318# define LT_DLSYM_CONST
7319#elif defined(__osf__)
7320/* This system does not cope well with relocations in const data. */
7321# define LT_DLSYM_CONST
7322#else
7323# define LT_DLSYM_CONST const
7324#endif
9c60689e 7325
a243b558
JF
7326#ifdef __cplusplus
7327extern "C" {
7328#endif
9c60689e 7329
a243b558
JF
7330_LT_EOF
7331 # Now generate the symbol file.
7332 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9c60689e 7333
a243b558 7334 cat <<_LT_EOF >> conftest.$ac_ext
9c60689e 7335
a243b558
JF
7336/* The mapping between symbol names and symbols. */
7337LT_DLSYM_CONST struct {
7338 const char *name;
7339 void *address;
7340}
7341lt__PROGRAM__LTX_preloaded_symbols[] =
7342{
7343 { "@PROGRAM@", (void *) 0 },
7344_LT_EOF
7345 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7346 cat <<\_LT_EOF >> conftest.$ac_ext
7347 {0, (void *) 0}
7348};
9c60689e 7349
a243b558
JF
7350/* This works around a problem in FreeBSD linker */
7351#ifdef FREEBSD_WORKAROUND
7352static const void *lt_preloaded_setup() {
7353 return lt__PROGRAM__LTX_preloaded_symbols;
7354}
7355#endif
9c60689e 7356
a243b558
JF
7357#ifdef __cplusplus
7358}
7359#endif
7360_LT_EOF
7361 # Now try linking the two files.
7362 mv conftest.$ac_objext conftstm.$ac_objext
7363 lt_globsym_save_LIBS=$LIBS
7364 lt_globsym_save_CFLAGS=$CFLAGS
7365 LIBS="conftstm.$ac_objext"
7366 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7367 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7368 (eval $ac_link) 2>&5
7369 ac_status=$?
7370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7371 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7372 pipe_works=yes
7373 fi
7374 LIBS=$lt_globsym_save_LIBS
7375 CFLAGS=$lt_globsym_save_CFLAGS
7376 else
7377 echo "cannot find nm_test_func in $nlist" >&5
7378 fi
7379 else
7380 echo "cannot find nm_test_var in $nlist" >&5
7381 fi
7382 else
7383 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7384 fi
7385 else
7386 echo "$progname: failed program was:" >&5
7387 cat conftest.$ac_ext >&5
7388 fi
7389 rm -rf conftest* conftst*
9c60689e 7390
a243b558
JF
7391 # Do not use the global_symbol_pipe unless it works.
7392 if test "$pipe_works" = yes; then
7393 break
7394 else
7395 lt_cv_sys_global_symbol_pipe=
7396 fi
7397done
9c60689e 7398
9c60689e 7399fi
9c60689e 7400
a243b558
JF
7401if test -z "$lt_cv_sys_global_symbol_pipe"; then
7402 lt_cv_sys_global_symbol_to_cdecl=
9c60689e 7403fi
a243b558
JF
7404if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7406$as_echo "failed" >&6; }
9c60689e 7407else
a243b558
JF
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7409$as_echo "ok" >&6; }
9c60689e
DWT
7410fi
7411
a243b558
JF
7412# Response file support.
7413if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7414 nm_file_list_spec='@'
7415elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7416 nm_file_list_spec='@'
9c60689e 7417fi
9c60689e 7418
9c60689e 7419
9c60689e 7420
9c60689e 7421
9c60689e 7422
9c60689e
DWT
7423
7424
9c60689e 7425
9c60689e 7426
9c60689e
DWT
7427
7428
7429
ee134472
JF
7430
7431
9c60689e
DWT
7432
7433
7434
7435
7436
7437
7438
7439
7440
549f29b5 7441
549f29b5
DWT
7442
7443
549f29b5 7444
a243b558
JF
7445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7446$as_echo_n "checking for sysroot... " >&6; }
549f29b5 7447
a243b558
JF
7448# Check whether --with-sysroot was given.
7449if test "${with_sysroot+set}" = set; then :
7450 withval=$with_sysroot;
9c60689e 7451else
a243b558 7452 with_sysroot=no
9c60689e
DWT
7453fi
7454
7455
a243b558
JF
7456lt_sysroot=
7457case ${with_sysroot} in #(
7458 yes)
7459 if test "$GCC" = yes; then
7460 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7461 fi
7462 ;; #(
7463 /*)
7464 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7465 ;; #(
7466 no|'')
7467 ;; #(
7468 *)
7469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7470$as_echo "${with_sysroot}" >&6; }
7471 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7472 ;;
7473esac
9c60689e 7474
a243b558
JF
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7476$as_echo "${lt_sysroot:-no}" >&6; }
9c60689e
DWT
7477
7478
7479
7480
7481
a243b558
JF
7482# Check whether --enable-libtool-lock was given.
7483if test "${enable_libtool_lock+set}" = set; then :
7484 enableval=$enable_libtool_lock;
9c60689e
DWT
7485fi
7486
a243b558 7487test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9c60689e 7488
a243b558
JF
7489# Some flags need to be propagated to the compiler or linker for good
7490# libtool support.
7491case $host in
7492ia64-*-hpux*)
7493 # Find out which ABI we are using.
7494 echo 'int i;' > conftest.$ac_ext
7495 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7496 (eval $ac_compile) 2>&5
7497 ac_status=$?
7498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7499 test $ac_status = 0; }; then
7500 case `/usr/bin/file conftest.$ac_objext` in
7501 *ELF-32*)
7502 HPUX_IA64_MODE="32"
7503 ;;
7504 *ELF-64*)
7505 HPUX_IA64_MODE="64"
7506 ;;
7507 esac
7508 fi
7509 rm -rf conftest*
7510 ;;
7511*-*-irix6*)
7512 # Find out which ABI we are using.
7513 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7514 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7515 (eval $ac_compile) 2>&5
7516 ac_status=$?
7517 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7518 test $ac_status = 0; }; then
7519 if test "$lt_cv_prog_gnu_ld" = yes; then
7520 case `/usr/bin/file conftest.$ac_objext` in
7521 *32-bit*)
7522 LD="${LD-ld} -melf32bsmip"
7523 ;;
7524 *N32*)
7525 LD="${LD-ld} -melf32bmipn32"
7526 ;;
7527 *64-bit*)
7528 LD="${LD-ld} -melf64bmip"
7529 ;;
7530 esac
7531 else
7532 case `/usr/bin/file conftest.$ac_objext` in
7533 *32-bit*)
7534 LD="${LD-ld} -32"
7535 ;;
7536 *N32*)
7537 LD="${LD-ld} -n32"
7538 ;;
7539 *64-bit*)
7540 LD="${LD-ld} -64"
7541 ;;
7542 esac
7543 fi
7544 fi
7545 rm -rf conftest*
7546 ;;
9c60689e 7547
a243b558
JF
7548x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7549s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7550 # Find out which ABI we are using.
7551 echo 'int i;' > conftest.$ac_ext
7552 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7553 (eval $ac_compile) 2>&5
7554 ac_status=$?
7555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7556 test $ac_status = 0; }; then
7557 case `/usr/bin/file conftest.o` in
7558 *32-bit*)
7559 case $host in
7560 x86_64-*kfreebsd*-gnu)
7561 LD="${LD-ld} -m elf_i386_fbsd"
7562 ;;
7563 x86_64-*linux*)
7564 LD="${LD-ld} -m elf_i386"
7565 ;;
7566 ppc64-*linux*|powerpc64-*linux*)
7567 LD="${LD-ld} -m elf32ppclinux"
7568 ;;
7569 s390x-*linux*)
7570 LD="${LD-ld} -m elf_s390"
7571 ;;
7572 sparc64-*linux*)
7573 LD="${LD-ld} -m elf32_sparc"
7574 ;;
7575 esac
7576 ;;
7577 *64-bit*)
7578 case $host in
7579 x86_64-*kfreebsd*-gnu)
7580 LD="${LD-ld} -m elf_x86_64_fbsd"
7581 ;;
7582 x86_64-*linux*)
7583 LD="${LD-ld} -m elf_x86_64"
7584 ;;
7585 ppc*-*linux*|powerpc*-*linux*)
7586 LD="${LD-ld} -m elf64ppc"
7587 ;;
7588 s390*-*linux*|s390*-*tpf*)
7589 LD="${LD-ld} -m elf64_s390"
7590 ;;
7591 sparc*-*linux*)
7592 LD="${LD-ld} -m elf64_sparc"
7593 ;;
7594 esac
7595 ;;
7596 esac
7597 fi
7598 rm -rf conftest*
7599 ;;
9c60689e 7600
a243b558
JF
7601*-*-sco3.2v5*)
7602 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7603 SAVE_CFLAGS="$CFLAGS"
7604 CFLAGS="$CFLAGS -belf"
7605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7606$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7607if ${lt_cv_cc_needs_belf+:} false; then :
7608 $as_echo_n "(cached) " >&6
7609else
7610 ac_ext=c
7611ac_cpp='$CPP $CPPFLAGS'
7612ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7613ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7614ac_compiler_gnu=$ac_cv_c_compiler_gnu
9c60689e 7615
a243b558
JF
7616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7617/* end confdefs.h. */
9c60689e 7618
a243b558
JF
7619int
7620main ()
7621{
9c60689e 7622
a243b558
JF
7623 ;
7624 return 0;
7625}
7626_ACEOF
7627if ac_fn_c_try_link "$LINENO"; then :
7628 lt_cv_cc_needs_belf=yes
9c60689e 7629else
a243b558 7630 lt_cv_cc_needs_belf=no
9c60689e 7631fi
a243b558
JF
7632rm -f core conftest.err conftest.$ac_objext \
7633 conftest$ac_exeext conftest.$ac_ext
7634 ac_ext=c
7635ac_cpp='$CPP $CPPFLAGS'
7636ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7637ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7638ac_compiler_gnu=$ac_cv_c_compiler_gnu
9c60689e 7639
a243b558
JF
7640fi
7641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7642$as_echo "$lt_cv_cc_needs_belf" >&6; }
7643 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7644 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7645 CFLAGS="$SAVE_CFLAGS"
7646 fi
7647 ;;
7648*-*solaris*)
7649 # Find out which ABI we are using.
7650 echo 'int i;' > conftest.$ac_ext
7651 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7652 (eval $ac_compile) 2>&5
7653 ac_status=$?
7654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7655 test $ac_status = 0; }; then
7656 case `/usr/bin/file conftest.o` in
7657 *64-bit*)
7658 case $lt_cv_prog_gnu_ld in
7659 yes*)
7660 case $host in
7661 i?86-*-solaris*)
7662 LD="${LD-ld} -m elf_x86_64"
7663 ;;
7664 sparc*-*-solaris*)
7665 LD="${LD-ld} -m elf64_sparc"
7666 ;;
7667 esac
7668 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7669 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7670 LD="${LD-ld}_sol2"
7671 fi
7672 ;;
7673 *)
7674 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7675 LD="${LD-ld} -64"
7676 fi
7677 ;;
7678 esac
7679 ;;
7680 esac
7681 fi
7682 rm -rf conftest*
7683 ;;
7684esac
9c60689e 7685
a243b558 7686need_locks="$enable_libtool_lock"
9c60689e 7687
a243b558
JF
7688if test -n "$ac_tool_prefix"; then
7689 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7690set dummy ${ac_tool_prefix}mt; ac_word=$2
7691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7692$as_echo_n "checking for $ac_word... " >&6; }
7693if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7694 $as_echo_n "(cached) " >&6
7695else
7696 if test -n "$MANIFEST_TOOL"; then
7697 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7698else
7699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7700for as_dir in $PATH
7701do
7702 IFS=$as_save_IFS
7703 test -z "$as_dir" && as_dir=.
7704 for ac_exec_ext in '' $ac_executable_extensions; do
7705 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7706 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7708 break 2
7709 fi
7710done
7711 done
7712IFS=$as_save_IFS
9c60689e 7713
a243b558
JF
7714fi
7715fi
7716MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7717if test -n "$MANIFEST_TOOL"; then
7718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7719$as_echo "$MANIFEST_TOOL" >&6; }
7720else
7721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7722$as_echo "no" >&6; }
7723fi
9c60689e
DWT
7724
7725
a243b558
JF
7726fi
7727if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7728 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7729 # Extract the first word of "mt", so it can be a program name with args.
7730set dummy mt; ac_word=$2
7731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7732$as_echo_n "checking for $ac_word... " >&6; }
7733if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7734 $as_echo_n "(cached) " >&6
7735else
7736 if test -n "$ac_ct_MANIFEST_TOOL"; then
7737 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7738else
7739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7740for as_dir in $PATH
7741do
7742 IFS=$as_save_IFS
7743 test -z "$as_dir" && as_dir=.
7744 for ac_exec_ext in '' $ac_executable_extensions; do
7745 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7746 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7748 break 2
7749 fi
7750done
7751 done
7752IFS=$as_save_IFS
9c60689e 7753
a243b558
JF
7754fi
7755fi
7756ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7757if test -n "$ac_ct_MANIFEST_TOOL"; then
7758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7759$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7760else
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7762$as_echo "no" >&6; }
7763fi
9c60689e 7764
a243b558
JF
7765 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7766 MANIFEST_TOOL=":"
7767 else
7768 case $cross_compiling:$ac_tool_warned in
7769yes:)
7770{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7771$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7772ac_tool_warned=yes ;;
7773esac
7774 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7775 fi
7776else
7777 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7778fi
9c60689e 7779
a243b558
JF
7780test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7782$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7783if ${lt_cv_path_mainfest_tool+:} false; then :
7784 $as_echo_n "(cached) " >&6
7785else
7786 lt_cv_path_mainfest_tool=no
7787 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7788 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7789 cat conftest.err >&5
7790 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7791 lt_cv_path_mainfest_tool=yes
7792 fi
00a96142 7793 rm -rf conftest*
a243b558
JF
7794fi
7795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7796$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7797if test "x$lt_cv_path_mainfest_tool" != xyes; then
7798 MANIFEST_TOOL=:
7799fi
9c60689e
DWT
7800
7801
7802
7803
7804
7805
a243b558
JF
7806 case $host_os in
7807 rhapsody* | darwin*)
7808 if test -n "$ac_tool_prefix"; then
7809 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7810set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7812$as_echo_n "checking for $ac_word... " >&6; }
7813if ${ac_cv_prog_DSYMUTIL+:} false; then :
7814 $as_echo_n "(cached) " >&6
7815else
7816 if test -n "$DSYMUTIL"; then
7817 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7818else
7819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7820for as_dir in $PATH
7821do
7822 IFS=$as_save_IFS
7823 test -z "$as_dir" && as_dir=.
7824 for ac_exec_ext in '' $ac_executable_extensions; do
7825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7826 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7828 break 2
7829 fi
7830done
7831 done
7832IFS=$as_save_IFS
9c60689e 7833
a243b558
JF
7834fi
7835fi
7836DSYMUTIL=$ac_cv_prog_DSYMUTIL
7837if test -n "$DSYMUTIL"; then
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7839$as_echo "$DSYMUTIL" >&6; }
7840else
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7842$as_echo "no" >&6; }
7843fi
9c60689e
DWT
7844
7845
9c60689e 7846fi
a243b558
JF
7847if test -z "$ac_cv_prog_DSYMUTIL"; then
7848 ac_ct_DSYMUTIL=$DSYMUTIL
7849 # Extract the first word of "dsymutil", so it can be a program name with args.
7850set dummy dsymutil; ac_word=$2
7851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7852$as_echo_n "checking for $ac_word... " >&6; }
7853if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9c60689e
DWT
7854 $as_echo_n "(cached) " >&6
7855else
a243b558
JF
7856 if test -n "$ac_ct_DSYMUTIL"; then
7857 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9c60689e 7858else
a243b558
JF
7859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7860for as_dir in $PATH
7861do
7862 IFS=$as_save_IFS
7863 test -z "$as_dir" && as_dir=.
7864 for ac_exec_ext in '' $ac_executable_extensions; do
7865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7866 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7868 break 2
7869 fi
7870done
7871 done
7872IFS=$as_save_IFS
7873
9c60689e 7874fi
9c60689e 7875fi
a243b558
JF
7876ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7877if test -n "$ac_ct_DSYMUTIL"; then
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7879$as_echo "$ac_ct_DSYMUTIL" >&6; }
7880else
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7882$as_echo "no" >&6; }
7883fi
9c60689e 7884
a243b558
JF
7885 if test "x$ac_ct_DSYMUTIL" = x; then
7886 DSYMUTIL=":"
7887 else
7888 case $cross_compiling:$ac_tool_warned in
7889yes:)
7890{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7891$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7892ac_tool_warned=yes ;;
9c60689e 7893esac
a243b558
JF
7894 DSYMUTIL=$ac_ct_DSYMUTIL
7895 fi
7896else
7897 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7898fi
9c60689e 7899
a243b558
JF
7900 if test -n "$ac_tool_prefix"; then
7901 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7902set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7904$as_echo_n "checking for $ac_word... " >&6; }
7905if ${ac_cv_prog_NMEDIT+:} false; then :
9c60689e
DWT
7906 $as_echo_n "(cached) " >&6
7907else
a243b558
JF
7908 if test -n "$NMEDIT"; then
7909 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7910else
7911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7912for as_dir in $PATH
7913do
7914 IFS=$as_save_IFS
7915 test -z "$as_dir" && as_dir=.
7916 for ac_exec_ext in '' $ac_executable_extensions; do
7917 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7918 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7920 break 2
7921 fi
7922done
9c60689e 7923 done
a243b558 7924IFS=$as_save_IFS
9c60689e 7925
a243b558
JF
7926fi
7927fi
7928NMEDIT=$ac_cv_prog_NMEDIT
7929if test -n "$NMEDIT"; then
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7931$as_echo "$NMEDIT" >&6; }
9c60689e
DWT
7932else
7933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7934$as_echo "no" >&6; }
7935fi
7936
7937
a243b558
JF
7938fi
7939if test -z "$ac_cv_prog_NMEDIT"; then
7940 ac_ct_NMEDIT=$NMEDIT
7941 # Extract the first word of "nmedit", so it can be a program name with args.
7942set dummy nmedit; ac_word=$2
7943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7944$as_echo_n "checking for $ac_word... " >&6; }
7945if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9c60689e
DWT
7946 $as_echo_n "(cached) " >&6
7947else
a243b558
JF
7948 if test -n "$ac_ct_NMEDIT"; then
7949 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7950else
7951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7952for as_dir in $PATH
7953do
7954 IFS=$as_save_IFS
7955 test -z "$as_dir" && as_dir=.
7956 for ac_exec_ext in '' $ac_executable_extensions; do
7957 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7958 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7960 break 2
7961 fi
7962done
9c60689e 7963 done
a243b558 7964IFS=$as_save_IFS
9c60689e 7965
a243b558
JF
7966fi
7967fi
7968ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7969if test -n "$ac_ct_NMEDIT"; then
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7971$as_echo "$ac_ct_NMEDIT" >&6; }
9c60689e
DWT
7972else
7973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7974$as_echo "no" >&6; }
7975fi
7976
a243b558
JF
7977 if test "x$ac_ct_NMEDIT" = x; then
7978 NMEDIT=":"
9c60689e 7979 else
a243b558
JF
7980 case $cross_compiling:$ac_tool_warned in
7981yes:)
7982{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7983$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7984ac_tool_warned=yes ;;
7985esac
7986 NMEDIT=$ac_ct_NMEDIT
9c60689e 7987 fi
a243b558
JF
7988else
7989 NMEDIT="$ac_cv_prog_NMEDIT"
9c60689e
DWT
7990fi
7991
a243b558
JF
7992 if test -n "$ac_tool_prefix"; then
7993 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7994set dummy ${ac_tool_prefix}lipo; ac_word=$2
7995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7996$as_echo_n "checking for $ac_word... " >&6; }
7997if ${ac_cv_prog_LIPO+:} false; then :
7998 $as_echo_n "(cached) " >&6
7999else
8000 if test -n "$LIPO"; then
8001 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8002else
8003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8004for as_dir in $PATH
8005do
8006 IFS=$as_save_IFS
8007 test -z "$as_dir" && as_dir=.
8008 for ac_exec_ext in '' $ac_executable_extensions; do
8009 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8010 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8012 break 2
8013 fi
8014done
8015 done
8016IFS=$as_save_IFS
9c60689e 8017
a243b558
JF
8018fi
8019fi
8020LIPO=$ac_cv_prog_LIPO
8021if test -n "$LIPO"; then
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8023$as_echo "$LIPO" >&6; }
8024else
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8026$as_echo "no" >&6; }
8027fi
9c60689e 8028
9c60689e 8029
a243b558
JF
8030fi
8031if test -z "$ac_cv_prog_LIPO"; then
8032 ac_ct_LIPO=$LIPO
8033 # Extract the first word of "lipo", so it can be a program name with args.
8034set dummy lipo; ac_word=$2
8035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8036$as_echo_n "checking for $ac_word... " >&6; }
8037if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9c60689e
DWT
8038 $as_echo_n "(cached) " >&6
8039else
a243b558
JF
8040 if test -n "$ac_ct_LIPO"; then
8041 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8042else
8043as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8044for as_dir in $PATH
8045do
8046 IFS=$as_save_IFS
8047 test -z "$as_dir" && as_dir=.
8048 for ac_exec_ext in '' $ac_executable_extensions; do
8049 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8050 ac_cv_prog_ac_ct_LIPO="lipo"
8051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8052 break 2
8053 fi
8054done
8055 done
8056IFS=$as_save_IFS
9c60689e
DWT
8057
8058fi
a243b558
JF
8059fi
8060ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8061if test -n "$ac_ct_LIPO"; then
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8063$as_echo "$ac_ct_LIPO" >&6; }
9c60689e 8064else
a243b558
JF
8065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8066$as_echo "no" >&6; }
9c60689e
DWT
8067fi
8068
a243b558
JF
8069 if test "x$ac_ct_LIPO" = x; then
8070 LIPO=":"
8071 else
8072 case $cross_compiling:$ac_tool_warned in
8073yes:)
8074{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8075$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8076ac_tool_warned=yes ;;
8077esac
8078 LIPO=$ac_ct_LIPO
8079 fi
8080else
8081 LIPO="$ac_cv_prog_LIPO"
9c60689e
DWT
8082fi
8083
a243b558
JF
8084 if test -n "$ac_tool_prefix"; then
8085 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8086set dummy ${ac_tool_prefix}otool; ac_word=$2
8087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8088$as_echo_n "checking for $ac_word... " >&6; }
8089if ${ac_cv_prog_OTOOL+:} false; then :
8090 $as_echo_n "(cached) " >&6
8091else
8092 if test -n "$OTOOL"; then
8093 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8094else
8095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8096for as_dir in $PATH
8097do
8098 IFS=$as_save_IFS
8099 test -z "$as_dir" && as_dir=.
8100 for ac_exec_ext in '' $ac_executable_extensions; do
8101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8102 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8104 break 2
8105 fi
8106done
8107 done
8108IFS=$as_save_IFS
9c60689e 8109
a243b558
JF
8110fi
8111fi
8112OTOOL=$ac_cv_prog_OTOOL
8113if test -n "$OTOOL"; then
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8115$as_echo "$OTOOL" >&6; }
8116else
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8118$as_echo "no" >&6; }
8119fi
9c60689e
DWT
8120
8121
a243b558
JF
8122fi
8123if test -z "$ac_cv_prog_OTOOL"; then
8124 ac_ct_OTOOL=$OTOOL
8125 # Extract the first word of "otool", so it can be a program name with args.
8126set dummy otool; ac_word=$2
8127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8128$as_echo_n "checking for $ac_word... " >&6; }
8129if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8130 $as_echo_n "(cached) " >&6
8131else
8132 if test -n "$ac_ct_OTOOL"; then
8133 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8134else
8135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8136for as_dir in $PATH
8137do
8138 IFS=$as_save_IFS
8139 test -z "$as_dir" && as_dir=.
8140 for ac_exec_ext in '' $ac_executable_extensions; do
8141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8142 ac_cv_prog_ac_ct_OTOOL="otool"
8143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8144 break 2
8145 fi
8146done
8147 done
8148IFS=$as_save_IFS
9c60689e 8149
a243b558
JF
8150fi
8151fi
8152ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8153if test -n "$ac_ct_OTOOL"; then
8154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8155$as_echo "$ac_ct_OTOOL" >&6; }
8156else
8157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8158$as_echo "no" >&6; }
8159fi
9c60689e 8160
a243b558
JF
8161 if test "x$ac_ct_OTOOL" = x; then
8162 OTOOL=":"
8163 else
8164 case $cross_compiling:$ac_tool_warned in
8165yes:)
8166{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8167$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8168ac_tool_warned=yes ;;
8169esac
8170 OTOOL=$ac_ct_OTOOL
8171 fi
8172else
8173 OTOOL="$ac_cv_prog_OTOOL"
8174fi
9c60689e 8175
a243b558
JF
8176 if test -n "$ac_tool_prefix"; then
8177 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8178set dummy ${ac_tool_prefix}otool64; ac_word=$2
8179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8180$as_echo_n "checking for $ac_word... " >&6; }
8181if ${ac_cv_prog_OTOOL64+:} false; then :
8182 $as_echo_n "(cached) " >&6
8183else
8184 if test -n "$OTOOL64"; then
8185 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8186else
8187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8188for as_dir in $PATH
8189do
8190 IFS=$as_save_IFS
8191 test -z "$as_dir" && as_dir=.
8192 for ac_exec_ext in '' $ac_executable_extensions; do
8193 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8194 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8196 break 2
8197 fi
8198done
8199 done
8200IFS=$as_save_IFS
9c60689e 8201
a243b558
JF
8202fi
8203fi
8204OTOOL64=$ac_cv_prog_OTOOL64
8205if test -n "$OTOOL64"; then
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8207$as_echo "$OTOOL64" >&6; }
8208else
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8210$as_echo "no" >&6; }
8211fi
9c60689e 8212
9c60689e 8213
a243b558
JF
8214fi
8215if test -z "$ac_cv_prog_OTOOL64"; then
8216 ac_ct_OTOOL64=$OTOOL64
8217 # Extract the first word of "otool64", so it can be a program name with args.
8218set dummy otool64; ac_word=$2
8219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8220$as_echo_n "checking for $ac_word... " >&6; }
8221if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8222 $as_echo_n "(cached) " >&6
8223else
8224 if test -n "$ac_ct_OTOOL64"; then
8225 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8226else
8227as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8228for as_dir in $PATH
8229do
8230 IFS=$as_save_IFS
8231 test -z "$as_dir" && as_dir=.
8232 for ac_exec_ext in '' $ac_executable_extensions; do
8233 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8234 ac_cv_prog_ac_ct_OTOOL64="otool64"
8235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8236 break 2
8237 fi
8238done
8239 done
8240IFS=$as_save_IFS
9c60689e 8241
a243b558
JF
8242fi
8243fi
8244ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8245if test -n "$ac_ct_OTOOL64"; then
8246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8247$as_echo "$ac_ct_OTOOL64" >&6; }
8248else
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8250$as_echo "no" >&6; }
8251fi
9c60689e 8252
a243b558
JF
8253 if test "x$ac_ct_OTOOL64" = x; then
8254 OTOOL64=":"
8255 else
8256 case $cross_compiling:$ac_tool_warned in
8257yes:)
8258{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8259$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8260ac_tool_warned=yes ;;
8261esac
8262 OTOOL64=$ac_ct_OTOOL64
8263 fi
8264else
8265 OTOOL64="$ac_cv_prog_OTOOL64"
8266fi
ee134472 8267
9c60689e 8268
9c60689e 8269
9c60689e 8270
9c60689e 8271
9c60689e 8272
ee134472 8273
9c60689e 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
a243b558
JF
8292
8293
8294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8295$as_echo_n "checking for -single_module linker flag... " >&6; }
8296if ${lt_cv_apple_cc_single_mod+:} false; then :
ee134472
JF
8297 $as_echo_n "(cached) " >&6
8298else
a243b558
JF
8299 lt_cv_apple_cc_single_mod=no
8300 if test -z "${LT_MULTI_MODULE}"; then
8301 # By default we will add the -single_module flag. You can override
8302 # by either setting the environment variable LT_MULTI_MODULE
8303 # non-empty at configure time, or by adding -multi_module to the
8304 # link flags.
8305 rm -rf libconftest.dylib*
8306 echo "int foo(void){return 1;}" > conftest.c
8307 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8308-dynamiclib -Wl,-single_module conftest.c" >&5
8309 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8310 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8311 _lt_result=$?
8312 # If there is a non-empty error log, and "single_module"
8313 # appears in it, assume the flag caused a linker warning
8314 if test -s conftest.err && $GREP single_module conftest.err; then
8315 cat conftest.err >&5
8316 # Otherwise, if the output was created with a 0 exit code from
8317 # the compiler, it worked.
8318 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8319 lt_cv_apple_cc_single_mod=yes
8320 else
8321 cat conftest.err >&5
8322 fi
8323 rm -rf libconftest.dylib*
8324 rm -f conftest.*
8325 fi
ee134472 8326fi
a243b558
JF
8327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8328$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9c60689e 8329
a243b558
JF
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8331$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8332if ${lt_cv_ld_exported_symbols_list+:} false; then :
9c60689e
DWT
8333 $as_echo_n "(cached) " >&6
8334else
a243b558
JF
8335 lt_cv_ld_exported_symbols_list=no
8336 save_LDFLAGS=$LDFLAGS
8337 echo "_main" > conftest.sym
8338 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8340/* end confdefs.h. */
9c60689e 8341
a243b558
JF
8342int
8343main ()
8344{
9c60689e 8345
a243b558
JF
8346 ;
8347 return 0;
8348}
8349_ACEOF
8350if ac_fn_c_try_link "$LINENO"; then :
8351 lt_cv_ld_exported_symbols_list=yes
9c60689e 8352else
a243b558 8353 lt_cv_ld_exported_symbols_list=no
9c60689e 8354fi
a243b558
JF
8355rm -f core conftest.err conftest.$ac_objext \
8356 conftest$ac_exeext conftest.$ac_ext
8357 LDFLAGS="$save_LDFLAGS"
9c60689e
DWT
8358
8359fi
a243b558
JF
8360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8361$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9c60689e 8362
a243b558
JF
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8364$as_echo_n "checking for -force_load linker flag... " >&6; }
8365if ${lt_cv_ld_force_load+:} false; then :
9c60689e
DWT
8366 $as_echo_n "(cached) " >&6
8367else
a243b558
JF
8368 lt_cv_ld_force_load=no
8369 cat > conftest.c << _LT_EOF
8370int forced_loaded() { return 2;}
8371_LT_EOF
8372 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8373 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8374 echo "$AR cru libconftest.a conftest.o" >&5
8375 $AR cru libconftest.a conftest.o 2>&5
8376 echo "$RANLIB libconftest.a" >&5
8377 $RANLIB libconftest.a 2>&5
8378 cat > conftest.c << _LT_EOF
8379int main() { return 0;}
8380_LT_EOF
8381 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8382 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8383 _lt_result=$?
8384 if test -s conftest.err && $GREP force_load conftest.err; then
8385 cat conftest.err >&5
8386 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8387 lt_cv_ld_force_load=yes
8388 else
8389 cat conftest.err >&5
8390 fi
8391 rm -f conftest.err libconftest.a conftest conftest.c
8392 rm -rf conftest.dSYM
9c60689e
DWT
8393
8394fi
a243b558
JF
8395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8396$as_echo "$lt_cv_ld_force_load" >&6; }
8397 case $host_os in
8398 rhapsody* | darwin1.[012])
8399 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8400 darwin1.*)
8401 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8402 darwin*) # darwin 5.x on
8403 # if running on 10.5 or later, the deployment target defaults
8404 # to the OS version, if on x86, and 10.4, the deployment
8405 # target defaults to 10.4. Don't you love it?
8406 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8407 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8408 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8409 10.[012]*)
8410 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8411 10.*)
8412 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8413 esac
8414 ;;
8415 esac
8416 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8417 _lt_dar_single_mod='$single_module'
8418 fi
8419 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8420 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8421 else
8422 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8423 fi
8424 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8425 _lt_dsymutil='~$DSYMUTIL $lib || :'
8426 else
8427 _lt_dsymutil=
8428 fi
8429 ;;
8430 esac
9c60689e 8431
a243b558
JF
8432ac_ext=c
8433ac_cpp='$CPP $CPPFLAGS'
8434ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8435ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8436ac_compiler_gnu=$ac_cv_c_compiler_gnu
8437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8438$as_echo_n "checking how to run the C preprocessor... " >&6; }
8439# On Suns, sometimes $CPP names a directory.
8440if test -n "$CPP" && test -d "$CPP"; then
8441 CPP=
9c60689e 8442fi
a243b558
JF
8443if test -z "$CPP"; then
8444 if ${ac_cv_prog_CPP+:} false; then :
8445 $as_echo_n "(cached) " >&6
8446else
8447 # Double quotes because CPP needs to be expanded
8448 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8449 do
8450 ac_preproc_ok=false
8451for ac_c_preproc_warn_flag in '' yes
8452do
8453 # Use a header file that comes with gcc, so configuring glibc
8454 # with a fresh cross-compiler works.
8455 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8456 # <limits.h> exists even on freestanding compilers.
8457 # On the NeXT, cc -E runs the code through the compiler's parser,
8458 # not just through cpp. "Syntax error" is here to catch this case.
8459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8460/* end confdefs.h. */
8461#ifdef __STDC__
8462# include <limits.h>
8463#else
8464# include <assert.h>
8465#endif
8466 Syntax error
8467_ACEOF
8468if ac_fn_c_try_cpp "$LINENO"; then :
9c60689e 8469
a243b558
JF
8470else
8471 # Broken: fails on valid input.
8472continue
8473fi
8474rm -f conftest.err conftest.i conftest.$ac_ext
9c60689e 8475
a243b558
JF
8476 # OK, works on sane cases. Now check whether nonexistent headers
8477 # can be detected and how.
8478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8479/* end confdefs.h. */
8480#include <ac_nonexistent.h>
8481_ACEOF
8482if ac_fn_c_try_cpp "$LINENO"; then :
8483 # Broken: success on invalid input.
8484continue
8485else
8486 # Passes both tests.
8487ac_preproc_ok=:
8488break
8489fi
8490rm -f conftest.err conftest.i conftest.$ac_ext
9c60689e 8491
a243b558
JF
8492done
8493# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8494rm -f conftest.i conftest.err conftest.$ac_ext
8495if $ac_preproc_ok; then :
8496 break
8497fi
9c60689e 8498
a243b558
JF
8499 done
8500 ac_cv_prog_CPP=$CPP
9c60689e 8501
a243b558
JF
8502fi
8503 CPP=$ac_cv_prog_CPP
9c60689e 8504else
a243b558
JF
8505 ac_cv_prog_CPP=$CPP
8506fi
8507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8508$as_echo "$CPP" >&6; }
8509ac_preproc_ok=false
8510for ac_c_preproc_warn_flag in '' yes
8511do
8512 # Use a header file that comes with gcc, so configuring glibc
8513 # with a fresh cross-compiler works.
8514 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8515 # <limits.h> exists even on freestanding compilers.
8516 # On the NeXT, cc -E runs the code through the compiler's parser,
8517 # not just through cpp. "Syntax error" is here to catch this case.
8518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8519/* end confdefs.h. */
8520#ifdef __STDC__
8521# include <limits.h>
8522#else
8523# include <assert.h>
8524#endif
8525 Syntax error
8526_ACEOF
8527if ac_fn_c_try_cpp "$LINENO"; then :
9c60689e 8528
a243b558
JF
8529else
8530 # Broken: fails on valid input.
8531continue
9c60689e 8532fi
a243b558 8533rm -f conftest.err conftest.i conftest.$ac_ext
9c60689e 8534
a243b558
JF
8535 # OK, works on sane cases. Now check whether nonexistent headers
8536 # can be detected and how.
8537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8538/* end confdefs.h. */
8539#include <ac_nonexistent.h>
8540_ACEOF
8541if ac_fn_c_try_cpp "$LINENO"; then :
8542 # Broken: success on invalid input.
8543continue
8544else
8545 # Passes both tests.
8546ac_preproc_ok=:
8547break
8548fi
8549rm -f conftest.err conftest.i conftest.$ac_ext
9c60689e 8550
a243b558
JF
8551done
8552# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8553rm -f conftest.i conftest.err conftest.$ac_ext
8554if $ac_preproc_ok; then :
9c60689e 8555
a243b558
JF
8556else
8557 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8558$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8559as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8560See \`config.log' for more details" "$LINENO" 5; }
8561fi
9c60689e 8562
a243b558
JF
8563ac_ext=c
8564ac_cpp='$CPP $CPPFLAGS'
8565ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8566ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8567ac_compiler_gnu=$ac_cv_c_compiler_gnu
9c60689e
DWT
8568
8569
a243b558
JF
8570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8571$as_echo_n "checking for ANSI C header files... " >&6; }
8572if ${ac_cv_header_stdc+:} false; then :
9c60689e
DWT
8573 $as_echo_n "(cached) " >&6
8574else
a243b558
JF
8575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8576/* end confdefs.h. */
8577#include <stdlib.h>
8578#include <stdarg.h>
8579#include <string.h>
8580#include <float.h>
9c60689e 8581
a243b558
JF
8582int
8583main ()
8584{
9c60689e 8585
a243b558
JF
8586 ;
8587 return 0;
8588}
8589_ACEOF
8590if ac_fn_c_try_compile "$LINENO"; then :
8591 ac_cv_header_stdc=yes
8592else
8593 ac_cv_header_stdc=no
9c60689e 8594fi
a243b558
JF
8595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8596
8597if test $ac_cv_header_stdc = yes; then
8598 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8600/* end confdefs.h. */
8601#include <string.h>
9c60689e 8602
a243b558
JF
8603_ACEOF
8604if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8605 $EGREP "memchr" >/dev/null 2>&1; then :
9c60689e 8606
a243b558
JF
8607else
8608 ac_cv_header_stdc=no
8609fi
8610rm -f conftest*
9c60689e 8611
a243b558
JF
8612fi
8613
8614if test $ac_cv_header_stdc = yes; then
8615 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8617/* end confdefs.h. */
8618#include <stdlib.h>
8619
8620_ACEOF
8621if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8622 $EGREP "free" >/dev/null 2>&1; then :
9c60689e 8623
9c60689e 8624else
a243b558 8625 ac_cv_header_stdc=no
9c60689e 8626fi
a243b558 8627rm -f conftest*
9c60689e 8628
a243b558 8629fi
9c60689e 8630
a243b558
JF
8631if test $ac_cv_header_stdc = yes; then
8632 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8633 if test "$cross_compiling" = yes; then :
8634 :
8635else
8636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8637/* end confdefs.h. */
8638#include <ctype.h>
8639#include <stdlib.h>
8640#if ((' ' & 0x0FF) == 0x020)
8641# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8642# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8643#else
8644# define ISLOWER(c) \
8645 (('a' <= (c) && (c) <= 'i') \
8646 || ('j' <= (c) && (c) <= 'r') \
8647 || ('s' <= (c) && (c) <= 'z'))
8648# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8649#endif
9c60689e 8650
a243b558
JF
8651#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8652int
8653main ()
8654{
8655 int i;
8656 for (i = 0; i < 256; i++)
8657 if (XOR (islower (i), ISLOWER (i))
8658 || toupper (i) != TOUPPER (i))
8659 return 2;
8660 return 0;
8661}
8662_ACEOF
8663if ac_fn_c_try_run "$LINENO"; then :
9c60689e 8664
a243b558
JF
8665else
8666 ac_cv_header_stdc=no
8667fi
8668rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8669 conftest.$ac_objext conftest.beam conftest.$ac_ext
8670fi
9c60689e 8671
a243b558
JF
8672fi
8673fi
8674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8675$as_echo "$ac_cv_header_stdc" >&6; }
8676if test $ac_cv_header_stdc = yes; then
9c60689e 8677
a243b558 8678$as_echo "#define STDC_HEADERS 1" >>confdefs.h
9c60689e 8679
a243b558 8680fi
9c60689e 8681
a243b558
JF
8682# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8683for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8684 inttypes.h stdint.h unistd.h
8685do :
8686 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8687ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8688"
8689if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8690 cat >>confdefs.h <<_ACEOF
8691#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8692_ACEOF
9c60689e 8693
a243b558 8694fi
ee134472 8695
a243b558 8696done
ee134472 8697
9c60689e 8698
a243b558
JF
8699for ac_header in dlfcn.h
8700do :
8701 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8702"
8703if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8704 cat >>confdefs.h <<_ACEOF
8705#define HAVE_DLFCN_H 1
8706_ACEOF
9c60689e 8707
a243b558 8708fi
9c60689e 8709
a243b558 8710done
9c60689e 8711
9c60689e 8712
9c60689e 8713
9c60689e 8714
a243b558
JF
8715func_stripname_cnf ()
8716{
8717 case ${2} in
8718 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
8719 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8720 esac
8721} # func_stripname_cnf
9c60689e 8722
9c60689e 8723
ee134472 8724
a243b558
JF
8725
8726
8727# Set options
8728# Check whether --enable-static was given.
8729if test "${enable_static+set}" = set; then :
8730 enableval=$enable_static; p=${PACKAGE-default}
8731 case $enableval in
8732 yes) enable_static=yes ;;
8733 no) enable_static=no ;;
8734 *)
8735 enable_static=no
8736 # Look at the argument we got. We use all the common list separators.
8737 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8738 for pkg in $enableval; do
8739 IFS="$lt_save_ifs"
8740 if test "X$pkg" = "X$p"; then
8741 enable_static=yes
8742 fi
8743 done
8744 IFS="$lt_save_ifs"
9c60689e 8745 ;;
a243b558
JF
8746 esac
8747else
8748 enable_static=no
8749fi
9c60689e 8750
9c60689e 8751
9c60689e 8752
9c60689e 8753
9c60689e 8754
9c60689e 8755
9c60689e 8756
9c60689e 8757
9c60689e 8758
9c60689e 8759
a243b558 8760 enable_dlopen=no
9c60689e 8761
9c60689e 8762
a243b558
JF
8763 enable_win32_dll=no
8764
8765
8766 # Check whether --enable-shared was given.
8767if test "${enable_shared+set}" = set; then :
8768 enableval=$enable_shared; p=${PACKAGE-default}
8769 case $enableval in
8770 yes) enable_shared=yes ;;
8771 no) enable_shared=no ;;
9c60689e 8772 *)
a243b558
JF
8773 enable_shared=no
8774 # Look at the argument we got. We use all the common list separators.
8775 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8776 for pkg in $enableval; do
8777 IFS="$lt_save_ifs"
8778 if test "X$pkg" = "X$p"; then
8779 enable_shared=yes
8780 fi
8781 done
8782 IFS="$lt_save_ifs"
9c60689e
DWT
8783 ;;
8784 esac
a243b558
JF
8785else
8786 enable_shared=yes
8787fi
9c60689e 8788
9c60689e 8789
9c60689e 8790
9c60689e 8791
9c60689e 8792
9c60689e 8793
9c60689e 8794
9c60689e 8795
9c60689e 8796
9c60689e 8797
9c60689e 8798
a243b558
JF
8799# Check whether --with-pic was given.
8800if test "${with_pic+set}" = set; then :
8801 withval=$with_pic; lt_p=${PACKAGE-default}
8802 case $withval in
8803 yes|no) pic_mode=$withval ;;
8804 *)
8805 pic_mode=default
8806 # Look at the argument we got. We use all the common list separators.
8807 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8808 for lt_pkg in $withval; do
8809 IFS="$lt_save_ifs"
8810 if test "X$lt_pkg" = "X$lt_p"; then
8811 pic_mode=yes
8812 fi
8813 done
8814 IFS="$lt_save_ifs"
8815 ;;
8816 esac
8817else
8818 pic_mode=default
9c60689e 8819fi
ee134472 8820
ee134472 8821
a243b558 8822test -z "$pic_mode" && pic_mode=default
9c60689e 8823
9c60689e 8824
9c60689e 8825
9c60689e 8826
ee134472 8827
ee134472 8828
9c60689e 8829
a243b558
JF
8830 # Check whether --enable-fast-install was given.
8831if test "${enable_fast_install+set}" = set; then :
8832 enableval=$enable_fast_install; p=${PACKAGE-default}
8833 case $enableval in
8834 yes) enable_fast_install=yes ;;
8835 no) enable_fast_install=no ;;
8836 *)
8837 enable_fast_install=no
8838 # Look at the argument we got. We use all the common list separators.
8839 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8840 for pkg in $enableval; do
8841 IFS="$lt_save_ifs"
8842 if test "X$pkg" = "X$p"; then
8843 enable_fast_install=yes
9c60689e 8844 fi
a243b558
JF
8845 done
8846 IFS="$lt_save_ifs"
9c60689e 8847 ;;
a243b558
JF
8848 esac
8849else
8850 enable_fast_install=yes
8851fi
9c60689e 8852
9c60689e 8853
9c60689e 8854
9c60689e 8855
9c60689e
DWT
8856
8857
53ba6704 8858
9c60689e 8859
9c60689e 8860
9c60689e 8861
9c60689e 8862
a243b558
JF
8863# This can be used to rebuild libtool when needed
8864LIBTOOL_DEPS="$ltmain"
9c60689e 8865
a243b558
JF
8866# Always use our own libtool.
8867LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9c60689e 8868
9c60689e 8869
9c60689e 8870
9c60689e 8871
9c60689e 8872
ee134472 8873
ee134472 8874
ee134472 8875
ee134472 8876
9c60689e 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
a243b558 8898test -z "$LN_S" && LN_S="ln -s"
9c60689e
DWT
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912
a243b558
JF
8913if test -n "${ZSH_VERSION+set}" ; then
8914 setopt NO_GLOB_SUBST
8915fi
9c60689e 8916
a243b558
JF
8917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8918$as_echo_n "checking for objdir... " >&6; }
8919if ${lt_cv_objdir+:} false; then :
ee134472
JF
8920 $as_echo_n "(cached) " >&6
8921else
a243b558
JF
8922 rm -f .libs 2>/dev/null
8923mkdir .libs 2>/dev/null
8924if test -d .libs; then
8925 lt_cv_objdir=.libs
8926else
8927 # MS-DOS does not allow filenames that begin with a dot.
8928 lt_cv_objdir=_libs
ee134472 8929fi
a243b558
JF
8930rmdir .libs 2>/dev/null
8931fi
8932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8933$as_echo "$lt_cv_objdir" >&6; }
8934objdir=$lt_cv_objdir
9c60689e
DWT
8935
8936
8937
8938
8939
a243b558
JF
8940cat >>confdefs.h <<_ACEOF
8941#define LT_OBJDIR "$lt_cv_objdir/"
8942_ACEOF
9c60689e
DWT
8943
8944
8945
8946
a243b558
JF
8947case $host_os in
8948aix3*)
8949 # AIX sometimes has problems with the GCC collect2 program. For some
8950 # reason, if we set the COLLECT_NAMES environment variable, the problems
8951 # vanish in a puff of smoke.
8952 if test "X${COLLECT_NAMES+set}" != Xset; then
8953 COLLECT_NAMES=
8954 export COLLECT_NAMES
8955 fi
8956 ;;
8957esac
9c60689e 8958
a243b558
JF
8959# Global variables:
8960ofile=libtool
8961can_build_shared=yes
9c60689e 8962
a243b558
JF
8963# All known linkers require a `.a' archive for static linking (except MSVC,
8964# which needs '.lib').
8965libext=a
9c60689e 8966
a243b558 8967with_gnu_ld="$lt_cv_prog_gnu_ld"
9c60689e 8968
a243b558
JF
8969old_CC="$CC"
8970old_CFLAGS="$CFLAGS"
9c60689e 8971
a243b558
JF
8972# Set sane defaults for various variables
8973test -z "$CC" && CC=cc
8974test -z "$LTCC" && LTCC=$CC
8975test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8976test -z "$LD" && LD=ld
8977test -z "$ac_objext" && ac_objext=o
9c60689e 8978
a243b558
JF
8979for cc_temp in $compiler""; do
8980 case $cc_temp in
8981 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8982 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8983 \-*) ;;
8984 *) break;;
8985 esac
8986done
8987cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9c60689e
DWT
8988
8989
a243b558
JF
8990# Only perform the check for file, if the check method requires it
8991test -z "$MAGIC_CMD" && MAGIC_CMD=file
8992case $deplibs_check_method in
8993file_magic*)
8994 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8996$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8997if ${lt_cv_path_MAGIC_CMD+:} false; then :
8998 $as_echo_n "(cached) " >&6
8999else
9000 case $MAGIC_CMD in
9001[\\/*] | ?:[\\/]*)
9002 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9003 ;;
9004*)
9005 lt_save_MAGIC_CMD="$MAGIC_CMD"
9006 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9007 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9008 for ac_dir in $ac_dummy; do
9009 IFS="$lt_save_ifs"
9010 test -z "$ac_dir" && ac_dir=.
9011 if test -f $ac_dir/${ac_tool_prefix}file; then
9012 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9013 if test -n "$file_magic_test_file"; then
9014 case $deplibs_check_method in
9015 "file_magic "*)
9016 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9017 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9018 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9019 $EGREP "$file_magic_regex" > /dev/null; then
9020 :
9021 else
9022 cat <<_LT_EOF 1>&2
9c60689e 9023
a243b558
JF
9024*** Warning: the command libtool uses to detect shared libraries,
9025*** $file_magic_cmd, produces output that libtool cannot recognize.
9026*** The result is that libtool may fail to recognize shared libraries
9027*** as such. This will affect the creation of libtool libraries that
9028*** depend on shared libraries, but programs linked with such libtool
9029*** libraries will work regardless of this problem. Nevertheless, you
9030*** may want to report the problem to your system manager and/or to
9031*** bug-libtool@gnu.org
9c60689e 9032
a243b558
JF
9033_LT_EOF
9034 fi ;;
9035 esac
9036 fi
9037 break
9038 fi
9039 done
9040 IFS="$lt_save_ifs"
9041 MAGIC_CMD="$lt_save_MAGIC_CMD"
9042 ;;
9043esac
9044fi
9c60689e 9045
a243b558
JF
9046MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9047if test -n "$MAGIC_CMD"; then
9048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9049$as_echo "$MAGIC_CMD" >&6; }
9050else
9051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9052$as_echo "no" >&6; }
9053fi
9c60689e
DWT
9054
9055
9056
9057
9058
a243b558
JF
9059if test -z "$lt_cv_path_MAGIC_CMD"; then
9060 if test -n "$ac_tool_prefix"; then
9061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9062$as_echo_n "checking for file... " >&6; }
9063if ${lt_cv_path_MAGIC_CMD+:} false; then :
9064 $as_echo_n "(cached) " >&6
9065else
9066 case $MAGIC_CMD in
9067[\\/*] | ?:[\\/]*)
9068 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9069 ;;
9070*)
9071 lt_save_MAGIC_CMD="$MAGIC_CMD"
9072 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9073 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9074 for ac_dir in $ac_dummy; do
9075 IFS="$lt_save_ifs"
9076 test -z "$ac_dir" && ac_dir=.
9077 if test -f $ac_dir/file; then
9078 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9079 if test -n "$file_magic_test_file"; then
9080 case $deplibs_check_method in
9081 "file_magic "*)
9082 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9083 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9084 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9085 $EGREP "$file_magic_regex" > /dev/null; then
9086 :
9087 else
9088 cat <<_LT_EOF 1>&2
9c60689e 9089
a243b558
JF
9090*** Warning: the command libtool uses to detect shared libraries,
9091*** $file_magic_cmd, produces output that libtool cannot recognize.
9092*** The result is that libtool may fail to recognize shared libraries
9093*** as such. This will affect the creation of libtool libraries that
9094*** depend on shared libraries, but programs linked with such libtool
9095*** libraries will work regardless of this problem. Nevertheless, you
9096*** may want to report the problem to your system manager and/or to
9097*** bug-libtool@gnu.org
9c60689e 9098
a243b558
JF
9099_LT_EOF
9100 fi ;;
9101 esac
9102 fi
9103 break
9104 fi
9105 done
9106 IFS="$lt_save_ifs"
9107 MAGIC_CMD="$lt_save_MAGIC_CMD"
9108 ;;
9109esac
9110fi
9c60689e 9111
a243b558
JF
9112MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9113if test -n "$MAGIC_CMD"; then
9114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9115$as_echo "$MAGIC_CMD" >&6; }
9116else
9117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9118$as_echo "no" >&6; }
9119fi
9c60689e
DWT
9120
9121
a243b558
JF
9122 else
9123 MAGIC_CMD=:
9124 fi
9125fi
9c60689e 9126
a243b558
JF
9127 fi
9128 ;;
9129esac
9c60689e 9130
a243b558 9131# Use C for the default configuration in the libtool script
9c60689e 9132
a243b558
JF
9133lt_save_CC="$CC"
9134ac_ext=c
9135ac_cpp='$CPP $CPPFLAGS'
9136ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9137ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9138ac_compiler_gnu=$ac_cv_c_compiler_gnu
9c60689e
DWT
9139
9140
a243b558
JF
9141# Source file extension for C test sources.
9142ac_ext=c
9c60689e 9143
a243b558
JF
9144# Object file extension for compiled C test sources.
9145objext=o
9146objext=$objext
9c60689e 9147
a243b558
JF
9148# Code to be used in simple compile tests
9149lt_simple_compile_test_code="int some_variable = 0;"
9c60689e 9150
a243b558
JF
9151# Code to be used in simple link tests
9152lt_simple_link_test_code='int main(){return(0);}'
9c60689e
DWT
9153
9154
9155
9156
9157
9158
9159
a243b558
JF
9160# If no C compiler was specified, use CC.
9161LTCC=${LTCC-"$CC"}
9c60689e 9162
a243b558
JF
9163# If no C compiler flags were specified, use CFLAGS.
9164LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9c60689e 9165
a243b558
JF
9166# Allow CC to be a program name with arguments.
9167compiler=$CC
9c60689e 9168
a243b558
JF
9169# Save the default compiler, since it gets overwritten when the other
9170# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9171compiler_DEFAULT=$CC
9c60689e 9172
a243b558
JF
9173# save warnings/boilerplate of simple test code
9174ac_outfile=conftest.$ac_objext
9175echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9176eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9177_lt_compiler_boilerplate=`cat conftest.err`
00a96142 9178$RM -r conftest*
9c60689e 9179
a243b558
JF
9180ac_outfile=conftest.$ac_objext
9181echo "$lt_simple_link_test_code" >conftest.$ac_ext
9182eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9183_lt_linker_boilerplate=`cat conftest.err`
9184$RM -r conftest*
9c60689e
DWT
9185
9186
a243b558
JF
9187## CAVEAT EMPTOR:
9188## There is no encapsulation within the following macros, do not change
9189## the running order or otherwise move them around unless you know exactly
9190## what you are doing...
9191if test -n "$compiler"; then
9c60689e 9192
a243b558 9193lt_prog_compiler_no_builtin_flag=
9c60689e 9194
a243b558
JF
9195if test "$GCC" = yes; then
9196 case $cc_basename in
9197 nvcc*)
9198 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9199 *)
9200 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9201 esac
9c60689e 9202
a243b558
JF
9203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9204$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9205if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9206 $as_echo_n "(cached) " >&6
9207else
9208 lt_cv_prog_compiler_rtti_exceptions=no
9209 ac_outfile=conftest.$ac_objext
9210 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9211 lt_compiler_flag="-fno-rtti -fno-exceptions"
9212 # Insert the option either (1) after the last *FLAGS variable, or
9213 # (2) before a word containing "conftest.", or (3) at the end.
9214 # Note that $ac_compile itself does not contain backslashes and begins
9215 # with a dollar sign (not a hyphen), so the echo should work correctly.
9216 # The option is referenced via a variable to avoid confusing sed.
9217 lt_compile=`echo "$ac_compile" | $SED \
9218 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9219 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9220 -e 's:$: $lt_compiler_flag:'`
9221 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9222 (eval "$lt_compile" 2>conftest.err)
9223 ac_status=$?
9224 cat conftest.err >&5
9225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9226 if (exit $ac_status) && test -s "$ac_outfile"; then
9227 # The compiler can only warn and ignore the option if not recognized
9228 # So say no if there are warnings other than the usual output.
9229 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9230 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9231 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9232 lt_cv_prog_compiler_rtti_exceptions=yes
9233 fi
9234 fi
00a96142 9235 $RM -r conftest*
9c60689e 9236
a243b558
JF
9237fi
9238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9239$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9c60689e 9240
a243b558
JF
9241if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9242 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9243else
9244 :
9245fi
9c60689e 9246
a243b558 9247fi
9c60689e
DWT
9248
9249
9250
9251
9252
9253
a243b558
JF
9254 lt_prog_compiler_wl=
9255lt_prog_compiler_pic=
9256lt_prog_compiler_static=
9c60689e
DWT
9257
9258
a243b558
JF
9259 if test "$GCC" = yes; then
9260 lt_prog_compiler_wl='-Wl,'
9261 lt_prog_compiler_static='-static'
9c60689e 9262
a243b558
JF
9263 case $host_os in
9264 aix*)
9265 # All AIX code is PIC.
9266 if test "$host_cpu" = ia64; then
9267 # AIX 5 now supports IA64 processor
9268 lt_prog_compiler_static='-Bstatic'
9269 fi
9270 ;;
9c60689e 9271
a243b558
JF
9272 amigaos*)
9273 case $host_cpu in
9274 powerpc)
9275 # see comment about AmigaOS4 .so support
9276 lt_prog_compiler_pic='-fPIC'
9277 ;;
9278 m68k)
9279 # FIXME: we need at least 68020 code to build shared libraries, but
9280 # adding the `-m68020' flag to GCC prevents building anything better,
9281 # like `-m68040'.
9282 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9283 ;;
9284 esac
9285 ;;
9c60689e 9286
a243b558
JF
9287 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9288 # PIC is the default for these OSes.
9289 ;;
9c60689e 9290
a243b558
JF
9291 mingw* | cygwin* | pw32* | os2* | cegcc*)
9292 # This hack is so that the source file can tell whether it is being
9293 # built for inclusion in a dll (and should export symbols for example).
9294 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9295 # (--disable-auto-import) libraries
9296 lt_prog_compiler_pic='-DDLL_EXPORT'
9297 ;;
9c60689e 9298
a243b558
JF
9299 darwin* | rhapsody*)
9300 # PIC is the default on this platform
9301 # Common symbols not allowed in MH_DYLIB files
9302 lt_prog_compiler_pic='-fno-common'
9303 ;;
9c60689e 9304
a243b558
JF
9305 haiku*)
9306 # PIC is the default for Haiku.
9307 # The "-static" flag exists, but is broken.
9308 lt_prog_compiler_static=
9309 ;;
9c60689e 9310
a243b558
JF
9311 hpux*)
9312 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9313 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9314 # sets the default TLS model and affects inlining.
9315 case $host_cpu in
9316 hppa*64*)
9317 # +Z the default
9318 ;;
9319 *)
9320 lt_prog_compiler_pic='-fPIC'
9321 ;;
9322 esac
9323 ;;
9c60689e 9324
a243b558
JF
9325 interix[3-9]*)
9326 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9327 # Instead, we relocate shared libraries at runtime.
9328 ;;
9c60689e 9329
a243b558
JF
9330 msdosdjgpp*)
9331 # Just because we use GCC doesn't mean we suddenly get shared libraries
9332 # on systems that don't support them.
9333 lt_prog_compiler_can_build_shared=no
9334 enable_shared=no
9335 ;;
9c60689e 9336
a243b558
JF
9337 *nto* | *qnx*)
9338 # QNX uses GNU C++, but need to define -shared option too, otherwise
9339 # it will coredump.
9340 lt_prog_compiler_pic='-fPIC -shared'
9341 ;;
9c60689e 9342
a243b558
JF
9343 sysv4*MP*)
9344 if test -d /usr/nec; then
9345 lt_prog_compiler_pic=-Kconform_pic
9346 fi
9347 ;;
9c60689e 9348
a243b558
JF
9349 *)
9350 lt_prog_compiler_pic='-fPIC'
9351 ;;
9352 esac
9c60689e 9353
a243b558
JF
9354 case $cc_basename in
9355 nvcc*) # Cuda Compiler Driver 2.2
9356 lt_prog_compiler_wl='-Xlinker '
9357 if test -n "$lt_prog_compiler_pic"; then
9358 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9359 fi
9360 ;;
9361 esac
9362 else
9363 # PORTME Check for flag to pass linker flags through the system compiler.
9364 case $host_os in
9365 aix*)
9366 lt_prog_compiler_wl='-Wl,'
9367 if test "$host_cpu" = ia64; then
9368 # AIX 5 now supports IA64 processor
9369 lt_prog_compiler_static='-Bstatic'
9370 else
9371 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9372 fi
9373 ;;
9c60689e 9374
a243b558
JF
9375 mingw* | cygwin* | pw32* | os2* | cegcc*)
9376 # This hack is so that the source file can tell whether it is being
9377 # built for inclusion in a dll (and should export symbols for example).
9378 lt_prog_compiler_pic='-DDLL_EXPORT'
9379 ;;
9c60689e 9380
a243b558
JF
9381 hpux9* | hpux10* | hpux11*)
9382 lt_prog_compiler_wl='-Wl,'
9383 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9384 # not for PA HP-UX.
9385 case $host_cpu in
9386 hppa*64*|ia64*)
9387 # +Z the default
9388 ;;
9389 *)
9390 lt_prog_compiler_pic='+Z'
9391 ;;
9392 esac
9393 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9394 lt_prog_compiler_static='${wl}-a ${wl}archive'
9395 ;;
9c60689e 9396
a243b558
JF
9397 irix5* | irix6* | nonstopux*)
9398 lt_prog_compiler_wl='-Wl,'
9399 # PIC (with -KPIC) is the default.
9400 lt_prog_compiler_static='-non_shared'
9401 ;;
9c60689e 9402
a243b558
JF
9403 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9404 case $cc_basename in
9405 # old Intel for x86_64 which still supported -KPIC.
9406 ecc*)
9407 lt_prog_compiler_wl='-Wl,'
9408 lt_prog_compiler_pic='-KPIC'
9409 lt_prog_compiler_static='-static'
9410 ;;
9411 # icc used to be incompatible with GCC.
9412 # ICC 10 doesn't accept -KPIC any more.
9413 icc* | ifort*)
9414 lt_prog_compiler_wl='-Wl,'
9415 lt_prog_compiler_pic='-fPIC'
9416 lt_prog_compiler_static='-static'
9417 ;;
9418 # Lahey Fortran 8.1.
9419 lf95*)
9420 lt_prog_compiler_wl='-Wl,'
9421 lt_prog_compiler_pic='--shared'
9422 lt_prog_compiler_static='--static'
9423 ;;
9424 nagfor*)
9425 # NAG Fortran compiler
9426 lt_prog_compiler_wl='-Wl,-Wl,,'
9427 lt_prog_compiler_pic='-PIC'
9428 lt_prog_compiler_static='-Bstatic'
9429 ;;
9430 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9431 # Portland Group compilers (*not* the Pentium gcc compiler,
9432 # which looks to be a dead project)
9433 lt_prog_compiler_wl='-Wl,'
9434 lt_prog_compiler_pic='-fpic'
9435 lt_prog_compiler_static='-Bstatic'
9436 ;;
9437 ccc*)
9438 lt_prog_compiler_wl='-Wl,'
9439 # All Alpha code is PIC.
9440 lt_prog_compiler_static='-non_shared'
9441 ;;
9442 xl* | bgxl* | bgf* | mpixl*)
9443 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9444 lt_prog_compiler_wl='-Wl,'
9445 lt_prog_compiler_pic='-qpic'
9446 lt_prog_compiler_static='-qstaticlink'
9447 ;;
9448 *)
9449 case `$CC -V 2>&1 | sed 5q` in
9450 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9451 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9452 lt_prog_compiler_pic='-KPIC'
9453 lt_prog_compiler_static='-Bstatic'
9454 lt_prog_compiler_wl=''
9455 ;;
9456 *Sun\ F* | *Sun*Fortran*)
9457 lt_prog_compiler_pic='-KPIC'
9458 lt_prog_compiler_static='-Bstatic'
9459 lt_prog_compiler_wl='-Qoption ld '
9460 ;;
9461 *Sun\ C*)
9462 # Sun C 5.9
9463 lt_prog_compiler_pic='-KPIC'
9464 lt_prog_compiler_static='-Bstatic'
9465 lt_prog_compiler_wl='-Wl,'
9466 ;;
9467 *Intel*\ [CF]*Compiler*)
9468 lt_prog_compiler_wl='-Wl,'
9469 lt_prog_compiler_pic='-fPIC'
9470 lt_prog_compiler_static='-static'
9471 ;;
9472 *Portland\ Group*)
9473 lt_prog_compiler_wl='-Wl,'
9474 lt_prog_compiler_pic='-fpic'
9475 lt_prog_compiler_static='-Bstatic'
9476 ;;
9477 esac
9478 ;;
9479 esac
9480 ;;
9c60689e 9481
a243b558
JF
9482 newsos6)
9483 lt_prog_compiler_pic='-KPIC'
9484 lt_prog_compiler_static='-Bstatic'
9485 ;;
9c60689e 9486
a243b558
JF
9487 *nto* | *qnx*)
9488 # QNX uses GNU C++, but need to define -shared option too, otherwise
9489 # it will coredump.
9490 lt_prog_compiler_pic='-fPIC -shared'
9491 ;;
9c60689e 9492
a243b558
JF
9493 osf3* | osf4* | osf5*)
9494 lt_prog_compiler_wl='-Wl,'
9495 # All OSF/1 code is PIC.
9496 lt_prog_compiler_static='-non_shared'
9497 ;;
9c60689e 9498
a243b558
JF
9499 rdos*)
9500 lt_prog_compiler_static='-non_shared'
9501 ;;
9c60689e 9502
a243b558
JF
9503 solaris*)
9504 lt_prog_compiler_pic='-KPIC'
9505 lt_prog_compiler_static='-Bstatic'
9506 case $cc_basename in
9507 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9508 lt_prog_compiler_wl='-Qoption ld ';;
9509 *)
9510 lt_prog_compiler_wl='-Wl,';;
9511 esac
9512 ;;
9c60689e 9513
a243b558
JF
9514 sunos4*)
9515 lt_prog_compiler_wl='-Qoption ld '
9516 lt_prog_compiler_pic='-PIC'
9517 lt_prog_compiler_static='-Bstatic'
9518 ;;
9c60689e 9519
a243b558
JF
9520 sysv4 | sysv4.2uw2* | sysv4.3*)
9521 lt_prog_compiler_wl='-Wl,'
9522 lt_prog_compiler_pic='-KPIC'
9523 lt_prog_compiler_static='-Bstatic'
9524 ;;
9c60689e 9525
a243b558
JF
9526 sysv4*MP*)
9527 if test -d /usr/nec ;then
9528 lt_prog_compiler_pic='-Kconform_pic'
9529 lt_prog_compiler_static='-Bstatic'
9530 fi
9531 ;;
9c60689e 9532
a243b558
JF
9533 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9534 lt_prog_compiler_wl='-Wl,'
9535 lt_prog_compiler_pic='-KPIC'
9536 lt_prog_compiler_static='-Bstatic'
9537 ;;
9c60689e 9538
a243b558
JF
9539 unicos*)
9540 lt_prog_compiler_wl='-Wl,'
9541 lt_prog_compiler_can_build_shared=no
9542 ;;
9c60689e 9543
a243b558
JF
9544 uts4*)
9545 lt_prog_compiler_pic='-pic'
9546 lt_prog_compiler_static='-Bstatic'
9547 ;;
9c60689e 9548
a243b558
JF
9549 *)
9550 lt_prog_compiler_can_build_shared=no
9551 ;;
9552 esac
9553 fi
9c60689e 9554
a243b558
JF
9555case $host_os in
9556 # For platforms which do not support PIC, -DPIC is meaningless:
9557 *djgpp*)
9558 lt_prog_compiler_pic=
9559 ;;
9560 *)
9561 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9562 ;;
9563esac
9c60689e 9564
a243b558
JF
9565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9566$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9567if ${lt_cv_prog_compiler_pic+:} false; then :
9568 $as_echo_n "(cached) " >&6
9569else
9570 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9571fi
9572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9573$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9574lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9c60689e 9575
a243b558
JF
9576#
9577# Check to make sure the PIC flag actually works.
9578#
9579if test -n "$lt_prog_compiler_pic"; then
9580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9581$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9582if ${lt_cv_prog_compiler_pic_works+:} false; then :
9583 $as_echo_n "(cached) " >&6
9584else
9585 lt_cv_prog_compiler_pic_works=no
9586 ac_outfile=conftest.$ac_objext
9587 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9588 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9589 # Insert the option either (1) after the last *FLAGS variable, or
9590 # (2) before a word containing "conftest.", or (3) at the end.
9591 # Note that $ac_compile itself does not contain backslashes and begins
9592 # with a dollar sign (not a hyphen), so the echo should work correctly.
9593 # The option is referenced via a variable to avoid confusing sed.
9594 lt_compile=`echo "$ac_compile" | $SED \
9595 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9596 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9597 -e 's:$: $lt_compiler_flag:'`
9598 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9599 (eval "$lt_compile" 2>conftest.err)
9600 ac_status=$?
9601 cat conftest.err >&5
9602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9603 if (exit $ac_status) && test -s "$ac_outfile"; then
9604 # The compiler can only warn and ignore the option if not recognized
9605 # So say no if there are warnings other than the usual output.
9606 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9607 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9608 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9609 lt_cv_prog_compiler_pic_works=yes
9610 fi
9611 fi
00a96142 9612 $RM -r conftest*
9c60689e 9613
a243b558
JF
9614fi
9615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9616$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9c60689e 9617
a243b558
JF
9618if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9619 case $lt_prog_compiler_pic in
9620 "" | " "*) ;;
9621 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9622 esac
9623else
9624 lt_prog_compiler_pic=
9625 lt_prog_compiler_can_build_shared=no
9626fi
9c60689e 9627
a243b558 9628fi
9c60689e
DWT
9629
9630
9631
9632
9633
9634
9c60689e
DWT
9635
9636
9637
9638
9639
a243b558
JF
9640#
9641# Check to make sure the static flag actually works.
9642#
9643wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9645$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9646if ${lt_cv_prog_compiler_static_works+:} false; then :
9647 $as_echo_n "(cached) " >&6
9648else
9649 lt_cv_prog_compiler_static_works=no
9650 save_LDFLAGS="$LDFLAGS"
9651 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9652 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9653 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9654 # The linker can only warn and ignore the option if not recognized
9655 # So say no if there are warnings
9656 if test -s conftest.err; then
9657 # Append any errors to the config.log.
9658 cat conftest.err 1>&5
9659 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9660 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9661 if diff conftest.exp conftest.er2 >/dev/null; then
9662 lt_cv_prog_compiler_static_works=yes
9663 fi
9664 else
9665 lt_cv_prog_compiler_static_works=yes
9666 fi
9667 fi
9668 $RM -r conftest*
9669 LDFLAGS="$save_LDFLAGS"
9c60689e 9670
a243b558
JF
9671fi
9672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9673$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9c60689e 9674
a243b558
JF
9675if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9676 :
9c60689e 9677else
a243b558 9678 lt_prog_compiler_static=
9c60689e 9679fi
9c60689e 9680
9c60689e 9681
9c60689e 9682
9c60689e 9683
9c60689e 9684
9c60689e 9685
9c60689e 9686
a243b558
JF
9687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9688$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9689if ${lt_cv_prog_compiler_c_o+:} false; then :
9690 $as_echo_n "(cached) " >&6
9691else
9692 lt_cv_prog_compiler_c_o=no
9693 $RM -r conftest 2>/dev/null
9694 mkdir conftest
9695 cd conftest
9696 mkdir out
9697 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9c60689e 9698
a243b558
JF
9699 lt_compiler_flag="-o out/conftest2.$ac_objext"
9700 # Insert the option either (1) after the last *FLAGS variable, or
9701 # (2) before a word containing "conftest.", or (3) at the end.
9702 # Note that $ac_compile itself does not contain backslashes and begins
9703 # with a dollar sign (not a hyphen), so the echo should work correctly.
9704 lt_compile=`echo "$ac_compile" | $SED \
9705 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9706 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9707 -e 's:$: $lt_compiler_flag:'`
9708 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9709 (eval "$lt_compile" 2>out/conftest.err)
9710 ac_status=$?
9711 cat out/conftest.err >&5
9712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9713 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9714 then
9715 # The compiler can only warn and ignore the option if not recognized
9716 # So say no if there are warnings
9717 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9718 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9719 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9720 lt_cv_prog_compiler_c_o=yes
9721 fi
9722 fi
9723 chmod u+w . 2>&5
00a96142 9724 $RM -r conftest*
a243b558
JF
9725 # SGI C++ compiler will create directory out/ii_files/ for
9726 # template instantiation
9727 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9728 $RM out/* && rmdir out
9729 cd ..
9730 $RM -r conftest
00a96142 9731 $RM -r conftest*
9c60689e 9732
a243b558
JF
9733fi
9734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9735$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9c60689e 9736
ee134472 9737
ee134472 9738
ee134472 9739
ee134472 9740
9c60689e 9741
a243b558
JF
9742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9743$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9744if ${lt_cv_prog_compiler_c_o+:} false; then :
9745 $as_echo_n "(cached) " >&6
9746else
9747 lt_cv_prog_compiler_c_o=no
9748 $RM -r conftest 2>/dev/null
9749 mkdir conftest
9750 cd conftest
9751 mkdir out
9752 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9c60689e 9753
a243b558
JF
9754 lt_compiler_flag="-o out/conftest2.$ac_objext"
9755 # Insert the option either (1) after the last *FLAGS variable, or
9756 # (2) before a word containing "conftest.", or (3) at the end.
9757 # Note that $ac_compile itself does not contain backslashes and begins
9758 # with a dollar sign (not a hyphen), so the echo should work correctly.
9759 lt_compile=`echo "$ac_compile" | $SED \
9760 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9761 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9762 -e 's:$: $lt_compiler_flag:'`
9763 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9764 (eval "$lt_compile" 2>out/conftest.err)
9765 ac_status=$?
9766 cat out/conftest.err >&5
9767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9768 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9769 then
9770 # The compiler can only warn and ignore the option if not recognized
9771 # So say no if there are warnings
9772 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9773 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9774 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9775 lt_cv_prog_compiler_c_o=yes
9776 fi
9777 fi
9778 chmod u+w . 2>&5
00a96142 9779 $RM -r conftest*
a243b558
JF
9780 # SGI C++ compiler will create directory out/ii_files/ for
9781 # template instantiation
9782 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9783 $RM out/* && rmdir out
9784 cd ..
9785 $RM -r conftest
00a96142 9786 $RM -r conftest*
9c60689e 9787
a243b558
JF
9788fi
9789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9790$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9c60689e 9791
9c60689e 9792
a243b558
JF
9793
9794
9795hard_links="nottested"
9796if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9797 # do not overwrite the value of need_locks provided by the user
9798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9799$as_echo_n "checking if we can lock with hard links... " >&6; }
9800 hard_links=yes
00a96142 9801 $RM -r conftest*
a243b558
JF
9802 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9803 touch conftest.a
9804 ln conftest.a conftest.b 2>&5 || hard_links=no
9805 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9807$as_echo "$hard_links" >&6; }
9808 if test "$hard_links" = no; then
9809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9810$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9811 need_locks=warn
9c60689e 9812 fi
a243b558
JF
9813else
9814 need_locks=no
9815fi
9c60689e 9816
ee134472 9817
9c60689e 9818
9c60689e 9819
9c60689e 9820
a243b558
JF
9821
9822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9823$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9824
9825 runpath_var=
9826 allow_undefined_flag=
9827 always_export_symbols=no
9828 archive_cmds=
9829 archive_expsym_cmds=
9830 compiler_needs_object=no
9831 enable_shared_with_static_runtimes=no
9832 export_dynamic_flag_spec=
9833 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9834 hardcode_automatic=no
9835 hardcode_direct=no
9836 hardcode_direct_absolute=no
9837 hardcode_libdir_flag_spec=
9838 hardcode_libdir_separator=
9839 hardcode_minus_L=no
9840 hardcode_shlibpath_var=unsupported
9841 inherit_rpath=no
9842 link_all_deplibs=unknown
9843 module_cmds=
9844 module_expsym_cmds=
9845 old_archive_from_new_cmds=
9846 old_archive_from_expsyms_cmds=
9847 thread_safe_flag_spec=
9848 whole_archive_flag_spec=
9849 # include_expsyms should be a list of space-separated symbols to be *always*
9850 # included in the symbol list
9851 include_expsyms=
9852 # exclude_expsyms can be an extended regexp of symbols to exclude
9853 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9854 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9855 # as well as any symbol that contains `d'.
9856 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9857 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9858 # platforms (ab)use it in PIC code, but their linkers get confused if
9859 # the symbol is explicitly referenced. Since portable code cannot
9860 # rely on this symbol name, it's probably fine to never include it in
9861 # preloaded symbol tables.
9862 # Exclude shared library initialization/finalization symbols.
9863 extract_expsyms_cmds=
9864
9c60689e 9865 case $host_os in
a243b558
JF
9866 cygwin* | mingw* | pw32* | cegcc*)
9867 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9868 # When not using gcc, we currently assume that we are using
9869 # Microsoft Visual C++.
9870 if test "$GCC" != yes; then
9871 with_gnu_ld=no
9872 fi
9c60689e 9873 ;;
a243b558
JF
9874 interix*)
9875 # we just hope/assume this is gcc and not c89 (= MSVC++)
9876 with_gnu_ld=yes
9877 ;;
9878 openbsd*)
9879 with_gnu_ld=no
9c60689e
DWT
9880 ;;
9881 esac
9c60689e 9882
a243b558 9883 ld_shlibs=yes
ee134472 9884
a243b558
JF
9885 # On some targets, GNU ld is compatible enough with the native linker
9886 # that we're better off using the native interface for both.
9887 lt_use_gnu_ld_interface=no
9888 if test "$with_gnu_ld" = yes; then
9889 case $host_os in
9890 aix*)
9891 # The AIX port of GNU ld has always aspired to compatibility
9892 # with the native linker. However, as the warning in the GNU ld
9893 # block says, versions before 2.19.5* couldn't really create working
9894 # shared libraries, regardless of the interface used.
9895 case `$LD -v 2>&1` in
9896 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9897 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9898 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9899 *)
9900 lt_use_gnu_ld_interface=yes
9901 ;;
9902 esac
9903 ;;
9904 *)
9905 lt_use_gnu_ld_interface=yes
9906 ;;
9907 esac
9908 fi
9c60689e 9909
a243b558
JF
9910 if test "$lt_use_gnu_ld_interface" = yes; then
9911 # If archive_cmds runs LD, not CC, wlarc should be empty
9912 wlarc='${wl}'
9c60689e 9913
a243b558
JF
9914 # Set some defaults for GNU ld with shared library support. These
9915 # are reset later if shared libraries are not supported. Putting them
9916 # here allows them to be overridden if necessary.
9917 runpath_var=LD_RUN_PATH
9918 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9919 export_dynamic_flag_spec='${wl}--export-dynamic'
9920 # ancient GNU ld didn't support --whole-archive et. al.
9921 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9922 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9923 else
9924 whole_archive_flag_spec=
9925 fi
9926 supports_anon_versioning=no
9927 case `$LD -v 2>&1` in
9928 *GNU\ gold*) supports_anon_versioning=yes ;;
9929 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9930 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9931 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9932 *\ 2.11.*) ;; # other 2.11 versions
9933 *) supports_anon_versioning=yes ;;
9934 esac
ee134472 9935
a243b558
JF
9936 # See if GNU ld supports shared libraries.
9937 case $host_os in
9938 aix[3-9]*)
9939 # On AIX/PPC, the GNU linker is very broken
9940 if test "$host_cpu" != ia64; then
9941 ld_shlibs=no
9942 cat <<_LT_EOF 1>&2
ee134472 9943
a243b558
JF
9944*** Warning: the GNU linker, at least up to release 2.19, is reported
9945*** to be unable to reliably create shared libraries on AIX.
9946*** Therefore, libtool is disabling shared libraries support. If you
9947*** really care for shared libraries, you may want to install binutils
9948*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9949*** You will then need to restart the configuration process.
9c60689e 9950
a243b558
JF
9951_LT_EOF
9952 fi
9953 ;;
9c60689e 9954
a243b558
JF
9955 amigaos*)
9956 case $host_cpu in
9957 powerpc)
9958 # see comment about AmigaOS4 .so support
9959 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9960 archive_expsym_cmds=''
9961 ;;
9962 m68k)
9963 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)'
9964 hardcode_libdir_flag_spec='-L$libdir'
9965 hardcode_minus_L=yes
9966 ;;
9967 esac
9968 ;;
9c60689e 9969
a243b558
JF
9970 beos*)
9971 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9972 allow_undefined_flag=unsupported
9973 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9974 # support --undefined. This deserves some investigation. FIXME
9975 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9976 else
9977 ld_shlibs=no
9978 fi
9979 ;;
9c60689e 9980
a243b558
JF
9981 cygwin* | mingw* | pw32* | cegcc*)
9982 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9983 # as there is no search path for DLLs.
9984 hardcode_libdir_flag_spec='-L$libdir'
9985 export_dynamic_flag_spec='${wl}--export-all-symbols'
9986 allow_undefined_flag=unsupported
9987 always_export_symbols=no
9988 enable_shared_with_static_runtimes=yes
9989 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'
9990 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9c60689e 9991
a243b558
JF
9992 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9993 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9994 # If the export-symbols file already is a .def file (1st line
9995 # is EXPORTS), use it as is; otherwise, prepend...
9996 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9997 cp $export_symbols $output_objdir/$soname.def;
9998 else
9999 echo EXPORTS > $output_objdir/$soname.def;
10000 cat $export_symbols >> $output_objdir/$soname.def;
10001 fi~
10002 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10003 else
10004 ld_shlibs=no
10005 fi
10006 ;;
9c60689e 10007
a243b558
JF
10008 haiku*)
10009 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10010 link_all_deplibs=yes
10011 ;;
9c60689e 10012
a243b558
JF
10013 interix[3-9]*)
10014 hardcode_direct=no
10015 hardcode_shlibpath_var=no
10016 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10017 export_dynamic_flag_spec='${wl}-E'
10018 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10019 # Instead, shared libraries are loaded at an image base (0x10000000 by
10020 # default) and relocated if they conflict, which is a slow very memory
10021 # consuming and fragmenting process. To avoid this, we pick a random,
10022 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10023 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10024 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10025 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'
10026 ;;
9c60689e 10027
a243b558
JF
10028 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10029 tmp_diet=no
10030 if test "$host_os" = linux-dietlibc; then
10031 case $cc_basename in
10032 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10033 esac
10034 fi
10035 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10036 && test "$tmp_diet" = no
10037 then
10038 tmp_addflag=' $pic_flag'
10039 tmp_sharedflag='-shared'
10040 case $cc_basename,$host_cpu in
10041 pgcc*) # Portland Group C compiler
10042 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'
10043 tmp_addflag=' $pic_flag'
10044 ;;
10045 pgf77* | pgf90* | pgf95* | pgfortran*)
10046 # Portland Group f77 and f90 compilers
10047 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'
10048 tmp_addflag=' $pic_flag -Mnomain' ;;
10049 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10050 tmp_addflag=' -i_dynamic' ;;
10051 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10052 tmp_addflag=' -i_dynamic -nofor_main' ;;
10053 ifc* | ifort*) # Intel Fortran compiler
10054 tmp_addflag=' -nofor_main' ;;
10055 lf95*) # Lahey Fortran 8.1
10056 whole_archive_flag_spec=
10057 tmp_sharedflag='--shared' ;;
10058 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10059 tmp_sharedflag='-qmkshrobj'
10060 tmp_addflag= ;;
10061 nvcc*) # Cuda Compiler Driver 2.2
10062 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'
10063 compiler_needs_object=yes
10064 ;;
10065 esac
10066 case `$CC -V 2>&1 | sed 5q` in
10067 *Sun\ C*) # Sun C 5.9
10068 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'
10069 compiler_needs_object=yes
10070 tmp_sharedflag='-G' ;;
10071 *Sun\ F*) # Sun Fortran 8.3
10072 tmp_sharedflag='-G' ;;
10073 esac
10074 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9c60689e 10075
a243b558
JF
10076 if test "x$supports_anon_versioning" = xyes; then
10077 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10078 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10079 echo "local: *; };" >> $output_objdir/$libname.ver~
10080 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10081 fi
9c60689e 10082
a243b558
JF
10083 case $cc_basename in
10084 xlf* | bgf* | bgxlf* | mpixlf*)
10085 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10086 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10087 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10088 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10089 if test "x$supports_anon_versioning" = xyes; then
10090 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10091 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10092 echo "local: *; };" >> $output_objdir/$libname.ver~
10093 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10094 fi
10095 ;;
10096 esac
10097 else
10098 ld_shlibs=no
10099 fi
10100 ;;
9c60689e 10101
a243b558
JF
10102 netbsd*)
10103 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10104 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10105 wlarc=
10106 else
10107 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10108 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10109 fi
10110 ;;
9c60689e 10111
a243b558
JF
10112 solaris*)
10113 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10114 ld_shlibs=no
10115 cat <<_LT_EOF 1>&2
9c60689e 10116
a243b558
JF
10117*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10118*** create shared libraries on Solaris systems. Therefore, libtool
10119*** is disabling shared libraries support. We urge you to upgrade GNU
10120*** binutils to release 2.9.1 or newer. Another option is to modify
10121*** your PATH or compiler configuration so that the native linker is
10122*** used, and then restart.
9c60689e 10123
a243b558
JF
10124_LT_EOF
10125 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10126 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10127 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10128 else
10129 ld_shlibs=no
10130 fi
10131 ;;
9c60689e 10132
a243b558
JF
10133 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10134 case `$LD -v 2>&1` in
10135 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10136 ld_shlibs=no
10137 cat <<_LT_EOF 1>&2
9c60689e 10138
a243b558
JF
10139*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10140*** reliably create shared libraries on SCO systems. Therefore, libtool
10141*** is disabling shared libraries support. We urge you to upgrade GNU
10142*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10143*** your PATH or compiler configuration so that the native linker is
10144*** used, and then restart.
9c60689e 10145
a243b558
JF
10146_LT_EOF
10147 ;;
10148 *)
10149 # For security reasons, it is highly recommended that you always
10150 # use absolute paths for naming shared libraries, and exclude the
10151 # DT_RUNPATH tag from executables and libraries. But doing so
10152 # requires that you compile everything twice, which is a pain.
10153 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10154 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10155 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10156 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10157 else
10158 ld_shlibs=no
10159 fi
10160 ;;
10161 esac
10162 ;;
9c60689e 10163
a243b558
JF
10164 sunos4*)
10165 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10166 wlarc=
10167 hardcode_direct=yes
10168 hardcode_shlibpath_var=no
10169 ;;
9c60689e 10170
a243b558
JF
10171 *)
10172 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10173 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10174 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10175 else
10176 ld_shlibs=no
10177 fi
10178 ;;
10179 esac
9c60689e 10180
a243b558
JF
10181 if test "$ld_shlibs" = no; then
10182 runpath_var=
10183 hardcode_libdir_flag_spec=
10184 export_dynamic_flag_spec=
10185 whole_archive_flag_spec=
10186 fi
10187 else
10188 # PORTME fill in a description of your system's linker (not GNU ld)
10189 case $host_os in
10190 aix3*)
10191 allow_undefined_flag=unsupported
10192 always_export_symbols=yes
10193 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'
10194 # Note: this linker hardcodes the directories in LIBPATH if there
10195 # are no directories specified by -L.
10196 hardcode_minus_L=yes
10197 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10198 # Neither direct hardcoding nor static linking is supported with a
10199 # broken collect2.
10200 hardcode_direct=unsupported
10201 fi
10202 ;;
9c60689e 10203
a243b558
JF
10204 aix[4-9]*)
10205 if test "$host_cpu" = ia64; then
10206 # On IA64, the linker does run time linking by default, so we don't
10207 # have to do anything special.
10208 aix_use_runtimelinking=no
10209 exp_sym_flag='-Bexport'
10210 no_entry_flag=""
10211 else
10212 # If we're using GNU nm, then we don't want the "-C" option.
10213 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10214 # Also, AIX nm treats weak defined symbols like other global
10215 # defined symbols, whereas GNU nm marks them as "W".
10216 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10217 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'
10218 else
10219 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'
10220 fi
10221 aix_use_runtimelinking=no
9c60689e 10222
a243b558
JF
10223 # Test if we are trying to use run time linking or normal
10224 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10225 # need to do runtime linking.
10226 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10227 for ld_flag in $LDFLAGS; do
10228 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10229 aix_use_runtimelinking=yes
10230 break
10231 fi
10232 done
10233 ;;
10234 esac
9c60689e 10235
a243b558
JF
10236 exp_sym_flag='-bexport'
10237 no_entry_flag='-bnoentry'
10238 fi
9c60689e 10239
a243b558
JF
10240 # When large executables or shared objects are built, AIX ld can
10241 # have problems creating the table of contents. If linking a library
10242 # or program results in "error TOC overflow" add -mminimal-toc to
10243 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10244 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9c60689e 10245
a243b558
JF
10246 archive_cmds=''
10247 hardcode_direct=yes
10248 hardcode_direct_absolute=yes
10249 hardcode_libdir_separator=':'
10250 link_all_deplibs=yes
10251 file_list_spec='${wl}-f,'
9c60689e 10252
a243b558
JF
10253 if test "$GCC" = yes; then
10254 case $host_os in aix4.[012]|aix4.[012].*)
10255 # We only want to do this on AIX 4.2 and lower, the check
10256 # below for broken collect2 doesn't work under 4.3+
10257 collect2name=`${CC} -print-prog-name=collect2`
10258 if test -f "$collect2name" &&
10259 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10260 then
10261 # We have reworked collect2
10262 :
10263 else
10264 # We have old collect2
10265 hardcode_direct=unsupported
10266 # It fails to find uninstalled libraries when the uninstalled
10267 # path is not listed in the libpath. Setting hardcode_minus_L
10268 # to unsupported forces relinking
10269 hardcode_minus_L=yes
10270 hardcode_libdir_flag_spec='-L$libdir'
10271 hardcode_libdir_separator=
10272 fi
10273 ;;
10274 esac
10275 shared_flag='-shared'
10276 if test "$aix_use_runtimelinking" = yes; then
10277 shared_flag="$shared_flag "'${wl}-G'
10278 fi
10279 else
10280 # not using gcc
10281 if test "$host_cpu" = ia64; then
10282 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10283 # chokes on -Wl,-G. The following line is correct:
10284 shared_flag='-G'
10285 else
10286 if test "$aix_use_runtimelinking" = yes; then
10287 shared_flag='${wl}-G'
10288 else
10289 shared_flag='${wl}-bM:SRE'
10290 fi
10291 fi
10292 fi
9c60689e 10293
a243b558
JF
10294 export_dynamic_flag_spec='${wl}-bexpall'
10295 # It seems that -bexpall does not export symbols beginning with
10296 # underscore (_), so it is better to generate a list of symbols to export.
10297 always_export_symbols=yes
10298 if test "$aix_use_runtimelinking" = yes; then
10299 # Warning - without using the other runtime loading flags (-brtl),
10300 # -berok will link without error, but may produce a broken library.
10301 allow_undefined_flag='-berok'
10302 # Determine the default libpath from the value encoded in an
10303 # empty executable.
10304 if test "${lt_cv_aix_libpath+set}" = set; then
10305 aix_libpath=$lt_cv_aix_libpath
9c60689e 10306else
a243b558 10307 if ${lt_cv_aix_libpath_+:} false; then :
9c60689e
DWT
10308 $as_echo_n "(cached) " >&6
10309else
a243b558 10310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9c60689e
DWT
10311/* end confdefs.h. */
10312
9c60689e
DWT
10313int
10314main ()
10315{
a243b558 10316
9c60689e
DWT
10317 ;
10318 return 0;
10319}
10320_ACEOF
10321if ac_fn_c_try_link "$LINENO"; then :
a243b558
JF
10322
10323 lt_aix_libpath_sed='
10324 /Import File Strings/,/^$/ {
10325 /^0/ {
10326 s/^0 *\([^ ]*\) *$/\1/
10327 p
10328 }
10329 }'
10330 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10331 # Check for a 64-bit object if we didn't find anything.
10332 if test -z "$lt_cv_aix_libpath_"; then
10333 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10334 fi
9c60689e
DWT
10335fi
10336rm -f core conftest.err conftest.$ac_objext \
10337 conftest$ac_exeext conftest.$ac_ext
a243b558
JF
10338 if test -z "$lt_cv_aix_libpath_"; then
10339 lt_cv_aix_libpath_="/usr/lib:/lib"
10340 fi
9c60689e
DWT
10341
10342fi
10343
a243b558
JF
10344 aix_libpath=$lt_cv_aix_libpath_
10345fi
9c60689e 10346
a243b558
JF
10347 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10348 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"
10349 else
10350 if test "$host_cpu" = ia64; then
10351 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10352 allow_undefined_flag="-z nodefs"
10353 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"
10354 else
10355 # Determine the default libpath from the value encoded in an
10356 # empty executable.
10357 if test "${lt_cv_aix_libpath+set}" = set; then
10358 aix_libpath=$lt_cv_aix_libpath
9c60689e 10359else
a243b558 10360 if ${lt_cv_aix_libpath_+:} false; then :
9c60689e
DWT
10361 $as_echo_n "(cached) " >&6
10362else
a243b558 10363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9c60689e
DWT
10364/* end confdefs.h. */
10365
9c60689e
DWT
10366int
10367main ()
10368{
a243b558 10369
9c60689e
DWT
10370 ;
10371 return 0;
10372}
10373_ACEOF
10374if ac_fn_c_try_link "$LINENO"; then :
9c60689e 10375
a243b558
JF
10376 lt_aix_libpath_sed='
10377 /Import File Strings/,/^$/ {
10378 /^0/ {
10379 s/^0 *\([^ ]*\) *$/\1/
10380 p
10381 }
10382 }'
10383 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10384 # Check for a 64-bit object if we didn't find anything.
10385 if test -z "$lt_cv_aix_libpath_"; then
10386 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10387 fi
9c60689e
DWT
10388fi
10389rm -f core conftest.err conftest.$ac_objext \
10390 conftest$ac_exeext conftest.$ac_ext
a243b558
JF
10391 if test -z "$lt_cv_aix_libpath_"; then
10392 lt_cv_aix_libpath_="/usr/lib:/lib"
10393 fi
10394
9c60689e 10395fi
9c60689e 10396
a243b558
JF
10397 aix_libpath=$lt_cv_aix_libpath_
10398fi
10399
10400 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10401 # Warning - without using the other run time loading flags,
10402 # -berok will link without error, but may produce a broken library.
10403 no_undefined_flag=' ${wl}-bernotok'
10404 allow_undefined_flag=' ${wl}-berok'
10405 if test "$with_gnu_ld" = yes; then
10406 # We only use this code for GNU lds that support --whole-archive.
10407 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10408 else
10409 # Exported symbols can be pulled into shared objects from archives
10410 whole_archive_flag_spec='$convenience'
10411 fi
10412 archive_cmds_need_lc=yes
10413 # This is similar to how AIX traditionally builds its shared libraries.
10414 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'
10415 fi
10416 fi
10417 ;;
10418
10419 amigaos*)
10420 case $host_cpu in
10421 powerpc)
10422 # see comment about AmigaOS4 .so support
10423 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10424 archive_expsym_cmds=''
10425 ;;
10426 m68k)
10427 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)'
10428 hardcode_libdir_flag_spec='-L$libdir'
10429 hardcode_minus_L=yes
10430 ;;
10431 esac
10432 ;;
10433
10434 bsdi[45]*)
10435 export_dynamic_flag_spec=-rdynamic
10436 ;;
10437
10438 cygwin* | mingw* | pw32* | cegcc*)
10439 # When not using gcc, we currently assume that we are using
10440 # Microsoft Visual C++.
10441 # hardcode_libdir_flag_spec is actually meaningless, as there is
10442 # no search path for DLLs.
10443 case $cc_basename in
10444 cl*)
10445 # Native MSVC
10446 hardcode_libdir_flag_spec=' '
10447 allow_undefined_flag=unsupported
10448 always_export_symbols=yes
10449 file_list_spec='@'
10450 # Tell ltmain to make .lib files, not .a files.
10451 libext=lib
10452 # Tell ltmain to make .dll files, not .so files.
10453 shrext_cmds=".dll"
10454 # FIXME: Setting linknames here is a bad hack.
10455 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10456 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10457 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10458 else
10459 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10460 fi~
10461 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10462 linknames='
10463 # The linker will not automatically build a static lib if we build a DLL.
10464 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10465 enable_shared_with_static_runtimes=yes
10466 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10467 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10468 # Don't use ranlib
10469 old_postinstall_cmds='chmod 644 $oldlib'
10470 postlink_cmds='lt_outputfile="@OUTPUT@"~
10471 lt_tool_outputfile="@TOOL_OUTPUT@"~
10472 case $lt_outputfile in
10473 *.exe|*.EXE) ;;
10474 *)
10475 lt_outputfile="$lt_outputfile.exe"
10476 lt_tool_outputfile="$lt_tool_outputfile.exe"
10477 ;;
10478 esac~
10479 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10480 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10481 $RM "$lt_outputfile.manifest";
10482 fi'
10483 ;;
10484 *)
10485 # Assume MSVC wrapper
10486 hardcode_libdir_flag_spec=' '
10487 allow_undefined_flag=unsupported
10488 # Tell ltmain to make .lib files, not .a files.
10489 libext=lib
10490 # Tell ltmain to make .dll files, not .so files.
10491 shrext_cmds=".dll"
10492 # FIXME: Setting linknames here is a bad hack.
10493 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10494 # The linker will automatically build a .lib file if we build a DLL.
10495 old_archive_from_new_cmds='true'
10496 # FIXME: Should let the user specify the lib program.
10497 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10498 enable_shared_with_static_runtimes=yes
10499 ;;
10500 esac
10501 ;;
10502
10503 darwin* | rhapsody*)
10504
10505
10506 archive_cmds_need_lc=no
10507 hardcode_direct=no
10508 hardcode_automatic=yes
10509 hardcode_shlibpath_var=unsupported
10510 if test "$lt_cv_ld_force_load" = "yes"; then
10511 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\"`'
10512
10513 else
10514 whole_archive_flag_spec=''
10515 fi
10516 link_all_deplibs=yes
10517 allow_undefined_flag="$_lt_dar_allow_undefined"
10518 case $cc_basename in
10519 ifort*) _lt_dar_can_shared=yes ;;
10520 *) _lt_dar_can_shared=$GCC ;;
10521 esac
10522 if test "$_lt_dar_can_shared" = "yes"; then
10523 output_verbose_link_cmd=func_echo_all
10524 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10525 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10526 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}"
10527 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}"
10528
10529 else
10530 ld_shlibs=no
10531 fi
10532
10533 ;;
10534
10535 dgux*)
10536 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10537 hardcode_libdir_flag_spec='-L$libdir'
10538 hardcode_shlibpath_var=no
10539 ;;
10540
10541 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10542 # support. Future versions do this automatically, but an explicit c++rt0.o
10543 # does not break anything, and helps significantly (at the cost of a little
10544 # extra space).
10545 freebsd2.2*)
10546 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10547 hardcode_libdir_flag_spec='-R$libdir'
10548 hardcode_direct=yes
10549 hardcode_shlibpath_var=no
10550 ;;
10551
10552 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10553 freebsd2.*)
10554 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10555 hardcode_direct=yes
10556 hardcode_minus_L=yes
10557 hardcode_shlibpath_var=no
10558 ;;
10559
10560 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10561 freebsd* | dragonfly*)
10562 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10563 hardcode_libdir_flag_spec='-R$libdir'
10564 hardcode_direct=yes
10565 hardcode_shlibpath_var=no
10566 ;;
10567
10568 hpux9*)
10569 if test "$GCC" = yes; then
10570 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'
10571 else
10572 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'
10573 fi
10574 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10575 hardcode_libdir_separator=:
10576 hardcode_direct=yes
10577
10578 # hardcode_minus_L: Not really in the search PATH,
10579 # but as the default location of the library.
10580 hardcode_minus_L=yes
10581 export_dynamic_flag_spec='${wl}-E'
10582 ;;
10583
10584 hpux10*)
10585 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10586 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10587 else
10588 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10589 fi
10590 if test "$with_gnu_ld" = no; then
10591 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10592 hardcode_libdir_separator=:
10593 hardcode_direct=yes
10594 hardcode_direct_absolute=yes
10595 export_dynamic_flag_spec='${wl}-E'
10596 # hardcode_minus_L: Not really in the search PATH,
10597 # but as the default location of the library.
10598 hardcode_minus_L=yes
10599 fi
10600 ;;
10601
10602 hpux11*)
10603 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10604 case $host_cpu in
10605 hppa*64*)
10606 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10607 ;;
10608 ia64*)
10609 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10610 ;;
10611 *)
10612 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10613 ;;
10614 esac
10615 else
10616 case $host_cpu in
10617 hppa*64*)
10618 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10619 ;;
10620 ia64*)
10621 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10622 ;;
10623 *)
10624
10625 # Older versions of the 11.00 compiler do not understand -b yet
10626 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10628$as_echo_n "checking if $CC understands -b... " >&6; }
10629if ${lt_cv_prog_compiler__b+:} false; then :
10630 $as_echo_n "(cached) " >&6
10631else
10632 lt_cv_prog_compiler__b=no
10633 save_LDFLAGS="$LDFLAGS"
10634 LDFLAGS="$LDFLAGS -b"
10635 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10636 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10637 # The linker can only warn and ignore the option if not recognized
10638 # So say no if there are warnings
10639 if test -s conftest.err; then
10640 # Append any errors to the config.log.
10641 cat conftest.err 1>&5
10642 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10643 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10644 if diff conftest.exp conftest.er2 >/dev/null; then
10645 lt_cv_prog_compiler__b=yes
10646 fi
10647 else
10648 lt_cv_prog_compiler__b=yes
10649 fi
10650 fi
10651 $RM -r conftest*
10652 LDFLAGS="$save_LDFLAGS"
10653
10654fi
10655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10656$as_echo "$lt_cv_prog_compiler__b" >&6; }
10657
10658if test x"$lt_cv_prog_compiler__b" = xyes; then
10659 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10660else
10661 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10662fi
10663
10664 ;;
10665 esac
10666 fi
10667 if test "$with_gnu_ld" = no; then
10668 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10669 hardcode_libdir_separator=:
10670
10671 case $host_cpu in
10672 hppa*64*|ia64*)
10673 hardcode_direct=no
10674 hardcode_shlibpath_var=no
10675 ;;
10676 *)
10677 hardcode_direct=yes
10678 hardcode_direct_absolute=yes
10679 export_dynamic_flag_spec='${wl}-E'
10680
10681 # hardcode_minus_L: Not really in the search PATH,
10682 # but as the default location of the library.
10683 hardcode_minus_L=yes
10684 ;;
10685 esac
10686 fi
10687 ;;
10688
10689 irix5* | irix6* | nonstopux*)
10690 if test "$GCC" = yes; then
10691 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'
10692 # Try to use the -exported_symbol ld option, if it does not
10693 # work, assume that -exports_file does not work either and
10694 # implicitly export all symbols.
10695 # This should be the same for all languages, so no per-tag cache variable.
10696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10697$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10698if ${lt_cv_irix_exported_symbol+:} false; then :
10699 $as_echo_n "(cached) " >&6
10700else
10701 save_LDFLAGS="$LDFLAGS"
10702 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10704/* end confdefs.h. */
10705int foo (void) { return 0; }
10706_ACEOF
10707if ac_fn_c_try_link "$LINENO"; then :
10708 lt_cv_irix_exported_symbol=yes
10709else
10710 lt_cv_irix_exported_symbol=no
10711fi
10712rm -f core conftest.err conftest.$ac_objext \
10713 conftest$ac_exeext conftest.$ac_ext
10714 LDFLAGS="$save_LDFLAGS"
10715fi
10716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10717$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10718 if test "$lt_cv_irix_exported_symbol" = yes; then
10719 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'
10720 fi
10721 else
10722 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'
10723 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'
10724 fi
10725 archive_cmds_need_lc='no'
10726 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10727 hardcode_libdir_separator=:
10728 inherit_rpath=yes
10729 link_all_deplibs=yes
10730 ;;
10731
10732 netbsd*)
10733 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10734 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10735 else
10736 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10737 fi
10738 hardcode_libdir_flag_spec='-R$libdir'
10739 hardcode_direct=yes
10740 hardcode_shlibpath_var=no
10741 ;;
10742
10743 newsos6)
10744 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10745 hardcode_direct=yes
10746 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10747 hardcode_libdir_separator=:
10748 hardcode_shlibpath_var=no
10749 ;;
10750
10751 *nto* | *qnx*)
10752 ;;
10753
10754 openbsd*)
10755 if test -f /usr/libexec/ld.so; then
10756 hardcode_direct=yes
10757 hardcode_shlibpath_var=no
10758 hardcode_direct_absolute=yes
10759 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10760 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10761 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10762 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10763 export_dynamic_flag_spec='${wl}-E'
10764 else
10765 case $host_os in
10766 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10767 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10768 hardcode_libdir_flag_spec='-R$libdir'
10769 ;;
10770 *)
10771 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10772 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10773 ;;
10774 esac
10775 fi
10776 else
10777 ld_shlibs=no
10778 fi
10779 ;;
10780
10781 os2*)
10782 hardcode_libdir_flag_spec='-L$libdir'
10783 hardcode_minus_L=yes
10784 allow_undefined_flag=unsupported
10785 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'
10786 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10787 ;;
10788
10789 osf3*)
10790 if test "$GCC" = yes; then
10791 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10792 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'
10793 else
10794 allow_undefined_flag=' -expect_unresolved \*'
10795 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'
10796 fi
10797 archive_cmds_need_lc='no'
10798 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10799 hardcode_libdir_separator=:
10800 ;;
10801
10802 osf4* | osf5*) # as osf3* with the addition of -msym flag
10803 if test "$GCC" = yes; then
10804 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10805 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'
10806 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10807 else
10808 allow_undefined_flag=' -expect_unresolved \*'
10809 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'
10810 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~
10811 $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'
10812
10813 # Both c and cxx compiler support -rpath directly
10814 hardcode_libdir_flag_spec='-rpath $libdir'
10815 fi
10816 archive_cmds_need_lc='no'
10817 hardcode_libdir_separator=:
10818 ;;
10819
10820 solaris*)
10821 no_undefined_flag=' -z defs'
10822 if test "$GCC" = yes; then
10823 wlarc='${wl}'
10824 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10825 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10826 $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'
10827 else
10828 case `$CC -V 2>&1` in
10829 *"Compilers 5.0"*)
10830 wlarc=''
10831 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10832 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10833 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10834 ;;
10835 *)
10836 wlarc='${wl}'
10837 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10838 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10839 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10840 ;;
10841 esac
10842 fi
10843 hardcode_libdir_flag_spec='-R$libdir'
10844 hardcode_shlibpath_var=no
10845 case $host_os in
10846 solaris2.[0-5] | solaris2.[0-5].*) ;;
10847 *)
10848 # The compiler driver will combine and reorder linker options,
10849 # but understands `-z linker_flag'. GCC discards it without `$wl',
10850 # but is careful enough not to reorder.
10851 # Supported since Solaris 2.6 (maybe 2.5.1?)
10852 if test "$GCC" = yes; then
10853 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10854 else
10855 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10856 fi
10857 ;;
10858 esac
10859 link_all_deplibs=yes
10860 ;;
10861
10862 sunos4*)
10863 if test "x$host_vendor" = xsequent; then
10864 # Use $CC to link under sequent, because it throws in some extra .o
10865 # files that make .init and .fini sections work.
10866 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10867 else
10868 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10869 fi
10870 hardcode_libdir_flag_spec='-L$libdir'
10871 hardcode_direct=yes
10872 hardcode_minus_L=yes
10873 hardcode_shlibpath_var=no
10874 ;;
10875
10876 sysv4)
10877 case $host_vendor in
10878 sni)
10879 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10880 hardcode_direct=yes # is this really true???
10881 ;;
10882 siemens)
10883 ## LD is ld it makes a PLAMLIB
10884 ## CC just makes a GrossModule.
10885 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10886 reload_cmds='$CC -r -o $output$reload_objs'
10887 hardcode_direct=no
10888 ;;
10889 motorola)
10890 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10891 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10892 ;;
10893 esac
10894 runpath_var='LD_RUN_PATH'
10895 hardcode_shlibpath_var=no
10896 ;;
10897
10898 sysv4.3*)
10899 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10900 hardcode_shlibpath_var=no
10901 export_dynamic_flag_spec='-Bexport'
10902 ;;
10903
10904 sysv4*MP*)
10905 if test -d /usr/nec; then
10906 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10907 hardcode_shlibpath_var=no
10908 runpath_var=LD_RUN_PATH
10909 hardcode_runpath_var=yes
10910 ld_shlibs=yes
10911 fi
10912 ;;
10913
10914 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10915 no_undefined_flag='${wl}-z,text'
10916 archive_cmds_need_lc=no
10917 hardcode_shlibpath_var=no
10918 runpath_var='LD_RUN_PATH'
10919
10920 if test "$GCC" = yes; then
10921 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10922 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10923 else
10924 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10925 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10926 fi
10927 ;;
10928
10929 sysv5* | sco3.2v5* | sco5v6*)
10930 # Note: We can NOT use -z defs as we might desire, because we do not
10931 # link with -lc, and that would cause any symbols used from libc to
10932 # always be unresolved, which means just about no library would
10933 # ever link correctly. If we're not using GNU ld we use -z text
10934 # though, which does catch some bad symbols but isn't as heavy-handed
10935 # as -z defs.
10936 no_undefined_flag='${wl}-z,text'
10937 allow_undefined_flag='${wl}-z,nodefs'
10938 archive_cmds_need_lc=no
10939 hardcode_shlibpath_var=no
10940 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10941 hardcode_libdir_separator=':'
10942 link_all_deplibs=yes
10943 export_dynamic_flag_spec='${wl}-Bexport'
10944 runpath_var='LD_RUN_PATH'
10945
10946 if test "$GCC" = yes; then
10947 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10948 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10949 else
10950 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10951 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10952 fi
10953 ;;
10954
10955 uts4*)
10956 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10957 hardcode_libdir_flag_spec='-L$libdir'
10958 hardcode_shlibpath_var=no
10959 ;;
10960
10961 *)
10962 ld_shlibs=no
10963 ;;
10964 esac
10965
10966 if test x$host_vendor = xsni; then
10967 case $host in
10968 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10969 export_dynamic_flag_spec='${wl}-Blargedynsym'
10970 ;;
10971 esac
10972 fi
10973 fi
10974
10975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10976$as_echo "$ld_shlibs" >&6; }
10977test "$ld_shlibs" = no && can_build_shared=no
10978
10979with_gnu_ld=$with_gnu_ld
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995#
10996# Do we need to explicitly link libc?
10997#
10998case "x$archive_cmds_need_lc" in
10999x|xyes)
11000 # Assume -lc should be added
11001 archive_cmds_need_lc=yes
11002
11003 if test "$enable_shared" = yes && test "$GCC" = yes; then
11004 case $archive_cmds in
11005 *'~'*)
11006 # FIXME: we may have to deal with multi-command sequences.
11007 ;;
11008 '$CC '*)
11009 # Test whether the compiler implicitly links with -lc since on some
11010 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11011 # to ld, don't add -lc before -lgcc.
11012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11013$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11014if ${lt_cv_archive_cmds_need_lc+:} false; then :
11015 $as_echo_n "(cached) " >&6
11016else
00a96142 11017 $RM -r conftest*
a243b558
JF
11018 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11019
11020 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11021 (eval $ac_compile) 2>&5
11022 ac_status=$?
11023 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11024 test $ac_status = 0; } 2>conftest.err; then
11025 soname=conftest
11026 lib=conftest
11027 libobjs=conftest.$ac_objext
11028 deplibs=
11029 wl=$lt_prog_compiler_wl
11030 pic_flag=$lt_prog_compiler_pic
11031 compiler_flags=-v
11032 linker_flags=-v
11033 verstring=
11034 output_objdir=.
11035 libname=conftest
11036 lt_save_allow_undefined_flag=$allow_undefined_flag
11037 allow_undefined_flag=
11038 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11039 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11040 ac_status=$?
11041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11042 test $ac_status = 0; }
11043 then
11044 lt_cv_archive_cmds_need_lc=no
11045 else
11046 lt_cv_archive_cmds_need_lc=yes
11047 fi
11048 allow_undefined_flag=$lt_save_allow_undefined_flag
11049 else
11050 cat conftest.err 1>&5
11051 fi
00a96142 11052 $RM -r conftest*
a243b558
JF
11053
11054fi
11055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11056$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11057 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11058 ;;
11059 esac
11060 fi
11061 ;;
11062esac
11063
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11216$as_echo_n "checking dynamic linker characteristics... " >&6; }
11217
11218if test "$GCC" = yes; then
11219 case $host_os in
11220 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11221 *) lt_awk_arg="/^libraries:/" ;;
11222 esac
11223 case $host_os in
11224 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11225 *) lt_sed_strip_eq="s,=/,/,g" ;;
11226 esac
11227 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11228 case $lt_search_path_spec in
11229 *\;*)
11230 # if the path contains ";" then we assume it to be the separator
11231 # otherwise default to the standard path separator (i.e. ":") - it is
11232 # assumed that no part of a normal pathname contains ";" but that should
11233 # okay in the real world where ";" in dirpaths is itself problematic.
11234 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11235 ;;
11236 *)
11237 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11238 ;;
11239 esac
11240 # Ok, now we have the path, separated by spaces, we can step through it
11241 # and add multilib dir if necessary.
11242 lt_tmp_lt_search_path_spec=
11243 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11244 for lt_sys_path in $lt_search_path_spec; do
11245 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11246 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11247 else
11248 test -d "$lt_sys_path" && \
11249 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11250 fi
11251 done
11252 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11253BEGIN {RS=" "; FS="/|\n";} {
11254 lt_foo="";
11255 lt_count=0;
11256 for (lt_i = NF; lt_i > 0; lt_i--) {
11257 if ($lt_i != "" && $lt_i != ".") {
11258 if ($lt_i == "..") {
11259 lt_count++;
11260 } else {
11261 if (lt_count == 0) {
11262 lt_foo="/" $lt_i lt_foo;
11263 } else {
11264 lt_count--;
11265 }
11266 }
11267 }
11268 }
11269 if (lt_foo != "") { lt_freq[lt_foo]++; }
11270 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11271}'`
11272 # AWK program above erroneously prepends '/' to C:/dos/paths
11273 # for these hosts.
11274 case $host_os in
11275 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11276 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11277 esac
11278 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11279else
11280 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11281fi
11282library_names_spec=
11283libname_spec='lib$name'
11284soname_spec=
11285shrext_cmds=".so"
11286postinstall_cmds=
11287postuninstall_cmds=
11288finish_cmds=
11289finish_eval=
11290shlibpath_var=
11291shlibpath_overrides_runpath=unknown
11292version_type=none
11293dynamic_linker="$host_os ld.so"
11294sys_lib_dlsearch_path_spec="/lib /usr/lib"
11295need_lib_prefix=unknown
11296hardcode_into_libs=no
11297
11298# when you set need_version to no, make sure it does not cause -set_version
11299# flags to be left without arguments
11300need_version=unknown
11301
11302case $host_os in
11303aix3*)
11304 version_type=linux # correct to gnu/linux during the next big refactor
11305 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11306 shlibpath_var=LIBPATH
11307
11308 # AIX 3 has no versioning support, so we append a major version to the name.
11309 soname_spec='${libname}${release}${shared_ext}$major'
11310 ;;
11311
11312aix[4-9]*)
11313 version_type=linux # correct to gnu/linux during the next big refactor
11314 need_lib_prefix=no
11315 need_version=no
11316 hardcode_into_libs=yes
11317 if test "$host_cpu" = ia64; then
11318 # AIX 5 supports IA64
11319 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11320 shlibpath_var=LD_LIBRARY_PATH
11321 else
11322 # With GCC up to 2.95.x, collect2 would create an import file
11323 # for dependence libraries. The import file would start with
11324 # the line `#! .'. This would cause the generated library to
11325 # depend on `.', always an invalid library. This was fixed in
11326 # development snapshots of GCC prior to 3.0.
11327 case $host_os in
11328 aix4 | aix4.[01] | aix4.[01].*)
11329 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11330 echo ' yes '
11331 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11332 :
11333 else
11334 can_build_shared=no
11335 fi
11336 ;;
11337 esac
11338 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11339 # soname into executable. Probably we can add versioning support to
11340 # collect2, so additional links can be useful in future.
11341 if test "$aix_use_runtimelinking" = yes; then
11342 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11343 # instead of lib<name>.a to let people know that these are not
11344 # typical AIX shared libraries.
11345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11346 else
11347 # We preserve .a as extension for shared libraries through AIX4.2
11348 # and later when we are not doing run time linking.
11349 library_names_spec='${libname}${release}.a $libname.a'
11350 soname_spec='${libname}${release}${shared_ext}$major'
11351 fi
11352 shlibpath_var=LIBPATH
11353 fi
11354 ;;
11355
11356amigaos*)
11357 case $host_cpu in
11358 powerpc)
11359 # Since July 2007 AmigaOS4 officially supports .so libraries.
11360 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11362 ;;
11363 m68k)
11364 library_names_spec='$libname.ixlibrary $libname.a'
11365 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11366 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'
11367 ;;
11368 esac
11369 ;;
11370
11371beos*)
11372 library_names_spec='${libname}${shared_ext}'
11373 dynamic_linker="$host_os ld.so"
11374 shlibpath_var=LIBRARY_PATH
11375 ;;
11376
11377bsdi[45]*)
11378 version_type=linux # correct to gnu/linux during the next big refactor
11379 need_version=no
11380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11381 soname_spec='${libname}${release}${shared_ext}$major'
11382 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11383 shlibpath_var=LD_LIBRARY_PATH
11384 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11385 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11386 # the default ld.so.conf also contains /usr/contrib/lib and
11387 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11388 # libtool to hard-code these into programs
11389 ;;
11390
11391cygwin* | mingw* | pw32* | cegcc*)
11392 version_type=windows
11393 shrext_cmds=".dll"
11394 need_version=no
11395 need_lib_prefix=no
9c60689e 11396
a243b558
JF
11397 case $GCC,$cc_basename in
11398 yes,*)
11399 # gcc
11400 library_names_spec='$libname.dll.a'
11401 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11402 postinstall_cmds='base_file=`basename \${file}`~
11403 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11404 dldir=$destdir/`dirname \$dlpath`~
11405 test -d \$dldir || mkdir -p \$dldir~
11406 $install_prog $dir/$dlname \$dldir/$dlname~
11407 chmod a+x \$dldir/$dlname~
11408 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11409 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11410 fi'
11411 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11412 dlpath=$dir/\$dldll~
11413 $RM \$dlpath'
11414 shlibpath_overrides_runpath=yes
9c60689e 11415
a243b558
JF
11416 case $host_os in
11417 cygwin*)
11418 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11419 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9c60689e 11420
a243b558
JF
11421 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11422 ;;
11423 mingw* | cegcc*)
11424 # MinGW DLLs use traditional 'lib' prefix
11425 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11426 ;;
11427 pw32*)
11428 # pw32 DLLs use 'pw' prefix rather than 'lib'
11429 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11430 ;;
11431 esac
11432 dynamic_linker='Win32 ld.exe'
11433 ;;
9c60689e 11434
a243b558
JF
11435 *,cl*)
11436 # Native MSVC
11437 libname_spec='$name'
11438 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11439 library_names_spec='${libname}.dll.lib'
9c60689e 11440
a243b558
JF
11441 case $build_os in
11442 mingw*)
11443 sys_lib_search_path_spec=
11444 lt_save_ifs=$IFS
11445 IFS=';'
11446 for lt_path in $LIB
11447 do
11448 IFS=$lt_save_ifs
11449 # Let DOS variable expansion print the short 8.3 style file name.
11450 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11451 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11452 done
11453 IFS=$lt_save_ifs
11454 # Convert to MSYS style.
11455 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11456 ;;
11457 cygwin*)
11458 # Convert to unix form, then to dos form, then back to unix form
11459 # but this time dos style (no spaces!) so that the unix form looks
11460 # like /cygdrive/c/PROGRA~1:/cygdr...
11461 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11462 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11463 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11464 ;;
11465 *)
11466 sys_lib_search_path_spec="$LIB"
11467 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11468 # It is most probably a Windows format PATH.
11469 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11470 else
11471 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11472 fi
11473 # FIXME: find the short name or the path components, as spaces are
11474 # common. (e.g. "Program Files" -> "PROGRA~1")
11475 ;;
11476 esac
11477
11478 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11479 postinstall_cmds='base_file=`basename \${file}`~
11480 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11481 dldir=$destdir/`dirname \$dlpath`~
11482 test -d \$dldir || mkdir -p \$dldir~
11483 $install_prog $dir/$dlname \$dldir/$dlname'
11484 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11485 dlpath=$dir/\$dldll~
11486 $RM \$dlpath'
11487 shlibpath_overrides_runpath=yes
11488 dynamic_linker='Win32 link.exe'
11489 ;;
9c60689e 11490
a243b558
JF
11491 *)
11492 # Assume MSVC wrapper
11493 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11494 dynamic_linker='Win32 ld.exe'
11495 ;;
11496 esac
11497 # FIXME: first we should search . and the directory the executable is in
11498 shlibpath_var=PATH
11499 ;;
9c60689e 11500
a243b558
JF
11501darwin* | rhapsody*)
11502 dynamic_linker="$host_os dyld"
11503 version_type=darwin
11504 need_lib_prefix=no
11505 need_version=no
11506 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11507 soname_spec='${libname}${release}${major}$shared_ext'
11508 shlibpath_overrides_runpath=yes
11509 shlibpath_var=DYLD_LIBRARY_PATH
11510 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9c60689e 11511
a243b558
JF
11512 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11513 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11514 ;;
9c60689e 11515
a243b558
JF
11516dgux*)
11517 version_type=linux # correct to gnu/linux during the next big refactor
11518 need_lib_prefix=no
11519 need_version=no
11520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11521 soname_spec='${libname}${release}${shared_ext}$major'
11522 shlibpath_var=LD_LIBRARY_PATH
11523 ;;
11524
11525freebsd* | dragonfly*)
11526 # DragonFly does not have aout. When/if they implement a new
11527 # versioning mechanism, adjust this.
11528 if test -x /usr/bin/objformat; then
11529 objformat=`/usr/bin/objformat`
11530 else
11531 case $host_os in
11532 freebsd[23].*) objformat=aout ;;
11533 *) objformat=elf ;;
11534 esac
11535 fi
11536 version_type=freebsd-$objformat
11537 case $version_type in
11538 freebsd-elf*)
11539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11540 need_version=no
11541 need_lib_prefix=no
11542 ;;
11543 freebsd-*)
11544 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11545 need_version=yes
11546 ;;
11547 esac
11548 shlibpath_var=LD_LIBRARY_PATH
11549 case $host_os in
11550 freebsd2.*)
11551 shlibpath_overrides_runpath=yes
11552 ;;
11553 freebsd3.[01]* | freebsdelf3.[01]*)
11554 shlibpath_overrides_runpath=yes
11555 hardcode_into_libs=yes
11556 ;;
11557 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11558 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11559 shlibpath_overrides_runpath=no
11560 hardcode_into_libs=yes
11561 ;;
11562 *) # from 4.6 on, and DragonFly
11563 shlibpath_overrides_runpath=yes
11564 hardcode_into_libs=yes
11565 ;;
11566 esac
11567 ;;
9c60689e 11568
a243b558
JF
11569gnu*)
11570 version_type=linux # correct to gnu/linux during the next big refactor
11571 need_lib_prefix=no
11572 need_version=no
11573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11574 soname_spec='${libname}${release}${shared_ext}$major'
11575 shlibpath_var=LD_LIBRARY_PATH
11576 shlibpath_overrides_runpath=no
11577 hardcode_into_libs=yes
11578 ;;
9c60689e 11579
a243b558
JF
11580haiku*)
11581 version_type=linux # correct to gnu/linux during the next big refactor
11582 need_lib_prefix=no
11583 need_version=no
11584 dynamic_linker="$host_os runtime_loader"
11585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11586 soname_spec='${libname}${release}${shared_ext}$major'
11587 shlibpath_var=LIBRARY_PATH
11588 shlibpath_overrides_runpath=yes
11589 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11590 hardcode_into_libs=yes
11591 ;;
9c60689e 11592
a243b558
JF
11593hpux9* | hpux10* | hpux11*)
11594 # Give a soname corresponding to the major version so that dld.sl refuses to
11595 # link against other versions.
11596 version_type=sunos
11597 need_lib_prefix=no
11598 need_version=no
11599 case $host_cpu in
11600 ia64*)
11601 shrext_cmds='.so'
11602 hardcode_into_libs=yes
11603 dynamic_linker="$host_os dld.so"
11604 shlibpath_var=LD_LIBRARY_PATH
11605 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11607 soname_spec='${libname}${release}${shared_ext}$major'
11608 if test "X$HPUX_IA64_MODE" = X32; then
11609 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11610 else
11611 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11612 fi
11613 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11614 ;;
11615 hppa*64*)
11616 shrext_cmds='.sl'
11617 hardcode_into_libs=yes
11618 dynamic_linker="$host_os dld.sl"
11619 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11620 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11622 soname_spec='${libname}${release}${shared_ext}$major'
11623 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11624 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11625 ;;
11626 *)
11627 shrext_cmds='.sl'
11628 dynamic_linker="$host_os dld.sl"
11629 shlibpath_var=SHLIB_PATH
11630 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11632 soname_spec='${libname}${release}${shared_ext}$major'
9c60689e
DWT
11633 ;;
11634 esac
a243b558
JF
11635 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11636 postinstall_cmds='chmod 555 $lib'
11637 # or fails outright, so override atomically:
11638 install_override_mode=555
11639 ;;
9c60689e 11640
a243b558
JF
11641interix[3-9]*)
11642 version_type=linux # correct to gnu/linux during the next big refactor
11643 need_lib_prefix=no
11644 need_version=no
11645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11646 soname_spec='${libname}${release}${shared_ext}$major'
11647 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11648 shlibpath_var=LD_LIBRARY_PATH
11649 shlibpath_overrides_runpath=no
11650 hardcode_into_libs=yes
11651 ;;
9c60689e 11652
a243b558
JF
11653irix5* | irix6* | nonstopux*)
11654 case $host_os in
11655 nonstopux*) version_type=nonstopux ;;
11656 *)
11657 if test "$lt_cv_prog_gnu_ld" = yes; then
11658 version_type=linux # correct to gnu/linux during the next big refactor
11659 else
11660 version_type=irix
11661 fi ;;
11662 esac
11663 need_lib_prefix=no
11664 need_version=no
11665 soname_spec='${libname}${release}${shared_ext}$major'
11666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11667 case $host_os in
11668 irix5* | nonstopux*)
11669 libsuff= shlibsuff=
11670 ;;
11671 *)
11672 case $LD in # libtool.m4 will add one of these switches to LD
11673 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11674 libsuff= shlibsuff= libmagic=32-bit;;
11675 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11676 libsuff=32 shlibsuff=N32 libmagic=N32;;
11677 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11678 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11679 *) libsuff= shlibsuff= libmagic=never-match;;
11680 esac
11681 ;;
11682 esac
11683 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11684 shlibpath_overrides_runpath=no
11685 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11686 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11687 hardcode_into_libs=yes
11688 ;;
9c60689e 11689
a243b558
JF
11690# No shared lib support for Linux oldld, aout, or coff.
11691linux*oldld* | linux*aout* | linux*coff*)
11692 dynamic_linker=no
11693 ;;
9c60689e 11694
a243b558
JF
11695# This must be glibc/ELF.
11696linux* | k*bsd*-gnu | kopensolaris*-gnu)
11697 version_type=linux # correct to gnu/linux during the next big refactor
11698 need_lib_prefix=no
11699 need_version=no
11700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11701 soname_spec='${libname}${release}${shared_ext}$major'
11702 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11703 shlibpath_var=LD_LIBRARY_PATH
11704 shlibpath_overrides_runpath=no
9c60689e 11705
a243b558
JF
11706 # Some binutils ld are patched to set DT_RUNPATH
11707 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
9c60689e
DWT
11708 $as_echo_n "(cached) " >&6
11709else
a243b558
JF
11710 lt_cv_shlibpath_overrides_runpath=no
11711 save_LDFLAGS=$LDFLAGS
11712 save_libdir=$libdir
11713 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11714 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11716/* end confdefs.h. */
ee134472 11717
a243b558
JF
11718int
11719main ()
9c60689e 11720{
9c60689e 11721
a243b558
JF
11722 ;
11723 return 0;
11724}
11725_ACEOF
11726if ac_fn_c_try_link "$LINENO"; then :
11727 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11728 lt_cv_shlibpath_overrides_runpath=yes
11729fi
11730fi
11731rm -f core conftest.err conftest.$ac_objext \
11732 conftest$ac_exeext conftest.$ac_ext
11733 LDFLAGS=$save_LDFLAGS
11734 libdir=$save_libdir
9c60689e 11735
a243b558 11736fi
9c60689e 11737
a243b558 11738 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
9c60689e 11739
a243b558
JF
11740 # This implies no fast_install, which is unacceptable.
11741 # Some rework will be needed to allow for fast_install
11742 # before this can be enabled.
11743 hardcode_into_libs=yes
9c60689e 11744
a243b558
JF
11745 # Append ld.so.conf contents to the search path
11746 if test -f /etc/ld.so.conf; then
11747 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' ' '`
11748 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11749 fi
ee134472 11750
a243b558
JF
11751 # We used to test for /lib/ld.so.1 and disable shared libraries on
11752 # powerpc, because MkLinux only supported shared libraries with the
11753 # GNU dynamic linker. Since this was broken with cross compilers,
11754 # most powerpc-linux boxes support dynamic linking these days and
11755 # people can always --disable-shared, the test was removed, and we
11756 # assume the GNU/Linux dynamic linker is in use.
11757 dynamic_linker='GNU/Linux ld.so'
11758 ;;
9c60689e 11759
a243b558
JF
11760netbsd*)
11761 version_type=sunos
11762 need_lib_prefix=no
11763 need_version=no
11764 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11766 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11767 dynamic_linker='NetBSD (a.out) ld.so'
9c60689e 11768 else
a243b558
JF
11769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11770 soname_spec='${libname}${release}${shared_ext}$major'
11771 dynamic_linker='NetBSD ld.elf_so'
9c60689e 11772 fi
a243b558
JF
11773 shlibpath_var=LD_LIBRARY_PATH
11774 shlibpath_overrides_runpath=yes
11775 hardcode_into_libs=yes
11776 ;;
9c60689e 11777
a243b558
JF
11778newsos6)
11779 version_type=linux # correct to gnu/linux during the next big refactor
11780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11781 shlibpath_var=LD_LIBRARY_PATH
11782 shlibpath_overrides_runpath=yes
11783 ;;
9c60689e 11784
a243b558
JF
11785*nto* | *qnx*)
11786 version_type=qnx
11787 need_lib_prefix=no
11788 need_version=no
11789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11790 soname_spec='${libname}${release}${shared_ext}$major'
11791 shlibpath_var=LD_LIBRARY_PATH
11792 shlibpath_overrides_runpath=no
11793 hardcode_into_libs=yes
11794 dynamic_linker='ldqnx.so'
11795 ;;
9c60689e 11796
a243b558
JF
11797openbsd*)
11798 version_type=sunos
11799 sys_lib_dlsearch_path_spec="/usr/lib"
11800 need_lib_prefix=no
11801 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11802 case $host_os in
11803 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11804 *) need_version=no ;;
9c60689e 11805 esac
a243b558
JF
11806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11807 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11808 shlibpath_var=LD_LIBRARY_PATH
11809 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11810 case $host_os in
11811 openbsd2.[89] | openbsd2.[89].*)
11812 shlibpath_overrides_runpath=no
11813 ;;
11814 *)
11815 shlibpath_overrides_runpath=yes
11816 ;;
11817 esac
11818 else
11819 shlibpath_overrides_runpath=yes
11820 fi
11821 ;;
9c60689e 11822
a243b558
JF
11823os2*)
11824 libname_spec='$name'
11825 shrext_cmds=".dll"
11826 need_lib_prefix=no
11827 library_names_spec='$libname${shared_ext} $libname.a'
11828 dynamic_linker='OS/2 ld.exe'
11829 shlibpath_var=LIBPATH
11830 ;;
9c60689e 11831
a243b558
JF
11832osf3* | osf4* | osf5*)
11833 version_type=osf
11834 need_lib_prefix=no
11835 need_version=no
11836 soname_spec='${libname}${release}${shared_ext}$major'
11837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11838 shlibpath_var=LD_LIBRARY_PATH
11839 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11840 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11841 ;;
11842
11843rdos*)
11844 dynamic_linker=no
11845 ;;
11846
11847solaris*)
11848 version_type=linux # correct to gnu/linux during the next big refactor
11849 need_lib_prefix=no
11850 need_version=no
11851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11852 soname_spec='${libname}${release}${shared_ext}$major'
11853 shlibpath_var=LD_LIBRARY_PATH
11854 shlibpath_overrides_runpath=yes
11855 hardcode_into_libs=yes
11856 # ldd complains unless libraries are executable
11857 postinstall_cmds='chmod +x $lib'
11858 ;;
9c60689e 11859
a243b558
JF
11860sunos4*)
11861 version_type=sunos
11862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11863 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11864 shlibpath_var=LD_LIBRARY_PATH
11865 shlibpath_overrides_runpath=yes
11866 if test "$with_gnu_ld" = yes; then
11867 need_lib_prefix=no
11868 fi
11869 need_version=yes
11870 ;;
9c60689e 11871
a243b558
JF
11872sysv4 | sysv4.3*)
11873 version_type=linux # correct to gnu/linux during the next big refactor
11874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11875 soname_spec='${libname}${release}${shared_ext}$major'
11876 shlibpath_var=LD_LIBRARY_PATH
11877 case $host_vendor in
11878 sni)
11879 shlibpath_overrides_runpath=no
11880 need_lib_prefix=no
11881 runpath_var=LD_RUN_PATH
11882 ;;
11883 siemens)
11884 need_lib_prefix=no
11885 ;;
11886 motorola)
11887 need_lib_prefix=no
11888 need_version=no
11889 shlibpath_overrides_runpath=no
11890 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11891 ;;
11892 esac
11893 ;;
9c60689e 11894
a243b558
JF
11895sysv4*MP*)
11896 if test -d /usr/nec ;then
11897 version_type=linux # correct to gnu/linux during the next big refactor
11898 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11899 soname_spec='$libname${shared_ext}.$major'
11900 shlibpath_var=LD_LIBRARY_PATH
11901 fi
11902 ;;
9c60689e 11903
a243b558
JF
11904sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11905 version_type=freebsd-elf
11906 need_lib_prefix=no
11907 need_version=no
11908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11909 soname_spec='${libname}${release}${shared_ext}$major'
11910 shlibpath_var=LD_LIBRARY_PATH
11911 shlibpath_overrides_runpath=yes
11912 hardcode_into_libs=yes
11913 if test "$with_gnu_ld" = yes; then
11914 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11915 else
11916 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11917 case $host_os in
11918 sco3.2v5*)
11919 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11920 ;;
11921 esac
11922 fi
11923 sys_lib_dlsearch_path_spec='/usr/lib'
11924 ;;
9c60689e 11925
a243b558
JF
11926tpf*)
11927 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11928 version_type=linux # correct to gnu/linux during the next big refactor
11929 need_lib_prefix=no
11930 need_version=no
11931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11932 shlibpath_var=LD_LIBRARY_PATH
11933 shlibpath_overrides_runpath=no
11934 hardcode_into_libs=yes
11935 ;;
9c60689e 11936
a243b558
JF
11937uts4*)
11938 version_type=linux # correct to gnu/linux during the next big refactor
11939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11940 soname_spec='${libname}${release}${shared_ext}$major'
11941 shlibpath_var=LD_LIBRARY_PATH
11942 ;;
9c60689e 11943
a243b558
JF
11944*)
11945 dynamic_linker=no
11946 ;;
11947esac
11948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11949$as_echo "$dynamic_linker" >&6; }
11950test "$dynamic_linker" = no && can_build_shared=no
9c60689e 11951
a243b558
JF
11952variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11953if test "$GCC" = yes; then
11954 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11955fi
9c60689e 11956
a243b558
JF
11957if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11958 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11959fi
11960if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11961 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11962fi
9c60689e
DWT
11963
11964
11965
11966
11967
11968
11969
11970
9c60689e
DWT
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
9c60689e 11983
9c60689e 11984
9c60689e 11985
9c60689e 11986
9c60689e
DWT
11987
11988
11989
11990
9c60689e 11991
9c60689e
DWT
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
53ba6704
JF
12005
12006
9c60689e
DWT
12007
12008
12009
12010
9c60689e
DWT
12011
12012
3fd51f51 12013
66170b30
JF
12014
12015
12016
3fd51f51 12017
12833ad8
JF
12018
12019
12020
12021
3fd51f51 12022
3fd51f51
DWT
12023
12024
3fd51f51 12025
3fd51f51 12026
3fd51f51 12027
66170b30 12028
632b71ea 12029
632b71ea
DWT
12030
12031
790e5246 12032
66170b30 12033
9c60689e 12034
9c60689e
DWT
12035
12036
9c60689e 12037
9c60689e
DWT
12038
12039
66170b30 12040
66170b30 12041
9c60689e 12042
e9c9a47c
DWT
12043
12044
12045
66170b30
JF
12046
12047
66170b30 12048
e9c9a47c 12049
a243b558
JF
12050
12051
12052
12053
12054
12055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12056$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12057hardcode_action=
12058if test -n "$hardcode_libdir_flag_spec" ||
12059 test -n "$runpath_var" ||
12060 test "X$hardcode_automatic" = "Xyes" ; then
12061
12062 # We can hardcode non-existent directories.
12063 if test "$hardcode_direct" != no &&
12064 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12065 # have to relink, otherwise we might link with an installed library
12066 # when we should be linking with a yet-to-be-installed one
12067 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12068 test "$hardcode_minus_L" != no; then
12069 # Linking always hardcodes the temporary library directory.
12070 hardcode_action=relink
12071 else
12072 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12073 hardcode_action=immediate
9c60689e 12074 fi
e9c9a47c 12075else
a243b558
JF
12076 # We cannot hardcode anything, or else we can only hardcode existing
12077 # directories.
12078 hardcode_action=unsupported
12079fi
12080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12081$as_echo "$hardcode_action" >&6; }
12082
12083if test "$hardcode_action" = relink ||
12084 test "$inherit_rpath" = yes; then
12085 # Fast installation is not supported
12086 enable_fast_install=no
12087elif test "$shlibpath_overrides_runpath" = yes ||
12088 test "$enable_shared" = no; then
12089 # Fast installation is not necessary
12090 enable_fast_install=needless
9c60689e 12091fi
9c60689e 12092
9c60689e 12093
66170b30 12094
66170b30 12095
9c60689e 12096
a243b558
JF
12097
12098 if test "x$enable_dlopen" != xyes; then
12099 enable_dlopen=unknown
12100 enable_dlopen_self=unknown
12101 enable_dlopen_self_static=unknown
66170b30 12102else
a243b558
JF
12103 lt_cv_dlopen=no
12104 lt_cv_dlopen_libs=
66170b30 12105
a243b558
JF
12106 case $host_os in
12107 beos*)
12108 lt_cv_dlopen="load_add_on"
12109 lt_cv_dlopen_libs=
12110 lt_cv_dlopen_self=yes
12111 ;;
66170b30 12112
a243b558
JF
12113 mingw* | pw32* | cegcc*)
12114 lt_cv_dlopen="LoadLibrary"
12115 lt_cv_dlopen_libs=
12116 ;;
66170b30 12117
a243b558
JF
12118 cygwin*)
12119 lt_cv_dlopen="dlopen"
12120 lt_cv_dlopen_libs=
12121 ;;
66170b30 12122
a243b558
JF
12123 darwin*)
12124 # if libdl is installed we need to link against it
12125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12126$as_echo_n "checking for dlopen in -ldl... " >&6; }
12127if ${ac_cv_lib_dl_dlopen+:} false; then :
12128 $as_echo_n "(cached) " >&6
12129else
12130 ac_check_lib_save_LIBS=$LIBS
12131LIBS="-ldl $LIBS"
12132cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12133/* end confdefs.h. */
66170b30 12134
a243b558
JF
12135/* Override any GCC internal prototype to avoid an error.
12136 Use char because int might match the return type of a GCC
12137 builtin and then its argument prototype would still apply. */
12138#ifdef __cplusplus
12139extern "C"
12140#endif
12141char dlopen ();
12142int
12143main ()
12144{
12145return dlopen ();
12146 ;
12147 return 0;
12148}
12149_ACEOF
12150if ac_fn_c_try_link "$LINENO"; then :
12151 ac_cv_lib_dl_dlopen=yes
12152else
12153 ac_cv_lib_dl_dlopen=no
66170b30 12154fi
a243b558
JF
12155rm -f core conftest.err conftest.$ac_objext \
12156 conftest$ac_exeext conftest.$ac_ext
12157LIBS=$ac_check_lib_save_LIBS
66170b30 12158fi
a243b558
JF
12159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12160$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12161if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12162 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12163else
66170b30 12164
a243b558
JF
12165 lt_cv_dlopen="dyld"
12166 lt_cv_dlopen_libs=
12167 lt_cv_dlopen_self=yes
66170b30 12168
a243b558 12169fi
9c60689e 12170
a243b558 12171 ;;
9c60689e 12172
a243b558
JF
12173 *)
12174 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12175if test "x$ac_cv_func_shl_load" = xyes; then :
12176 lt_cv_dlopen="shl_load"
12177else
12178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12179$as_echo_n "checking for shl_load in -ldld... " >&6; }
12180if ${ac_cv_lib_dld_shl_load+:} false; then :
12181 $as_echo_n "(cached) " >&6
12182else
12183 ac_check_lib_save_LIBS=$LIBS
12184LIBS="-ldld $LIBS"
12185cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12186/* end confdefs.h. */
66170b30 12187
a243b558
JF
12188/* Override any GCC internal prototype to avoid an error.
12189 Use char because int might match the return type of a GCC
12190 builtin and then its argument prototype would still apply. */
12191#ifdef __cplusplus
12192extern "C"
12193#endif
12194char shl_load ();
12195int
12196main ()
12197{
12198return shl_load ();
12199 ;
12200 return 0;
12201}
12202_ACEOF
12203if ac_fn_c_try_link "$LINENO"; then :
12204 ac_cv_lib_dld_shl_load=yes
66170b30 12205else
a243b558
JF
12206 ac_cv_lib_dld_shl_load=no
12207fi
12208rm -f core conftest.err conftest.$ac_objext \
12209 conftest$ac_exeext conftest.$ac_ext
12210LIBS=$ac_check_lib_save_LIBS
66170b30 12211fi
a243b558
JF
12212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12213$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12214if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12215 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12216else
12217 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12218if test "x$ac_cv_func_dlopen" = xyes; then :
12219 lt_cv_dlopen="dlopen"
12220else
12221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12222$as_echo_n "checking for dlopen in -ldl... " >&6; }
12223if ${ac_cv_lib_dl_dlopen+:} false; then :
12224 $as_echo_n "(cached) " >&6
12225else
12226 ac_check_lib_save_LIBS=$LIBS
12227LIBS="-ldl $LIBS"
12228cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12229/* end confdefs.h. */
e9c9a47c 12230
a243b558
JF
12231/* Override any GCC internal prototype to avoid an error.
12232 Use char because int might match the return type of a GCC
12233 builtin and then its argument prototype would still apply. */
12234#ifdef __cplusplus
12235extern "C"
12236#endif
12237char dlopen ();
12238int
12239main ()
12240{
12241return dlopen ();
12242 ;
12243 return 0;
12244}
12245_ACEOF
12246if ac_fn_c_try_link "$LINENO"; then :
12247 ac_cv_lib_dl_dlopen=yes
12248else
12249 ac_cv_lib_dl_dlopen=no
12250fi
12251rm -f core conftest.err conftest.$ac_objext \
12252 conftest$ac_exeext conftest.$ac_ext
12253LIBS=$ac_check_lib_save_LIBS
12254fi
12255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12256$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12257if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12258 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12259else
12260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12261$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12262if ${ac_cv_lib_svld_dlopen+:} false; then :
12263 $as_echo_n "(cached) " >&6
12264else
12265 ac_check_lib_save_LIBS=$LIBS
12266LIBS="-lsvld $LIBS"
12267cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12268/* end confdefs.h. */
12269
12270/* Override any GCC internal prototype to avoid an error.
12271 Use char because int might match the return type of a GCC
12272 builtin and then its argument prototype would still apply. */
12273#ifdef __cplusplus
12274extern "C"
12275#endif
12276char dlopen ();
12277int
12278main ()
12279{
12280return dlopen ();
12281 ;
12282 return 0;
12283}
12284_ACEOF
12285if ac_fn_c_try_link "$LINENO"; then :
12286 ac_cv_lib_svld_dlopen=yes
12287else
12288 ac_cv_lib_svld_dlopen=no
12289fi
12290rm -f core conftest.err conftest.$ac_objext \
12291 conftest$ac_exeext conftest.$ac_ext
12292LIBS=$ac_check_lib_save_LIBS
12293fi
12294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12295$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12296if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12297 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12298else
12299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12300$as_echo_n "checking for dld_link in -ldld... " >&6; }
12301if ${ac_cv_lib_dld_dld_link+:} false; then :
12302 $as_echo_n "(cached) " >&6
12303else
12304 ac_check_lib_save_LIBS=$LIBS
12305LIBS="-ldld $LIBS"
12306cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12307/* end confdefs.h. */
12308
12309/* Override any GCC internal prototype to avoid an error.
12310 Use char because int might match the return type of a GCC
12311 builtin and then its argument prototype would still apply. */
12312#ifdef __cplusplus
12313extern "C"
12314#endif
12315char dld_link ();
12316int
12317main ()
12318{
12319return dld_link ();
12320 ;
12321 return 0;
12322}
12323_ACEOF
12324if ac_fn_c_try_link "$LINENO"; then :
12325 ac_cv_lib_dld_dld_link=yes
9c60689e 12326else
a243b558
JF
12327 ac_cv_lib_dld_dld_link=no
12328fi
12329rm -f core conftest.err conftest.$ac_objext \
12330 conftest$ac_exeext conftest.$ac_ext
12331LIBS=$ac_check_lib_save_LIBS
12332fi
12333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12334$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12335if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12336 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
9c60689e
DWT
12337fi
12338
12339
a243b558 12340fi
66170b30 12341
66170b30 12342
a243b558 12343fi
66170b30 12344
66170b30
JF
12345
12346fi
e9c9a47c 12347
66170b30 12348
a243b558 12349fi
66170b30 12350
66170b30 12351
66170b30 12352fi
e9c9a47c 12353
a243b558
JF
12354 ;;
12355 esac
9c60689e 12356
a243b558
JF
12357 if test "x$lt_cv_dlopen" != xno; then
12358 enable_dlopen=yes
12359 else
12360 enable_dlopen=no
12361 fi
9c60689e 12362
a243b558
JF
12363 case $lt_cv_dlopen in
12364 dlopen)
12365 save_CPPFLAGS="$CPPFLAGS"
12366 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
66170b30 12367
a243b558
JF
12368 save_LDFLAGS="$LDFLAGS"
12369 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
66170b30 12370
a243b558
JF
12371 save_LIBS="$LIBS"
12372 LIBS="$lt_cv_dlopen_libs $LIBS"
3fd51f51 12373
a243b558
JF
12374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12375$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12376if ${lt_cv_dlopen_self+:} false; then :
12377 $as_echo_n "(cached) " >&6
e9c9a47c 12378else
a243b558
JF
12379 if test "$cross_compiling" = yes; then :
12380 lt_cv_dlopen_self=cross
12381else
12382 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12383 lt_status=$lt_dlunknown
12384 cat > conftest.$ac_ext <<_LT_EOF
12385#line $LINENO "configure"
12386#include "confdefs.h"
e9c9a47c 12387
a243b558
JF
12388#if HAVE_DLFCN_H
12389#include <dlfcn.h>
12390#endif
e9c9a47c 12391
a243b558 12392#include <stdio.h>
66170b30 12393
a243b558
JF
12394#ifdef RTLD_GLOBAL
12395# define LT_DLGLOBAL RTLD_GLOBAL
12396#else
12397# ifdef DL_GLOBAL
12398# define LT_DLGLOBAL DL_GLOBAL
12399# else
12400# define LT_DLGLOBAL 0
12401# endif
12402#endif
66170b30 12403
a243b558
JF
12404/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12405 find out it does not work in some platform. */
12406#ifndef LT_DLLAZY_OR_NOW
12407# ifdef RTLD_LAZY
12408# define LT_DLLAZY_OR_NOW RTLD_LAZY
12409# else
12410# ifdef DL_LAZY
12411# define LT_DLLAZY_OR_NOW DL_LAZY
12412# else
12413# ifdef RTLD_NOW
12414# define LT_DLLAZY_OR_NOW RTLD_NOW
12415# else
12416# ifdef DL_NOW
12417# define LT_DLLAZY_OR_NOW DL_NOW
12418# else
12419# define LT_DLLAZY_OR_NOW 0
12420# endif
12421# endif
12422# endif
12423# endif
12424#endif
e9c9a47c 12425
a243b558
JF
12426/* When -fvisbility=hidden is used, assume the code has been annotated
12427 correspondingly for the symbols needed. */
12428#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12429int fnord () __attribute__((visibility("default")));
12430#endif
e9c9a47c 12431
a243b558
JF
12432int fnord () { return 42; }
12433int main ()
12434{
12435 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12436 int status = $lt_dlunknown;
e9c9a47c 12437
a243b558
JF
12438 if (self)
12439 {
12440 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12441 else
12442 {
12443 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12444 else puts (dlerror ());
12445 }
12446 /* dlclose (self); */
12447 }
12448 else
12449 puts (dlerror ());
e9c9a47c 12450
a243b558
JF
12451 return status;
12452}
12453_LT_EOF
12454 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12455 (eval $ac_link) 2>&5
12456 ac_status=$?
12457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12458 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12459 (./conftest; exit; ) >&5 2>/dev/null
12460 lt_status=$?
12461 case x$lt_status in
12462 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12463 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12464 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12465 esac
12466 else :
12467 # compilation failed
12468 lt_cv_dlopen_self=no
12469 fi
12470fi
12471rm -fr conftest*
e9c9a47c 12472
e9c9a47c 12473
e9c9a47c 12474fi
a243b558
JF
12475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12476$as_echo "$lt_cv_dlopen_self" >&6; }
e9c9a47c 12477
a243b558
JF
12478 if test "x$lt_cv_dlopen_self" = xyes; then
12479 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12481$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12482if ${lt_cv_dlopen_self_static+:} false; then :
12483 $as_echo_n "(cached) " >&6
e9c9a47c 12484else
a243b558
JF
12485 if test "$cross_compiling" = yes; then :
12486 lt_cv_dlopen_self_static=cross
12487else
12488 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12489 lt_status=$lt_dlunknown
12490 cat > conftest.$ac_ext <<_LT_EOF
12491#line $LINENO "configure"
12492#include "confdefs.h"
12493
12494#if HAVE_DLFCN_H
12495#include <dlfcn.h>
12496#endif
12497
12498#include <stdio.h>
e9c9a47c 12499
a243b558
JF
12500#ifdef RTLD_GLOBAL
12501# define LT_DLGLOBAL RTLD_GLOBAL
12502#else
12503# ifdef DL_GLOBAL
12504# define LT_DLGLOBAL DL_GLOBAL
12505# else
12506# define LT_DLGLOBAL 0
12507# endif
12508#endif
e9c9a47c 12509
a243b558
JF
12510/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12511 find out it does not work in some platform. */
12512#ifndef LT_DLLAZY_OR_NOW
12513# ifdef RTLD_LAZY
12514# define LT_DLLAZY_OR_NOW RTLD_LAZY
12515# else
12516# ifdef DL_LAZY
12517# define LT_DLLAZY_OR_NOW DL_LAZY
12518# else
12519# ifdef RTLD_NOW
12520# define LT_DLLAZY_OR_NOW RTLD_NOW
12521# else
12522# ifdef DL_NOW
12523# define LT_DLLAZY_OR_NOW DL_NOW
12524# else
12525# define LT_DLLAZY_OR_NOW 0
12526# endif
12527# endif
12528# endif
12529# endif
12530#endif
66170b30 12531
a243b558
JF
12532/* When -fvisbility=hidden is used, assume the code has been annotated
12533 correspondingly for the symbols needed. */
12534#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12535int fnord () __attribute__((visibility("default")));
12536#endif
e9c9a47c 12537
a243b558
JF
12538int fnord () { return 42; }
12539int main ()
12540{
12541 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12542 int status = $lt_dlunknown;
e9c9a47c 12543
a243b558
JF
12544 if (self)
12545 {
12546 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12547 else
12548 {
12549 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12550 else puts (dlerror ());
12551 }
12552 /* dlclose (self); */
12553 }
12554 else
12555 puts (dlerror ());
e9c9a47c 12556
a243b558
JF
12557 return status;
12558}
12559_LT_EOF
12560 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12561 (eval $ac_link) 2>&5
12562 ac_status=$?
12563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12564 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12565 (./conftest; exit; ) >&5 2>/dev/null
12566 lt_status=$?
12567 case x$lt_status in
12568 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12569 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12570 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12571 esac
12572 else :
12573 # compilation failed
12574 lt_cv_dlopen_self_static=no
12575 fi
12576fi
12577rm -fr conftest*
e9c9a47c 12578
b65019fe 12579
a243b558
JF
12580fi
12581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12582$as_echo "$lt_cv_dlopen_self_static" >&6; }
12583 fi
66170b30 12584
a243b558
JF
12585 CPPFLAGS="$save_CPPFLAGS"
12586 LDFLAGS="$save_LDFLAGS"
12587 LIBS="$save_LIBS"
12588 ;;
12589 esac
66170b30 12590
a243b558
JF
12591 case $lt_cv_dlopen_self in
12592 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12593 *) enable_dlopen_self=unknown ;;
12594 esac
12595
12596 case $lt_cv_dlopen_self_static in
12597 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12598 *) enable_dlopen_self_static=unknown ;;
12599 esac
b65019fe
DWT
12600fi
12601
12602
66170b30 12603
b65019fe 12604
e9c9a47c 12605
e9c9a47c
DWT
12606
12607
e9c9a47c 12608
e9c9a47c
DWT
12609
12610
e9c9a47c 12611
e9c9a47c 12612
3530897b 12613
47aaa820 12614
47aaa820 12615
a243b558
JF
12616
12617
12618striplib=
12619old_striplib=
12620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12621$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12622if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12623 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12624 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12626$as_echo "yes" >&6; }
47aaa820 12627else
a243b558
JF
12628# FIXME - insert some real tests, host_os isn't really good enough
12629 case $host_os in
12630 darwin*)
12631 if test -n "$STRIP" ; then
12632 striplib="$STRIP -x"
12633 old_striplib="$STRIP -S"
12634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12635$as_echo "yes" >&6; }
12636 else
12637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12638$as_echo "no" >&6; }
12639 fi
12640 ;;
12641 *)
12642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12643$as_echo "no" >&6; }
12644 ;;
12645 esac
3530897b 12646fi
47aaa820 12647
3530897b
DWT
12648
12649
9c60689e 12650
9c60689e 12651
9c60689e 12652
9c60689e 12653
9c60689e 12654
66170b30 12655
66170b30 12656
66170b30 12657
66170b30 12658
a243b558
JF
12659 # Report which library types will actually be built
12660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12661$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12663$as_echo "$can_build_shared" >&6; }
66170b30 12664
a243b558
JF
12665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12666$as_echo_n "checking whether to build shared libraries... " >&6; }
12667 test "$can_build_shared" = "no" && enable_shared=no
66170b30 12668
a243b558
JF
12669 # On AIX, shared libraries and static libraries use the same namespace, and
12670 # are all built from PIC.
12671 case $host_os in
12672 aix3*)
12673 test "$enable_shared" = yes && enable_static=no
12674 if test -n "$RANLIB"; then
12675 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12676 postinstall_cmds='$RANLIB $lib'
12677 fi
12678 ;;
66170b30 12679
a243b558
JF
12680 aix[4-9]*)
12681 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12682 test "$enable_shared" = yes && enable_static=no
12683 fi
12684 ;;
12685 esac
12686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12687$as_echo "$enable_shared" >&6; }
66170b30 12688
a243b558
JF
12689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12690$as_echo_n "checking whether to build static libraries... " >&6; }
12691 # Make sure either enable_shared or enable_static is yes.
12692 test "$enable_shared" = yes || enable_static=yes
12693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12694$as_echo "$enable_static" >&6; }
66170b30 12695
9c60689e 12696
e9c9a47c 12697
9c60689e 12698
a243b558
JF
12699fi
12700ac_ext=c
12701ac_cpp='$CPP $CPPFLAGS'
12702ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12703ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12704ac_compiler_gnu=$ac_cv_c_compiler_gnu
12705
12706CC="$lt_save_CC"
e9c9a47c 12707
ee134472 12708 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
e9c9a47c
DWT
12709 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12710 (test "X$CXX" != "Xg++"))) ; then
12711 ac_ext=cpp
12712ac_cpp='$CXXCPP $CPPFLAGS'
12713ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12714ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12715ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12717$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12718if test -z "$CXXCPP"; then
ee134472 12719 if ${ac_cv_prog_CXXCPP+:} false; then :
e9c9a47c
DWT
12720 $as_echo_n "(cached) " >&6
12721else
12722 # Double quotes because CXXCPP needs to be expanded
12723 for CXXCPP in "$CXX -E" "/lib/cpp"
12724 do
12725 ac_preproc_ok=false
12726for ac_cxx_preproc_warn_flag in '' yes
12727do
12728 # Use a header file that comes with gcc, so configuring glibc
12729 # with a fresh cross-compiler works.
12730 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12731 # <limits.h> exists even on freestanding compilers.
12732 # On the NeXT, cc -E runs the code through the compiler's parser,
12733 # not just through cpp. "Syntax error" is here to catch this case.
12734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12735/* end confdefs.h. */
12736#ifdef __STDC__
12737# include <limits.h>
12738#else
12739# include <assert.h>
12740#endif
12741 Syntax error
12742_ACEOF
12743if ac_fn_cxx_try_cpp "$LINENO"; then :
12744
12745else
12746 # Broken: fails on valid input.
12747continue
12748fi
12833ad8 12749rm -f conftest.err conftest.i conftest.$ac_ext
e9c9a47c
DWT
12750
12751 # OK, works on sane cases. Now check whether nonexistent headers
12752 # can be detected and how.
12753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12754/* end confdefs.h. */
12755#include <ac_nonexistent.h>
12756_ACEOF
12757if ac_fn_cxx_try_cpp "$LINENO"; then :
12758 # Broken: success on invalid input.
12759continue
12760else
12761 # Passes both tests.
12762ac_preproc_ok=:
12763break
12764fi
12833ad8 12765rm -f conftest.err conftest.i conftest.$ac_ext
e9c9a47c
DWT
12766
12767done
12768# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12833ad8 12769rm -f conftest.i conftest.err conftest.$ac_ext
e9c9a47c
DWT
12770if $ac_preproc_ok; then :
12771 break
12772fi
12773
12774 done
12775 ac_cv_prog_CXXCPP=$CXXCPP
12776
12777fi
12778 CXXCPP=$ac_cv_prog_CXXCPP
12779else
12780 ac_cv_prog_CXXCPP=$CXXCPP
12781fi
12782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12783$as_echo "$CXXCPP" >&6; }
12784ac_preproc_ok=false
12785for ac_cxx_preproc_warn_flag in '' yes
12786do
12787 # Use a header file that comes with gcc, so configuring glibc
12788 # with a fresh cross-compiler works.
12789 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12790 # <limits.h> exists even on freestanding compilers.
12791 # On the NeXT, cc -E runs the code through the compiler's parser,
12792 # not just through cpp. "Syntax error" is here to catch this case.
12793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12794/* end confdefs.h. */
12795#ifdef __STDC__
12796# include <limits.h>
12797#else
12798# include <assert.h>
12799#endif
12800 Syntax error
12801_ACEOF
12802if ac_fn_cxx_try_cpp "$LINENO"; then :
12803
12804else
12805 # Broken: fails on valid input.
12806continue
12807fi
12833ad8 12808rm -f conftest.err conftest.i conftest.$ac_ext
e9c9a47c
DWT
12809
12810 # OK, works on sane cases. Now check whether nonexistent headers
12811 # can be detected and how.
12812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12813/* end confdefs.h. */
12814#include <ac_nonexistent.h>
12815_ACEOF
12816if ac_fn_cxx_try_cpp "$LINENO"; then :
12817 # Broken: success on invalid input.
12818continue
12819else
12820 # Passes both tests.
12821ac_preproc_ok=:
12822break
12823fi
12833ad8 12824rm -f conftest.err conftest.i conftest.$ac_ext
e9c9a47c
DWT
12825
12826done
12827# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12833ad8 12828rm -f conftest.i conftest.err conftest.$ac_ext
e9c9a47c
DWT
12829if $ac_preproc_ok; then :
12830
12831else
12832 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12833$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
ee134472
JF
12834as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12835See \`config.log' for more details" "$LINENO" 5; }
e9c9a47c
DWT
12836fi
12837
a243b558
JF
12838ac_ext=c
12839ac_cpp='$CPP $CPPFLAGS'
12840ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12841ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12842ac_compiler_gnu=$ac_cv_c_compiler_gnu
66170b30
JF
12843
12844else
e9c9a47c
DWT
12845 _lt_caught_CXX_error=yes
12846fi
12847
9c60689e
DWT
12848ac_ext=cpp
12849ac_cpp='$CXXCPP $CPPFLAGS'
12850ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12851ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12852ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9c60689e 12853
47aaa820
DWT
12854archive_cmds_need_lc_CXX=no
12855allow_undefined_flag_CXX=
12856always_export_symbols_CXX=no
12857archive_expsym_cmds_CXX=
12858compiler_needs_object_CXX=no
12859export_dynamic_flag_spec_CXX=
12860hardcode_direct_CXX=no
12861hardcode_direct_absolute_CXX=no
12862hardcode_libdir_flag_spec_CXX=
47aaa820
DWT
12863hardcode_libdir_separator_CXX=
12864hardcode_minus_L_CXX=no
12865hardcode_shlibpath_var_CXX=unsupported
12866hardcode_automatic_CXX=no
12867inherit_rpath_CXX=no
12868module_cmds_CXX=
12869module_expsym_cmds_CXX=
12870link_all_deplibs_CXX=unknown
12871old_archive_cmds_CXX=$old_archive_cmds
ee134472
JF
12872reload_flag_CXX=$reload_flag
12873reload_cmds_CXX=$reload_cmds
47aaa820
DWT
12874no_undefined_flag_CXX=
12875whole_archive_flag_spec_CXX=
12876enable_shared_with_static_runtimes_CXX=no
9c60689e 12877
47aaa820
DWT
12878# Source file extension for C++ test sources.
12879ac_ext=cpp
9c60689e 12880
47aaa820
DWT
12881# Object file extension for compiled C++ test sources.
12882objext=o
12883objext_CXX=$objext
9c60689e 12884
47aaa820
DWT
12885# No sense in running all these tests if we already determined that
12886# the CXX compiler isn't working. Some variables (like enable_shared)
12887# are currently assumed to apply to all compilers on this platform,
12888# and will be corrupted by setting them based on a non-working compiler.
12889if test "$_lt_caught_CXX_error" != yes; then
12890 # Code to be used in simple compile tests
12891 lt_simple_compile_test_code="int some_variable = 0;"
9c60689e 12892
47aaa820
DWT
12893 # Code to be used in simple link tests
12894 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
9c60689e 12895
47aaa820 12896 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9c60689e 12897
9c60689e 12898
9c60689e 12899
9c60689e 12900
9c60689e 12901
9c60689e 12902
47aaa820
DWT
12903# If no C compiler was specified, use CC.
12904LTCC=${LTCC-"$CC"}
9c60689e 12905
47aaa820
DWT
12906# If no C compiler flags were specified, use CFLAGS.
12907LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9c60689e 12908
47aaa820
DWT
12909# Allow CC to be a program name with arguments.
12910compiler=$CC
9c60689e 12911
9c60689e 12912
47aaa820
DWT
12913 # save warnings/boilerplate of simple test code
12914 ac_outfile=conftest.$ac_objext
12915echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12916eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12917_lt_compiler_boilerplate=`cat conftest.err`
00a96142 12918$RM -r conftest*
9c60689e 12919
47aaa820
DWT
12920 ac_outfile=conftest.$ac_objext
12921echo "$lt_simple_link_test_code" >conftest.$ac_ext
12922eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12923_lt_linker_boilerplate=`cat conftest.err`
12924$RM -r conftest*
9c60689e 12925
9c60689e 12926
47aaa820
DWT
12927 # Allow CC to be a program name with arguments.
12928 lt_save_CC=$CC
ee134472 12929 lt_save_CFLAGS=$CFLAGS
47aaa820
DWT
12930 lt_save_LD=$LD
12931 lt_save_GCC=$GCC
12932 GCC=$GXX
12933 lt_save_with_gnu_ld=$with_gnu_ld
12934 lt_save_path_LD=$lt_cv_path_LD
12935 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12936 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9c60689e 12937 else
47aaa820 12938 $as_unset lt_cv_prog_gnu_ld
9c60689e 12939 fi
47aaa820
DWT
12940 if test -n "${lt_cv_path_LDCXX+set}"; then
12941 lt_cv_path_LD=$lt_cv_path_LDCXX
9c60689e 12942 else
47aaa820 12943 $as_unset lt_cv_path_LD
9c60689e 12944 fi
47aaa820
DWT
12945 test -z "${LDCXX+set}" || LD=$LDCXX
12946 CC=${CXX-"c++"}
ee134472 12947 CFLAGS=$CXXFLAGS
47aaa820
DWT
12948 compiler=$CC
12949 compiler_CXX=$CC
12950 for cc_temp in $compiler""; do
12951 case $cc_temp in
12952 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12953 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12954 \-*) ;;
12955 *) break;;
12956 esac
12957done
ee134472 12958cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9c60689e
DWT
12959
12960
47aaa820
DWT
12961 if test -n "$compiler"; then
12962 # We don't want -fno-exception when compiling C++ code, so set the
12963 # no_builtin_flag separately
12964 if test "$GXX" = yes; then
12965 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12966 else
12967 lt_prog_compiler_no_builtin_flag_CXX=
12968 fi
9c60689e 12969
47aaa820
DWT
12970 if test "$GXX" = yes; then
12971 # Set up default GNU C++ configuration
12972
12973
12974
12975# Check whether --with-gnu-ld was given.
12976if test "${with_gnu_ld+set}" = set; then :
12977 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9c60689e 12978else
47aaa820 12979 with_gnu_ld=no
9c60689e
DWT
12980fi
12981
47aaa820
DWT
12982ac_prog=ld
12983if test "$GCC" = yes; then
12984 # Check if gcc -print-prog-name=ld gives a path.
12985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12986$as_echo_n "checking for ld used by $CC... " >&6; }
12987 case $host in
12988 *-*-mingw*)
12989 # gcc leaves a trailing carriage return which upsets mingw
12990 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12991 *)
12992 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12993 esac
12994 case $ac_prog in
12995 # Accept absolute paths.
12996 [\\/]* | ?:[\\/]*)
12997 re_direlt='/[^/][^/]*/\.\./'
12998 # Canonicalize the pathname of ld
12999 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13000 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13001 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13002 done
13003 test -z "$LD" && LD="$ac_prog"
13004 ;;
13005 "")
13006 # If it fails, then pretend we aren't using GCC.
13007 ac_prog=ld
13008 ;;
13009 *)
13010 # If it is relative, then search for the first ld in PATH.
13011 with_gnu_ld=unknown
13012 ;;
13013 esac
13014elif test "$with_gnu_ld" = yes; then
13015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13016$as_echo_n "checking for GNU ld... " >&6; }
13017else
13018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13019$as_echo_n "checking for non-GNU ld... " >&6; }
9c60689e 13020fi
ee134472 13021if ${lt_cv_path_LD+:} false; then :
9c60689e
DWT
13022 $as_echo_n "(cached) " >&6
13023else
47aaa820
DWT
13024 if test -z "$LD"; then
13025 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13026 for ac_dir in $PATH; do
13027 IFS="$lt_save_ifs"
13028 test -z "$ac_dir" && ac_dir=.
13029 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13030 lt_cv_path_LD="$ac_dir/$ac_prog"
13031 # Check to see if the program is GNU ld. I'd rather use --version,
13032 # but apparently some variants of GNU ld only accept -v.
13033 # Break only if it was the GNU/non-GNU ld that we prefer.
13034 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13035 *GNU* | *'with BFD'*)
13036 test "$with_gnu_ld" != no && break
13037 ;;
13038 *)
13039 test "$with_gnu_ld" != yes && break
13040 ;;
13041 esac
13042 fi
9c60689e 13043 done
47aaa820
DWT
13044 IFS="$lt_save_ifs"
13045else
13046 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9c60689e
DWT
13047fi
13048fi
47aaa820
DWT
13049
13050LD="$lt_cv_path_LD"
13051if test -n "$LD"; then
13052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13053$as_echo "$LD" >&6; }
9c60689e
DWT
13054else
13055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13056$as_echo "no" >&6; }
13057fi
12833ad8 13058test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
47aaa820
DWT
13059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13060$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
ee134472 13061if ${lt_cv_prog_gnu_ld+:} false; then :
47aaa820
DWT
13062 $as_echo_n "(cached) " >&6
13063else
13064 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13065case `$LD -v 2>&1 </dev/null` in
13066*GNU* | *'with BFD'*)
13067 lt_cv_prog_gnu_ld=yes
13068 ;;
13069*)
13070 lt_cv_prog_gnu_ld=no
13071 ;;
13072esac
13073fi
13074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13075$as_echo "$lt_cv_prog_gnu_ld" >&6; }
13076with_gnu_ld=$lt_cv_prog_gnu_ld
9c60689e
DWT
13077
13078
9c60689e 13079
9c60689e 13080
9c60689e 13081
9c60689e 13082
9c60689e 13083
47aaa820
DWT
13084 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13085 # archiving commands below assume that GNU ld is being used.
13086 if test "$with_gnu_ld" = yes; then
ee134472
JF
13087 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13088 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 13089
47aaa820
DWT
13090 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13091 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9c60689e 13092
47aaa820
DWT
13093 # If archive_cmds runs LD, not CC, wlarc should be empty
13094 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13095 # investigate it a little bit more. (MM)
13096 wlarc='${wl}'
9c60689e 13097
47aaa820
DWT
13098 # ancient GNU ld didn't support --whole-archive et. al.
13099 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13100 $GREP 'no-whole-archive' > /dev/null; then
13101 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13102 else
13103 whole_archive_flag_spec_CXX=
13104 fi
13105 else
13106 with_gnu_ld=no
13107 wlarc=
13108
13109 # A generic and very simple default shared library creation
13110 # command for GNU C++ for the case where it uses the native
13111 # linker, instead of GNU ld. If possible, this setting should
13112 # overridden to take advantage of the native linker features on
13113 # the platform it is being used on.
13114 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13115 fi
13116
13117 # Commands to make compiler produce verbose output that lists
13118 # what "hidden" libraries, object files and flags are used when
13119 # linking a shared library.
ee134472 13120 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
47aaa820
DWT
13121
13122 else
13123 GXX=no
13124 with_gnu_ld=no
13125 wlarc=
13126 fi
13127
13128 # PORTME: fill in a description of your system's C++ link characteristics
13129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13130$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13131 ld_shlibs_CXX=yes
13132 case $host_os in
13133 aix3*)
13134 # FIXME: insert proper C++ library support
13135 ld_shlibs_CXX=no
13136 ;;
13137 aix[4-9]*)
13138 if test "$host_cpu" = ia64; then
13139 # On IA64, the linker does run time linking by default, so we don't
13140 # have to do anything special.
13141 aix_use_runtimelinking=no
13142 exp_sym_flag='-Bexport'
13143 no_entry_flag=""
13144 else
13145 aix_use_runtimelinking=no
13146
13147 # Test if we are trying to use run time linking or normal
13148 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13149 # need to do runtime linking.
13150 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13151 for ld_flag in $LDFLAGS; do
13152 case $ld_flag in
13153 *-brtl*)
13154 aix_use_runtimelinking=yes
13155 break
13156 ;;
13157 esac
13158 done
13159 ;;
13160 esac
13161
13162 exp_sym_flag='-bexport'
13163 no_entry_flag='-bnoentry'
13164 fi
13165
13166 # When large executables or shared objects are built, AIX ld can
13167 # have problems creating the table of contents. If linking a library
13168 # or program results in "error TOC overflow" add -mminimal-toc to
13169 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13170 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13171
13172 archive_cmds_CXX=''
13173 hardcode_direct_CXX=yes
13174 hardcode_direct_absolute_CXX=yes
13175 hardcode_libdir_separator_CXX=':'
13176 link_all_deplibs_CXX=yes
13177 file_list_spec_CXX='${wl}-f,'
13178
13179 if test "$GXX" = yes; then
13180 case $host_os in aix4.[012]|aix4.[012].*)
13181 # We only want to do this on AIX 4.2 and lower, the check
13182 # below for broken collect2 doesn't work under 4.3+
13183 collect2name=`${CC} -print-prog-name=collect2`
13184 if test -f "$collect2name" &&
13185 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13186 then
13187 # We have reworked collect2
13188 :
13189 else
13190 # We have old collect2
13191 hardcode_direct_CXX=unsupported
13192 # It fails to find uninstalled libraries when the uninstalled
13193 # path is not listed in the libpath. Setting hardcode_minus_L
13194 # to unsupported forces relinking
13195 hardcode_minus_L_CXX=yes
13196 hardcode_libdir_flag_spec_CXX='-L$libdir'
13197 hardcode_libdir_separator_CXX=
13198 fi
13199 esac
13200 shared_flag='-shared'
13201 if test "$aix_use_runtimelinking" = yes; then
13202 shared_flag="$shared_flag "'${wl}-G'
13203 fi
13204 else
13205 # not using gcc
13206 if test "$host_cpu" = ia64; then
13207 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13208 # chokes on -Wl,-G. The following line is correct:
13209 shared_flag='-G'
13210 else
13211 if test "$aix_use_runtimelinking" = yes; then
13212 shared_flag='${wl}-G'
13213 else
13214 shared_flag='${wl}-bM:SRE'
13215 fi
13216 fi
13217 fi
13218
13219 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13220 # It seems that -bexpall does not export symbols beginning with
13221 # underscore (_), so it is better to generate a list of symbols to
13222 # export.
13223 always_export_symbols_CXX=yes
13224 if test "$aix_use_runtimelinking" = yes; then
13225 # Warning - without using the other runtime loading flags (-brtl),
13226 # -berok will link without error, but may produce a broken library.
13227 allow_undefined_flag_CXX='-berok'
13228 # Determine the default libpath from the value encoded in an empty
13229 # executable.
ee134472
JF
13230 if test "${lt_cv_aix_libpath+set}" = set; then
13231 aix_libpath=$lt_cv_aix_libpath
13232else
13233 if ${lt_cv_aix_libpath__CXX+:} false; then :
13234 $as_echo_n "(cached) " >&6
13235else
13236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9c60689e
DWT
13237/* end confdefs.h. */
13238
13239int
13240main ()
13241{
13242
13243 ;
13244 return 0;
13245}
13246_ACEOF
47aaa820 13247if ac_fn_cxx_try_link "$LINENO"; then :
9c60689e 13248
ee134472
JF
13249 lt_aix_libpath_sed='
13250 /Import File Strings/,/^$/ {
13251 /^0/ {
13252 s/^0 *\([^ ]*\) *$/\1/
13253 p
13254 }
13255 }'
13256 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13257 # Check for a 64-bit object if we didn't find anything.
13258 if test -z "$lt_cv_aix_libpath__CXX"; then
13259 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13260 fi
47aaa820
DWT
13261fi
13262rm -f core conftest.err conftest.$ac_objext \
13263 conftest$ac_exeext conftest.$ac_ext
ee134472
JF
13264 if test -z "$lt_cv_aix_libpath__CXX"; then
13265 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13266 fi
13267
13268fi
13269
13270 aix_libpath=$lt_cv_aix_libpath__CXX
13271fi
47aaa820
DWT
13272
13273 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13274
ee134472 13275 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
13276 else
13277 if test "$host_cpu" = ia64; then
13278 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13279 allow_undefined_flag_CXX="-z nodefs"
13280 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"
13281 else
13282 # Determine the default libpath from the value encoded in an
13283 # empty executable.
ee134472
JF
13284 if test "${lt_cv_aix_libpath+set}" = set; then
13285 aix_libpath=$lt_cv_aix_libpath
13286else
13287 if ${lt_cv_aix_libpath__CXX+:} false; then :
13288 $as_echo_n "(cached) " >&6
13289else
13290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9c60689e
DWT
13291/* end confdefs.h. */
13292
13293int
13294main ()
13295{
13296
13297 ;
13298 return 0;
13299}
13300_ACEOF
47aaa820 13301if ac_fn_cxx_try_link "$LINENO"; then :
9c60689e 13302
ee134472
JF
13303 lt_aix_libpath_sed='
13304 /Import File Strings/,/^$/ {
13305 /^0/ {
13306 s/^0 *\([^ ]*\) *$/\1/
13307 p
13308 }
13309 }'
13310 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13311 # Check for a 64-bit object if we didn't find anything.
13312 if test -z "$lt_cv_aix_libpath__CXX"; then
13313 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13314 fi
9c60689e 13315fi
47aaa820
DWT
13316rm -f core conftest.err conftest.$ac_objext \
13317 conftest$ac_exeext conftest.$ac_ext
ee134472
JF
13318 if test -z "$lt_cv_aix_libpath__CXX"; then
13319 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13320 fi
13321
13322fi
13323
13324 aix_libpath=$lt_cv_aix_libpath__CXX
13325fi
9c60689e 13326
47aaa820
DWT
13327 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13328 # Warning - without using the other run time loading flags,
13329 # -berok will link without error, but may produce a broken library.
13330 no_undefined_flag_CXX=' ${wl}-bernotok'
13331 allow_undefined_flag_CXX=' ${wl}-berok'
ee134472
JF
13332 if test "$with_gnu_ld" = yes; then
13333 # We only use this code for GNU lds that support --whole-archive.
13334 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13335 else
13336 # Exported symbols can be pulled into shared objects from archives
13337 whole_archive_flag_spec_CXX='$convenience'
13338 fi
47aaa820
DWT
13339 archive_cmds_need_lc_CXX=yes
13340 # This is similar to how AIX traditionally builds its shared
13341 # libraries.
13342 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'
13343 fi
13344 fi
13345 ;;
9c60689e 13346
47aaa820
DWT
13347 beos*)
13348 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13349 allow_undefined_flag_CXX=unsupported
13350 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13351 # support --undefined. This deserves some investigation. FIXME
13352 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13353 else
13354 ld_shlibs_CXX=no
13355 fi
13356 ;;
9c60689e 13357
47aaa820
DWT
13358 chorus*)
13359 case $cc_basename in
13360 *)
13361 # FIXME: insert proper C++ library support
13362 ld_shlibs_CXX=no
13363 ;;
13364 esac
13365 ;;
9c60689e 13366
47aaa820 13367 cygwin* | mingw* | pw32* | cegcc*)
ee134472
JF
13368 case $GXX,$cc_basename in
13369 ,cl* | no,cl*)
13370 # Native MSVC
13371 # hardcode_libdir_flag_spec is actually meaningless, as there is
13372 # no search path for DLLs.
13373 hardcode_libdir_flag_spec_CXX=' '
13374 allow_undefined_flag_CXX=unsupported
13375 always_export_symbols_CXX=yes
13376 file_list_spec_CXX='@'
13377 # Tell ltmain to make .lib files, not .a files.
13378 libext=lib
13379 # Tell ltmain to make .dll files, not .so files.
13380 shrext_cmds=".dll"
13381 # FIXME: Setting linknames here is a bad hack.
13382 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13383 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13384 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13385 else
13386 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13387 fi~
13388 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13389 linknames='
13390 # The linker will not automatically build a static lib if we build a DLL.
13391 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13392 enable_shared_with_static_runtimes_CXX=yes
13393 # Don't use ranlib
13394 old_postinstall_cmds_CXX='chmod 644 $oldlib'
13395 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13396 lt_tool_outputfile="@TOOL_OUTPUT@"~
13397 case $lt_outputfile in
13398 *.exe|*.EXE) ;;
13399 *)
13400 lt_outputfile="$lt_outputfile.exe"
13401 lt_tool_outputfile="$lt_tool_outputfile.exe"
13402 ;;
13403 esac~
13404 func_to_tool_file "$lt_outputfile"~
13405 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13406 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13407 $RM "$lt_outputfile.manifest";
13408 fi'
13409 ;;
13410 *)
13411 # g++
13412 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13413 # as there is no search path for DLLs.
13414 hardcode_libdir_flag_spec_CXX='-L$libdir'
13415 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13416 allow_undefined_flag_CXX=unsupported
13417 always_export_symbols_CXX=no
13418 enable_shared_with_static_runtimes_CXX=yes
13419
13420 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13421 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'
13422 # If the export-symbols file already is a .def file (1st line
13423 # is EXPORTS), use it as is; otherwise, prepend...
13424 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13425 cp $export_symbols $output_objdir/$soname.def;
13426 else
13427 echo EXPORTS > $output_objdir/$soname.def;
13428 cat $export_symbols >> $output_objdir/$soname.def;
13429 fi~
13430 $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'
13431 else
13432 ld_shlibs_CXX=no
13433 fi
13434 ;;
13435 esac
13436 ;;
47aaa820 13437 darwin* | rhapsody*)
9c60689e 13438
9c60689e 13439
47aaa820
DWT
13440 archive_cmds_need_lc_CXX=no
13441 hardcode_direct_CXX=no
13442 hardcode_automatic_CXX=yes
13443 hardcode_shlibpath_var_CXX=unsupported
ee134472
JF
13444 if test "$lt_cv_ld_force_load" = "yes"; then
13445 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 13446
ee134472
JF
13447 else
13448 whole_archive_flag_spec_CXX=''
13449 fi
47aaa820
DWT
13450 link_all_deplibs_CXX=yes
13451 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13452 case $cc_basename in
13453 ifort*) _lt_dar_can_shared=yes ;;
13454 *) _lt_dar_can_shared=$GCC ;;
13455 esac
13456 if test "$_lt_dar_can_shared" = "yes"; then
ee134472 13457 output_verbose_link_cmd=func_echo_all
47aaa820
DWT
13458 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}"
13459 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13460 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}"
13461 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}"
13462 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13463 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}"
13464 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}"
13465 fi
9c60689e 13466
47aaa820
DWT
13467 else
13468 ld_shlibs_CXX=no
13469 fi
9c60689e 13470
47aaa820 13471 ;;
9c60689e 13472
47aaa820
DWT
13473 dgux*)
13474 case $cc_basename in
13475 ec++*)
13476 # FIXME: insert proper C++ library support
13477 ld_shlibs_CXX=no
13478 ;;
13479 ghcx*)
13480 # Green Hills C++ Compiler
13481 # FIXME: insert proper C++ library support
13482 ld_shlibs_CXX=no
13483 ;;
13484 *)
13485 # FIXME: insert proper C++ library support
13486 ld_shlibs_CXX=no
13487 ;;
13488 esac
13489 ;;
9c60689e 13490
53ba6704 13491 freebsd2.*)
47aaa820
DWT
13492 # C++ shared libraries reported to be fairly broken before
13493 # switch to ELF
13494 ld_shlibs_CXX=no
13495 ;;
9c60689e 13496
47aaa820
DWT
13497 freebsd-elf*)
13498 archive_cmds_need_lc_CXX=no
13499 ;;
9c60689e 13500
47aaa820
DWT
13501 freebsd* | dragonfly*)
13502 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13503 # conventions
13504 ld_shlibs_CXX=yes
13505 ;;
9c60689e 13506
47aaa820
DWT
13507 gnu*)
13508 ;;
9c60689e 13509
ee134472
JF
13510 haiku*)
13511 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13512 link_all_deplibs_CXX=yes
13513 ;;
13514
47aaa820
DWT
13515 hpux9*)
13516 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13517 hardcode_libdir_separator_CXX=:
13518 export_dynamic_flag_spec_CXX='${wl}-E'
13519 hardcode_direct_CXX=yes
13520 hardcode_minus_L_CXX=yes # Not in the search PATH,
13521 # but as the default
13522 # location of the library.
9c60689e 13523
47aaa820
DWT
13524 case $cc_basename in
13525 CC*)
13526 # FIXME: insert proper C++ library support
13527 ld_shlibs_CXX=no
13528 ;;
13529 aCC*)
13530 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'
13531 # Commands to make compiler produce verbose output that lists
13532 # what "hidden" libraries, object files and flags are used when
13533 # linking a shared library.
13534 #
13535 # There doesn't appear to be a way to prevent this compiler from
13536 # explicitly linking system object files so we need to strip them
13537 # from the output so that they don't get included in the library
13538 # dependencies.
ee134472 13539 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
13540 ;;
13541 *)
13542 if test "$GXX" = yes; then
ee134472 13543 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
13544 else
13545 # FIXME: insert proper C++ library support
13546 ld_shlibs_CXX=no
13547 fi
13548 ;;
13549 esac
13550 ;;
9c60689e 13551
47aaa820
DWT
13552 hpux10*|hpux11*)
13553 if test $with_gnu_ld = no; then
13554 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13555 hardcode_libdir_separator_CXX=:
9c60689e 13556
47aaa820
DWT
13557 case $host_cpu in
13558 hppa*64*|ia64*)
13559 ;;
13560 *)
13561 export_dynamic_flag_spec_CXX='${wl}-E'
13562 ;;
13563 esac
13564 fi
13565 case $host_cpu in
13566 hppa*64*|ia64*)
13567 hardcode_direct_CXX=no
13568 hardcode_shlibpath_var_CXX=no
13569 ;;
13570 *)
13571 hardcode_direct_CXX=yes
13572 hardcode_direct_absolute_CXX=yes
13573 hardcode_minus_L_CXX=yes # Not in the search PATH,
13574 # but as the default
13575 # location of the library.
13576 ;;
13577 esac
9c60689e 13578
47aaa820
DWT
13579 case $cc_basename in
13580 CC*)
13581 # FIXME: insert proper C++ library support
13582 ld_shlibs_CXX=no
13583 ;;
13584 aCC*)
13585 case $host_cpu in
13586 hppa*64*)
13587 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13588 ;;
13589 ia64*)
13590 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13591 ;;
13592 *)
13593 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13594 ;;
13595 esac
13596 # Commands to make compiler produce verbose output that lists
13597 # what "hidden" libraries, object files and flags are used when
13598 # linking a shared library.
13599 #
13600 # There doesn't appear to be a way to prevent this compiler from
13601 # explicitly linking system object files so we need to strip them
13602 # from the output so that they don't get included in the library
13603 # dependencies.
ee134472 13604 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
13605 ;;
13606 *)
13607 if test "$GXX" = yes; then
13608 if test $with_gnu_ld = no; then
13609 case $host_cpu in
13610 hppa*64*)
13611 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13612 ;;
13613 ia64*)
ee134472 13614 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
13615 ;;
13616 *)
ee134472 13617 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
13618 ;;
13619 esac
13620 fi
13621 else
13622 # FIXME: insert proper C++ library support
13623 ld_shlibs_CXX=no
13624 fi
13625 ;;
13626 esac
13627 ;;
9c60689e 13628
47aaa820
DWT
13629 interix[3-9]*)
13630 hardcode_direct_CXX=no
13631 hardcode_shlibpath_var_CXX=no
13632 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13633 export_dynamic_flag_spec_CXX='${wl}-E'
13634 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13635 # Instead, shared libraries are loaded at an image base (0x10000000 by
13636 # default) and relocated if they conflict, which is a slow very memory
13637 # consuming and fragmenting process. To avoid this, we pick a random,
13638 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13639 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13640 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'
13641 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'
13642 ;;
13643 irix5* | irix6*)
13644 case $cc_basename in
13645 CC*)
13646 # SGI C++
ee134472 13647 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 13648
47aaa820
DWT
13649 # Archives containing C++ object files must be created using
13650 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13651 # necessary to make sure instantiated templates are included
13652 # in the archive.
13653 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13654 ;;
13655 *)
13656 if test "$GXX" = yes; then
13657 if test "$with_gnu_ld" = no; then
ee134472 13658 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 13659 else
ee134472 13660 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
13661 fi
13662 fi
13663 link_all_deplibs_CXX=yes
13664 ;;
13665 esac
13666 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13667 hardcode_libdir_separator_CXX=:
13668 inherit_rpath_CXX=yes
13669 ;;
9c60689e 13670
1504c9b8 13671 linux* | k*bsd*-gnu | kopensolaris*-gnu)
47aaa820
DWT
13672 case $cc_basename in
13673 KCC*)
13674 # Kuck and Associates, Inc. (KAI) C++ Compiler
9c60689e 13675
47aaa820
DWT
13676 # KCC will only create a shared library if the output file
13677 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13678 # to its proper name (with version) after linking.
13679 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'
13680 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'
13681 # Commands to make compiler produce verbose output that lists
13682 # what "hidden" libraries, object files and flags are used when
13683 # linking a shared library.
13684 #
13685 # There doesn't appear to be a way to prevent this compiler from
13686 # explicitly linking system object files so we need to strip them
13687 # from the output so that they don't get included in the library
13688 # dependencies.
ee134472 13689 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 13690
47aaa820
DWT
13691 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13692 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9c60689e 13693
47aaa820
DWT
13694 # Archives containing C++ object files must be created using
13695 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13696 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13697 ;;
13698 icpc* | ecpc* )
13699 # Intel C++
13700 with_gnu_ld=yes
13701 # version 8.0 and above of icpc choke on multiply defined symbols
13702 # if we add $predep_objects and $postdep_objects, however 7.1 and
13703 # earlier do not add the objects themselves.
13704 case `$CC -V 2>&1` in
13705 *"Version 7."*)
13706 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13707 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'
13708 ;;
13709 *) # Version 8.0 or newer
13710 tmp_idyn=
13711 case $host_cpu in
13712 ia64*) tmp_idyn=' -i_dynamic';;
13713 esac
13714 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13715 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'
13716 ;;
13717 esac
13718 archive_cmds_need_lc_CXX=no
13719 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13720 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13721 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13722 ;;
13723 pgCC* | pgcpp*)
13724 # Portland Group C++ compiler
13725 case `$CC -V` in
ee134472 13726 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
47aaa820
DWT
13727 prelink_cmds_CXX='tpldir=Template.dir~
13728 rm -rf $tpldir~
13729 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
ee134472 13730 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
47aaa820
DWT
13731 old_archive_cmds_CXX='tpldir=Template.dir~
13732 rm -rf $tpldir~
13733 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
ee134472 13734 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
47aaa820
DWT
13735 $RANLIB $oldlib'
13736 archive_cmds_CXX='tpldir=Template.dir~
13737 rm -rf $tpldir~
13738 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
ee134472 13739 $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
13740 archive_expsym_cmds_CXX='tpldir=Template.dir~
13741 rm -rf $tpldir~
13742 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
ee134472 13743 $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 13744 ;;
ee134472 13745 *) # Version 6 and above use weak symbols
47aaa820
DWT
13746 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13747 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'
13748 ;;
13749 esac
9c60689e 13750
47aaa820
DWT
13751 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13752 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
ee134472 13753 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
13754 ;;
13755 cxx*)
13756 # Compaq C++
13757 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13758 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 13759
47aaa820
DWT
13760 runpath_var=LD_RUN_PATH
13761 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13762 hardcode_libdir_separator_CXX=:
9c60689e 13763
47aaa820
DWT
13764 # Commands to make compiler produce verbose output that lists
13765 # what "hidden" libraries, object files and flags are used when
13766 # linking a shared library.
13767 #
13768 # There doesn't appear to be a way to prevent this compiler from
13769 # explicitly linking system object files so we need to strip them
13770 # from the output so that they don't get included in the library
13771 # dependencies.
ee134472 13772 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 13773 ;;
ee134472 13774 xl* | mpixl* | bgxl*)
47aaa820
DWT
13775 # IBM XL 8.0 on PPC, with GNU ld
13776 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13777 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13778 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13779 if test "x$supports_anon_versioning" = xyes; then
13780 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13781 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13782 echo "local: *; };" >> $output_objdir/$libname.ver~
13783 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13784 fi
13785 ;;
13786 *)
13787 case `$CC -V 2>&1 | sed 5q` in
13788 *Sun\ C*)
13789 # Sun C++ 5.9
13790 no_undefined_flag_CXX=' -zdefs'
13791 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13792 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'
13793 hardcode_libdir_flag_spec_CXX='-R$libdir'
ee134472 13794 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 13795 compiler_needs_object_CXX=yes
9c60689e 13796
47aaa820
DWT
13797 # Not sure whether something based on
13798 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13799 # would be better.
ee134472 13800 output_verbose_link_cmd='func_echo_all'
9c60689e 13801
47aaa820
DWT
13802 # Archives containing C++ object files must be created using
13803 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13804 # necessary to make sure instantiated templates are included
13805 # in the archive.
13806 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13807 ;;
13808 esac
13809 ;;
13810 esac
13811 ;;
9c60689e 13812
47aaa820
DWT
13813 lynxos*)
13814 # FIXME: insert proper C++ library support
13815 ld_shlibs_CXX=no
13816 ;;
9c60689e 13817
47aaa820
DWT
13818 m88k*)
13819 # FIXME: insert proper C++ library support
13820 ld_shlibs_CXX=no
13821 ;;
9c60689e 13822
47aaa820
DWT
13823 mvs*)
13824 case $cc_basename in
13825 cxx*)
13826 # FIXME: insert proper C++ library support
13827 ld_shlibs_CXX=no
13828 ;;
13829 *)
13830 # FIXME: insert proper C++ library support
13831 ld_shlibs_CXX=no
13832 ;;
13833 esac
13834 ;;
9c60689e 13835
47aaa820
DWT
13836 netbsd*)
13837 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13838 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13839 wlarc=
13840 hardcode_libdir_flag_spec_CXX='-R$libdir'
13841 hardcode_direct_CXX=yes
13842 hardcode_shlibpath_var_CXX=no
13843 fi
13844 # Workaround some broken pre-1.5 toolchains
13845 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
9c60689e 13846 ;;
47aaa820
DWT
13847
13848 *nto* | *qnx*)
13849 ld_shlibs_CXX=yes
9c60689e 13850 ;;
9c60689e 13851
47aaa820
DWT
13852 openbsd2*)
13853 # C++ shared libraries are fairly broken
13854 ld_shlibs_CXX=no
13855 ;;
9c60689e 13856
47aaa820
DWT
13857 openbsd*)
13858 if test -f /usr/libexec/ld.so; then
13859 hardcode_direct_CXX=yes
13860 hardcode_shlibpath_var_CXX=no
13861 hardcode_direct_absolute_CXX=yes
13862 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13863 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13864 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13865 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13866 export_dynamic_flag_spec_CXX='${wl}-E'
13867 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13868 fi
ee134472 13869 output_verbose_link_cmd=func_echo_all
47aaa820
DWT
13870 else
13871 ld_shlibs_CXX=no
13872 fi
13873 ;;
9c60689e 13874
47aaa820
DWT
13875 osf3* | osf4* | osf5*)
13876 case $cc_basename in
13877 KCC*)
13878 # Kuck and Associates, Inc. (KAI) C++ Compiler
9c60689e 13879
47aaa820
DWT
13880 # KCC will only create a shared library if the output file
13881 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13882 # to its proper name (with version) after linking.
13883 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 13884
47aaa820
DWT
13885 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13886 hardcode_libdir_separator_CXX=:
9c60689e 13887
47aaa820
DWT
13888 # Archives containing C++ object files must be created using
13889 # the KAI C++ compiler.
13890 case $host in
13891 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13892 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13893 esac
13894 ;;
13895 RCC*)
13896 # Rational C++ 2.4.1
13897 # FIXME: insert proper C++ library support
13898 ld_shlibs_CXX=no
13899 ;;
13900 cxx*)
13901 case $host in
13902 osf3*)
13903 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
ee134472 13904 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
13905 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13906 ;;
13907 *)
13908 allow_undefined_flag_CXX=' -expect_unresolved \*'
ee134472 13909 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
13910 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13911 echo "-hidden">> $lib.exp~
ee134472 13912 $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
13913 $RM $lib.exp'
13914 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13915 ;;
13916 esac
9c60689e 13917
47aaa820 13918 hardcode_libdir_separator_CXX=:
9c60689e 13919
47aaa820
DWT
13920 # Commands to make compiler produce verbose output that lists
13921 # what "hidden" libraries, object files and flags are used when
13922 # linking a shared library.
13923 #
13924 # There doesn't appear to be a way to prevent this compiler from
13925 # explicitly linking system object files so we need to strip them
13926 # from the output so that they don't get included in the library
13927 # dependencies.
ee134472 13928 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
13929 ;;
13930 *)
13931 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13932 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13933 case $host in
13934 osf3*)
ee134472 13935 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
13936 ;;
13937 *)
ee134472 13938 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
13939 ;;
13940 esac
9c60689e 13941
47aaa820
DWT
13942 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13943 hardcode_libdir_separator_CXX=:
9c60689e 13944
47aaa820
DWT
13945 # Commands to make compiler produce verbose output that lists
13946 # what "hidden" libraries, object files and flags are used when
13947 # linking a shared library.
ee134472 13948 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
9c60689e 13949
47aaa820
DWT
13950 else
13951 # FIXME: insert proper C++ library support
13952 ld_shlibs_CXX=no
13953 fi
13954 ;;
13955 esac
13956 ;;
9c60689e 13957
47aaa820 13958 psos*)
9c60689e
DWT
13959 # FIXME: insert proper C++ library support
13960 ld_shlibs_CXX=no
13961 ;;
9c60689e 13962
47aaa820
DWT
13963 sunos4*)
13964 case $cc_basename in
13965 CC*)
13966 # Sun C++ 4.x
13967 # FIXME: insert proper C++ library support
13968 ld_shlibs_CXX=no
9c60689e 13969 ;;
47aaa820
DWT
13970 lcc*)
13971 # Lucid
13972 # FIXME: insert proper C++ library support
13973 ld_shlibs_CXX=no
13974 ;;
13975 *)
13976 # FIXME: insert proper C++ library support
13977 ld_shlibs_CXX=no
13978 ;;
13979 esac
13980 ;;
9c60689e 13981
47aaa820
DWT
13982 solaris*)
13983 case $cc_basename in
ee134472 13984 CC* | sunCC*)
47aaa820
DWT
13985 # Sun C++ 4.2, 5.x and Centerline C++
13986 archive_cmds_need_lc_CXX=yes
13987 no_undefined_flag_CXX=' -zdefs'
13988 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13989 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13990 $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 13991
47aaa820
DWT
13992 hardcode_libdir_flag_spec_CXX='-R$libdir'
13993 hardcode_shlibpath_var_CXX=no
13994 case $host_os in
13995 solaris2.[0-5] | solaris2.[0-5].*) ;;
13996 *)
13997 # The compiler driver will combine and reorder linker options,
13998 # but understands `-z linker_flag'.
13999 # Supported since Solaris 2.6 (maybe 2.5.1?)
14000 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14001 ;;
14002 esac
14003 link_all_deplibs_CXX=yes
9c60689e 14004
ee134472 14005 output_verbose_link_cmd='func_echo_all'
9c60689e 14006
47aaa820
DWT
14007 # Archives containing C++ object files must be created using
14008 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14009 # necessary to make sure instantiated templates are included
14010 # in the archive.
14011 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14012 ;;
14013 gcx*)
14014 # Green Hills C++ Compiler
14015 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9c60689e 14016
47aaa820
DWT
14017 # The C++ compiler must be used to create the archive.
14018 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14019 ;;
14020 *)
14021 # GNU C++ compiler with Solaris linker
14022 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14023 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14024 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
ee134472 14025 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
47aaa820 14026 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
ee134472 14027 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
9c60689e 14028
47aaa820
DWT
14029 # Commands to make compiler produce verbose output that lists
14030 # what "hidden" libraries, object files and flags are used when
14031 # linking a shared library.
ee134472 14032 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
47aaa820
DWT
14033 else
14034 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14035 # platform.
14036 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14037 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14038 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
9c60689e 14039
47aaa820
DWT
14040 # Commands to make compiler produce verbose output that lists
14041 # what "hidden" libraries, object files and flags are used when
14042 # linking a shared library.
ee134472 14043 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
47aaa820 14044 fi
9c60689e 14045
47aaa820
DWT
14046 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14047 case $host_os in
14048 solaris2.[0-5] | solaris2.[0-5].*) ;;
14049 *)
14050 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14051 ;;
14052 esac
14053 fi
14054 ;;
14055 esac
14056 ;;
9c60689e 14057
47aaa820
DWT
14058 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14059 no_undefined_flag_CXX='${wl}-z,text'
14060 archive_cmds_need_lc_CXX=no
14061 hardcode_shlibpath_var_CXX=no
14062 runpath_var='LD_RUN_PATH'
9c60689e 14063
47aaa820
DWT
14064 case $cc_basename in
14065 CC*)
14066 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14067 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14068 ;;
14069 *)
14070 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14071 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14072 ;;
14073 esac
14074 ;;
9c60689e 14075
47aaa820
DWT
14076 sysv5* | sco3.2v5* | sco5v6*)
14077 # Note: We can NOT use -z defs as we might desire, because we do not
14078 # link with -lc, and that would cause any symbols used from libc to
14079 # always be unresolved, which means just about no library would
14080 # ever link correctly. If we're not using GNU ld we use -z text
14081 # though, which does catch some bad symbols but isn't as heavy-handed
14082 # as -z defs.
14083 no_undefined_flag_CXX='${wl}-z,text'
14084 allow_undefined_flag_CXX='${wl}-z,nodefs'
14085 archive_cmds_need_lc_CXX=no
14086 hardcode_shlibpath_var_CXX=no
14087 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14088 hardcode_libdir_separator_CXX=':'
14089 link_all_deplibs_CXX=yes
14090 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14091 runpath_var='LD_RUN_PATH'
9c60689e 14092
47aaa820
DWT
14093 case $cc_basename in
14094 CC*)
14095 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14096 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
ee134472
JF
14097 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14098 '"$old_archive_cmds_CXX"
14099 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14100 '"$reload_cmds_CXX"
47aaa820
DWT
14101 ;;
14102 *)
14103 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14104 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14105 ;;
14106 esac
14107 ;;
9c60689e 14108
47aaa820 14109 tandem*)
9c60689e 14110 case $cc_basename in
47aaa820
DWT
14111 NCC*)
14112 # NonStop-UX NCC 3.20
14113 # FIXME: insert proper C++ library support
14114 ld_shlibs_CXX=no
14115 ;;
9c60689e 14116 *)
47aaa820
DWT
14117 # FIXME: insert proper C++ library support
14118 ld_shlibs_CXX=no
14119 ;;
9c60689e
DWT
14120 esac
14121 ;;
14122
47aaa820
DWT
14123 vxworks*)
14124 # FIXME: insert proper C++ library support
14125 ld_shlibs_CXX=no
14126 ;;
9c60689e 14127
47aaa820
DWT
14128 *)
14129 # FIXME: insert proper C++ library support
14130 ld_shlibs_CXX=no
9c60689e 14131 ;;
47aaa820 14132 esac
9c60689e 14133
47aaa820
DWT
14134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14135$as_echo "$ld_shlibs_CXX" >&6; }
14136 test "$ld_shlibs_CXX" = no && can_build_shared=no
9c60689e 14137
47aaa820
DWT
14138 GCC_CXX="$GXX"
14139 LD_CXX="$LD"
9c60689e 14140
47aaa820
DWT
14141 ## CAVEAT EMPTOR:
14142 ## There is no encapsulation within the following macros, do not change
14143 ## the running order or otherwise move them around unless you know exactly
14144 ## what you are doing...
14145 # Dependencies to place before and after the object being linked:
14146predep_objects_CXX=
14147postdep_objects_CXX=
14148predeps_CXX=
14149postdeps_CXX=
14150compiler_lib_search_path_CXX=
9c60689e 14151
47aaa820
DWT
14152cat > conftest.$ac_ext <<_LT_EOF
14153class Foo
14154{
14155public:
14156 Foo (void) { a = 0; }
14157private:
14158 int a;
14159};
14160_LT_EOF
9c60689e 14161
ee134472
JF
14162
14163_lt_libdeps_save_CFLAGS=$CFLAGS
14164case "$CC $CFLAGS " in #(
14165*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14166*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
53ba6704 14167*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
ee134472
JF
14168esac
14169
47aaa820
DWT
14170if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14171 (eval $ac_compile) 2>&5
14172 ac_status=$?
14173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14174 test $ac_status = 0; }; then
14175 # Parse the compiler output and extract the necessary
14176 # objects, libraries and library flags.
9c60689e 14177
47aaa820
DWT
14178 # Sentinel used to keep track of whether or not we are before
14179 # the conftest object file.
14180 pre_test_object_deps_done=no
9c60689e 14181
47aaa820 14182 for p in `eval "$output_verbose_link_cmd"`; do
ee134472 14183 case ${prev}${p} in
9c60689e 14184
47aaa820
DWT
14185 -L* | -R* | -l*)
14186 # Some compilers place space between "-{L,R}" and the path.
14187 # Remove the space.
14188 if test $p = "-L" ||
14189 test $p = "-R"; then
14190 prev=$p
14191 continue
47aaa820 14192 fi
9c60689e 14193
ee134472
JF
14194 # Expand the sysroot to ease extracting the directories later.
14195 if test -z "$prev"; then
14196 case $p in
14197 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14198 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14199 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14200 esac
14201 fi
14202 case $p in
14203 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14204 esac
47aaa820 14205 if test "$pre_test_object_deps_done" = no; then
ee134472
JF
14206 case ${prev} in
14207 -L | -R)
47aaa820
DWT
14208 # Internal compiler library paths should come after those
14209 # provided the user. The postdeps already come after the
14210 # user supplied libs so there is no need to process them.
14211 if test -z "$compiler_lib_search_path_CXX"; then
14212 compiler_lib_search_path_CXX="${prev}${p}"
14213 else
14214 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14215 fi
14216 ;;
14217 # The "-l" case would never come before the object being
14218 # linked, so don't bother handling this case.
14219 esac
14220 else
14221 if test -z "$postdeps_CXX"; then
14222 postdeps_CXX="${prev}${p}"
14223 else
14224 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14225 fi
14226 fi
ee134472 14227 prev=
47aaa820 14228 ;;
9c60689e 14229
ee134472 14230 *.lto.$objext) ;; # Ignore GCC LTO objects
47aaa820
DWT
14231 *.$objext)
14232 # This assumes that the test object file only shows up
14233 # once in the compiler output.
14234 if test "$p" = "conftest.$objext"; then
14235 pre_test_object_deps_done=yes
14236 continue
14237 fi
9c60689e 14238
47aaa820
DWT
14239 if test "$pre_test_object_deps_done" = no; then
14240 if test -z "$predep_objects_CXX"; then
14241 predep_objects_CXX="$p"
14242 else
14243 predep_objects_CXX="$predep_objects_CXX $p"
14244 fi
14245 else
14246 if test -z "$postdep_objects_CXX"; then
14247 postdep_objects_CXX="$p"
14248 else
14249 postdep_objects_CXX="$postdep_objects_CXX $p"
14250 fi
14251 fi
14252 ;;
9c60689e 14253
47aaa820 14254 *) ;; # Ignore the rest.
9c60689e 14255
47aaa820
DWT
14256 esac
14257 done
9c60689e 14258
47aaa820
DWT
14259 # Clean up.
14260 rm -f a.out a.exe
14261else
14262 echo "libtool.m4: error: problem compiling CXX test program"
14263fi
9c60689e 14264
47aaa820 14265$RM -f confest.$objext
ee134472 14266CFLAGS=$_lt_libdeps_save_CFLAGS
9c60689e 14267
47aaa820
DWT
14268# PORTME: override above test on systems where it is broken
14269case $host_os in
14270interix[3-9]*)
14271 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14272 # hack all around it, let's just trust "g++" to DTRT.
14273 predep_objects_CXX=
14274 postdep_objects_CXX=
14275 postdeps_CXX=
14276 ;;
9c60689e 14277
47aaa820
DWT
14278linux*)
14279 case `$CC -V 2>&1 | sed 5q` in
14280 *Sun\ C*)
14281 # Sun C++ 5.9
9c60689e 14282
47aaa820
DWT
14283 # The more standards-conforming stlport4 library is
14284 # incompatible with the Cstd library. Avoid specifying
14285 # it if it's in CXXFLAGS. Ignore libCrun as
14286 # -library=stlport4 depends on it.
14287 case " $CXX $CXXFLAGS " in
14288 *" -library=stlport4 "*)
14289 solaris_use_stlport4=yes
14290 ;;
14291 esac
9c60689e 14292
47aaa820
DWT
14293 if test "$solaris_use_stlport4" != yes; then
14294 postdeps_CXX='-library=Cstd -library=Crun'
14295 fi
14296 ;;
14297 esac
14298 ;;
9c60689e 14299
47aaa820
DWT
14300solaris*)
14301 case $cc_basename in
ee134472 14302 CC* | sunCC*)
47aaa820
DWT
14303 # The more standards-conforming stlport4 library is
14304 # incompatible with the Cstd library. Avoid specifying
14305 # it if it's in CXXFLAGS. Ignore libCrun as
14306 # -library=stlport4 depends on it.
14307 case " $CXX $CXXFLAGS " in
14308 *" -library=stlport4 "*)
14309 solaris_use_stlport4=yes
14310 ;;
14311 esac
9c60689e 14312
47aaa820
DWT
14313 # Adding this requires a known-good setup of shared libraries for
14314 # Sun compiler versions before 5.6, else PIC objects from an old
14315 # archive will be linked into the output, leading to subtle bugs.
14316 if test "$solaris_use_stlport4" != yes; then
14317 postdeps_CXX='-library=Cstd -library=Crun'
14318 fi
14319 ;;
14320 esac
14321 ;;
14322esac
9c60689e 14323
9c60689e 14324
47aaa820
DWT
14325case " $postdeps_CXX " in
14326*" -lc "*) archive_cmds_need_lc_CXX=no ;;
14327esac
14328 compiler_lib_search_dirs_CXX=
14329if test -n "${compiler_lib_search_path_CXX}"; then
14330 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14331fi
9c60689e 14332
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
47aaa820
DWT
14363 lt_prog_compiler_wl_CXX=
14364lt_prog_compiler_pic_CXX=
14365lt_prog_compiler_static_CXX=
9c60689e 14366
9c60689e
DWT
14367
14368 # C++ specific cases for pic, static, wl, etc.
14369 if test "$GXX" = yes; then
14370 lt_prog_compiler_wl_CXX='-Wl,'
14371 lt_prog_compiler_static_CXX='-static'
14372
14373 case $host_os in
14374 aix*)
14375 # All AIX code is PIC.
14376 if test "$host_cpu" = ia64; then
14377 # AIX 5 now supports IA64 processor
14378 lt_prog_compiler_static_CXX='-Bstatic'
14379 fi
14380 ;;
14381
14382 amigaos*)
14383 case $host_cpu in
14384 powerpc)
14385 # see comment about AmigaOS4 .so support
14386 lt_prog_compiler_pic_CXX='-fPIC'
14387 ;;
14388 m68k)
14389 # FIXME: we need at least 68020 code to build shared libraries, but
14390 # adding the `-m68020' flag to GCC prevents building anything better,
14391 # like `-m68040'.
14392 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14393 ;;
14394 esac
14395 ;;
14396
14397 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14398 # PIC is the default for these OSes.
14399 ;;
14400 mingw* | cygwin* | os2* | pw32* | cegcc*)
14401 # This hack is so that the source file can tell whether it is being
14402 # built for inclusion in a dll (and should export symbols for example).
14403 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14404 # (--disable-auto-import) libraries
14405 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14406 ;;
14407 darwin* | rhapsody*)
14408 # PIC is the default on this platform
14409 # Common symbols not allowed in MH_DYLIB files
14410 lt_prog_compiler_pic_CXX='-fno-common'
14411 ;;
14412 *djgpp*)
14413 # DJGPP does not support shared libraries at all
14414 lt_prog_compiler_pic_CXX=
14415 ;;
ee134472
JF
14416 haiku*)
14417 # PIC is the default for Haiku.
14418 # The "-static" flag exists, but is broken.
14419 lt_prog_compiler_static_CXX=
14420 ;;
9c60689e
DWT
14421 interix[3-9]*)
14422 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14423 # Instead, we relocate shared libraries at runtime.
14424 ;;
14425 sysv4*MP*)
14426 if test -d /usr/nec; then
14427 lt_prog_compiler_pic_CXX=-Kconform_pic
14428 fi
14429 ;;
14430 hpux*)
14431 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14432 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14433 # sets the default TLS model and affects inlining.
14434 case $host_cpu in
14435 hppa*64*)
14436 ;;
14437 *)
14438 lt_prog_compiler_pic_CXX='-fPIC'
14439 ;;
14440 esac
14441 ;;
14442 *qnx* | *nto*)
14443 # QNX uses GNU C++, but need to define -shared option too, otherwise
14444 # it will coredump.
14445 lt_prog_compiler_pic_CXX='-fPIC -shared'
14446 ;;
14447 *)
14448 lt_prog_compiler_pic_CXX='-fPIC'
14449 ;;
14450 esac
14451 else
14452 case $host_os in
14453 aix[4-9]*)
14454 # All AIX code is PIC.
14455 if test "$host_cpu" = ia64; then
14456 # AIX 5 now supports IA64 processor
14457 lt_prog_compiler_static_CXX='-Bstatic'
14458 else
14459 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14460 fi
14461 ;;
14462 chorus*)
14463 case $cc_basename in
14464 cxch68*)
14465 # Green Hills C++ Compiler
14466 # _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"
14467 ;;
14468 esac
14469 ;;
ee134472
JF
14470 mingw* | cygwin* | os2* | pw32* | cegcc*)
14471 # This hack is so that the source file can tell whether it is being
14472 # built for inclusion in a dll (and should export symbols for example).
14473 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14474 ;;
9c60689e
DWT
14475 dgux*)
14476 case $cc_basename in
14477 ec++*)
14478 lt_prog_compiler_pic_CXX='-KPIC'
14479 ;;
14480 ghcx*)
14481 # Green Hills C++ Compiler
14482 lt_prog_compiler_pic_CXX='-pic'
14483 ;;
14484 *)
14485 ;;
14486 esac
14487 ;;
14488 freebsd* | dragonfly*)
14489 # FreeBSD uses GNU C++
14490 ;;
14491 hpux9* | hpux10* | hpux11*)
14492 case $cc_basename in
14493 CC*)
14494 lt_prog_compiler_wl_CXX='-Wl,'
14495 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14496 if test "$host_cpu" != ia64; then
14497 lt_prog_compiler_pic_CXX='+Z'
14498 fi
14499 ;;
14500 aCC*)
14501 lt_prog_compiler_wl_CXX='-Wl,'
14502 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14503 case $host_cpu in
14504 hppa*64*|ia64*)
14505 # +Z the default
14506 ;;
14507 *)
14508 lt_prog_compiler_pic_CXX='+Z'
14509 ;;
14510 esac
14511 ;;
14512 *)
14513 ;;
14514 esac
14515 ;;
14516 interix*)
14517 # This is c89, which is MS Visual C++ (no shared libs)
14518 # Anyone wants to do a port?
14519 ;;
14520 irix5* | irix6* | nonstopux*)
14521 case $cc_basename in
14522 CC*)
14523 lt_prog_compiler_wl_CXX='-Wl,'
14524 lt_prog_compiler_static_CXX='-non_shared'
14525 # CC pic flag -KPIC is the default.
14526 ;;
14527 *)
14528 ;;
14529 esac
14530 ;;
1504c9b8 14531 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9c60689e
DWT
14532 case $cc_basename in
14533 KCC*)
14534 # KAI C++ Compiler
14535 lt_prog_compiler_wl_CXX='--backend -Wl,'
14536 lt_prog_compiler_pic_CXX='-fPIC'
14537 ;;
14538 ecpc* )
14539 # old Intel C++ for x86_64 which still supported -KPIC.
14540 lt_prog_compiler_wl_CXX='-Wl,'
14541 lt_prog_compiler_pic_CXX='-KPIC'
14542 lt_prog_compiler_static_CXX='-static'
14543 ;;
14544 icpc* )
14545 # Intel C++, used to be incompatible with GCC.
14546 # ICC 10 doesn't accept -KPIC any more.
14547 lt_prog_compiler_wl_CXX='-Wl,'
14548 lt_prog_compiler_pic_CXX='-fPIC'
14549 lt_prog_compiler_static_CXX='-static'
14550 ;;
14551 pgCC* | pgcpp*)
14552 # Portland Group C++ compiler
14553 lt_prog_compiler_wl_CXX='-Wl,'
14554 lt_prog_compiler_pic_CXX='-fpic'
14555 lt_prog_compiler_static_CXX='-Bstatic'
14556 ;;
14557 cxx*)
14558 # Compaq C++
14559 # Make sure the PIC flag is empty. It appears that all Alpha
14560 # Linux and Compaq Tru64 Unix objects are PIC.
14561 lt_prog_compiler_pic_CXX=
14562 lt_prog_compiler_static_CXX='-non_shared'
14563 ;;
ee134472
JF
14564 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14565 # IBM XL 8.0, 9.0 on PPC and BlueGene
9c60689e
DWT
14566 lt_prog_compiler_wl_CXX='-Wl,'
14567 lt_prog_compiler_pic_CXX='-qpic'
14568 lt_prog_compiler_static_CXX='-qstaticlink'
14569 ;;
14570 *)
14571 case `$CC -V 2>&1 | sed 5q` in
14572 *Sun\ C*)
14573 # Sun C++ 5.9
14574 lt_prog_compiler_pic_CXX='-KPIC'
14575 lt_prog_compiler_static_CXX='-Bstatic'
14576 lt_prog_compiler_wl_CXX='-Qoption ld '
14577 ;;
14578 esac
14579 ;;
14580 esac
14581 ;;
14582 lynxos*)
14583 ;;
14584 m88k*)
14585 ;;
14586 mvs*)
14587 case $cc_basename in
14588 cxx*)
14589 lt_prog_compiler_pic_CXX='-W c,exportall'
14590 ;;
14591 *)
14592 ;;
14593 esac
14594 ;;
53ba6704 14595 netbsd*)
9c60689e
DWT
14596 ;;
14597 *qnx* | *nto*)
14598 # QNX uses GNU C++, but need to define -shared option too, otherwise
14599 # it will coredump.
14600 lt_prog_compiler_pic_CXX='-fPIC -shared'
14601 ;;
14602 osf3* | osf4* | osf5*)
14603 case $cc_basename in
14604 KCC*)
14605 lt_prog_compiler_wl_CXX='--backend -Wl,'
14606 ;;
14607 RCC*)
14608 # Rational C++ 2.4.1
14609 lt_prog_compiler_pic_CXX='-pic'
14610 ;;
14611 cxx*)
14612 # Digital/Compaq C++
14613 lt_prog_compiler_wl_CXX='-Wl,'
14614 # Make sure the PIC flag is empty. It appears that all Alpha
14615 # Linux and Compaq Tru64 Unix objects are PIC.
14616 lt_prog_compiler_pic_CXX=
14617 lt_prog_compiler_static_CXX='-non_shared'
14618 ;;
14619 *)
14620 ;;
14621 esac
14622 ;;
14623 psos*)
14624 ;;
14625 solaris*)
14626 case $cc_basename in
ee134472 14627 CC* | sunCC*)
9c60689e
DWT
14628 # Sun C++ 4.2, 5.x and Centerline C++
14629 lt_prog_compiler_pic_CXX='-KPIC'
14630 lt_prog_compiler_static_CXX='-Bstatic'
14631 lt_prog_compiler_wl_CXX='-Qoption ld '
14632 ;;
14633 gcx*)
14634 # Green Hills C++ Compiler
14635 lt_prog_compiler_pic_CXX='-PIC'
14636 ;;
14637 *)
14638 ;;
14639 esac
14640 ;;
14641 sunos4*)
14642 case $cc_basename in
14643 CC*)
14644 # Sun C++ 4.x
14645 lt_prog_compiler_pic_CXX='-pic'
14646 lt_prog_compiler_static_CXX='-Bstatic'
14647 ;;
14648 lcc*)
14649 # Lucid
14650 lt_prog_compiler_pic_CXX='-pic'
14651 ;;
14652 *)
14653 ;;
14654 esac
14655 ;;
14656 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14657 case $cc_basename in
14658 CC*)
14659 lt_prog_compiler_wl_CXX='-Wl,'
14660 lt_prog_compiler_pic_CXX='-KPIC'
14661 lt_prog_compiler_static_CXX='-Bstatic'
14662 ;;
14663 esac
14664 ;;
14665 tandem*)
14666 case $cc_basename in
14667 NCC*)
14668 # NonStop-UX NCC 3.20
14669 lt_prog_compiler_pic_CXX='-KPIC'
14670 ;;
14671 *)
14672 ;;
14673 esac
14674 ;;
14675 vxworks*)
14676 ;;
14677 *)
14678 lt_prog_compiler_can_build_shared_CXX=no
14679 ;;
14680 esac
14681 fi
14682
14683case $host_os in
14684 # For platforms which do not support PIC, -DPIC is meaningless:
14685 *djgpp*)
14686 lt_prog_compiler_pic_CXX=
14687 ;;
14688 *)
14689 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14690 ;;
14691esac
9c60689e 14692
ee134472
JF
14693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14694$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14695if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14696 $as_echo_n "(cached) " >&6
14697else
14698 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14699fi
14700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14701$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14702lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
9c60689e
DWT
14703
14704#
14705# Check to make sure the PIC flag actually works.
14706#
14707if test -n "$lt_prog_compiler_pic_CXX"; then
14708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14709$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
ee134472 14710if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
9c60689e
DWT
14711 $as_echo_n "(cached) " >&6
14712else
14713 lt_cv_prog_compiler_pic_works_CXX=no
14714 ac_outfile=conftest.$ac_objext
14715 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14716 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14717 # Insert the option either (1) after the last *FLAGS variable, or
14718 # (2) before a word containing "conftest.", or (3) at the end.
14719 # Note that $ac_compile itself does not contain backslashes and begins
14720 # with a dollar sign (not a hyphen), so the echo should work correctly.
14721 # The option is referenced via a variable to avoid confusing sed.
14722 lt_compile=`echo "$ac_compile" | $SED \
14723 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14724 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14725 -e 's:$: $lt_compiler_flag:'`
ee134472 14726 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9c60689e
DWT
14727 (eval "$lt_compile" 2>conftest.err)
14728 ac_status=$?
14729 cat conftest.err >&5
ee134472 14730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9c60689e
DWT
14731 if (exit $ac_status) && test -s "$ac_outfile"; then
14732 # The compiler can only warn and ignore the option if not recognized
14733 # So say no if there are warnings other than the usual output.
ee134472 14734 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9c60689e
DWT
14735 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14736 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14737 lt_cv_prog_compiler_pic_works_CXX=yes
14738 fi
14739 fi
00a96142 14740 $RM -r conftest*
9c60689e
DWT
14741
14742fi
14743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14744$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14745
14746if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14747 case $lt_prog_compiler_pic_CXX in
14748 "" | " "*) ;;
14749 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14750 esac
14751else
14752 lt_prog_compiler_pic_CXX=
14753 lt_prog_compiler_can_build_shared_CXX=no
14754fi
14755
14756fi
14757
14758
14759
ee134472
JF
14760
14761
47aaa820
DWT
14762#
14763# Check to make sure the static flag actually works.
14764#
14765wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14767$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
ee134472 14768if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
47aaa820
DWT
14769 $as_echo_n "(cached) " >&6
14770else
14771 lt_cv_prog_compiler_static_works_CXX=no
14772 save_LDFLAGS="$LDFLAGS"
14773 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14774 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14775 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14776 # The linker can only warn and ignore the option if not recognized
14777 # So say no if there are warnings
14778 if test -s conftest.err; then
14779 # Append any errors to the config.log.
14780 cat conftest.err 1>&5
ee134472 14781 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
47aaa820
DWT
14782 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14783 if diff conftest.exp conftest.er2 >/dev/null; then
14784 lt_cv_prog_compiler_static_works_CXX=yes
14785 fi
14786 else
14787 lt_cv_prog_compiler_static_works_CXX=yes
14788 fi
14789 fi
14790 $RM -r conftest*
14791 LDFLAGS="$save_LDFLAGS"
14792
14793fi
14794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14795$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14796
14797if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14798 :
14799else
14800 lt_prog_compiler_static_CXX=
14801fi
14802
14803
14804
14805
14806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14807$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
ee134472 14808if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
47aaa820
DWT
14809 $as_echo_n "(cached) " >&6
14810else
14811 lt_cv_prog_compiler_c_o_CXX=no
14812 $RM -r conftest 2>/dev/null
14813 mkdir conftest
14814 cd conftest
14815 mkdir out
14816 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14817
14818 lt_compiler_flag="-o out/conftest2.$ac_objext"
14819 # Insert the option either (1) after the last *FLAGS variable, or
14820 # (2) before a word containing "conftest.", or (3) at the end.
14821 # Note that $ac_compile itself does not contain backslashes and begins
14822 # with a dollar sign (not a hyphen), so the echo should work correctly.
14823 lt_compile=`echo "$ac_compile" | $SED \
14824 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14825 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14826 -e 's:$: $lt_compiler_flag:'`
ee134472 14827 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
47aaa820
DWT
14828 (eval "$lt_compile" 2>out/conftest.err)
14829 ac_status=$?
14830 cat out/conftest.err >&5
ee134472 14831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47aaa820
DWT
14832 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14833 then
14834 # The compiler can only warn and ignore the option if not recognized
14835 # So say no if there are warnings
ee134472 14836 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
47aaa820
DWT
14837 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14838 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14839 lt_cv_prog_compiler_c_o_CXX=yes
14840 fi
14841 fi
14842 chmod u+w . 2>&5
00a96142 14843 $RM -r conftest*
47aaa820
DWT
14844 # SGI C++ compiler will create directory out/ii_files/ for
14845 # template instantiation
14846 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14847 $RM out/* && rmdir out
14848 cd ..
14849 $RM -r conftest
00a96142 14850 $RM -r conftest*
47aaa820
DWT
14851
14852fi
14853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14854$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14855
14856
14857
14858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14859$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
ee134472 14860if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
47aaa820
DWT
14861 $as_echo_n "(cached) " >&6
14862else
14863 lt_cv_prog_compiler_c_o_CXX=no
14864 $RM -r conftest 2>/dev/null
14865 mkdir conftest
14866 cd conftest
14867 mkdir out
14868 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14869
14870 lt_compiler_flag="-o out/conftest2.$ac_objext"
14871 # Insert the option either (1) after the last *FLAGS variable, or
14872 # (2) before a word containing "conftest.", or (3) at the end.
14873 # Note that $ac_compile itself does not contain backslashes and begins
14874 # with a dollar sign (not a hyphen), so the echo should work correctly.
14875 lt_compile=`echo "$ac_compile" | $SED \
14876 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14877 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14878 -e 's:$: $lt_compiler_flag:'`
ee134472 14879 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
47aaa820
DWT
14880 (eval "$lt_compile" 2>out/conftest.err)
14881 ac_status=$?
14882 cat out/conftest.err >&5
ee134472 14883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47aaa820
DWT
14884 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14885 then
14886 # The compiler can only warn and ignore the option if not recognized
14887 # So say no if there are warnings
ee134472 14888 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
47aaa820
DWT
14889 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14890 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14891 lt_cv_prog_compiler_c_o_CXX=yes
14892 fi
14893 fi
14894 chmod u+w . 2>&5
00a96142 14895 $RM -r conftest*
47aaa820
DWT
14896 # SGI C++ compiler will create directory out/ii_files/ for
14897 # template instantiation
14898 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14899 $RM out/* && rmdir out
14900 cd ..
14901 $RM -r conftest
00a96142 14902 $RM -r conftest*
47aaa820
DWT
14903
14904fi
14905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14906$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14907
14908
14909
14910
14911hard_links="nottested"
14912if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14913 # do not overwrite the value of need_locks provided by the user
14914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14915$as_echo_n "checking if we can lock with hard links... " >&6; }
14916 hard_links=yes
00a96142 14917 $RM -r conftest*
47aaa820
DWT
14918 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14919 touch conftest.a
14920 ln conftest.a conftest.b 2>&5 || hard_links=no
14921 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14923$as_echo "$hard_links" >&6; }
14924 if test "$hard_links" = no; then
14925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14926$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14927 need_locks=warn
14928 fi
14929else
14930 need_locks=no
14931fi
14932
14933
14934
14935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14936$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14937
14938 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
ee134472 14939 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
47aaa820
DWT
14940 case $host_os in
14941 aix[4-9]*)
14942 # If we're using GNU nm, then we don't want the "-C" option.
14943 # -C means demangle to AIX nm, but means don't demangle with GNU nm
ee134472
JF
14944 # Also, AIX nm treats weak defined symbols like other global defined
14945 # symbols, whereas GNU nm marks them as "W".
47aaa820 14946 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
ee134472 14947 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
14948 else
14949 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'
14950 fi
14951 ;;
14952 pw32*)
14953 export_symbols_cmds_CXX="$ltdll_cmds"
ee134472 14954 ;;
47aaa820 14955 cygwin* | mingw* | cegcc*)
ee134472 14956 case $cc_basename in
53ba6704
JF
14957 cl*)
14958 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14959 ;;
ee134472
JF
14960 *)
14961 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'
14962 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14963 ;;
14964 esac
14965 ;;
47aaa820
DWT
14966 *)
14967 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
ee134472 14968 ;;
47aaa820 14969 esac
47aaa820
DWT
14970
14971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14972$as_echo "$ld_shlibs_CXX" >&6; }
14973test "$ld_shlibs_CXX" = no && can_build_shared=no
14974
14975with_gnu_ld_CXX=$with_gnu_ld
14976
14977
14978
14979
14980
14981
14982#
14983# Do we need to explicitly link libc?
14984#
14985case "x$archive_cmds_need_lc_CXX" in
14986x|xyes)
14987 # Assume -lc should be added
14988 archive_cmds_need_lc_CXX=yes
14989
14990 if test "$enable_shared" = yes && test "$GCC" = yes; then
14991 case $archive_cmds_CXX in
14992 *'~'*)
14993 # FIXME: we may have to deal with multi-command sequences.
14994 ;;
14995 '$CC '*)
14996 # Test whether the compiler implicitly links with -lc since on some
14997 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14998 # to ld, don't add -lc before -lgcc.
14999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15000$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
ee134472
JF
15001if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15002 $as_echo_n "(cached) " >&6
15003else
00a96142 15004 $RM -r conftest*
ee134472 15005 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
47aaa820 15006
ee134472 15007 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
47aaa820
DWT
15008 (eval $ac_compile) 2>&5
15009 ac_status=$?
15010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15011 test $ac_status = 0; } 2>conftest.err; then
ee134472
JF
15012 soname=conftest
15013 lib=conftest
15014 libobjs=conftest.$ac_objext
15015 deplibs=
15016 wl=$lt_prog_compiler_wl_CXX
15017 pic_flag=$lt_prog_compiler_pic_CXX
15018 compiler_flags=-v
15019 linker_flags=-v
15020 verstring=
15021 output_objdir=.
15022 libname=conftest
15023 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15024 allow_undefined_flag_CXX=
15025 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
47aaa820
DWT
15026 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15027 ac_status=$?
15028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15029 test $ac_status = 0; }
ee134472
JF
15030 then
15031 lt_cv_archive_cmds_need_lc_CXX=no
15032 else
15033 lt_cv_archive_cmds_need_lc_CXX=yes
15034 fi
15035 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15036 else
15037 cat conftest.err 1>&5
15038 fi
00a96142 15039 $RM -r conftest*
ee134472
JF
15040
15041fi
15042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15043$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15044 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
47aaa820
DWT
15045 ;;
15046 esac
15047 fi
15048 ;;
15049esac
15050
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
47aaa820
DWT
15109
15110
15111
15112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15113$as_echo_n "checking dynamic linker characteristics... " >&6; }
15114
15115library_names_spec=
15116libname_spec='lib$name'
15117soname_spec=
15118shrext_cmds=".so"
15119postinstall_cmds=
15120postuninstall_cmds=
15121finish_cmds=
15122finish_eval=
15123shlibpath_var=
15124shlibpath_overrides_runpath=unknown
15125version_type=none
15126dynamic_linker="$host_os ld.so"
15127sys_lib_dlsearch_path_spec="/lib /usr/lib"
15128need_lib_prefix=unknown
15129hardcode_into_libs=no
15130
15131# when you set need_version to no, make sure it does not cause -set_version
15132# flags to be left without arguments
15133need_version=unknown
15134
15135case $host_os in
15136aix3*)
53ba6704 15137 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15138 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15139 shlibpath_var=LIBPATH
15140
15141 # AIX 3 has no versioning support, so we append a major version to the name.
15142 soname_spec='${libname}${release}${shared_ext}$major'
15143 ;;
15144
15145aix[4-9]*)
53ba6704 15146 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15147 need_lib_prefix=no
15148 need_version=no
15149 hardcode_into_libs=yes
15150 if test "$host_cpu" = ia64; then
15151 # AIX 5 supports IA64
15152 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15153 shlibpath_var=LD_LIBRARY_PATH
15154 else
15155 # With GCC up to 2.95.x, collect2 would create an import file
15156 # for dependence libraries. The import file would start with
15157 # the line `#! .'. This would cause the generated library to
15158 # depend on `.', always an invalid library. This was fixed in
15159 # development snapshots of GCC prior to 3.0.
15160 case $host_os in
15161 aix4 | aix4.[01] | aix4.[01].*)
15162 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15163 echo ' yes '
15164 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15165 :
15166 else
15167 can_build_shared=no
15168 fi
15169 ;;
15170 esac
15171 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15172 # soname into executable. Probably we can add versioning support to
15173 # collect2, so additional links can be useful in future.
15174 if test "$aix_use_runtimelinking" = yes; then
15175 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15176 # instead of lib<name>.a to let people know that these are not
15177 # typical AIX shared libraries.
15178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15179 else
15180 # We preserve .a as extension for shared libraries through AIX4.2
15181 # and later when we are not doing run time linking.
15182 library_names_spec='${libname}${release}.a $libname.a'
15183 soname_spec='${libname}${release}${shared_ext}$major'
15184 fi
15185 shlibpath_var=LIBPATH
15186 fi
15187 ;;
15188
15189amigaos*)
15190 case $host_cpu in
15191 powerpc)
15192 # Since July 2007 AmigaOS4 officially supports .so libraries.
15193 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15195 ;;
15196 m68k)
15197 library_names_spec='$libname.ixlibrary $libname.a'
15198 # Create ${libname}_ixlibrary.a entries in /sys/libs.
ee134472 15199 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
15200 ;;
15201 esac
15202 ;;
15203
15204beos*)
15205 library_names_spec='${libname}${shared_ext}'
15206 dynamic_linker="$host_os ld.so"
15207 shlibpath_var=LIBRARY_PATH
15208 ;;
15209
15210bsdi[45]*)
53ba6704 15211 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15212 need_version=no
15213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15214 soname_spec='${libname}${release}${shared_ext}$major'
15215 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15216 shlibpath_var=LD_LIBRARY_PATH
15217 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15218 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15219 # the default ld.so.conf also contains /usr/contrib/lib and
15220 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15221 # libtool to hard-code these into programs
15222 ;;
9c60689e 15223
47aaa820
DWT
15224cygwin* | mingw* | pw32* | cegcc*)
15225 version_type=windows
15226 shrext_cmds=".dll"
15227 need_version=no
15228 need_lib_prefix=no
9c60689e 15229
ee134472
JF
15230 case $GCC,$cc_basename in
15231 yes,*)
15232 # gcc
47aaa820
DWT
15233 library_names_spec='$libname.dll.a'
15234 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15235 postinstall_cmds='base_file=`basename \${file}`~
15236 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15237 dldir=$destdir/`dirname \$dlpath`~
15238 test -d \$dldir || mkdir -p \$dldir~
15239 $install_prog $dir/$dlname \$dldir/$dlname~
15240 chmod a+x \$dldir/$dlname~
15241 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15242 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15243 fi'
15244 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15245 dlpath=$dir/\$dldll~
15246 $RM \$dlpath'
15247 shlibpath_overrides_runpath=yes
9c60689e 15248
47aaa820
DWT
15249 case $host_os in
15250 cygwin*)
15251 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15252 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
ee134472 15253
47aaa820
DWT
15254 ;;
15255 mingw* | cegcc*)
15256 # MinGW DLLs use traditional 'lib' prefix
15257 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
47aaa820
DWT
15258 ;;
15259 pw32*)
15260 # pw32 DLLs use 'pw' prefix rather than 'lib'
15261 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15262 ;;
15263 esac
ee134472
JF
15264 dynamic_linker='Win32 ld.exe'
15265 ;;
15266
15267 *,cl*)
15268 # Native MSVC
15269 libname_spec='$name'
15270 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15271 library_names_spec='${libname}.dll.lib'
15272
15273 case $build_os in
15274 mingw*)
15275 sys_lib_search_path_spec=
15276 lt_save_ifs=$IFS
15277 IFS=';'
15278 for lt_path in $LIB
15279 do
15280 IFS=$lt_save_ifs
15281 # Let DOS variable expansion print the short 8.3 style file name.
15282 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15283 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15284 done
15285 IFS=$lt_save_ifs
15286 # Convert to MSYS style.
15287 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15288 ;;
15289 cygwin*)
15290 # Convert to unix form, then to dos form, then back to unix form
15291 # but this time dos style (no spaces!) so that the unix form looks
15292 # like /cygdrive/c/PROGRA~1:/cygdr...
15293 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15294 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15295 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15296 ;;
15297 *)
15298 sys_lib_search_path_spec="$LIB"
15299 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15300 # It is most probably a Windows format PATH.
15301 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15302 else
15303 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15304 fi
15305 # FIXME: find the short name or the path components, as spaces are
15306 # common. (e.g. "Program Files" -> "PROGRA~1")
15307 ;;
15308 esac
15309
15310 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15311 postinstall_cmds='base_file=`basename \${file}`~
15312 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15313 dldir=$destdir/`dirname \$dlpath`~
15314 test -d \$dldir || mkdir -p \$dldir~
15315 $install_prog $dir/$dlname \$dldir/$dlname'
15316 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15317 dlpath=$dir/\$dldll~
15318 $RM \$dlpath'
15319 shlibpath_overrides_runpath=yes
15320 dynamic_linker='Win32 link.exe'
47aaa820 15321 ;;
9c60689e 15322
47aaa820 15323 *)
ee134472 15324 # Assume MSVC wrapper
47aaa820 15325 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
ee134472 15326 dynamic_linker='Win32 ld.exe'
47aaa820
DWT
15327 ;;
15328 esac
47aaa820
DWT
15329 # FIXME: first we should search . and the directory the executable is in
15330 shlibpath_var=PATH
15331 ;;
9c60689e 15332
47aaa820
DWT
15333darwin* | rhapsody*)
15334 dynamic_linker="$host_os dyld"
15335 version_type=darwin
15336 need_lib_prefix=no
15337 need_version=no
15338 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15339 soname_spec='${libname}${release}${major}$shared_ext'
15340 shlibpath_overrides_runpath=yes
15341 shlibpath_var=DYLD_LIBRARY_PATH
15342 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9c60689e 15343
47aaa820
DWT
15344 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15345 ;;
9c60689e 15346
47aaa820 15347dgux*)
53ba6704 15348 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15349 need_lib_prefix=no
15350 need_version=no
15351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15352 soname_spec='${libname}${release}${shared_ext}$major'
15353 shlibpath_var=LD_LIBRARY_PATH
15354 ;;
9c60689e 15355
47aaa820
DWT
15356freebsd* | dragonfly*)
15357 # DragonFly does not have aout. When/if they implement a new
15358 # versioning mechanism, adjust this.
15359 if test -x /usr/bin/objformat; then
15360 objformat=`/usr/bin/objformat`
15361 else
15362 case $host_os in
53ba6704 15363 freebsd[23].*) objformat=aout ;;
47aaa820
DWT
15364 *) objformat=elf ;;
15365 esac
15366 fi
15367 version_type=freebsd-$objformat
15368 case $version_type in
15369 freebsd-elf*)
15370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15371 need_version=no
15372 need_lib_prefix=no
15373 ;;
15374 freebsd-*)
15375 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15376 need_version=yes
15377 ;;
15378 esac
15379 shlibpath_var=LD_LIBRARY_PATH
15380 case $host_os in
53ba6704 15381 freebsd2.*)
47aaa820
DWT
15382 shlibpath_overrides_runpath=yes
15383 ;;
15384 freebsd3.[01]* | freebsdelf3.[01]*)
15385 shlibpath_overrides_runpath=yes
15386 hardcode_into_libs=yes
15387 ;;
15388 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15389 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15390 shlibpath_overrides_runpath=no
15391 hardcode_into_libs=yes
15392 ;;
15393 *) # from 4.6 on, and DragonFly
15394 shlibpath_overrides_runpath=yes
15395 hardcode_into_libs=yes
15396 ;;
15397 esac
15398 ;;
9c60689e 15399
47aaa820 15400gnu*)
53ba6704 15401 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15402 need_lib_prefix=no
15403 need_version=no
15404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15405 soname_spec='${libname}${release}${shared_ext}$major'
15406 shlibpath_var=LD_LIBRARY_PATH
ee134472
JF
15407 shlibpath_overrides_runpath=no
15408 hardcode_into_libs=yes
15409 ;;
15410
15411haiku*)
53ba6704 15412 version_type=linux # correct to gnu/linux during the next big refactor
ee134472
JF
15413 need_lib_prefix=no
15414 need_version=no
15415 dynamic_linker="$host_os runtime_loader"
15416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15417 soname_spec='${libname}${release}${shared_ext}$major'
15418 shlibpath_var=LIBRARY_PATH
15419 shlibpath_overrides_runpath=yes
15420 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
47aaa820
DWT
15421 hardcode_into_libs=yes
15422 ;;
9c60689e 15423
47aaa820
DWT
15424hpux9* | hpux10* | hpux11*)
15425 # Give a soname corresponding to the major version so that dld.sl refuses to
15426 # link against other versions.
15427 version_type=sunos
15428 need_lib_prefix=no
15429 need_version=no
15430 case $host_cpu in
15431 ia64*)
15432 shrext_cmds='.so'
15433 hardcode_into_libs=yes
15434 dynamic_linker="$host_os dld.so"
15435 shlibpath_var=LD_LIBRARY_PATH
15436 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15438 soname_spec='${libname}${release}${shared_ext}$major'
15439 if test "X$HPUX_IA64_MODE" = X32; then
15440 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15441 else
15442 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15443 fi
15444 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15445 ;;
15446 hppa*64*)
15447 shrext_cmds='.sl'
15448 hardcode_into_libs=yes
15449 dynamic_linker="$host_os dld.sl"
15450 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15451 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15453 soname_spec='${libname}${release}${shared_ext}$major'
15454 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15455 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15456 ;;
15457 *)
15458 shrext_cmds='.sl'
15459 dynamic_linker="$host_os dld.sl"
15460 shlibpath_var=SHLIB_PATH
15461 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15463 soname_spec='${libname}${release}${shared_ext}$major'
15464 ;;
15465 esac
ee134472 15466 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
47aaa820 15467 postinstall_cmds='chmod 555 $lib'
ee134472
JF
15468 # or fails outright, so override atomically:
15469 install_override_mode=555
47aaa820 15470 ;;
9c60689e 15471
47aaa820 15472interix[3-9]*)
53ba6704 15473 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15474 need_lib_prefix=no
15475 need_version=no
15476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15477 soname_spec='${libname}${release}${shared_ext}$major'
15478 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15479 shlibpath_var=LD_LIBRARY_PATH
15480 shlibpath_overrides_runpath=no
15481 hardcode_into_libs=yes
15482 ;;
9c60689e 15483
47aaa820
DWT
15484irix5* | irix6* | nonstopux*)
15485 case $host_os in
15486 nonstopux*) version_type=nonstopux ;;
15487 *)
15488 if test "$lt_cv_prog_gnu_ld" = yes; then
53ba6704 15489 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15490 else
15491 version_type=irix
15492 fi ;;
15493 esac
15494 need_lib_prefix=no
15495 need_version=no
15496 soname_spec='${libname}${release}${shared_ext}$major'
15497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15498 case $host_os in
15499 irix5* | nonstopux*)
15500 libsuff= shlibsuff=
15501 ;;
15502 *)
15503 case $LD in # libtool.m4 will add one of these switches to LD
15504 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15505 libsuff= shlibsuff= libmagic=32-bit;;
15506 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15507 libsuff=32 shlibsuff=N32 libmagic=N32;;
15508 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15509 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15510 *) libsuff= shlibsuff= libmagic=never-match;;
15511 esac
15512 ;;
15513 esac
15514 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15515 shlibpath_overrides_runpath=no
15516 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15517 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15518 hardcode_into_libs=yes
15519 ;;
9c60689e 15520
47aaa820
DWT
15521# No shared lib support for Linux oldld, aout, or coff.
15522linux*oldld* | linux*aout* | linux*coff*)
15523 dynamic_linker=no
15524 ;;
9c60689e 15525
53ba6704 15526# This must be glibc/ELF.
1504c9b8 15527linux* | k*bsd*-gnu | kopensolaris*-gnu)
53ba6704 15528 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15529 need_lib_prefix=no
15530 need_version=no
15531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15532 soname_spec='${libname}${release}${shared_ext}$major'
15533 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15534 shlibpath_var=LD_LIBRARY_PATH
15535 shlibpath_overrides_runpath=no
ee134472 15536
47aaa820 15537 # Some binutils ld are patched to set DT_RUNPATH
ee134472
JF
15538 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15539 $as_echo_n "(cached) " >&6
15540else
15541 lt_cv_shlibpath_overrides_runpath=no
15542 save_LDFLAGS=$LDFLAGS
15543 save_libdir=$libdir
15544 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15545 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47aaa820 15547/* end confdefs.h. */
9c60689e 15548
47aaa820
DWT
15549int
15550main ()
15551{
9c60689e 15552
47aaa820
DWT
15553 ;
15554 return 0;
15555}
15556_ACEOF
15557if ac_fn_cxx_try_link "$LINENO"; then :
15558 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
ee134472 15559 lt_cv_shlibpath_overrides_runpath=yes
9c60689e 15560fi
47aaa820
DWT
15561fi
15562rm -f core conftest.err conftest.$ac_objext \
15563 conftest$ac_exeext conftest.$ac_ext
ee134472
JF
15564 LDFLAGS=$save_LDFLAGS
15565 libdir=$save_libdir
15566
15567fi
15568
15569 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
9c60689e 15570
47aaa820
DWT
15571 # This implies no fast_install, which is unacceptable.
15572 # Some rework will be needed to allow for fast_install
15573 # before this can be enabled.
15574 hardcode_into_libs=yes
9c60689e 15575
47aaa820
DWT
15576 # Append ld.so.conf contents to the search path
15577 if test -f /etc/ld.so.conf; then
ee134472 15578 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
15579 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15580 fi
9c60689e 15581
47aaa820
DWT
15582 # We used to test for /lib/ld.so.1 and disable shared libraries on
15583 # powerpc, because MkLinux only supported shared libraries with the
15584 # GNU dynamic linker. Since this was broken with cross compilers,
15585 # most powerpc-linux boxes support dynamic linking these days and
15586 # people can always --disable-shared, the test was removed, and we
15587 # assume the GNU/Linux dynamic linker is in use.
15588 dynamic_linker='GNU/Linux ld.so'
9c60689e 15589 ;;
47aaa820 15590
47aaa820
DWT
15591netbsd*)
15592 version_type=sunos
15593 need_lib_prefix=no
15594 need_version=no
15595 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15597 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15598 dynamic_linker='NetBSD (a.out) ld.so'
15599 else
15600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15601 soname_spec='${libname}${release}${shared_ext}$major'
15602 dynamic_linker='NetBSD ld.elf_so'
15603 fi
15604 shlibpath_var=LD_LIBRARY_PATH
15605 shlibpath_overrides_runpath=yes
15606 hardcode_into_libs=yes
9c60689e 15607 ;;
9c60689e 15608
47aaa820 15609newsos6)
53ba6704 15610 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15612 shlibpath_var=LD_LIBRARY_PATH
15613 shlibpath_overrides_runpath=yes
15614 ;;
9c60689e 15615
47aaa820
DWT
15616*nto* | *qnx*)
15617 version_type=qnx
15618 need_lib_prefix=no
15619 need_version=no
15620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15621 soname_spec='${libname}${release}${shared_ext}$major'
15622 shlibpath_var=LD_LIBRARY_PATH
15623 shlibpath_overrides_runpath=no
15624 hardcode_into_libs=yes
15625 dynamic_linker='ldqnx.so'
15626 ;;
9c60689e 15627
47aaa820
DWT
15628openbsd*)
15629 version_type=sunos
15630 sys_lib_dlsearch_path_spec="/usr/lib"
15631 need_lib_prefix=no
15632 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15633 case $host_os in
15634 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15635 *) need_version=no ;;
15636 esac
15637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15638 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15639 shlibpath_var=LD_LIBRARY_PATH
15640 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15641 case $host_os in
15642 openbsd2.[89] | openbsd2.[89].*)
15643 shlibpath_overrides_runpath=no
15644 ;;
15645 *)
15646 shlibpath_overrides_runpath=yes
15647 ;;
15648 esac
15649 else
15650 shlibpath_overrides_runpath=yes
15651 fi
15652 ;;
9c60689e 15653
47aaa820
DWT
15654os2*)
15655 libname_spec='$name'
15656 shrext_cmds=".dll"
15657 need_lib_prefix=no
15658 library_names_spec='$libname${shared_ext} $libname.a'
15659 dynamic_linker='OS/2 ld.exe'
15660 shlibpath_var=LIBPATH
15661 ;;
9c60689e 15662
47aaa820
DWT
15663osf3* | osf4* | osf5*)
15664 version_type=osf
15665 need_lib_prefix=no
15666 need_version=no
15667 soname_spec='${libname}${release}${shared_ext}$major'
15668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15669 shlibpath_var=LD_LIBRARY_PATH
15670 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15671 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15672 ;;
9c60689e 15673
47aaa820
DWT
15674rdos*)
15675 dynamic_linker=no
15676 ;;
9c60689e 15677
47aaa820 15678solaris*)
53ba6704 15679 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15680 need_lib_prefix=no
15681 need_version=no
15682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15683 soname_spec='${libname}${release}${shared_ext}$major'
15684 shlibpath_var=LD_LIBRARY_PATH
15685 shlibpath_overrides_runpath=yes
15686 hardcode_into_libs=yes
15687 # ldd complains unless libraries are executable
15688 postinstall_cmds='chmod +x $lib'
15689 ;;
9c60689e 15690
47aaa820
DWT
15691sunos4*)
15692 version_type=sunos
15693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15694 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15695 shlibpath_var=LD_LIBRARY_PATH
15696 shlibpath_overrides_runpath=yes
15697 if test "$with_gnu_ld" = yes; then
15698 need_lib_prefix=no
15699 fi
15700 need_version=yes
15701 ;;
9c60689e 15702
47aaa820 15703sysv4 | sysv4.3*)
53ba6704 15704 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15706 soname_spec='${libname}${release}${shared_ext}$major'
15707 shlibpath_var=LD_LIBRARY_PATH
15708 case $host_vendor in
15709 sni)
15710 shlibpath_overrides_runpath=no
15711 need_lib_prefix=no
15712 runpath_var=LD_RUN_PATH
9c60689e 15713 ;;
47aaa820
DWT
15714 siemens)
15715 need_lib_prefix=no
9c60689e 15716 ;;
47aaa820
DWT
15717 motorola)
15718 need_lib_prefix=no
15719 need_version=no
15720 shlibpath_overrides_runpath=no
15721 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15722 ;;
15723 esac
9c60689e 15724 ;;
9c60689e 15725
47aaa820
DWT
15726sysv4*MP*)
15727 if test -d /usr/nec ;then
53ba6704 15728 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15729 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15730 soname_spec='$libname${shared_ext}.$major'
15731 shlibpath_var=LD_LIBRARY_PATH
15732 fi
15733 ;;
9c60689e 15734
47aaa820
DWT
15735sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15736 version_type=freebsd-elf
15737 need_lib_prefix=no
15738 need_version=no
15739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15740 soname_spec='${libname}${release}${shared_ext}$major'
15741 shlibpath_var=LD_LIBRARY_PATH
15742 shlibpath_overrides_runpath=yes
15743 hardcode_into_libs=yes
15744 if test "$with_gnu_ld" = yes; then
15745 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15746 else
15747 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15748 case $host_os in
15749 sco3.2v5*)
15750 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15751 ;;
15752 esac
15753 fi
15754 sys_lib_dlsearch_path_spec='/usr/lib'
15755 ;;
9c60689e 15756
47aaa820
DWT
15757tpf*)
15758 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
53ba6704 15759 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15760 need_lib_prefix=no
15761 need_version=no
15762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15763 shlibpath_var=LD_LIBRARY_PATH
15764 shlibpath_overrides_runpath=no
15765 hardcode_into_libs=yes
15766 ;;
9c60689e 15767
47aaa820 15768uts4*)
53ba6704 15769 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15771 soname_spec='${libname}${release}${shared_ext}$major'
15772 shlibpath_var=LD_LIBRARY_PATH
15773 ;;
9c60689e 15774
47aaa820
DWT
15775*)
15776 dynamic_linker=no
e9c9a47c
DWT
15777 ;;
15778esac
15779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15780$as_echo "$dynamic_linker" >&6; }
15781test "$dynamic_linker" = no && can_build_shared=no
15782
15783variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15784if test "$GCC" = yes; then
15785 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
47aaa820 15786fi
9c60689e 15787
e9c9a47c
DWT
15788if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15789 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
47aaa820 15790fi
e9c9a47c
DWT
15791if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15792 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
47aaa820 15793fi
9c60689e 15794
9c60689e 15795
9c60689e 15796
9c60689e 15797
47aaa820 15798
47aaa820 15799
47aaa820 15800
9c60689e 15801
9c60689e 15802
47aaa820 15803
47aaa820 15804
47aaa820 15805
47aaa820 15806
47aaa820 15807
47aaa820 15808
47aaa820 15809
47aaa820 15810
9c60689e 15811
9c60689e 15812
9c60689e 15813
9c60689e 15814
9c60689e 15815
e9c9a47c
DWT
15816
15817
15818
15819
15820
15821
15822
15823
15824
15825
15826
ee134472
JF
15827
15828
e9c9a47c
DWT
15829
15830
15831
15832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15833$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15834hardcode_action_CXX=
15835if test -n "$hardcode_libdir_flag_spec_CXX" ||
15836 test -n "$runpath_var_CXX" ||
15837 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15838
15839 # We can hardcode non-existent directories.
15840 if test "$hardcode_direct_CXX" != no &&
15841 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15842 # have to relink, otherwise we might link with an installed library
15843 # when we should be linking with a yet-to-be-installed one
15844 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15845 test "$hardcode_minus_L_CXX" != no; then
15846 # Linking always hardcodes the temporary library directory.
15847 hardcode_action_CXX=relink
15848 else
15849 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15850 hardcode_action_CXX=immediate
15851 fi
15852else
15853 # We cannot hardcode anything, or else we can only hardcode existing
15854 # directories.
15855 hardcode_action_CXX=unsupported
15856fi
15857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15858$as_echo "$hardcode_action_CXX" >&6; }
15859
15860if test "$hardcode_action_CXX" = relink ||
15861 test "$inherit_rpath_CXX" = yes; then
15862 # Fast installation is not supported
15863 enable_fast_install=no
15864elif test "$shlibpath_overrides_runpath" = yes ||
15865 test "$enable_shared" = no; then
15866 # Fast installation is not necessary
15867 enable_fast_install=needless
47aaa820 15868fi
9c60689e 15869
47aaa820 15870
47aaa820 15871
e9c9a47c
DWT
15872
15873
15874
15875
a243b558
JF
15876 fi # test -n "$compiler"
15877
15878 CC=$lt_save_CC
15879 CFLAGS=$lt_save_CFLAGS
15880 LDCXX=$LD
15881 LD=$lt_save_LD
15882 GCC=$lt_save_GCC
15883 with_gnu_ld=$lt_save_with_gnu_ld
15884 lt_cv_path_LDCXX=$lt_cv_path_LD
15885 lt_cv_path_LD=$lt_save_path_LD
15886 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15887 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15888fi # test "$_lt_caught_CXX_error" != yes
15889
15890ac_ext=c
15891ac_cpp='$CPP $CPPFLAGS'
15892ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15893ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15894ac_compiler_gnu=$ac_cv_c_compiler_gnu
15895
15896
15897
15898
15899
15900
15901
15902
15903
15904
15905
15906
15907
15908
15909
15910 ac_config_commands="$ac_config_commands libtool"
15911
15912
15913
15914
15915# Only expand once:
15916
15917
15918
15919ac_ext=cpp
15920ac_cpp='$CXXCPP $CPPFLAGS'
15921ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15922ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15923ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15924
15925
15926
15927
15928
15929
15930
15931
15932if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
15933 if test -n "$ac_tool_prefix"; then
15934 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
15935set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
15936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15937$as_echo_n "checking for $ac_word... " >&6; }
15938if ${ac_cv_path_PKG_CONFIG+:} false; then :
15939 $as_echo_n "(cached) " >&6
15940else
15941 case $PKG_CONFIG in
15942 [\\/]* | ?:[\\/]*)
15943 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
15944 ;;
15945 *)
15946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15947for as_dir in $PATH
15948do
15949 IFS=$as_save_IFS
15950 test -z "$as_dir" && as_dir=.
15951 for ac_exec_ext in '' $ac_executable_extensions; do
15952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15953 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15955 break 2
15956 fi
15957done
15958 done
15959IFS=$as_save_IFS
15960
15961 ;;
15962esac
15963fi
15964PKG_CONFIG=$ac_cv_path_PKG_CONFIG
15965if test -n "$PKG_CONFIG"; then
15966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
15967$as_echo "$PKG_CONFIG" >&6; }
15968else
15969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15970$as_echo "no" >&6; }
15971fi
15972
15973
15974fi
15975if test -z "$ac_cv_path_PKG_CONFIG"; then
15976 ac_pt_PKG_CONFIG=$PKG_CONFIG
15977 # Extract the first word of "pkg-config", so it can be a program name with args.
15978set dummy pkg-config; ac_word=$2
15979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15980$as_echo_n "checking for $ac_word... " >&6; }
15981if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
15982 $as_echo_n "(cached) " >&6
15983else
15984 case $ac_pt_PKG_CONFIG in
15985 [\\/]* | ?:[\\/]*)
15986 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
15987 ;;
15988 *)
15989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15990for as_dir in $PATH
15991do
15992 IFS=$as_save_IFS
15993 test -z "$as_dir" && as_dir=.
15994 for ac_exec_ext in '' $ac_executable_extensions; do
15995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15996 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15998 break 2
15999 fi
16000done
16001 done
16002IFS=$as_save_IFS
16003
16004 ;;
16005esac
16006fi
16007ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
16008if test -n "$ac_pt_PKG_CONFIG"; then
16009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
16010$as_echo "$ac_pt_PKG_CONFIG" >&6; }
16011else
16012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16013$as_echo "no" >&6; }
16014fi
16015
16016 if test "x$ac_pt_PKG_CONFIG" = x; then
16017 PKG_CONFIG=""
16018 else
16019 case $cross_compiling:$ac_tool_warned in
16020yes:)
16021{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16022$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16023ac_tool_warned=yes ;;
16024esac
16025 PKG_CONFIG=$ac_pt_PKG_CONFIG
16026 fi
16027else
16028 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
16029fi
16030
16031fi
16032if test -n "$PKG_CONFIG"; then
16033 _pkg_min_version=0.22
16034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
16035$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
16036 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
16037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16038$as_echo "yes" >&6; }
16039 else
16040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16041$as_echo "no" >&6; }
16042 PKG_CONFIG=""
16043 fi
16044fi
16045
a243b558
JF
16046# Extract the first word of "git", so it can be a program name with args.
16047set dummy git; ac_word=$2
16048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16049$as_echo_n "checking for $ac_word... " >&6; }
16050if ${ac_cv_path_GIT+:} false; then :
16051 $as_echo_n "(cached) " >&6
16052else
16053 case $GIT in
16054 [\\/]* | ?:[\\/]*)
16055 ac_cv_path_GIT="$GIT" # Let the user override the test with a path.
16056 ;;
16057 *)
16058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16059for as_dir in $PATH
16060do
16061 IFS=$as_save_IFS
16062 test -z "$as_dir" && as_dir=.
16063 for ac_exec_ext in '' $ac_executable_extensions; do
16064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16065 ac_cv_path_GIT="$as_dir/$ac_word$ac_exec_ext"
16066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16067 break 2
16068 fi
16069done
16070 done
16071IFS=$as_save_IFS
e9c9a47c 16072
a243b558
JF
16073 ;;
16074esac
16075fi
16076GIT=$ac_cv_path_GIT
16077if test -n "$GIT"; then
16078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
16079$as_echo "$GIT" >&6; }
16080else
16081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16082$as_echo "no" >&6; }
16083fi
e9c9a47c
DWT
16084
16085
a243b558
JF
16086# Extract the first word of "time", so it can be a program name with args.
16087set dummy time; ac_word=$2
632b71ea
DWT
16088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16089$as_echo_n "checking for $ac_word... " >&6; }
a243b558 16090if ${ac_cv_path_TIME+:} false; then :
632b71ea
DWT
16091 $as_echo_n "(cached) " >&6
16092else
a243b558
JF
16093 case $TIME in
16094 [\\/]* | ?:[\\/]*)
16095 ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
16096 ;;
16097 *)
16098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
632b71ea
DWT
16099for as_dir in $PATH
16100do
16101 IFS=$as_save_IFS
16102 test -z "$as_dir" && as_dir=.
16103 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 16104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 16105 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
632b71ea
DWT
16106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16107 break 2
16108 fi
16109done
16110 done
16111IFS=$as_save_IFS
16112
a243b558
JF
16113 ;;
16114esac
632b71ea 16115fi
a243b558
JF
16116TIME=$ac_cv_path_TIME
16117if test -n "$TIME"; then
16118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
16119$as_echo "$TIME" >&6; }
632b71ea
DWT
16120else
16121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16122$as_echo "no" >&6; }
16123fi
16124
16125
a243b558
JF
16126
16127
16128
16129
16130
16131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bison >= 2.3" >&5
16132$as_echo_n "checking for bison >= 2.3... " >&6; }
16133 if test -z "$BISON"; then
16134 ac_path_BISON_found=false
16135 # Loop through the user's path and test for each of PROGNAME-LIST
16136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16137for as_dir in $PATH
16138do
16139 IFS=$as_save_IFS
16140 test -z "$as_dir" && as_dir=.
16141 for ac_prog in bison; do
16142 for ac_exec_ext in '' $ac_executable_extensions; do
16143 ac_path_BISON="$as_dir/$ac_prog$ac_exec_ext"
16144 as_fn_executable_p "$ac_path_BISON" || continue
16145version=`$ac_path_BISON -V | $SED -e '1 s/^bison (GNU Bison) \(.*\)$/\1/p;d'`
16146 if ${version:+false} :; then :
16147
16148else
16149 as_awk_strverscmp='
16150 # Use only awk features that work with 7th edition Unix awk (1978).
16151 # My, what an old awk you have, Mr. Solaris!
16152 END {
16153 while (length(v1) && length(v2)) {
16154 # Set d1 to be the next thing to compare from v1, and likewise for d2.
16155 # Normally this is a single character, but if v1 and v2 contain digits,
16156 # compare them as integers and fractions as strverscmp does.
16157 if (v1 ~ /^0-9/ && v2 ~ /^0-9/) {
16158 # Split v1 and v2 into their leading digit string components d1 and d2,
16159 # and advance v1 and v2 past the leading digit strings.
16160 for (len1 = 1; substr(v1, len1 + 1) ~ /^0-9/; len1++) continue
16161 for (len2 = 1; substr(v2, len2 + 1) ~ /^0-9/; len2++) continue
16162 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
16163 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
16164 if (d1 ~ /^0/) {
16165 if (d2 ~ /^0/) {
16166 # Compare two fractions.
16167 while (d1 ~ /^0/ && d2 ~ /^0/) {
16168 d1 = substr(d1, 2); len1--
16169 d2 = substr(d2, 2); len2--
16170 }
16171 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
16172 # The two components differ in length, and the common prefix
16173 # contains only leading zeros. Consider the longer to be less.
16174 d1 = -len1
16175 d2 = -len2
16176 } else {
16177 # Otherwise, compare as strings.
16178 d1 = "x" d1
16179 d2 = "x" d2
16180 }
16181 } else {
16182 # A fraction is less than an integer.
16183 exit 1
16184 }
16185 } else {
16186 if (d2 ~ /^0/) {
16187 # An integer is greater than a fraction.
16188 exit 2
16189 } else {
16190 # Compare two integers.
16191 d1 += 0
16192 d2 += 0
16193 }
16194 }
16195 } else {
16196 # The normal case, without worrying about digits.
16197 d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
16198 d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
16199 }
16200 if (d1 < d2) exit 1
16201 if (d1 > d2) exit 2
16202 }
16203 # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
16204 # which mishandles some comparisons of empty strings to integers.
16205 if (length(v2)) exit 1
16206 if (length(v1)) exit 2
16207 }
16208'
16209as_arg_v1=$version
16210as_arg_v2=2.3
16211awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
16212case $? in #(
16213 1) :
16214 ;; #(
16215 0) :
16216 ac_cv_path_BISON=$ac_path_BISON ;; #(
16217 2) :
16218 ac_cv_path_BISON=$ac_path_BISON ;; #(
16219 *) :
16220 ;;
16221esac
16222fi
16223
16224 $ac_path_BISON_found && break 3
16225 done
16226 done
e9c9a47c 16227 done
a243b558
JF
16228IFS=$as_save_IFS
16229 if test -z "$ac_cv_path_BISON"; then
16230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16231$as_echo "no" >&6; }
16232 fi
16233else
16234 ac_cv_path_BISON=$BISON
632b71ea 16235fi
a243b558
JF
16236
16237
16238 if true; then :
16239
16240 BISON=$ac_cv_path_BISON
16241
16242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
16243$as_echo "$BISON" >&6; }
16244
47aaa820 16245else
a243b558
JF
16246 if true; then :
16247
16248 as_fn_error $? "You need bison 2.3 or greater" "$LINENO" 5
16249
47aaa820 16250else
a243b558
JF
16251
16252 BISON=:
16253
16254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16255$as_echo "no" >&6; }
16256
16257fi
16258fi
16259
16260
16261
16262
16263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flex >= 2.5.33" >&5
16264$as_echo_n "checking for flex >= 2.5.33... " >&6; }
16265 if test -z "$FLEX"; then
16266 ac_path_FLEX_found=false
16267 # Loop through the user's path and test for each of PROGNAME-LIST
16268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47aaa820
DWT
16269for as_dir in $PATH
16270do
16271 IFS=$as_save_IFS
16272 test -z "$as_dir" && as_dir=.
a243b558 16273 for ac_prog in flex; do
47aaa820 16274 for ac_exec_ext in '' $ac_executable_extensions; do
a243b558
JF
16275 ac_path_FLEX="$as_dir/$ac_prog$ac_exec_ext"
16276 as_fn_executable_p "$ac_path_FLEX" || continue
16277version=`$ac_path_FLEX --version | $SED -e '1 s/^[^0-9.]* \([0-9.]*\).*$/\1/p;d'`
16278 if ${version:+false} :; then :
9c60689e 16279
47aaa820 16280else
a243b558
JF
16281 as_arg_v1=$version
16282as_arg_v2=2.5.33
16283awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
16284case $? in #(
16285 1) :
16286 ;; #(
16287 0) :
16288 ac_cv_path_FLEX=$ac_path_FLEX ;; #(
16289 2) :
16290 ac_cv_path_FLEX=$ac_path_FLEX ;; #(
16291 *) :
16292 ;;
16293esac
16294fi
16295
16296 $ac_path_FLEX_found && break 3
16297 done
16298 done
16299 done
16300IFS=$as_save_IFS
16301 if test -z "$ac_cv_path_FLEX"; then
16302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47aaa820 16303$as_echo "no" >&6; }
a243b558
JF
16304 fi
16305else
16306 ac_cv_path_FLEX=$FLEX
9c60689e
DWT
16307fi
16308
16309
a243b558 16310 if true; then :
e9c9a47c 16311
a243b558 16312 FLEX=$ac_cv_path_FLEX
e9c9a47c 16313
a243b558
JF
16314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
16315$as_echo "$FLEX" >&6; }
9c60689e 16316
632b71ea 16317else
a243b558 16318 if true; then :
e9c9a47c 16319
a243b558 16320 as_fn_error $? "You need flex 2.5.33 or greater" "$LINENO" 5
e9c9a47c 16321
e9c9a47c 16322else
a243b558
JF
16323
16324 FLEX=:
16325
16326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16327$as_echo "no" >&6; }
9c60689e 16328
632b71ea 16329fi
a243b558
JF
16330fi
16331
16332
16333
16334
16335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gperf >= 3.0.3" >&5
16336$as_echo_n "checking for gperf >= 3.0.3... " >&6; }
16337 if test -z "$GPERF"; then
16338 ac_path_GPERF_found=false
16339 # Loop through the user's path and test for each of PROGNAME-LIST
16340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16341for as_dir in $PATH
16342do
16343 IFS=$as_save_IFS
16344 test -z "$as_dir" && as_dir=.
16345 for ac_prog in gperf; do
16346 for ac_exec_ext in '' $ac_executable_extensions; do
16347 ac_path_GPERF="$as_dir/$ac_prog$ac_exec_ext"
16348 as_fn_executable_p "$ac_path_GPERF" || continue
16349version=`$ac_path_GPERF --version | $SED -e '1 s/^.* \([0-9.]*\)$/\1/p;d'`
16350 if ${version:+false} :; then :
16351
e9c9a47c 16352else
a243b558
JF
16353 as_arg_v1=$version
16354as_arg_v2=3.0.3
16355awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
16356case $? in #(
16357 1) :
16358 ;; #(
16359 0) :
16360 ac_cv_path_GPERF=$ac_path_GPERF ;; #(
16361 2) :
16362 ac_cv_path_GPERF=$ac_path_GPERF ;; #(
16363 *) :
16364 ;;
16365esac
632b71ea 16366fi
a243b558
JF
16367
16368 $ac_path_GPERF_found && break 3
16369 done
16370 done
16371 done
16372IFS=$as_save_IFS
16373 if test -z "$ac_cv_path_GPERF"; then
16374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16375$as_echo "no" >&6; }
16376 fi
47aaa820 16377else
a243b558
JF
16378 ac_cv_path_GPERF=$GPERF
16379fi
9c60689e
DWT
16380
16381
a243b558 16382 if true; then :
9c60689e 16383
a243b558 16384 GPERF=$ac_cv_path_GPERF
9c60689e 16385
a243b558
JF
16386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPERF" >&5
16387$as_echo "$GPERF" >&6; }
9c60689e 16388
47aaa820 16389else
a243b558 16390 if true; then :
9c60689e 16391
a243b558
JF
16392 as_fn_error $? "You need gperf 3.0.3 or greater" "$LINENO" 5
16393
16394else
16395
16396 GPERF=:
16397
16398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16399$as_echo "no" >&6; }
9c60689e 16400
47aaa820 16401fi
47aaa820 16402fi
a243b558
JF
16403
16404
16405
16406
16407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tar gtar gnutar >= 1.19" >&5
16408$as_echo_n "checking for tar gtar gnutar >= 1.19... " >&6; }
16409 if test -z "$GNUTAR"; then
16410 ac_path_GNUTAR_found=false
16411 # Loop through the user's path and test for each of PROGNAME-LIST
16412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16413for as_dir in $PATH
16414do
16415 IFS=$as_save_IFS
16416 test -z "$as_dir" && as_dir=.
16417 for ac_prog in tar gtar gnutar; do
16418 for ac_exec_ext in '' $ac_executable_extensions; do
16419 ac_path_GNUTAR="$as_dir/$ac_prog$ac_exec_ext"
16420 as_fn_executable_p "$ac_path_GNUTAR" || continue
16421version=`$ac_path_GNUTAR --version | $SED -e '1 s/^tar (GNU tar) \(.*\)$/\1/p;d'`
16422 if ${version:+false} :; then :
16423
16424else
16425 as_arg_v1=$version
16426as_arg_v2=1.19
16427awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
16428case $? in #(
16429 1) :
16430 ;; #(
16431 0) :
16432 ac_cv_path_GNUTAR=$ac_path_GNUTAR ;; #(
16433 2) :
16434 ac_cv_path_GNUTAR=$ac_path_GNUTAR ;; #(
16435 *) :
16436 ;;
16437esac
790e5246 16438fi
a243b558
JF
16439
16440 $ac_path_GNUTAR_found && break 3
16441 done
16442 done
16443 done
16444IFS=$as_save_IFS
16445 if test -z "$ac_cv_path_GNUTAR"; then
16446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16447$as_echo "no" >&6; }
632b71ea 16448 fi
632b71ea 16449else
a243b558 16450 ac_cv_path_GNUTAR=$GNUTAR
632b71ea 16451fi
66170b30 16452
66170b30 16453
a243b558 16454 if true; then :
66170b30 16455
a243b558 16456 GNUTAR=$ac_cv_path_GNUTAR
66170b30 16457
a243b558
JF
16458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUTAR" >&5
16459$as_echo "$GNUTAR" >&6; }
66170b30 16460
a243b558
JF
16461else
16462 if true; then :
66170b30 16463
a243b558 16464 as_fn_error $? "You need tar gtar gnutar 1.19 or greater" "$LINENO" 5
66170b30 16465
66170b30 16466else
66170b30 16467
a243b558 16468 GNUTAR=:
66170b30 16469
a243b558
JF
16470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16471$as_echo "no" >&6; }
66170b30 16472
a243b558
JF
16473fi
16474fi
66170b30
JF
16475
16476
9228a43a
JF
16477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking bison for %code{}" >&5
16478$as_echo_n "checking bison for %code{}... " >&6; }
16479echo '%code{}%%_:' >conftest.y
16480if $BISON conftest.y -o/dev/null 2>/dev/null; then
16481
16482 for element in Bison24; do
16483 haveit=
16484 for x in $CY_FILTERS; do
16485
16486 acl_save_prefix="$prefix"
16487 prefix="$acl_final_prefix"
16488 acl_save_exec_prefix="$exec_prefix"
16489 exec_prefix="$acl_final_exec_prefix"
16490 eval x=\"$x\"
16491 exec_prefix="$acl_save_exec_prefix"
16492 prefix="$acl_save_prefix"
16493
16494 if test "X$x" = "X$element"; then
16495 haveit=yes
16496 break
16497 fi
16498 done
16499 if test -z "$haveit"; then
16500 CY_FILTERS="${CY_FILTERS}${CY_FILTERS:+ }$element"
16501 fi
16502 done
16503
16504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16505$as_echo "yes" >&6; }
16506else
16507
16508 for element in Bison23; do
16509 haveit=
16510 for x in $CY_FILTERS; do
16511
16512 acl_save_prefix="$prefix"
16513 prefix="$acl_final_prefix"
16514 acl_save_exec_prefix="$exec_prefix"
16515 exec_prefix="$acl_final_exec_prefix"
16516 eval x=\"$x\"
16517 exec_prefix="$acl_save_exec_prefix"
16518 prefix="$acl_save_prefix"
16519
16520 if test "X$x" = "X$element"; then
16521 haveit=yes
16522 break
16523 fi
16524 done
16525 if test -z "$haveit"; then
16526 CY_FILTERS="${CY_FILTERS}${CY_FILTERS:+ }$element"
16527 fi
16528 done
16529
16530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16531$as_echo "no" >&6; }
16532fi
16533
16534rm -f conftest.y
16535
16536
66170b30
JF
16537
16538
16539
16540
16541
16542
16543
16544
16545if ${CFLAGS+:} false; then :
16546 case " $CFLAGS " in
16547 *" "*)
16548 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains "; } >&5
16549 (: CFLAGS already contains ) 2>&5
16550 ac_status=$?
16551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16552 test $ac_status = 0; }
16553 ;;
16554 *)
16555 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \""; } >&5
16556 (: CFLAGS="$CFLAGS ") 2>&5
16557 ac_status=$?
16558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16559 test $ac_status = 0; }
16560 CFLAGS="$CFLAGS "
16561 ;;
16562 esac
16563else
16564 CFLAGS=""
16565fi
16566
e9c9a47c
DWT
16567ac_ext=c
16568ac_cpp='$CPP $CPPFLAGS'
16569ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16570ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16571ac_compiler_gnu=$ac_cv_c_compiler_gnu
632b71ea 16572
66170b30
JF
16573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
16574$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
16575if ${ac_cv_cflags_warn_all+:} false; then :
16576 $as_echo_n "(cached) " >&6
16577else
16578 ac_cv_cflags_warn_all="no, unknown"
16579ac_save_CFLAGS="$CFLAGS"
16580for 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" #
16581do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
16582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16583/* end confdefs.h. */
16584
16585int
16586main ()
16587{
16588
16589 ;
16590 return 0;
16591}
16592_ACEOF
16593if ac_fn_c_try_compile "$LINENO"; then :
16594 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
16595fi
16596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16597done
16598CFLAGS="$ac_save_CFLAGS"
16599
16600fi
16601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
16602$as_echo "$ac_cv_cflags_warn_all" >&6; }
16603
16604case ".$ac_cv_cflags_warn_all" in
16605 .ok|.ok,*) ;;
16606 .|.no|.no,*) ;;
16607 *) if ${CFLAGS+:} false; then :
16608 case " $CFLAGS " in
16609 *" $ac_cv_cflags_warn_all "*)
16610 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5
16611 (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5
16612 ac_status=$?
16613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16614 test $ac_status = 0; }
16615 ;;
16616 *)
16617 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
16618 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
16619 ac_status=$?
16620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16621 test $ac_status = 0; }
16622 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
16623 ;;
16624 esac
16625else
16626 CFLAGS="$ac_cv_cflags_warn_all"
16627fi
16628 ;;
16629esac
16630
b816329d
JF
16631ac_ext=cpp
16632ac_cpp='$CXXCPP $CPPFLAGS'
16633ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16634ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16635ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16636
9c60689e 16637
66170b30
JF
16638ac_ext=cpp
16639ac_cpp='$CXXCPP $CPPFLAGS'
16640ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16641ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16642ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1504c9b8 16643
66170b30
JF
16644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for maximum warnings" >&5
16645$as_echo_n "checking CXXFLAGS for maximum warnings... " >&6; }
16646if ${ac_cv_cxxflags_warn_all+:} false; then :
16647 $as_echo_n "(cached) " >&6
16648else
16649 ac_cv_cxxflags_warn_all="no, unknown"
16650ac_save_CXXFLAGS="$CXXFLAGS"
16651for 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" #
16652do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
16653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16654/* end confdefs.h. */
1504c9b8 16655
66170b30
JF
16656int
16657main ()
16658{
1504c9b8 16659
66170b30
JF
16660 ;
16661 return 0;
16662}
16663_ACEOF
16664if ac_fn_cxx_try_compile "$LINENO"; then :
16665 ac_cv_cxxflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
16666fi
16667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16668done
16669CXXFLAGS="$ac_save_CXXFLAGS"
1504c9b8 16670
66170b30
JF
16671fi
16672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxxflags_warn_all" >&5
16673$as_echo "$ac_cv_cxxflags_warn_all" >&6; }
16674
16675case ".$ac_cv_cxxflags_warn_all" in
16676 .ok|.ok,*) ;;
16677 .|.no|.no,*) ;;
16678 *) if ${CXXFLAGS+:} false; then :
16679 case " $CXXFLAGS " in
16680 *" $ac_cv_cxxflags_warn_all "*)
16681 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$ac_cv_cxxflags_warn_all"; } >&5
16682 (: CXXFLAGS already contains $ac_cv_cxxflags_warn_all) 2>&5
16683 ac_status=$?
16684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16685 test $ac_status = 0; }
16686 ;;
16687 *)
16688 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$ac_cv_cxxflags_warn_all\""; } >&5
16689 (: CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all") 2>&5
16690 ac_status=$?
16691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16692 test $ac_status = 0; }
16693 CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all"
16694 ;;
16695 esac
16696else
16697 CXXFLAGS="$ac_cv_cxxflags_warn_all"
16698fi
16699 ;;
16700esac
16701
16702ac_ext=cpp
16703ac_cpp='$CXXCPP $CPPFLAGS'
16704ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16705ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16706ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16707
16708
babf7fe8
JF
16709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for maximum warnings" >&5
16710$as_echo_n "checking CXXFLAGS for maximum warnings... " >&6; }
16711if ${ac_cv_cxxflags_warn_all+:} false; then :
16712 $as_echo_n "(cached) " >&6
16713else
16714 ac_cv_cxxflags_warn_all="no, unknown"
16715ac_save_CXXFLAGS="$CXXFLAGS"
16716for 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" #
16717do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
16718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16719/* end confdefs.h. */
16720
16721int
16722main ()
16723{
16724
16725 ;
16726 return 0;
16727}
16728_ACEOF
16729if ac_fn_cxx_try_compile "$LINENO"; then :
16730 ac_cv_cxxflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
16731fi
16732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16733done
16734CXXFLAGS="$ac_save_CXXFLAGS"
16735
16736fi
16737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxxflags_warn_all" >&5
16738$as_echo "$ac_cv_cxxflags_warn_all" >&6; }
16739
16740case ".$ac_cv_cxxflags_warn_all" in
16741 .ok|.ok,*) ;;
16742 .|.no|.no,*) ;;
16743 *) if ${CXXFLAGS+:} false; then :
16744 case " $CXXFLAGS " in
16745 *" $ac_cv_cxxflags_warn_all "*)
16746 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$ac_cv_cxxflags_warn_all"; } >&5
16747 (: CXXFLAGS already contains $ac_cv_cxxflags_warn_all) 2>&5
16748 ac_status=$?
16749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16750 test $ac_status = 0; }
16751 ;;
16752 *)
16753 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$ac_cv_cxxflags_warn_all\""; } >&5
16754 (: CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all") 2>&5
16755 ac_status=$?
16756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16757 test $ac_status = 0; }
16758 CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all"
16759 ;;
16760 esac
16761else
16762 CXXFLAGS="$ac_cv_cxxflags_warn_all"
16763fi
16764 ;;
16765esac
16766
66170b30
JF
16767
16768
66170b30 16769
66170b30 16770
c10a2228
JF
16771 ac_ext=c
16772ac_cpp='$CPP $CPPFLAGS'
16773ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16774ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16775ac_compiler_gnu=$ac_cv_c_compiler_gnu
16776
babf7fe8
JF
16777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Werror" >&5
16778$as_echo_n "checking for cc -Werror... " >&6; }
c10a2228
JF
16779
16780 cy_save=$CFLAGS
16781
babf7fe8 16782 for element in -Werror; do
c10a2228
JF
16783 haveit=
16784 for x in $CFLAGS; do
16785
16786 acl_save_prefix="$prefix"
16787 prefix="$acl_final_prefix"
16788 acl_save_exec_prefix="$exec_prefix"
16789 exec_prefix="$acl_final_exec_prefix"
16790 eval x=\"$x\"
16791 exec_prefix="$acl_save_exec_prefix"
16792 prefix="$acl_save_prefix"
16793
16794 if test "X$x" = "X$element"; then
16795 haveit=yes
16796 break
16797 fi
16798 done
16799 if test -z "$haveit"; then
16800 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
16801 fi
16802 done
16803
16804
16805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16806/* end confdefs.h. */
16807
16808_ACEOF
16809if ac_fn_c_try_compile "$LINENO"; then :
16810 cy_good=1
16811else
16812 cy_good=0
16813fi
16814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16815
16816 CFLAGS=$cy_save
16817 if test "x$cy_good" = x1; then :
16818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16819$as_echo "yes" >&6; }
16820
babf7fe8 16821 for element in -Werror; do
c10a2228
JF
16822 haveit=
16823 for x in $CFLAGS; do
16824
16825 acl_save_prefix="$prefix"
16826 prefix="$acl_final_prefix"
16827 acl_save_exec_prefix="$exec_prefix"
16828 exec_prefix="$acl_final_exec_prefix"
16829 eval x=\"$x\"
16830 exec_prefix="$acl_save_exec_prefix"
16831 prefix="$acl_save_prefix"
16832
16833 if test "X$x" = "X$element"; then
16834 haveit=yes
16835 break
16836 fi
16837 done
16838 if test -z "$haveit"; then
16839 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
16840 fi
16841 done
16842
16843
16844else
16845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16846$as_echo "no" >&6; }
16847fi
16848
16849 ac_ext=cpp
16850ac_cpp='$CXXCPP $CPPFLAGS'
16851ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16852ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16853ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16854
16855
16856
16857 ac_ext=cpp
16858ac_cpp='$CXXCPP $CPPFLAGS'
16859ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16860ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16861ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16862
babf7fe8
JF
16863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Werror" >&5
16864$as_echo_n "checking for c++ -Werror... " >&6; }
c10a2228
JF
16865
16866 cy_save=$CXXFLAGS
16867
babf7fe8 16868 for element in -Werror; do
c10a2228
JF
16869 haveit=
16870 for x in $CXXFLAGS; do
16871
16872 acl_save_prefix="$prefix"
16873 prefix="$acl_final_prefix"
16874 acl_save_exec_prefix="$exec_prefix"
16875 exec_prefix="$acl_final_exec_prefix"
16876 eval x=\"$x\"
16877 exec_prefix="$acl_save_exec_prefix"
16878 prefix="$acl_save_prefix"
16879
16880 if test "X$x" = "X$element"; then
16881 haveit=yes
16882 break
16883 fi
16884 done
16885 if test -z "$haveit"; then
16886 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
16887 fi
16888 done
16889
16890
16891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16892/* end confdefs.h. */
16893
16894_ACEOF
16895if ac_fn_cxx_try_compile "$LINENO"; then :
16896 cy_good=1
16897else
16898 cy_good=0
16899fi
16900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16901
16902 CXXFLAGS=$cy_save
16903 if test "x$cy_good" = x1; then :
16904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16905$as_echo "yes" >&6; }
16906
babf7fe8 16907 for element in -Werror; do
c10a2228
JF
16908 haveit=
16909 for x in $CXXFLAGS; do
16910
16911 acl_save_prefix="$prefix"
16912 prefix="$acl_final_prefix"
16913 acl_save_exec_prefix="$exec_prefix"
16914 exec_prefix="$acl_final_exec_prefix"
16915 eval x=\"$x\"
16916 exec_prefix="$acl_save_exec_prefix"
16917 prefix="$acl_save_prefix"
16918
16919 if test "X$x" = "X$element"; then
16920 haveit=yes
16921 break
16922 fi
16923 done
16924 if test -z "$haveit"; then
16925 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
16926 fi
16927 done
16928
16929
16930else
16931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16932$as_echo "no" >&6; }
16933fi
16934
16935 ac_ext=cpp
16936ac_cpp='$CXXCPP $CPPFLAGS'
16937ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16938ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16939ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16940
16941
16942
16943 ac_ext=mm
16944ac_cpp='$OBJCXXCPP $CPPFLAGS'
16945ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16946ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16947ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
16948
babf7fe8
JF
16949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Werror" >&5
16950$as_echo_n "checking for c++ -ObjC -Werror... " >&6; }
c10a2228
JF
16951
16952 cy_save=$OBJCXXFLAGS
16953
babf7fe8 16954 for element in -Werror; do
c10a2228
JF
16955 haveit=
16956 for x in $OBJCXXFLAGS; do
16957
16958 acl_save_prefix="$prefix"
16959 prefix="$acl_final_prefix"
16960 acl_save_exec_prefix="$exec_prefix"
16961 exec_prefix="$acl_final_exec_prefix"
16962 eval x=\"$x\"
16963 exec_prefix="$acl_save_exec_prefix"
16964 prefix="$acl_save_prefix"
16965
16966 if test "X$x" = "X$element"; then
16967 haveit=yes
16968 break
16969 fi
16970 done
16971 if test -z "$haveit"; then
16972 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
16973 fi
16974 done
16975
16976
16977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16978/* end confdefs.h. */
16979
16980_ACEOF
16981if ac_fn_objcxx_try_compile "$LINENO"; then :
16982 cy_good=1
16983else
16984 cy_good=0
16985fi
16986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16987
16988 OBJCXXFLAGS=$cy_save
16989 if test "x$cy_good" = x1; then :
16990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16991$as_echo "yes" >&6; }
16992
babf7fe8 16993 for element in -Werror; do
c10a2228
JF
16994 haveit=
16995 for x in $OBJCXXFLAGS; do
16996
16997 acl_save_prefix="$prefix"
16998 prefix="$acl_final_prefix"
16999 acl_save_exec_prefix="$exec_prefix"
17000 exec_prefix="$acl_final_exec_prefix"
17001 eval x=\"$x\"
17002 exec_prefix="$acl_save_exec_prefix"
17003 prefix="$acl_save_prefix"
17004
17005 if test "X$x" = "X$element"; then
17006 haveit=yes
17007 break
17008 fi
17009 done
17010 if test -z "$haveit"; then
17011 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
17012 fi
17013 done
17014
17015
17016else
17017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17018$as_echo "no" >&6; }
17019fi
17020
17021 ac_ext=cpp
17022ac_cpp='$CXXCPP $CPPFLAGS'
17023ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17024ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17025ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17026
17027
17028
17029
17030
17031
17032 ac_ext=c
17033ac_cpp='$CPP $CPPFLAGS'
17034ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17035ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17036ac_compiler_gnu=$ac_cv_c_compiler_gnu
17037
babf7fe8
JF
17038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-deprecated-declarations" >&5
17039$as_echo_n "checking for cc -Wno-deprecated-declarations... " >&6; }
c10a2228
JF
17040
17041 cy_save=$CFLAGS
17042
babf7fe8 17043 for element in -Wno-deprecated-declarations; do
c10a2228
JF
17044 haveit=
17045 for x in $CFLAGS; do
17046
17047 acl_save_prefix="$prefix"
17048 prefix="$acl_final_prefix"
17049 acl_save_exec_prefix="$exec_prefix"
17050 exec_prefix="$acl_final_exec_prefix"
17051 eval x=\"$x\"
17052 exec_prefix="$acl_save_exec_prefix"
17053 prefix="$acl_save_prefix"
17054
17055 if test "X$x" = "X$element"; then
17056 haveit=yes
17057 break
17058 fi
17059 done
17060 if test -z "$haveit"; then
17061 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
17062 fi
17063 done
17064
17065
17066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17067/* end confdefs.h. */
17068
17069_ACEOF
17070if ac_fn_c_try_compile "$LINENO"; then :
17071 cy_good=1
17072else
17073 cy_good=0
17074fi
17075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17076
17077 CFLAGS=$cy_save
17078 if test "x$cy_good" = x1; then :
17079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17080$as_echo "yes" >&6; }
17081
babf7fe8 17082 for element in -Wno-deprecated-declarations; do
c10a2228
JF
17083 haveit=
17084 for x in $CFLAGS; do
17085
17086 acl_save_prefix="$prefix"
17087 prefix="$acl_final_prefix"
17088 acl_save_exec_prefix="$exec_prefix"
17089 exec_prefix="$acl_final_exec_prefix"
17090 eval x=\"$x\"
17091 exec_prefix="$acl_save_exec_prefix"
17092 prefix="$acl_save_prefix"
17093
17094 if test "X$x" = "X$element"; then
17095 haveit=yes
17096 break
17097 fi
17098 done
17099 if test -z "$haveit"; then
17100 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
17101 fi
17102 done
17103
17104
17105else
17106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17107$as_echo "no" >&6; }
17108fi
17109
17110 ac_ext=cpp
17111ac_cpp='$CXXCPP $CPPFLAGS'
17112ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17113ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17114ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17115
17116
17117
17118 ac_ext=cpp
17119ac_cpp='$CXXCPP $CPPFLAGS'
17120ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17121ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17122ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17123
babf7fe8
JF
17124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-deprecated-declarations" >&5
17125$as_echo_n "checking for c++ -Wno-deprecated-declarations... " >&6; }
c10a2228
JF
17126
17127 cy_save=$CXXFLAGS
17128
babf7fe8 17129 for element in -Wno-deprecated-declarations; do
c10a2228
JF
17130 haveit=
17131 for x in $CXXFLAGS; do
17132
17133 acl_save_prefix="$prefix"
17134 prefix="$acl_final_prefix"
17135 acl_save_exec_prefix="$exec_prefix"
17136 exec_prefix="$acl_final_exec_prefix"
17137 eval x=\"$x\"
17138 exec_prefix="$acl_save_exec_prefix"
17139 prefix="$acl_save_prefix"
17140
17141 if test "X$x" = "X$element"; then
17142 haveit=yes
17143 break
17144 fi
17145 done
17146 if test -z "$haveit"; then
17147 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17148 fi
17149 done
17150
17151
17152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17153/* end confdefs.h. */
17154
17155_ACEOF
17156if ac_fn_cxx_try_compile "$LINENO"; then :
17157 cy_good=1
17158else
17159 cy_good=0
17160fi
17161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17162
17163 CXXFLAGS=$cy_save
17164 if test "x$cy_good" = x1; then :
17165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17166$as_echo "yes" >&6; }
17167
babf7fe8 17168 for element in -Wno-deprecated-declarations; do
c10a2228
JF
17169 haveit=
17170 for x in $CXXFLAGS; do
17171
17172 acl_save_prefix="$prefix"
17173 prefix="$acl_final_prefix"
17174 acl_save_exec_prefix="$exec_prefix"
17175 exec_prefix="$acl_final_exec_prefix"
17176 eval x=\"$x\"
17177 exec_prefix="$acl_save_exec_prefix"
17178 prefix="$acl_save_prefix"
17179
17180 if test "X$x" = "X$element"; then
17181 haveit=yes
17182 break
17183 fi
17184 done
17185 if test -z "$haveit"; then
17186 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17187 fi
17188 done
17189
17190
17191else
17192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17193$as_echo "no" >&6; }
17194fi
17195
17196 ac_ext=cpp
17197ac_cpp='$CXXCPP $CPPFLAGS'
17198ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17199ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17200ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17201
17202
17203
17204 ac_ext=mm
17205ac_cpp='$OBJCXXCPP $CPPFLAGS'
17206ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17207ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17208ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
17209
babf7fe8
JF
17210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-deprecated-declarations" >&5
17211$as_echo_n "checking for c++ -ObjC -Wno-deprecated-declarations... " >&6; }
c10a2228
JF
17212
17213 cy_save=$OBJCXXFLAGS
17214
babf7fe8 17215 for element in -Wno-deprecated-declarations; do
c10a2228
JF
17216 haveit=
17217 for x in $OBJCXXFLAGS; do
17218
17219 acl_save_prefix="$prefix"
17220 prefix="$acl_final_prefix"
17221 acl_save_exec_prefix="$exec_prefix"
17222 exec_prefix="$acl_final_exec_prefix"
17223 eval x=\"$x\"
17224 exec_prefix="$acl_save_exec_prefix"
17225 prefix="$acl_save_prefix"
17226
17227 if test "X$x" = "X$element"; then
17228 haveit=yes
17229 break
17230 fi
17231 done
17232 if test -z "$haveit"; then
17233 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
17234 fi
17235 done
17236
17237
17238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17239/* end confdefs.h. */
17240
17241_ACEOF
17242if ac_fn_objcxx_try_compile "$LINENO"; then :
17243 cy_good=1
17244else
17245 cy_good=0
17246fi
17247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17248
17249 OBJCXXFLAGS=$cy_save
17250 if test "x$cy_good" = x1; then :
17251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17252$as_echo "yes" >&6; }
17253
babf7fe8 17254 for element in -Wno-deprecated-declarations; do
c10a2228
JF
17255 haveit=
17256 for x in $OBJCXXFLAGS; do
17257
17258 acl_save_prefix="$prefix"
17259 prefix="$acl_final_prefix"
17260 acl_save_exec_prefix="$exec_prefix"
17261 exec_prefix="$acl_final_exec_prefix"
17262 eval x=\"$x\"
17263 exec_prefix="$acl_save_exec_prefix"
17264 prefix="$acl_save_prefix"
17265
17266 if test "X$x" = "X$element"; then
17267 haveit=yes
17268 break
17269 fi
17270 done
17271 if test -z "$haveit"; then
17272 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
17273 fi
17274 done
17275
17276
17277else
17278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17279$as_echo "no" >&6; }
17280fi
17281
17282 ac_ext=cpp
17283ac_cpp='$CXXCPP $CPPFLAGS'
17284ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17285ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17286ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17287
17288
17289
17290
17291
babf7fe8 17292
c10a2228
JF
17293 ac_ext=c
17294ac_cpp='$CPP $CPPFLAGS'
17295ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17296ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17297ac_compiler_gnu=$ac_cv_c_compiler_gnu
17298
babf7fe8
JF
17299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-dangling-else" >&5
17300$as_echo_n "checking for cc -Wno-dangling-else... " >&6; }
c10a2228
JF
17301
17302 cy_save=$CFLAGS
17303
babf7fe8 17304 for element in -Wno-dangling-else; do
c10a2228
JF
17305 haveit=
17306 for x in $CFLAGS; do
17307
17308 acl_save_prefix="$prefix"
17309 prefix="$acl_final_prefix"
17310 acl_save_exec_prefix="$exec_prefix"
17311 exec_prefix="$acl_final_exec_prefix"
17312 eval x=\"$x\"
17313 exec_prefix="$acl_save_exec_prefix"
17314 prefix="$acl_save_prefix"
17315
17316 if test "X$x" = "X$element"; then
17317 haveit=yes
17318 break
17319 fi
17320 done
17321 if test -z "$haveit"; then
17322 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
17323 fi
17324 done
17325
17326
17327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17328/* end confdefs.h. */
17329
17330_ACEOF
17331if ac_fn_c_try_compile "$LINENO"; then :
17332 cy_good=1
17333else
17334 cy_good=0
17335fi
17336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17337
17338 CFLAGS=$cy_save
17339 if test "x$cy_good" = x1; then :
17340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17341$as_echo "yes" >&6; }
17342
babf7fe8 17343 for element in -Wno-dangling-else; do
c10a2228
JF
17344 haveit=
17345 for x in $CFLAGS; do
17346
17347 acl_save_prefix="$prefix"
17348 prefix="$acl_final_prefix"
17349 acl_save_exec_prefix="$exec_prefix"
17350 exec_prefix="$acl_final_exec_prefix"
17351 eval x=\"$x\"
17352 exec_prefix="$acl_save_exec_prefix"
17353 prefix="$acl_save_prefix"
17354
17355 if test "X$x" = "X$element"; then
17356 haveit=yes
17357 break
17358 fi
17359 done
17360 if test -z "$haveit"; then
17361 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
17362 fi
17363 done
17364
17365
17366else
17367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17368$as_echo "no" >&6; }
17369fi
17370
17371 ac_ext=cpp
17372ac_cpp='$CXXCPP $CPPFLAGS'
17373ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17374ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17375ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17376
17377
17378
17379 ac_ext=cpp
17380ac_cpp='$CXXCPP $CPPFLAGS'
17381ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17382ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17383ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17384
babf7fe8
JF
17385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-dangling-else" >&5
17386$as_echo_n "checking for c++ -Wno-dangling-else... " >&6; }
c10a2228
JF
17387
17388 cy_save=$CXXFLAGS
17389
babf7fe8 17390 for element in -Wno-dangling-else; do
c10a2228
JF
17391 haveit=
17392 for x in $CXXFLAGS; do
17393
17394 acl_save_prefix="$prefix"
17395 prefix="$acl_final_prefix"
17396 acl_save_exec_prefix="$exec_prefix"
17397 exec_prefix="$acl_final_exec_prefix"
17398 eval x=\"$x\"
17399 exec_prefix="$acl_save_exec_prefix"
17400 prefix="$acl_save_prefix"
17401
17402 if test "X$x" = "X$element"; then
17403 haveit=yes
17404 break
17405 fi
17406 done
17407 if test -z "$haveit"; then
17408 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17409 fi
17410 done
17411
17412
17413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17414/* end confdefs.h. */
17415
17416_ACEOF
17417if ac_fn_cxx_try_compile "$LINENO"; then :
17418 cy_good=1
17419else
17420 cy_good=0
17421fi
17422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17423
17424 CXXFLAGS=$cy_save
17425 if test "x$cy_good" = x1; then :
17426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17427$as_echo "yes" >&6; }
17428
babf7fe8 17429 for element in -Wno-dangling-else; do
c10a2228
JF
17430 haveit=
17431 for x in $CXXFLAGS; do
17432
17433 acl_save_prefix="$prefix"
17434 prefix="$acl_final_prefix"
17435 acl_save_exec_prefix="$exec_prefix"
17436 exec_prefix="$acl_final_exec_prefix"
17437 eval x=\"$x\"
17438 exec_prefix="$acl_save_exec_prefix"
17439 prefix="$acl_save_prefix"
17440
17441 if test "X$x" = "X$element"; then
17442 haveit=yes
17443 break
17444 fi
17445 done
17446 if test -z "$haveit"; then
17447 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17448 fi
17449 done
17450
17451
17452else
17453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17454$as_echo "no" >&6; }
17455fi
17456
17457 ac_ext=cpp
17458ac_cpp='$CXXCPP $CPPFLAGS'
17459ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17460ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17461ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17462
17463
17464
17465 ac_ext=mm
17466ac_cpp='$OBJCXXCPP $CPPFLAGS'
17467ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17468ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17469ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
17470
babf7fe8
JF
17471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-dangling-else" >&5
17472$as_echo_n "checking for c++ -ObjC -Wno-dangling-else... " >&6; }
c10a2228
JF
17473
17474 cy_save=$OBJCXXFLAGS
17475
babf7fe8 17476 for element in -Wno-dangling-else; do
c10a2228
JF
17477 haveit=
17478 for x in $OBJCXXFLAGS; do
17479
17480 acl_save_prefix="$prefix"
17481 prefix="$acl_final_prefix"
17482 acl_save_exec_prefix="$exec_prefix"
17483 exec_prefix="$acl_final_exec_prefix"
17484 eval x=\"$x\"
17485 exec_prefix="$acl_save_exec_prefix"
17486 prefix="$acl_save_prefix"
17487
17488 if test "X$x" = "X$element"; then
17489 haveit=yes
17490 break
17491 fi
17492 done
17493 if test -z "$haveit"; then
17494 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
17495 fi
17496 done
17497
17498
17499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17500/* end confdefs.h. */
17501
17502_ACEOF
17503if ac_fn_objcxx_try_compile "$LINENO"; then :
17504 cy_good=1
17505else
17506 cy_good=0
17507fi
17508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17509
17510 OBJCXXFLAGS=$cy_save
17511 if test "x$cy_good" = x1; then :
17512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17513$as_echo "yes" >&6; }
17514
babf7fe8 17515 for element in -Wno-dangling-else; do
c10a2228
JF
17516 haveit=
17517 for x in $OBJCXXFLAGS; do
17518
17519 acl_save_prefix="$prefix"
17520 prefix="$acl_final_prefix"
17521 acl_save_exec_prefix="$exec_prefix"
17522 exec_prefix="$acl_final_exec_prefix"
17523 eval x=\"$x\"
17524 exec_prefix="$acl_save_exec_prefix"
17525 prefix="$acl_save_prefix"
17526
17527 if test "X$x" = "X$element"; then
17528 haveit=yes
17529 break
17530 fi
17531 done
17532 if test -z "$haveit"; then
17533 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
17534 fi
17535 done
17536
17537
17538else
17539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17540$as_echo "no" >&6; }
17541fi
17542
17543 ac_ext=cpp
17544ac_cpp='$CXXCPP $CPPFLAGS'
17545ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17546ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17547ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17548
17549
17550
17551
17552
17553 ac_ext=c
17554ac_cpp='$CPP $CPPFLAGS'
17555ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17556ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17557ac_compiler_gnu=$ac_cv_c_compiler_gnu
17558
babf7fe8
JF
17559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-overloaded-virtual" >&5
17560$as_echo_n "checking for cc -Wno-overloaded-virtual... " >&6; }
c10a2228
JF
17561
17562 cy_save=$CFLAGS
17563
babf7fe8 17564 for element in -Wno-overloaded-virtual; do
1504c9b8 17565 haveit=
c10a2228 17566 for x in $CFLAGS; do
1504c9b8
DWT
17567
17568 acl_save_prefix="$prefix"
17569 prefix="$acl_final_prefix"
17570 acl_save_exec_prefix="$exec_prefix"
17571 exec_prefix="$acl_final_exec_prefix"
17572 eval x=\"$x\"
17573 exec_prefix="$acl_save_exec_prefix"
17574 prefix="$acl_save_prefix"
17575
17576 if test "X$x" = "X$element"; then
17577 haveit=yes
17578 break
17579 fi
17580 done
17581 if test -z "$haveit"; then
c10a2228 17582 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
1504c9b8
DWT
17583 fi
17584 done
17585
66170b30
JF
17586
17587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1504c9b8
DWT
17588/* end confdefs.h. */
17589
66170b30 17590_ACEOF
c10a2228 17591if ac_fn_c_try_compile "$LINENO"; then :
66170b30
JF
17592 cy_good=1
17593else
17594 cy_good=0
17595fi
17596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17597
c10a2228 17598 CFLAGS=$cy_save
66170b30
JF
17599 if test "x$cy_good" = x1; then :
17600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17601$as_echo "yes" >&6; }
17602
babf7fe8 17603 for element in -Wno-overloaded-virtual; do
66170b30
JF
17604 haveit=
17605 for x in $CFLAGS; do
17606
17607 acl_save_prefix="$prefix"
17608 prefix="$acl_final_prefix"
17609 acl_save_exec_prefix="$exec_prefix"
17610 exec_prefix="$acl_final_exec_prefix"
17611 eval x=\"$x\"
17612 exec_prefix="$acl_save_exec_prefix"
17613 prefix="$acl_save_prefix"
17614
17615 if test "X$x" = "X$element"; then
17616 haveit=yes
17617 break
17618 fi
17619 done
17620 if test -z "$haveit"; then
17621 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
17622 fi
17623 done
17624
17625
c10a2228
JF
17626else
17627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17628$as_echo "no" >&6; }
17629fi
17630
17631 ac_ext=cpp
17632ac_cpp='$CXXCPP $CPPFLAGS'
17633ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17634ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17635ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17636
17637
17638
17639 ac_ext=cpp
17640ac_cpp='$CXXCPP $CPPFLAGS'
17641ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17642ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17643ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17644
babf7fe8
JF
17645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-overloaded-virtual" >&5
17646$as_echo_n "checking for c++ -Wno-overloaded-virtual... " >&6; }
c10a2228
JF
17647
17648 cy_save=$CXXFLAGS
17649
babf7fe8 17650 for element in -Wno-overloaded-virtual; do
66170b30
JF
17651 haveit=
17652 for x in $CXXFLAGS; do
17653
17654 acl_save_prefix="$prefix"
17655 prefix="$acl_final_prefix"
17656 acl_save_exec_prefix="$exec_prefix"
17657 exec_prefix="$acl_final_exec_prefix"
17658 eval x=\"$x\"
17659 exec_prefix="$acl_save_exec_prefix"
17660 prefix="$acl_save_prefix"
17661
17662 if test "X$x" = "X$element"; then
17663 haveit=yes
17664 break
17665 fi
17666 done
17667 if test -z "$haveit"; then
17668 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17669 fi
17670 done
17671
17672
c10a2228
JF
17673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17674/* end confdefs.h. */
17675
17676_ACEOF
17677if ac_fn_cxx_try_compile "$LINENO"; then :
17678 cy_good=1
17679else
17680 cy_good=0
17681fi
17682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17683
17684 CXXFLAGS=$cy_save
17685 if test "x$cy_good" = x1; then :
17686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17687$as_echo "yes" >&6; }
17688
babf7fe8 17689 for element in -Wno-overloaded-virtual; do
66170b30 17690 haveit=
c10a2228 17691 for x in $CXXFLAGS; do
66170b30
JF
17692
17693 acl_save_prefix="$prefix"
17694 prefix="$acl_final_prefix"
17695 acl_save_exec_prefix="$exec_prefix"
17696 exec_prefix="$acl_final_exec_prefix"
17697 eval x=\"$x\"
17698 exec_prefix="$acl_save_exec_prefix"
17699 prefix="$acl_save_prefix"
17700
17701 if test "X$x" = "X$element"; then
17702 haveit=yes
17703 break
17704 fi
17705 done
17706 if test -z "$haveit"; then
c10a2228 17707 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
66170b30
JF
17708 fi
17709 done
17710
17711
66170b30
JF
17712else
17713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17714$as_echo "no" >&6; }
17715fi
17716
c10a2228
JF
17717 ac_ext=cpp
17718ac_cpp='$CXXCPP $CPPFLAGS'
17719ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17720ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17721ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17722
66170b30
JF
17723
17724
c10a2228
JF
17725 ac_ext=mm
17726ac_cpp='$OBJCXXCPP $CPPFLAGS'
17727ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17728ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17729ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
17730
babf7fe8
JF
17731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-overloaded-virtual" >&5
17732$as_echo_n "checking for c++ -ObjC -Wno-overloaded-virtual... " >&6; }
66170b30 17733
c10a2228 17734 cy_save=$OBJCXXFLAGS
66170b30 17735
babf7fe8 17736 for element in -Wno-overloaded-virtual; do
66170b30 17737 haveit=
c10a2228 17738 for x in $OBJCXXFLAGS; do
66170b30
JF
17739
17740 acl_save_prefix="$prefix"
17741 prefix="$acl_final_prefix"
17742 acl_save_exec_prefix="$exec_prefix"
17743 exec_prefix="$acl_final_exec_prefix"
17744 eval x=\"$x\"
17745 exec_prefix="$acl_save_exec_prefix"
17746 prefix="$acl_save_prefix"
17747
17748 if test "X$x" = "X$element"; then
17749 haveit=yes
17750 break
17751 fi
17752 done
17753 if test -z "$haveit"; then
c10a2228 17754 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
66170b30
JF
17755 fi
17756 done
17757
17758
17759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17760/* end confdefs.h. */
1504c9b8 17761
1504c9b8 17762_ACEOF
c10a2228 17763if ac_fn_objcxx_try_compile "$LINENO"; then :
66170b30
JF
17764 cy_good=1
17765else
17766 cy_good=0
17767fi
17768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17769
c10a2228 17770 OBJCXXFLAGS=$cy_save
66170b30
JF
17771 if test "x$cy_good" = x1; then :
17772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17773$as_echo "yes" >&6; }
1504c9b8 17774
babf7fe8 17775 for element in -Wno-overloaded-virtual; do
1504c9b8 17776 haveit=
c10a2228 17777 for x in $OBJCXXFLAGS; do
1504c9b8
DWT
17778
17779 acl_save_prefix="$prefix"
17780 prefix="$acl_final_prefix"
17781 acl_save_exec_prefix="$exec_prefix"
17782 exec_prefix="$acl_final_exec_prefix"
17783 eval x=\"$x\"
17784 exec_prefix="$acl_save_exec_prefix"
17785 prefix="$acl_save_prefix"
17786
17787 if test "X$x" = "X$element"; then
17788 haveit=yes
17789 break
17790 fi
17791 done
17792 if test -z "$haveit"; then
c10a2228 17793 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
1504c9b8
DWT
17794 fi
17795 done
17796
17797
c10a2228
JF
17798else
17799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17800$as_echo "no" >&6; }
17801fi
17802
17803 ac_ext=cpp
17804ac_cpp='$CXXCPP $CPPFLAGS'
17805ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17806ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17807ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17808
17809
17810
17811
17812
17813 ac_ext=c
17814ac_cpp='$CPP $CPPFLAGS'
17815ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17816ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17817ac_compiler_gnu=$ac_cv_c_compiler_gnu
17818
babf7fe8
JF
17819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-parentheses" >&5
17820$as_echo_n "checking for cc -Wno-parentheses... " >&6; }
c10a2228
JF
17821
17822 cy_save=$CFLAGS
17823
babf7fe8 17824 for element in -Wno-parentheses; do
66170b30 17825 haveit=
c10a2228 17826 for x in $CFLAGS; do
66170b30
JF
17827
17828 acl_save_prefix="$prefix"
17829 prefix="$acl_final_prefix"
17830 acl_save_exec_prefix="$exec_prefix"
17831 exec_prefix="$acl_final_exec_prefix"
17832 eval x=\"$x\"
17833 exec_prefix="$acl_save_exec_prefix"
17834 prefix="$acl_save_prefix"
17835
17836 if test "X$x" = "X$element"; then
17837 haveit=yes
17838 break
17839 fi
17840 done
17841 if test -z "$haveit"; then
c10a2228 17842 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
66170b30
JF
17843 fi
17844 done
17845
17846
c10a2228
JF
17847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17848/* end confdefs.h. */
17849
17850_ACEOF
17851if ac_fn_c_try_compile "$LINENO"; then :
17852 cy_good=1
17853else
17854 cy_good=0
17855fi
17856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17857
17858 CFLAGS=$cy_save
17859 if test "x$cy_good" = x1; then :
17860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17861$as_echo "yes" >&6; }
17862
babf7fe8 17863 for element in -Wno-parentheses; do
66170b30 17864 haveit=
c10a2228 17865 for x in $CFLAGS; do
66170b30
JF
17866
17867 acl_save_prefix="$prefix"
17868 prefix="$acl_final_prefix"
17869 acl_save_exec_prefix="$exec_prefix"
17870 exec_prefix="$acl_final_exec_prefix"
17871 eval x=\"$x\"
17872 exec_prefix="$acl_save_exec_prefix"
17873 prefix="$acl_save_prefix"
17874
17875 if test "X$x" = "X$element"; then
17876 haveit=yes
17877 break
17878 fi
17879 done
17880 if test -z "$haveit"; then
c10a2228 17881 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
66170b30
JF
17882 fi
17883 done
17884
17885
66170b30
JF
17886else
17887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17888$as_echo "no" >&6; }
17889fi
17890
c10a2228
JF
17891 ac_ext=cpp
17892ac_cpp='$CXXCPP $CPPFLAGS'
17893ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17894ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17895ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17896
66170b30
JF
17897
17898
c10a2228
JF
17899 ac_ext=cpp
17900ac_cpp='$CXXCPP $CPPFLAGS'
17901ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17902ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17903ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17904
babf7fe8
JF
17905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-parentheses" >&5
17906$as_echo_n "checking for c++ -Wno-parentheses... " >&6; }
66170b30
JF
17907
17908 cy_save=$CXXFLAGS
17909
babf7fe8 17910 for element in -Wno-parentheses; do
66170b30
JF
17911 haveit=
17912 for x in $CXXFLAGS; do
17913
17914 acl_save_prefix="$prefix"
17915 prefix="$acl_final_prefix"
17916 acl_save_exec_prefix="$exec_prefix"
17917 exec_prefix="$acl_final_exec_prefix"
17918 eval x=\"$x\"
17919 exec_prefix="$acl_save_exec_prefix"
17920 prefix="$acl_save_prefix"
17921
17922 if test "X$x" = "X$element"; then
17923 haveit=yes
17924 break
17925 fi
17926 done
17927 if test -z "$haveit"; then
17928 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17929 fi
17930 done
17931
17932
17933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17934/* end confdefs.h. */
17935
17936_ACEOF
17937if ac_fn_cxx_try_compile "$LINENO"; then :
17938 cy_good=1
17939else
17940 cy_good=0
17941fi
17942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17943
17944 CXXFLAGS=$cy_save
17945 if test "x$cy_good" = x1; then :
17946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17947$as_echo "yes" >&6; }
17948
babf7fe8 17949 for element in -Wno-parentheses; do
1504c9b8 17950 haveit=
c10a2228 17951 for x in $CXXFLAGS; do
1504c9b8
DWT
17952
17953 acl_save_prefix="$prefix"
17954 prefix="$acl_final_prefix"
17955 acl_save_exec_prefix="$exec_prefix"
17956 exec_prefix="$acl_final_exec_prefix"
17957 eval x=\"$x\"
17958 exec_prefix="$acl_save_exec_prefix"
17959 prefix="$acl_save_prefix"
17960
17961 if test "X$x" = "X$element"; then
17962 haveit=yes
17963 break
17964 fi
17965 done
17966 if test -z "$haveit"; then
c10a2228 17967 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
1504c9b8
DWT
17968 fi
17969 done
17970
17971
c10a2228
JF
17972else
17973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17974$as_echo "no" >&6; }
17975fi
17976
17977 ac_ext=cpp
17978ac_cpp='$CXXCPP $CPPFLAGS'
17979ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17980ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17981ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17982
17983
17984
17985 ac_ext=mm
17986ac_cpp='$OBJCXXCPP $CPPFLAGS'
17987ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17988ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17989ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
17990
babf7fe8
JF
17991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-parentheses" >&5
17992$as_echo_n "checking for c++ -ObjC -Wno-parentheses... " >&6; }
c10a2228
JF
17993
17994 cy_save=$OBJCXXFLAGS
17995
babf7fe8 17996 for element in -Wno-parentheses; do
1504c9b8 17997 haveit=
c10a2228 17998 for x in $OBJCXXFLAGS; do
1504c9b8
DWT
17999
18000 acl_save_prefix="$prefix"
18001 prefix="$acl_final_prefix"
18002 acl_save_exec_prefix="$exec_prefix"
18003 exec_prefix="$acl_final_exec_prefix"
18004 eval x=\"$x\"
18005 exec_prefix="$acl_save_exec_prefix"
18006 prefix="$acl_save_prefix"
18007
18008 if test "X$x" = "X$element"; then
18009 haveit=yes
18010 break
18011 fi
18012 done
18013 if test -z "$haveit"; then
c10a2228 18014 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
1504c9b8
DWT
18015 fi
18016 done
18017
18018
c10a2228
JF
18019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18020/* end confdefs.h. */
18021
18022_ACEOF
18023if ac_fn_objcxx_try_compile "$LINENO"; then :
18024 cy_good=1
18025else
18026 cy_good=0
18027fi
18028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18029
18030 OBJCXXFLAGS=$cy_save
18031 if test "x$cy_good" = x1; then :
18032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18033$as_echo "yes" >&6; }
18034
babf7fe8 18035 for element in -Wno-parentheses; do
1504c9b8 18036 haveit=
c10a2228 18037 for x in $OBJCXXFLAGS; do
1504c9b8
DWT
18038
18039 acl_save_prefix="$prefix"
18040 prefix="$acl_final_prefix"
18041 acl_save_exec_prefix="$exec_prefix"
18042 exec_prefix="$acl_final_exec_prefix"
18043 eval x=\"$x\"
18044 exec_prefix="$acl_save_exec_prefix"
18045 prefix="$acl_save_prefix"
18046
18047 if test "X$x" = "X$element"; then
18048 haveit=yes
18049 break
18050 fi
18051 done
18052 if test -z "$haveit"; then
c10a2228 18053 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
1504c9b8
DWT
18054 fi
18055 done
18056
18057
66170b30
JF
18058else
18059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18060$as_echo "no" >&6; }
1504c9b8 18061fi
1504c9b8 18062
c10a2228
JF
18063 ac_ext=cpp
18064ac_cpp='$CXXCPP $CPPFLAGS'
18065ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18066ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18067ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18068
18069
1504c9b8 18070
1504c9b8 18071
1504c9b8 18072
babf7fe8
JF
18073 ac_ext=c
18074ac_cpp='$CPP $CPPFLAGS'
18075ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18076ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18077ac_compiler_gnu=$ac_cv_c_compiler_gnu
1504c9b8 18078
babf7fe8
JF
18079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-unneeded-internal-declaration" >&5
18080$as_echo_n "checking for cc -Wno-unneeded-internal-declaration... " >&6; }
18081
18082 cy_save=$CFLAGS
18083
18084 for element in -Wno-unneeded-internal-declaration; do
1504c9b8 18085 haveit=
babf7fe8 18086 for x in $CFLAGS; do
1504c9b8
DWT
18087
18088 acl_save_prefix="$prefix"
18089 prefix="$acl_final_prefix"
18090 acl_save_exec_prefix="$exec_prefix"
18091 exec_prefix="$acl_final_exec_prefix"
18092 eval x=\"$x\"
18093 exec_prefix="$acl_save_exec_prefix"
18094 prefix="$acl_save_prefix"
18095
18096 if test "X$x" = "X$element"; then
18097 haveit=yes
18098 break
18099 fi
18100 done
18101 if test -z "$haveit"; then
babf7fe8 18102 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
1504c9b8
DWT
18103 fi
18104 done
18105
66170b30
JF
18106
18107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1504c9b8
DWT
18108/* end confdefs.h. */
18109
a243b558 18110_ACEOF
babf7fe8 18111if ac_fn_c_try_compile "$LINENO"; then :
a243b558
JF
18112 cy_good=1
18113else
18114 cy_good=0
18115fi
babf7fe8 18116rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1504c9b8 18117
babf7fe8 18118 CFLAGS=$cy_save
a243b558
JF
18119 if test "x$cy_good" = x1; then :
18120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18121$as_echo "yes" >&6; }
66170b30 18122
babf7fe8 18123 for element in -Wno-unneeded-internal-declaration; do
1504c9b8 18124 haveit=
babf7fe8 18125 for x in $CFLAGS; do
1504c9b8
DWT
18126
18127 acl_save_prefix="$prefix"
18128 prefix="$acl_final_prefix"
18129 acl_save_exec_prefix="$exec_prefix"
18130 exec_prefix="$acl_final_exec_prefix"
18131 eval x=\"$x\"
18132 exec_prefix="$acl_save_exec_prefix"
18133 prefix="$acl_save_prefix"
18134
18135 if test "X$x" = "X$element"; then
18136 haveit=yes
18137 break
18138 fi
18139 done
18140 if test -z "$haveit"; then
babf7fe8 18141 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
1504c9b8
DWT
18142 fi
18143 done
18144
18145
18146else
66170b30
JF
18147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18148$as_echo "no" >&6; }
1504c9b8
DWT
18149fi
18150
babf7fe8
JF
18151 ac_ext=cpp
18152ac_cpp='$CXXCPP $CPPFLAGS'
18153ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18154ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18155ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
296ee9a6 18156
9c60689e 18157
632b71ea 18158
babf7fe8
JF
18159 ac_ext=cpp
18160ac_cpp='$CXXCPP $CPPFLAGS'
18161ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18162ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18163ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
632b71ea 18164
babf7fe8
JF
18165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-unneeded-internal-declaration" >&5
18166$as_echo_n "checking for c++ -Wno-unneeded-internal-declaration... " >&6; }
9c60689e 18167
babf7fe8 18168 cy_save=$CXXFLAGS
9c60689e 18169
babf7fe8
JF
18170 for element in -Wno-unneeded-internal-declaration; do
18171 haveit=
18172 for x in $CXXFLAGS; do
9c60689e 18173
babf7fe8
JF
18174 acl_save_prefix="$prefix"
18175 prefix="$acl_final_prefix"
18176 acl_save_exec_prefix="$exec_prefix"
18177 exec_prefix="$acl_final_exec_prefix"
18178 eval x=\"$x\"
18179 exec_prefix="$acl_save_exec_prefix"
18180 prefix="$acl_save_prefix"
66170b30 18181
babf7fe8
JF
18182 if test "X$x" = "X$element"; then
18183 haveit=yes
18184 break
18185 fi
18186 done
18187 if test -z "$haveit"; then
18188 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
18189 fi
18190 done
7eda51e0 18191
7eda51e0 18192
babf7fe8
JF
18193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18194/* end confdefs.h. */
7eda51e0 18195
7eda51e0 18196_ACEOF
babf7fe8
JF
18197if ac_fn_cxx_try_compile "$LINENO"; then :
18198 cy_good=1
9c60689e 18199else
babf7fe8 18200 cy_good=0
9c60689e 18201fi
babf7fe8 18202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7eda51e0 18203
babf7fe8
JF
18204 CXXFLAGS=$cy_save
18205 if test "x$cy_good" = x1; then :
18206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18207$as_echo "yes" >&6; }
7eda51e0 18208
babf7fe8 18209 for element in -Wno-unneeded-internal-declaration; do
7eda51e0 18210 haveit=
babf7fe8 18211 for x in $CXXFLAGS; do
9c60689e 18212
7eda51e0
JF
18213 acl_save_prefix="$prefix"
18214 prefix="$acl_final_prefix"
18215 acl_save_exec_prefix="$exec_prefix"
18216 exec_prefix="$acl_final_exec_prefix"
18217 eval x=\"$x\"
18218 exec_prefix="$acl_save_exec_prefix"
18219 prefix="$acl_save_prefix"
9c60689e 18220
7eda51e0
JF
18221 if test "X$x" = "X$element"; then
18222 haveit=yes
18223 break
18224 fi
18225 done
18226 if test -z "$haveit"; then
babf7fe8 18227 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
7eda51e0
JF
18228 fi
18229 done
9c60689e 18230
9c60689e 18231
5053a6d1 18232else
babf7fe8
JF
18233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18234$as_echo "no" >&6; }
632b71ea
DWT
18235fi
18236
babf7fe8
JF
18237 ac_ext=cpp
18238ac_cpp='$CXXCPP $CPPFLAGS'
18239ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18240ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18241ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
632b71ea
DWT
18242
18243
5053a6d1 18244
babf7fe8
JF
18245 ac_ext=mm
18246ac_cpp='$OBJCXXCPP $CPPFLAGS'
18247ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18248ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18249ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
5053a6d1 18250
babf7fe8
JF
18251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-unneeded-internal-declaration" >&5
18252$as_echo_n "checking for c++ -ObjC -Wno-unneeded-internal-declaration... " >&6; }
632b71ea 18253
babf7fe8 18254 cy_save=$OBJCXXFLAGS
632b71ea 18255
babf7fe8 18256 for element in -Wno-unneeded-internal-declaration; do
5053a6d1 18257 haveit=
babf7fe8 18258 for x in $OBJCXXFLAGS; do
632b71ea
DWT
18259
18260 acl_save_prefix="$prefix"
18261 prefix="$acl_final_prefix"
18262 acl_save_exec_prefix="$exec_prefix"
18263 exec_prefix="$acl_final_exec_prefix"
5053a6d1 18264 eval x=\"$x\"
632b71ea
DWT
18265 exec_prefix="$acl_save_exec_prefix"
18266 prefix="$acl_save_prefix"
18267
5053a6d1
DWT
18268 if test "X$x" = "X$element"; then
18269 haveit=yes
18270 break
18271 fi
18272 done
18273 if test -z "$haveit"; then
babf7fe8 18274 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
5053a6d1
DWT
18275 fi
18276 done
18277
66170b30 18278
babf7fe8
JF
18279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18280/* end confdefs.h. */
18281
18282_ACEOF
18283if ac_fn_objcxx_try_compile "$LINENO"; then :
18284 cy_good=1
18285else
18286 cy_good=0
18287fi
18288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18289
18290 OBJCXXFLAGS=$cy_save
18291 if test "x$cy_good" = x1; then :
18292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18293$as_echo "yes" >&6; }
18294
18295 for element in -Wno-unneeded-internal-declaration; do
7eda51e0 18296 haveit=
babf7fe8 18297 for x in $OBJCXXFLAGS; do
7eda51e0
JF
18298
18299 acl_save_prefix="$prefix"
18300 prefix="$acl_final_prefix"
18301 acl_save_exec_prefix="$exec_prefix"
18302 exec_prefix="$acl_final_exec_prefix"
18303 eval x=\"$x\"
18304 exec_prefix="$acl_save_exec_prefix"
18305 prefix="$acl_save_prefix"
18306
18307 if test "X$x" = "X$element"; then
18308 haveit=yes
18309 break
18310 fi
18311 done
18312 if test -z "$haveit"; then
babf7fe8 18313 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
7eda51e0
JF
18314 fi
18315 done
66170b30
JF
18316
18317
babf7fe8
JF
18318else
18319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18320$as_echo "no" >&6; }
5053a6d1 18321fi
7eda51e0 18322
babf7fe8
JF
18323 ac_ext=cpp
18324ac_cpp='$CXXCPP $CPPFLAGS'
18325ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18326ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18327ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5053a6d1 18328
5053a6d1
DWT
18329
18330
5053a6d1 18331
babf7fe8
JF
18332
18333
3615a2f7 18334for cy_arch in ppc ppc64 i386 x86_64 armv6 arm64; do
abc804fa
JF
18335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -arch $cy_arch" >&5
18336$as_echo_n "checking for -arch $cy_arch... " >&6; }
18337
18338 cy_save=$CXXFLAGS
18339
18340 for element in "-arch $cy_arch"; do
18341 haveit=
18342 for x in $CXXFLAGS; do
18343
18344 acl_save_prefix="$prefix"
18345 prefix="$acl_final_prefix"
18346 acl_save_exec_prefix="$exec_prefix"
18347 exec_prefix="$acl_final_exec_prefix"
18348 eval x=\"$x\"
18349 exec_prefix="$acl_save_exec_prefix"
18350 prefix="$acl_save_prefix"
18351
18352 if test "X$x" = "X$element"; then
18353 haveit=yes
18354 break
18355 fi
18356 done
18357 if test -z "$haveit"; then
18358 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
18359 fi
18360 done
18361
18362
18363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18364/* end confdefs.h. */
18365
18366int
18367main ()
18368{
18369
18370 ;
18371 return 0;
18372}
18373_ACEOF
18374if ac_fn_cxx_try_link "$LINENO"; then :
18375 cy_good=1
18376else
18377 cy_good=0
18378fi
18379rm -f core conftest.err conftest.$ac_objext \
18380 conftest$ac_exeext conftest.$ac_ext
18381
18382 CXXFLAGS=$cy_save
18383 if test "x$cy_good" = x1; then :
18384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18385$as_echo "yes" >&6; }
18386
18387 for element in "-arch $cy_arch"; do
18388 haveit=
18389 for x in $CY_ARCH; do
18390
18391 acl_save_prefix="$prefix"
18392 prefix="$acl_final_prefix"
18393 acl_save_exec_prefix="$exec_prefix"
18394 exec_prefix="$acl_final_exec_prefix"
18395 eval x=\"$x\"
18396 exec_prefix="$acl_save_exec_prefix"
18397 prefix="$acl_save_prefix"
18398
18399 if test "X$x" = "X$element"; then
18400 haveit=yes
18401 break
18402 fi
18403 done
18404 if test -z "$haveit"; then
18405 CY_ARCH="${CY_ARCH}${CY_ARCH:+ }$element"
18406 fi
18407 done
18408
18409
18410else
18411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18412$as_echo "no" >&6; }
18413fi
18414
18415done
18416
18417
babf7fe8
JF
18418
18419
18420
18421
18422# Check whether --enable-javascript was given.
18423if test "${enable_javascript+set}" = set; then :
18424 enableval=$enable_javascript;
18425 case $enableval in #(
18426 yes) :
18427
18428
18429
18430
18431 cy_save=$LIBS
18432 LIBS=
18433
18434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
18435$as_echo_n "checking for framework JavaScriptCore... " >&6; }
18436if ${ac_cv_framework_JavaScriptCore+:} false; then :
18437 $as_echo_n "(cached) " >&6
18438else
18439
18440 ac_check_framework_save_LIBS=$LIBS
18441 LIBS="-framework JavaScriptCore $LIBS"
18442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18443/* end confdefs.h. */
18444
18445 #include <JavaScriptCore/JSBase.h>
18446
18447int
18448main ()
18449{
18450
18451 JSEvaluateScript(0, 0, 0, 0, 0, 0);
18452
18453 ;
18454 return 0;
18455}
18456_ACEOF
18457if ac_fn_cxx_try_link "$LINENO"; then :
18458
18459 ac_cv_framework_JavaScriptCore=yes
18460
18461else
18462 ac_cv_framework_JavaScriptCore=no
18463fi
18464rm -f core conftest.err conftest.$ac_objext \
18465 conftest$ac_exeext conftest.$ac_ext
18466 LIBS=$ac_check_framework_save_LIBS
18467
18468fi
18469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
18470$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
18471 if test $ac_cv_framework_JavaScriptCore = yes; then :
18472
18473
18474 for element in "-framework JavaScriptCore"; do
18475 haveit=
18476 for x in $LIBS; do
18477
18478 acl_save_prefix="$prefix"
18479 prefix="$acl_final_prefix"
18480 acl_save_exec_prefix="$exec_prefix"
18481 exec_prefix="$acl_final_exec_prefix"
18482 eval x=\"$x\"
18483 exec_prefix="$acl_save_exec_prefix"
18484 prefix="$acl_save_prefix"
18485
18486 if test "X$x" = "X$element"; then
18487 haveit=yes
18488 break
18489 fi
18490 done
18491 if test -z "$haveit"; then
18492 LIBS="${LIBS}${LIBS:+ }$element"
18493 fi
18494 done
18495
18496
18497 CY_EXECUTE=1
18498
18499
18500
18501else
18502
18503 for cy_webkit_pkg in "webkit-1.0" "WebKitGtk"; do
18504
18505pkg_failed=no
18506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
7eda51e0 18507$as_echo_n "checking for WEBKIT... " >&6; }
5053a6d1 18508
7eda51e0
JF
18509if test -n "$WEBKIT_CFLAGS"; then
18510 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
18511 elif test -n "$PKG_CONFIG"; then
18512 if test -n "$PKG_CONFIG" && \
18513 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
18514 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
18515 ac_status=$?
18516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18517 test $ac_status = 0; }; then
18518 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "$cy_webkit_pkg" 2>/dev/null`
18519else
18520 pkg_failed=yes
18521fi
18522 else
18523 pkg_failed=untried
18524fi
18525if test -n "$WEBKIT_LIBS"; then
18526 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
18527 elif test -n "$PKG_CONFIG"; then
18528 if test -n "$PKG_CONFIG" && \
18529 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
18530 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
18531 ac_status=$?
18532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18533 test $ac_status = 0; }; then
18534 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "$cy_webkit_pkg" 2>/dev/null`
18535else
18536 pkg_failed=yes
18537fi
18538 else
18539 pkg_failed=untried
18540fi
632b71ea 18541
7eda51e0
JF
18542
18543
18544if test $pkg_failed = yes; then
18545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18546$as_echo "no" >&6; }
18547
18548if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18549 _pkg_short_errors_supported=yes
18550else
18551 _pkg_short_errors_supported=no
18552fi
18553 if test $_pkg_short_errors_supported = yes; then
00a96142 18554 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$cy_webkit_pkg" 2>&1`
7eda51e0 18555 else
00a96142 18556 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "$cy_webkit_pkg" 2>&1`
7eda51e0
JF
18557 fi
18558 # Put the nasty error message in config.log where it belongs
18559 echo "$WEBKIT_PKG_ERRORS" >&5
18560
18561 :
18562elif test $pkg_failed = untried; then
18563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18564$as_echo "no" >&6; }
18565 :
18566else
18567 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
18568 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
18569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18570$as_echo "yes" >&6; }
18571
18572 CY_EXECUTE=1
18573
18574
7eda51e0
JF
18575 for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do
18576 haveit=
d70419f1 18577 for x in $CPPFLAGS; do
5053a6d1 18578
7eda51e0
JF
18579 acl_save_prefix="$prefix"
18580 prefix="$acl_final_prefix"
18581 acl_save_exec_prefix="$exec_prefix"
18582 exec_prefix="$acl_final_exec_prefix"
18583 eval x=\"$x\"
18584 exec_prefix="$acl_save_exec_prefix"
18585 prefix="$acl_save_prefix"
5053a6d1 18586
7eda51e0
JF
18587 if test "X$x" = "X$element"; then
18588 haveit=yes
18589 break
18590 fi
18591 done
18592 if test -z "$haveit"; then
d70419f1 18593 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7eda51e0
JF
18594 fi
18595 done
5053a6d1 18596
5053a6d1 18597
7eda51e0 18598 for element in `$PKG_CONFIG --libs $cy_webkit_pkg`; do
632b71ea 18599 haveit=
5053a6d1 18600 for x in $LIBS; do
9c60689e 18601
632b71ea
DWT
18602 acl_save_prefix="$prefix"
18603 prefix="$acl_final_prefix"
18604 acl_save_exec_prefix="$exec_prefix"
18605 exec_prefix="$acl_final_exec_prefix"
18606 eval x=\"$x\"
18607 exec_prefix="$acl_save_exec_prefix"
18608 prefix="$acl_save_prefix"
18609
18610 if test "X$x" = "X$element"; then
18611 haveit=yes
18612 break
18613 fi
18614 done
18615 if test -z "$haveit"; then
5053a6d1 18616 LIBS="${LIBS}${LIBS:+ }$element"
632b71ea
DWT
18617 fi
18618 done
b128dfee 18619
66170b30 18620
7eda51e0
JF
18621fi; if test "x$CY_EXECUTE" = x1; then break; fi
18622 done
5053a6d1
DWT
18623
18624fi
babf7fe8
JF
18625 LTJAVASCRIPTCORE=$LIBS
18626 LIBS=$cy_save
18627
18628
7eda51e0 18629 ;; #(
babf7fe8 18630 no) :
7eda51e0 18631
babf7fe8
JF
18632 CY_EXECUTE=0
18633 ;; #(
18634 JavaScriptCore) :
c823f118 18635
5053a6d1
DWT
18636
18637
babf7fe8
JF
18638 cy_save=$LIBS
18639 LIBS=
18640
5053a6d1
DWT
18641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
18642$as_echo_n "checking for framework JavaScriptCore... " >&6; }
ee134472 18643if ${ac_cv_framework_JavaScriptCore+:} false; then :
c823f118
DWT
18644 $as_echo_n "(cached) " >&6
18645else
18646
5053a6d1
DWT
18647 ac_check_framework_save_LIBS=$LIBS
18648 LIBS="-framework JavaScriptCore $LIBS"
18649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
632b71ea 18650/* end confdefs.h. */
5053a6d1 18651
7eda51e0 18652 #include <JavaScriptCore/JSBase.h>
5053a6d1 18653
632b71ea
DWT
18654int
18655main ()
18656{
66170b30 18657
7eda51e0 18658 JSEvaluateScript(0, 0, 0, 0, 0, 0);
66170b30 18659
632b71ea
DWT
18660 ;
18661 return 0;
18662}
18663_ACEOF
5053a6d1
DWT
18664if ac_fn_cxx_try_link "$LINENO"; then :
18665
18666 ac_cv_framework_JavaScriptCore=yes
18667
18668else
18669 ac_cv_framework_JavaScriptCore=no
632b71ea
DWT
18670fi
18671rm -f core conftest.err conftest.$ac_objext \
18672 conftest$ac_exeext conftest.$ac_ext
5053a6d1 18673 LIBS=$ac_check_framework_save_LIBS
b128dfee 18674
c823f118 18675fi
5053a6d1
DWT
18676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
18677$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
18678 if test $ac_cv_framework_JavaScriptCore = yes; then :
c823f118
DWT
18679
18680
7eda51e0 18681 for element in "-framework JavaScriptCore"; do
5053a6d1
DWT
18682 haveit=
18683 for x in $LIBS; do
18684
18685 acl_save_prefix="$prefix"
18686 prefix="$acl_final_prefix"
18687 acl_save_exec_prefix="$exec_prefix"
18688 exec_prefix="$acl_final_exec_prefix"
18689 eval x=\"$x\"
18690 exec_prefix="$acl_save_exec_prefix"
18691 prefix="$acl_save_prefix"
18692
18693 if test "X$x" = "X$element"; then
18694 haveit=yes
18695 break
18696 fi
18697 done
18698 if test -z "$haveit"; then
18699 LIBS="${LIBS}${LIBS:+ }$element"
18700 fi
18701 done
c823f118 18702
66170b30 18703
7eda51e0
JF
18704 CY_EXECUTE=1
18705
18706
18707
18708else
18709
18710 for cy_webkit_pkg in "webkit-1.0" "WebKitGtk"; do
18711
18712pkg_failed=no
18713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
18714$as_echo_n "checking for WEBKIT... " >&6; }
18715
18716if test -n "$WEBKIT_CFLAGS"; then
18717 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
18718 elif test -n "$PKG_CONFIG"; then
18719 if test -n "$PKG_CONFIG" && \
18720 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
18721 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
18722 ac_status=$?
18723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18724 test $ac_status = 0; }; then
18725 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "$cy_webkit_pkg" 2>/dev/null`
18726else
18727 pkg_failed=yes
18728fi
18729 else
18730 pkg_failed=untried
18731fi
18732if test -n "$WEBKIT_LIBS"; then
18733 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
18734 elif test -n "$PKG_CONFIG"; then
18735 if test -n "$PKG_CONFIG" && \
18736 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
18737 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
18738 ac_status=$?
18739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18740 test $ac_status = 0; }; then
18741 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "$cy_webkit_pkg" 2>/dev/null`
18742else
18743 pkg_failed=yes
18744fi
18745 else
18746 pkg_failed=untried
18747fi
18748
66170b30
JF
18749
18750
7eda51e0
JF
18751if test $pkg_failed = yes; then
18752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18753$as_echo "no" >&6; }
b128dfee 18754
7eda51e0
JF
18755if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18756 _pkg_short_errors_supported=yes
18757else
18758 _pkg_short_errors_supported=no
632b71ea 18759fi
7eda51e0 18760 if test $_pkg_short_errors_supported = yes; then
00a96142 18761 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$cy_webkit_pkg" 2>&1`
7eda51e0 18762 else
00a96142 18763 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "$cy_webkit_pkg" 2>&1`
7eda51e0
JF
18764 fi
18765 # Put the nasty error message in config.log where it belongs
18766 echo "$WEBKIT_PKG_ERRORS" >&5
c823f118 18767
7eda51e0
JF
18768 :
18769elif test $pkg_failed = untried; then
18770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18771$as_echo "no" >&6; }
18772 :
5053a6d1
DWT
18773else
18774 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
18775 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
18776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18777$as_echo "yes" >&6; }
c823f118 18778
7eda51e0
JF
18779 CY_EXECUTE=1
18780
66170b30 18781
7eda51e0 18782 for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do
5053a6d1 18783 haveit=
d70419f1 18784 for x in $CPPFLAGS; do
c823f118 18785
5053a6d1
DWT
18786 acl_save_prefix="$prefix"
18787 prefix="$acl_final_prefix"
18788 acl_save_exec_prefix="$exec_prefix"
18789 exec_prefix="$acl_final_exec_prefix"
18790 eval x=\"$x\"
18791 exec_prefix="$acl_save_exec_prefix"
18792 prefix="$acl_save_prefix"
c823f118 18793
5053a6d1
DWT
18794 if test "X$x" = "X$element"; then
18795 haveit=yes
18796 break
18797 fi
18798 done
18799 if test -z "$haveit"; then
d70419f1 18800 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5053a6d1
DWT
18801 fi
18802 done
c823f118 18803
b66977f1 18804
7eda51e0 18805 for element in `$PKG_CONFIG --libs $cy_webkit_pkg`; do
5053a6d1
DWT
18806 haveit=
18807 for x in $LIBS; do
18808
18809 acl_save_prefix="$prefix"
18810 prefix="$acl_final_prefix"
18811 acl_save_exec_prefix="$exec_prefix"
18812 exec_prefix="$acl_final_exec_prefix"
18813 eval x=\"$x\"
18814 exec_prefix="$acl_save_exec_prefix"
18815 prefix="$acl_save_prefix"
18816
18817 if test "X$x" = "X$element"; then
18818 haveit=yes
18819 break
18820 fi
18821 done
18822 if test -z "$haveit"; then
18823 LIBS="${LIBS}${LIBS:+ }$element"
18824 fi
18825 done
18826
18827
7eda51e0
JF
18828fi; if test "x$CY_EXECUTE" = x1; then break; fi
18829 done
18830
5053a6d1 18831fi
babf7fe8
JF
18832 LTJAVASCRIPTCORE=$LIBS
18833 LIBS=$cy_save
5053a6d1 18834
b66977f1 18835
babf7fe8
JF
18836 ;; #(
18837 *) :
18838 as_fn_error $? "Unknown JavaScript engine: $enableval" "$LINENO" 5 ;;
18839esac
b66977f1 18840
babf7fe8 18841else
b66977f1 18842
7eda51e0 18843
7eda51e0 18844
babf7fe8
JF
18845 cy_save=$LIBS
18846 LIBS=
7eda51e0 18847
babf7fe8
JF
18848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
18849$as_echo_n "checking for framework JavaScriptCore... " >&6; }
18850if ${ac_cv_framework_JavaScriptCore+:} false; then :
18851 $as_echo_n "(cached) " >&6
18852else
7eda51e0 18853
babf7fe8
JF
18854 ac_check_framework_save_LIBS=$LIBS
18855 LIBS="-framework JavaScriptCore $LIBS"
18856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18857/* end confdefs.h. */
7eda51e0 18858
babf7fe8 18859 #include <JavaScriptCore/JSBase.h>
7eda51e0 18860
babf7fe8
JF
18861int
18862main ()
18863{
7eda51e0 18864
babf7fe8 18865 JSEvaluateScript(0, 0, 0, 0, 0, 0);
7eda51e0 18866
babf7fe8
JF
18867 ;
18868 return 0;
18869}
18870_ACEOF
18871if ac_fn_cxx_try_link "$LINENO"; then :
7eda51e0 18872
babf7fe8 18873 ac_cv_framework_JavaScriptCore=yes
b66977f1 18874
b66977f1 18875else
babf7fe8
JF
18876 ac_cv_framework_JavaScriptCore=no
18877fi
18878rm -f core conftest.err conftest.$ac_objext \
18879 conftest$ac_exeext conftest.$ac_ext
18880 LIBS=$ac_check_framework_save_LIBS
7eda51e0 18881
babf7fe8
JF
18882fi
18883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
18884$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
18885 if test $ac_cv_framework_JavaScriptCore = yes; then :
7eda51e0 18886
7eda51e0 18887
babf7fe8
JF
18888 for element in "-framework JavaScriptCore"; do
18889 haveit=
18890 for x in $LIBS; do
18891
18892 acl_save_prefix="$prefix"
18893 prefix="$acl_final_prefix"
18894 acl_save_exec_prefix="$exec_prefix"
18895 exec_prefix="$acl_final_exec_prefix"
18896 eval x=\"$x\"
18897 exec_prefix="$acl_save_exec_prefix"
18898 prefix="$acl_save_prefix"
18899
18900 if test "X$x" = "X$element"; then
18901 haveit=yes
18902 break
18903 fi
18904 done
18905 if test -z "$haveit"; then
18906 LIBS="${LIBS}${LIBS:+ }$element"
18907 fi
18908 done
18909
18910
18911 CY_EXECUTE=1
18912
18913
18914
18915else
18916
18917 for cy_webkit_pkg in "webkit-1.0" "WebKitGtk"; do
18918
18919pkg_failed=no
18920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
18921$as_echo_n "checking for WEBKIT... " >&6; }
18922
18923if test -n "$WEBKIT_CFLAGS"; then
18924 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
18925 elif test -n "$PKG_CONFIG"; then
18926 if test -n "$PKG_CONFIG" && \
18927 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
18928 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
18929 ac_status=$?
18930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18931 test $ac_status = 0; }; then
18932 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "$cy_webkit_pkg" 2>/dev/null`
18933else
18934 pkg_failed=yes
18935fi
18936 else
18937 pkg_failed=untried
18938fi
18939if test -n "$WEBKIT_LIBS"; then
18940 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
18941 elif test -n "$PKG_CONFIG"; then
18942 if test -n "$PKG_CONFIG" && \
18943 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
18944 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
18945 ac_status=$?
18946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18947 test $ac_status = 0; }; then
18948 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "$cy_webkit_pkg" 2>/dev/null`
18949else
18950 pkg_failed=yes
18951fi
18952 else
18953 pkg_failed=untried
18954fi
18955
18956
18957
18958if test $pkg_failed = yes; then
18959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18960$as_echo "no" >&6; }
18961
18962if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18963 _pkg_short_errors_supported=yes
18964else
18965 _pkg_short_errors_supported=no
18966fi
18967 if test $_pkg_short_errors_supported = yes; then
00a96142 18968 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$cy_webkit_pkg" 2>&1`
babf7fe8 18969 else
00a96142 18970 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "$cy_webkit_pkg" 2>&1`
babf7fe8
JF
18971 fi
18972 # Put the nasty error message in config.log where it belongs
18973 echo "$WEBKIT_PKG_ERRORS" >&5
18974
18975 :
18976elif test $pkg_failed = untried; then
18977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18978$as_echo "no" >&6; }
18979 :
18980else
18981 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
18982 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
18983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18984$as_echo "yes" >&6; }
18985
18986 CY_EXECUTE=1
18987
18988
18989 for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do
18990 haveit=
18991 for x in $CPPFLAGS; do
18992
18993 acl_save_prefix="$prefix"
18994 prefix="$acl_final_prefix"
18995 acl_save_exec_prefix="$exec_prefix"
18996 exec_prefix="$acl_final_exec_prefix"
18997 eval x=\"$x\"
18998 exec_prefix="$acl_save_exec_prefix"
18999 prefix="$acl_save_prefix"
19000
19001 if test "X$x" = "X$element"; then
19002 haveit=yes
19003 break
19004 fi
19005 done
19006 if test -z "$haveit"; then
19007 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
19008 fi
19009 done
19010
19011
19012 for element in `$PKG_CONFIG --libs $cy_webkit_pkg`; do
19013 haveit=
19014 for x in $LIBS; do
19015
19016 acl_save_prefix="$prefix"
19017 prefix="$acl_final_prefix"
19018 acl_save_exec_prefix="$exec_prefix"
19019 exec_prefix="$acl_final_exec_prefix"
19020 eval x=\"$x\"
19021 exec_prefix="$acl_save_exec_prefix"
19022 prefix="$acl_save_prefix"
19023
19024 if test "X$x" = "X$element"; then
19025 haveit=yes
19026 break
19027 fi
19028 done
19029 if test -z "$haveit"; then
19030 LIBS="${LIBS}${LIBS:+ }$element"
19031 fi
19032 done
19033
19034
19035fi; if test "x$CY_EXECUTE" = x1; then break; fi
19036 done
19037
19038fi
19039 LTJAVASCRIPTCORE=$LIBS
19040 LIBS=$cy_save
19041
19042
19043
19044fi
19045
19046
a93f15c0
JF
19047# Check whether --enable-console was given.
19048if test "${enable_console+set}" = set; then :
19049 enableval=$enable_console;
19050fi
19051
19052 if test "x$enable_console" != "xno"; then
19053 CY_CONSOLE_TRUE=
19054 CY_CONSOLE_FALSE='#'
19055else
19056 CY_CONSOLE_TRUE='#'
19057 CY_CONSOLE_FALSE=
19058fi
19059
19060
19061if test -z "$CY_CONSOLE_TRUE"; then :
19062
19063if test "x$LTLIBAPR" != x; then :
19064
19065
19066
19067else
19068
babf7fe8
JF
19069
19070 apr_found="no"
19071
19072 if test "$target_os" = "os2-emx"; then
19073 # Scripts don't pass test -x on OS/2
19074 TEST_X="test -f"
19075 else
19076 TEST_X="test -x"
19077 fi
19078
19079 acceptable_majors="1"
19080
19081 apr_temp_acceptable_apr_config=""
19082 for apr_temp_major in $acceptable_majors
19083 do
19084 case $apr_temp_major in
19085 0)
19086 apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-config"
19087 ;;
19088 *)
19089 apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-$apr_temp_major-config"
19090 ;;
19091 esac
19092 done
19093
19094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APR" >&5
19095$as_echo_n "checking for APR... " >&6; }
19096
19097# Check whether --with-apr was given.
19098if test "${with_apr+set}" = set; then :
19099 withval=$with_apr;
19100 if test "$withval" = "no" || test "$withval" = "yes"; then
19101 as_fn_error $? "--with-apr requires a directory or file to be provided" "$LINENO" 5
19102 fi
19103
19104 for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config
19105 do
19106 for lookdir in "$withval/bin" "$withval"
19107 do
19108 if $TEST_X "$lookdir/$apr_temp_apr_config_file"; then
19109 apr_config="$lookdir/$apr_temp_apr_config_file"
19110
19111 apr_found="yes"
19112 break 2
19113 fi
19114 done
19115 done
19116
19117 if test "$apr_found" != "yes" && $TEST_X "$withval" && $withval --help > /dev/null 2>&1 ; then
19118 apr_config="$withval"
19119 apr_found="yes"
19120 fi
19121
19122 if test "$apr_found" != "yes"; then
19123 as_fn_error $? "the --with-apr parameter is incorrect. It must specify an install prefix, a build directory, or an apr-config file." "$LINENO" 5
19124 fi
19125
19126else
19127
19128 if test -n "1" && test "1" = "1"; then
19129 for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config
19130 do
19131 if $apr_temp_apr_config_file --help > /dev/null 2>&1 ; then
19132 apr_config="$apr_temp_apr_config_file"
19133
19134 apr_found="yes"
19135 break
19136 else
19137 for lookdir in /usr /usr/local /usr/local/apr /opt/apr; do
19138 if $TEST_X "$lookdir/bin/$apr_temp_apr_config_file"; then
19139 apr_config="$lookdir/bin/$apr_temp_apr_config_file"
19140
19141 apr_found="yes"
19142 break 2
19143 fi
19144 done
19145 fi
19146 done
19147 fi
19148 if test "$apr_found" = "no" && test -d ""; then
19149 apr_temp_abs_srcdir="`cd && pwd`"
19150 apr_found="reconfig"
19151 apr_bundled_major="`sed -n '/#define.*APR_MAJOR_VERSION/s/^[^0-9]*\([0-9]*\).*$/\1/p' \"/include/apr_version.h\"`"
19152 case $apr_bundled_major in
19153 "")
19154 as_fn_error $? "failed to find major version of bundled APR" "$LINENO" 5
19155 ;;
19156 0)
7eda51e0
JF
19157 apr_temp_apr_config_file="apr-config"
19158 ;;
19159 *)
19160 apr_temp_apr_config_file="apr-$apr_bundled_major-config"
19161 ;;
19162 esac
19163 if test -n ""; then
19164 apr_config="/$apr_temp_apr_config_file"
19165 else
19166 apr_config="/$apr_temp_apr_config_file"
19167 fi
19168 fi
19169
b66977f1 19170fi
7eda51e0
JF
19171
19172
19173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_found" >&5
19174$as_echo "$apr_found" >&6; }
19175
19176case $apr_found in #(
19177 yes) :
19178
19179
19180 for element in `$apr_config --includes`; do
19181 haveit=
19182 for x in $CPPFLAGS; do
19183
19184 acl_save_prefix="$prefix"
19185 prefix="$acl_final_prefix"
19186 acl_save_exec_prefix="$exec_prefix"
19187 exec_prefix="$acl_final_exec_prefix"
19188 eval x=\"$x\"
19189 exec_prefix="$acl_save_exec_prefix"
19190 prefix="$acl_save_prefix"
19191
19192 if test "X$x" = "X$element"; then
19193 haveit=yes
19194 break
19195 fi
19196 done
19197 if test -z "$haveit"; then
19198 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
19199 fi
19200 done
19201
19202
19203 for element in `$apr_config --link-libtool`; do
19204 haveit=
19205 for x in $LTLIBAPR; do
19206
19207 acl_save_prefix="$prefix"
19208 prefix="$acl_final_prefix"
19209 acl_save_exec_prefix="$exec_prefix"
19210 exec_prefix="$acl_final_exec_prefix"
19211 eval x=\"$x\"
19212 exec_prefix="$acl_save_exec_prefix"
19213 prefix="$acl_save_prefix"
19214
19215 if test "X$x" = "X$element"; then
19216 haveit=yes
19217 break
19218 fi
19219 done
19220 if test -z "$haveit"; then
19221 LTLIBAPR="${LTLIBAPR}${LTLIBAPR:+ }$element"
19222 fi
19223 done
19224
19225
19226 ;; #(
19227 *) :
a93f15c0
JF
19228
19229 as_fn_error $? "missing \"libapr\"" "$LINENO" 5
19230 ;;
7eda51e0 19231esac
a93f15c0
JF
19232fi
19233
19234fi
7eda51e0
JF
19235
19236
19237
19238 if test "x$CY_EXECUTE" = x1; then
19239 CY_EXECUTE_TRUE=
19240 CY_EXECUTE_FALSE='#'
b66977f1 19241else
7eda51e0
JF
19242 CY_EXECUTE_TRUE='#'
19243 CY_EXECUTE_FALSE=
b66977f1
DWT
19244fi
19245
19246
19247
7eda51e0
JF
19248case $CY_EXECUTE in #(
19249 1) :
19250
19251 for ac_header in ffi.h ffi/ffi.h
19252do :
19253 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19254ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19255if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19256 cat >>confdefs.h <<_ACEOF
19257#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19258_ACEOF
19259 break
b66977f1 19260fi
7eda51e0
JF
19261
19262done
19263
296ee9a6
JF
19264
19265
19266 cy_save=$LIBS
19267 LIBS=
7eda51e0 19268 if test "x$ac_cv_header_ffi_h" = xno && test "x$ac_cv_header_ffi_ffi_h" = xno; then :
b66977f1 19269
b66977f1 19270
296ee9a6
JF
19271 LIBFFI_CFLAGS
19272 C compiler flags for LIBFFI, overriding pkg-config
19273 LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config
b66977f1
DWT
19274
19275pkg_failed=no
7eda51e0
JF
19276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5
19277$as_echo_n "checking for LIBFFI... " >&6; }
b66977f1 19278
7eda51e0
JF
19279if test -n "$LIBFFI_CFLAGS"; then
19280 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS"
12833ad8
JF
19281 elif test -n "$PKG_CONFIG"; then
19282 if test -n "$PKG_CONFIG" && \
7eda51e0
JF
19283 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
19284 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
b66977f1
DWT
19285 ac_status=$?
19286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19287 test $ac_status = 0; }; then
7eda51e0 19288 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null`
b66977f1
DWT
19289else
19290 pkg_failed=yes
19291fi
12833ad8
JF
19292 else
19293 pkg_failed=untried
b66977f1 19294fi
7eda51e0
JF
19295if test -n "$LIBFFI_LIBS"; then
19296 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS"
12833ad8
JF
19297 elif test -n "$PKG_CONFIG"; then
19298 if test -n "$PKG_CONFIG" && \
7eda51e0
JF
19299 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
19300 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
b66977f1
DWT
19301 ac_status=$?
19302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19303 test $ac_status = 0; }; then
7eda51e0 19304 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null`
b66977f1
DWT
19305else
19306 pkg_failed=yes
19307fi
12833ad8
JF
19308 else
19309 pkg_failed=untried
b66977f1
DWT
19310fi
19311
19312
19313
19314if test $pkg_failed = yes; then
12833ad8
JF
19315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19316$as_echo "no" >&6; }
b66977f1
DWT
19317
19318if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19319 _pkg_short_errors_supported=yes
19320else
19321 _pkg_short_errors_supported=no
19322fi
19323 if test $_pkg_short_errors_supported = yes; then
00a96142 19324 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libffi" 2>&1`
b66977f1 19325 else
00a96142 19326 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libffi" 2>&1`
b66977f1
DWT
19327 fi
19328 # Put the nasty error message in config.log where it belongs
7eda51e0 19329 echo "$LIBFFI_PKG_ERRORS" >&5
b66977f1 19330
7eda51e0
JF
19331 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
19332elif test $pkg_failed = untried; then
19333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19334$as_echo "no" >&6; }
19335 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
19336else
19337 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS
19338 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS
19339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19340$as_echo "yes" >&6; }
b66977f1
DWT
19341
19342
7eda51e0 19343 for element in `$PKG_CONFIG --cflags libffi`; do
b66977f1 19344 haveit=
d70419f1 19345 for x in $CPPFLAGS; do
b66977f1
DWT
19346
19347 acl_save_prefix="$prefix"
19348 prefix="$acl_final_prefix"
19349 acl_save_exec_prefix="$exec_prefix"
19350 exec_prefix="$acl_final_exec_prefix"
19351 eval x=\"$x\"
19352 exec_prefix="$acl_save_exec_prefix"
19353 prefix="$acl_save_prefix"
19354
19355 if test "X$x" = "X$element"; then
19356 haveit=yes
19357 break
19358 fi
19359 done
19360 if test -z "$haveit"; then
d70419f1 19361 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
b66977f1
DWT
19362 fi
19363 done
19364
19365
7eda51e0 19366 for element in `$PKG_CONFIG --libs libffi`; do
b66977f1
DWT
19367 haveit=
19368 for x in $LIBS; do
19369
19370 acl_save_prefix="$prefix"
19371 prefix="$acl_final_prefix"
19372 acl_save_exec_prefix="$exec_prefix"
19373 exec_prefix="$acl_final_exec_prefix"
19374 eval x=\"$x\"
19375 exec_prefix="$acl_save_exec_prefix"
19376 prefix="$acl_save_prefix"
19377
19378 if test "X$x" = "X$element"; then
19379 haveit=yes
19380 break
19381 fi
19382 done
19383 if test -z "$haveit"; then
19384 LIBS="${LIBS}${LIBS:+ }$element"
19385 fi
19386 done
19387
19388
19389fi
19390
7eda51e0
JF
19391else
19392
19393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ffi_call" >&5
19394$as_echo_n "checking for library containing ffi_call... " >&6; }
19395if ${ac_cv_search_ffi_call+:} false; then :
19396 $as_echo_n "(cached) " >&6
19397else
19398 ac_func_search_save_LIBS=$LIBS
19399cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19400/* end confdefs.h. */
19401
19402/* Override any GCC internal prototype to avoid an error.
19403 Use char because int might match the return type of a GCC
19404 builtin and then its argument prototype would still apply. */
19405#ifdef __cplusplus
19406extern "C"
19407#endif
19408char ffi_call ();
19409int
19410main ()
19411{
19412return ffi_call ();
19413 ;
19414 return 0;
19415}
19416_ACEOF
19417for ac_lib in '' ffi; do
19418 if test -z "$ac_lib"; then
19419 ac_res="none required"
19420 else
19421 ac_res=-l$ac_lib
19422 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19423 fi
19424 if ac_fn_cxx_try_link "$LINENO"; then :
19425 ac_cv_search_ffi_call=$ac_res
19426fi
19427rm -f core conftest.err conftest.$ac_objext \
19428 conftest$ac_exeext
19429 if ${ac_cv_search_ffi_call+:} false; then :
19430 break
19431fi
19432done
19433if ${ac_cv_search_ffi_call+:} false; then :
19434
19435else
19436 ac_cv_search_ffi_call=no
19437fi
19438rm conftest.$ac_ext
19439LIBS=$ac_func_search_save_LIBS
19440fi
19441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ffi_call" >&5
19442$as_echo "$ac_cv_search_ffi_call" >&6; }
19443ac_res=$ac_cv_search_ffi_call
19444if test "$ac_res" != no; then :
19445 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19446
19447fi
19448
19449 case $ac_cv_search_ffi_call in #(
19450 no) :
b66977f1
DWT
19451
19452
19453pkg_failed=no
7eda51e0
JF
19454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5
19455$as_echo_n "checking for LIBFFI... " >&6; }
b66977f1 19456
7eda51e0
JF
19457if test -n "$LIBFFI_CFLAGS"; then
19458 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS"
12833ad8
JF
19459 elif test -n "$PKG_CONFIG"; then
19460 if test -n "$PKG_CONFIG" && \
7eda51e0
JF
19461 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
19462 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
b66977f1
DWT
19463 ac_status=$?
19464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19465 test $ac_status = 0; }; then
7eda51e0 19466 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null`
b66977f1
DWT
19467else
19468 pkg_failed=yes
19469fi
12833ad8
JF
19470 else
19471 pkg_failed=untried
b66977f1 19472fi
7eda51e0
JF
19473if test -n "$LIBFFI_LIBS"; then
19474 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS"
12833ad8
JF
19475 elif test -n "$PKG_CONFIG"; then
19476 if test -n "$PKG_CONFIG" && \
7eda51e0
JF
19477 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
19478 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
b66977f1
DWT
19479 ac_status=$?
19480 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19481 test $ac_status = 0; }; then
7eda51e0 19482 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null`
b66977f1
DWT
19483else
19484 pkg_failed=yes
19485fi
12833ad8
JF
19486 else
19487 pkg_failed=untried
b66977f1
DWT
19488fi
19489
19490
19491
19492if test $pkg_failed = yes; then
12833ad8
JF
19493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19494$as_echo "no" >&6; }
b66977f1
DWT
19495
19496if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19497 _pkg_short_errors_supported=yes
19498else
19499 _pkg_short_errors_supported=no
19500fi
19501 if test $_pkg_short_errors_supported = yes; then
00a96142 19502 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libffi" 2>&1`
b66977f1 19503 else
00a96142 19504 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libffi" 2>&1`
b66977f1
DWT
19505 fi
19506 # Put the nasty error message in config.log where it belongs
7eda51e0 19507 echo "$LIBFFI_PKG_ERRORS" >&5
b66977f1 19508
7eda51e0
JF
19509 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
19510elif test $pkg_failed = untried; then
19511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19512$as_echo "no" >&6; }
19513 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
b66977f1 19514else
7eda51e0
JF
19515 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS
19516 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS
19517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19518$as_echo "yes" >&6; }
b66977f1 19519
b66977f1 19520
7eda51e0 19521 for element in `$PKG_CONFIG --cflags libffi`; do
b66977f1 19522 haveit=
d70419f1 19523 for x in $CPPFLAGS; do
7eda51e0
JF
19524
19525 acl_save_prefix="$prefix"
19526 prefix="$acl_final_prefix"
19527 acl_save_exec_prefix="$exec_prefix"
19528 exec_prefix="$acl_final_exec_prefix"
19529 eval x=\"$x\"
19530 exec_prefix="$acl_save_exec_prefix"
19531 prefix="$acl_save_prefix"
19532
19533 if test "X$x" = "X$element"; then
19534 haveit=yes
19535 break
19536 fi
19537 done
19538 if test -z "$haveit"; then
d70419f1 19539 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7eda51e0
JF
19540 fi
19541 done
19542
19543
7eda51e0
JF
19544 for element in `$PKG_CONFIG --libs libffi`; do
19545 haveit=
19546 for x in $LIBS; do
19547
19548 acl_save_prefix="$prefix"
19549 prefix="$acl_final_prefix"
19550 acl_save_exec_prefix="$exec_prefix"
19551 exec_prefix="$acl_final_exec_prefix"
19552 eval x=\"$x\"
19553 exec_prefix="$acl_save_exec_prefix"
19554 prefix="$acl_save_prefix"
19555
19556 if test "X$x" = "X$element"; then
19557 haveit=yes
19558 break
19559 fi
19560 done
19561 if test -z "$haveit"; then
19562 LIBS="${LIBS}${LIBS:+ }$element"
19563 fi
19564 done
19565
19566
19567fi ;; #(
19568 *) :
19569 ;;
19570esac
19571
19572fi
296ee9a6
JF
19573 LTLIBFFI=$LIBS
19574 LIBS=$cy_save
19575
19576
7eda51e0
JF
19577
19578 ac_ext=mm
19579ac_cpp='$OBJCXXCPP $CPPFLAGS'
19580ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19581ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19582ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
19583
19584
19585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we really have Objective C++" >&5
19586$as_echo_n "checking if we really have Objective C++... " >&6; }
19587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19588/* end confdefs.h. */
19589
19590_ACEOF
19591if ac_fn_objcxx_try_compile "$LINENO"; then :
19592
19593 CY_OBJECTIVEC=1
19594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19595$as_echo "yes" >&6; }
19596
19597else
19598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12833ad8 19599$as_echo "no" >&6; }
7eda51e0
JF
19600fi
19601rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b66977f1 19602
7eda51e0 19603 if test "x$CY_OBJECTIVEC" = x1; then :
b66977f1 19604
7eda51e0 19605
babf7fe8
JF
19606 cy_save=$LIBS
19607 LIBS=
19608
7eda51e0
JF
19609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework CoreFoundation" >&5
19610$as_echo_n "checking for framework CoreFoundation... " >&6; }
19611if ${ac_cv_framework_CoreFoundation+:} false; then :
b66977f1
DWT
19612 $as_echo_n "(cached) " >&6
19613else
19614
19615 ac_check_framework_save_LIBS=$LIBS
7eda51e0 19616 LIBS="-framework CoreFoundation $LIBS"
b66977f1
DWT
19617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19618/* end confdefs.h. */
19619
7eda51e0 19620 #include <CoreFoundation/CFBase.h>
b66977f1
DWT
19621
19622int
19623main ()
19624{
7eda51e0 19625CFAllocatorGetDefault();
b66977f1
DWT
19626 ;
19627 return 0;
19628}
19629_ACEOF
7eda51e0 19630if ac_fn_objcxx_try_link "$LINENO"; then :
b66977f1 19631
7eda51e0 19632 ac_cv_framework_CoreFoundation=yes
b66977f1
DWT
19633
19634else
7eda51e0 19635 ac_cv_framework_CoreFoundation=no
b66977f1
DWT
19636fi
19637rm -f core conftest.err conftest.$ac_objext \
19638 conftest$ac_exeext conftest.$ac_ext
19639 LIBS=$ac_check_framework_save_LIBS
19640
19641fi
7eda51e0
JF
19642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_CoreFoundation" >&5
19643$as_echo "$ac_cv_framework_CoreFoundation" >&6; }
19644 if test $ac_cv_framework_CoreFoundation = yes; then :
b66977f1
DWT
19645
19646
7eda51e0 19647 for element in "-framework CoreFoundation"; do
b66977f1
DWT
19648 haveit=
19649 for x in $LIBS; do
19650
19651 acl_save_prefix="$prefix"
19652 prefix="$acl_final_prefix"
19653 acl_save_exec_prefix="$exec_prefix"
19654 exec_prefix="$acl_final_exec_prefix"
19655 eval x=\"$x\"
19656 exec_prefix="$acl_save_exec_prefix"
19657 prefix="$acl_save_prefix"
19658
19659 if test "X$x" = "X$element"; then
19660 haveit=yes
19661 break
19662 fi
19663 done
19664 if test -z "$haveit"; then
19665 LIBS="${LIBS}${LIBS:+ }$element"
19666 fi
19667 done
19668
66170b30 19669
66170b30
JF
19670
19671
b66977f1 19672
b66977f1 19673
7eda51e0
JF
19674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework Foundation" >&5
19675$as_echo_n "checking for framework Foundation... " >&6; }
19676if ${ac_cv_framework_Foundation+:} false; then :
19677 $as_echo_n "(cached) " >&6
b66977f1 19678else
b66977f1 19679
7eda51e0
JF
19680 ac_check_framework_save_LIBS=$LIBS
19681 LIBS="-framework Foundation $LIBS"
19682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19683/* end confdefs.h. */
66170b30 19684
7eda51e0 19685 #include <Foundation/NSObject.h>
b66977f1 19686
7eda51e0
JF
19687int
19688main ()
19689{
19690[[NSObject alloc] init];
19691 ;
19692 return 0;
19693}
19694_ACEOF
19695if ac_fn_objcxx_try_link "$LINENO"; then :
b66977f1 19696
7eda51e0 19697 ac_cv_framework_Foundation=yes
b66977f1 19698
7eda51e0
JF
19699else
19700 ac_cv_framework_Foundation=no
19701fi
19702rm -f core conftest.err conftest.$ac_objext \
19703 conftest$ac_exeext conftest.$ac_ext
19704 LIBS=$ac_check_framework_save_LIBS
19705
19706fi
19707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Foundation" >&5
19708$as_echo "$ac_cv_framework_Foundation" >&6; }
19709 if test $ac_cv_framework_Foundation = yes; then :
b66977f1
DWT
19710
19711
7eda51e0 19712 for element in "-framework Foundation"; do
b66977f1
DWT
19713 haveit=
19714 for x in $LIBS; do
19715
19716 acl_save_prefix="$prefix"
19717 prefix="$acl_final_prefix"
19718 acl_save_exec_prefix="$exec_prefix"
19719 exec_prefix="$acl_final_exec_prefix"
19720 eval x=\"$x\"
19721 exec_prefix="$acl_save_exec_prefix"
19722 prefix="$acl_save_prefix"
19723
19724 if test "X$x" = "X$element"; then
19725 haveit=yes
19726 break
19727 fi
19728 done
19729 if test -z "$haveit"; then
19730 LIBS="${LIBS}${LIBS:+ }$element"
19731 fi
19732 done
19733
7eda51e0
JF
19734 cat >>confdefs.h <<_ACEOF
19735#define HAVE_FRAMEWORK_FOUNDATION 1
19736_ACEOF
19737
b66977f1 19738
7eda51e0 19739fi
b66977f1
DWT
19740
19741
7eda51e0 19742else
b66977f1 19743
b66977f1 19744
7eda51e0
JF
19745 for ac_prog in gnustep-config
19746do
19747 # Extract the first word of "$ac_prog", so it can be a program name with args.
19748set dummy $ac_prog; ac_word=$2
19749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19750$as_echo_n "checking for $ac_word... " >&6; }
19751if ${ac_cv_prog_GNUSTEP_CONFIG+:} false; then :
19752 $as_echo_n "(cached) " >&6
b66977f1 19753else
7eda51e0
JF
19754 if test -n "$GNUSTEP_CONFIG"; then
19755 ac_cv_prog_GNUSTEP_CONFIG="$GNUSTEP_CONFIG" # Let the user override the test.
b66977f1 19756else
7eda51e0
JF
19757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19758for as_dir in $PATH
19759do
19760 IFS=$as_save_IFS
19761 test -z "$as_dir" && as_dir=.
19762 for ac_exec_ext in '' $ac_executable_extensions; do
19763 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19764 ac_cv_prog_GNUSTEP_CONFIG="$ac_prog"
19765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19766 break 2
19767 fi
19768done
19769 done
19770IFS=$as_save_IFS
b66977f1 19771
b66977f1 19772fi
b66977f1 19773fi
7eda51e0
JF
19774GNUSTEP_CONFIG=$ac_cv_prog_GNUSTEP_CONFIG
19775if test -n "$GNUSTEP_CONFIG"; then
19776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_CONFIG" >&5
19777$as_echo "$GNUSTEP_CONFIG" >&6; }
b66977f1 19778else
7eda51e0 19779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12833ad8 19780$as_echo "no" >&6; }
b66977f1 19781fi
66170b30 19782
66170b30 19783
7eda51e0
JF
19784 test -n "$GNUSTEP_CONFIG" && break
19785done
b66977f1 19786
b66977f1 19787
7eda51e0 19788 if test "x$GNUSTEP_CONFIG" != x; then :
b66977f1 19789
b66977f1
DWT
19790
19791
7eda51e0 19792 for element in `$GNUSTEP_CONFIG --objc-flags`; do
b66977f1 19793 haveit=
7eda51e0 19794 for x in $OBJCXXFLAGS; do
b66977f1
DWT
19795
19796 acl_save_prefix="$prefix"
19797 prefix="$acl_final_prefix"
19798 acl_save_exec_prefix="$exec_prefix"
19799 exec_prefix="$acl_final_exec_prefix"
19800 eval x=\"$x\"
19801 exec_prefix="$acl_save_exec_prefix"
19802 prefix="$acl_save_prefix"
19803
19804 if test "X$x" = "X$element"; then
19805 haveit=yes
19806 break
19807 fi
19808 done
babf7fe8
JF
19809 if test -z "$haveit"; then
19810 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
19811 fi
19812 done
a667869d 19813
a667869d 19814
babf7fe8 19815 for element in `$GNUSTEP_CONFIG --base-libs`; do
632b71ea 19816 haveit=
babf7fe8 19817 for x in $LIBS; do
a667869d 19818
632b71ea
DWT
19819 acl_save_prefix="$prefix"
19820 prefix="$acl_final_prefix"
19821 acl_save_exec_prefix="$exec_prefix"
19822 exec_prefix="$acl_final_exec_prefix"
19823 eval x=\"$x\"
19824 exec_prefix="$acl_save_exec_prefix"
19825 prefix="$acl_save_prefix"
19826
19827 if test "X$x" = "X$element"; then
19828 haveit=yes
19829 break
19830 fi
19831 done
19832 if test -z "$haveit"; then
babf7fe8 19833 LIBS="${LIBS}${LIBS:+ }$element"
632b71ea
DWT
19834 fi
19835 done
19836
5053a6d1 19837
babf7fe8
JF
19838else
19839 CY_OBJECTIVEC=0
19840
19841fi
19842
19843fi
19844 LTOBJECTIVEC=$LIBS
19845 LIBS=$cy_save
19846
19847
19848
19849fi
19850
19851 ac_ext=cpp
19852ac_cpp='$CXXCPP $CPPFLAGS'
19853ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19854ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19855ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19856
19857 ;; #(
19858 *) :
19859 ;;
19860esac
19861
19862 if test "x$CY_OBJECTIVEC" = x1; then
19863 CY_OBJECTIVEC_TRUE=
19864 CY_OBJECTIVEC_FALSE='#'
19865else
19866 CY_OBJECTIVEC_TRUE='#'
19867 CY_OBJECTIVEC_FALSE=
19868fi
19869
19870
19871
19872 cy_save=$LIBS
19873 LIBS=
19874
19875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
19876$as_echo_n "checking for a readline compatible library... " >&6; }
19877if ${ax_cv_lib_readline+:} false; then :
5053a6d1 19878 $as_echo_n "(cached) " >&6
a667869d 19879else
632b71ea 19880
babf7fe8
JF
19881 ORIG_LIBS="$LIBS"
19882 for readline_lib in readline edit editline; do
19883 for termcap_lib in "" termcap curses ncurses; do
19884 if test -z "$termcap_lib"; then
19885 TRY_LIB="-l$readline_lib"
19886 else
19887 TRY_LIB="-l$readline_lib -l$termcap_lib"
19888 fi
19889 LIBS="$ORIG_LIBS $TRY_LIB"
19890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5053a6d1 19891/* end confdefs.h. */
632b71ea 19892
babf7fe8
JF
19893/* Override any GCC internal prototype to avoid an error.
19894 Use char because int might match the return type of a GCC
19895 builtin and then its argument prototype would still apply. */
19896#ifdef __cplusplus
19897extern "C"
19898#endif
19899char readline ();
5053a6d1
DWT
19900int
19901main ()
19902{
babf7fe8 19903return readline ();
5053a6d1
DWT
19904 ;
19905 return 0;
19906}
19907_ACEOF
babf7fe8
JF
19908if ac_fn_cxx_try_link "$LINENO"; then :
19909 ax_cv_lib_readline="$TRY_LIB"
5053a6d1
DWT
19910fi
19911rm -f core conftest.err conftest.$ac_objext \
19912 conftest$ac_exeext conftest.$ac_ext
babf7fe8
JF
19913 if test -n "$ax_cv_lib_readline"; then
19914 break
19915 fi
19916 done
19917 if test -n "$ax_cv_lib_readline"; then
19918 break
19919 fi
19920 done
19921 if test -z "$ax_cv_lib_readline"; then
19922 ax_cv_lib_readline="no"
19923 fi
19924 LIBS="$ORIG_LIBS"
19925
19926fi
19927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lib_readline" >&5
19928$as_echo "$ax_cv_lib_readline" >&6; }
19929
19930 if test "$ax_cv_lib_readline" != "no"; then
19931 LIBS="$LIBS $ax_cv_lib_readline"
19932
19933$as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
19934
19935 for ac_header in readline.h readline/readline.h
19936do :
19937 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19938ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19939if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19940 cat >>confdefs.h <<_ACEOF
19941#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19942_ACEOF
19943
19944fi
19945
19946done
19947
19948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
19949$as_echo_n "checking whether readline supports history... " >&6; }
19950if ${ax_cv_lib_readline_history+:} false; then :
19951 $as_echo_n "(cached) " >&6
19952else
19953
19954 ax_cv_lib_readline_history="no"
7eda51e0
JF
19955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19956/* end confdefs.h. */
5053a6d1 19957
babf7fe8
JF
19958/* Override any GCC internal prototype to avoid an error.
19959 Use char because int might match the return type of a GCC
19960 builtin and then its argument prototype would still apply. */
19961#ifdef __cplusplus
19962extern "C"
19963#endif
19964char add_history ();
058f1bc8
DWT
19965int
19966main ()
19967{
babf7fe8 19968return add_history ();
058f1bc8
DWT
19969 ;
19970 return 0;
19971}
19972_ACEOF
babf7fe8
JF
19973if ac_fn_cxx_try_link "$LINENO"; then :
19974 ax_cv_lib_readline_history="yes"
058f1bc8
DWT
19975fi
19976rm -f core conftest.err conftest.$ac_objext \
19977 conftest$ac_exeext conftest.$ac_ext
a667869d 19978
a667869d 19979fi
babf7fe8
JF
19980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lib_readline_history" >&5
19981$as_echo "$ax_cv_lib_readline_history" >&6; }
19982 if test "$ax_cv_lib_readline_history" = "yes"; then
058f1bc8 19983
babf7fe8 19984$as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
058f1bc8 19985
babf7fe8
JF
19986 for ac_header in history.h readline/history.h
19987do :
19988 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19989ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19990if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19991 cat >>confdefs.h <<_ACEOF
19992#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7eda51e0 19993_ACEOF
babf7fe8 19994
7eda51e0 19995fi
058f1bc8 19996
babf7fe8 19997done
058f1bc8 19998
babf7fe8 19999 fi
7eda51e0 20000 fi
058f1bc8 20001
babf7fe8
JF
20002 LTLIBREADLINE=$LIBS
20003 LIBS=$cy_save
058f1bc8 20004
058f1bc8 20005
babf7fe8
JF
20006case $ax_cv_lib_readline in #(
20007 no) :
20008 as_fn_error $? "missing \"libreadline\"" "$LINENO" 5 ;; #(
20009 *) :
20010 ;;
20011esac
058f1bc8
DWT
20012
20013
babf7fe8
JF
20014 cy_save=$LIBS
20015 LIBS=
20016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cur_term" >&5
20017$as_echo_n "checking for library containing cur_term... " >&6; }
20018if ${ac_cv_search_cur_term+:} false; then :
7eda51e0
JF
20019 $as_echo_n "(cached) " >&6
20020else
babf7fe8
JF
20021 ac_func_search_save_LIBS=$LIBS
20022cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7eda51e0
JF
20023/* end confdefs.h. */
20024
babf7fe8
JF
20025/* Override any GCC internal prototype to avoid an error.
20026 Use char because int might match the return type of a GCC
20027 builtin and then its argument prototype would still apply. */
7eda51e0 20028#ifdef __cplusplus
babf7fe8 20029extern "C"
7eda51e0 20030#endif
babf7fe8 20031char cur_term ();
7eda51e0
JF
20032int
20033main ()
20034{
babf7fe8 20035return cur_term ();
7eda51e0
JF
20036 ;
20037 return 0;
20038}
20039_ACEOF
a93f15c0 20040for ac_lib in '' termcap ncurses; do
babf7fe8
JF
20041 if test -z "$ac_lib"; then
20042 ac_res="none required"
20043 else
20044 ac_res=-l$ac_lib
20045 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20046 fi
20047 if ac_fn_cxx_try_link "$LINENO"; then :
20048 ac_cv_search_cur_term=$ac_res
7eda51e0 20049fi
babf7fe8
JF
20050rm -f core conftest.err conftest.$ac_objext \
20051 conftest$ac_exeext
20052 if ${ac_cv_search_cur_term+:} false; then :
20053 break
7eda51e0 20054fi
babf7fe8
JF
20055done
20056if ${ac_cv_search_cur_term+:} false; then :
058f1bc8 20057
babf7fe8
JF
20058else
20059 ac_cv_search_cur_term=no
20060fi
20061rm conftest.$ac_ext
20062LIBS=$ac_func_search_save_LIBS
20063fi
20064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cur_term" >&5
20065$as_echo "$ac_cv_search_cur_term" >&6; }
20066ac_res=$ac_cv_search_cur_term
20067if test "$ac_res" != no; then :
20068 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
058f1bc8 20069
babf7fe8 20070fi
058f1bc8 20071
babf7fe8
JF
20072 LTLIBTERMCAP=$LIBS
20073 LIBS=$cy_save
058f1bc8 20074
058f1bc8 20075
66170b30
JF
20076
20077
3615a2f7
JF
20078
20079
9777bd50
JF
20080SO=$acl_shlibext
20081
e1cce270 20082
7eda51e0
JF
20083if test "x$CY_EXECUTE" = x1; then :
20084
20085 ac_fn_cxx_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
ee134472 20086if test "x$ac_cv_header_mach_mach_h" = xyes; then :
e1cce270 20087
7eda51e0 20088 if test -n "$ac_tool_prefix"; then
a243b558 20089 for ac_prog in lipo
794e88e7
DWT
20090 do
20091 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20092set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20094$as_echo_n "checking for $ac_word... " >&6; }
a243b558 20095if ${ac_cv_prog__LIPO+:} false; then :
794e88e7
DWT
20096 $as_echo_n "(cached) " >&6
20097else
a243b558
JF
20098 if test -n "$_LIPO"; then
20099 ac_cv_prog__LIPO="$_LIPO" # Let the user override the test.
794e88e7
DWT
20100else
20101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20102for as_dir in $PATH
20103do
20104 IFS=$as_save_IFS
20105 test -z "$as_dir" && as_dir=.
20106 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 20107 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 20108 ac_cv_prog__LIPO="$ac_tool_prefix$ac_prog"
794e88e7
DWT
20109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20110 break 2
20111 fi
20112done
20113 done
20114IFS=$as_save_IFS
20115
20116fi
20117fi
a243b558
JF
20118_LIPO=$ac_cv_prog__LIPO
20119if test -n "$_LIPO"; then
20120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_LIPO" >&5
20121$as_echo "$_LIPO" >&6; }
794e88e7
DWT
20122else
20123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20124$as_echo "no" >&6; }
20125fi
20126
20127
a243b558 20128 test -n "$_LIPO" && break
794e88e7
DWT
20129 done
20130fi
a243b558
JF
20131if test -z "$_LIPO"; then
20132 ac_ct__LIPO=$_LIPO
20133 for ac_prog in lipo
794e88e7
DWT
20134do
20135 # Extract the first word of "$ac_prog", so it can be a program name with args.
20136set dummy $ac_prog; ac_word=$2
20137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20138$as_echo_n "checking for $ac_word... " >&6; }
a243b558 20139if ${ac_cv_prog_ac_ct__LIPO+:} false; then :
794e88e7
DWT
20140 $as_echo_n "(cached) " >&6
20141else
a243b558
JF
20142 if test -n "$ac_ct__LIPO"; then
20143 ac_cv_prog_ac_ct__LIPO="$ac_ct__LIPO" # Let the user override the test.
794e88e7
DWT
20144else
20145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20146for as_dir in $PATH
20147do
20148 IFS=$as_save_IFS
20149 test -z "$as_dir" && as_dir=.
20150 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 20151 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 20152 ac_cv_prog_ac_ct__LIPO="$ac_prog"
794e88e7
DWT
20153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20154 break 2
20155 fi
20156done
20157 done
20158IFS=$as_save_IFS
20159
20160fi
20161fi
a243b558
JF
20162ac_ct__LIPO=$ac_cv_prog_ac_ct__LIPO
20163if test -n "$ac_ct__LIPO"; then
20164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct__LIPO" >&5
20165$as_echo "$ac_ct__LIPO" >&6; }
794e88e7
DWT
20166else
20167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20168$as_echo "no" >&6; }
20169fi
20170
20171
a243b558 20172 test -n "$ac_ct__LIPO" && break
794e88e7
DWT
20173done
20174
a243b558
JF
20175 if test "x$ac_ct__LIPO" = x; then
20176 _LIPO="as_fn_error $? "missing \"lipo\"" "$LINENO" 5"
794e88e7
DWT
20177 else
20178 case $cross_compiling:$ac_tool_warned in
20179yes:)
20180{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20181$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20182ac_tool_warned=yes ;;
e1cce270 20183esac
a243b558 20184 _LIPO=$ac_ct__LIPO
794e88e7
DWT
20185 fi
20186fi
20187
7eda51e0 20188 if test -n "$ac_tool_prefix"; then
a243b558 20189 for ac_prog in nm
794e88e7
DWT
20190 do
20191 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20192set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20194$as_echo_n "checking for $ac_word... " >&6; }
a243b558 20195if ${ac_cv_prog__NM+:} false; then :
794e88e7
DWT
20196 $as_echo_n "(cached) " >&6
20197else
a243b558
JF
20198 if test -n "$_NM"; then
20199 ac_cv_prog__NM="$_NM" # Let the user override the test.
794e88e7
DWT
20200else
20201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20202for as_dir in $PATH
20203do
20204 IFS=$as_save_IFS
20205 test -z "$as_dir" && as_dir=.
20206 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 20207 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 20208 ac_cv_prog__NM="$ac_tool_prefix$ac_prog"
794e88e7
DWT
20209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20210 break 2
20211 fi
20212done
20213 done
20214IFS=$as_save_IFS
20215
20216fi
20217fi
a243b558
JF
20218_NM=$ac_cv_prog__NM
20219if test -n "$_NM"; then
20220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_NM" >&5
20221$as_echo "$_NM" >&6; }
794e88e7
DWT
20222else
20223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20224$as_echo "no" >&6; }
20225fi
20226
20227
a243b558 20228 test -n "$_NM" && break
794e88e7
DWT
20229 done
20230fi
a243b558
JF
20231if test -z "$_NM"; then
20232 ac_ct__NM=$_NM
20233 for ac_prog in nm
794e88e7
DWT
20234do
20235 # Extract the first word of "$ac_prog", so it can be a program name with args.
20236set dummy $ac_prog; ac_word=$2
20237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20238$as_echo_n "checking for $ac_word... " >&6; }
a243b558 20239if ${ac_cv_prog_ac_ct__NM+:} false; then :
794e88e7
DWT
20240 $as_echo_n "(cached) " >&6
20241else
a243b558
JF
20242 if test -n "$ac_ct__NM"; then
20243 ac_cv_prog_ac_ct__NM="$ac_ct__NM" # Let the user override the test.
794e88e7
DWT
20244else
20245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20246for as_dir in $PATH
20247do
20248 IFS=$as_save_IFS
20249 test -z "$as_dir" && as_dir=.
20250 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 20251 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 20252 ac_cv_prog_ac_ct__NM="$ac_prog"
794e88e7
DWT
20253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20254 break 2
20255 fi
20256done
20257 done
20258IFS=$as_save_IFS
20259
20260fi
20261fi
a243b558
JF
20262ac_ct__NM=$ac_cv_prog_ac_ct__NM
20263if test -n "$ac_ct__NM"; then
20264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct__NM" >&5
20265$as_echo "$ac_ct__NM" >&6; }
794e88e7
DWT
20266else
20267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20268$as_echo "no" >&6; }
20269fi
20270
20271
a243b558 20272 test -n "$ac_ct__NM" && break
794e88e7
DWT
20273done
20274
a243b558
JF
20275 if test "x$ac_ct__NM" = x; then
20276 _NM="as_fn_error $? "missing \"nm\"" "$LINENO" 5"
794e88e7
DWT
20277 else
20278 case $cross_compiling:$ac_tool_warned in
20279yes:)
20280{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20281$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20282ac_tool_warned=yes ;;
20283esac
a243b558 20284 _NM=$ac_ct__NM
794e88e7
DWT
20285 fi
20286fi
20287
7eda51e0 20288 if test -n "$ac_tool_prefix"; then
a243b558 20289 for ac_prog in otool
794e88e7
DWT
20290 do
20291 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20292set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20294$as_echo_n "checking for $ac_word... " >&6; }
a243b558 20295if ${ac_cv_prog__OTOOL+:} false; then :
794e88e7
DWT
20296 $as_echo_n "(cached) " >&6
20297else
a243b558
JF
20298 if test -n "$_OTOOL"; then
20299 ac_cv_prog__OTOOL="$_OTOOL" # Let the user override the test.
794e88e7
DWT
20300else
20301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20302for as_dir in $PATH
20303do
20304 IFS=$as_save_IFS
20305 test -z "$as_dir" && as_dir=.
20306 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 20307 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 20308 ac_cv_prog__OTOOL="$ac_tool_prefix$ac_prog"
794e88e7
DWT
20309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20310 break 2
20311 fi
20312done
20313 done
20314IFS=$as_save_IFS
20315
20316fi
20317fi
a243b558
JF
20318_OTOOL=$ac_cv_prog__OTOOL
20319if test -n "$_OTOOL"; then
20320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_OTOOL" >&5
20321$as_echo "$_OTOOL" >&6; }
794e88e7
DWT
20322else
20323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20324$as_echo "no" >&6; }
20325fi
20326
20327
a243b558 20328 test -n "$_OTOOL" && break
794e88e7
DWT
20329 done
20330fi
a243b558
JF
20331if test -z "$_OTOOL"; then
20332 ac_ct__OTOOL=$_OTOOL
20333 for ac_prog in otool
794e88e7
DWT
20334do
20335 # Extract the first word of "$ac_prog", so it can be a program name with args.
20336set dummy $ac_prog; ac_word=$2
20337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20338$as_echo_n "checking for $ac_word... " >&6; }
a243b558 20339if ${ac_cv_prog_ac_ct__OTOOL+:} false; then :
794e88e7
DWT
20340 $as_echo_n "(cached) " >&6
20341else
a243b558
JF
20342 if test -n "$ac_ct__OTOOL"; then
20343 ac_cv_prog_ac_ct__OTOOL="$ac_ct__OTOOL" # Let the user override the test.
794e88e7
DWT
20344else
20345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20346for as_dir in $PATH
20347do
20348 IFS=$as_save_IFS
20349 test -z "$as_dir" && as_dir=.
20350 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 20351 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 20352 ac_cv_prog_ac_ct__OTOOL="$ac_prog"
794e88e7
DWT
20353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20354 break 2
20355 fi
20356done
20357 done
20358IFS=$as_save_IFS
20359
20360fi
20361fi
a243b558
JF
20362ac_ct__OTOOL=$ac_cv_prog_ac_ct__OTOOL
20363if test -n "$ac_ct__OTOOL"; then
20364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct__OTOOL" >&5
20365$as_echo "$ac_ct__OTOOL" >&6; }
794e88e7
DWT
20366else
20367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20368$as_echo "no" >&6; }
20369fi
20370
20371
a243b558 20372 test -n "$ac_ct__OTOOL" && break
794e88e7
DWT
20373done
20374
a243b558
JF
20375 if test "x$ac_ct__OTOOL" = x; then
20376 _OTOOL="as_fn_error $? "missing \"otool\"" "$LINENO" 5"
794e88e7
DWT
20377 else
20378 case $cross_compiling:$ac_tool_warned in
20379yes:)
20380{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20381$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20382ac_tool_warned=yes ;;
20383esac
a243b558 20384 _OTOOL=$ac_ct__OTOOL
794e88e7
DWT
20385 fi
20386fi
20387
7eda51e0 20388 CY_ATTACH_GROUP=procmod
794e88e7 20389
7eda51e0 20390 CY_MACH=1
e1cce270
DWT
20391
20392fi
20393
20394
7eda51e0 20395fi
a243b558
JF
20396 if test "x$CY_MACH" = x1; then
20397 CY_MACH_TRUE=
20398 CY_MACH_FALSE='#'
20399else
20400 CY_MACH_TRUE='#'
20401 CY_MACH_FALSE=
47aaa820 20402fi
9c60689e 20403
66170b30 20404
a243b558
JF
20405ac_config_files="$ac_config_files Makefile"
20406
9c60689e
DWT
20407cat >confcache <<\_ACEOF
20408# This file is a shell script that caches the results of configure
20409# tests run on this system so they can be shared between configure
20410# scripts and configure runs, see configure's option --config-cache.
20411# It is not useful on other systems. If it contains results you don't
20412# want to keep, you may remove or edit it.
20413#
20414# config.status only pays attention to the cache file if you give it
20415# the --recheck option to rerun configure.
20416#
20417# `ac_cv_env_foo' variables (set or unset) will be overridden when
20418# loading this file, other *unset* `ac_cv_foo' will be assigned the
20419# following values.
20420
20421_ACEOF
20422
20423# The following way of writing the cache mishandles newlines in values,
20424# but we know of no workaround that is simple, portable, and efficient.
20425# So, we kill variables containing newlines.
20426# Ultrix sh set writes to stderr and can't be redirected directly,
20427# and sets the high bit in the cache file unless we assign to the vars.
20428(
20429 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20430 eval ac_val=\$$ac_var
20431 case $ac_val in #(
20432 *${as_nl}*)
20433 case $ac_var in #(
20434 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20435$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20436 esac
20437 case $ac_var in #(
20438 _ | IFS | as_nl) ;; #(
20439 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20440 *) { eval $ac_var=; unset $ac_var;} ;;
20441 esac ;;
20442 esac
20443 done
20444
20445 (set) 2>&1 |
20446 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20447 *${as_nl}ac_space=\ *)
20448 # `set' does not quote correctly, so add quotes: double-quote
20449 # substitution turns \\\\ into \\, and sed turns \\ into \.
20450 sed -n \
20451 "s/'/'\\\\''/g;
20452 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20453 ;; #(
20454 *)
20455 # `set' quotes correctly as required by POSIX, so do not add quotes.
20456 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20457 ;;
20458 esac |
20459 sort
20460) |
20461 sed '
20462 /^ac_cv_env_/b end
20463 t clear
20464 :clear
20465 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20466 t end
20467 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20468 :end' >>confcache
20469if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20470 if test -w "$cache_file"; then
ee134472 20471 if test "x$cache_file" != "x/dev/null"; then
9c60689e
DWT
20472 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20473$as_echo "$as_me: updating cache $cache_file" >&6;}
ee134472
JF
20474 if test ! -f "$cache_file" || test -h "$cache_file"; then
20475 cat confcache >"$cache_file"
20476 else
20477 case $cache_file in #(
20478 */* | ?:*)
20479 mv -f confcache "$cache_file"$$ &&
20480 mv -f "$cache_file"$$ "$cache_file" ;; #(
20481 *)
20482 mv -f confcache "$cache_file" ;;
20483 esac
20484 fi
20485 fi
9c60689e
DWT
20486 else
20487 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20488$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20489 fi
20490fi
20491rm -f confcache
20492
20493test "x$prefix" = xNONE && prefix=$ac_default_prefix
20494# Let make expand exec_prefix.
20495test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20496
296ee9a6 20497DEFS=-DHAVE_CONFIG_H
9c60689e
DWT
20498
20499ac_libobjs=
20500ac_ltlibobjs=
12833ad8 20501U=
9c60689e
DWT
20502for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20503 # 1. Remove the extension, and $U if already installed.
20504 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20505 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20506 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20507 # will be set to the directory where LIBOBJS objects are built.
20508 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20509 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20510done
20511LIBOBJS=$ac_libobjs
20512
20513LTLIBOBJS=$ac_ltlibobjs
20514
20515
66170b30
JF
20516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
20517$as_echo_n "checking that generated files are newer than configure... " >&6; }
20518 if test -n "$am_sleep_pid"; then
20519 # Hide warnings about reused PIDs.
20520 wait $am_sleep_pid 2>/dev/null
20521 fi
20522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
20523$as_echo "done" >&6; }
20524 if test -n "$EXEEXT"; then
20525 am__EXEEXT_TRUE=
20526 am__EXEEXT_FALSE='#'
20527else
20528 am__EXEEXT_TRUE='#'
20529 am__EXEEXT_FALSE=
20530fi
20531
babf7fe8
JF
20532if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20533 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
20534Usually this means the macro was only invoked conditionally." "$LINENO" 5
20535fi
66170b30
JF
20536if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20537 as_fn_error $? "conditional \"AMDEP\" was never defined.
20538Usually this means the macro was only invoked conditionally." "$LINENO" 5
20539fi
a93f15c0
JF
20540if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20541 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20542Usually this means the macro was only invoked conditionally." "$LINENO" 5
20543fi
66170b30
JF
20544if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20545 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
20546Usually this means the macro was only invoked conditionally." "$LINENO" 5
20547fi
20548if test -z "${am__fastdepOBJCXX_TRUE}" && test -z "${am__fastdepOBJCXX_FALSE}"; then
20549 as_fn_error $? "conditional \"am__fastdepOBJCXX\" was never defined.
20550Usually this means the macro was only invoked conditionally." "$LINENO" 5
20551fi
a93f15c0
JF
20552if test -z "${CY_CONSOLE_TRUE}" && test -z "${CY_CONSOLE_FALSE}"; then
20553 as_fn_error $? "conditional \"CY_CONSOLE\" was never defined.
babf7fe8
JF
20554Usually this means the macro was only invoked conditionally." "$LINENO" 5
20555fi
a243b558
JF
20556if test -z "${CY_EXECUTE_TRUE}" && test -z "${CY_EXECUTE_FALSE}"; then
20557 as_fn_error $? "conditional \"CY_EXECUTE\" was never defined.
20558Usually this means the macro was only invoked conditionally." "$LINENO" 5
20559fi
20560if test -z "${CY_OBJECTIVEC_TRUE}" && test -z "${CY_OBJECTIVEC_FALSE}"; then
20561 as_fn_error $? "conditional \"CY_OBJECTIVEC\" was never defined.
20562Usually this means the macro was only invoked conditionally." "$LINENO" 5
20563fi
20564if test -z "${CY_MACH_TRUE}" && test -z "${CY_MACH_FALSE}"; then
20565 as_fn_error $? "conditional \"CY_MACH\" was never defined.
20566Usually this means the macro was only invoked conditionally." "$LINENO" 5
20567fi
9c60689e 20568
ee134472 20569: "${CONFIG_STATUS=./config.status}"
9c60689e
DWT
20570ac_write_fail=0
20571ac_clean_files_save=$ac_clean_files
20572ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20573{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20574$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20575as_write_fail=0
20576cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20577#! $SHELL
20578# Generated by $as_me.
20579# Run this file to recreate the current configuration.
20580# Compiler output produced by configure, useful for debugging
20581# configure, is in config.log if it exists.
20582
20583debug=false
20584ac_cs_recheck=false
20585ac_cs_silent=false
20586
20587SHELL=\${CONFIG_SHELL-$SHELL}
20588export SHELL
20589_ASEOF
20590cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20591## -------------------- ##
20592## M4sh Initialization. ##
20593## -------------------- ##
20594
20595# Be more Bourne compatible
20596DUALCASE=1; export DUALCASE # for MKS sh
20597if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20598 emulate sh
20599 NULLCMD=:
20600 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20601 # is contrary to our usage. Disable this feature.
20602 alias -g '${1+"$@"}'='"$@"'
20603 setopt NO_GLOB_SUBST
20604else
20605 case `(set -o) 2>/dev/null` in #(
20606 *posix*) :
20607 set -o posix ;; #(
20608 *) :
20609 ;;
20610esac
20611fi
20612
20613
20614as_nl='
20615'
20616export as_nl
20617# Printing a long string crashes Solaris 7 /usr/bin/printf.
20618as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20619as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20620as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20621# Prefer a ksh shell builtin over an external printf program on Solaris,
20622# but without wasting forks for bash or zsh.
20623if test -z "$BASH_VERSION$ZSH_VERSION" \
20624 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20625 as_echo='print -r --'
20626 as_echo_n='print -rn --'
20627elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20628 as_echo='printf %s\n'
20629 as_echo_n='printf %s'
20630else
20631 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20632 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20633 as_echo_n='/usr/ucb/echo -n'
20634 else
20635 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20636 as_echo_n_body='eval
20637 arg=$1;
20638 case $arg in #(
20639 *"$as_nl"*)
20640 expr "X$arg" : "X\\(.*\\)$as_nl";
20641 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20642 esac;
20643 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20644 '
20645 export as_echo_n_body
20646 as_echo_n='sh -c $as_echo_n_body as_echo'
20647 fi
20648 export as_echo_body
20649 as_echo='sh -c $as_echo_body as_echo'
20650fi
20651
20652# The user is always right.
20653if test "${PATH_SEPARATOR+set}" != set; then
20654 PATH_SEPARATOR=:
20655 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20656 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20657 PATH_SEPARATOR=';'
20658 }
20659fi
20660
20661
20662# IFS
20663# We need space, tab and new line, in precisely that order. Quoting is
20664# there to prevent editors from complaining about space-tab.
20665# (If _AS_PATH_WALK were called with IFS unset, it would disable word
20666# splitting by setting IFS to empty value.)
20667IFS=" "" $as_nl"
20668
20669# Find who we are. Look in the path if we contain no directory separator.
ee134472 20670as_myself=
9c60689e
DWT
20671case $0 in #((
20672 *[\\/]* ) as_myself=$0 ;;
20673 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20674for as_dir in $PATH
20675do
20676 IFS=$as_save_IFS
20677 test -z "$as_dir" && as_dir=.
20678 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20679 done
20680IFS=$as_save_IFS
20681
20682 ;;
20683esac
20684# We did not find ourselves, most probably we were run as `sh COMMAND'
20685# in which case we are not to be found in the path.
20686if test "x$as_myself" = x; then
20687 as_myself=$0
20688fi
20689if test ! -f "$as_myself"; then
20690 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20691 exit 1
20692fi
20693
20694# Unset variables that we do not need and which cause bugs (e.g. in
20695# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
20696# suppresses any "Segmentation fault" message there. '((' could
20697# trigger a bug in pdksh 5.2.14.
20698for as_var in BASH_ENV ENV MAIL MAILPATH
20699do eval test x\${$as_var+set} = xset \
20700 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20701done
20702PS1='$ '
20703PS2='> '
20704PS4='+ '
20705
20706# NLS nuisances.
20707LC_ALL=C
20708export LC_ALL
20709LANGUAGE=C
20710export LANGUAGE
20711
20712# CDPATH.
20713(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20714
20715
12833ad8
JF
20716# as_fn_error STATUS ERROR [LINENO LOG_FD]
20717# ----------------------------------------
9c60689e
DWT
20718# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20719# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12833ad8 20720# script with STATUS, using 1 if that was 0.
9c60689e
DWT
20721as_fn_error ()
20722{
12833ad8
JF
20723 as_status=$1; test $as_status -eq 0 && as_status=1
20724 if test "$4"; then
20725 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20726 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
9c60689e 20727 fi
12833ad8 20728 $as_echo "$as_me: error: $2" >&2
9c60689e
DWT
20729 as_fn_exit $as_status
20730} # as_fn_error
20731
20732
20733# as_fn_set_status STATUS
20734# -----------------------
20735# Set $? to STATUS, without forking.
20736as_fn_set_status ()
20737{
20738 return $1
20739} # as_fn_set_status
20740
20741# as_fn_exit STATUS
20742# -----------------
20743# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20744as_fn_exit ()
20745{
20746 set +e
20747 as_fn_set_status $1
20748 exit $1
20749} # as_fn_exit
20750
20751# as_fn_unset VAR
20752# ---------------
20753# Portably unset VAR.
20754as_fn_unset ()
20755{
20756 { eval $1=; unset $1;}
20757}
20758as_unset=as_fn_unset
20759# as_fn_append VAR VALUE
20760# ----------------------
20761# Append the text in VALUE to the end of the definition contained in VAR. Take
20762# advantage of any shell optimizations that allow amortized linear growth over
20763# repeated appends, instead of the typical quadratic growth present in naive
20764# implementations.
20765if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20766 eval 'as_fn_append ()
20767 {
20768 eval $1+=\$2
20769 }'
20770else
20771 as_fn_append ()
20772 {
20773 eval $1=\$$1\$2
20774 }
20775fi # as_fn_append
20776
20777# as_fn_arith ARG...
20778# ------------------
20779# Perform arithmetic evaluation on the ARGs, and store the result in the
20780# global $as_val. Take advantage of shells that can avoid forks. The arguments
20781# must be portable across $(()) and expr.
20782if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20783 eval 'as_fn_arith ()
20784 {
20785 as_val=$(( $* ))
20786 }'
20787else
20788 as_fn_arith ()
20789 {
20790 as_val=`expr "$@" || test $? -eq 1`
20791 }
20792fi # as_fn_arith
20793
20794
20795if expr a : '\(a\)' >/dev/null 2>&1 &&
20796 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20797 as_expr=expr
20798else
20799 as_expr=false
20800fi
20801
20802if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20803 as_basename=basename
20804else
20805 as_basename=false
20806fi
20807
20808if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20809 as_dirname=dirname
20810else
20811 as_dirname=false
20812fi
20813
20814as_me=`$as_basename -- "$0" ||
20815$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20816 X"$0" : 'X\(//\)$' \| \
20817 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20818$as_echo X/"$0" |
20819 sed '/^.*\/\([^/][^/]*\)\/*$/{
20820 s//\1/
20821 q
20822 }
20823 /^X\/\(\/\/\)$/{
20824 s//\1/
20825 q
20826 }
20827 /^X\/\(\/\).*/{
20828 s//\1/
20829 q
20830 }
20831 s/.*/./; q'`
20832
20833# Avoid depending upon Character Ranges.
20834as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20835as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20836as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20837as_cr_digits='0123456789'
20838as_cr_alnum=$as_cr_Letters$as_cr_digits
20839
20840ECHO_C= ECHO_N= ECHO_T=
20841case `echo -n x` in #(((((
20842-n*)
20843 case `echo 'xy\c'` in
20844 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20845 xy) ECHO_C='\c';;
20846 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20847 ECHO_T=' ';;
20848 esac;;
20849*)
20850 ECHO_N='-n';;
20851esac
20852
20853rm -f conf$$ conf$$.exe conf$$.file
20854if test -d conf$$.dir; then
20855 rm -f conf$$.dir/conf$$.file
20856else
20857 rm -f conf$$.dir
20858 mkdir conf$$.dir 2>/dev/null
20859fi
20860if (echo >conf$$.file) 2>/dev/null; then
20861 if ln -s conf$$.file conf$$ 2>/dev/null; then
20862 as_ln_s='ln -s'
20863 # ... but there are two gotchas:
20864 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20865 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
53ba6704 20866 # In both cases, we have to default to `cp -pR'.
9c60689e 20867 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
53ba6704 20868 as_ln_s='cp -pR'
9c60689e
DWT
20869 elif ln conf$$.file conf$$ 2>/dev/null; then
20870 as_ln_s=ln
20871 else
53ba6704 20872 as_ln_s='cp -pR'
9c60689e
DWT
20873 fi
20874else
53ba6704 20875 as_ln_s='cp -pR'
9c60689e
DWT
20876fi
20877rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20878rmdir conf$$.dir 2>/dev/null
20879
20880
20881# as_fn_mkdir_p
20882# -------------
20883# Create "$as_dir" as a directory, including parents if necessary.
20884as_fn_mkdir_p ()
20885{
20886
20887 case $as_dir in #(
20888 -*) as_dir=./$as_dir;;
20889 esac
20890 test -d "$as_dir" || eval $as_mkdir_p || {
20891 as_dirs=
20892 while :; do
20893 case $as_dir in #(
20894 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20895 *) as_qdir=$as_dir;;
20896 esac
20897 as_dirs="'$as_qdir' $as_dirs"
20898 as_dir=`$as_dirname -- "$as_dir" ||
20899$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20900 X"$as_dir" : 'X\(//\)[^/]' \| \
20901 X"$as_dir" : 'X\(//\)$' \| \
20902 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20903$as_echo X"$as_dir" |
20904 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20905 s//\1/
20906 q
20907 }
20908 /^X\(\/\/\)[^/].*/{
20909 s//\1/
20910 q
20911 }
20912 /^X\(\/\/\)$/{
20913 s//\1/
20914 q
20915 }
20916 /^X\(\/\).*/{
20917 s//\1/
20918 q
20919 }
20920 s/.*/./; q'`
20921 test -d "$as_dir" && break
20922 done
20923 test -z "$as_dirs" || eval "mkdir $as_dirs"
12833ad8 20924 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
9c60689e
DWT
20925
20926
20927} # as_fn_mkdir_p
20928if mkdir -p . 2>/dev/null; then
20929 as_mkdir_p='mkdir -p "$as_dir"'
20930else
20931 test -d ./-p && rmdir ./-p
20932 as_mkdir_p=false
20933fi
20934
53ba6704
JF
20935
20936# as_fn_executable_p FILE
20937# -----------------------
20938# Test if FILE is an executable regular file.
20939as_fn_executable_p ()
20940{
20941 test -f "$1" && test -x "$1"
20942} # as_fn_executable_p
20943as_test_x='test -x'
20944as_executable_p=as_fn_executable_p
9c60689e
DWT
20945
20946# Sed expression to map a string onto a valid CPP name.
20947as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20948
20949# Sed expression to map a string onto a valid variable name.
20950as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20951
20952
20953exec 6>&1
20954## ----------------------------------- ##
20955## Main body of $CONFIG_STATUS script. ##
20956## ----------------------------------- ##
20957_ASEOF
20958test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20959
20960cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20961# Save the log message, to keep $0 and so on meaningful, and to
20962# report actual input values of CONFIG_FILES etc. instead of their
20963# values after options handling.
20964ac_log="
20965This file was extended by Cycript $as_me 0.9, which was
53ba6704 20966generated by GNU Autoconf 2.69. Invocation command line was
9c60689e
DWT
20967
20968 CONFIG_FILES = $CONFIG_FILES
20969 CONFIG_HEADERS = $CONFIG_HEADERS
20970 CONFIG_LINKS = $CONFIG_LINKS
20971 CONFIG_COMMANDS = $CONFIG_COMMANDS
20972 $ $0 $@
20973
20974on `(hostname || uname -n) 2>/dev/null | sed 1q`
20975"
20976
20977_ACEOF
20978
20979case $ac_config_files in *"
20980"*) set x $ac_config_files; shift; ac_config_files=$*;;
20981esac
20982
296ee9a6
JF
20983case $ac_config_headers in *"
20984"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20985esac
9c60689e
DWT
20986
20987
20988cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20989# Files that config.status was made for.
20990config_files="$ac_config_files"
296ee9a6 20991config_headers="$ac_config_headers"
9c60689e
DWT
20992config_commands="$ac_config_commands"
20993
20994_ACEOF
20995
20996cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20997ac_cs_usage="\
20998\`$as_me' instantiates files and other configuration actions
20999from templates according to the current configuration. Unless the files
21000and actions are specified as TAGs, all are instantiated by default.
21001
21002Usage: $0 [OPTION]... [TAG]...
21003
21004 -h, --help print this help, then exit
21005 -V, --version print version number and configuration settings, then exit
21006 --config print configuration, then exit
21007 -q, --quiet, --silent
21008 do not print progress messages
21009 -d, --debug don't remove temporary files
21010 --recheck update $as_me by reconfiguring in the same conditions
21011 --file=FILE[:TEMPLATE]
21012 instantiate the configuration file FILE
296ee9a6
JF
21013 --header=FILE[:TEMPLATE]
21014 instantiate the configuration header FILE
9c60689e
DWT
21015
21016Configuration files:
21017$config_files
21018
296ee9a6
JF
21019Configuration headers:
21020$config_headers
21021
9c60689e
DWT
21022Configuration commands:
21023$config_commands
21024
21025Report bugs to <saurik@saurik.com>.
21026Cycript home page: <http://www.cycript.org/>."
21027
21028_ACEOF
21029cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21030ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
21031ac_cs_version="\\
21032Cycript config.status 0.9
53ba6704 21033configured by $0, generated by GNU Autoconf 2.69,
9c60689e
DWT
21034 with options \\"\$ac_cs_config\\"
21035
53ba6704 21036Copyright (C) 2012 Free Software Foundation, Inc.
9c60689e
DWT
21037This config.status script is free software; the Free Software Foundation
21038gives unlimited permission to copy, distribute and modify it."
21039
21040ac_pwd='$ac_pwd'
21041srcdir='$srcdir'
21042INSTALL='$INSTALL'
66170b30
JF
21043MKDIR_P='$MKDIR_P'
21044AWK='$AWK'
9c60689e
DWT
21045test -n "\$AWK" || AWK=awk
21046_ACEOF
21047
21048cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21049# The default lists apply if the user does not specify any file.
21050ac_need_defaults=:
21051while test $# != 0
21052do
21053 case $1 in
12833ad8 21054 --*=?*)
9c60689e
DWT
21055 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21056 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21057 ac_shift=:
21058 ;;
12833ad8
JF
21059 --*=)
21060 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21061 ac_optarg=
21062 ac_shift=:
21063 ;;
9c60689e
DWT
21064 *)
21065 ac_option=$1
21066 ac_optarg=$2
21067 ac_shift=shift
21068 ;;
21069 esac
21070
21071 case $ac_option in
21072 # Handling of the options.
21073 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21074 ac_cs_recheck=: ;;
21075 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21076 $as_echo "$ac_cs_version"; exit ;;
21077 --config | --confi | --conf | --con | --co | --c )
21078 $as_echo "$ac_cs_config"; exit ;;
21079 --debug | --debu | --deb | --de | --d | -d )
21080 debug=: ;;
21081 --file | --fil | --fi | --f )
21082 $ac_shift
21083 case $ac_optarg in
21084 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12833ad8 21085 '') as_fn_error $? "missing file argument" ;;
9c60689e
DWT
21086 esac
21087 as_fn_append CONFIG_FILES " '$ac_optarg'"
21088 ac_need_defaults=false;;
296ee9a6
JF
21089 --header | --heade | --head | --hea )
21090 $ac_shift
21091 case $ac_optarg in
21092 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21093 esac
21094 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21095 ac_need_defaults=false;;
21096 --he | --h)
21097 # Conflict between --help and --header
21098 as_fn_error $? "ambiguous option: \`$1'
21099Try \`$0 --help' for more information.";;
21100 --help | --hel | -h )
9c60689e
DWT
21101 $as_echo "$ac_cs_usage"; exit ;;
21102 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21103 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21104 ac_cs_silent=: ;;
21105
21106 # This is an error.
12833ad8 21107 -*) as_fn_error $? "unrecognized option: \`$1'
9c60689e
DWT
21108Try \`$0 --help' for more information." ;;
21109
21110 *) as_fn_append ac_config_targets " $1"
21111 ac_need_defaults=false ;;
21112
21113 esac
21114 shift
21115done
21116
21117ac_configure_extra_args=
21118
21119if $ac_cs_silent; then
21120 exec 6>/dev/null
21121 ac_configure_extra_args="$ac_configure_extra_args --silent"
21122fi
21123
21124_ACEOF
21125cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21126if \$ac_cs_recheck; then
53ba6704 21127 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9c60689e
DWT
21128 shift
21129 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
21130 CONFIG_SHELL='$SHELL'
21131 export CONFIG_SHELL
21132 exec "\$@"
21133fi
21134
21135_ACEOF
21136cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21137exec 5>>config.log
21138{
21139 echo
21140 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21141## Running $as_me. ##
21142_ASBOX
21143 $as_echo "$ac_log"
21144} >&5
21145
21146_ACEOF
21147cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21148#
21149# INIT-COMMANDS
21150#
66170b30 21151AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
9c60689e
DWT
21152
21153
21154# The HP-UX ksh and POSIX shell print the target directory to stdout
21155# if CDPATH is set.
21156(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21157
21158sed_quote_subst='$sed_quote_subst'
21159double_quote_subst='$double_quote_subst'
21160delay_variable_subst='$delay_variable_subst'
ee134472
JF
21161macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
21162macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
21163enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
21164enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
21165pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
21166enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
21167SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
21168ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
53ba6704 21169PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
ee134472
JF
21170host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
21171host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
21172host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
21173build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
21174build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
21175build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
21176SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
21177Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
21178GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
21179EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
21180FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
21181LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
21182NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
21183LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
21184max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
21185ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
21186exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
21187lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
21188lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
21189lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
21190lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
21191lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
21192reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
21193reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
21194OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
21195deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
21196file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
21197file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
21198want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
21199DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
21200sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
21201AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
21202AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
21203archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
21204STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
21205RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
21206old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21207old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21208old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
21209lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
21210CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
21211CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
21212compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
21213GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
21214lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
21215lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
21216lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
21217lt_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"`'
21218nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
21219lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
21220objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
21221MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
21222lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
21223lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
21224lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
21225lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
21226lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
21227need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
21228MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
21229DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
21230NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
21231LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
21232OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
21233OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
21234libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
21235shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
21236extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21237archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
21238enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
21239export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
21240whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
21241compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
21242old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
21243old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21244archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
21245archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21246module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
21247module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21248with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
21249allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
21250no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
21251hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
ee134472
JF
21252hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
21253hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
21254hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
21255hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
21256hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
21257hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
21258inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
21259link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
21260always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
21261export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
21262exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
21263include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
21264prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
21265postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
21266file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
21267variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
21268need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
21269need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
21270version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
21271runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
21272shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
21273shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
21274libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
21275library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
21276soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
21277install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
21278postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21279postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21280finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
21281finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
21282hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
21283sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
21284sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
21285hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
21286enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
21287enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
21288enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
21289old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
21290striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
21291compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
21292predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
21293postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
21294predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
21295postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
21296compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
21297LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
21298reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
21299reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21300old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21301compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
21302GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
21303lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
21304lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
21305lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
21306lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
21307lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
21308archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
21309enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
21310export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21311whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21312compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
21313old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21314old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21315archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21316archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21317module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21318module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21319with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
21320allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
21321no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
21322hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
ee134472
JF
21323hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
21324hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
21325hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
21326hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
21327hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
21328hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
21329inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
21330link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
21331always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
21332export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21333exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
21334include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
21335prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21336postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21337file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
21338hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
21339compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
21340predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
21341postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
21342predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
21343postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
21344compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
9c60689e
DWT
21345
21346LTCC='$LTCC'
21347LTCFLAGS='$LTCFLAGS'
21348compiler='$compiler_DEFAULT'
21349
ee134472
JF
21350# A function that is used when there is no print builtin or printf.
21351func_fallback_echo ()
21352{
21353 eval 'cat <<_LTECHO_EOF
21354\$1
21355_LTECHO_EOF'
21356}
21357
9c60689e 21358# Quote evaled strings.
ee134472
JF
21359for var in SHELL \
21360ECHO \
53ba6704 21361PATH_SEPARATOR \
ee134472 21362SED \
9c60689e
DWT
21363GREP \
21364EGREP \
21365FGREP \
21366LD \
21367NM \
21368LN_S \
21369lt_SP2NL \
21370lt_NL2SP \
21371reload_flag \
21372OBJDUMP \
21373deplibs_check_method \
21374file_magic_cmd \
ee134472
JF
21375file_magic_glob \
21376want_nocaseglob \
21377DLLTOOL \
21378sharedlib_from_linklib_cmd \
9c60689e
DWT
21379AR \
21380AR_FLAGS \
ee134472 21381archiver_list_spec \
9c60689e
DWT
21382STRIP \
21383RANLIB \
21384CC \
21385CFLAGS \
21386compiler \
21387lt_cv_sys_global_symbol_pipe \
21388lt_cv_sys_global_symbol_to_cdecl \
21389lt_cv_sys_global_symbol_to_c_name_address \
21390lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
ee134472 21391nm_file_list_spec \
9c60689e 21392lt_prog_compiler_no_builtin_flag \
9c60689e 21393lt_prog_compiler_pic \
ee134472 21394lt_prog_compiler_wl \
9c60689e
DWT
21395lt_prog_compiler_static \
21396lt_cv_prog_compiler_c_o \
21397need_locks \
ee134472 21398MANIFEST_TOOL \
9c60689e
DWT
21399DSYMUTIL \
21400NMEDIT \
21401LIPO \
21402OTOOL \
21403OTOOL64 \
21404shrext_cmds \
21405export_dynamic_flag_spec \
21406whole_archive_flag_spec \
21407compiler_needs_object \
21408with_gnu_ld \
21409allow_undefined_flag \
21410no_undefined_flag \
21411hardcode_libdir_flag_spec \
9c60689e 21412hardcode_libdir_separator \
9c60689e
DWT
21413exclude_expsyms \
21414include_expsyms \
21415file_list_spec \
21416variables_saved_for_relink \
21417libname_spec \
21418library_names_spec \
21419soname_spec \
ee134472 21420install_override_mode \
9c60689e
DWT
21421finish_eval \
21422old_striplib \
21423striplib \
21424compiler_lib_search_dirs \
21425predep_objects \
21426postdep_objects \
21427predeps \
21428postdeps \
21429compiler_lib_search_path \
21430LD_CXX \
ee134472 21431reload_flag_CXX \
9c60689e
DWT
21432compiler_CXX \
21433lt_prog_compiler_no_builtin_flag_CXX \
9c60689e 21434lt_prog_compiler_pic_CXX \
ee134472 21435lt_prog_compiler_wl_CXX \
9c60689e
DWT
21436lt_prog_compiler_static_CXX \
21437lt_cv_prog_compiler_c_o_CXX \
21438export_dynamic_flag_spec_CXX \
21439whole_archive_flag_spec_CXX \
21440compiler_needs_object_CXX \
21441with_gnu_ld_CXX \
21442allow_undefined_flag_CXX \
21443no_undefined_flag_CXX \
21444hardcode_libdir_flag_spec_CXX \
9c60689e 21445hardcode_libdir_separator_CXX \
9c60689e
DWT
21446exclude_expsyms_CXX \
21447include_expsyms_CXX \
21448file_list_spec_CXX \
21449compiler_lib_search_dirs_CXX \
21450predep_objects_CXX \
21451postdep_objects_CXX \
21452predeps_CXX \
21453postdeps_CXX \
21454compiler_lib_search_path_CXX; do
ee134472 21455 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
9c60689e 21456 *[\\\\\\\`\\"\\\$]*)
ee134472 21457 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
9c60689e
DWT
21458 ;;
21459 *)
21460 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21461 ;;
21462 esac
21463done
21464
21465# Double-quote double-evaled strings.
21466for var in reload_cmds \
21467old_postinstall_cmds \
21468old_postuninstall_cmds \
21469old_archive_cmds \
21470extract_expsyms_cmds \
21471old_archive_from_new_cmds \
21472old_archive_from_expsyms_cmds \
21473archive_cmds \
21474archive_expsym_cmds \
21475module_cmds \
21476module_expsym_cmds \
21477export_symbols_cmds \
21478prelink_cmds \
ee134472 21479postlink_cmds \
9c60689e
DWT
21480postinstall_cmds \
21481postuninstall_cmds \
21482finish_cmds \
21483sys_lib_search_path_spec \
21484sys_lib_dlsearch_path_spec \
ee134472 21485reload_cmds_CXX \
9c60689e
DWT
21486old_archive_cmds_CXX \
21487old_archive_from_new_cmds_CXX \
21488old_archive_from_expsyms_cmds_CXX \
21489archive_cmds_CXX \
21490archive_expsym_cmds_CXX \
21491module_cmds_CXX \
21492module_expsym_cmds_CXX \
21493export_symbols_cmds_CXX \
ee134472
JF
21494prelink_cmds_CXX \
21495postlink_cmds_CXX; do
21496 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
9c60689e 21497 *[\\\\\\\`\\"\\\$]*)
ee134472 21498 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
9c60689e
DWT
21499 ;;
21500 *)
21501 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21502 ;;
21503 esac
21504done
21505
9c60689e
DWT
21506ac_aux_dir='$ac_aux_dir'
21507xsi_shell='$xsi_shell'
21508lt_shell_append='$lt_shell_append'
21509
21510# See if we are running on zsh, and set the options which allow our
21511# commands through without removal of \ escapes INIT.
21512if test -n "\${ZSH_VERSION+set}" ; then
21513 setopt NO_GLOB_SUBST
21514fi
21515
21516
21517 PACKAGE='$PACKAGE'
21518 VERSION='$VERSION'
21519 TIMESTAMP='$TIMESTAMP'
21520 RM='$RM'
21521 ofile='$ofile'
21522
21523
21524
21525
21526
21527
21528_ACEOF
21529
21530cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21531
21532# Handling of arguments.
21533for ac_config_target in $ac_config_targets
21534do
21535 case $ac_config_target in
296ee9a6 21536 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
66170b30 21537 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
9c60689e 21538 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
790e5246 21539 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9c60689e 21540
ee134472 21541 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
9c60689e
DWT
21542 esac
21543done
21544
21545
21546# If the user did not use the arguments to specify the items to instantiate,
21547# then the envvar interface is used. Set only those that are not.
21548# We use the long form for the default assignment because of an extremely
21549# bizarre bug on SunOS 4.1.3.
21550if $ac_need_defaults; then
21551 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
296ee9a6 21552 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9c60689e
DWT
21553 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21554fi
21555
21556# Have a temporary directory for convenience. Make it in the build tree
21557# simply because there is no reason against having it here, and in addition,
21558# creating and moving files from /tmp can sometimes cause problems.
21559# Hook for its removal unless debugging.
21560# Note that there is a small window in which the directory will not be cleaned:
21561# after its creation but before its name has been assigned to `$tmp'.
21562$debug ||
21563{
ee134472 21564 tmp= ac_tmp=
9c60689e 21565 trap 'exit_status=$?
ee134472
JF
21566 : "${ac_tmp:=$tmp}"
21567 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
9c60689e
DWT
21568' 0
21569 trap 'as_fn_exit 1' 1 2 13 15
21570}
21571# Create a (secure) tmp directory for tmp files.
21572
21573{
21574 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
ee134472 21575 test -d "$tmp"
9c60689e
DWT
21576} ||
21577{
21578 tmp=./conf$$-$RANDOM
21579 (umask 077 && mkdir "$tmp")
12833ad8 21580} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
ee134472 21581ac_tmp=$tmp
9c60689e
DWT
21582
21583# Set up the scripts for CONFIG_FILES section.
21584# No need to generate them if there are no CONFIG_FILES.
21585# This happens for instance with `./config.status config.h'.
21586if test -n "$CONFIG_FILES"; then
21587
21588
21589ac_cr=`echo X | tr X '\015'`
21590# On cygwin, bash can eat \r inside `` if the user requested igncr.
21591# But we know of no other shell where ac_cr would be empty at this
21592# point, so we can use a bashism as a fallback.
21593if test "x$ac_cr" = x; then
21594 eval ac_cr=\$\'\\r\'
21595fi
21596ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21597if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12833ad8 21598 ac_cs_awk_cr='\\r'
9c60689e
DWT
21599else
21600 ac_cs_awk_cr=$ac_cr
21601fi
21602
ee134472 21603echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
9c60689e
DWT
21604_ACEOF
21605
21606
21607{
21608 echo "cat >conf$$subs.awk <<_ACEOF" &&
21609 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21610 echo "_ACEOF"
21611} >conf$$subs.sh ||
12833ad8
JF
21612 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21613ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
9c60689e
DWT
21614ac_delim='%!_!# '
21615for ac_last_try in false false false false false :; do
21616 . ./conf$$subs.sh ||
12833ad8 21617 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9c60689e
DWT
21618
21619 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21620 if test $ac_delim_n = $ac_delim_num; then
21621 break
21622 elif $ac_last_try; then
12833ad8 21623 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9c60689e
DWT
21624 else
21625 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21626 fi
21627done
21628rm -f conf$$subs.sh
21629
21630cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ee134472 21631cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
9c60689e
DWT
21632_ACEOF
21633sed -n '
21634h
21635s/^/S["/; s/!.*/"]=/
21636p
21637g
21638s/^[^!]*!//
21639:repl
21640t repl
21641s/'"$ac_delim"'$//
21642t delim
21643:nl
21644h
21645s/\(.\{148\}\)..*/\1/
21646t more1
21647s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21648p
21649n
21650b repl
21651:more1
21652s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21653p
21654g
21655s/.\{148\}//
21656t nl
21657:delim
21658h
21659s/\(.\{148\}\)..*/\1/
21660t more2
21661s/["\\]/\\&/g; s/^/"/; s/$/"/
21662p
21663b
21664:more2
21665s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21666p
21667g
21668s/.\{148\}//
21669t delim
21670' <conf$$subs.awk | sed '
21671/^[^""]/{
21672 N
21673 s/\n//
21674}
21675' >>$CONFIG_STATUS || ac_write_fail=1
21676rm -f conf$$subs.awk
21677cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21678_ACAWK
ee134472 21679cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
9c60689e
DWT
21680 for (key in S) S_is_set[key] = 1
21681 FS = "\a"
21682
21683}
21684{
21685 line = $ 0
21686 nfields = split(line, field, "@")
21687 substed = 0
21688 len = length(field[1])
21689 for (i = 2; i < nfields; i++) {
21690 key = field[i]
21691 keylen = length(key)
21692 if (S_is_set[key]) {
21693 value = S[key]
21694 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21695 len += length(value) + length(field[++i])
21696 substed = 1
21697 } else
21698 len += 1 + keylen
21699 }
21700
21701 print line
21702}
21703
21704_ACAWK
21705_ACEOF
21706cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21707if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21708 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21709else
21710 cat
ee134472 21711fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12833ad8 21712 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
9c60689e
DWT
21713_ACEOF
21714
12833ad8
JF
21715# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21716# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
9c60689e
DWT
21717# trailing colons and then remove the whole line if VPATH becomes empty
21718# (actually we leave an empty line to preserve line numbers).
21719if test "x$srcdir" = x.; then
12833ad8
JF
21720 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
21721h
21722s///
21723s/^/:/
21724s/[ ]*$/:/
21725s/:\$(srcdir):/:/g
21726s/:\${srcdir}:/:/g
21727s/:@srcdir@:/:/g
21728s/^:*//
9c60689e 21729s/:*$//
12833ad8
JF
21730x
21731s/\(=[ ]*\).*/\1/
21732G
21733s/\n//
9c60689e
DWT
21734s/^[^=]*=[ ]*$//
21735}'
21736fi
21737
21738cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21739fi # test -n "$CONFIG_FILES"
21740
296ee9a6
JF
21741# Set up the scripts for CONFIG_HEADERS section.
21742# No need to generate them if there are no CONFIG_HEADERS.
21743# This happens for instance with `./config.status Makefile'.
21744if test -n "$CONFIG_HEADERS"; then
21745cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21746BEGIN {
21747_ACEOF
21748
21749# Transform confdefs.h into an awk script `defines.awk', embedded as
21750# here-document in config.status, that substitutes the proper values into
21751# config.h.in to produce config.h.
21752
21753# Create a delimiter string that does not exist in confdefs.h, to ease
21754# handling of long lines.
21755ac_delim='%!_!# '
21756for ac_last_try in false false :; do
21757 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21758 if test -z "$ac_tt"; then
21759 break
21760 elif $ac_last_try; then
21761 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21762 else
21763 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21764 fi
21765done
21766
21767# For the awk script, D is an array of macro values keyed by name,
21768# likewise P contains macro parameters if any. Preserve backslash
21769# newline sequences.
21770
21771ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21772sed -n '
21773s/.\{148\}/&'"$ac_delim"'/g
21774t rset
21775:rset
21776s/^[ ]*#[ ]*define[ ][ ]*/ /
21777t def
21778d
21779:def
21780s/\\$//
21781t bsnl
21782s/["\\]/\\&/g
21783s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21784D["\1"]=" \3"/p
21785s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
21786d
21787:bsnl
21788s/["\\]/\\&/g
21789s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21790D["\1"]=" \3\\\\\\n"\\/p
21791t cont
21792s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21793t cont
21794d
21795:cont
21796n
21797s/.\{148\}/&'"$ac_delim"'/g
21798t clear
21799:clear
21800s/\\$//
21801t bsnlc
21802s/["\\]/\\&/g; s/^/"/; s/$/"/p
21803d
21804:bsnlc
21805s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21806b cont
21807' <confdefs.h | sed '
21808s/'"$ac_delim"'/"\\\
21809"/g' >>$CONFIG_STATUS || ac_write_fail=1
21810
21811cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21812 for (key in D) D_is_set[key] = 1
21813 FS = "\a"
21814}
21815/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21816 line = \$ 0
21817 split(line, arg, " ")
21818 if (arg[1] == "#") {
21819 defundef = arg[2]
21820 mac1 = arg[3]
21821 } else {
21822 defundef = substr(arg[1], 2)
21823 mac1 = arg[2]
21824 }
21825 split(mac1, mac2, "(") #)
21826 macro = mac2[1]
21827 prefix = substr(line, 1, index(line, defundef) - 1)
21828 if (D_is_set[macro]) {
21829 # Preserve the white space surrounding the "#".
21830 print prefix "define", macro P[macro] D[macro]
21831 next
21832 } else {
21833 # Replace #undef with comments. This is necessary, for example,
21834 # in the case of _POSIX_SOURCE, which is predefined and required
21835 # on some systems where configure will not decide to define it.
21836 if (defundef == "undef") {
21837 print "/*", prefix defundef, macro, "*/"
21838 next
21839 }
21840 }
21841}
21842{ print }
21843_ACAWK
21844_ACEOF
21845cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21846 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21847fi # test -n "$CONFIG_HEADERS"
21848
9c60689e 21849
296ee9a6 21850eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
9c60689e
DWT
21851shift
21852for ac_tag
21853do
21854 case $ac_tag in
21855 :[FHLC]) ac_mode=$ac_tag; continue;;
21856 esac
21857 case $ac_mode$ac_tag in
21858 :[FHL]*:*);;
ee134472 21859 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
9c60689e
DWT
21860 :[FH]-) ac_tag=-:-;;
21861 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21862 esac
21863 ac_save_IFS=$IFS
21864 IFS=:
21865 set x $ac_tag
21866 IFS=$ac_save_IFS
21867 shift
21868 ac_file=$1
21869 shift
21870
21871 case $ac_mode in
21872 :L) ac_source=$1;;
21873 :[FH])
21874 ac_file_inputs=
21875 for ac_f
21876 do
21877 case $ac_f in
ee134472 21878 -) ac_f="$ac_tmp/stdin";;
9c60689e
DWT
21879 *) # Look for the file first in the build tree, then in the source tree
21880 # (if the path is not absolute). The absolute path cannot be DOS-style,
21881 # because $ac_f cannot contain `:'.
21882 test -f "$ac_f" ||
21883 case $ac_f in
21884 [\\/$]*) false;;
21885 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21886 esac ||
ee134472 21887 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
9c60689e
DWT
21888 esac
21889 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21890 as_fn_append ac_file_inputs " '$ac_f'"
21891 done
21892
21893 # Let's still pretend it is `configure' which instantiates (i.e., don't
21894 # use $as_me), people would be surprised to read:
21895 # /* config.h. Generated by config.status. */
21896 configure_input='Generated from '`
21897 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21898 `' by configure.'
21899 if test x"$ac_file" != x-; then
21900 configure_input="$ac_file. $configure_input"
21901 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21902$as_echo "$as_me: creating $ac_file" >&6;}
21903 fi
21904 # Neutralize special characters interpreted by sed in replacement strings.
21905 case $configure_input in #(
21906 *\&* | *\|* | *\\* )
21907 ac_sed_conf_input=`$as_echo "$configure_input" |
21908 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21909 *) ac_sed_conf_input=$configure_input;;
21910 esac
21911
21912 case $ac_tag in
ee134472
JF
21913 *:-:* | *:-) cat >"$ac_tmp/stdin" \
21914 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
9c60689e
DWT
21915 esac
21916 ;;
21917 esac
21918
21919 ac_dir=`$as_dirname -- "$ac_file" ||
21920$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21921 X"$ac_file" : 'X\(//\)[^/]' \| \
21922 X"$ac_file" : 'X\(//\)$' \| \
21923 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21924$as_echo X"$ac_file" |
21925 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21926 s//\1/
21927 q
21928 }
21929 /^X\(\/\/\)[^/].*/{
21930 s//\1/
21931 q
21932 }
21933 /^X\(\/\/\)$/{
21934 s//\1/
21935 q
21936 }
21937 /^X\(\/\).*/{
21938 s//\1/
21939 q
21940 }
21941 s/.*/./; q'`
21942 as_dir="$ac_dir"; as_fn_mkdir_p
21943 ac_builddir=.
21944
21945case "$ac_dir" in
21946.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21947*)
21948 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21949 # A ".." for each directory in $ac_dir_suffix.
21950 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21951 case $ac_top_builddir_sub in
21952 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21953 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21954 esac ;;
21955esac
21956ac_abs_top_builddir=$ac_pwd
21957ac_abs_builddir=$ac_pwd$ac_dir_suffix
21958# for backward compatibility:
21959ac_top_builddir=$ac_top_build_prefix
35fa52c0 21960
9c60689e
DWT
21961case $srcdir in
21962 .) # We are building in place.
21963 ac_srcdir=.
21964 ac_top_srcdir=$ac_top_builddir_sub
21965 ac_abs_top_srcdir=$ac_pwd ;;
21966 [\\/]* | ?:[\\/]* ) # Absolute name.
21967 ac_srcdir=$srcdir$ac_dir_suffix;
21968 ac_top_srcdir=$srcdir
21969 ac_abs_top_srcdir=$srcdir ;;
21970 *) # Relative name.
21971 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21972 ac_top_srcdir=$ac_top_build_prefix$srcdir
21973 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21974esac
21975ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35fa52c0
DWT
21976
21977
9c60689e
DWT
21978 case $ac_mode in
21979 :F)
21980 #
21981 # CONFIG_FILE
21982 #
35fa52c0 21983
9c60689e
DWT
21984 case $INSTALL in
21985 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21986 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21987 esac
66170b30
JF
21988 ac_MKDIR_P=$MKDIR_P
21989 case $MKDIR_P in
21990 [\\/$]* | ?:[\\/]* ) ;;
21991 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21992 esac
9c60689e 21993_ACEOF
35fa52c0 21994
9c60689e
DWT
21995cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21996# If the template does not know about datarootdir, expand it.
21997# FIXME: This hack should be removed a few years after 2.60.
21998ac_datarootdir_hack=; ac_datarootdir_seen=
21999ac_sed_dataroot='
22000/datarootdir/ {
22001 p
22002 q
22003}
22004/@datadir@/p
22005/@docdir@/p
22006/@infodir@/p
22007/@localedir@/p
22008/@mandir@/p'
22009case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22010*datarootdir*) ac_datarootdir_seen=yes;;
22011*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22013$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22014_ACEOF
22015cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22016 ac_datarootdir_hack='
22017 s&@datadir@&$datadir&g
22018 s&@docdir@&$docdir&g
22019 s&@infodir@&$infodir&g
22020 s&@localedir@&$localedir&g
22021 s&@mandir@&$mandir&g
22022 s&\\\${datarootdir}&$datarootdir&g' ;;
22023esac
22024_ACEOF
35fa52c0 22025
9c60689e
DWT
22026# Neutralize VPATH when `$srcdir' = `.'.
22027# Shell code in configure.ac might set extrasub.
22028# FIXME: do we really want to maintain this feature?
22029cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22030ac_sed_extra="$ac_vpsub
22031$extrasub
22032_ACEOF
22033cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22034:t
22035/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22036s|@configure_input@|$ac_sed_conf_input|;t t
22037s&@top_builddir@&$ac_top_builddir_sub&;t t
22038s&@top_build_prefix@&$ac_top_build_prefix&;t t
22039s&@srcdir@&$ac_srcdir&;t t
22040s&@abs_srcdir@&$ac_abs_srcdir&;t t
22041s&@top_srcdir@&$ac_top_srcdir&;t t
22042s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22043s&@builddir@&$ac_builddir&;t t
22044s&@abs_builddir@&$ac_abs_builddir&;t t
22045s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22046s&@INSTALL@&$ac_INSTALL&;t t
66170b30 22047s&@MKDIR_P@&$ac_MKDIR_P&;t t
9c60689e
DWT
22048$ac_datarootdir_hack
22049"
ee134472
JF
22050eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
22051 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9c60689e
DWT
22052
22053test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
ee134472
JF
22054 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
22055 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
22056 "$ac_tmp/out"`; test -z "$ac_out"; } &&
9c60689e 22057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12833ad8 22058which seems to be undefined. Please make sure it is defined" >&5
9c60689e 22059$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12833ad8 22060which seems to be undefined. Please make sure it is defined" >&2;}
9c60689e 22061
ee134472 22062 rm -f "$ac_tmp/stdin"
9c60689e 22063 case $ac_file in
ee134472
JF
22064 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
22065 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
9c60689e 22066 esac \
12833ad8 22067 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9c60689e 22068 ;;
296ee9a6
JF
22069 :H)
22070 #
22071 # CONFIG_HEADER
22072 #
22073 if test x"$ac_file" != x-; then
22074 {
22075 $as_echo "/* $configure_input */" \
22076 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
22077 } >"$ac_tmp/config.h" \
22078 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22079 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
22080 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22081$as_echo "$as_me: $ac_file is unchanged" >&6;}
22082 else
22083 rm -f "$ac_file"
22084 mv "$ac_tmp/config.h" "$ac_file" \
22085 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22086 fi
22087 else
22088 $as_echo "/* $configure_input */" \
22089 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
22090 || as_fn_error $? "could not create -" "$LINENO" 5
22091 fi
22092# Compute "$ac_file"'s index in $config_headers.
22093_am_arg="$ac_file"
22094_am_stamp_count=1
22095for _am_header in $config_headers :; do
22096 case $_am_header in
22097 $_am_arg | $_am_arg:* )
22098 break ;;
22099 * )
22100 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22101 esac
22102done
22103echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22104$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22105 X"$_am_arg" : 'X\(//\)[^/]' \| \
22106 X"$_am_arg" : 'X\(//\)$' \| \
22107 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22108$as_echo X"$_am_arg" |
22109 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22110 s//\1/
22111 q
22112 }
22113 /^X\(\/\/\)[^/].*/{
22114 s//\1/
22115 q
22116 }
22117 /^X\(\/\/\)$/{
22118 s//\1/
22119 q
22120 }
22121 /^X\(\/\).*/{
22122 s//\1/
22123 q
22124 }
22125 s/.*/./; q'`/stamp-h$_am_stamp_count
22126 ;;
35fa52c0 22127
9c60689e
DWT
22128 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22129$as_echo "$as_me: executing $ac_file commands" >&6;}
22130 ;;
22131 esac
35fa52c0 22132
35fa52c0 22133
9c60689e 22134 case $ac_file$ac_mode in
66170b30
JF
22135 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22136 # Older Autoconf quotes --file arguments for eval, but not when files
22137 # are listed without --file. Let's play safe and only enable the eval
22138 # if we detect the quoting.
22139 case $CONFIG_FILES in
22140 *\'*) eval set x "$CONFIG_FILES" ;;
22141 *) set x $CONFIG_FILES ;;
22142 esac
22143 shift
22144 for mf
22145 do
22146 # Strip MF so we end up with the name of the file.
22147 mf=`echo "$mf" | sed -e 's/:.*$//'`
22148 # Check whether this is an Automake generated Makefile or not.
22149 # We used to match only the files named 'Makefile.in', but
22150 # some people rename them; so instead we look at the file content.
22151 # Grep'ing the first line is not enough: some people post-process
22152 # each Makefile.in and add a new line on top of each file to say so.
22153 # Grep'ing the whole file is not good either: AIX grep has a line
22154 # limit of 2048, but all sed's we know have understand at least 4000.
22155 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
22156 dirpart=`$as_dirname -- "$mf" ||
22157$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22158 X"$mf" : 'X\(//\)[^/]' \| \
22159 X"$mf" : 'X\(//\)$' \| \
22160 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22161$as_echo X"$mf" |
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 else
22180 continue
22181 fi
22182 # Extract the definition of DEPDIR, am__include, and am__quote
22183 # from the Makefile without running 'make'.
22184 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22185 test -z "$DEPDIR" && continue
22186 am__include=`sed -n 's/^am__include = //p' < "$mf"`
a93f15c0 22187 test -z "$am__include" && continue
66170b30
JF
22188 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22189 # Find all dependency output files, they are included files with
22190 # $(DEPDIR) in their names. We invoke sed twice because it is the
22191 # simplest approach to changing $(DEPDIR) to its actual value in the
22192 # expansion.
22193 for file in `sed -n "
22194 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22195 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
22196 # Make sure the directory exists.
22197 test -f "$dirpart/$file" && continue
22198 fdir=`$as_dirname -- "$file" ||
22199$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22200 X"$file" : 'X\(//\)[^/]' \| \
22201 X"$file" : 'X\(//\)$' \| \
22202 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22203$as_echo X"$file" |
22204 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22205 s//\1/
22206 q
22207 }
22208 /^X\(\/\/\)[^/].*/{
22209 s//\1/
22210 q
22211 }
22212 /^X\(\/\/\)$/{
22213 s//\1/
22214 q
22215 }
22216 /^X\(\/\).*/{
22217 s//\1/
22218 q
22219 }
22220 s/.*/./; q'`
22221 as_dir=$dirpart/$fdir; as_fn_mkdir_p
22222 # echo "creating $dirpart/$file"
22223 echo '# dummy' > "$dirpart/$file"
22224 done
22225 done
22226}
22227 ;;
9c60689e
DWT
22228 "libtool":C)
22229
22230 # See if we are running on zsh, and set the options which allow our
22231 # commands through without removal of \ escapes.
22232 if test -n "${ZSH_VERSION+set}" ; then
22233 setopt NO_GLOB_SUBST
35fa52c0 22234 fi
35fa52c0 22235
9c60689e
DWT
22236 cfgfile="${ofile}T"
22237 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22238 $RM "$cfgfile"
35fa52c0 22239
9c60689e
DWT
22240 cat <<_LT_EOF >> "$cfgfile"
22241#! $SHELL
35fa52c0 22242
9c60689e
DWT
22243# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
22244# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
22245# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22246# NOTE: Changes made to this file will be lost: look at ltmain.sh.
22247#
22248# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
53ba6704
JF
22249# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
22250# Foundation, Inc.
9c60689e
DWT
22251# Written by Gordon Matzigkeit, 1996
22252#
22253# This file is part of GNU Libtool.
22254#
22255# GNU Libtool is free software; you can redistribute it and/or
22256# modify it under the terms of the GNU General Public License as
22257# published by the Free Software Foundation; either version 2 of
22258# the License, or (at your option) any later version.
22259#
22260# As a special exception to the GNU General Public License,
22261# if you distribute this file as part of a program or library that
22262# is built using GNU Libtool, you may include this file under the
22263# same distribution terms that you use for the rest of that program.
22264#
22265# GNU Libtool is distributed in the hope that it will be useful,
22266# but WITHOUT ANY WARRANTY; without even the implied warranty of
22267# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22268# GNU General Public License for more details.
22269#
22270# You should have received a copy of the GNU General Public License
22271# along with GNU Libtool; see the file COPYING. If not, a copy
22272# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
22273# obtained by writing to the Free Software Foundation, Inc.,
22274# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
35fa52c0 22275
35fa52c0 22276
9c60689e
DWT
22277# The names of the tagged configurations supported by this script.
22278available_tags="CXX "
35fa52c0 22279
9c60689e 22280# ### BEGIN LIBTOOL CONFIG
35fa52c0 22281
9c60689e
DWT
22282# Which release of libtool.m4 was used?
22283macro_version=$macro_version
22284macro_revision=$macro_revision
35fa52c0 22285
9c60689e
DWT
22286# Whether or not to build static libraries.
22287build_old_libs=$enable_static
35fa52c0 22288
549f29b5
DWT
22289# Whether or not to build shared libraries.
22290build_libtool_libs=$enable_shared
22291
9c60689e
DWT
22292# What type of objects to build.
22293pic_mode=$pic_mode
35fa52c0 22294
9c60689e
DWT
22295# Whether or not to optimize for fast installation.
22296fast_install=$enable_fast_install
35fa52c0 22297
ee134472
JF
22298# Shell to use when invoking shell scripts.
22299SHELL=$lt_SHELL
22300
22301# An echo program that protects backslashes.
22302ECHO=$lt_ECHO
22303
53ba6704
JF
22304# The PATH separator for the build system.
22305PATH_SEPARATOR=$lt_PATH_SEPARATOR
22306
9c60689e
DWT
22307# The host system.
22308host_alias=$host_alias
22309host=$host
22310host_os=$host_os
35fa52c0 22311
9c60689e
DWT
22312# The build system.
22313build_alias=$build_alias
22314build=$build
22315build_os=$build_os
22316
22317# A sed program that does not truncate output.
22318SED=$lt_SED
22319
22320# Sed that helps us avoid accidentally triggering echo(1) options like -n.
22321Xsed="\$SED -e 1s/^X//"
22322
22323# A grep program that handles long lines.
22324GREP=$lt_GREP
22325
22326# An ERE matcher.
22327EGREP=$lt_EGREP
22328
22329# A literal string matcher.
22330FGREP=$lt_FGREP
22331
22332# A BSD- or MS-compatible name lister.
22333NM=$lt_NM
22334
22335# Whether we need soft or hard links.
22336LN_S=$lt_LN_S
22337
22338# What is the maximum length of a command?
22339max_cmd_len=$max_cmd_len
22340
22341# Object file suffix (normally "o").
22342objext=$ac_objext
22343
22344# Executable file suffix (normally "").
22345exeext=$exeext
22346
22347# whether the shell understands "unset".
22348lt_unset=$lt_unset
22349
22350# turn spaces into newlines.
22351SP2NL=$lt_lt_SP2NL
22352
22353# turn newlines into spaces.
22354NL2SP=$lt_lt_NL2SP
22355
ee134472
JF
22356# convert \$build file names to \$host format.
22357to_host_file_cmd=$lt_cv_to_host_file_cmd
22358
22359# convert \$build files to toolchain format.
22360to_tool_file_cmd=$lt_cv_to_tool_file_cmd
9c60689e
DWT
22361
22362# An object symbol dumper.
22363OBJDUMP=$lt_OBJDUMP
22364
22365# Method to check whether dependent libraries are shared objects.
22366deplibs_check_method=$lt_deplibs_check_method
22367
ee134472 22368# Command to use when deplibs_check_method = "file_magic".
9c60689e
DWT
22369file_magic_cmd=$lt_file_magic_cmd
22370
ee134472
JF
22371# How to find potential files when deplibs_check_method = "file_magic".
22372file_magic_glob=$lt_file_magic_glob
22373
22374# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
22375want_nocaseglob=$lt_want_nocaseglob
22376
22377# DLL creation program.
22378DLLTOOL=$lt_DLLTOOL
22379
22380# Command to associate shared and link libraries.
22381sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
22382
9c60689e
DWT
22383# The archiver.
22384AR=$lt_AR
ee134472
JF
22385
22386# Flags to create an archive.
9c60689e
DWT
22387AR_FLAGS=$lt_AR_FLAGS
22388
ee134472
JF
22389# How to feed a file listing to the archiver.
22390archiver_list_spec=$lt_archiver_list_spec
22391
9c60689e
DWT
22392# A symbol stripping program.
22393STRIP=$lt_STRIP
22394
22395# Commands used to install an old-style archive.
22396RANLIB=$lt_RANLIB
22397old_postinstall_cmds=$lt_old_postinstall_cmds
22398old_postuninstall_cmds=$lt_old_postuninstall_cmds
22399
ee134472
JF
22400# Whether to use a lock for old archive extraction.
22401lock_old_archive_extraction=$lock_old_archive_extraction
22402
9c60689e
DWT
22403# A C compiler.
22404LTCC=$lt_CC
22405
22406# LTCC compiler flags.
22407LTCFLAGS=$lt_CFLAGS
22408
22409# Take the output of nm and produce a listing of raw symbols and C names.
22410global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22411
22412# Transform the output of nm in a proper C declaration.
22413global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22414
22415# Transform the output of nm in a C name address pair.
22416global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22417
22418# Transform the output of nm in a C name address pair when lib prefix is needed.
22419global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22420
ee134472
JF
22421# Specify filename containing input files for \$NM.
22422nm_file_list_spec=$lt_nm_file_list_spec
9c60689e 22423
ee134472
JF
22424# The root where to search for dependent libraries,and in which our libraries should be installed.
22425lt_sysroot=$lt_sysroot
9c60689e 22426
ee134472
JF
22427# The name of the directory that contains temporary libtool files.
22428objdir=$objdir
9c60689e
DWT
22429
22430# Used to examine libraries when file_magic_cmd begins with "file".
22431MAGIC_CMD=$MAGIC_CMD
22432
22433# Must we lock files when doing compilation?
22434need_locks=$lt_need_locks
22435
ee134472
JF
22436# Manifest tool.
22437MANIFEST_TOOL=$lt_MANIFEST_TOOL
22438
9c60689e
DWT
22439# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22440DSYMUTIL=$lt_DSYMUTIL
22441
22442# Tool to change global to local symbols on Mac OS X.
22443NMEDIT=$lt_NMEDIT
22444
22445# Tool to manipulate fat objects and archives on Mac OS X.
22446LIPO=$lt_LIPO
22447
22448# ldd/readelf like tool for Mach-O binaries on Mac OS X.
22449OTOOL=$lt_OTOOL
22450
22451# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22452OTOOL64=$lt_OTOOL64
22453
22454# Old archive suffix (normally "a").
22455libext=$libext
22456
22457# Shared library suffix (normally ".so").
22458shrext_cmds=$lt_shrext_cmds
35fa52c0 22459
9c60689e
DWT
22460# The commands to extract the exported symbol list from a shared archive.
22461extract_expsyms_cmds=$lt_extract_expsyms_cmds
35fa52c0 22462
9c60689e
DWT
22463# Variables whose values should be saved in libtool wrapper scripts and
22464# restored at link time.
22465variables_saved_for_relink=$lt_variables_saved_for_relink
35fa52c0 22466
9c60689e
DWT
22467# Do we need the "lib" prefix for modules?
22468need_lib_prefix=$need_lib_prefix
35fa52c0 22469
9c60689e
DWT
22470# Do we need a version for libraries?
22471need_version=$need_version
35fa52c0 22472
9c60689e
DWT
22473# Library versioning type.
22474version_type=$version_type
35fa52c0 22475
9c60689e
DWT
22476# Shared library runtime path variable.
22477runpath_var=$runpath_var
35fa52c0 22478
9c60689e
DWT
22479# Shared library path variable.
22480shlibpath_var=$shlibpath_var
35fa52c0 22481
9c60689e
DWT
22482# Is shlibpath searched before the hard-coded library search path?
22483shlibpath_overrides_runpath=$shlibpath_overrides_runpath
35fa52c0 22484
9c60689e
DWT
22485# Format of library name prefix.
22486libname_spec=$lt_libname_spec
35fa52c0 22487
9c60689e
DWT
22488# List of archive names. First name is the real one, the rest are links.
22489# The last name is the one that the linker finds with -lNAME
22490library_names_spec=$lt_library_names_spec
dbadc56a 22491
9c60689e
DWT
22492# The coded name of the library, if different from the real name.
22493soname_spec=$lt_soname_spec
dbadc56a 22494
ee134472
JF
22495# Permission mode override for installation of shared libraries.
22496install_override_mode=$lt_install_override_mode
22497
9c60689e
DWT
22498# Command to use after installation of a shared archive.
22499postinstall_cmds=$lt_postinstall_cmds
35fa52c0 22500
9c60689e
DWT
22501# Command to use after uninstallation of a shared archive.
22502postuninstall_cmds=$lt_postuninstall_cmds
dbadc56a 22503
9c60689e
DWT
22504# Commands used to finish a libtool library installation in a directory.
22505finish_cmds=$lt_finish_cmds
35fa52c0 22506
9c60689e
DWT
22507# As "finish_cmds", except a single script fragment to be evaled but
22508# not shown.
22509finish_eval=$lt_finish_eval
35fa52c0 22510
9c60689e
DWT
22511# Whether we should hardcode library paths into libraries.
22512hardcode_into_libs=$hardcode_into_libs
dbadc56a 22513
9c60689e
DWT
22514# Compile-time system search path for libraries.
22515sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
35fa52c0 22516
9c60689e
DWT
22517# Run-time system search path for libraries.
22518sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
dbadc56a 22519
9c60689e
DWT
22520# Whether dlopen is supported.
22521dlopen_support=$enable_dlopen
dbadc56a 22522
9c60689e
DWT
22523# Whether dlopen of programs is supported.
22524dlopen_self=$enable_dlopen_self
35fa52c0 22525
9c60689e
DWT
22526# Whether dlopen of statically linked programs is supported.
22527dlopen_self_static=$enable_dlopen_self_static
35fa52c0 22528
9c60689e
DWT
22529# Commands to strip libraries.
22530old_striplib=$lt_old_striplib
22531striplib=$lt_striplib
35fa52c0 22532
35fa52c0 22533
9c60689e
DWT
22534# The linker used to build libraries.
22535LD=$lt_LD
dbadc56a 22536
ee134472
JF
22537# How to create reloadable object files.
22538reload_flag=$lt_reload_flag
22539reload_cmds=$lt_reload_cmds
22540
9c60689e
DWT
22541# Commands used to build an old-style archive.
22542old_archive_cmds=$lt_old_archive_cmds
dbadc56a 22543
9c60689e
DWT
22544# A language specific compiler.
22545CC=$lt_compiler
35fa52c0 22546
9c60689e
DWT
22547# Is the compiler the GNU compiler?
22548with_gcc=$GCC
dbadc56a 22549
9c60689e
DWT
22550# Compiler flag to turn off builtin functions.
22551no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
dbadc56a 22552
9c60689e
DWT
22553# Additional compiler flags for building library objects.
22554pic_flag=$lt_lt_prog_compiler_pic
35fa52c0 22555
ee134472
JF
22556# How to pass a linker flag through the compiler.
22557wl=$lt_lt_prog_compiler_wl
22558
9c60689e
DWT
22559# Compiler flag to prevent dynamic linking.
22560link_static_flag=$lt_lt_prog_compiler_static
35fa52c0 22561
9c60689e
DWT
22562# Does compiler simultaneously support -c and -o options?
22563compiler_c_o=$lt_lt_cv_prog_compiler_c_o
dbadc56a 22564
9c60689e
DWT
22565# Whether or not to add -lc for building shared libraries.
22566build_libtool_need_lc=$archive_cmds_need_lc
35fa52c0 22567
9c60689e
DWT
22568# Whether or not to disallow shared libs when runtime libs are static.
22569allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
35fa52c0 22570
9c60689e
DWT
22571# Compiler flag to allow reflexive dlopens.
22572export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
35fa52c0 22573
9c60689e
DWT
22574# Compiler flag to generate shared objects directly from archives.
22575whole_archive_flag_spec=$lt_whole_archive_flag_spec
dbadc56a 22576
9c60689e
DWT
22577# Whether the compiler copes with passing no objects directly.
22578compiler_needs_object=$lt_compiler_needs_object
dbadc56a 22579
9c60689e
DWT
22580# Create an old-style archive from a shared archive.
22581old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
dbadc56a 22582
9c60689e
DWT
22583# Create a temporary old-style archive to link instead of a shared archive.
22584old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
dbadc56a 22585
9c60689e
DWT
22586# Commands used to build a shared archive.
22587archive_cmds=$lt_archive_cmds
22588archive_expsym_cmds=$lt_archive_expsym_cmds
35fa52c0 22589
9c60689e
DWT
22590# Commands used to build a loadable module if different from building
22591# a shared archive.
22592module_cmds=$lt_module_cmds
22593module_expsym_cmds=$lt_module_expsym_cmds
dbadc56a 22594
9c60689e
DWT
22595# Whether we are building with GNU ld or not.
22596with_gnu_ld=$lt_with_gnu_ld
6b66678a 22597
9c60689e
DWT
22598# Flag that allows shared libraries with undefined symbols to be built.
22599allow_undefined_flag=$lt_allow_undefined_flag
6b66678a 22600
9c60689e
DWT
22601# Flag that enforces no undefined symbols.
22602no_undefined_flag=$lt_no_undefined_flag
6b66678a 22603
9c60689e
DWT
22604# Flag to hardcode \$libdir into a binary during linking.
22605# This must work even if \$libdir does not exist
22606hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
6b66678a 22607
9c60689e
DWT
22608# Whether we need a single "-rpath" flag with a separated argument.
22609hardcode_libdir_separator=$lt_hardcode_libdir_separator
6b66678a 22610
9c60689e
DWT
22611# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22612# DIR into the resulting binary.
22613hardcode_direct=$hardcode_direct
6b66678a 22614
9c60689e
DWT
22615# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22616# DIR into the resulting binary and the resulting library dependency is
22617# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22618# library is relocated.
22619hardcode_direct_absolute=$hardcode_direct_absolute
6b66678a 22620
9c60689e
DWT
22621# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22622# into the resulting binary.
22623hardcode_minus_L=$hardcode_minus_L
6b66678a 22624
9c60689e
DWT
22625# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22626# into the resulting binary.
22627hardcode_shlibpath_var=$hardcode_shlibpath_var
6b66678a 22628
9c60689e
DWT
22629# Set to "yes" if building a shared library automatically hardcodes DIR
22630# into the library and all subsequent libraries and executables linked
22631# against it.
22632hardcode_automatic=$hardcode_automatic
6b66678a 22633
9c60689e
DWT
22634# Set to yes if linker adds runtime paths of dependent libraries
22635# to runtime path list.
22636inherit_rpath=$inherit_rpath
6b66678a 22637
9c60689e
DWT
22638# Whether libtool must link a program against all its dependency libraries.
22639link_all_deplibs=$link_all_deplibs
22640
9c60689e
DWT
22641# Set to "yes" if exported symbols are required.
22642always_export_symbols=$always_export_symbols
6b66678a 22643
9c60689e
DWT
22644# The commands to list exported symbols.
22645export_symbols_cmds=$lt_export_symbols_cmds
6b66678a 22646
9c60689e
DWT
22647# Symbols that should not be listed in the preloaded symbols.
22648exclude_expsyms=$lt_exclude_expsyms
6b66678a 22649
9c60689e
DWT
22650# Symbols that must always be exported.
22651include_expsyms=$lt_include_expsyms
6b66678a 22652
9c60689e
DWT
22653# Commands necessary for linking programs (against libraries) with templates.
22654prelink_cmds=$lt_prelink_cmds
6b66678a 22655
ee134472
JF
22656# Commands necessary for finishing linking programs.
22657postlink_cmds=$lt_postlink_cmds
22658
9c60689e
DWT
22659# Specify filename containing input files.
22660file_list_spec=$lt_file_list_spec
6b66678a 22661
9c60689e
DWT
22662# How to hardcode a shared library path into an executable.
22663hardcode_action=$hardcode_action
22664
22665# The directories searched by this compiler when creating a shared library.
22666compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
22667
22668# Dependencies to place before and after the objects being linked to
22669# create a shared library.
22670predep_objects=$lt_predep_objects
22671postdep_objects=$lt_postdep_objects
22672predeps=$lt_predeps
22673postdeps=$lt_postdeps
22674
22675# The library search path used internally by the compiler when linking
22676# a shared library.
22677compiler_lib_search_path=$lt_compiler_lib_search_path
22678
22679# ### END LIBTOOL CONFIG
22680
22681_LT_EOF
22682
22683 case $host_os in
22684 aix3*)
22685 cat <<\_LT_EOF >> "$cfgfile"
22686# AIX sometimes has problems with the GCC collect2 program. For some
22687# reason, if we set the COLLECT_NAMES environment variable, the problems
22688# vanish in a puff of smoke.
22689if test "X${COLLECT_NAMES+set}" != Xset; then
22690 COLLECT_NAMES=
22691 export COLLECT_NAMES
6b66678a 22692fi
9c60689e
DWT
22693_LT_EOF
22694 ;;
22695 esac
6b66678a
DWT
22696
22697
9c60689e 22698ltmain="$ac_aux_dir/ltmain.sh"
6b66678a 22699
9c60689e
DWT
22700
22701 # We use sed instead of cat because bash on DJGPP gets confused if
22702 # if finds mixed CR/LF and LF-only lines. Since sed operates in
22703 # text mode, it properly converts lines to CR/LF. This bash problem
22704 # is reportedly fixed, but why not run on old versions too?
ee134472
JF
22705 sed '$q' "$ltmain" >> "$cfgfile" \
22706 || (rm -f "$cfgfile"; exit 1)
22707
22708 if test x"$xsi_shell" = xyes; then
22709 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
22710func_dirname ()\
22711{\
22712\ case ${1} in\
22713\ */*) func_dirname_result="${1%/*}${2}" ;;\
22714\ * ) func_dirname_result="${3}" ;;\
22715\ esac\
22716} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
22717 && mv -f "$cfgfile.tmp" "$cfgfile" \
22718 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22719test 0 -eq $? || _lt_function_replace_fail=:
22720
22721
22722 sed -e '/^func_basename ()$/,/^} # func_basename /c\
22723func_basename ()\
22724{\
22725\ func_basename_result="${1##*/}"\
22726} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
22727 && mv -f "$cfgfile.tmp" "$cfgfile" \
22728 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22729test 0 -eq $? || _lt_function_replace_fail=:
22730
22731
22732 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
22733func_dirname_and_basename ()\
22734{\
22735\ case ${1} in\
22736\ */*) func_dirname_result="${1%/*}${2}" ;;\
22737\ * ) func_dirname_result="${3}" ;;\
22738\ esac\
22739\ func_basename_result="${1##*/}"\
22740} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
22741 && mv -f "$cfgfile.tmp" "$cfgfile" \
22742 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22743test 0 -eq $? || _lt_function_replace_fail=:
22744
22745
22746 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
22747func_stripname ()\
22748{\
22749\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
22750\ # positional parameters, so assign one to ordinary parameter first.\
22751\ func_stripname_result=${3}\
22752\ func_stripname_result=${func_stripname_result#"${1}"}\
22753\ func_stripname_result=${func_stripname_result%"${2}"}\
22754} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
22755 && mv -f "$cfgfile.tmp" "$cfgfile" \
22756 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22757test 0 -eq $? || _lt_function_replace_fail=:
22758
22759
22760 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
22761func_split_long_opt ()\
22762{\
22763\ func_split_long_opt_name=${1%%=*}\
22764\ func_split_long_opt_arg=${1#*=}\
22765} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
22766 && mv -f "$cfgfile.tmp" "$cfgfile" \
22767 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22768test 0 -eq $? || _lt_function_replace_fail=:
22769
22770
22771 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
22772func_split_short_opt ()\
22773{\
22774\ func_split_short_opt_arg=${1#??}\
22775\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
22776} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
22777 && mv -f "$cfgfile.tmp" "$cfgfile" \
22778 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22779test 0 -eq $? || _lt_function_replace_fail=:
22780
22781
22782 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
22783func_lo2o ()\
22784{\
22785\ case ${1} in\
22786\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
22787\ *) func_lo2o_result=${1} ;;\
22788\ esac\
22789} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
22790 && mv -f "$cfgfile.tmp" "$cfgfile" \
22791 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22792test 0 -eq $? || _lt_function_replace_fail=:
22793
22794
22795 sed -e '/^func_xform ()$/,/^} # func_xform /c\
22796func_xform ()\
22797{\
22798 func_xform_result=${1%.*}.lo\
22799} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
22800 && mv -f "$cfgfile.tmp" "$cfgfile" \
22801 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22802test 0 -eq $? || _lt_function_replace_fail=:
22803
22804
22805 sed -e '/^func_arith ()$/,/^} # func_arith /c\
22806func_arith ()\
22807{\
22808 func_arith_result=$(( $* ))\
22809} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
22810 && mv -f "$cfgfile.tmp" "$cfgfile" \
22811 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22812test 0 -eq $? || _lt_function_replace_fail=:
22813
22814
22815 sed -e '/^func_len ()$/,/^} # func_len /c\
22816func_len ()\
22817{\
22818 func_len_result=${#1}\
22819} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
22820 && mv -f "$cfgfile.tmp" "$cfgfile" \
22821 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22822test 0 -eq $? || _lt_function_replace_fail=:
22823
22824fi
22825
22826if test x"$lt_shell_append" = xyes; then
22827 sed -e '/^func_append ()$/,/^} # func_append /c\
22828func_append ()\
22829{\
22830 eval "${1}+=\\${2}"\
22831} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
22832 && mv -f "$cfgfile.tmp" "$cfgfile" \
22833 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22834test 0 -eq $? || _lt_function_replace_fail=:
22835
22836
22837 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
22838func_append_quoted ()\
22839{\
22840\ func_quote_for_eval "${2}"\
22841\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
22842} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
22843 && mv -f "$cfgfile.tmp" "$cfgfile" \
22844 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22845test 0 -eq $? || _lt_function_replace_fail=:
22846
22847
22848 # Save a `func_append' function call where possible by direct use of '+='
22849 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
22850 && mv -f "$cfgfile.tmp" "$cfgfile" \
22851 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22852 test 0 -eq $? || _lt_function_replace_fail=:
22853else
22854 # Save a `func_append' function call even when '+=' is not available
22855 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
22856 && mv -f "$cfgfile.tmp" "$cfgfile" \
22857 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22858 test 0 -eq $? || _lt_function_replace_fail=:
22859fi
22860
22861if test x"$_lt_function_replace_fail" = x":"; then
22862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
22863$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
22864fi
22865
22866
22867 mv -f "$cfgfile" "$ofile" ||
9c60689e
DWT
22868 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22869 chmod +x "$ofile"
22870
22871
22872 cat <<_LT_EOF >> "$ofile"
22873
22874# ### BEGIN LIBTOOL TAG CONFIG: CXX
22875
22876# The linker used to build libraries.
22877LD=$lt_LD_CXX
22878
ee134472
JF
22879# How to create reloadable object files.
22880reload_flag=$lt_reload_flag_CXX
22881reload_cmds=$lt_reload_cmds_CXX
22882
9c60689e
DWT
22883# Commands used to build an old-style archive.
22884old_archive_cmds=$lt_old_archive_cmds_CXX
22885
22886# A language specific compiler.
22887CC=$lt_compiler_CXX
22888
22889# Is the compiler the GNU compiler?
22890with_gcc=$GCC_CXX
22891
22892# Compiler flag to turn off builtin functions.
22893no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
6b66678a 22894
9c60689e
DWT
22895# Additional compiler flags for building library objects.
22896pic_flag=$lt_lt_prog_compiler_pic_CXX
6b66678a 22897
ee134472
JF
22898# How to pass a linker flag through the compiler.
22899wl=$lt_lt_prog_compiler_wl_CXX
22900
9c60689e
DWT
22901# Compiler flag to prevent dynamic linking.
22902link_static_flag=$lt_lt_prog_compiler_static_CXX
6b66678a 22903
9c60689e
DWT
22904# Does compiler simultaneously support -c and -o options?
22905compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
dbadc56a 22906
9c60689e
DWT
22907# Whether or not to add -lc for building shared libraries.
22908build_libtool_need_lc=$archive_cmds_need_lc_CXX
dbadc56a 22909
9c60689e
DWT
22910# Whether or not to disallow shared libs when runtime libs are static.
22911allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
35fa52c0 22912
9c60689e
DWT
22913# Compiler flag to allow reflexive dlopens.
22914export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
35fa52c0 22915
9c60689e
DWT
22916# Compiler flag to generate shared objects directly from archives.
22917whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
35fa52c0 22918
9c60689e
DWT
22919# Whether the compiler copes with passing no objects directly.
22920compiler_needs_object=$lt_compiler_needs_object_CXX
35fa52c0 22921
9c60689e
DWT
22922# Create an old-style archive from a shared archive.
22923old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
35fa52c0 22924
9c60689e
DWT
22925# Create a temporary old-style archive to link instead of a shared archive.
22926old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
35fa52c0 22927
9c60689e
DWT
22928# Commands used to build a shared archive.
22929archive_cmds=$lt_archive_cmds_CXX
22930archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
6b66678a 22931
9c60689e
DWT
22932# Commands used to build a loadable module if different from building
22933# a shared archive.
22934module_cmds=$lt_module_cmds_CXX
22935module_expsym_cmds=$lt_module_expsym_cmds_CXX
6b66678a 22936
9c60689e
DWT
22937# Whether we are building with GNU ld or not.
22938with_gnu_ld=$lt_with_gnu_ld_CXX
6b66678a 22939
9c60689e
DWT
22940# Flag that allows shared libraries with undefined symbols to be built.
22941allow_undefined_flag=$lt_allow_undefined_flag_CXX
35fa52c0 22942
9c60689e
DWT
22943# Flag that enforces no undefined symbols.
22944no_undefined_flag=$lt_no_undefined_flag_CXX
35fa52c0 22945
9c60689e
DWT
22946# Flag to hardcode \$libdir into a binary during linking.
22947# This must work even if \$libdir does not exist
22948hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
6b66678a 22949
9c60689e
DWT
22950# Whether we need a single "-rpath" flag with a separated argument.
22951hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
6b66678a 22952
9c60689e
DWT
22953# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22954# DIR into the resulting binary.
22955hardcode_direct=$hardcode_direct_CXX
6b66678a 22956
9c60689e
DWT
22957# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22958# DIR into the resulting binary and the resulting library dependency is
22959# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22960# library is relocated.
22961hardcode_direct_absolute=$hardcode_direct_absolute_CXX
6b66678a 22962
9c60689e
DWT
22963# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22964# into the resulting binary.
22965hardcode_minus_L=$hardcode_minus_L_CXX
35fa52c0 22966
9c60689e
DWT
22967# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22968# into the resulting binary.
22969hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
35fa52c0 22970
9c60689e
DWT
22971# Set to "yes" if building a shared library automatically hardcodes DIR
22972# into the library and all subsequent libraries and executables linked
22973# against it.
22974hardcode_automatic=$hardcode_automatic_CXX
6b66678a 22975
9c60689e
DWT
22976# Set to yes if linker adds runtime paths of dependent libraries
22977# to runtime path list.
22978inherit_rpath=$inherit_rpath_CXX
6b66678a 22979
9c60689e
DWT
22980# Whether libtool must link a program against all its dependency libraries.
22981link_all_deplibs=$link_all_deplibs_CXX
6b66678a 22982
9c60689e
DWT
22983# Set to "yes" if exported symbols are required.
22984always_export_symbols=$always_export_symbols_CXX
6b66678a 22985
9c60689e
DWT
22986# The commands to list exported symbols.
22987export_symbols_cmds=$lt_export_symbols_cmds_CXX
6b66678a 22988
9c60689e
DWT
22989# Symbols that should not be listed in the preloaded symbols.
22990exclude_expsyms=$lt_exclude_expsyms_CXX
6b66678a 22991
9c60689e
DWT
22992# Symbols that must always be exported.
22993include_expsyms=$lt_include_expsyms_CXX
6b66678a 22994
9c60689e
DWT
22995# Commands necessary for linking programs (against libraries) with templates.
22996prelink_cmds=$lt_prelink_cmds_CXX
6b66678a 22997
ee134472
JF
22998# Commands necessary for finishing linking programs.
22999postlink_cmds=$lt_postlink_cmds_CXX
23000
9c60689e
DWT
23001# Specify filename containing input files.
23002file_list_spec=$lt_file_list_spec_CXX
dbadc56a 23003
9c60689e
DWT
23004# How to hardcode a shared library path into an executable.
23005hardcode_action=$hardcode_action_CXX
309b0535 23006
9c60689e
DWT
23007# The directories searched by this compiler when creating a shared library.
23008compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
309b0535 23009
9c60689e
DWT
23010# Dependencies to place before and after the objects being linked to
23011# create a shared library.
23012predep_objects=$lt_predep_objects_CXX
23013postdep_objects=$lt_postdep_objects_CXX
23014predeps=$lt_predeps_CXX
23015postdeps=$lt_postdeps_CXX
309b0535 23016
9c60689e
DWT
23017# The library search path used internally by the compiler when linking
23018# a shared library.
23019compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
23020
23021# ### END LIBTOOL TAG CONFIG: CXX
23022_LT_EOF
23023
23024 ;;
23025
23026 esac
23027done # for ac_tag
23028
23029
23030as_fn_exit 0
23031_ACEOF
23032ac_clean_files=$ac_clean_files_save
23033
23034test $ac_write_fail = 0 ||
12833ad8 23035 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
9c60689e
DWT
23036
23037
23038# configure is writing to config.log, and then calls config.status.
23039# config.status does its own redirection, appending to config.log.
23040# Unfortunately, on DOS this fails, as config.log is still kept open
23041# by configure, so config.status won't be able to write to it; its
23042# output is simply discarded. So we exec the FD to /dev/null,
23043# effectively closing config.log, so it can be properly (re)opened and
23044# appended to by config.status. When coming back to configure, we
23045# need to make the FD available again.
23046if test "$no_create" != yes; then
23047 ac_cs_success=:
23048 ac_config_status_args=
23049 test "$silent" = yes &&
23050 ac_config_status_args="$ac_config_status_args --quiet"
23051 exec 5>/dev/null
23052 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23053 exec 5>>config.log
23054 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23055 # would make configure fail if this is the last instruction.
12833ad8 23056 $ac_cs_success || as_fn_exit 1
309b0535 23057fi
9c60689e
DWT
23058if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23060$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23061fi
23062