]> git.saurik.com Git - cycript.git/blame - configure
Add pkg-config --cflags to CPPFLAGS, not C*FLAGS.
[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
5053a6d1
DWT
653LTLIBICONV
654LIBICONV
6f9aea2b
JF
655LTLIBTERMCAP
656LTLIBREADLINE
a243b558
JF
657CY_OBJECTIVEC_FALSE
658CY_OBJECTIVEC_TRUE
47aaa820 659GNUSTEP_CONFIG
c823f118 660CY_OBJECTIVEC
296ee9a6 661LTLIBFFI
309b0535 662LIBFFI_LIBS
35fa52c0 663LIBFFI_CFLAGS
a243b558
JF
664CY_EXECUTE_FALSE
665CY_EXECUTE_TRUE
d4f27204 666LTLIBAPR
35fa52c0
DWT
667WEBKIT_LIBS
668WEBKIT_CFLAGS
7eda51e0 669CY_EXECUTE
a243b558 670CY_ARCH
9228a43a 671CY_FILTERS
e9c9a47c 672GNUTAR
e9c9a47c
DWT
673GPERF
674FLEX
675BISON
676TIME
66170b30 677GIT
e9c9a47c 678_BASH
12833ad8
JF
679PKG_CONFIG_LIBDIR
680PKG_CONFIG_PATH
3fd51f51 681PKG_CONFIG
a243b558 682CXXCPP
9c60689e
DWT
683CPP
684OTOOL64
685OTOOL
686LIPO
687NMEDIT
688DSYMUTIL
ee134472 689MANIFEST_TOOL
9c60689e 690RANLIB
ee134472 691DLLTOOL
9c60689e
DWT
692OBJDUMP
693LN_S
694NM
695ac_ct_DUMPBIN
696DUMPBIN
697LD
698FGREP
699EGREP
700GREP
701SED
a243b558
JF
702host_os
703host_vendor
704host_cpu
705host
706build_os
707build_vendor
708build_cpu
709build
710LIBTOOL
66170b30
JF
711am__fastdepCC_FALSE
712am__fastdepCC_TRUE
713CCDEPMODE
a243b558
JF
714ac_ct_CC
715CFLAGS
716CC
717ac_ct_AR
718AR
719am__fastdepOBJCXX_FALSE
720am__fastdepOBJCXX_TRUE
721OBJCXXDEPMODE
722ac_ct_OBJCXX
723OBJCXXFLAGS
724OBJCXX
725am__fastdepCXX_FALSE
726am__fastdepCXX_TRUE
727CXXDEPMODE
66170b30
JF
728am__nodep
729AMDEPBACKSLASH
730AMDEP_FALSE
731AMDEP_TRUE
732am__quote
733am__include
734DEPDIR
35fa52c0
DWT
735OBJEXT
736EXEEXT
a243b558 737ac_ct_CXX
35fa52c0
DWT
738CPPFLAGS
739LDFLAGS
a243b558
JF
740CXXFLAGS
741CXX
66170b30
JF
742AM_BACKSLASH
743AM_DEFAULT_VERBOSITY
744AM_DEFAULT_V
745AM_V
746am__untar
747am__tar
748AMTAR
749am__leading_dot
750SET_MAKE
751AWK
752mkdir_p
753MKDIR_P
754INSTALL_STRIP_PROGRAM
755STRIP
756install_sh
757MAKEINFO
758AUTOHEADER
759AUTOMAKE
760AUTOCONF
761ACLOCAL
762VERSION
763PACKAGE
764CYGPATH_W
765am__isrc
766INSTALL_DATA
767INSTALL_SCRIPT
768INSTALL_PROGRAM
dbadc56a 769target_alias
c7aa54aa
DWT
770host_alias
771build_alias
772LIBS
773ECHO_T
774ECHO_N
775ECHO_C
776DEFS
777mandir
778localedir
779libdir
780psdir
781pdfdir
782dvidir
783htmldir
784infodir
785docdir
786oldincludedir
787includedir
788localstatedir
789sharedstatedir
790sysconfdir
791datadir
792datarootdir
793libexecdir
794sbindir
795bindir
796program_transform_name
797prefix
798exec_prefix
799PACKAGE_URL
800PACKAGE_BUGREPORT
801PACKAGE_STRING
802PACKAGE_VERSION
803PACKAGE_TARNAME
804PACKAGE_NAME
805PATH_SEPARATOR
806SHELL'
807ac_subst_files=''
808ac_user_opts='
809enable_option_checking
66170b30 810enable_silent_rules
a243b558 811enable_dependency_tracking
9c60689e 812enable_static
549f29b5 813enable_shared
9c60689e
DWT
814with_pic
815enable_fast_install
35fa52c0 816with_gnu_ld
ee134472 817with_sysroot
9c60689e 818enable_libtool_lock
5053a6d1 819enable_javascript
66170b30 820with_apr
35fa52c0
DWT
821enable_rpath
822with_libiconv_prefix
c7aa54aa
DWT
823'
824 ac_precious_vars='build_alias
825host_alias
dbadc56a 826target_alias
a243b558
JF
827CXX
828CXXFLAGS
dbadc56a
DWT
829LDFLAGS
830LIBS
831CPPFLAGS
a243b558
JF
832CCC
833OBJCXX
834OBJCXXFLAGS
835CC
836CFLAGS
9c60689e 837CPP
a243b558 838CXXCPP
3fd51f51 839PKG_CONFIG
12833ad8
JF
840PKG_CONFIG_PATH
841PKG_CONFIG_LIBDIR
e9c9a47c
DWT
842BISON
843FLEX
844GPERF
66170b30 845GNUTAR
35fa52c0
DWT
846WEBKIT_CFLAGS
847WEBKIT_LIBS
a667869d 848LIBFFI_CFLAGS
790e5246
DWT
849LIBFFI_LIBS
850GNUSTEP_CONFIG'
c7aa54aa
DWT
851
852
853# Initialize some variables set by options.
854ac_init_help=
855ac_init_version=false
856ac_unrecognized_opts=
857ac_unrecognized_sep=
858# The variables have the same names as the options, with
859# dashes changed to underlines.
860cache_file=/dev/null
861exec_prefix=NONE
862no_create=
863no_recursion=
864prefix=NONE
865program_prefix=NONE
866program_suffix=NONE
867program_transform_name=s,x,x,
868silent=
869site=
870srcdir=
871verbose=
872x_includes=NONE
873x_libraries=NONE
874
875# Installation directory options.
876# These are left unexpanded so users can "make install exec_prefix=/foo"
877# and all the variables that are supposed to be based on exec_prefix
878# by default will actually change.
879# Use braces instead of parens because sh, perl, etc. also accept them.
880# (The list follows the same order as the GNU Coding Standards.)
881bindir='${exec_prefix}/bin'
882sbindir='${exec_prefix}/sbin'
883libexecdir='${exec_prefix}/libexec'
884datarootdir='${prefix}/share'
885datadir='${datarootdir}'
886sysconfdir='${prefix}/etc'
887sharedstatedir='${prefix}/com'
888localstatedir='${prefix}/var'
889includedir='${prefix}/include'
890oldincludedir='/usr/include'
891docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
892infodir='${datarootdir}/info'
893htmldir='${docdir}'
894dvidir='${docdir}'
895pdfdir='${docdir}'
896psdir='${docdir}'
897libdir='${exec_prefix}/lib'
898localedir='${datarootdir}/locale'
899mandir='${datarootdir}/man'
900
901ac_prev=
902ac_dashdash=
903for ac_option
904do
905 # If the previous option needs an argument, assign it.
906 if test -n "$ac_prev"; then
907 eval $ac_prev=\$ac_option
908 ac_prev=
909 continue
910 fi
911
912 case $ac_option in
12833ad8
JF
913 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
914 *=) ac_optarg= ;;
915 *) ac_optarg=yes ;;
c7aa54aa
DWT
916 esac
917
918 # Accept the important Cygnus configure options, so we can diagnose typos.
919
920 case $ac_dashdash$ac_option in
921 --)
922 ac_dashdash=yes ;;
923
924 -bindir | --bindir | --bindi | --bind | --bin | --bi)
925 ac_prev=bindir ;;
926 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
927 bindir=$ac_optarg ;;
928
929 -build | --build | --buil | --bui | --bu)
930 ac_prev=build_alias ;;
931 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
932 build_alias=$ac_optarg ;;
933
934 -cache-file | --cache-file | --cache-fil | --cache-fi \
935 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
936 ac_prev=cache_file ;;
937 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
938 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
939 cache_file=$ac_optarg ;;
940
941 --config-cache | -C)
942 cache_file=config.cache ;;
943
944 -datadir | --datadir | --datadi | --datad)
945 ac_prev=datadir ;;
946 -datadir=* | --datadir=* | --datadi=* | --datad=*)
947 datadir=$ac_optarg ;;
948
949 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
950 | --dataroo | --dataro | --datar)
951 ac_prev=datarootdir ;;
952 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
953 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
954 datarootdir=$ac_optarg ;;
955
956 -disable-* | --disable-*)
957 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
958 # Reject names that are not valid shell variable names.
959 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
12833ad8 960 as_fn_error $? "invalid feature name: $ac_useropt"
c7aa54aa
DWT
961 ac_useropt_orig=$ac_useropt
962 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
963 case $ac_user_opts in
964 *"
965"enable_$ac_useropt"
966"*) ;;
967 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
968 ac_unrecognized_sep=', ';;
969 esac
970 eval enable_$ac_useropt=no ;;
971
972 -docdir | --docdir | --docdi | --doc | --do)
973 ac_prev=docdir ;;
974 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
975 docdir=$ac_optarg ;;
976
977 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
978 ac_prev=dvidir ;;
979 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
980 dvidir=$ac_optarg ;;
981
982 -enable-* | --enable-*)
983 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
984 # Reject names that are not valid shell variable names.
985 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
12833ad8 986 as_fn_error $? "invalid feature name: $ac_useropt"
c7aa54aa
DWT
987 ac_useropt_orig=$ac_useropt
988 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
989 case $ac_user_opts in
990 *"
991"enable_$ac_useropt"
992"*) ;;
993 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
994 ac_unrecognized_sep=', ';;
995 esac
996 eval enable_$ac_useropt=\$ac_optarg ;;
997
998 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
999 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1000 | --exec | --exe | --ex)
1001 ac_prev=exec_prefix ;;
1002 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1003 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1004 | --exec=* | --exe=* | --ex=*)
1005 exec_prefix=$ac_optarg ;;
1006
1007 -gas | --gas | --ga | --g)
1008 # Obsolete; use --with-gas.
1009 with_gas=yes ;;
1010
1011 -help | --help | --hel | --he | -h)
1012 ac_init_help=long ;;
1013 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1014 ac_init_help=recursive ;;
1015 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1016 ac_init_help=short ;;
1017
1018 -host | --host | --hos | --ho)
1019 ac_prev=host_alias ;;
1020 -host=* | --host=* | --hos=* | --ho=*)
1021 host_alias=$ac_optarg ;;
1022
1023 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1024 ac_prev=htmldir ;;
1025 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1026 | --ht=*)
1027 htmldir=$ac_optarg ;;
1028
1029 -includedir | --includedir | --includedi | --included | --include \
1030 | --includ | --inclu | --incl | --inc)
1031 ac_prev=includedir ;;
1032 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1033 | --includ=* | --inclu=* | --incl=* | --inc=*)
1034 includedir=$ac_optarg ;;
1035
1036 -infodir | --infodir | --infodi | --infod | --info | --inf)
1037 ac_prev=infodir ;;
1038 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1039 infodir=$ac_optarg ;;
1040
1041 -libdir | --libdir | --libdi | --libd)
1042 ac_prev=libdir ;;
1043 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1044 libdir=$ac_optarg ;;
1045
1046 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1047 | --libexe | --libex | --libe)
1048 ac_prev=libexecdir ;;
1049 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1050 | --libexe=* | --libex=* | --libe=*)
1051 libexecdir=$ac_optarg ;;
1052
1053 -localedir | --localedir | --localedi | --localed | --locale)
1054 ac_prev=localedir ;;
1055 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1056 localedir=$ac_optarg ;;
1057
1058 -localstatedir | --localstatedir | --localstatedi | --localstated \
1059 | --localstate | --localstat | --localsta | --localst | --locals)
1060 ac_prev=localstatedir ;;
1061 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1062 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1063 localstatedir=$ac_optarg ;;
1064
1065 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1066 ac_prev=mandir ;;
1067 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1068 mandir=$ac_optarg ;;
1069
1070 -nfp | --nfp | --nf)
1071 # Obsolete; use --without-fp.
1072 with_fp=no ;;
1073
1074 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1075 | --no-cr | --no-c | -n)
1076 no_create=yes ;;
1077
1078 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1079 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1080 no_recursion=yes ;;
1081
1082 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1083 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1084 | --oldin | --oldi | --old | --ol | --o)
1085 ac_prev=oldincludedir ;;
1086 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1087 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1088 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1089 oldincludedir=$ac_optarg ;;
1090
1091 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1092 ac_prev=prefix ;;
1093 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1094 prefix=$ac_optarg ;;
1095
1096 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1097 | --program-pre | --program-pr | --program-p)
1098 ac_prev=program_prefix ;;
1099 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1100 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1101 program_prefix=$ac_optarg ;;
1102
1103 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1104 | --program-suf | --program-su | --program-s)
1105 ac_prev=program_suffix ;;
1106 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1107 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1108 program_suffix=$ac_optarg ;;
1109
1110 -program-transform-name | --program-transform-name \
1111 | --program-transform-nam | --program-transform-na \
1112 | --program-transform-n | --program-transform- \
1113 | --program-transform | --program-transfor \
1114 | --program-transfo | --program-transf \
1115 | --program-trans | --program-tran \
1116 | --progr-tra | --program-tr | --program-t)
1117 ac_prev=program_transform_name ;;
1118 -program-transform-name=* | --program-transform-name=* \
1119 | --program-transform-nam=* | --program-transform-na=* \
1120 | --program-transform-n=* | --program-transform-=* \
1121 | --program-transform=* | --program-transfor=* \
1122 | --program-transfo=* | --program-transf=* \
1123 | --program-trans=* | --program-tran=* \
1124 | --progr-tra=* | --program-tr=* | --program-t=*)
1125 program_transform_name=$ac_optarg ;;
1126
1127 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1128 ac_prev=pdfdir ;;
1129 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1130 pdfdir=$ac_optarg ;;
1131
1132 -psdir | --psdir | --psdi | --psd | --ps)
1133 ac_prev=psdir ;;
1134 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1135 psdir=$ac_optarg ;;
1136
1137 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1138 | -silent | --silent | --silen | --sile | --sil)
1139 silent=yes ;;
1140
1141 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1142 ac_prev=sbindir ;;
1143 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1144 | --sbi=* | --sb=*)
1145 sbindir=$ac_optarg ;;
1146
1147 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1148 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1149 | --sharedst | --shareds | --shared | --share | --shar \
1150 | --sha | --sh)
1151 ac_prev=sharedstatedir ;;
1152 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1153 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1154 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1155 | --sha=* | --sh=*)
1156 sharedstatedir=$ac_optarg ;;
1157
1158 -site | --site | --sit)
1159 ac_prev=site ;;
1160 -site=* | --site=* | --sit=*)
1161 site=$ac_optarg ;;
1162
1163 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1164 ac_prev=srcdir ;;
1165 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1166 srcdir=$ac_optarg ;;
1167
1168 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1169 | --syscon | --sysco | --sysc | --sys | --sy)
1170 ac_prev=sysconfdir ;;
1171 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1172 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1173 sysconfdir=$ac_optarg ;;
1174
1175 -target | --target | --targe | --targ | --tar | --ta | --t)
1176 ac_prev=target_alias ;;
1177 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1178 target_alias=$ac_optarg ;;
1179
1180 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1181 verbose=yes ;;
1182
1183 -version | --version | --versio | --versi | --vers | -V)
1184 ac_init_version=: ;;
1185
1186 -with-* | --with-*)
1187 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1188 # Reject names that are not valid shell variable names.
1189 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
12833ad8 1190 as_fn_error $? "invalid package name: $ac_useropt"
c7aa54aa
DWT
1191 ac_useropt_orig=$ac_useropt
1192 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1193 case $ac_user_opts in
1194 *"
1195"with_$ac_useropt"
1196"*) ;;
1197 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1198 ac_unrecognized_sep=', ';;
1199 esac
1200 eval with_$ac_useropt=\$ac_optarg ;;
1201
1202 -without-* | --without-*)
1203 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1204 # Reject names that are not valid shell variable names.
1205 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
12833ad8 1206 as_fn_error $? "invalid package name: $ac_useropt"
c7aa54aa
DWT
1207 ac_useropt_orig=$ac_useropt
1208 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1209 case $ac_user_opts in
1210 *"
1211"with_$ac_useropt"
1212"*) ;;
1213 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1214 ac_unrecognized_sep=', ';;
1215 esac
1216 eval with_$ac_useropt=no ;;
1217
1218 --x)
1219 # Obsolete; use --with-x.
1220 with_x=yes ;;
1221
1222 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1223 | --x-incl | --x-inc | --x-in | --x-i)
1224 ac_prev=x_includes ;;
1225 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1226 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1227 x_includes=$ac_optarg ;;
1228
1229 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1230 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1231 ac_prev=x_libraries ;;
1232 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1233 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1234 x_libraries=$ac_optarg ;;
1235
12833ad8
JF
1236 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1237Try \`$0 --help' for more information"
c7aa54aa
DWT
1238 ;;
1239
1240 *=*)
1241 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1242 # Reject names that are not valid shell variable names.
1243 case $ac_envvar in #(
1244 '' | [0-9]* | *[!_$as_cr_alnum]* )
12833ad8 1245 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
c7aa54aa
DWT
1246 esac
1247 eval $ac_envvar=\$ac_optarg
1248 export $ac_envvar ;;
1249
1250 *)
1251 # FIXME: should be removed in autoconf 3.0.
1252 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1253 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1254 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
ee134472 1255 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
c7aa54aa
DWT
1256 ;;
1257
1258 esac
1259done
1260
1261if test -n "$ac_prev"; then
1262 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
12833ad8 1263 as_fn_error $? "missing argument to $ac_option"
c7aa54aa
DWT
1264fi
1265
1266if test -n "$ac_unrecognized_opts"; then
1267 case $enable_option_checking in
1268 no) ;;
12833ad8 1269 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
c7aa54aa
DWT
1270 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1271 esac
1272fi
1273
1274# Check all directory arguments for consistency.
1275for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1276 datadir sysconfdir sharedstatedir localstatedir includedir \
1277 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1278 libdir localedir mandir
1279do
1280 eval ac_val=\$$ac_var
1281 # Remove trailing slashes.
1282 case $ac_val in
1283 */ )
1284 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1285 eval $ac_var=\$ac_val;;
1286 esac
1287 # Be sure to have absolute directory names.
1288 case $ac_val in
1289 [\\/$]* | ?:[\\/]* ) continue;;
1290 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1291 esac
12833ad8 1292 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
c7aa54aa
DWT
1293done
1294
1295# There might be people who depend on the old broken behavior: `$host'
1296# used to hold the argument of --host etc.
1297# FIXME: To remove some day.
1298build=$build_alias
1299host=$host_alias
1300target=$target_alias
1301
1302# FIXME: To remove some day.
1303if test "x$host_alias" != x; then
1304 if test "x$build_alias" = x; then
1305 cross_compiling=maybe
c7aa54aa
DWT
1306 elif test "x$build_alias" != "x$host_alias"; then
1307 cross_compiling=yes
1308 fi
1309fi
1310
1311ac_tool_prefix=
1312test -n "$host_alias" && ac_tool_prefix=$host_alias-
1313
1314test "$silent" = yes && exec 6>/dev/null
1315
1316
1317ac_pwd=`pwd` && test -n "$ac_pwd" &&
1318ac_ls_di=`ls -di .` &&
1319ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
12833ad8 1320 as_fn_error $? "working directory cannot be determined"
c7aa54aa 1321test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
12833ad8 1322 as_fn_error $? "pwd does not report name of working directory"
c7aa54aa
DWT
1323
1324
1325# Find the source files, if location was not specified.
1326if test -z "$srcdir"; then
1327 ac_srcdir_defaulted=yes
1328 # Try the directory containing this script, then the parent directory.
1329 ac_confdir=`$as_dirname -- "$as_myself" ||
1330$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1331 X"$as_myself" : 'X\(//\)[^/]' \| \
1332 X"$as_myself" : 'X\(//\)$' \| \
1333 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1334$as_echo X"$as_myself" |
1335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1336 s//\1/
1337 q
1338 }
1339 /^X\(\/\/\)[^/].*/{
1340 s//\1/
1341 q
1342 }
1343 /^X\(\/\/\)$/{
1344 s//\1/
1345 q
1346 }
1347 /^X\(\/\).*/{
1348 s//\1/
1349 q
1350 }
1351 s/.*/./; q'`
1352 srcdir=$ac_confdir
1353 if test ! -r "$srcdir/$ac_unique_file"; then
1354 srcdir=..
1355 fi
1356else
1357 ac_srcdir_defaulted=no
1358fi
1359if test ! -r "$srcdir/$ac_unique_file"; then
1360 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
12833ad8 1361 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
c7aa54aa
DWT
1362fi
1363ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1364ac_abs_confdir=`(
12833ad8 1365 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
c7aa54aa
DWT
1366 pwd)`
1367# When building in place, set srcdir=.
1368if test "$ac_abs_confdir" = "$ac_pwd"; then
1369 srcdir=.
1370fi
1371# Remove unnecessary trailing slashes from srcdir.
1372# Double slashes in file names in object file debugging info
1373# mess up M-x gdb in Emacs.
1374case $srcdir in
1375*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1376esac
1377for ac_var in $ac_precious_vars; do
1378 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1379 eval ac_env_${ac_var}_value=\$${ac_var}
1380 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1381 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1382done
1383
1384#
1385# Report the --help message.
1386#
1387if test "$ac_init_help" = "long"; then
1388 # Omit some internal or obsolete options to make the list less imposing.
1389 # This message is too long to be a string in the A/UX 3.1 sh.
1390 cat <<_ACEOF
1391\`configure' configures Cycript 0.9 to adapt to many kinds of systems.
1392
1393Usage: $0 [OPTION]... [VAR=VALUE]...
1394
1395To assign environment variables (e.g., CC, CFLAGS...), specify them as
1396VAR=VALUE. See below for descriptions of some of the useful variables.
1397
1398Defaults for the options are specified in brackets.
1399
1400Configuration:
1401 -h, --help display this help and exit
1402 --help=short display options specific to this package
1403 --help=recursive display the short help of all the included packages
1404 -V, --version display version information and exit
12833ad8 1405 -q, --quiet, --silent do not print \`checking ...' messages
c7aa54aa
DWT
1406 --cache-file=FILE cache test results in FILE [disabled]
1407 -C, --config-cache alias for \`--cache-file=config.cache'
1408 -n, --no-create do not create output files
1409 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1410
1411Installation directories:
1412 --prefix=PREFIX install architecture-independent files in PREFIX
1413 [$ac_default_prefix]
1414 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1415 [PREFIX]
1416
1417By default, \`make install' will install all the files in
1418\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1419an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1420for instance \`--prefix=\$HOME'.
1421
1422For better control, use the options below.
1423
1424Fine tuning of the installation directories:
1425 --bindir=DIR user executables [EPREFIX/bin]
1426 --sbindir=DIR system admin executables [EPREFIX/sbin]
1427 --libexecdir=DIR program executables [EPREFIX/libexec]
1428 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1429 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1430 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1431 --libdir=DIR object code libraries [EPREFIX/lib]
1432 --includedir=DIR C header files [PREFIX/include]
1433 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1434 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1435 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1436 --infodir=DIR info documentation [DATAROOTDIR/info]
1437 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1438 --mandir=DIR man documentation [DATAROOTDIR/man]
1439 --docdir=DIR documentation root [DATAROOTDIR/doc/cycript]
1440 --htmldir=DIR html documentation [DOCDIR]
1441 --dvidir=DIR dvi documentation [DOCDIR]
1442 --pdfdir=DIR pdf documentation [DOCDIR]
1443 --psdir=DIR ps documentation [DOCDIR]
1444_ACEOF
1445
1446 cat <<\_ACEOF
35fa52c0 1447
66170b30
JF
1448Program names:
1449 --program-prefix=PREFIX prepend PREFIX to installed program names
1450 --program-suffix=SUFFIX append SUFFIX to installed program names
1451 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1452
35fa52c0
DWT
1453System types:
1454 --build=BUILD configure for building on BUILD [guessed]
1455 --host=HOST cross-compile to build programs to run on HOST [BUILD]
c7aa54aa
DWT
1456_ACEOF
1457fi
1458
1459if test -n "$ac_init_help"; then
1460 case $ac_init_help in
1461 short | recursive ) echo "Configuration of Cycript 0.9:";;
1462 esac
1463 cat <<\_ACEOF
1464
35fa52c0
DWT
1465Optional Features:
1466 --disable-option-checking ignore unrecognized --enable/--with options
1467 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1468 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
66170b30
JF
1469 --enable-silent-rules less verbose build output (undo: "make V=1")
1470 --disable-silent-rules verbose build output (undo: "make V=0")
66170b30
JF
1471 --enable-dependency-tracking
1472 do not reject slow dependency extractors
1473 --disable-dependency-tracking
1474 speeds up one-time build
a243b558
JF
1475 --enable-static[=PKGS] build static libraries [default=no]
1476 --enable-shared[=PKGS] build shared libraries [default=yes]
1477 --enable-fast-install[=PKGS]
1478 optimize for fast installation [default=yes]
9c60689e 1479 --disable-libtool-lock avoid locking (might break parallel builds)
b66977f1 1480 --enable-javascript[=ENGINE]
790e5246 1481 use a JavaScript runtime (currently the only
b66977f1
DWT
1482 available option for ENGINE is JavaScriptCore)
1483 [default=yes]
5053a6d1 1484 --disable-rpath do not hardcode runtime library paths
35fa52c0
DWT
1485
1486Optional Packages:
1487 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1488 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
53ba6704 1489 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
9c60689e
DWT
1490 both]
1491 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
ee134472
JF
1492 --with-sysroot=DIR Search for dependent libraries within DIR
1493 (or the compiler's sysroot if not specified).
309b0535
DWT
1494 --with-apr=PATH prefix for installed APR or the full path to
1495 apr-config
53ba6704 1496 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
35fa52c0
DWT
1497 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1498 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1499
dbadc56a 1500Some influential environment variables:
a243b558
JF
1501 CXX C++ compiler command
1502 CXXFLAGS C++ compiler flags
dbadc56a
DWT
1503 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1504 nonstandard directory <lib dir>
1505 LIBS libraries to pass to the linker, e.g. -l<library>
9c60689e 1506 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
dbadc56a 1507 you have headers in a nonstandard directory <include dir>
a243b558
JF
1508 OBJCXX Objective C++ compiler command
1509 OBJCXXFLAGS Objective C++ compiler flags
1510 CC C compiler command
1511 CFLAGS C compiler flags
9c60689e 1512 CPP C preprocessor
a243b558 1513 CXXCPP C++ preprocessor
3fd51f51 1514 PKG_CONFIG path to pkg-config utility
12833ad8
JF
1515 PKG_CONFIG_PATH
1516 directories to add to pkg-config's search path
1517 PKG_CONFIG_LIBDIR
1518 path overriding pkg-config's built-in search path
e9c9a47c
DWT
1519 BISON GNU Project parser generator (yacc replacement)
1520 FLEX the fast lexical analyser generator
1521 GPERF perfect hash function generator
66170b30 1522 GNUTAR a very sticky lump of files
35fa52c0
DWT
1523 WEBKIT_CFLAGS
1524 C compiler flags for WEBKIT, overriding pkg-config
1525 WEBKIT_LIBS linker flags for WEBKIT, overriding pkg-config
790e5246
DWT
1526 GNUSTEP_CONFIG
1527 prints information about the current gnustep installation
dbadc56a
DWT
1528
1529Use these variables to override the choices made by `configure' or to help
1530it to find libraries and programs with nonstandard names/locations.
1531
c7aa54aa
DWT
1532Report bugs to <saurik@saurik.com>.
1533Cycript home page: <http://www.cycript.org/>.
1534_ACEOF
1535ac_status=$?
1536fi
1537
1538if test "$ac_init_help" = "recursive"; then
1539 # If there are subdirs, report their specific --help.
1540 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1541 test -d "$ac_dir" ||
1542 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1543 continue
1544 ac_builddir=.
1545
1546case "$ac_dir" in
1547.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1548*)
1549 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1550 # A ".." for each directory in $ac_dir_suffix.
1551 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1552 case $ac_top_builddir_sub in
1553 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1554 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1555 esac ;;
1556esac
1557ac_abs_top_builddir=$ac_pwd
1558ac_abs_builddir=$ac_pwd$ac_dir_suffix
1559# for backward compatibility:
1560ac_top_builddir=$ac_top_build_prefix
1561
1562case $srcdir in
1563 .) # We are building in place.
1564 ac_srcdir=.
1565 ac_top_srcdir=$ac_top_builddir_sub
1566 ac_abs_top_srcdir=$ac_pwd ;;
1567 [\\/]* | ?:[\\/]* ) # Absolute name.
1568 ac_srcdir=$srcdir$ac_dir_suffix;
1569 ac_top_srcdir=$srcdir
1570 ac_abs_top_srcdir=$srcdir ;;
1571 *) # Relative name.
1572 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1573 ac_top_srcdir=$ac_top_build_prefix$srcdir
1574 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1575esac
1576ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1577
1578 cd "$ac_dir" || { ac_status=$?; continue; }
1579 # Check for guested configure.
1580 if test -f "$ac_srcdir/configure.gnu"; then
1581 echo &&
1582 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1583 elif test -f "$ac_srcdir/configure"; then
1584 echo &&
1585 $SHELL "$ac_srcdir/configure" --help=recursive
1586 else
1587 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1588 fi || ac_status=$?
1589 cd "$ac_pwd" || { ac_status=$?; break; }
1590 done
1591fi
1592
1593test -n "$ac_init_help" && exit $ac_status
1594if $ac_init_version; then
1595 cat <<\_ACEOF
1596Cycript configure 0.9
53ba6704 1597generated by GNU Autoconf 2.69
c7aa54aa 1598
53ba6704 1599Copyright (C) 2012 Free Software Foundation, Inc.
c7aa54aa
DWT
1600This configure script is free software; the Free Software Foundation
1601gives unlimited permission to copy, distribute and modify it.
66170b30
JF
1602
1603Copyright (C) 2009-2012 Jay Freeman (saurik)
c7aa54aa
DWT
1604_ACEOF
1605 exit
1606fi
1607
1608## ------------------------ ##
1609## Autoconf initialization. ##
1610## ------------------------ ##
dbadc56a 1611
a243b558
JF
1612# ac_fn_cxx_try_compile LINENO
1613# ----------------------------
1614# Try to compile conftest.$ac_ext, and return whether this succeeded.
1615ac_fn_cxx_try_compile ()
1616{
1617 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1618 rm -f conftest.$ac_objext
1619 if { { ac_try="$ac_compile"
1620case "(($ac_try" in
1621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1622 *) ac_try_echo=$ac_try;;
1623esac
1624eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1625$as_echo "$ac_try_echo"; } >&5
1626 (eval "$ac_compile") 2>conftest.err
1627 ac_status=$?
1628 if test -s conftest.err; then
1629 grep -v '^ *+' conftest.err >conftest.er1
1630 cat conftest.er1 >&5
1631 mv -f conftest.er1 conftest.err
1632 fi
1633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1634 test $ac_status = 0; } && {
1635 test -z "$ac_cxx_werror_flag" ||
1636 test ! -s conftest.err
1637 } && test -s conftest.$ac_objext; then :
1638 ac_retval=0
1639else
1640 $as_echo "$as_me: failed program was:" >&5
1641sed 's/^/| /' conftest.$ac_ext >&5
1642
1643 ac_retval=1
1644fi
1645 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1646 as_fn_set_status $ac_retval
1647
1648} # ac_fn_cxx_try_compile
1649
1650# ac_fn_objcxx_try_compile LINENO
1651# -------------------------------
1652# Try to compile conftest.$ac_ext, and return whether this succeeded.
1653ac_fn_objcxx_try_compile ()
1654{
1655 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1656 rm -f conftest.$ac_objext
1657 if { { ac_try="$ac_compile"
1658case "(($ac_try" in
1659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1660 *) ac_try_echo=$ac_try;;
1661esac
1662eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1663$as_echo "$ac_try_echo"; } >&5
1664 (eval "$ac_compile") 2>conftest.err
1665 ac_status=$?
1666 if test -s conftest.err; then
1667 grep -v '^ *+' conftest.err >conftest.er1
1668 cat conftest.er1 >&5
1669 mv -f conftest.er1 conftest.err
1670 fi
1671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1672 test $ac_status = 0; } && {
1673 test -z "$ac_objcxx_werror_flag" ||
1674 test ! -s conftest.err
1675 } && test -s conftest.$ac_objext; then :
1676 ac_retval=0
1677else
1678 $as_echo "$as_me: failed program was:" >&5
1679sed 's/^/| /' conftest.$ac_ext >&5
1680
1681 ac_retval=1
1682fi
1683 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1684 as_fn_set_status $ac_retval
1685
1686} # ac_fn_objcxx_try_compile
1687
35fa52c0
DWT
1688# ac_fn_c_try_compile LINENO
1689# --------------------------
1690# Try to compile conftest.$ac_ext, and return whether this succeeded.
1691ac_fn_c_try_compile ()
1692{
1693 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1694 rm -f conftest.$ac_objext
1695 if { { ac_try="$ac_compile"
1696case "(($ac_try" in
1697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1698 *) ac_try_echo=$ac_try;;
1699esac
1700eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1701$as_echo "$ac_try_echo"; } >&5
1702 (eval "$ac_compile") 2>conftest.err
1703 ac_status=$?
1704 if test -s conftest.err; then
1705 grep -v '^ *+' conftest.err >conftest.er1
1706 cat conftest.er1 >&5
1707 mv -f conftest.er1 conftest.err
1708 fi
1709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1710 test $ac_status = 0; } && {
1711 test -z "$ac_c_werror_flag" ||
1712 test ! -s conftest.err
1713 } && test -s conftest.$ac_objext; then :
1714 ac_retval=0
1715else
1716 $as_echo "$as_me: failed program was:" >&5
1717sed 's/^/| /' conftest.$ac_ext >&5
1718
1719 ac_retval=1
1720fi
ee134472 1721 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9c60689e 1722 as_fn_set_status $ac_retval
35fa52c0
DWT
1723
1724} # ac_fn_c_try_compile
1725
1726# ac_fn_c_try_link LINENO
1727# -----------------------
1728# Try to link conftest.$ac_ext, and return whether this succeeded.
1729ac_fn_c_try_link ()
1730{
1731 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1732 rm -f conftest.$ac_objext conftest$ac_exeext
1733 if { { ac_try="$ac_link"
1734case "(($ac_try" in
1735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1736 *) ac_try_echo=$ac_try;;
1737esac
1738eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1739$as_echo "$ac_try_echo"; } >&5
1740 (eval "$ac_link") 2>conftest.err
1741 ac_status=$?
1742 if test -s conftest.err; then
1743 grep -v '^ *+' conftest.err >conftest.er1
1744 cat conftest.er1 >&5
1745 mv -f conftest.er1 conftest.err
1746 fi
1747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1748 test $ac_status = 0; } && {
1749 test -z "$ac_c_werror_flag" ||
1750 test ! -s conftest.err
1751 } && test -s conftest$ac_exeext && {
1752 test "$cross_compiling" = yes ||
53ba6704 1753 test -x conftest$ac_exeext
35fa52c0
DWT
1754 }; then :
1755 ac_retval=0
1756else
1757 $as_echo "$as_me: failed program was:" >&5
1758sed 's/^/| /' conftest.$ac_ext >&5
1759
1760 ac_retval=1
1761fi
1762 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1763 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1764 # interfere with the next link command; also delete a directory that is
1765 # left behind by Apple's compiler. We do this before executing the actions.
1766 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
ee134472 1767 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9c60689e 1768 as_fn_set_status $ac_retval
35fa52c0
DWT
1769
1770} # ac_fn_c_try_link
1771
9c60689e
DWT
1772# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1773# -------------------------------------------------------
1774# Tests whether HEADER exists and can be compiled using the include files in
1775# INCLUDES, setting the cache variable VAR accordingly.
1776ac_fn_c_check_header_compile ()
dbadc56a
DWT
1777{
1778 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9c60689e
DWT
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1780$as_echo_n "checking for $2... " >&6; }
ee134472 1781if eval \${$3+:} false; then :
9c60689e
DWT
1782 $as_echo_n "(cached) " >&6
1783else
1784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1785/* end confdefs.h. */
1786$4
1787#include <$2>
1788_ACEOF
1789if ac_fn_c_try_compile "$LINENO"; then :
1790 eval "$3=yes"
1791else
1792 eval "$3=no"
1793fi
1794rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1795fi
1796eval ac_res=\$$3
1797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1798$as_echo "$ac_res" >&6; }
ee134472 1799 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9c60689e
DWT
1800
1801} # ac_fn_c_check_header_compile
1802
1803# ac_fn_c_try_cpp LINENO
1804# ----------------------
1805# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1806ac_fn_c_try_cpp ()
1807{
1808 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1809 if { { ac_try="$ac_cpp conftest.$ac_ext"
dbadc56a
DWT
1810case "(($ac_try" in
1811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1812 *) ac_try_echo=$ac_try;;
1813esac
1814eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1815$as_echo "$ac_try_echo"; } >&5
9c60689e 1816 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
dbadc56a
DWT
1817 ac_status=$?
1818 if test -s conftest.err; then
1819 grep -v '^ *+' conftest.err >conftest.er1
1820 cat conftest.er1 >&5
1821 mv -f conftest.er1 conftest.err
1822 fi
1823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12833ad8 1824 test $ac_status = 0; } > conftest.i && {
9c60689e 1825 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
dbadc56a 1826 test ! -s conftest.err
9c60689e 1827 }; then :
dbadc56a
DWT
1828 ac_retval=0
1829else
1830 $as_echo "$as_me: failed program was:" >&5
1831sed 's/^/| /' conftest.$ac_ext >&5
1832
9c60689e 1833 ac_retval=1
dbadc56a 1834fi
ee134472 1835 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9c60689e 1836 as_fn_set_status $ac_retval
dbadc56a 1837
9c60689e 1838} # ac_fn_c_try_cpp
35fa52c0
DWT
1839
1840# ac_fn_c_try_run LINENO
1841# ----------------------
1842# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1843# that executables *can* be run.
1844ac_fn_c_try_run ()
1845{
1846 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1847 if { { ac_try="$ac_link"
1848case "(($ac_try" in
1849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1850 *) ac_try_echo=$ac_try;;
1851esac
1852eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1853$as_echo "$ac_try_echo"; } >&5
1854 (eval "$ac_link") 2>&5
1855 ac_status=$?
1856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1857 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1858 { { case "(($ac_try" in
1859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1860 *) ac_try_echo=$ac_try;;
1861esac
1862eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1863$as_echo "$ac_try_echo"; } >&5
1864 (eval "$ac_try") 2>&5
1865 ac_status=$?
1866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1867 test $ac_status = 0; }; }; then :
1868 ac_retval=0
1869else
1870 $as_echo "$as_me: program exited with status $ac_status" >&5
1871 $as_echo "$as_me: failed program was:" >&5
1872sed 's/^/| /' conftest.$ac_ext >&5
1873
1874 ac_retval=$ac_status
1875fi
1876 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
ee134472 1877 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9c60689e 1878 as_fn_set_status $ac_retval
35fa52c0
DWT
1879
1880} # ac_fn_c_try_run
6b66678a 1881
9c60689e
DWT
1882# ac_fn_c_check_func LINENO FUNC VAR
1883# ----------------------------------
1884# Tests whether FUNC exists, setting the cache variable VAR accordingly
1885ac_fn_c_check_func ()
6b66678a
DWT
1886{
1887 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9c60689e
DWT
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1889$as_echo_n "checking for $2... " >&6; }
ee134472 1890if eval \${$3+:} false; then :
9c60689e 1891 $as_echo_n "(cached) " >&6
6b66678a 1892else
9c60689e
DWT
1893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1894/* end confdefs.h. */
1895/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1896 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1897#define $2 innocuous_$2
6b66678a 1898
9c60689e
DWT
1899/* System header to define __stub macros and hopefully few prototypes,
1900 which can conflict with char $2 (); below.
1901 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1902 <limits.h> exists even on freestanding compilers. */
1903
1904#ifdef __STDC__
1905# include <limits.h>
1906#else
1907# include <assert.h>
1908#endif
1909
1910#undef $2
1911
1912/* Override any GCC internal prototype to avoid an error.
1913 Use char because int might match the return type of a GCC
1914 builtin and then its argument prototype would still apply. */
1915#ifdef __cplusplus
1916extern "C"
1917#endif
1918char $2 ();
1919/* The GNU C library defines this for functions which it implements
1920 to always fail with ENOSYS. Some functions are actually named
1921 something starting with __ and the normal name is an alias. */
1922#if defined __stub_$2 || defined __stub___$2
1923choke me
1924#endif
1925
1926int
1927main ()
1928{
1929return $2 ();
1930 ;
1931 return 0;
1932}
1933_ACEOF
1934if ac_fn_c_try_link "$LINENO"; then :
1935 eval "$3=yes"
1936else
1937 eval "$3=no"
1938fi
1939rm -f core conftest.err conftest.$ac_objext \
1940 conftest$ac_exeext conftest.$ac_ext
6b66678a 1941fi
9c60689e
DWT
1942eval ac_res=\$$3
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1944$as_echo "$ac_res" >&6; }
ee134472 1945 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
6b66678a 1946
9c60689e 1947} # ac_fn_c_check_func
6b66678a 1948
9c60689e
DWT
1949# ac_fn_cxx_try_cpp LINENO
1950# ------------------------
1951# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1952ac_fn_cxx_try_cpp ()
1953{
1954 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1955 if { { ac_try="$ac_cpp conftest.$ac_ext"
1956case "(($ac_try" in
1957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1958 *) ac_try_echo=$ac_try;;
1959esac
1960eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1961$as_echo "$ac_try_echo"; } >&5
1962 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1963 ac_status=$?
1964 if test -s conftest.err; then
1965 grep -v '^ *+' conftest.err >conftest.er1
1966 cat conftest.er1 >&5
1967 mv -f conftest.er1 conftest.err
1968 fi
1969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12833ad8 1970 test $ac_status = 0; } > conftest.i && {
9c60689e
DWT
1971 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1972 test ! -s conftest.err
1973 }; then :
1974 ac_retval=0
1975else
1976 $as_echo "$as_me: failed program was:" >&5
1977sed 's/^/| /' conftest.$ac_ext >&5
1978
1979 ac_retval=1
1980fi
ee134472 1981 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9c60689e
DWT
1982 as_fn_set_status $ac_retval
1983
1984} # ac_fn_cxx_try_cpp
1985
1986# ac_fn_cxx_try_link LINENO
1987# -------------------------
1988# Try to link conftest.$ac_ext, and return whether this succeeded.
1989ac_fn_cxx_try_link ()
1990{
1991 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1992 rm -f conftest.$ac_objext conftest$ac_exeext
1993 if { { ac_try="$ac_link"
1994case "(($ac_try" in
1995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1996 *) ac_try_echo=$ac_try;;
1997esac
1998eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1999$as_echo "$ac_try_echo"; } >&5
2000 (eval "$ac_link") 2>conftest.err
2001 ac_status=$?
2002 if test -s conftest.err; then
2003 grep -v '^ *+' conftest.err >conftest.er1
2004 cat conftest.er1 >&5
2005 mv -f conftest.er1 conftest.err
2006 fi
2007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2008 test $ac_status = 0; } && {
2009 test -z "$ac_cxx_werror_flag" ||
2010 test ! -s conftest.err
2011 } && test -s conftest$ac_exeext && {
2012 test "$cross_compiling" = yes ||
53ba6704 2013 test -x conftest$ac_exeext
9c60689e
DWT
2014 }; then :
2015 ac_retval=0
2016else
2017 $as_echo "$as_me: failed program was:" >&5
2018sed 's/^/| /' conftest.$ac_ext >&5
2019
2020 ac_retval=1
2021fi
2022 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2023 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2024 # interfere with the next link command; also delete a directory that is
2025 # left behind by Apple's compiler. We do this before executing the actions.
2026 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
ee134472 2027 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9c60689e
DWT
2028 as_fn_set_status $ac_retval
2029
2030} # ac_fn_cxx_try_link
2031
47aaa820
DWT
2032# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2033# ---------------------------------------------------------
2034# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2035# the include files in INCLUDES and setting the cache variable VAR
2036# accordingly.
2037ac_fn_cxx_check_header_mongrel ()
2038{
2039 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
ee134472 2040 if eval \${$3+:} false; then :
47aaa820
DWT
2041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2042$as_echo_n "checking for $2... " >&6; }
ee134472 2043if eval \${$3+:} false; then :
47aaa820
DWT
2044 $as_echo_n "(cached) " >&6
2045fi
2046eval ac_res=\$$3
2047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2048$as_echo "$ac_res" >&6; }
2049else
2050 # Is the header compilable?
2051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2052$as_echo_n "checking $2 usability... " >&6; }
2053cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2054/* end confdefs.h. */
2055$4
2056#include <$2>
2057_ACEOF
2058if ac_fn_cxx_try_compile "$LINENO"; then :
2059 ac_header_compiler=yes
2060else
2061 ac_header_compiler=no
2062fi
2063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2065$as_echo "$ac_header_compiler" >&6; }
2066
2067# Is the header present?
2068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2069$as_echo_n "checking $2 presence... " >&6; }
2070cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2071/* end confdefs.h. */
2072#include <$2>
2073_ACEOF
2074if ac_fn_cxx_try_cpp "$LINENO"; then :
2075 ac_header_preproc=yes
2076else
2077 ac_header_preproc=no
2078fi
12833ad8 2079rm -f conftest.err conftest.i conftest.$ac_ext
47aaa820
DWT
2080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2081$as_echo "$ac_header_preproc" >&6; }
2082
2083# So? What about this header?
2084case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2085 yes:no: )
2086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2087$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2089$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2090 ;;
2091 no:yes:* )
2092 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2093$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2094 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2095$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2096 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2097$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2099$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2101$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
12833ad8 2102( $as_echo "## -------------------------------- ##
47aaa820 2103## Report this to saurik@saurik.com ##
12833ad8 2104## -------------------------------- ##"
47aaa820
DWT
2105 ) | sed "s/^/$as_me: WARNING: /" >&2
2106 ;;
2107esac
2108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2109$as_echo_n "checking for $2... " >&6; }
ee134472 2110if eval \${$3+:} false; then :
47aaa820
DWT
2111 $as_echo_n "(cached) " >&6
2112else
2113 eval "$3=\$ac_header_compiler"
2114fi
2115eval ac_res=\$$3
2116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2117$as_echo "$ac_res" >&6; }
2118fi
ee134472 2119 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
47aaa820
DWT
2120
2121} # ac_fn_cxx_check_header_mongrel
2122
c823f118
DWT
2123# ac_fn_objcxx_try_link LINENO
2124# ----------------------------
2125# Try to link conftest.$ac_ext, and return whether this succeeded.
2126ac_fn_objcxx_try_link ()
2127{
2128 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2129 rm -f conftest.$ac_objext conftest$ac_exeext
2130 if { { ac_try="$ac_link"
2131case "(($ac_try" in
2132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2133 *) ac_try_echo=$ac_try;;
2134esac
2135eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2136$as_echo "$ac_try_echo"; } >&5
2137 (eval "$ac_link") 2>conftest.err
2138 ac_status=$?
2139 if test -s conftest.err; then
2140 grep -v '^ *+' conftest.err >conftest.er1
2141 cat conftest.er1 >&5
2142 mv -f conftest.er1 conftest.err
2143 fi
2144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2145 test $ac_status = 0; } && {
2146 test -z "$ac_objcxx_werror_flag" ||
2147 test ! -s conftest.err
2148 } && test -s conftest$ac_exeext && {
2149 test "$cross_compiling" = yes ||
53ba6704 2150 test -x conftest$ac_exeext
c823f118
DWT
2151 }; then :
2152 ac_retval=0
2153else
2154 $as_echo "$as_me: failed program was:" >&5
2155sed 's/^/| /' conftest.$ac_ext >&5
2156
2157 ac_retval=1
2158fi
2159 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2160 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2161 # interfere with the next link command; also delete a directory that is
2162 # left behind by Apple's compiler. We do this before executing the actions.
2163 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
ee134472 2164 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
c823f118
DWT
2165 as_fn_set_status $ac_retval
2166
2167} # ac_fn_objcxx_try_link
c7aa54aa
DWT
2168cat >config.log <<_ACEOF
2169This file contains any messages produced by compilers while
2170running configure, to aid debugging if configure makes a mistake.
2171
2172It was created by Cycript $as_me 0.9, which was
53ba6704 2173generated by GNU Autoconf 2.69. Invocation command line was
c7aa54aa
DWT
2174
2175 $ $0 $@
2176
2177_ACEOF
2178exec 5>>config.log
2179{
2180cat <<_ASUNAME
2181## --------- ##
2182## Platform. ##
2183## --------- ##
2184
2185hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2186uname -m = `(uname -m) 2>/dev/null || echo unknown`
2187uname -r = `(uname -r) 2>/dev/null || echo unknown`
2188uname -s = `(uname -s) 2>/dev/null || echo unknown`
2189uname -v = `(uname -v) 2>/dev/null || echo unknown`
2190
2191/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2192/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2193
2194/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2195/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2196/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2197/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2198/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2199/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2200/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2201
2202_ASUNAME
2203
2204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2205for as_dir in $PATH
2206do
2207 IFS=$as_save_IFS
2208 test -z "$as_dir" && as_dir=.
2209 $as_echo "PATH: $as_dir"
2210 done
2211IFS=$as_save_IFS
2212
2213} >&5
2214
2215cat >&5 <<_ACEOF
2216
2217
2218## ----------- ##
2219## Core tests. ##
2220## ----------- ##
2221
2222_ACEOF
2223
2224
2225# Keep a trace of the command line.
2226# Strip out --no-create and --no-recursion so they do not pile up.
2227# Strip out --silent because we don't want to record it for future runs.
2228# Also quote any args containing shell meta-characters.
2229# Make two passes to allow for proper duplicate-argument suppression.
2230ac_configure_args=
2231ac_configure_args0=
2232ac_configure_args1=
2233ac_must_keep_next=false
2234for ac_pass in 1 2
2235do
2236 for ac_arg
2237 do
2238 case $ac_arg in
2239 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2240 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2241 | -silent | --silent | --silen | --sile | --sil)
2242 continue ;;
2243 *\'*)
2244 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2245 esac
2246 case $ac_pass in
2247 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2248 2)
2249 as_fn_append ac_configure_args1 " '$ac_arg'"
2250 if test $ac_must_keep_next = true; then
2251 ac_must_keep_next=false # Got value, back to normal.
2252 else
2253 case $ac_arg in
2254 *=* | --config-cache | -C | -disable-* | --disable-* \
2255 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2256 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2257 | -with-* | --with-* | -without-* | --without-* | --x)
2258 case "$ac_configure_args0 " in
2259 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2260 esac
2261 ;;
2262 -* ) ac_must_keep_next=true ;;
2263 esac
2264 fi
2265 as_fn_append ac_configure_args " '$ac_arg'"
2266 ;;
2267 esac
2268 done
2269done
2270{ ac_configure_args0=; unset ac_configure_args0;}
2271{ ac_configure_args1=; unset ac_configure_args1;}
2272
2273# When interrupted or exit'd, cleanup temporary files, and complete
2274# config.log. We remove comments because anyway the quotes in there
2275# would cause problems or look ugly.
2276# WARNING: Use '\'' to represent an apostrophe within the trap.
2277# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2278trap 'exit_status=$?
2279 # Save into config.log some information that might help in debugging.
2280 {
2281 echo
2282
12833ad8 2283 $as_echo "## ---------------- ##
c7aa54aa 2284## Cache variables. ##
12833ad8 2285## ---------------- ##"
c7aa54aa
DWT
2286 echo
2287 # The following way of writing the cache mishandles newlines in values,
2288(
2289 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2290 eval ac_val=\$$ac_var
2291 case $ac_val in #(
2292 *${as_nl}*)
2293 case $ac_var in #(
2294 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2295$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2296 esac
2297 case $ac_var in #(
2298 _ | IFS | as_nl) ;; #(
2299 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2300 *) { eval $ac_var=; unset $ac_var;} ;;
2301 esac ;;
2302 esac
2303 done
2304 (set) 2>&1 |
2305 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2306 *${as_nl}ac_space=\ *)
2307 sed -n \
2308 "s/'\''/'\''\\\\'\'''\''/g;
2309 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2310 ;; #(
2311 *)
2312 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2313 ;;
2314 esac |
2315 sort
2316)
2317 echo
2318
12833ad8 2319 $as_echo "## ----------------- ##
c7aa54aa 2320## Output variables. ##
12833ad8 2321## ----------------- ##"
c7aa54aa
DWT
2322 echo
2323 for ac_var in $ac_subst_vars
2324 do
2325 eval ac_val=\$$ac_var
2326 case $ac_val in
2327 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2328 esac
2329 $as_echo "$ac_var='\''$ac_val'\''"
2330 done | sort
2331 echo
2332
2333 if test -n "$ac_subst_files"; then
12833ad8 2334 $as_echo "## ------------------- ##
c7aa54aa 2335## File substitutions. ##
12833ad8 2336## ------------------- ##"
c7aa54aa
DWT
2337 echo
2338 for ac_var in $ac_subst_files
2339 do
2340 eval ac_val=\$$ac_var
2341 case $ac_val in
2342 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2343 esac
2344 $as_echo "$ac_var='\''$ac_val'\''"
2345 done | sort
2346 echo
2347 fi
2348
2349 if test -s confdefs.h; then
12833ad8 2350 $as_echo "## ----------- ##
c7aa54aa 2351## confdefs.h. ##
12833ad8 2352## ----------- ##"
c7aa54aa
DWT
2353 echo
2354 cat confdefs.h
2355 echo
2356 fi
2357 test "$ac_signal" != 0 &&
2358 $as_echo "$as_me: caught signal $ac_signal"
2359 $as_echo "$as_me: exit $exit_status"
2360 } >&5
2361 rm -f core *.core core.conftest.* &&
2362 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2363 exit $exit_status
2364' 0
2365for ac_signal in 1 2 13 15; do
2366 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2367done
2368ac_signal=0
2369
2370# confdefs.h avoids OS command line length limits that DEFS can exceed.
2371rm -f -r conftest* confdefs.h
2372
2373$as_echo "/* confdefs.h */" > confdefs.h
2374
2375# Predefined preprocessor variables.
2376
2377cat >>confdefs.h <<_ACEOF
2378#define PACKAGE_NAME "$PACKAGE_NAME"
2379_ACEOF
2380
2381cat >>confdefs.h <<_ACEOF
2382#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2383_ACEOF
2384
2385cat >>confdefs.h <<_ACEOF
2386#define PACKAGE_VERSION "$PACKAGE_VERSION"
2387_ACEOF
2388
2389cat >>confdefs.h <<_ACEOF
2390#define PACKAGE_STRING "$PACKAGE_STRING"
2391_ACEOF
2392
2393cat >>confdefs.h <<_ACEOF
2394#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2395_ACEOF
2396
2397cat >>confdefs.h <<_ACEOF
2398#define PACKAGE_URL "$PACKAGE_URL"
2399_ACEOF
2400
2401
2402# Let the site file select an alternate cache file if it wants to.
2403# Prefer an explicitly selected file to automatically selected ones.
2404ac_site_file1=NONE
2405ac_site_file2=NONE
2406if test -n "$CONFIG_SITE"; then
12833ad8
JF
2407 # We do not want a PATH search for config.site.
2408 case $CONFIG_SITE in #((
2409 -*) ac_site_file1=./$CONFIG_SITE;;
2410 */*) ac_site_file1=$CONFIG_SITE;;
2411 *) ac_site_file1=./$CONFIG_SITE;;
2412 esac
c7aa54aa
DWT
2413elif test "x$prefix" != xNONE; then
2414 ac_site_file1=$prefix/share/config.site
2415 ac_site_file2=$prefix/etc/config.site
2416else
2417 ac_site_file1=$ac_default_prefix/share/config.site
2418 ac_site_file2=$ac_default_prefix/etc/config.site
2419fi
2420for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2421do
2422 test "x$ac_site_file" = xNONE && continue
9c60689e 2423 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
c7aa54aa
DWT
2424 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2425$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2426 sed 's/^/| /' "$ac_site_file" >&5
12833ad8
JF
2427 . "$ac_site_file" \
2428 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2429$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2430as_fn_error $? "failed to load site script $ac_site_file
ee134472 2431See \`config.log' for more details" "$LINENO" 5; }
c7aa54aa
DWT
2432 fi
2433done
2434
2435if test -r "$cache_file"; then
9c60689e
DWT
2436 # Some versions of bash will fail to source /dev/null (special files
2437 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2438 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
c7aa54aa
DWT
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2440$as_echo "$as_me: loading cache $cache_file" >&6;}
2441 case $cache_file in
2442 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2443 *) . "./$cache_file";;
2444 esac
2445 fi
2446else
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2448$as_echo "$as_me: creating cache $cache_file" >&6;}
2449 >$cache_file
2450fi
2451
2452# Check that the precious variables saved in the cache have kept the same
2453# value.
2454ac_cache_corrupted=false
2455for ac_var in $ac_precious_vars; do
2456 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2457 eval ac_new_set=\$ac_env_${ac_var}_set
2458 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2459 eval ac_new_val=\$ac_env_${ac_var}_value
2460 case $ac_old_set,$ac_new_set in
2461 set,)
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2463$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2464 ac_cache_corrupted=: ;;
2465 ,set)
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2467$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2468 ac_cache_corrupted=: ;;
2469 ,);;
2470 *)
2471 if test "x$ac_old_val" != "x$ac_new_val"; then
2472 # differences in whitespace do not lead to failure.
2473 ac_old_val_w=`echo x $ac_old_val`
2474 ac_new_val_w=`echo x $ac_new_val`
2475 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2477$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2478 ac_cache_corrupted=:
2479 else
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2481$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2482 eval $ac_var=\$ac_old_val
2483 fi
2484 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2485$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2487$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2488 fi;;
2489 esac
2490 # Pass precious variables to config.status.
2491 if test "$ac_new_set" = set; then
2492 case $ac_new_val in
2493 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2494 *) ac_arg=$ac_var=$ac_new_val ;;
2495 esac
2496 case " $ac_configure_args " in
2497 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2498 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2499 esac
2500 fi
2501done
2502if $ac_cache_corrupted; then
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2504$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2506$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
12833ad8 2507 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
c7aa54aa
DWT
2508fi
2509## -------------------- ##
2510## Main body of script. ##
2511## -------------------- ##
2512
2513ac_ext=c
2514ac_cpp='$CPP $CPPFLAGS'
2515ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2516ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2517ac_compiler_gnu=$ac_cv_c_compiler_gnu
2518
2519
66170b30
JF
2520
2521
35fa52c0 2522
6b66678a
DWT
2523ac_aux_dir=
2524for ac_dir in . "$srcdir"/.; do
12833ad8
JF
2525 if test -f "$ac_dir/install-sh"; then
2526 ac_aux_dir=$ac_dir
2527 ac_install_sh="$ac_aux_dir/install-sh -c"
2528 break
2529 elif test -f "$ac_dir/install.sh"; then
2530 ac_aux_dir=$ac_dir
2531 ac_install_sh="$ac_aux_dir/install.sh -c"
2532 break
2533 elif test -f "$ac_dir/shtool"; then
2534 ac_aux_dir=$ac_dir
2535 ac_install_sh="$ac_aux_dir/shtool install -c"
2536 break
2537 fi
6b66678a
DWT
2538done
2539if test -z "$ac_aux_dir"; then
12833ad8 2540 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
6b66678a
DWT
2541fi
2542
2543# These three variables are undocumented and unsupported,
2544# and are intended to be withdrawn in a future Autoconf release.
2545# They can cause serious problems if a builder's source tree is in a directory
2546# whose full name contains unusual characters.
2547ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2548ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2549ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2550
2551
9c60689e 2552
296ee9a6
JF
2553ac_config_headers="$ac_config_headers config.h"
2554
9c60689e 2555
66170b30 2556am__api_version='1.13'
9c60689e 2557
66170b30
JF
2558# Find a good install program. We prefer a C program (faster),
2559# so one script is as good as another. But avoid the broken or
2560# incompatible versions:
2561# SysV /etc/install, /usr/sbin/install
2562# SunOS /usr/etc/install
2563# IRIX /sbin/install
2564# AIX /bin/install
2565# AmigaOS /C/install, which installs bootblocks on floppy discs
2566# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2567# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2568# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2569# OS/2's system install, which has a completely different semantic
2570# ./install, which can be erroneously created by make from ./install.sh.
2571# Reject install programs that cannot install multiple files.
2572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2573$as_echo_n "checking for a BSD-compatible install... " >&6; }
2574if test -z "$INSTALL"; then
2575if ${ac_cv_path_install+:} false; then :
2576 $as_echo_n "(cached) " >&6
2577else
2578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2579for as_dir in $PATH
2580do
2581 IFS=$as_save_IFS
2582 test -z "$as_dir" && as_dir=.
2583 # Account for people who put trailing slashes in PATH elements.
2584case $as_dir/ in #((
2585 ./ | .// | /[cC]/* | \
2586 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2587 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2588 /usr/ucb/* ) ;;
2589 *)
2590 # OSF1 and SCO ODT 3.0 have their own names for install.
2591 # Don't use installbsd from OSF since it installs stuff as root
2592 # by default.
2593 for ac_prog in ginstall scoinst install; do
2594 for ac_exec_ext in '' $ac_executable_extensions; do
2595 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2596 if test $ac_prog = install &&
2597 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2598 # AIX install. It has an incompatible calling convention.
2599 :
2600 elif test $ac_prog = install &&
2601 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2602 # program-specific install script used by HP pwplus--don't use.
2603 :
2604 else
2605 rm -rf conftest.one conftest.two conftest.dir
2606 echo one > conftest.one
2607 echo two > conftest.two
2608 mkdir conftest.dir
2609 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2610 test -s conftest.one && test -s conftest.two &&
2611 test -s conftest.dir/conftest.one &&
2612 test -s conftest.dir/conftest.two
2613 then
2614 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2615 break 3
2616 fi
2617 fi
2618 fi
2619 done
2620 done
2621 ;;
2622esac
9c60689e 2623
66170b30
JF
2624 done
2625IFS=$as_save_IFS
9c60689e 2626
66170b30 2627rm -rf conftest.one conftest.two conftest.dir
9c60689e 2628
66170b30
JF
2629fi
2630 if test "${ac_cv_path_install+set}" = set; then
2631 INSTALL=$ac_cv_path_install
2632 else
2633 # As a last resort, use the slow shell script. Don't cache a
2634 # value for INSTALL within a source directory, because that will
2635 # break other packages using the cache if that directory is
2636 # removed, or if the value is a relative name.
2637 INSTALL=$ac_install_sh
2638 fi
2639fi
2640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2641$as_echo "$INSTALL" >&6; }
9c60689e 2642
66170b30
JF
2643# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2644# It thinks the first close brace ends the variable substitution.
2645test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9c60689e 2646
66170b30 2647test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
9c60689e 2648
66170b30 2649test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9c60689e 2650
66170b30
JF
2651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2652$as_echo_n "checking whether build environment is sane... " >&6; }
2653# Reject unsafe characters in $srcdir or the absolute working directory
2654# name. Accept space and tab only in the latter.
2655am_lf='
2656'
2657case `pwd` in
2658 *[\\\"\#\$\&\'\`$am_lf]*)
2659 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2660esac
2661case $srcdir in
2662 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2663 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2664esac
9c60689e 2665
66170b30
JF
2666# Do 'set' in a subshell so we don't clobber the current shell's
2667# arguments. Must try -L first in case configure is actually a
2668# symlink; some systems play weird games with the mod time of symlinks
2669# (eg FreeBSD returns the mod time of the symlink's containing
2670# directory).
2671if (
2672 am_has_slept=no
2673 for am_try in 1 2; do
2674 echo "timestamp, slept: $am_has_slept" > conftest.file
2675 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2676 if test "$*" = "X"; then
2677 # -L didn't work.
2678 set X `ls -t "$srcdir/configure" conftest.file`
2679 fi
2680 if test "$*" != "X $srcdir/configure conftest.file" \
2681 && test "$*" != "X conftest.file $srcdir/configure"; then
2682
2683 # If neither matched, then we have a broken ls. This can happen
2684 # if, for instance, CONFIG_SHELL is bash and it inherits a
2685 # broken ls alias from the environment. This has actually
2686 # happened. Such a system could not be considered "sane".
2687 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2688 alias in your environment" "$LINENO" 5
2689 fi
2690 if test "$2" = conftest.file || test $am_try -eq 2; then
2691 break
2692 fi
2693 # Just in case.
2694 sleep 1
2695 am_has_slept=yes
2696 done
2697 test "$2" = conftest.file
2698 )
2699then
2700 # Ok.
2701 :
2702else
2703 as_fn_error $? "newly created file is older than distributed files!
2704Check your system clock" "$LINENO" 5
2705fi
2706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2707$as_echo "yes" >&6; }
2708# If we didn't sleep, we still need to ensure time stamps of config.status and
2709# generated files are strictly newer.
2710am_sleep_pid=
2711if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2712 ( sleep 1 ) &
2713 am_sleep_pid=$!
2714fi
2715
2716rm -f conftest.file
2717
2718test "$program_prefix" != NONE &&
2719 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2720# Use a double $ so make ignores it.
2721test "$program_suffix" != NONE &&
2722 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2723# Double any \ or $.
2724# By default was `s,x,x', remove it if useless.
2725ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2726program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2727
2728# expand $ac_aux_dir to an absolute path
2729am_aux_dir=`cd $ac_aux_dir && pwd`
2730
2731if test x"${MISSING+set}" != xset; then
2732 case $am_aux_dir in
2733 *\ * | *\ *)
2734 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2735 *)
2736 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2737 esac
2738fi
2739# Use eval to expand $SHELL
2740if eval "$MISSING --is-lightweight"; then
2741 am_missing_run="$MISSING "
2742else
2743 am_missing_run=
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2745$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2746fi
9c60689e 2747
66170b30
JF
2748if test x"${install_sh}" != xset; then
2749 case $am_aux_dir in
2750 *\ * | *\ *)
2751 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2752 *)
2753 install_sh="\${SHELL} $am_aux_dir/install-sh"
2754 esac
2755fi
9c60689e 2756
66170b30
JF
2757# Installed binaries are usually stripped using 'strip' when the user
2758# run "make install-strip". However 'strip' might not be the right
2759# tool to use in cross-compilation environments, therefore Automake
2760# will honor the 'STRIP' environment variable to overrule this program.
2761if test "$cross_compiling" != no; then
2762 if test -n "$ac_tool_prefix"; then
2763 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2764set dummy ${ac_tool_prefix}strip; ac_word=$2
2765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2766$as_echo_n "checking for $ac_word... " >&6; }
2767if ${ac_cv_prog_STRIP+:} false; then :
2768 $as_echo_n "(cached) " >&6
2769else
2770 if test -n "$STRIP"; then
2771 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2772else
2773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2774for as_dir in $PATH
2775do
2776 IFS=$as_save_IFS
2777 test -z "$as_dir" && as_dir=.
2778 for ac_exec_ext in '' $ac_executable_extensions; do
2779 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2780 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2782 break 2
2783 fi
2784done
2785 done
2786IFS=$as_save_IFS
9c60689e 2787
66170b30
JF
2788fi
2789fi
2790STRIP=$ac_cv_prog_STRIP
2791if test -n "$STRIP"; then
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2793$as_echo "$STRIP" >&6; }
2794else
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2796$as_echo "no" >&6; }
2797fi
9c60689e 2798
9c60689e 2799
66170b30
JF
2800fi
2801if test -z "$ac_cv_prog_STRIP"; then
2802 ac_ct_STRIP=$STRIP
2803 # Extract the first word of "strip", so it can be a program name with args.
2804set dummy strip; ac_word=$2
2805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2806$as_echo_n "checking for $ac_word... " >&6; }
2807if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
9c60689e
DWT
2808 $as_echo_n "(cached) " >&6
2809else
66170b30
JF
2810 if test -n "$ac_ct_STRIP"; then
2811 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2812else
2813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2814for as_dir in $PATH
2815do
2816 IFS=$as_save_IFS
2817 test -z "$as_dir" && as_dir=.
2818 for ac_exec_ext in '' $ac_executable_extensions; do
2819 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2820 ac_cv_prog_ac_ct_STRIP="strip"
2821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2822 break 2
2823 fi
2824done
2825 done
2826IFS=$as_save_IFS
9c60689e
DWT
2827
2828fi
66170b30
JF
2829fi
2830ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2831if test -n "$ac_ct_STRIP"; then
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2833$as_echo "$ac_ct_STRIP" >&6; }
2834else
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2836$as_echo "no" >&6; }
2837fi
2838
2839 if test "x$ac_ct_STRIP" = x; then
2840 STRIP=":"
2841 else
2842 case $cross_compiling:$ac_tool_warned in
2843yes:)
2844{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2845$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2846ac_tool_warned=yes ;;
9c60689e 2847esac
66170b30
JF
2848 STRIP=$ac_ct_STRIP
2849 fi
2850else
2851 STRIP="$ac_cv_prog_STRIP"
2852fi
9c60689e 2853
66170b30
JF
2854fi
2855INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
9c60689e 2856
66170b30
JF
2857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2858$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2859if test -z "$MKDIR_P"; then
2860 if ${ac_cv_path_mkdir+:} false; then :
9c60689e
DWT
2861 $as_echo_n "(cached) " >&6
2862else
66170b30
JF
2863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2864for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2865do
2866 IFS=$as_save_IFS
2867 test -z "$as_dir" && as_dir=.
2868 for ac_prog in mkdir gmkdir; do
2869 for ac_exec_ext in '' $ac_executable_extensions; do
2870 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2871 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2872 'mkdir (GNU coreutils) '* | \
2873 'mkdir (coreutils) '* | \
2874 'mkdir (fileutils) '4.1*)
2875 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2876 break 3;;
2877 esac
2878 done
2879 done
2880 done
2881IFS=$as_save_IFS
2882
2883fi
2884
2885 test -d ./--version && rmdir ./--version
2886 if test "${ac_cv_path_mkdir+set}" = set; then
2887 MKDIR_P="$ac_cv_path_mkdir -p"
2888 else
2889 # As a last resort, use the slow shell script. Don't cache a
2890 # value for MKDIR_P within a source directory, because that will
2891 # break other packages using the cache if that directory is
2892 # removed, or if the value is a relative name.
2893 MKDIR_P="$ac_install_sh -d"
2894 fi
2895fi
2896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2897$as_echo "$MKDIR_P" >&6; }
2898
2899for ac_prog in gawk mawk nawk awk
2900do
2901 # Extract the first word of "$ac_prog", so it can be a program name with args.
2902set dummy $ac_prog; ac_word=$2
2903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2904$as_echo_n "checking for $ac_word... " >&6; }
2905if ${ac_cv_prog_AWK+:} false; then :
2906 $as_echo_n "(cached) " >&6
2907else
2908 if test -n "$AWK"; then
2909 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2910else
2911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2912for as_dir in $PATH
2913do
2914 IFS=$as_save_IFS
2915 test -z "$as_dir" && as_dir=.
2916 for ac_exec_ext in '' $ac_executable_extensions; do
2917 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2918 ac_cv_prog_AWK="$ac_prog"
2919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2920 break 2
2921 fi
2922done
2923 done
2924IFS=$as_save_IFS
2925
2926fi
2927fi
2928AWK=$ac_cv_prog_AWK
2929if test -n "$AWK"; then
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2931$as_echo "$AWK" >&6; }
2932else
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2934$as_echo "no" >&6; }
2935fi
2936
2937
2938 test -n "$AWK" && break
2939done
2940
2941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2942$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2943set x ${MAKE-make}
2944ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2945if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2946 $as_echo_n "(cached) " >&6
2947else
2948 cat >conftest.make <<\_ACEOF
2949SHELL = /bin/sh
2950all:
2951 @echo '@@@%%%=$(MAKE)=@@@%%%'
2952_ACEOF
2953# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2954case `${MAKE-make} -f conftest.make 2>/dev/null` in
2955 *@@@%%%=?*=@@@%%%*)
2956 eval ac_cv_prog_make_${ac_make}_set=yes;;
2957 *)
2958 eval ac_cv_prog_make_${ac_make}_set=no;;
2959esac
2960rm -f conftest.make
2961fi
2962if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2964$as_echo "yes" >&6; }
2965 SET_MAKE=
2966else
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2968$as_echo "no" >&6; }
2969 SET_MAKE="MAKE=${MAKE-make}"
2970fi
2971
2972rm -rf .tst 2>/dev/null
2973mkdir .tst 2>/dev/null
2974if test -d .tst; then
2975 am__leading_dot=.
2976else
2977 am__leading_dot=_
2978fi
2979rmdir .tst 2>/dev/null
2980
2981# Check whether --enable-silent-rules was given.
2982if test "${enable_silent_rules+set}" = set; then :
2983 enableval=$enable_silent_rules;
2984fi
2985
2986case $enable_silent_rules in # (((
2987 yes) AM_DEFAULT_VERBOSITY=0;;
2988 no) AM_DEFAULT_VERBOSITY=1;;
2989 *) AM_DEFAULT_VERBOSITY=1;;
2990esac
2991am_make=${MAKE-make}
2992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2993$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2994if ${am_cv_make_support_nested_variables+:} false; then :
2995 $as_echo_n "(cached) " >&6
2996else
2997 if $as_echo 'TRUE=$(BAR$(V))
2998BAR0=false
2999BAR1=true
3000V=1
3001am__doit:
3002 @$(TRUE)
3003.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3004 am_cv_make_support_nested_variables=yes
3005else
3006 am_cv_make_support_nested_variables=no
3007fi
3008fi
3009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3010$as_echo "$am_cv_make_support_nested_variables" >&6; }
3011if test $am_cv_make_support_nested_variables = yes; then
3012 AM_V='$(V)'
3013 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3014else
3015 AM_V=$AM_DEFAULT_VERBOSITY
3016 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3017fi
3018AM_BACKSLASH='\'
3019
3020if test "`cd $srcdir && pwd`" != "`pwd`"; then
3021 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3022 # is not polluted with repeated "-I."
3023 am__isrc=' -I$(srcdir)'
3024 # test to see if srcdir already configured
3025 if test -f $srcdir/config.status; then
3026 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3027 fi
3028fi
3029
3030# test whether we have cygpath
3031if test -z "$CYGPATH_W"; then
3032 if (cygpath --version) >/dev/null 2>/dev/null; then
3033 CYGPATH_W='cygpath -w'
3034 else
3035 CYGPATH_W=echo
3036 fi
3037fi
3038
3039
3040# Define the identity of the package.
3041 PACKAGE='cycript'
3042 VERSION='0.9'
3043
3044
3045cat >>confdefs.h <<_ACEOF
3046#define PACKAGE "$PACKAGE"
3047_ACEOF
3048
3049
3050cat >>confdefs.h <<_ACEOF
3051#define VERSION "$VERSION"
3052_ACEOF
3053
3054# Some tools Automake needs.
3055
3056ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3057
3058
3059AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3060
3061
3062AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3063
3064
3065AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3066
3067
3068MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3069
3070# For better backward compatibility. To be removed once Automake 1.9.x
3071# dies out for good. For more background, see:
3072# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3073# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3074mkdir_p='$(MKDIR_P)'
3075
3076# We need awk for the "check" target. The system "awk" is bad on
3077# some platforms.
3078# Always define AMTAR for backward compatibility. Yes, it's still used
3079# in the wild :-( We should find a proper way to deprecate it ...
3080AMTAR='$${TAR-tar}'
3081
3082am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3083
3084
3085
3086
3087
66170b30 3088
a243b558
JF
3089ac_ext=cpp
3090ac_cpp='$CXXCPP $CPPFLAGS'
3091ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3092ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3093ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3094if test -z "$CXX"; then
3095 if test -n "$CCC"; then
3096 CXX=$CCC
3097 else
3098 if test -n "$ac_tool_prefix"; then
3099 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3100 do
3101 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3102set dummy $ac_tool_prefix$ac_prog; ac_word=$2
dbadc56a
DWT
3103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3104$as_echo_n "checking for $ac_word... " >&6; }
a243b558 3105if ${ac_cv_prog_CXX+:} false; then :
dbadc56a
DWT
3106 $as_echo_n "(cached) " >&6
3107else
a243b558
JF
3108 if test -n "$CXX"; then
3109 ac_cv_prog_CXX="$CXX" # Let the user override the test.
dbadc56a
DWT
3110else
3111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3112for as_dir in $PATH
3113do
3114 IFS=$as_save_IFS
3115 test -z "$as_dir" && as_dir=.
3116 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 3117 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 3118 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
dbadc56a
DWT
3119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3120 break 2
3121 fi
3122done
3123 done
3124IFS=$as_save_IFS
3125
3126fi
3127fi
a243b558
JF
3128CXX=$ac_cv_prog_CXX
3129if test -n "$CXX"; then
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3131$as_echo "$CXX" >&6; }
35fa52c0
DWT
3132else
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3134$as_echo "no" >&6; }
3135fi
3136
3137
a243b558 3138 test -n "$CXX" && break
35fa52c0
DWT
3139 done
3140fi
a243b558
JF
3141if test -z "$CXX"; then
3142 ac_ct_CXX=$CXX
3143 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
35fa52c0
DWT
3144do
3145 # Extract the first word of "$ac_prog", so it can be a program name with args.
3146set dummy $ac_prog; ac_word=$2
3147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3148$as_echo_n "checking for $ac_word... " >&6; }
a243b558 3149if ${ac_cv_prog_ac_ct_CXX+:} false; then :
35fa52c0
DWT
3150 $as_echo_n "(cached) " >&6
3151else
a243b558
JF
3152 if test -n "$ac_ct_CXX"; then
3153 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
35fa52c0
DWT
3154else
3155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3156for as_dir in $PATH
3157do
3158 IFS=$as_save_IFS
3159 test -z "$as_dir" && as_dir=.
3160 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 3161 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 3162 ac_cv_prog_ac_ct_CXX="$ac_prog"
35fa52c0
DWT
3163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3164 break 2
3165 fi
3166done
3167 done
3168IFS=$as_save_IFS
3169
3170fi
3171fi
a243b558
JF
3172ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3173if test -n "$ac_ct_CXX"; then
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3175$as_echo "$ac_ct_CXX" >&6; }
35fa52c0
DWT
3176else
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3178$as_echo "no" >&6; }
3179fi
3180
3181
a243b558 3182 test -n "$ac_ct_CXX" && break
35fa52c0
DWT
3183done
3184
a243b558
JF
3185 if test "x$ac_ct_CXX" = x; then
3186 CXX="g++"
35fa52c0
DWT
3187 else
3188 case $cross_compiling:$ac_tool_warned in
3189yes:)
3190{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3191$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3192ac_tool_warned=yes ;;
3193esac
a243b558 3194 CXX=$ac_ct_CXX
35fa52c0
DWT
3195 fi
3196fi
3197
a243b558 3198 fi
35fa52c0 3199fi
35fa52c0 3200# Provide some information about the compiler.
a243b558 3201$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
35fa52c0
DWT
3202set X $ac_compile
3203ac_compiler=$2
3204for ac_option in --version -v -V -qversion; do
3205 { { ac_try="$ac_compiler $ac_option >&5"
3206case "(($ac_try" in
3207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3208 *) ac_try_echo=$ac_try;;
3209esac
3210eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3211$as_echo "$ac_try_echo"; } >&5
3212 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3213 ac_status=$?
3214 if test -s conftest.err; then
3215 sed '10a\
3216... rest of stderr output deleted ...
3217 10q' conftest.err >conftest.er1
3218 cat conftest.er1 >&5
35fa52c0 3219 fi
9c60689e 3220 rm -f conftest.er1 conftest.err
35fa52c0
DWT
3221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3222 test $ac_status = 0; }
3223done
3224
3225cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3226/* end confdefs.h. */
9c60689e 3227
35fa52c0
DWT
3228int
3229main ()
3230{
35fa52c0
DWT
3231
3232 ;
3233 return 0;
3234}
3235_ACEOF
3236ac_clean_files_save=$ac_clean_files
9c60689e 3237ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
35fa52c0
DWT
3238# Try to create an executable without -o first, disregard a.out.
3239# It will help us diagnose broken compilers, and finding out an intuition
3240# of exeext.
a243b558
JF
3241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3242$as_echo_n "checking whether the C++ compiler works... " >&6; }
35fa52c0
DWT
3243ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3244
3245# The possible output files:
3246ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3247
3248ac_rmfiles=
3249for ac_file in $ac_files
3250do
3251 case $ac_file in
3252 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3253 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3254 esac
3255done
3256rm -f $ac_rmfiles
3257
3258if { { ac_try="$ac_link_default"
3259case "(($ac_try" in
3260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3261 *) ac_try_echo=$ac_try;;
3262esac
3263eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3264$as_echo "$ac_try_echo"; } >&5
3265 (eval "$ac_link_default") 2>&5
3266 ac_status=$?
3267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3268 test $ac_status = 0; }; then :
3269 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3270# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3271# in a Makefile. We should not override ac_cv_exeext if it was cached,
3272# so that the user can short-circuit this test for compilers unknown to
3273# Autoconf.
3274for ac_file in $ac_files ''
3275do
3276 test -f "$ac_file" || continue
3277 case $ac_file in
3278 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3279 ;;
3280 [ab].out )
3281 # We found the default executable, but exeext='' is most
3282 # certainly right.
3283 break;;
3284 *.* )
3285 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3286 then :; else
3287 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3288 fi
3289 # We set ac_cv_exeext here because the later test for it is not
3290 # safe: cross compilers may not add the suffix if given an `-o'
3291 # argument, so we may need to know it at that point already.
3292 # Even if this section looks crufty: it has the advantage of
3293 # actually working.
3294 break;;
3295 * )
3296 break;;
3297 esac
3298done
3299test "$ac_cv_exeext" = no && ac_cv_exeext=
3300
3301else
3302 ac_file=''
3303fi
35fa52c0 3304if test -z "$ac_file"; then :
9c60689e
DWT
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3306$as_echo "no" >&6; }
3307$as_echo "$as_me: failed program was:" >&5
35fa52c0
DWT
3308sed 's/^/| /' conftest.$ac_ext >&5
3309
3310{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3311$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
a243b558 3312as_fn_error 77 "C++ compiler cannot create executables
ee134472 3313See \`config.log' for more details" "$LINENO" 5; }
9c60689e
DWT
3314else
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3316$as_echo "yes" >&6; }
35fa52c0 3317fi
a243b558
JF
3318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3319$as_echo_n "checking for C++ compiler default output file name... " >&6; }
9c60689e
DWT
3320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3321$as_echo "$ac_file" >&6; }
35fa52c0
DWT
3322ac_exeext=$ac_cv_exeext
3323
9c60689e 3324rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
35fa52c0 3325ac_clean_files=$ac_clean_files_save
35fa52c0
DWT
3326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3327$as_echo_n "checking for suffix of executables... " >&6; }
3328if { { ac_try="$ac_link"
3329case "(($ac_try" in
3330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3331 *) ac_try_echo=$ac_try;;
3332esac
3333eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3334$as_echo "$ac_try_echo"; } >&5
3335 (eval "$ac_link") 2>&5
3336 ac_status=$?
3337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3338 test $ac_status = 0; }; then :
3339 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3340# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3341# work properly (i.e., refer to `conftest.exe'), while it won't with
3342# `rm'.
3343for ac_file in conftest.exe conftest conftest.*; do
3344 test -f "$ac_file" || continue
3345 case $ac_file in
3346 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3347 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3348 break;;
3349 * ) break;;
3350 esac
3351done
3352else
3353 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3354$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12833ad8 3355as_fn_error $? "cannot compute suffix of executables: cannot compile and link
ee134472 3356See \`config.log' for more details" "$LINENO" 5; }
35fa52c0 3357fi
9c60689e 3358rm -f conftest conftest$ac_cv_exeext
35fa52c0
DWT
3359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3360$as_echo "$ac_cv_exeext" >&6; }
3361
3362rm -f conftest.$ac_ext
3363EXEEXT=$ac_cv_exeext
3364ac_exeext=$EXEEXT
9c60689e
DWT
3365cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3366/* end confdefs.h. */
3367#include <stdio.h>
3368int
3369main ()
3370{
3371FILE *f = fopen ("conftest.out", "w");
3372 return ferror (f) || fclose (f) != 0;
3373
3374 ;
3375 return 0;
3376}
3377_ACEOF
3378ac_clean_files="$ac_clean_files conftest.out"
3379# Check that the compiler produces executables we can run. If not, either
3380# the compiler is broken, or we cross compile.
3381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3382$as_echo_n "checking whether we are cross compiling... " >&6; }
3383if test "$cross_compiling" != yes; then
3384 { { ac_try="$ac_link"
3385case "(($ac_try" in
3386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3387 *) ac_try_echo=$ac_try;;
3388esac
3389eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3390$as_echo "$ac_try_echo"; } >&5
3391 (eval "$ac_link") 2>&5
3392 ac_status=$?
3393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3394 test $ac_status = 0; }
3395 if { ac_try='./conftest$ac_cv_exeext'
3396 { { case "(($ac_try" in
3397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3398 *) ac_try_echo=$ac_try;;
3399esac
3400eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3401$as_echo "$ac_try_echo"; } >&5
3402 (eval "$ac_try") 2>&5
3403 ac_status=$?
3404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3405 test $ac_status = 0; }; }; then
3406 cross_compiling=no
3407 else
3408 if test "$cross_compiling" = maybe; then
3409 cross_compiling=yes
3410 else
3411 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3412$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
a243b558 3413as_fn_error $? "cannot run C++ compiled programs.
9c60689e 3414If you meant to cross compile, use \`--host'.
ee134472 3415See \`config.log' for more details" "$LINENO" 5; }
9c60689e
DWT
3416 fi
3417 fi
3418fi
3419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3420$as_echo "$cross_compiling" >&6; }
3421
3422rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3423ac_clean_files=$ac_clean_files_save
35fa52c0
DWT
3424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3425$as_echo_n "checking for suffix of object files... " >&6; }
ee134472 3426if ${ac_cv_objext+:} false; then :
35fa52c0
DWT
3427 $as_echo_n "(cached) " >&6
3428else
3429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3430/* end confdefs.h. */
3431
3432int
3433main ()
3434{
3435
3436 ;
3437 return 0;
3438}
3439_ACEOF
3440rm -f conftest.o conftest.obj
3441if { { ac_try="$ac_compile"
3442case "(($ac_try" in
3443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3444 *) ac_try_echo=$ac_try;;
3445esac
3446eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3447$as_echo "$ac_try_echo"; } >&5
3448 (eval "$ac_compile") 2>&5
3449 ac_status=$?
3450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3451 test $ac_status = 0; }; then :
3452 for ac_file in conftest.o conftest.obj conftest.*; do
3453 test -f "$ac_file" || continue;
3454 case $ac_file in
3455 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3456 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3457 break;;
3458 esac
3459done
3460else
3461 $as_echo "$as_me: failed program was:" >&5
3462sed 's/^/| /' conftest.$ac_ext >&5
3463
3464{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3465$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12833ad8 3466as_fn_error $? "cannot compute suffix of object files: cannot compile
ee134472 3467See \`config.log' for more details" "$LINENO" 5; }
35fa52c0
DWT
3468fi
3469rm -f conftest.$ac_cv_objext conftest.$ac_ext
3470fi
3471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3472$as_echo "$ac_cv_objext" >&6; }
3473OBJEXT=$ac_cv_objext
3474ac_objext=$OBJEXT
a243b558
JF
3475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3476$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3477if ${ac_cv_cxx_compiler_gnu+:} false; then :
35fa52c0
DWT
3478 $as_echo_n "(cached) " >&6
3479else
3480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3481/* end confdefs.h. */
3482
3483int
3484main ()
3485{
3486#ifndef __GNUC__
3487 choke me
3488#endif
3489
3490 ;
3491 return 0;
3492}
3493_ACEOF
a243b558 3494if ac_fn_cxx_try_compile "$LINENO"; then :
35fa52c0
DWT
3495 ac_compiler_gnu=yes
3496else
3497 ac_compiler_gnu=no
3498fi
3499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a243b558 3500ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
35fa52c0
DWT
3501
3502fi
a243b558
JF
3503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3504$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
35fa52c0 3505if test $ac_compiler_gnu = yes; then
a243b558 3506 GXX=yes
35fa52c0 3507else
a243b558 3508 GXX=
35fa52c0 3509fi
a243b558
JF
3510ac_test_CXXFLAGS=${CXXFLAGS+set}
3511ac_save_CXXFLAGS=$CXXFLAGS
3512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3513$as_echo_n "checking whether $CXX accepts -g... " >&6; }
3514if ${ac_cv_prog_cxx_g+:} false; then :
35fa52c0
DWT
3515 $as_echo_n "(cached) " >&6
3516else
a243b558
JF
3517 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3518 ac_cxx_werror_flag=yes
3519 ac_cv_prog_cxx_g=no
3520 CXXFLAGS="-g"
35fa52c0
DWT
3521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3522/* end confdefs.h. */
3523
3524int
3525main ()
3526{
3527
3528 ;
3529 return 0;
3530}
3531_ACEOF
a243b558
JF
3532if ac_fn_cxx_try_compile "$LINENO"; then :
3533 ac_cv_prog_cxx_g=yes
35fa52c0 3534else
a243b558 3535 CXXFLAGS=""
35fa52c0
DWT
3536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3537/* end confdefs.h. */
3538
3539int
3540main ()
3541{
3542
3543 ;
3544 return 0;
3545}
3546_ACEOF
a243b558 3547if ac_fn_cxx_try_compile "$LINENO"; then :
35fa52c0
DWT
3548
3549else
a243b558
JF
3550 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3551 CXXFLAGS="-g"
35fa52c0
DWT
3552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3553/* end confdefs.h. */
3554
3555int
3556main ()
3557{
3558
3559 ;
3560 return 0;
3561}
3562_ACEOF
a243b558
JF
3563if ac_fn_cxx_try_compile "$LINENO"; then :
3564 ac_cv_prog_cxx_g=yes
35fa52c0
DWT
3565fi
3566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3567fi
3568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3569fi
3570rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a243b558 3571 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
35fa52c0 3572fi
a243b558
JF
3573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3574$as_echo "$ac_cv_prog_cxx_g" >&6; }
3575if test "$ac_test_CXXFLAGS" = set; then
3576 CXXFLAGS=$ac_save_CXXFLAGS
3577elif test $ac_cv_prog_cxx_g = yes; then
3578 if test "$GXX" = yes; then
3579 CXXFLAGS="-g -O2"
35fa52c0 3580 else
a243b558 3581 CXXFLAGS="-g"
35fa52c0
DWT
3582 fi
3583else
a243b558
JF
3584 if test "$GXX" = yes; then
3585 CXXFLAGS="-O2"
35fa52c0 3586 else
a243b558 3587 CXXFLAGS=
35fa52c0
DWT
3588 fi
3589fi
a243b558
JF
3590ac_ext=c
3591ac_cpp='$CPP $CPPFLAGS'
3592ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3593ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3594ac_compiler_gnu=$ac_cv_c_compiler_gnu
3595DEPDIR="${am__leading_dot}deps"
35fa52c0 3596
a243b558 3597ac_config_commands="$ac_config_commands depfiles"
35fa52c0 3598
35fa52c0 3599
a243b558
JF
3600am_make=${MAKE-make}
3601cat > confinc << 'END'
3602am__doit:
3603 @echo this is the am__doit target
3604.PHONY: am__doit
3605END
3606# If we don't find an include directive, just comment out the code.
3607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3608$as_echo_n "checking for style of include used by $am_make... " >&6; }
3609am__include="#"
3610am__quote=
3611_am_result=none
3612# First try GNU make style include.
3613echo "include confinc" > confmf
3614# Ignore all kinds of additional output from 'make'.
3615case `$am_make -s -f confmf 2> /dev/null` in #(
3616*the\ am__doit\ target*)
3617 am__include=include
3618 am__quote=
3619 _am_result=GNU
3620 ;;
3621esac
3622# Now try BSD make style include.
3623if test "$am__include" = "#"; then
3624 echo '.include "confinc"' > confmf
3625 case `$am_make -s -f confmf 2> /dev/null` in #(
3626 *the\ am__doit\ target*)
3627 am__include=.include
3628 am__quote="\""
3629 _am_result=BSD
3630 ;;
3631 esac
35fa52c0 3632fi
35fa52c0 3633
a243b558
JF
3634
3635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3636$as_echo "$_am_result" >&6; }
3637rm -f confinc confmf
3638
3639# Check whether --enable-dependency-tracking was given.
3640if test "${enable_dependency_tracking+set}" = set; then :
3641 enableval=$enable_dependency_tracking;
35fa52c0 3642fi
35fa52c0 3643
a243b558
JF
3644if test "x$enable_dependency_tracking" != xno; then
3645 am_depcomp="$ac_aux_dir/depcomp"
3646 AMDEPBACKSLASH='\'
3647 am__nodep='_no'
3648fi
3649 if test "x$enable_dependency_tracking" != xno; then
3650 AMDEP_TRUE=
3651 AMDEP_FALSE='#'
3652else
3653 AMDEP_TRUE='#'
3654 AMDEP_FALSE=
35fa52c0
DWT
3655fi
3656
35fa52c0 3657
a243b558
JF
3658
3659depcc="$CXX" am_compiler_list=
66170b30
JF
3660
3661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3662$as_echo_n "checking dependency style of $depcc... " >&6; }
a243b558 3663if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
66170b30
JF
3664 $as_echo_n "(cached) " >&6
3665else
3666 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3667 # We make a subdir and do the tests there. Otherwise we can end up
3668 # making bogus files that we don't know about and never remove. For
3669 # instance it was reported that on HP-UX the gcc test will end up
3670 # making a dummy file named 'D' -- because '-MD' means "put the output
3671 # in D".
3672 rm -rf conftest.dir
3673 mkdir conftest.dir
3674 # Copy depcomp to subdir because otherwise we won't find it if we're
3675 # using a relative directory.
3676 cp "$am_depcomp" conftest.dir
3677 cd conftest.dir
3678 # We will build objects and dependencies in a subdirectory because
3679 # it helps to detect inapplicable dependency modes. For instance
3680 # both Tru64's cc and ICC support -MD to output dependencies as a
3681 # side effect of compilation, but ICC will put the dependencies in
3682 # the current directory while Tru64 will put them in the object
3683 # directory.
3684 mkdir sub
3685
a243b558 3686 am_cv_CXX_dependencies_compiler_type=none
66170b30
JF
3687 if test "$am_compiler_list" = ""; then
3688 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3689 fi
3690 am__universal=false
3691 case " $depcc " in #(
3692 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3693 esac
3694
3695 for depmode in $am_compiler_list; do
3696 # Setup a source with many dependencies, because some compilers
3697 # like to wrap large dependency lists on column 80 (with \), and
3698 # we should not choose a depcomp mode which is confused by this.
3699 #
3700 # We need to recreate these files for each test, as the compiler may
3701 # overwrite some of them when testing with obscure command lines.
3702 # This happens at least with the AIX C compiler.
3703 : > sub/conftest.c
3704 for i in 1 2 3 4 5 6; do
3705 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3706 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3707 # Solaris 10 /bin/sh.
3708 echo '/* dummy */' > sub/conftst$i.h
3709 done
3710 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3711
3712 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3713 # mode. It turns out that the SunPro C++ compiler does not properly
3714 # handle '-M -o', and we need to detect this. Also, some Intel
3715 # versions had trouble with output in subdirs.
3716 am__obj=sub/conftest.${OBJEXT-o}
3717 am__minus_obj="-o $am__obj"
3718 case $depmode in
3719 gcc)
3720 # This depmode causes a compiler race in universal mode.
3721 test "$am__universal" = false || continue
3722 ;;
3723 nosideeffect)
3724 # After this tag, mechanisms are not by side-effect, so they'll
3725 # only be used when explicitly requested.
3726 if test "x$enable_dependency_tracking" = xyes; then
3727 continue
3728 else
3729 break
3730 fi
3731 ;;
3732 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3733 # This compiler won't grok '-c -o', but also, the minuso test has
3734 # not run yet. These depmodes are late enough in the game, and
3735 # so weak that their functioning should not be impacted.
3736 am__obj=conftest.${OBJEXT-o}
3737 am__minus_obj=
3738 ;;
3739 none) break ;;
3740 esac
3741 if depmode=$depmode \
3742 source=sub/conftest.c object=$am__obj \
3743 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3744 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3745 >/dev/null 2>conftest.err &&
3746 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3747 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3748 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3749 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3750 # icc doesn't choke on unknown options, it will just issue warnings
3751 # or remarks (even with -Werror). So we grep stderr for any message
3752 # that says an option was ignored or not supported.
3753 # When given -MP, icc 7.0 and 7.1 complain thusly:
3754 # icc: Command line warning: ignoring option '-M'; no argument required
3755 # The diagnosis changed in icc 8.0:
3756 # icc: Command line remark: option '-MP' not supported
3757 if (grep 'ignoring option' conftest.err ||
3758 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
a243b558 3759 am_cv_CXX_dependencies_compiler_type=$depmode
66170b30
JF
3760 break
3761 fi
3762 fi
3763 done
3764
3765 cd ..
3766 rm -rf conftest.dir
3767else
a243b558 3768 am_cv_CXX_dependencies_compiler_type=none
66170b30
JF
3769fi
3770
3771fi
a243b558
JF
3772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
3773$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
3774CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
66170b30
JF
3775
3776 if
3777 test "x$enable_dependency_tracking" != xno \
a243b558
JF
3778 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3779 am__fastdepCXX_TRUE=
3780 am__fastdepCXX_FALSE='#'
66170b30 3781else
a243b558
JF
3782 am__fastdepCXX_TRUE='#'
3783 am__fastdepCXX_FALSE=
66170b30
JF
3784fi
3785
3786
a243b558
JF
3787ac_ext=mm
3788ac_cpp='$OBJCXXCPP $CPPFLAGS'
3789ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3790ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3791ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
3792if test -n "$ac_tool_prefix"; then
3793 for ac_prog in g++ objc++ objcxx c++ CXX
3794 do
3795 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3796set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3798$as_echo_n "checking for $ac_word... " >&6; }
3799if ${ac_cv_prog_OBJCXX+:} false; then :
35fa52c0
DWT
3800 $as_echo_n "(cached) " >&6
3801else
a243b558
JF
3802 if test -n "$OBJCXX"; then
3803 ac_cv_prog_OBJCXX="$OBJCXX" # Let the user override the test.
3804else
3805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3806for as_dir in $PATH
3807do
35fa52c0
DWT
3808 IFS=$as_save_IFS
3809 test -z "$as_dir" && as_dir=.
3810 for ac_exec_ext in '' $ac_executable_extensions; do
a243b558
JF
3811 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3812 ac_cv_prog_OBJCXX="$ac_tool_prefix$ac_prog"
3813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3814 break 2
3815 fi
3816done
9c60689e
DWT
3817 done
3818IFS=$as_save_IFS
35fa52c0 3819
9c60689e 3820fi
a243b558
JF
3821fi
3822OBJCXX=$ac_cv_prog_OBJCXX
3823if test -n "$OBJCXX"; then
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCXX" >&5
3825$as_echo "$OBJCXX" >&6; }
3826else
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3828$as_echo "no" >&6; }
3829fi
35fa52c0 3830
35fa52c0 3831
a243b558
JF
3832 test -n "$OBJCXX" && break
3833 done
3834fi
3835if test -z "$OBJCXX"; then
3836 ac_ct_OBJCXX=$OBJCXX
3837 for ac_prog in g++ objc++ objcxx c++ CXX
3838do
3839 # Extract the first word of "$ac_prog", so it can be a program name with args.
3840set dummy $ac_prog; ac_word=$2
3841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3842$as_echo_n "checking for $ac_word... " >&6; }
3843if ${ac_cv_prog_ac_ct_OBJCXX+:} false; then :
9c60689e
DWT
3844 $as_echo_n "(cached) " >&6
3845else
a243b558
JF
3846 if test -n "$ac_ct_OBJCXX"; then
3847 ac_cv_prog_ac_ct_OBJCXX="$ac_ct_OBJCXX" # Let the user override the test.
3848else
3849as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3850for as_dir in $PATH
9c60689e
DWT
3851do
3852 IFS=$as_save_IFS
3853 test -z "$as_dir" && as_dir=.
9c60689e 3854 for ac_exec_ext in '' $ac_executable_extensions; do
a243b558
JF
3855 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3856 ac_cv_prog_ac_ct_OBJCXX="$ac_prog"
3857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3858 break 2
3859 fi
3860done
9c60689e
DWT
3861 done
3862IFS=$as_save_IFS
a243b558
JF
3863
3864fi
3865fi
3866ac_ct_OBJCXX=$ac_cv_prog_ac_ct_OBJCXX
3867if test -n "$ac_ct_OBJCXX"; then
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCXX" >&5
3869$as_echo "$ac_ct_OBJCXX" >&6; }
9c60689e 3870else
a243b558
JF
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3872$as_echo "no" >&6; }
9c60689e 3873fi
6b66678a
DWT
3874
3875
a243b558
JF
3876 test -n "$ac_ct_OBJCXX" && break
3877done
6b66678a 3878
a243b558
JF
3879 if test "x$ac_ct_OBJCXX" = x; then
3880 OBJCXX="g++"
3881 else
3882 case $cross_compiling:$ac_tool_warned in
3883yes:)
3884{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3885$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3886ac_tool_warned=yes ;;
9c60689e 3887esac
a243b558 3888 OBJCXX=$ac_ct_OBJCXX
9c60689e 3889 fi
9c60689e 3890fi
6b66678a 3891
a243b558
JF
3892# Provide some information about the compiler.
3893$as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C++ compiler version" >&5
3894set X $ac_compile
3895ac_compiler=$2
3896for ac_option in --version -v -V -qversion; do
3897 { { ac_try="$ac_compiler $ac_option >&5"
3898case "(($ac_try" in
3899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3900 *) ac_try_echo=$ac_try;;
3901esac
3902eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3903$as_echo "$ac_try_echo"; } >&5
3904 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3905 ac_status=$?
3906 if test -s conftest.err; then
3907 sed '10a\
3908... rest of stderr output deleted ...
3909 10q' conftest.err >conftest.er1
3910 cat conftest.er1 >&5
3911 fi
3912 rm -f conftest.er1 conftest.err
3913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3914 test $ac_status = 0; }
3915done
6b66678a 3916
a243b558
JF
3917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C++ compiler" >&5
3918$as_echo_n "checking whether we are using the GNU Objective C++ compiler... " >&6; }
3919if ${ac_cv_objcxx_compiler_gnu+:} false; then :
9c60689e 3920 $as_echo_n "(cached) " >&6
6b66678a 3921else
a243b558
JF
3922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3923/* end confdefs.h. */
6b66678a 3924
a243b558
JF
3925int
3926main ()
3927{
3928#ifndef __GNUC__
3929 choke me
3930#endif
3931
3932 ;
3933 return 0;
3934}
3935_ACEOF
3936if ac_fn_objcxx_try_compile "$LINENO"; then :
3937 ac_compiler_gnu=yes
9c60689e 3938else
a243b558 3939 ac_compiler_gnu=no
6b66678a 3940fi
a243b558
JF
3941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3942ac_cv_objcxx_compiler_gnu=$ac_compiler_gnu
6b66678a
DWT
3943
3944fi
a243b558
JF
3945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objcxx_compiler_gnu" >&5
3946$as_echo "$ac_cv_objcxx_compiler_gnu" >&6; }
3947if test $ac_compiler_gnu = yes; then
3948 GOBJCXX=yes
3949else
3950 GOBJCXX=
3951fi
3952ac_test_OBJCXXFLAGS=${OBJCXXFLAGS+set}
3953ac_save_OBJCXXFLAGS=$OBJCXXFLAGS
3954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJCXX accepts -g" >&5
3955$as_echo_n "checking whether $OBJCXX accepts -g... " >&6; }
3956if ${ac_cv_prog_objcxx_g+:} false; then :
3957 $as_echo_n "(cached) " >&6
3958else
3959 ac_save_objcxx_werror_flag=$ac_objcxx_werror_flag
3960 ac_objcxx_werror_flag=yes
3961 ac_cv_prog_objcxx_g=no
3962 OBJCXXFLAGS="-g"
3963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3964/* end confdefs.h. */
309b0535 3965
a243b558
JF
3966int
3967main ()
3968{
309b0535 3969
a243b558
JF
3970 ;
3971 return 0;
3972}
3973_ACEOF
3974if ac_fn_objcxx_try_compile "$LINENO"; then :
3975 ac_cv_prog_objcxx_g=yes
3976else
3977 OBJCXXFLAGS=""
3978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3979/* end confdefs.h. */
309b0535 3980
a243b558
JF
3981int
3982main ()
3983{
309b0535 3984
a243b558
JF
3985 ;
3986 return 0;
3987}
3988_ACEOF
3989if ac_fn_objcxx_try_compile "$LINENO"; then :
309b0535 3990
a243b558
JF
3991else
3992 ac_objcxx_werror_flag=$ac_save_objcxx_werror_flag
3993 OBJCXXFLAGS="-g"
3994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3995/* end confdefs.h. */
309b0535 3996
a243b558
JF
3997int
3998main ()
3999{
309b0535 4000
a243b558
JF
4001 ;
4002 return 0;
4003}
4004_ACEOF
4005if ac_fn_objcxx_try_compile "$LINENO"; then :
4006 ac_cv_prog_objcxx_g=yes
9c60689e 4007fi
a243b558 4008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9c60689e 4009fi
a243b558 4010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9c60689e 4011fi
a243b558
JF
4012rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4013 ac_objcxx_werror_flag=$ac_save_objcx_werror_flag
9c60689e 4014fi
a243b558
JF
4015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objcxx_g" >&5
4016$as_echo "$ac_cv_prog_objcxx_g" >&6; }
4017if test "$ac_test_OBJCXXFLAGS" = set; then
4018 OBJCXXFLAGS=$ac_save_OBJCXXFLAGS
4019elif test $ac_cv_prog_objcxx_g = yes; then
4020 if test "$GOBJCXX" = yes; then
4021 OBJCXXFLAGS="-g -O2"
4022 else
4023 OBJCXXFLAGS="-g"
4024 fi
9c60689e 4025else
a243b558
JF
4026 if test "$GOBJCXX" = yes; then
4027 OBJCXXFLAGS="-O2"
4028 else
4029 OBJCXXFLAGS=
4030 fi
9c60689e 4031fi
a243b558
JF
4032ac_ext=c
4033ac_cpp='$CPP $CPPFLAGS'
4034ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4035ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4036ac_compiler_gnu=$ac_cv_c_compiler_gnu
309b0535 4037
a243b558 4038depcc="$OBJCXX" am_compiler_list='gcc3 gcc'
309b0535 4039
a243b558
JF
4040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4041$as_echo_n "checking dependency style of $depcc... " >&6; }
4042if ${am_cv_OBJCXX_dependencies_compiler_type+:} false; then :
4043 $as_echo_n "(cached) " >&6
4044else
4045 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4046 # We make a subdir and do the tests there. Otherwise we can end up
4047 # making bogus files that we don't know about and never remove. For
4048 # instance it was reported that on HP-UX the gcc test will end up
4049 # making a dummy file named 'D' -- because '-MD' means "put the output
4050 # in D".
4051 rm -rf conftest.dir
4052 mkdir conftest.dir
4053 # Copy depcomp to subdir because otherwise we won't find it if we're
4054 # using a relative directory.
4055 cp "$am_depcomp" conftest.dir
4056 cd conftest.dir
4057 # We will build objects and dependencies in a subdirectory because
4058 # it helps to detect inapplicable dependency modes. For instance
4059 # both Tru64's cc and ICC support -MD to output dependencies as a
4060 # side effect of compilation, but ICC will put the dependencies in
4061 # the current directory while Tru64 will put them in the object
4062 # directory.
4063 mkdir sub
309b0535 4064
a243b558
JF
4065 am_cv_OBJCXX_dependencies_compiler_type=none
4066 if test "$am_compiler_list" = ""; then
4067 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4068 fi
4069 am__universal=false
309b0535 4070
9c60689e 4071
a243b558
JF
4072 for depmode in $am_compiler_list; do
4073 # Setup a source with many dependencies, because some compilers
4074 # like to wrap large dependency lists on column 80 (with \), and
4075 # we should not choose a depcomp mode which is confused by this.
4076 #
4077 # We need to recreate these files for each test, as the compiler may
4078 # overwrite some of them when testing with obscure command lines.
4079 # This happens at least with the AIX C compiler.
4080 : > sub/conftest.c
4081 for i in 1 2 3 4 5 6; do
4082 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4083 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4084 # Solaris 10 /bin/sh.
4085 echo '/* dummy */' > sub/conftst$i.h
4086 done
4087 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
9c60689e 4088
a243b558
JF
4089 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4090 # mode. It turns out that the SunPro C++ compiler does not properly
4091 # handle '-M -o', and we need to detect this. Also, some Intel
4092 # versions had trouble with output in subdirs.
4093 am__obj=sub/conftest.${OBJEXT-o}
4094 am__minus_obj="-o $am__obj"
4095 case $depmode in
4096 gcc)
4097 # This depmode causes a compiler race in universal mode.
4098 test "$am__universal" = false || continue
4099 ;;
4100 nosideeffect)
4101 # After this tag, mechanisms are not by side-effect, so they'll
4102 # only be used when explicitly requested.
4103 if test "x$enable_dependency_tracking" = xyes; then
4104 continue
4105 else
4106 break
309b0535 4107 fi
a243b558
JF
4108 ;;
4109 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4110 # This compiler won't grok '-c -o', but also, the minuso test has
4111 # not run yet. These depmodes are late enough in the game, and
4112 # so weak that their functioning should not be impacted.
4113 am__obj=conftest.${OBJEXT-o}
4114 am__minus_obj=
4115 ;;
4116 none) break ;;
4117 esac
4118 if depmode=$depmode \
4119 source=sub/conftest.c object=$am__obj \
4120 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4121 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4122 >/dev/null 2>conftest.err &&
4123 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4124 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4125 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4126 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4127 # icc doesn't choke on unknown options, it will just issue warnings
4128 # or remarks (even with -Werror). So we grep stderr for any message
4129 # that says an option was ignored or not supported.
4130 # When given -MP, icc 7.0 and 7.1 complain thusly:
4131 # icc: Command line warning: ignoring option '-M'; no argument required
4132 # The diagnosis changed in icc 8.0:
4133 # icc: Command line remark: option '-MP' not supported
4134 if (grep 'ignoring option' conftest.err ||
4135 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4136 am_cv_OBJCXX_dependencies_compiler_type=$depmode
4137 break
4138 fi
4139 fi
309b0535 4140 done
a243b558
JF
4141
4142 cd ..
4143 rm -rf conftest.dir
4144else
4145 am_cv_OBJCXX_dependencies_compiler_type=none
9c60689e 4146fi
a243b558 4147
9c60689e 4148fi
a243b558
JF
4149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_OBJCXX_dependencies_compiler_type" >&5
4150$as_echo "$am_cv_OBJCXX_dependencies_compiler_type" >&6; }
4151OBJCXXDEPMODE=depmode=$am_cv_OBJCXX_dependencies_compiler_type
4152
4153 if
4154 test "x$enable_dependency_tracking" != xno \
4155 && test "$am_cv_OBJCXX_dependencies_compiler_type" = gcc3; then
4156 am__fastdepOBJCXX_TRUE=
4157 am__fastdepOBJCXX_FALSE='#'
9c60689e 4158else
a243b558
JF
4159 am__fastdepOBJCXX_TRUE='#'
4160 am__fastdepOBJCXX_FALSE=
4161fi
4162
4163
4164ac_ext=c
4165ac_cpp='$CPP $CPPFLAGS'
4166ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4167ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4168ac_compiler_gnu=$ac_cv_c_compiler_gnu
4169if test -n "$ac_tool_prefix"; then
4170 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4171set dummy ${ac_tool_prefix}gcc; ac_word=$2
35fa52c0
DWT
4172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4173$as_echo_n "checking for $ac_word... " >&6; }
a243b558 4174if ${ac_cv_prog_CC+:} false; then :
35fa52c0
DWT
4175 $as_echo_n "(cached) " >&6
4176else
a243b558
JF
4177 if test -n "$CC"; then
4178 ac_cv_prog_CC="$CC" # Let the user override the test.
35fa52c0
DWT
4179else
4180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4181for as_dir in $PATH
4182do
4183 IFS=$as_save_IFS
4184 test -z "$as_dir" && as_dir=.
4185 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 4186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 4187 ac_cv_prog_CC="${ac_tool_prefix}gcc"
35fa52c0
DWT
4188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4189 break 2
4190 fi
4191done
4192 done
4193IFS=$as_save_IFS
4194
4195fi
4196fi
a243b558
JF
4197CC=$ac_cv_prog_CC
4198if test -n "$CC"; then
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4200$as_echo "$CC" >&6; }
35fa52c0
DWT
4201else
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4203$as_echo "no" >&6; }
4204fi
4205
4206
35fa52c0 4207fi
a243b558
JF
4208if test -z "$ac_cv_prog_CC"; then
4209 ac_ct_CC=$CC
4210 # Extract the first word of "gcc", so it can be a program name with args.
4211set dummy gcc; ac_word=$2
35fa52c0
DWT
4212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4213$as_echo_n "checking for $ac_word... " >&6; }
a243b558 4214if ${ac_cv_prog_ac_ct_CC+:} false; then :
35fa52c0
DWT
4215 $as_echo_n "(cached) " >&6
4216else
a243b558
JF
4217 if test -n "$ac_ct_CC"; then
4218 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
35fa52c0
DWT
4219else
4220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4221for as_dir in $PATH
4222do
4223 IFS=$as_save_IFS
4224 test -z "$as_dir" && as_dir=.
4225 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 4226 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 4227 ac_cv_prog_ac_ct_CC="gcc"
35fa52c0
DWT
4228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4229 break 2
4230 fi
4231done
4232 done
4233IFS=$as_save_IFS
4234
4235fi
4236fi
a243b558
JF
4237ac_ct_CC=$ac_cv_prog_ac_ct_CC
4238if test -n "$ac_ct_CC"; then
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4240$as_echo "$ac_ct_CC" >&6; }
35fa52c0
DWT
4241else
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4243$as_echo "no" >&6; }
4244fi
4245
a243b558
JF
4246 if test "x$ac_ct_CC" = x; then
4247 CC=""
35fa52c0
DWT
4248 else
4249 case $cross_compiling:$ac_tool_warned in
4250yes:)
4251{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4252$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4253ac_tool_warned=yes ;;
4254esac
a243b558 4255 CC=$ac_ct_CC
35fa52c0 4256 fi
a243b558
JF
4257else
4258 CC="$ac_cv_prog_CC"
35fa52c0
DWT
4259fi
4260
a243b558
JF
4261if test -z "$CC"; then
4262 if test -n "$ac_tool_prefix"; then
4263 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4264set dummy ${ac_tool_prefix}cc; ac_word=$2
4265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4266$as_echo_n "checking for $ac_word... " >&6; }
4267if ${ac_cv_prog_CC+:} false; then :
4268 $as_echo_n "(cached) " >&6
4269else
4270 if test -n "$CC"; then
4271 ac_cv_prog_CC="$CC" # Let the user override the test.
4272else
4273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4274for as_dir in $PATH
4275do
4276 IFS=$as_save_IFS
4277 test -z "$as_dir" && as_dir=.
4278 for ac_exec_ext in '' $ac_executable_extensions; do
4279 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4280 ac_cv_prog_CC="${ac_tool_prefix}cc"
4281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4282 break 2
ee134472 4283 fi
a243b558
JF
4284done
4285 done
4286IFS=$as_save_IFS
9c60689e 4287
35fa52c0 4288fi
a243b558
JF
4289fi
4290CC=$ac_cv_prog_CC
4291if test -n "$CC"; then
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4293$as_echo "$CC" >&6; }
4294else
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4296$as_echo "no" >&6; }
4297fi
35fa52c0 4298
35fa52c0 4299
a243b558
JF
4300 fi
4301fi
4302if test -z "$CC"; then
4303 # Extract the first word of "cc", so it can be a program name with args.
4304set dummy cc; ac_word=$2
4305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4306$as_echo_n "checking for $ac_word... " >&6; }
4307if ${ac_cv_prog_CC+:} false; then :
4308 $as_echo_n "(cached) " >&6
4309else
4310 if test -n "$CC"; then
4311 ac_cv_prog_CC="$CC" # Let the user override the test.
4312else
4313 ac_prog_rejected=no
4314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4315for as_dir in $PATH
4316do
4317 IFS=$as_save_IFS
4318 test -z "$as_dir" && as_dir=.
4319 for ac_exec_ext in '' $ac_executable_extensions; do
4320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4321 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4322 ac_prog_rejected=yes
4323 continue
4324 fi
4325 ac_cv_prog_CC="cc"
4326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4327 break 2
4328 fi
4329done
4330 done
4331IFS=$as_save_IFS
35fa52c0 4332
a243b558
JF
4333if test $ac_prog_rejected = yes; then
4334 # We found a bogon in the path, so make sure we never use it.
4335 set dummy $ac_cv_prog_CC
4336 shift
4337 if test $# != 0; then
4338 # We chose a different compiler from the bogus one.
4339 # However, it has the same basename, so the bogon will be chosen
4340 # first if we set CC to just the basename; use the full file name.
4341 shift
4342 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4343 fi
4344fi
4345fi
4346fi
4347CC=$ac_cv_prog_CC
4348if test -n "$CC"; then
4349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4350$as_echo "$CC" >&6; }
4351else
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4353$as_echo "no" >&6; }
4354fi
9c60689e
DWT
4355
4356
a243b558
JF
4357fi
4358if test -z "$CC"; then
4359 if test -n "$ac_tool_prefix"; then
4360 for ac_prog in cl.exe
4361 do
4362 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4363set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4365$as_echo_n "checking for $ac_word... " >&6; }
4366if ${ac_cv_prog_CC+:} false; then :
9c60689e
DWT
4367 $as_echo_n "(cached) " >&6
4368else
a243b558
JF
4369 if test -n "$CC"; then
4370 ac_cv_prog_CC="$CC" # Let the user override the test.
4371else
4372as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4373for as_dir in $PATH
4374do
4375 IFS=$as_save_IFS
4376 test -z "$as_dir" && as_dir=.
4377 for ac_exec_ext in '' $ac_executable_extensions; do
4378 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4379 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4381 break 2
9c60689e 4382 fi
a243b558
JF
4383done
4384 done
4385IFS=$as_save_IFS
9c60689e 4386
a243b558
JF
4387fi
4388fi
4389CC=$ac_cv_prog_CC
4390if test -n "$CC"; then
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4392$as_echo "$CC" >&6; }
35fa52c0 4393else
a243b558
JF
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4395$as_echo "no" >&6; }
35fa52c0 4396fi
9c60689e 4397
a243b558
JF
4398
4399 test -n "$CC" && break
4400 done
4401fi
4402if test -z "$CC"; then
4403 ac_ct_CC=$CC
4404 for ac_prog in cl.exe
4405do
4406 # Extract the first word of "$ac_prog", so it can be a program name with args.
4407set dummy $ac_prog; ac_word=$2
4408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4409$as_echo_n "checking for $ac_word... " >&6; }
4410if ${ac_cv_prog_ac_ct_CC+:} false; then :
35fa52c0
DWT
4411 $as_echo_n "(cached) " >&6
4412else
a243b558
JF
4413 if test -n "$ac_ct_CC"; then
4414 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4415else
4416as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4417for as_dir in $PATH
4418do
4419 IFS=$as_save_IFS
4420 test -z "$as_dir" && as_dir=.
4421 for ac_exec_ext in '' $ac_executable_extensions; do
4422 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4423 ac_cv_prog_ac_ct_CC="$ac_prog"
4424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4425 break 2
4426 fi
4427done
4428 done
4429IFS=$as_save_IFS
9c60689e 4430
a243b558
JF
4431fi
4432fi
4433ac_ct_CC=$ac_cv_prog_ac_ct_CC
4434if test -n "$ac_ct_CC"; then
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4436$as_echo "$ac_ct_CC" >&6; }
4437else
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4439$as_echo "no" >&6; }
4440fi
35fa52c0 4441
35fa52c0 4442
a243b558
JF
4443 test -n "$ac_ct_CC" && break
4444done
35fa52c0 4445
a243b558
JF
4446 if test "x$ac_ct_CC" = x; then
4447 CC=""
4448 else
4449 case $cross_compiling:$ac_tool_warned in
4450yes:)
4451{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4452$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4453ac_tool_warned=yes ;;
4454esac
4455 CC=$ac_ct_CC
4456 fi
4457fi
ee134472 4458
a243b558 4459fi
35fa52c0 4460
35fa52c0 4461
a243b558
JF
4462test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4463$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4464as_fn_error $? "no acceptable C compiler found in \$PATH
4465See \`config.log' for more details" "$LINENO" 5; }
35fa52c0 4466
a243b558
JF
4467# Provide some information about the compiler.
4468$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4469set X $ac_compile
4470ac_compiler=$2
4471for ac_option in --version -v -V -qversion; do
4472 { { ac_try="$ac_compiler $ac_option >&5"
4473case "(($ac_try" in
4474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4475 *) ac_try_echo=$ac_try;;
4476esac
4477eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4478$as_echo "$ac_try_echo"; } >&5
4479 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4480 ac_status=$?
4481 if test -s conftest.err; then
4482 sed '10a\
4483... rest of stderr output deleted ...
4484 10q' conftest.err >conftest.er1
4485 cat conftest.er1 >&5
4486 fi
4487 rm -f conftest.er1 conftest.err
4488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4489 test $ac_status = 0; }
4490done
53ba6704 4491
a243b558
JF
4492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4493$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4494if ${ac_cv_c_compiler_gnu+:} false; then :
4495 $as_echo_n "(cached) " >&6
4496else
4497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4498/* end confdefs.h. */
35fa52c0 4499
a243b558
JF
4500int
4501main ()
4502{
4503#ifndef __GNUC__
4504 choke me
4505#endif
9c60689e 4506
a243b558
JF
4507 ;
4508 return 0;
4509}
4510_ACEOF
4511if ac_fn_c_try_compile "$LINENO"; then :
4512 ac_compiler_gnu=yes
35fa52c0 4513else
a243b558 4514 ac_compiler_gnu=no
35fa52c0 4515fi
a243b558
JF
4516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4517ac_cv_c_compiler_gnu=$ac_compiler_gnu
9c60689e 4518
a243b558
JF
4519fi
4520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4521$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4522if test $ac_compiler_gnu = yes; then
4523 GCC=yes
35fa52c0 4524else
a243b558 4525 GCC=
9c60689e 4526fi
a243b558
JF
4527ac_test_CFLAGS=${CFLAGS+set}
4528ac_save_CFLAGS=$CFLAGS
4529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4530$as_echo_n "checking whether $CC accepts -g... " >&6; }
4531if ${ac_cv_prog_cc_g+:} false; then :
4532 $as_echo_n "(cached) " >&6
4533else
4534 ac_save_c_werror_flag=$ac_c_werror_flag
4535 ac_c_werror_flag=yes
4536 ac_cv_prog_cc_g=no
4537 CFLAGS="-g"
4538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4539/* end confdefs.h. */
9c60689e 4540
a243b558
JF
4541int
4542main ()
4543{
9c60689e 4544
a243b558
JF
4545 ;
4546 return 0;
4547}
4548_ACEOF
4549if ac_fn_c_try_compile "$LINENO"; then :
4550 ac_cv_prog_cc_g=yes
4551else
4552 CFLAGS=""
4553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4554/* end confdefs.h. */
9c60689e 4555
a243b558
JF
4556int
4557main ()
4558{
9c60689e 4559
a243b558
JF
4560 ;
4561 return 0;
4562}
4563_ACEOF
4564if ac_fn_c_try_compile "$LINENO"; then :
9c60689e 4565
a243b558
JF
4566else
4567 ac_c_werror_flag=$ac_save_c_werror_flag
4568 CFLAGS="-g"
4569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4570/* end confdefs.h. */
35fa52c0 4571
a243b558
JF
4572int
4573main ()
4574{
9c60689e 4575
a243b558
JF
4576 ;
4577 return 0;
4578}
4579_ACEOF
4580if ac_fn_c_try_compile "$LINENO"; then :
4581 ac_cv_prog_cc_g=yes
ee134472 4582fi
a243b558
JF
4583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4584fi
4585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4586fi
4587rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4588 ac_c_werror_flag=$ac_save_c_werror_flag
4589fi
4590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4591$as_echo "$ac_cv_prog_cc_g" >&6; }
4592if test "$ac_test_CFLAGS" = set; then
4593 CFLAGS=$ac_save_CFLAGS
4594elif test $ac_cv_prog_cc_g = yes; then
4595 if test "$GCC" = yes; then
4596 CFLAGS="-g -O2"
4597 else
4598 CFLAGS="-g"
4599 fi
ee134472 4600else
a243b558
JF
4601 if test "$GCC" = yes; then
4602 CFLAGS="-O2"
4603 else
4604 CFLAGS=
4605 fi
ee134472 4606fi
a243b558
JF
4607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4608$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4609if ${ac_cv_prog_cc_c89+:} false; then :
35fa52c0
DWT
4610 $as_echo_n "(cached) " >&6
4611else
a243b558
JF
4612 ac_cv_prog_cc_c89=no
4613ac_save_CC=$CC
4614cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4615/* end confdefs.h. */
4616#include <stdarg.h>
4617#include <stdio.h>
4618struct stat;
4619/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4620struct buf { int x; };
4621FILE * (*rcsopen) (struct buf *, struct stat *, int);
4622static char *e (p, i)
4623 char **p;
4624 int i;
4625{
4626 return p[i];
4627}
4628static char *f (char * (*g) (char **, int), char **p, ...)
4629{
4630 char *s;
4631 va_list v;
4632 va_start (v,p);
4633 s = g (p, va_arg (v,int));
4634 va_end (v);
4635 return s;
4636}
9c60689e 4637
a243b558
JF
4638/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4639 function prototypes and stuff, but not '\xHH' hex character constants.
4640 These don't provoke an error unfortunately, instead are silently treated
4641 as 'x'. The following induces an error, until -std is added to get
4642 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4643 array size at least. It's necessary to write '\x00'==0 to get something
4644 that's true only with -std. */
4645int osf4_cc_array ['\x00' == 0 ? 1 : -1];
9c60689e 4646
a243b558
JF
4647/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4648 inside strings and character constants. */
4649#define FOO(x) 'x'
4650int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
9c60689e 4651
a243b558
JF
4652int test (int i, double x);
4653struct s1 {int (*f) (int a);};
4654struct s2 {int (*f) (double a);};
4655int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4656int argc;
4657char **argv;
4658int
4659main ()
4660{
4661return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4662 ;
4663 return 0;
4664}
4665_ACEOF
4666for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4667 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
9c60689e 4668do
a243b558
JF
4669 CC="$ac_save_CC $ac_arg"
4670 if ac_fn_c_try_compile "$LINENO"; then :
4671 ac_cv_prog_cc_c89=$ac_arg
4672fi
4673rm -f core conftest.err conftest.$ac_objext
4674 test "x$ac_cv_prog_cc_c89" != "xno" && break
9c60689e 4675done
a243b558
JF
4676rm -f conftest.$ac_ext
4677CC=$ac_save_CC
35fa52c0 4678
35fa52c0 4679fi
a243b558
JF
4680# AC_CACHE_VAL
4681case "x$ac_cv_prog_cc_c89" in
4682 x)
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4684$as_echo "none needed" >&6; } ;;
4685 xno)
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4687$as_echo "unsupported" >&6; } ;;
4688 *)
4689 CC="$CC $ac_cv_prog_cc_c89"
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4691$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4692esac
4693if test "x$ac_cv_prog_cc_c89" != xno; then :
4694
35fa52c0 4695fi
9c60689e 4696
a243b558
JF
4697ac_ext=c
4698ac_cpp='$CPP $CPPFLAGS'
4699ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4700ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4701ac_compiler_gnu=$ac_cv_c_compiler_gnu
4702
4703depcc="$CC" am_compiler_list=
9c60689e 4704
a243b558
JF
4705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4706$as_echo_n "checking dependency style of $depcc... " >&6; }
4707if ${am_cv_CC_dependencies_compiler_type+:} false; then :
35fa52c0
DWT
4708 $as_echo_n "(cached) " >&6
4709else
a243b558
JF
4710 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4711 # We make a subdir and do the tests there. Otherwise we can end up
4712 # making bogus files that we don't know about and never remove. For
4713 # instance it was reported that on HP-UX the gcc test will end up
4714 # making a dummy file named 'D' -- because '-MD' means "put the output
4715 # in D".
4716 rm -rf conftest.dir
4717 mkdir conftest.dir
4718 # Copy depcomp to subdir because otherwise we won't find it if we're
4719 # using a relative directory.
4720 cp "$am_depcomp" conftest.dir
4721 cd conftest.dir
4722 # We will build objects and dependencies in a subdirectory because
4723 # it helps to detect inapplicable dependency modes. For instance
4724 # both Tru64's cc and ICC support -MD to output dependencies as a
4725 # side effect of compilation, but ICC will put the dependencies in
4726 # the current directory while Tru64 will put them in the object
4727 # directory.
4728 mkdir sub
4729
4730 am_cv_CC_dependencies_compiler_type=none
4731 if test "$am_compiler_list" = ""; then
4732 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4733 fi
4734 am__universal=false
4735 case " $depcc " in #(
4736 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4737 esac
4738
4739 for depmode in $am_compiler_list; do
4740 # Setup a source with many dependencies, because some compilers
4741 # like to wrap large dependency lists on column 80 (with \), and
4742 # we should not choose a depcomp mode which is confused by this.
4743 #
4744 # We need to recreate these files for each test, as the compiler may
4745 # overwrite some of them when testing with obscure command lines.
4746 # This happens at least with the AIX C compiler.
4747 : > sub/conftest.c
4748 for i in 1 2 3 4 5 6; do
4749 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4750 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4751 # Solaris 10 /bin/sh.
4752 echo '/* dummy */' > sub/conftst$i.h
4753 done
4754 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4755
4756 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4757 # mode. It turns out that the SunPro C++ compiler does not properly
4758 # handle '-M -o', and we need to detect this. Also, some Intel
4759 # versions had trouble with output in subdirs.
4760 am__obj=sub/conftest.${OBJEXT-o}
4761 am__minus_obj="-o $am__obj"
4762 case $depmode in
4763 gcc)
4764 # This depmode causes a compiler race in universal mode.
4765 test "$am__universal" = false || continue
4766 ;;
4767 nosideeffect)
4768 # After this tag, mechanisms are not by side-effect, so they'll
4769 # only be used when explicitly requested.
4770 if test "x$enable_dependency_tracking" = xyes; then
4771 continue
4772 else
4773 break
4774 fi
4775 ;;
4776 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4777 # This compiler won't grok '-c -o', but also, the minuso test has
4778 # not run yet. These depmodes are late enough in the game, and
4779 # so weak that their functioning should not be impacted.
4780 am__obj=conftest.${OBJEXT-o}
4781 am__minus_obj=
4782 ;;
4783 none) break ;;
4784 esac
4785 if depmode=$depmode \
4786 source=sub/conftest.c object=$am__obj \
4787 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4788 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4789 >/dev/null 2>conftest.err &&
4790 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4791 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4792 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4793 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4794 # icc doesn't choke on unknown options, it will just issue warnings
4795 # or remarks (even with -Werror). So we grep stderr for any message
4796 # that says an option was ignored or not supported.
4797 # When given -MP, icc 7.0 and 7.1 complain thusly:
4798 # icc: Command line warning: ignoring option '-M'; no argument required
4799 # The diagnosis changed in icc 8.0:
4800 # icc: Command line remark: option '-MP' not supported
4801 if (grep 'ignoring option' conftest.err ||
4802 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4803 am_cv_CC_dependencies_compiler_type=$depmode
4804 break
4805 fi
4806 fi
4807 done
9c60689e 4808
a243b558
JF
4809 cd ..
4810 rm -rf conftest.dir
4811else
4812 am_cv_CC_dependencies_compiler_type=none
35fa52c0 4813fi
a243b558 4814
35fa52c0 4815fi
a243b558
JF
4816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4817$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4818CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4819
4820 if
4821 test "x$enable_dependency_tracking" != xno \
4822 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4823 am__fastdepCC_TRUE=
4824 am__fastdepCC_FALSE='#'
4825else
4826 am__fastdepCC_TRUE='#'
4827 am__fastdepCC_FALSE=
4828fi
4829
4830
4831
4832if test -n "$ac_tool_prefix"; then
4833 for ac_prog in ar lib "link -lib"
4834 do
4835 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4836set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4838$as_echo_n "checking for $ac_word... " >&6; }
4839if ${ac_cv_prog_AR+:} false; then :
4840 $as_echo_n "(cached) " >&6
4841else
4842 if test -n "$AR"; then
4843 ac_cv_prog_AR="$AR" # Let the user override the test.
4844else
4845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4846for as_dir in $PATH
4847do
4848 IFS=$as_save_IFS
4849 test -z "$as_dir" && as_dir=.
4850 for ac_exec_ext in '' $ac_executable_extensions; do
4851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4852 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4854 break 2
4855 fi
4856done
4857 done
4858IFS=$as_save_IFS
4859
4860fi
4861fi
4862AR=$ac_cv_prog_AR
4863if test -n "$AR"; then
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4865$as_echo "$AR" >&6; }
35fa52c0
DWT
4866else
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4868$as_echo "no" >&6; }
4869fi
9c60689e 4870
a243b558
JF
4871
4872 test -n "$AR" && break
4873 done
4874fi
4875if test -z "$AR"; then
4876 ac_ct_AR=$AR
4877 for ac_prog in ar lib "link -lib"
4878do
4879 # Extract the first word of "$ac_prog", so it can be a program name with args.
4880set dummy $ac_prog; ac_word=$2
4881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4882$as_echo_n "checking for $ac_word... " >&6; }
4883if ${ac_cv_prog_ac_ct_AR+:} false; then :
4884 $as_echo_n "(cached) " >&6
4885else
4886 if test -n "$ac_ct_AR"; then
4887 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4888else
4889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4890for as_dir in $PATH
4891do
4892 IFS=$as_save_IFS
4893 test -z "$as_dir" && as_dir=.
4894 for ac_exec_ext in '' $ac_executable_extensions; do
4895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4896 ac_cv_prog_ac_ct_AR="$ac_prog"
4897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4898 break 2
4899 fi
4900done
4901 done
4902IFS=$as_save_IFS
4903
4904fi
4905fi
4906ac_ct_AR=$ac_cv_prog_ac_ct_AR
4907if test -n "$ac_ct_AR"; then
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4909$as_echo "$ac_ct_AR" >&6; }
4910else
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4912$as_echo "no" >&6; }
4913fi
4914
4915
4916 test -n "$ac_ct_AR" && break
4917done
4918
4919 if test "x$ac_ct_AR" = x; then
4920 AR="false"
9c60689e
DWT
4921 else
4922 case $cross_compiling:$ac_tool_warned in
4923yes:)
4924{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4925$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4926ac_tool_warned=yes ;;
35fa52c0 4927esac
a243b558 4928 AR=$ac_ct_AR
9c60689e 4929 fi
a243b558
JF
4930fi
4931
4932: ${AR=ar}
4933
4934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4935$as_echo_n "checking the archiver ($AR) interface... " >&6; }
4936if ${am_cv_ar_interface+:} false; then :
4937 $as_echo_n "(cached) " >&6
9c60689e 4938else
a243b558
JF
4939 am_cv_ar_interface=ar
4940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4941/* end confdefs.h. */
4942int some_variable = 0;
4943_ACEOF
4944if ac_fn_c_try_compile "$LINENO"; then :
4945 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
4946 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4947 (eval $am_ar_try) 2>&5
4948 ac_status=$?
4949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4950 test $ac_status = 0; }
4951 if test "$ac_status" -eq 0; then
4952 am_cv_ar_interface=ar
4953 else
4954 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4955 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4956 (eval $am_ar_try) 2>&5
4957 ac_status=$?
4958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4959 test $ac_status = 0; }
4960 if test "$ac_status" -eq 0; then
4961 am_cv_ar_interface=lib
4962 else
4963 am_cv_ar_interface=unknown
4964 fi
4965 fi
4966 rm -f conftest.lib libconftest.a
4967
35fa52c0 4968fi
a243b558 4969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35fa52c0 4970
a243b558
JF
4971fi
4972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4973$as_echo "$am_cv_ar_interface" >&6; }
35fa52c0 4974
a243b558
JF
4975case $am_cv_ar_interface in
4976ar)
4977 ;;
4978lib)
4979 # Microsoft lib, so override with the ar-lib wrapper script.
4980 # FIXME: It is wrong to rewrite AR.
4981 # But if we don't then we get into trouble of one sort or another.
4982 # A longer-term fix would be to have automake use am__AR in this case,
4983 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4984 # similar.
4985 AR="$am_aux_dir/ar-lib $AR"
4986 ;;
4987unknown)
4988 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
4989 ;;
4990esac
35fa52c0 4991
35fa52c0 4992
35fa52c0 4993
a243b558
JF
4994case `pwd` in
4995 *\ * | *\ *)
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4997$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4998esac
35fa52c0
DWT
4999
5000
5001
a243b558
JF
5002macro_version='2.4.2'
5003macro_revision='1.3337'
35fa52c0
DWT
5004
5005
5006
5007
5008
5009
5010
5011
5012
35fa52c0 5013
35fa52c0 5014
ee134472 5015
35fa52c0 5016
a243b558 5017ltmain="$ac_aux_dir/ltmain.sh"
35fa52c0 5018
a243b558
JF
5019# Make sure we can run config.sub.
5020$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5021 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
35fa52c0 5022
a243b558
JF
5023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5024$as_echo_n "checking build system type... " >&6; }
5025if ${ac_cv_build+:} false; then :
5026 $as_echo_n "(cached) " >&6
5027else
5028 ac_build_alias=$build_alias
5029test "x$ac_build_alias" = x &&
5030 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5031test "x$ac_build_alias" = x &&
5032 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5033ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5034 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
35fa52c0 5035
a243b558
JF
5036fi
5037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5038$as_echo "$ac_cv_build" >&6; }
5039case $ac_cv_build in
5040*-*-*) ;;
5041*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5042esac
5043build=$ac_cv_build
5044ac_save_IFS=$IFS; IFS='-'
5045set x $ac_cv_build
5046shift
5047build_cpu=$1
5048build_vendor=$2
5049shift; shift
5050# Remember, the first character of IFS is used to create $*,
5051# except with old shells:
5052build_os=$*
5053IFS=$ac_save_IFS
5054case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
35fa52c0 5055
35fa52c0 5056
a243b558
JF
5057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5058$as_echo_n "checking host system type... " >&6; }
5059if ${ac_cv_host+:} false; then :
5060 $as_echo_n "(cached) " >&6
5061else
5062 if test "x$host_alias" = x; then
5063 ac_cv_host=$ac_cv_build
5064else
5065 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5066 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5067fi
35fa52c0 5068
a243b558
JF
5069fi
5070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5071$as_echo "$ac_cv_host" >&6; }
5072case $ac_cv_host in
5073*-*-*) ;;
5074*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5075esac
5076host=$ac_cv_host
5077ac_save_IFS=$IFS; IFS='-'
5078set x $ac_cv_host
5079shift
5080host_cpu=$1
5081host_vendor=$2
5082shift; shift
5083# Remember, the first character of IFS is used to create $*,
5084# except with old shells:
5085host_os=$*
5086IFS=$ac_save_IFS
5087case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
9c60689e 5088
9c60689e 5089
a243b558
JF
5090# Backslashify metacharacters that are still active within
5091# double-quoted strings.
5092sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9c60689e 5093
a243b558
JF
5094# Same as above, but do not quote variable references.
5095double_quote_subst='s/\(["`\\]\)/\\\1/g'
9c60689e 5096
a243b558
JF
5097# Sed substitution to delay expansion of an escaped shell variable in a
5098# double_quote_subst'ed string.
5099delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9c60689e 5100
a243b558
JF
5101# Sed substitution to delay expansion of an escaped single quote.
5102delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9c60689e 5103
a243b558
JF
5104# Sed substitution to avoid accidental globbing in evaled expressions
5105no_glob_subst='s/\*/\\\*/g'
35fa52c0 5106
a243b558
JF
5107ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5108ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5109ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
ee134472 5110
a243b558
JF
5111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5112$as_echo_n "checking how to print strings... " >&6; }
5113# Test print first, because it will be a builtin if present.
5114if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5115 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5116 ECHO='print -r --'
5117elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5118 ECHO='printf %s\n'
5119else
5120 # Use this function as a fallback that always works.
5121 func_fallback_echo ()
5122 {
5123 eval 'cat <<_LTECHO_EOF
5124$1
5125_LTECHO_EOF'
5126 }
5127 ECHO='func_fallback_echo'
ee134472
JF
5128fi
5129
a243b558
JF
5130# func_echo_all arg...
5131# Invoke $ECHO with all args, space-separated.
5132func_echo_all ()
5133{
5134 $ECHO ""
5135}
35fa52c0 5136
a243b558
JF
5137case "$ECHO" in
5138 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5139$as_echo "printf" >&6; } ;;
5140 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5141$as_echo "print -r" >&6; } ;;
5142 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5143$as_echo "cat" >&6; } ;;
5144esac
35fa52c0 5145
35fa52c0 5146
ee134472
JF
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
35fa52c0 5157
9c60689e 5158
a243b558
JF
5159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5160$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5161if ${ac_cv_path_SED+:} false; then :
9c60689e
DWT
5162 $as_echo_n "(cached) " >&6
5163else
a243b558
JF
5164 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5165 for ac_i in 1 2 3 4 5 6 7; do
5166 ac_script="$ac_script$as_nl$ac_script"
5167 done
5168 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5169 { ac_script=; unset ac_script;}
5170 if test -z "$SED"; then
5171 ac_path_SED_found=false
5172 # Loop through the user's path and test for each of PROGNAME-LIST
5173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9c60689e
DWT
5174for as_dir in $PATH
5175do
5176 IFS=$as_save_IFS
5177 test -z "$as_dir" && as_dir=.
a243b558 5178 for ac_prog in sed gsed; do
9c60689e 5179 for ac_exec_ext in '' $ac_executable_extensions; do
a243b558
JF
5180 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5181 as_fn_executable_p "$ac_path_SED" || continue
5182# Check for GNU ac_path_SED and select it if it is found.
5183 # Check for GNU $ac_path_SED
5184case `"$ac_path_SED" --version 2>&1` in
5185*GNU*)
5186 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5187*)
5188 ac_count=0
5189 $as_echo_n 0123456789 >"conftest.in"
5190 while :
5191 do
5192 cat "conftest.in" "conftest.in" >"conftest.tmp"
5193 mv "conftest.tmp" "conftest.in"
5194 cp "conftest.in" "conftest.nl"
5195 $as_echo '' >> "conftest.nl"
5196 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5197 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5198 as_fn_arith $ac_count + 1 && ac_count=$as_val
5199 if test $ac_count -gt ${ac_path_SED_max-0}; then
5200 # Best one so far, save it but keep looking for a better one
5201 ac_cv_path_SED="$ac_path_SED"
5202 ac_path_SED_max=$ac_count
5203 fi
5204 # 10*(2^10) chars as input seems more than enough
5205 test $ac_count -gt 10 && break
35fa52c0 5206 done
a243b558
JF
5207 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5208esac
9c60689e 5209
a243b558
JF
5210 $ac_path_SED_found && break 3
5211 done
5212 done
9c60689e
DWT
5213 done
5214IFS=$as_save_IFS
a243b558
JF
5215 if test -z "$ac_cv_path_SED"; then
5216 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
9c60689e
DWT
5217 fi
5218else
a243b558 5219 ac_cv_path_SED=$SED
9c60689e
DWT
5220fi
5221
a243b558
JF
5222fi
5223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5224$as_echo "$ac_cv_path_SED" >&6; }
5225 SED="$ac_cv_path_SED"
5226 rm -f conftest.sed
9c60689e 5227
a243b558
JF
5228test -z "$SED" && SED=sed
5229Xsed="$SED -e 1s/^X//"
9c60689e 5230
ee134472 5231
ee134472 5232
9c60689e
DWT
5233
5234
5235
5236
5237
5238
5239
5240
a243b558
JF
5241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5242$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5243if ${ac_cv_path_GREP+:} false; then :
9c60689e
DWT
5244 $as_echo_n "(cached) " >&6
5245else
a243b558
JF
5246 if test -z "$GREP"; then
5247 ac_path_GREP_found=false
5248 # Loop through the user's path and test for each of PROGNAME-LIST
5249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5250for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9c60689e
DWT
5251do
5252 IFS=$as_save_IFS
5253 test -z "$as_dir" && as_dir=.
a243b558 5254 for ac_prog in grep ggrep; do
9c60689e 5255 for ac_exec_ext in '' $ac_executable_extensions; do
a243b558
JF
5256 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5257 as_fn_executable_p "$ac_path_GREP" || continue
5258# Check for GNU ac_path_GREP and select it if it is found.
5259 # Check for GNU $ac_path_GREP
5260case `"$ac_path_GREP" --version 2>&1` in
5261*GNU*)
5262 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5263*)
5264 ac_count=0
5265 $as_echo_n 0123456789 >"conftest.in"
5266 while :
5267 do
5268 cat "conftest.in" "conftest.in" >"conftest.tmp"
5269 mv "conftest.tmp" "conftest.in"
5270 cp "conftest.in" "conftest.nl"
5271 $as_echo 'GREP' >> "conftest.nl"
5272 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5273 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5274 as_fn_arith $ac_count + 1 && ac_count=$as_val
5275 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5276 # Best one so far, save it but keep looking for a better one
5277 ac_cv_path_GREP="$ac_path_GREP"
5278 ac_path_GREP_max=$ac_count
5279 fi
5280 # 10*(2^10) chars as input seems more than enough
5281 test $ac_count -gt 10 && break
5282 done
5283 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5284esac
9c60689e 5285
a243b558
JF
5286 $ac_path_GREP_found && break 3
5287 done
ee134472 5288 done
a243b558
JF
5289 done
5290IFS=$as_save_IFS
5291 if test -z "$ac_cv_path_GREP"; then
5292 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5293 fi
5294else
5295 ac_cv_path_GREP=$GREP
9c60689e 5296fi
a243b558
JF
5297
5298fi
5299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5300$as_echo "$ac_cv_path_GREP" >&6; }
5301 GREP="$ac_cv_path_GREP"
5302
5303
5304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5305$as_echo_n "checking for egrep... " >&6; }
5306if ${ac_cv_path_EGREP+:} false; then :
9c60689e
DWT
5307 $as_echo_n "(cached) " >&6
5308else
a243b558
JF
5309 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5310 then ac_cv_path_EGREP="$GREP -E"
5311 else
5312 if test -z "$EGREP"; then
5313 ac_path_EGREP_found=false
5314 # Loop through the user's path and test for each of PROGNAME-LIST
5315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5316for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9c60689e
DWT
5317do
5318 IFS=$as_save_IFS
5319 test -z "$as_dir" && as_dir=.
a243b558 5320 for ac_prog in egrep; do
9c60689e 5321 for ac_exec_ext in '' $ac_executable_extensions; do
a243b558
JF
5322 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5323 as_fn_executable_p "$ac_path_EGREP" || continue
5324# Check for GNU ac_path_EGREP and select it if it is found.
5325 # Check for GNU $ac_path_EGREP
5326case `"$ac_path_EGREP" --version 2>&1` in
5327*GNU*)
5328 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5329*)
5330 ac_count=0
5331 $as_echo_n 0123456789 >"conftest.in"
5332 while :
5333 do
5334 cat "conftest.in" "conftest.in" >"conftest.tmp"
5335 mv "conftest.tmp" "conftest.in"
5336 cp "conftest.in" "conftest.nl"
5337 $as_echo 'EGREP' >> "conftest.nl"
5338 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5339 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5340 as_fn_arith $ac_count + 1 && ac_count=$as_val
5341 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5342 # Best one so far, save it but keep looking for a better one
5343 ac_cv_path_EGREP="$ac_path_EGREP"
5344 ac_path_EGREP_max=$ac_count
5345 fi
5346 # 10*(2^10) chars as input seems more than enough
5347 test $ac_count -gt 10 && break
9c60689e 5348 done
a243b558
JF
5349 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5350esac
9c60689e 5351
a243b558
JF
5352 $ac_path_EGREP_found && break 3
5353 done
5354 done
5355 done
5356IFS=$as_save_IFS
5357 if test -z "$ac_cv_path_EGREP"; then
5358 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5359 fi
9c60689e 5360else
a243b558 5361 ac_cv_path_EGREP=$EGREP
9c60689e
DWT
5362fi
5363
a243b558
JF
5364 fi
5365fi
5366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5367$as_echo "$ac_cv_path_EGREP" >&6; }
5368 EGREP="$ac_cv_path_EGREP"
ee134472 5369
ee134472 5370
a243b558
JF
5371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5372$as_echo_n "checking for fgrep... " >&6; }
5373if ${ac_cv_path_FGREP+:} false; then :
5374 $as_echo_n "(cached) " >&6
5375else
5376 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5377 then ac_cv_path_FGREP="$GREP -F"
5378 else
5379 if test -z "$FGREP"; then
5380 ac_path_FGREP_found=false
5381 # Loop through the user's path and test for each of PROGNAME-LIST
5382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5383for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5384do
5385 IFS=$as_save_IFS
5386 test -z "$as_dir" && as_dir=.
5387 for ac_prog in fgrep; do
5388 for ac_exec_ext in '' $ac_executable_extensions; do
5389 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5390 as_fn_executable_p "$ac_path_FGREP" || continue
5391# Check for GNU ac_path_FGREP and select it if it is found.
5392 # Check for GNU $ac_path_FGREP
5393case `"$ac_path_FGREP" --version 2>&1` in
5394*GNU*)
5395 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5396*)
5397 ac_count=0
5398 $as_echo_n 0123456789 >"conftest.in"
5399 while :
5400 do
5401 cat "conftest.in" "conftest.in" >"conftest.tmp"
5402 mv "conftest.tmp" "conftest.in"
5403 cp "conftest.in" "conftest.nl"
5404 $as_echo 'FGREP' >> "conftest.nl"
5405 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5406 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5407 as_fn_arith $ac_count + 1 && ac_count=$as_val
5408 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5409 # Best one so far, save it but keep looking for a better one
5410 ac_cv_path_FGREP="$ac_path_FGREP"
5411 ac_path_FGREP_max=$ac_count
5412 fi
5413 # 10*(2^10) chars as input seems more than enough
5414 test $ac_count -gt 10 && break
5415 done
5416 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9c60689e 5417esac
a243b558
JF
5418
5419 $ac_path_FGREP_found && break 3
5420 done
5421 done
5422 done
5423IFS=$as_save_IFS
5424 if test -z "$ac_cv_path_FGREP"; then
5425 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
ee134472 5426 fi
a243b558
JF
5427else
5428 ac_cv_path_FGREP=$FGREP
ee134472
JF
5429fi
5430
a243b558
JF
5431 fi
5432fi
5433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5434$as_echo "$ac_cv_path_FGREP" >&6; }
5435 FGREP="$ac_cv_path_FGREP"
ee134472
JF
5436
5437
a243b558 5438test -z "$GREP" && GREP=grep
ee134472
JF
5439
5440
5441
5442
5443
5444
5445
ee134472 5446
ee134472 5447
ee134472 5448
ee134472 5449
ee134472 5450
ee134472
JF
5451
5452
5453
5454
5455
5456
5457
a243b558
JF
5458# Check whether --with-gnu-ld was given.
5459if test "${with_gnu_ld+set}" = set; then :
5460 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5461else
5462 with_gnu_ld=no
5463fi
5464
5465ac_prog=ld
5466if test "$GCC" = yes; then
5467 # Check if gcc -print-prog-name=ld gives a path.
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5469$as_echo_n "checking for ld used by $CC... " >&6; }
5470 case $host in
5471 *-*-mingw*)
5472 # gcc leaves a trailing carriage return which upsets mingw
5473 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5474 *)
5475 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5476 esac
5477 case $ac_prog in
5478 # Accept absolute paths.
5479 [\\/]* | ?:[\\/]*)
5480 re_direlt='/[^/][^/]*/\.\./'
5481 # Canonicalize the pathname of ld
5482 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5483 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5484 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5485 done
5486 test -z "$LD" && LD="$ac_prog"
5487 ;;
5488 "")
5489 # If it fails, then pretend we aren't using GCC.
5490 ac_prog=ld
5491 ;;
5492 *)
5493 # If it is relative, then search for the first ld in PATH.
5494 with_gnu_ld=unknown
5495 ;;
5496 esac
5497elif test "$with_gnu_ld" = yes; then
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5499$as_echo_n "checking for GNU ld... " >&6; }
5500else
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5502$as_echo_n "checking for non-GNU ld... " >&6; }
5503fi
5504if ${lt_cv_path_LD+:} false; then :
5505 $as_echo_n "(cached) " >&6
5506else
5507 if test -z "$LD"; then
5508 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5509 for ac_dir in $PATH; do
5510 IFS="$lt_save_ifs"
5511 test -z "$ac_dir" && ac_dir=.
5512 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5513 lt_cv_path_LD="$ac_dir/$ac_prog"
5514 # Check to see if the program is GNU ld. I'd rather use --version,
5515 # but apparently some variants of GNU ld only accept -v.
5516 # Break only if it was the GNU/non-GNU ld that we prefer.
5517 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5518 *GNU* | *'with BFD'*)
5519 test "$with_gnu_ld" != no && break
5520 ;;
5521 *)
5522 test "$with_gnu_ld" != yes && break
5523 ;;
5524 esac
5525 fi
5526 done
5527 IFS="$lt_save_ifs"
5528else
5529 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5530fi
5531fi
5532
5533LD="$lt_cv_path_LD"
5534if test -n "$LD"; then
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5536$as_echo "$LD" >&6; }
5537else
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5539$as_echo "no" >&6; }
5540fi
5541test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5543$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5544if ${lt_cv_prog_gnu_ld+:} false; then :
5545 $as_echo_n "(cached) " >&6
5546else
5547 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5548case `$LD -v 2>&1 </dev/null` in
5549*GNU* | *'with BFD'*)
5550 lt_cv_prog_gnu_ld=yes
5551 ;;
5552*)
5553 lt_cv_prog_gnu_ld=no
5554 ;;
5555esac
5556fi
5557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5558$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5559with_gnu_ld=$lt_cv_prog_gnu_ld
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5570$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5571if ${lt_cv_path_NM+:} false; then :
5572 $as_echo_n "(cached) " >&6
5573else
5574 if test -n "$NM"; then
5575 # Let the user override the test.
5576 lt_cv_path_NM="$NM"
5577else
5578 lt_nm_to_check="${ac_tool_prefix}nm"
5579 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5580 lt_nm_to_check="$lt_nm_to_check nm"
5581 fi
5582 for lt_tmp_nm in $lt_nm_to_check; do
5583 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5584 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5585 IFS="$lt_save_ifs"
5586 test -z "$ac_dir" && ac_dir=.
5587 tmp_nm="$ac_dir/$lt_tmp_nm"
5588 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5589 # Check to see if the nm accepts a BSD-compat flag.
5590 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5591 # nm: unknown option "B" ignored
5592 # Tru64's nm complains that /dev/null is an invalid object file
5593 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5594 */dev/null* | *'Invalid file or object type'*)
5595 lt_cv_path_NM="$tmp_nm -B"
5596 break
5597 ;;
5598 *)
5599 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5600 */dev/null*)
5601 lt_cv_path_NM="$tmp_nm -p"
5602 break
5603 ;;
5604 *)
5605 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5606 continue # so that we can try to find one that supports BSD flags
5607 ;;
5608 esac
5609 ;;
5610 esac
5611 fi
5612 done
5613 IFS="$lt_save_ifs"
5614 done
5615 : ${lt_cv_path_NM=no}
5616fi
5617fi
5618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5619$as_echo "$lt_cv_path_NM" >&6; }
5620if test "$lt_cv_path_NM" != "no"; then
5621 NM="$lt_cv_path_NM"
5622else
5623 # Didn't find any BSD compatible name lister, look for dumpbin.
5624 if test -n "$DUMPBIN"; then :
5625 # Let the user override the test.
5626 else
5627 if test -n "$ac_tool_prefix"; then
5628 for ac_prog in dumpbin "link -dump"
5629 do
5630 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5631set dummy $ac_tool_prefix$ac_prog; ac_word=$2
ee134472
JF
5632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5633$as_echo_n "checking for $ac_word... " >&6; }
a243b558 5634if ${ac_cv_prog_DUMPBIN+:} false; then :
ee134472
JF
5635 $as_echo_n "(cached) " >&6
5636else
a243b558
JF
5637 if test -n "$DUMPBIN"; then
5638 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
ee134472
JF
5639else
5640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5641for as_dir in $PATH
5642do
5643 IFS=$as_save_IFS
5644 test -z "$as_dir" && as_dir=.
5645 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 5646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 5647 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
ee134472
JF
5648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5649 break 2
5650 fi
5651done
5652 done
5653IFS=$as_save_IFS
5654
5655fi
5656fi
a243b558
JF
5657DUMPBIN=$ac_cv_prog_DUMPBIN
5658if test -n "$DUMPBIN"; then
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5660$as_echo "$DUMPBIN" >&6; }
ee134472
JF
5661else
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5663$as_echo "no" >&6; }
5664fi
5665
5666
a243b558
JF
5667 test -n "$DUMPBIN" && break
5668 done
ee134472 5669fi
a243b558
JF
5670if test -z "$DUMPBIN"; then
5671 ac_ct_DUMPBIN=$DUMPBIN
5672 for ac_prog in dumpbin "link -dump"
5673do
5674 # Extract the first word of "$ac_prog", so it can be a program name with args.
5675set dummy $ac_prog; ac_word=$2
ee134472
JF
5676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5677$as_echo_n "checking for $ac_word... " >&6; }
a243b558 5678if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
ee134472
JF
5679 $as_echo_n "(cached) " >&6
5680else
a243b558
JF
5681 if test -n "$ac_ct_DUMPBIN"; then
5682 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
ee134472
JF
5683else
5684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5685for as_dir in $PATH
5686do
5687 IFS=$as_save_IFS
5688 test -z "$as_dir" && as_dir=.
5689 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 5690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 5691 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
ee134472
JF
5692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5693 break 2
5694 fi
5695done
5696 done
5697IFS=$as_save_IFS
5698
5699fi
5700fi
a243b558
JF
5701ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5702if test -n "$ac_ct_DUMPBIN"; then
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5704$as_echo "$ac_ct_DUMPBIN" >&6; }
ee134472
JF
5705else
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5707$as_echo "no" >&6; }
5708fi
5709
a243b558
JF
5710
5711 test -n "$ac_ct_DUMPBIN" && break
5712done
5713
5714 if test "x$ac_ct_DUMPBIN" = x; then
5715 DUMPBIN=":"
ee134472
JF
5716 else
5717 case $cross_compiling:$ac_tool_warned in
5718yes:)
5719{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5720$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5721ac_tool_warned=yes ;;
5722esac
a243b558 5723 DUMPBIN=$ac_ct_DUMPBIN
9c60689e 5724 fi
9c60689e
DWT
5725fi
5726
a243b558
JF
5727 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5728 *COFF*)
5729 DUMPBIN="$DUMPBIN -symbols"
5730 ;;
5731 *)
5732 DUMPBIN=:
5733 ;;
5734 esac
5735 fi
9c60689e 5736
a243b558
JF
5737 if test "$DUMPBIN" != ":"; then
5738 NM="$DUMPBIN"
5739 fi
5740fi
5741test -z "$NM" && NM=nm
9c60689e
DWT
5742
5743
5744
5745
5746
a243b558
JF
5747
5748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5749$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5750if ${lt_cv_nm_interface+:} false; then :
9c60689e
DWT
5751 $as_echo_n "(cached) " >&6
5752else
a243b558
JF
5753 lt_cv_nm_interface="BSD nm"
5754 echo "int some_variable = 0;" > conftest.$ac_ext
5755 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5756 (eval "$ac_compile" 2>conftest.err)
5757 cat conftest.err >&5
5758 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5759 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5760 cat conftest.err >&5
5761 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5762 cat conftest.out >&5
5763 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5764 lt_cv_nm_interface="MS dumpbin"
9c60689e 5765 fi
a243b558 5766 rm -rf conftest*
9c60689e 5767fi
a243b558
JF
5768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5769$as_echo "$lt_cv_nm_interface" >&6; }
5770
5771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5772$as_echo_n "checking whether ln -s works... " >&6; }
5773LN_S=$as_ln_s
5774if test "$LN_S" = "ln -s"; then
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5776$as_echo "yes" >&6; }
9c60689e 5777else
a243b558
JF
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5779$as_echo "no, using $LN_S" >&6; }
9c60689e
DWT
5780fi
5781
a243b558
JF
5782# find the maximum length of command line arguments
5783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5784$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5785if ${lt_cv_sys_max_cmd_len+:} false; then :
9c60689e
DWT
5786 $as_echo_n "(cached) " >&6
5787else
a243b558
JF
5788 i=0
5789 teststring="ABCD"
9c60689e 5790
a243b558
JF
5791 case $build_os in
5792 msdosdjgpp*)
5793 # On DJGPP, this test can blow up pretty badly due to problems in libc
5794 # (any single argument exceeding 2000 bytes causes a buffer overrun
5795 # during glob expansion). Even if it were fixed, the result of this
5796 # check would be larger than it should be.
5797 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5798 ;;
9c60689e 5799
a243b558
JF
5800 gnu*)
5801 # Under GNU Hurd, this test is not required because there is
5802 # no limit to the length of command line arguments.
5803 # Libtool will interpret -1 as no limit whatsoever
5804 lt_cv_sys_max_cmd_len=-1;
5805 ;;
9c60689e 5806
a243b558
JF
5807 cygwin* | mingw* | cegcc*)
5808 # On Win9x/ME, this test blows up -- it succeeds, but takes
5809 # about 5 minutes as the teststring grows exponentially.
5810 # Worse, since 9x/ME are not pre-emptively multitasking,
5811 # you end up with a "frozen" computer, even though with patience
5812 # the test eventually succeeds (with a max line length of 256k).
5813 # Instead, let's just punt: use the minimum linelength reported by
5814 # all of the supported platforms: 8192 (on NT/2K/XP).
5815 lt_cv_sys_max_cmd_len=8192;
5816 ;;
9c60689e 5817
a243b558
JF
5818 mint*)
5819 # On MiNT this can take a long time and run out of memory.
5820 lt_cv_sys_max_cmd_len=8192;
5821 ;;
9c60689e 5822
a243b558
JF
5823 amigaos*)
5824 # On AmigaOS with pdksh, this test takes hours, literally.
5825 # So we just punt and use a minimum line length of 8192.
5826 lt_cv_sys_max_cmd_len=8192;
5827 ;;
9c60689e 5828
a243b558
JF
5829 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5830 # This has been around since 386BSD, at least. Likely further.
5831 if test -x /sbin/sysctl; then
5832 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5833 elif test -x /usr/sbin/sysctl; then
5834 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5835 else
5836 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5837 fi
5838 # And add a safety zone
5839 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5840 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5841 ;;
9c60689e 5842
a243b558
JF
5843 interix*)
5844 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5845 lt_cv_sys_max_cmd_len=196608
5846 ;;
9c60689e 5847
a243b558
JF
5848 os2*)
5849 # The test takes a long time on OS/2.
5850 lt_cv_sys_max_cmd_len=8192
5851 ;;
9c60689e 5852
a243b558
JF
5853 osf*)
5854 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5855 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5856 # nice to cause kernel panics so lets avoid the loop below.
5857 # First set a reasonable default.
5858 lt_cv_sys_max_cmd_len=16384
5859 #
5860 if test -x /sbin/sysconfig; then
5861 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5862 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5863 esac
5864 fi
5865 ;;
5866 sco3.2v5*)
5867 lt_cv_sys_max_cmd_len=102400
5868 ;;
5869 sysv5* | sco5v6* | sysv4.2uw2*)
5870 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5871 if test -n "$kargmax"; then
5872 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5873 else
5874 lt_cv_sys_max_cmd_len=32768
5875 fi
9c60689e
DWT
5876 ;;
5877 *)
a243b558
JF
5878 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5879 if test -n "$lt_cv_sys_max_cmd_len"; then
5880 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5881 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5882 else
5883 # Make teststring a little bigger before we do anything with it.
5884 # a 1K string should be a reasonable start.
5885 for i in 1 2 3 4 5 6 7 8 ; do
5886 teststring=$teststring$teststring
5887 done
5888 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5889 # If test is not a shell built-in, we'll probably end up computing a
5890 # maximum length that is only half of the actual maximum length, but
5891 # we can't tell.
5892 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5893 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5894 test $i != 17 # 1/2 MB should be enough
5895 do
5896 i=`expr $i + 1`
5897 teststring=$teststring$teststring
5898 done
5899 # Only check the string length outside the loop.
5900 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5901 teststring=
5902 # Add a significant safety factor because C++ compilers can tack on
5903 # massive amounts of additional arguments before passing them to the
5904 # linker. It appears as though 1/2 is a usable value.
5905 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5906 fi
9c60689e
DWT
5907 ;;
5908 esac
ee134472 5909
a243b558 5910fi
ee134472 5911
a243b558
JF
5912if test -n $lt_cv_sys_max_cmd_len ; then
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5914$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5915else
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5917$as_echo "none" >&6; }
5918fi
5919max_cmd_len=$lt_cv_sys_max_cmd_len
ee134472
JF
5920
5921
9c60689e
DWT
5922
5923
5924
5925
a243b558
JF
5926: ${CP="cp -f"}
5927: ${MV="mv -f"}
5928: ${RM="rm -f"}
9c60689e 5929
a243b558
JF
5930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5931$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5932# Try some XSI features
5933xsi_shell=no
5934( _lt_dummy="a/b/c"
5935 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5936 = c,a/b,b/c, \
5937 && eval 'test $(( 1 + 1 )) -eq 2 \
5938 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5939 && xsi_shell=yes
5940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5941$as_echo "$xsi_shell" >&6; }
9c60689e
DWT
5942
5943
a243b558
JF
5944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5945$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5946lt_shell_append=no
5947( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5948 >/dev/null 2>&1 \
5949 && lt_shell_append=yes
5950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5951$as_echo "$lt_shell_append" >&6; }
9c60689e
DWT
5952
5953
a243b558
JF
5954if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5955 lt_unset=unset
5956else
5957 lt_unset=false
5958fi
9c60689e
DWT
5959
5960
5961
5962
5963
a243b558
JF
5964# test EBCDIC or ASCII
5965case `echo X|tr X '\101'` in
5966 A) # ASCII based system
5967 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5968 lt_SP2NL='tr \040 \012'
5969 lt_NL2SP='tr \015\012 \040\040'
5970 ;;
5971 *) # EBCDIC based system
5972 lt_SP2NL='tr \100 \n'
5973 lt_NL2SP='tr \r\n \100\100'
5974 ;;
5975esac
9c60689e
DWT
5976
5977
5978
5979
5980
5981
5982
5983
5984
a243b558
JF
5985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5986$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5987if ${lt_cv_to_host_file_cmd+:} false; then :
5988 $as_echo_n "(cached) " >&6
5989else
5990 case $host in
5991 *-*-mingw* )
5992 case $build in
5993 *-*-mingw* ) # actually msys
5994 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5995 ;;
5996 *-*-cygwin* )
5997 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5998 ;;
5999 * ) # otherwise, assume *nix
6000 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6001 ;;
6002 esac
6003 ;;
6004 *-*-cygwin* )
6005 case $build in
6006 *-*-mingw* ) # actually msys
6007 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6008 ;;
6009 *-*-cygwin* )
6010 lt_cv_to_host_file_cmd=func_convert_file_noop
6011 ;;
6012 * ) # otherwise, assume *nix
6013 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6014 ;;
6015 esac
6016 ;;
6017 * ) # unhandled hosts (and "normal" native builds)
6018 lt_cv_to_host_file_cmd=func_convert_file_noop
6019 ;;
6020esac
9c60689e 6021
a243b558 6022fi
9c60689e 6023
a243b558
JF
6024to_host_file_cmd=$lt_cv_to_host_file_cmd
6025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6026$as_echo "$lt_cv_to_host_file_cmd" >&6; }
9c60689e
DWT
6027
6028
6029
6030
6031
a243b558
JF
6032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6033$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6034if ${lt_cv_to_tool_file_cmd+:} false; then :
6035 $as_echo_n "(cached) " >&6
6036else
6037 #assume ordinary cross tools, or native build.
6038lt_cv_to_tool_file_cmd=func_convert_file_noop
6039case $host in
6040 *-*-mingw* )
6041 case $build in
6042 *-*-mingw* ) # actually msys
6043 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6044 ;;
6045 esac
6046 ;;
6047esac
9c60689e 6048
a243b558 6049fi
9c60689e 6050
a243b558
JF
6051to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6053$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
9c60689e 6054
9c60689e 6055
9c60689e 6056
9c60689e
DWT
6057
6058
a243b558
JF
6059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6060$as_echo_n "checking for $LD option to reload object files... " >&6; }
6061if ${lt_cv_ld_reload_flag+:} false; then :
9c60689e
DWT
6062 $as_echo_n "(cached) " >&6
6063else
a243b558
JF
6064 lt_cv_ld_reload_flag='-r'
6065fi
6066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6067$as_echo "$lt_cv_ld_reload_flag" >&6; }
6068reload_flag=$lt_cv_ld_reload_flag
6069case $reload_flag in
6070"" | " "*) ;;
6071*) reload_flag=" $reload_flag" ;;
6072esac
6073reload_cmds='$LD$reload_flag -o $output$reload_objs'
9c60689e 6074case $host_os in
a243b558
JF
6075 cygwin* | mingw* | pw32* | cegcc*)
6076 if test "$GCC" != yes; then
6077 reload_cmds=false
6078 fi
6079 ;;
6080 darwin*)
6081 if test "$GCC" = yes; then
6082 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6083 else
6084 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6085 fi
6086 ;;
9c60689e
DWT
6087esac
6088
9c60689e 6089
9c60689e 6090
9c60689e 6091
9c60689e 6092
9c60689e 6093
9c60689e 6094
9c60689e 6095
9c60689e 6096
a243b558
JF
6097if test -n "$ac_tool_prefix"; then
6098 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6099set dummy ${ac_tool_prefix}objdump; ac_word=$2
6100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6101$as_echo_n "checking for $ac_word... " >&6; }
6102if ${ac_cv_prog_OBJDUMP+:} false; then :
6103 $as_echo_n "(cached) " >&6
6104else
6105 if test -n "$OBJDUMP"; then
6106 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6107else
6108as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6109for as_dir in $PATH
6110do
6111 IFS=$as_save_IFS
6112 test -z "$as_dir" && as_dir=.
6113 for ac_exec_ext in '' $ac_executable_extensions; do
6114 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6115 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6117 break 2
6118 fi
6119done
6120 done
6121IFS=$as_save_IFS
9c60689e 6122
a243b558
JF
6123fi
6124fi
6125OBJDUMP=$ac_cv_prog_OBJDUMP
6126if test -n "$OBJDUMP"; then
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6128$as_echo "$OBJDUMP" >&6; }
6129else
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6131$as_echo "no" >&6; }
6132fi
9c60689e 6133
9c60689e 6134
a243b558
JF
6135fi
6136if test -z "$ac_cv_prog_OBJDUMP"; then
6137 ac_ct_OBJDUMP=$OBJDUMP
6138 # Extract the first word of "objdump", so it can be a program name with args.
6139set dummy objdump; ac_word=$2
6140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6141$as_echo_n "checking for $ac_word... " >&6; }
6142if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6143 $as_echo_n "(cached) " >&6
6144else
6145 if test -n "$ac_ct_OBJDUMP"; then
6146 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6147else
6148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6149for as_dir in $PATH
6150do
6151 IFS=$as_save_IFS
6152 test -z "$as_dir" && as_dir=.
6153 for ac_exec_ext in '' $ac_executable_extensions; do
6154 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6155 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6157 break 2
9c60689e
DWT
6158 fi
6159done
a243b558
JF
6160 done
6161IFS=$as_save_IFS
9c60689e
DWT
6162
6163fi
9c60689e 6164fi
a243b558
JF
6165ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6166if test -n "$ac_ct_OBJDUMP"; then
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6168$as_echo "$ac_ct_OBJDUMP" >&6; }
9c60689e 6169else
a243b558
JF
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6171$as_echo "no" >&6; }
9c60689e
DWT
6172fi
6173
a243b558
JF
6174 if test "x$ac_ct_OBJDUMP" = x; then
6175 OBJDUMP="false"
6176 else
6177 case $cross_compiling:$ac_tool_warned in
6178yes:)
6179{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6180$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6181ac_tool_warned=yes ;;
6182esac
6183 OBJDUMP=$ac_ct_OBJDUMP
6184 fi
6185else
6186 OBJDUMP="$ac_cv_prog_OBJDUMP"
ee134472
JF
6187fi
6188
a243b558 6189test -z "$OBJDUMP" && OBJDUMP=objdump
ee134472
JF
6190
6191
6192
6193
6194
6195
6196
6197
6198
a243b558
JF
6199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6200$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6201if ${lt_cv_deplibs_check_method+:} false; then :
6202 $as_echo_n "(cached) " >&6
6203else
6204 lt_cv_file_magic_cmd='$MAGIC_CMD'
6205lt_cv_file_magic_test_file=
6206lt_cv_deplibs_check_method='unknown'
6207# Need to set the preceding variable on all platforms that support
6208# interlibrary dependencies.
6209# 'none' -- dependencies not supported.
6210# `unknown' -- same as none, but documents that we really don't know.
6211# 'pass_all' -- all dependencies passed with no checks.
6212# 'test_compile' -- check by making test program.
6213# 'file_magic [[regex]]' -- check by looking for files in library path
6214# which responds to the $file_magic_cmd with a given extended regex.
6215# If you have `file' or equivalent on your system and you're not sure
6216# whether `pass_all' will *always* work, you probably want this one.
9c60689e 6217
a243b558
JF
6218case $host_os in
6219aix[4-9]*)
6220 lt_cv_deplibs_check_method=pass_all
6221 ;;
9c60689e 6222
a243b558
JF
6223beos*)
6224 lt_cv_deplibs_check_method=pass_all
6225 ;;
9c60689e 6226
a243b558
JF
6227bsdi[45]*)
6228 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6229 lt_cv_file_magic_cmd='/usr/bin/file -L'
6230 lt_cv_file_magic_test_file=/shlib/libc.so
6231 ;;
9c60689e 6232
a243b558
JF
6233cygwin*)
6234 # func_win32_libid is a shell function defined in ltmain.sh
6235 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6236 lt_cv_file_magic_cmd='func_win32_libid'
6237 ;;
9c60689e 6238
a243b558
JF
6239mingw* | pw32*)
6240 # Base MSYS/MinGW do not provide the 'file' command needed by
6241 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6242 # unless we find 'file', for example because we are cross-compiling.
6243 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6244 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6245 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6246 lt_cv_file_magic_cmd='func_win32_libid'
6247 else
6248 # Keep this pattern in sync with the one in func_win32_libid.
6249 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6250 lt_cv_file_magic_cmd='$OBJDUMP -f'
6251 fi
6252 ;;
9c60689e 6253
a243b558
JF
6254cegcc*)
6255 # use the weaker test based on 'objdump'. See mingw*.
6256 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6257 lt_cv_file_magic_cmd='$OBJDUMP -f'
6258 ;;
9c60689e 6259
a243b558
JF
6260darwin* | rhapsody*)
6261 lt_cv_deplibs_check_method=pass_all
6262 ;;
9c60689e 6263
a243b558
JF
6264freebsd* | dragonfly*)
6265 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6266 case $host_cpu in
6267 i*86 )
6268 # Not sure whether the presence of OpenBSD here was a mistake.
6269 # Let's accept both of them until this is cleared up.
6270 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6271 lt_cv_file_magic_cmd=/usr/bin/file
6272 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6273 ;;
6274 esac
6275 else
6276 lt_cv_deplibs_check_method=pass_all
6277 fi
6278 ;;
9c60689e 6279
a243b558
JF
6280gnu*)
6281 lt_cv_deplibs_check_method=pass_all
6282 ;;
9c60689e 6283
a243b558
JF
6284haiku*)
6285 lt_cv_deplibs_check_method=pass_all
6286 ;;
9c60689e 6287
a243b558
JF
6288hpux10.20* | hpux11*)
6289 lt_cv_file_magic_cmd=/usr/bin/file
6290 case $host_cpu in
6291 ia64*)
6292 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6293 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6294 ;;
6295 hppa*64*)
6296 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]'
6297 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6298 ;;
6299 *)
6300 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6301 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6302 ;;
6303 esac
6304 ;;
9c60689e 6305
a243b558
JF
6306interix[3-9]*)
6307 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6308 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6309 ;;
9c60689e 6310
a243b558
JF
6311irix5* | irix6* | nonstopux*)
6312 case $LD in
6313 *-32|*"-32 ") libmagic=32-bit;;
6314 *-n32|*"-n32 ") libmagic=N32;;
6315 *-64|*"-64 ") libmagic=64-bit;;
6316 *) libmagic=never-match;;
6317 esac
6318 lt_cv_deplibs_check_method=pass_all
6319 ;;
9c60689e 6320
a243b558
JF
6321# This must be glibc/ELF.
6322linux* | k*bsd*-gnu | kopensolaris*-gnu)
6323 lt_cv_deplibs_check_method=pass_all
6324 ;;
9c60689e 6325
a243b558
JF
6326netbsd*)
6327 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6328 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6329 else
6330 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6331 fi
6332 ;;
9c60689e 6333
a243b558
JF
6334newos6*)
6335 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6336 lt_cv_file_magic_cmd=/usr/bin/file
6337 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6338 ;;
9c60689e 6339
a243b558
JF
6340*nto* | *qnx*)
6341 lt_cv_deplibs_check_method=pass_all
6342 ;;
9c60689e 6343
a243b558
JF
6344openbsd*)
6345 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6346 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6347 else
6348 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6349 fi
6350 ;;
9c60689e 6351
a243b558
JF
6352osf3* | osf4* | osf5*)
6353 lt_cv_deplibs_check_method=pass_all
6354 ;;
9c60689e 6355
a243b558
JF
6356rdos*)
6357 lt_cv_deplibs_check_method=pass_all
9c60689e 6358 ;;
a243b558
JF
6359
6360solaris*)
6361 lt_cv_deplibs_check_method=pass_all
9c60689e
DWT
6362 ;;
6363
a243b558
JF
6364sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6365 lt_cv_deplibs_check_method=pass_all
9c60689e
DWT
6366 ;;
6367
a243b558
JF
6368sysv4 | sysv4.3*)
6369 case $host_vendor in
6370 motorola)
6371 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]'
6372 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6373 ;;
6374 ncr)
6375 lt_cv_deplibs_check_method=pass_all
6376 ;;
6377 sequent)
6378 lt_cv_file_magic_cmd='/bin/file'
6379 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6380 ;;
6381 sni)
6382 lt_cv_file_magic_cmd='/bin/file'
6383 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6384 lt_cv_file_magic_test_file=/lib/libc.so
6385 ;;
6386 siemens)
6387 lt_cv_deplibs_check_method=pass_all
6388 ;;
6389 pc)
6390 lt_cv_deplibs_check_method=pass_all
6391 ;;
6392 esac
6393 ;;
9c60689e 6394
a243b558
JF
6395tpf*)
6396 lt_cv_deplibs_check_method=pass_all
6397 ;;
6398esac
9c60689e 6399
a243b558
JF
6400fi
6401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6402$as_echo "$lt_cv_deplibs_check_method" >&6; }
9c60689e 6403
a243b558
JF
6404file_magic_glob=
6405want_nocaseglob=no
6406if test "$build" = "$host"; then
6407 case $host_os in
6408 mingw* | pw32*)
6409 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6410 want_nocaseglob=yes
6411 else
6412 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6413 fi
6414 ;;
6415 esac
9c60689e 6416fi
9c60689e 6417
a243b558
JF
6418file_magic_cmd=$lt_cv_file_magic_cmd
6419deplibs_check_method=$lt_cv_deplibs_check_method
6420test -z "$deplibs_check_method" && deplibs_check_method=unknown
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
9c60689e 6441
9c60689e 6442
ee134472 6443if test -n "$ac_tool_prefix"; then
a243b558
JF
6444 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6445set dummy ${ac_tool_prefix}dlltool; ac_word=$2
ee134472
JF
6446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6447$as_echo_n "checking for $ac_word... " >&6; }
a243b558 6448if ${ac_cv_prog_DLLTOOL+:} false; then :
ee134472
JF
6449 $as_echo_n "(cached) " >&6
6450else
a243b558
JF
6451 if test -n "$DLLTOOL"; then
6452 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
ee134472
JF
6453else
6454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6455for as_dir in $PATH
6456do
6457 IFS=$as_save_IFS
6458 test -z "$as_dir" && as_dir=.
6459 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 6460 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 6461 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
ee134472
JF
6462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6463 break 2
6464 fi
6465done
6466 done
6467IFS=$as_save_IFS
6468
6469fi
6470fi
a243b558
JF
6471DLLTOOL=$ac_cv_prog_DLLTOOL
6472if test -n "$DLLTOOL"; then
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6474$as_echo "$DLLTOOL" >&6; }
ee134472
JF
6475else
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6477$as_echo "no" >&6; }
6478fi
6479
6480
6481fi
a243b558
JF
6482if test -z "$ac_cv_prog_DLLTOOL"; then
6483 ac_ct_DLLTOOL=$DLLTOOL
6484 # Extract the first word of "dlltool", so it can be a program name with args.
6485set dummy dlltool; ac_word=$2
ee134472
JF
6486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6487$as_echo_n "checking for $ac_word... " >&6; }
a243b558 6488if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
ee134472
JF
6489 $as_echo_n "(cached) " >&6
6490else
a243b558
JF
6491 if test -n "$ac_ct_DLLTOOL"; then
6492 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
ee134472
JF
6493else
6494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6495for as_dir in $PATH
6496do
6497 IFS=$as_save_IFS
6498 test -z "$as_dir" && as_dir=.
6499 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 6500 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 6501 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
ee134472
JF
6502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6503 break 2
6504 fi
6505done
6506 done
6507IFS=$as_save_IFS
6508
6509fi
6510fi
a243b558
JF
6511ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6512if test -n "$ac_ct_DLLTOOL"; then
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6514$as_echo "$ac_ct_DLLTOOL" >&6; }
ee134472
JF
6515else
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6517$as_echo "no" >&6; }
6518fi
6519
a243b558
JF
6520 if test "x$ac_ct_DLLTOOL" = x; then
6521 DLLTOOL="false"
ee134472
JF
6522 else
6523 case $cross_compiling:$ac_tool_warned in
6524yes:)
6525{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6526$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6527ac_tool_warned=yes ;;
6528esac
a243b558 6529 DLLTOOL=$ac_ct_DLLTOOL
ee134472
JF
6530 fi
6531else
a243b558 6532 DLLTOOL="$ac_cv_prog_DLLTOOL"
ee134472
JF
6533fi
6534
a243b558
JF
6535test -z "$DLLTOOL" && DLLTOOL=dlltool
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6547$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6548if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
ee134472
JF
6549 $as_echo_n "(cached) " >&6
6550else
a243b558
JF
6551 lt_cv_sharedlib_from_linklib_cmd='unknown'
6552
6553case $host_os in
6554cygwin* | mingw* | pw32* | cegcc*)
6555 # two different shell functions defined in ltmain.sh
6556 # decide which to use based on capabilities of $DLLTOOL
6557 case `$DLLTOOL --help 2>&1` in
6558 *--identify-strict*)
6559 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6560 ;;
6561 *)
6562 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6563 ;;
6564 esac
6565 ;;
6566*)
6567 # fallback: assume linklib IS sharedlib
6568 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6569 ;;
6570esac
6571
ee134472 6572fi
a243b558
JF
6573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6574$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6575sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6576test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
ee134472
JF
6577
6578
6579
6580
6581
9c60689e 6582
a243b558
JF
6583
6584if test -n "$ac_tool_prefix"; then
6585 for ac_prog in ar
6586 do
6587 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6588set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9c60689e
DWT
6589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6590$as_echo_n "checking for $ac_word... " >&6; }
a243b558 6591if ${ac_cv_prog_AR+:} false; then :
9c60689e
DWT
6592 $as_echo_n "(cached) " >&6
6593else
a243b558
JF
6594 if test -n "$AR"; then
6595 ac_cv_prog_AR="$AR" # Let the user override the test.
9c60689e
DWT
6596else
6597as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6598for as_dir in $PATH
6599do
6600 IFS=$as_save_IFS
6601 test -z "$as_dir" && as_dir=.
6602 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 6603 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 6604 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
9c60689e
DWT
6605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6606 break 2
6607 fi
6608done
6609 done
6610IFS=$as_save_IFS
6611
6612fi
6613fi
a243b558
JF
6614AR=$ac_cv_prog_AR
6615if test -n "$AR"; then
6616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6617$as_echo "$AR" >&6; }
9c60689e
DWT
6618else
6619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6620$as_echo "no" >&6; }
6621fi
6622
6623
a243b558
JF
6624 test -n "$AR" && break
6625 done
9c60689e 6626fi
a243b558
JF
6627if test -z "$AR"; then
6628 ac_ct_AR=$AR
6629 for ac_prog in ar
6630do
6631 # Extract the first word of "$ac_prog", so it can be a program name with args.
6632set dummy $ac_prog; ac_word=$2
9c60689e
DWT
6633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6634$as_echo_n "checking for $ac_word... " >&6; }
a243b558 6635if ${ac_cv_prog_ac_ct_AR+:} false; then :
9c60689e
DWT
6636 $as_echo_n "(cached) " >&6
6637else
a243b558
JF
6638 if test -n "$ac_ct_AR"; then
6639 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9c60689e
DWT
6640else
6641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6642for as_dir in $PATH
6643do
6644 IFS=$as_save_IFS
6645 test -z "$as_dir" && as_dir=.
6646 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 6647 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 6648 ac_cv_prog_ac_ct_AR="$ac_prog"
9c60689e
DWT
6649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6650 break 2
6651 fi
6652done
6653 done
6654IFS=$as_save_IFS
6655
6656fi
6657fi
a243b558
JF
6658ac_ct_AR=$ac_cv_prog_ac_ct_AR
6659if test -n "$ac_ct_AR"; then
6660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6661$as_echo "$ac_ct_AR" >&6; }
9c60689e
DWT
6662else
6663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6664$as_echo "no" >&6; }
6665fi
6666
a243b558
JF
6667
6668 test -n "$ac_ct_AR" && break
6669done
6670
6671 if test "x$ac_ct_AR" = x; then
6672 AR="false"
9c60689e
DWT
6673 else
6674 case $cross_compiling:$ac_tool_warned in
6675yes:)
6676{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6677$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6678ac_tool_warned=yes ;;
6679esac
a243b558 6680 AR=$ac_ct_AR
9c60689e 6681 fi
a243b558
JF
6682fi
6683
6684: ${AR=ar}
6685: ${AR_FLAGS=cru}
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6698$as_echo_n "checking for archiver @FILE support... " >&6; }
6699if ${lt_cv_ar_at_file+:} false; then :
6700 $as_echo_n "(cached) " >&6
9c60689e 6701else
a243b558
JF
6702 lt_cv_ar_at_file=no
6703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6704/* end confdefs.h. */
6705
6706int
6707main ()
6708{
6709
6710 ;
6711 return 0;
6712}
6713_ACEOF
6714if ac_fn_c_try_compile "$LINENO"; then :
6715 echo conftest.$ac_objext > conftest.lst
6716 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6717 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6718 (eval $lt_ar_try) 2>&5
6719 ac_status=$?
6720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6721 test $ac_status = 0; }
6722 if test "$ac_status" -eq 0; then
6723 # Ensure the archiver fails upon bogus file names.
6724 rm -f conftest.$ac_objext libconftest.a
6725 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6726 (eval $lt_ar_try) 2>&5
6727 ac_status=$?
6728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6729 test $ac_status = 0; }
6730 if test "$ac_status" -ne 0; then
6731 lt_cv_ar_at_file=@
6732 fi
6733 fi
6734 rm -f conftest.* libconftest.a
6735
9c60689e 6736fi
a243b558 6737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9c60689e 6738
a243b558
JF
6739fi
6740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6741$as_echo "$lt_cv_ar_at_file" >&6; }
6742
6743if test "x$lt_cv_ar_at_file" = xno; then
6744 archiver_list_spec=
6745else
6746 archiver_list_spec=$lt_cv_ar_at_file
6747fi
6748
6749
6750
6751
6752
6753
6754
6755if test -n "$ac_tool_prefix"; then
6756 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6757set dummy ${ac_tool_prefix}strip; ac_word=$2
9c60689e
DWT
6758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6759$as_echo_n "checking for $ac_word... " >&6; }
a243b558 6760if ${ac_cv_prog_STRIP+:} false; then :
9c60689e
DWT
6761 $as_echo_n "(cached) " >&6
6762else
a243b558
JF
6763 if test -n "$STRIP"; then
6764 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9c60689e
DWT
6765else
6766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6767for as_dir in $PATH
6768do
6769 IFS=$as_save_IFS
6770 test -z "$as_dir" && as_dir=.
6771 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 6772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 6773 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9c60689e
DWT
6774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6775 break 2
6776 fi
6777done
6778 done
6779IFS=$as_save_IFS
6780
6781fi
6782fi
a243b558
JF
6783STRIP=$ac_cv_prog_STRIP
6784if test -n "$STRIP"; then
6785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6786$as_echo "$STRIP" >&6; }
9c60689e
DWT
6787else
6788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6789$as_echo "no" >&6; }
6790fi
6791
6792
6793fi
a243b558
JF
6794if test -z "$ac_cv_prog_STRIP"; then
6795 ac_ct_STRIP=$STRIP
6796 # Extract the first word of "strip", so it can be a program name with args.
6797set dummy strip; ac_word=$2
9c60689e
DWT
6798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6799$as_echo_n "checking for $ac_word... " >&6; }
a243b558 6800if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
9c60689e
DWT
6801 $as_echo_n "(cached) " >&6
6802else
a243b558
JF
6803 if test -n "$ac_ct_STRIP"; then
6804 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9c60689e
DWT
6805else
6806as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6807for as_dir in $PATH
6808do
6809 IFS=$as_save_IFS
6810 test -z "$as_dir" && as_dir=.
6811 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 6812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 6813 ac_cv_prog_ac_ct_STRIP="strip"
9c60689e
DWT
6814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6815 break 2
6816 fi
6817done
6818 done
6819IFS=$as_save_IFS
6820
6821fi
6822fi
a243b558
JF
6823ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6824if test -n "$ac_ct_STRIP"; then
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6826$as_echo "$ac_ct_STRIP" >&6; }
9c60689e
DWT
6827else
6828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6829$as_echo "no" >&6; }
6830fi
6831
a243b558
JF
6832 if test "x$ac_ct_STRIP" = x; then
6833 STRIP=":"
9c60689e
DWT
6834 else
6835 case $cross_compiling:$ac_tool_warned in
6836yes:)
6837{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6838$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6839ac_tool_warned=yes ;;
6840esac
a243b558 6841 STRIP=$ac_ct_STRIP
9c60689e
DWT
6842 fi
6843else
a243b558 6844 STRIP="$ac_cv_prog_STRIP"
9c60689e
DWT
6845fi
6846
a243b558
JF
6847test -z "$STRIP" && STRIP=:
6848
6849
6850
6851
6852
6853
6854if test -n "$ac_tool_prefix"; then
6855 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6856set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9c60689e
DWT
6857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6858$as_echo_n "checking for $ac_word... " >&6; }
a243b558 6859if ${ac_cv_prog_RANLIB+:} false; then :
9c60689e
DWT
6860 $as_echo_n "(cached) " >&6
6861else
a243b558
JF
6862 if test -n "$RANLIB"; then
6863 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9c60689e
DWT
6864else
6865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6866for as_dir in $PATH
6867do
6868 IFS=$as_save_IFS
6869 test -z "$as_dir" && as_dir=.
6870 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 6871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 6872 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9c60689e
DWT
6873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6874 break 2
6875 fi
6876done
6877 done
6878IFS=$as_save_IFS
6879
6880fi
6881fi
a243b558
JF
6882RANLIB=$ac_cv_prog_RANLIB
6883if test -n "$RANLIB"; then
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6885$as_echo "$RANLIB" >&6; }
9c60689e
DWT
6886else
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6888$as_echo "no" >&6; }
6889fi
6890
6891
6892fi
a243b558
JF
6893if test -z "$ac_cv_prog_RANLIB"; then
6894 ac_ct_RANLIB=$RANLIB
6895 # Extract the first word of "ranlib", so it can be a program name with args.
6896set dummy ranlib; ac_word=$2
9c60689e
DWT
6897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6898$as_echo_n "checking for $ac_word... " >&6; }
a243b558 6899if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
9c60689e
DWT
6900 $as_echo_n "(cached) " >&6
6901else
a243b558
JF
6902 if test -n "$ac_ct_RANLIB"; then
6903 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9c60689e
DWT
6904else
6905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6906for as_dir in $PATH
6907do
6908 IFS=$as_save_IFS
6909 test -z "$as_dir" && as_dir=.
6910 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 6911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 6912 ac_cv_prog_ac_ct_RANLIB="ranlib"
9c60689e
DWT
6913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6914 break 2
6915 fi
6916done
6917 done
6918IFS=$as_save_IFS
6919
6920fi
6921fi
a243b558
JF
6922ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6923if test -n "$ac_ct_RANLIB"; then
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6925$as_echo "$ac_ct_RANLIB" >&6; }
9c60689e
DWT
6926else
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6928$as_echo "no" >&6; }
6929fi
6930
a243b558
JF
6931 if test "x$ac_ct_RANLIB" = x; then
6932 RANLIB=":"
9c60689e
DWT
6933 else
6934 case $cross_compiling:$ac_tool_warned in
6935yes:)
6936{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6937$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6938ac_tool_warned=yes ;;
6939esac
a243b558 6940 RANLIB=$ac_ct_RANLIB
9c60689e
DWT
6941 fi
6942else
a243b558 6943 RANLIB="$ac_cv_prog_RANLIB"
9c60689e
DWT
6944fi
6945
a243b558
JF
6946test -z "$RANLIB" && RANLIB=:
6947
6948
9c60689e 6949
9c60689e
DWT
6950
6951
a243b558
JF
6952
6953# Determine commands to create old-style static archives.
6954old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6955old_postinstall_cmds='chmod 644 $oldlib'
6956old_postuninstall_cmds=
6957
6958if test -n "$RANLIB"; then
6959 case $host_os in
6960 openbsd*)
6961 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6962 ;;
6963 *)
6964 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6965 ;;
6966 esac
6967 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
9c60689e
DWT
6968fi
6969
a243b558
JF
6970case $host_os in
6971 darwin*)
6972 lock_old_archive_extraction=yes ;;
6973 *)
6974 lock_old_archive_extraction=no ;;
9c60689e 6975esac
9c60689e 6976
9c60689e 6977
9c60689e
DWT
6978
6979
9c60689e 6980
9c60689e 6981
9c60689e
DWT
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
53ba6704 7009
9c60689e 7010
9c60689e 7011
9c60689e 7012
53ba6704 7013
a243b558
JF
7014
7015# If no C compiler was specified, use CC.
7016LTCC=${LTCC-"$CC"}
7017
7018# If no C compiler flags were specified, use CFLAGS.
7019LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7020
7021# Allow CC to be a program name with arguments.
7022compiler=$CC
7023
7024
7025# Check for command to grab the raw symbol name followed by C symbol from nm.
7026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7027$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7028if ${lt_cv_sys_global_symbol_pipe+:} false; then :
ee134472
JF
7029 $as_echo_n "(cached) " >&6
7030else
ee134472 7031
a243b558
JF
7032# These are sane defaults that work on at least a few old systems.
7033# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9c60689e 7034
a243b558
JF
7035# Character class describing NM global symbol codes.
7036symcode='[BCDEGRST]'
9c60689e 7037
a243b558
JF
7038# Regexp to match symbols that can be accessed directly from C.
7039sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9c60689e 7040
a243b558
JF
7041# Define system-specific variables.
7042case $host_os in
7043aix*)
7044 symcode='[BCDT]'
7045 ;;
7046cygwin* | mingw* | pw32* | cegcc*)
7047 symcode='[ABCDGISTW]'
7048 ;;
7049hpux*)
7050 if test "$host_cpu" = ia64; then
7051 symcode='[ABCDEGRST]'
7052 fi
7053 ;;
7054irix* | nonstopux*)
7055 symcode='[BCDEGRST]'
7056 ;;
7057osf*)
7058 symcode='[BCDEGQRST]'
7059 ;;
7060solaris*)
7061 symcode='[BDRT]'
7062 ;;
7063sco3.2v5*)
7064 symcode='[DT]'
7065 ;;
7066sysv4.2uw2*)
7067 symcode='[DT]'
7068 ;;
7069sysv5* | sco5v6* | unixware* | OpenUNIX*)
7070 symcode='[ABDT]'
7071 ;;
7072sysv4)
7073 symcode='[DFNSTU]'
7074 ;;
7075esac
9c60689e 7076
a243b558
JF
7077# If we're using GNU nm, then use its standard symbol codes.
7078case `$NM -V 2>&1` in
7079*GNU* | *'with BFD'*)
7080 symcode='[ABCDGIRSTW]' ;;
7081esac
9c60689e 7082
a243b558
JF
7083# Transform an extracted symbol line into a proper C declaration.
7084# Some systems (esp. on ia64) link data and code symbols differently,
7085# so use this general approach.
7086lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9c60689e 7087
a243b558
JF
7088# Transform an extracted symbol line into symbol name and symbol address
7089lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7090lt_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 7091
a243b558
JF
7092# Handle CRLF in mingw tool chain
7093opt_cr=
7094case $build_os in
7095mingw*)
7096 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7097 ;;
7098esac
9c60689e 7099
a243b558
JF
7100# Try without a prefix underscore, then with it.
7101for ac_symprfx in "" "_"; do
9c60689e 7102
a243b558
JF
7103 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7104 symxfrm="\\1 $ac_symprfx\\2 \\2"
9c60689e 7105
a243b558
JF
7106 # Write the raw and C identifiers.
7107 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7108 # Fake it for dumpbin and say T for any non-static function
7109 # and D for any global variable.
7110 # Also find C++ and __fastcall symbols from MSVC++,
7111 # which start with @ or ?.
7112 lt_cv_sys_global_symbol_pipe="$AWK '"\
7113" {last_section=section; section=\$ 3};"\
7114" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7115" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7116" \$ 0!~/External *\|/{next};"\
7117" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7118" {if(hide[section]) next};"\
7119" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7120" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7121" s[1]~/^[@?]/{print s[1], s[1]; next};"\
7122" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7123" ' prfx=^$ac_symprfx"
7124 else
7125 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7126 fi
7127 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
9c60689e 7128
a243b558
JF
7129 # Check to see that the pipe works correctly.
7130 pipe_works=no
9c60689e 7131
a243b558
JF
7132 rm -rf conftest*
7133 cat > conftest.$ac_ext <<_LT_EOF
7134#ifdef __cplusplus
7135extern "C" {
7136#endif
7137char nm_test_var;
7138void nm_test_func(void);
7139void nm_test_func(void){}
7140#ifdef __cplusplus
7141}
7142#endif
7143int main(){nm_test_var='a';nm_test_func();return(0);}
7144_LT_EOF
9c60689e 7145
a243b558
JF
7146 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7147 (eval $ac_compile) 2>&5
7148 ac_status=$?
7149 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7150 test $ac_status = 0; }; then
7151 # Now try to grab the symbols.
7152 nlist=conftest.nm
7153 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7154 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7155 ac_status=$?
7156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7157 test $ac_status = 0; } && test -s "$nlist"; then
7158 # Try sorting and uniquifying the output.
7159 if sort "$nlist" | uniq > "$nlist"T; then
7160 mv -f "$nlist"T "$nlist"
7161 else
7162 rm -f "$nlist"T
7163 fi
9c60689e 7164
a243b558
JF
7165 # Make sure that we snagged all the symbols we need.
7166 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7167 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7168 cat <<_LT_EOF > conftest.$ac_ext
7169/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7170#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7171/* DATA imports from DLLs on WIN32 con't be const, because runtime
7172 relocations are performed -- see ld's documentation on pseudo-relocs. */
7173# define LT_DLSYM_CONST
7174#elif defined(__osf__)
7175/* This system does not cope well with relocations in const data. */
7176# define LT_DLSYM_CONST
7177#else
7178# define LT_DLSYM_CONST const
7179#endif
9c60689e 7180
a243b558
JF
7181#ifdef __cplusplus
7182extern "C" {
7183#endif
9c60689e 7184
a243b558
JF
7185_LT_EOF
7186 # Now generate the symbol file.
7187 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9c60689e 7188
a243b558 7189 cat <<_LT_EOF >> conftest.$ac_ext
9c60689e 7190
a243b558
JF
7191/* The mapping between symbol names and symbols. */
7192LT_DLSYM_CONST struct {
7193 const char *name;
7194 void *address;
7195}
7196lt__PROGRAM__LTX_preloaded_symbols[] =
7197{
7198 { "@PROGRAM@", (void *) 0 },
7199_LT_EOF
7200 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7201 cat <<\_LT_EOF >> conftest.$ac_ext
7202 {0, (void *) 0}
7203};
9c60689e 7204
a243b558
JF
7205/* This works around a problem in FreeBSD linker */
7206#ifdef FREEBSD_WORKAROUND
7207static const void *lt_preloaded_setup() {
7208 return lt__PROGRAM__LTX_preloaded_symbols;
7209}
7210#endif
9c60689e 7211
a243b558
JF
7212#ifdef __cplusplus
7213}
7214#endif
7215_LT_EOF
7216 # Now try linking the two files.
7217 mv conftest.$ac_objext conftstm.$ac_objext
7218 lt_globsym_save_LIBS=$LIBS
7219 lt_globsym_save_CFLAGS=$CFLAGS
7220 LIBS="conftstm.$ac_objext"
7221 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7222 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7223 (eval $ac_link) 2>&5
7224 ac_status=$?
7225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7226 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7227 pipe_works=yes
7228 fi
7229 LIBS=$lt_globsym_save_LIBS
7230 CFLAGS=$lt_globsym_save_CFLAGS
7231 else
7232 echo "cannot find nm_test_func in $nlist" >&5
7233 fi
7234 else
7235 echo "cannot find nm_test_var in $nlist" >&5
7236 fi
7237 else
7238 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7239 fi
7240 else
7241 echo "$progname: failed program was:" >&5
7242 cat conftest.$ac_ext >&5
7243 fi
7244 rm -rf conftest* conftst*
9c60689e 7245
a243b558
JF
7246 # Do not use the global_symbol_pipe unless it works.
7247 if test "$pipe_works" = yes; then
7248 break
7249 else
7250 lt_cv_sys_global_symbol_pipe=
7251 fi
7252done
9c60689e 7253
9c60689e 7254fi
9c60689e 7255
a243b558
JF
7256if test -z "$lt_cv_sys_global_symbol_pipe"; then
7257 lt_cv_sys_global_symbol_to_cdecl=
9c60689e 7258fi
a243b558
JF
7259if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7261$as_echo "failed" >&6; }
9c60689e 7262else
a243b558
JF
7263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7264$as_echo "ok" >&6; }
9c60689e
DWT
7265fi
7266
a243b558
JF
7267# Response file support.
7268if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7269 nm_file_list_spec='@'
7270elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7271 nm_file_list_spec='@'
9c60689e 7272fi
9c60689e 7273
9c60689e 7274
9c60689e 7275
9c60689e 7276
9c60689e 7277
9c60689e
DWT
7278
7279
9c60689e 7280
9c60689e 7281
9c60689e
DWT
7282
7283
7284
ee134472
JF
7285
7286
9c60689e
DWT
7287
7288
7289
7290
7291
7292
7293
7294
7295
549f29b5 7296
549f29b5
DWT
7297
7298
549f29b5 7299
a243b558
JF
7300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7301$as_echo_n "checking for sysroot... " >&6; }
549f29b5 7302
a243b558
JF
7303# Check whether --with-sysroot was given.
7304if test "${with_sysroot+set}" = set; then :
7305 withval=$with_sysroot;
9c60689e 7306else
a243b558 7307 with_sysroot=no
9c60689e
DWT
7308fi
7309
7310
a243b558
JF
7311lt_sysroot=
7312case ${with_sysroot} in #(
7313 yes)
7314 if test "$GCC" = yes; then
7315 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7316 fi
7317 ;; #(
7318 /*)
7319 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7320 ;; #(
7321 no|'')
7322 ;; #(
7323 *)
7324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7325$as_echo "${with_sysroot}" >&6; }
7326 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7327 ;;
7328esac
9c60689e 7329
a243b558
JF
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7331$as_echo "${lt_sysroot:-no}" >&6; }
9c60689e
DWT
7332
7333
7334
7335
7336
a243b558
JF
7337# Check whether --enable-libtool-lock was given.
7338if test "${enable_libtool_lock+set}" = set; then :
7339 enableval=$enable_libtool_lock;
9c60689e
DWT
7340fi
7341
a243b558 7342test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9c60689e 7343
a243b558
JF
7344# Some flags need to be propagated to the compiler or linker for good
7345# libtool support.
7346case $host in
7347ia64-*-hpux*)
7348 # Find out which ABI we are using.
7349 echo 'int i;' > conftest.$ac_ext
7350 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7351 (eval $ac_compile) 2>&5
7352 ac_status=$?
7353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7354 test $ac_status = 0; }; then
7355 case `/usr/bin/file conftest.$ac_objext` in
7356 *ELF-32*)
7357 HPUX_IA64_MODE="32"
7358 ;;
7359 *ELF-64*)
7360 HPUX_IA64_MODE="64"
7361 ;;
7362 esac
7363 fi
7364 rm -rf conftest*
7365 ;;
7366*-*-irix6*)
7367 # Find out which ABI we are using.
7368 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7369 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7370 (eval $ac_compile) 2>&5
7371 ac_status=$?
7372 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7373 test $ac_status = 0; }; then
7374 if test "$lt_cv_prog_gnu_ld" = yes; then
7375 case `/usr/bin/file conftest.$ac_objext` in
7376 *32-bit*)
7377 LD="${LD-ld} -melf32bsmip"
7378 ;;
7379 *N32*)
7380 LD="${LD-ld} -melf32bmipn32"
7381 ;;
7382 *64-bit*)
7383 LD="${LD-ld} -melf64bmip"
7384 ;;
7385 esac
7386 else
7387 case `/usr/bin/file conftest.$ac_objext` in
7388 *32-bit*)
7389 LD="${LD-ld} -32"
7390 ;;
7391 *N32*)
7392 LD="${LD-ld} -n32"
7393 ;;
7394 *64-bit*)
7395 LD="${LD-ld} -64"
7396 ;;
7397 esac
7398 fi
7399 fi
7400 rm -rf conftest*
7401 ;;
9c60689e 7402
a243b558
JF
7403x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7404s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7405 # Find out which ABI we are using.
7406 echo 'int i;' > conftest.$ac_ext
7407 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7408 (eval $ac_compile) 2>&5
7409 ac_status=$?
7410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7411 test $ac_status = 0; }; then
7412 case `/usr/bin/file conftest.o` in
7413 *32-bit*)
7414 case $host in
7415 x86_64-*kfreebsd*-gnu)
7416 LD="${LD-ld} -m elf_i386_fbsd"
7417 ;;
7418 x86_64-*linux*)
7419 LD="${LD-ld} -m elf_i386"
7420 ;;
7421 ppc64-*linux*|powerpc64-*linux*)
7422 LD="${LD-ld} -m elf32ppclinux"
7423 ;;
7424 s390x-*linux*)
7425 LD="${LD-ld} -m elf_s390"
7426 ;;
7427 sparc64-*linux*)
7428 LD="${LD-ld} -m elf32_sparc"
7429 ;;
7430 esac
7431 ;;
7432 *64-bit*)
7433 case $host in
7434 x86_64-*kfreebsd*-gnu)
7435 LD="${LD-ld} -m elf_x86_64_fbsd"
7436 ;;
7437 x86_64-*linux*)
7438 LD="${LD-ld} -m elf_x86_64"
7439 ;;
7440 ppc*-*linux*|powerpc*-*linux*)
7441 LD="${LD-ld} -m elf64ppc"
7442 ;;
7443 s390*-*linux*|s390*-*tpf*)
7444 LD="${LD-ld} -m elf64_s390"
7445 ;;
7446 sparc*-*linux*)
7447 LD="${LD-ld} -m elf64_sparc"
7448 ;;
7449 esac
7450 ;;
7451 esac
7452 fi
7453 rm -rf conftest*
7454 ;;
9c60689e 7455
a243b558
JF
7456*-*-sco3.2v5*)
7457 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7458 SAVE_CFLAGS="$CFLAGS"
7459 CFLAGS="$CFLAGS -belf"
7460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7461$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7462if ${lt_cv_cc_needs_belf+:} false; then :
7463 $as_echo_n "(cached) " >&6
7464else
7465 ac_ext=c
7466ac_cpp='$CPP $CPPFLAGS'
7467ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7468ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7469ac_compiler_gnu=$ac_cv_c_compiler_gnu
9c60689e 7470
a243b558
JF
7471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7472/* end confdefs.h. */
9c60689e 7473
a243b558
JF
7474int
7475main ()
7476{
9c60689e 7477
a243b558
JF
7478 ;
7479 return 0;
7480}
7481_ACEOF
7482if ac_fn_c_try_link "$LINENO"; then :
7483 lt_cv_cc_needs_belf=yes
9c60689e 7484else
a243b558 7485 lt_cv_cc_needs_belf=no
9c60689e 7486fi
a243b558
JF
7487rm -f core conftest.err conftest.$ac_objext \
7488 conftest$ac_exeext conftest.$ac_ext
7489 ac_ext=c
7490ac_cpp='$CPP $CPPFLAGS'
7491ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7492ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7493ac_compiler_gnu=$ac_cv_c_compiler_gnu
9c60689e 7494
a243b558
JF
7495fi
7496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7497$as_echo "$lt_cv_cc_needs_belf" >&6; }
7498 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7499 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7500 CFLAGS="$SAVE_CFLAGS"
7501 fi
7502 ;;
7503*-*solaris*)
7504 # Find out which ABI we are using.
7505 echo 'int i;' > conftest.$ac_ext
7506 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7507 (eval $ac_compile) 2>&5
7508 ac_status=$?
7509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7510 test $ac_status = 0; }; then
7511 case `/usr/bin/file conftest.o` in
7512 *64-bit*)
7513 case $lt_cv_prog_gnu_ld in
7514 yes*)
7515 case $host in
7516 i?86-*-solaris*)
7517 LD="${LD-ld} -m elf_x86_64"
7518 ;;
7519 sparc*-*-solaris*)
7520 LD="${LD-ld} -m elf64_sparc"
7521 ;;
7522 esac
7523 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7524 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7525 LD="${LD-ld}_sol2"
7526 fi
7527 ;;
7528 *)
7529 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7530 LD="${LD-ld} -64"
7531 fi
7532 ;;
7533 esac
7534 ;;
7535 esac
7536 fi
7537 rm -rf conftest*
7538 ;;
7539esac
9c60689e 7540
a243b558 7541need_locks="$enable_libtool_lock"
9c60689e 7542
a243b558
JF
7543if test -n "$ac_tool_prefix"; then
7544 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7545set dummy ${ac_tool_prefix}mt; ac_word=$2
7546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7547$as_echo_n "checking for $ac_word... " >&6; }
7548if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7549 $as_echo_n "(cached) " >&6
7550else
7551 if test -n "$MANIFEST_TOOL"; then
7552 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7553else
7554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7555for as_dir in $PATH
7556do
7557 IFS=$as_save_IFS
7558 test -z "$as_dir" && as_dir=.
7559 for ac_exec_ext in '' $ac_executable_extensions; do
7560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7561 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7563 break 2
7564 fi
7565done
7566 done
7567IFS=$as_save_IFS
9c60689e 7568
a243b558
JF
7569fi
7570fi
7571MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7572if test -n "$MANIFEST_TOOL"; then
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7574$as_echo "$MANIFEST_TOOL" >&6; }
7575else
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7577$as_echo "no" >&6; }
7578fi
9c60689e
DWT
7579
7580
a243b558
JF
7581fi
7582if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7583 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7584 # Extract the first word of "mt", so it can be a program name with args.
7585set dummy mt; ac_word=$2
7586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7587$as_echo_n "checking for $ac_word... " >&6; }
7588if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7589 $as_echo_n "(cached) " >&6
7590else
7591 if test -n "$ac_ct_MANIFEST_TOOL"; then
7592 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7593else
7594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7595for as_dir in $PATH
7596do
7597 IFS=$as_save_IFS
7598 test -z "$as_dir" && as_dir=.
7599 for ac_exec_ext in '' $ac_executable_extensions; do
7600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7601 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7603 break 2
7604 fi
7605done
7606 done
7607IFS=$as_save_IFS
9c60689e 7608
a243b558
JF
7609fi
7610fi
7611ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7612if test -n "$ac_ct_MANIFEST_TOOL"; then
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7614$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7615else
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7617$as_echo "no" >&6; }
7618fi
9c60689e 7619
a243b558
JF
7620 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7621 MANIFEST_TOOL=":"
7622 else
7623 case $cross_compiling:$ac_tool_warned in
7624yes:)
7625{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7626$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7627ac_tool_warned=yes ;;
7628esac
7629 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7630 fi
7631else
7632 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7633fi
9c60689e 7634
a243b558
JF
7635test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7637$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7638if ${lt_cv_path_mainfest_tool+:} false; then :
7639 $as_echo_n "(cached) " >&6
7640else
7641 lt_cv_path_mainfest_tool=no
7642 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7643 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7644 cat conftest.err >&5
7645 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7646 lt_cv_path_mainfest_tool=yes
7647 fi
7648 rm -rf conftest*
7649fi
7650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7651$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7652if test "x$lt_cv_path_mainfest_tool" != xyes; then
7653 MANIFEST_TOOL=:
7654fi
9c60689e
DWT
7655
7656
7657
7658
7659
7660
a243b558
JF
7661 case $host_os in
7662 rhapsody* | darwin*)
7663 if test -n "$ac_tool_prefix"; then
7664 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7665set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7667$as_echo_n "checking for $ac_word... " >&6; }
7668if ${ac_cv_prog_DSYMUTIL+:} false; then :
7669 $as_echo_n "(cached) " >&6
7670else
7671 if test -n "$DSYMUTIL"; then
7672 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7673else
7674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7675for as_dir in $PATH
7676do
7677 IFS=$as_save_IFS
7678 test -z "$as_dir" && as_dir=.
7679 for ac_exec_ext in '' $ac_executable_extensions; do
7680 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7681 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7683 break 2
7684 fi
7685done
7686 done
7687IFS=$as_save_IFS
9c60689e 7688
a243b558
JF
7689fi
7690fi
7691DSYMUTIL=$ac_cv_prog_DSYMUTIL
7692if test -n "$DSYMUTIL"; then
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7694$as_echo "$DSYMUTIL" >&6; }
7695else
7696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7697$as_echo "no" >&6; }
7698fi
9c60689e
DWT
7699
7700
9c60689e 7701fi
a243b558
JF
7702if test -z "$ac_cv_prog_DSYMUTIL"; then
7703 ac_ct_DSYMUTIL=$DSYMUTIL
7704 # Extract the first word of "dsymutil", so it can be a program name with args.
7705set dummy dsymutil; ac_word=$2
7706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7707$as_echo_n "checking for $ac_word... " >&6; }
7708if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9c60689e
DWT
7709 $as_echo_n "(cached) " >&6
7710else
a243b558
JF
7711 if test -n "$ac_ct_DSYMUTIL"; then
7712 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9c60689e 7713else
a243b558
JF
7714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7715for as_dir in $PATH
7716do
7717 IFS=$as_save_IFS
7718 test -z "$as_dir" && as_dir=.
7719 for ac_exec_ext in '' $ac_executable_extensions; do
7720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7721 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7723 break 2
7724 fi
7725done
7726 done
7727IFS=$as_save_IFS
7728
9c60689e 7729fi
9c60689e 7730fi
a243b558
JF
7731ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7732if test -n "$ac_ct_DSYMUTIL"; then
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7734$as_echo "$ac_ct_DSYMUTIL" >&6; }
7735else
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7737$as_echo "no" >&6; }
7738fi
9c60689e 7739
a243b558
JF
7740 if test "x$ac_ct_DSYMUTIL" = x; then
7741 DSYMUTIL=":"
7742 else
7743 case $cross_compiling:$ac_tool_warned in
7744yes:)
7745{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7746$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7747ac_tool_warned=yes ;;
9c60689e 7748esac
a243b558
JF
7749 DSYMUTIL=$ac_ct_DSYMUTIL
7750 fi
7751else
7752 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7753fi
9c60689e 7754
a243b558
JF
7755 if test -n "$ac_tool_prefix"; then
7756 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7757set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7759$as_echo_n "checking for $ac_word... " >&6; }
7760if ${ac_cv_prog_NMEDIT+:} false; then :
9c60689e
DWT
7761 $as_echo_n "(cached) " >&6
7762else
a243b558
JF
7763 if test -n "$NMEDIT"; then
7764 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7765else
7766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7767for as_dir in $PATH
7768do
7769 IFS=$as_save_IFS
7770 test -z "$as_dir" && as_dir=.
7771 for ac_exec_ext in '' $ac_executable_extensions; do
7772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7773 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7775 break 2
7776 fi
7777done
9c60689e 7778 done
a243b558 7779IFS=$as_save_IFS
9c60689e 7780
a243b558
JF
7781fi
7782fi
7783NMEDIT=$ac_cv_prog_NMEDIT
7784if test -n "$NMEDIT"; then
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7786$as_echo "$NMEDIT" >&6; }
9c60689e
DWT
7787else
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7789$as_echo "no" >&6; }
7790fi
7791
7792
a243b558
JF
7793fi
7794if test -z "$ac_cv_prog_NMEDIT"; then
7795 ac_ct_NMEDIT=$NMEDIT
7796 # Extract the first word of "nmedit", so it can be a program name with args.
7797set dummy nmedit; ac_word=$2
7798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7799$as_echo_n "checking for $ac_word... " >&6; }
7800if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9c60689e
DWT
7801 $as_echo_n "(cached) " >&6
7802else
a243b558
JF
7803 if test -n "$ac_ct_NMEDIT"; then
7804 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7805else
7806as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7807for as_dir in $PATH
7808do
7809 IFS=$as_save_IFS
7810 test -z "$as_dir" && as_dir=.
7811 for ac_exec_ext in '' $ac_executable_extensions; do
7812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7813 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7815 break 2
7816 fi
7817done
9c60689e 7818 done
a243b558 7819IFS=$as_save_IFS
9c60689e 7820
a243b558
JF
7821fi
7822fi
7823ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7824if test -n "$ac_ct_NMEDIT"; then
7825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7826$as_echo "$ac_ct_NMEDIT" >&6; }
9c60689e
DWT
7827else
7828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7829$as_echo "no" >&6; }
7830fi
7831
a243b558
JF
7832 if test "x$ac_ct_NMEDIT" = x; then
7833 NMEDIT=":"
9c60689e 7834 else
a243b558
JF
7835 case $cross_compiling:$ac_tool_warned in
7836yes:)
7837{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7838$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7839ac_tool_warned=yes ;;
7840esac
7841 NMEDIT=$ac_ct_NMEDIT
9c60689e 7842 fi
a243b558
JF
7843else
7844 NMEDIT="$ac_cv_prog_NMEDIT"
9c60689e
DWT
7845fi
7846
a243b558
JF
7847 if test -n "$ac_tool_prefix"; then
7848 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7849set dummy ${ac_tool_prefix}lipo; ac_word=$2
7850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7851$as_echo_n "checking for $ac_word... " >&6; }
7852if ${ac_cv_prog_LIPO+:} false; then :
7853 $as_echo_n "(cached) " >&6
7854else
7855 if test -n "$LIPO"; then
7856 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7857else
7858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7859for as_dir in $PATH
7860do
7861 IFS=$as_save_IFS
7862 test -z "$as_dir" && as_dir=.
7863 for ac_exec_ext in '' $ac_executable_extensions; do
7864 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7865 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7867 break 2
7868 fi
7869done
7870 done
7871IFS=$as_save_IFS
9c60689e 7872
a243b558
JF
7873fi
7874fi
7875LIPO=$ac_cv_prog_LIPO
7876if test -n "$LIPO"; then
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7878$as_echo "$LIPO" >&6; }
7879else
7880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7881$as_echo "no" >&6; }
7882fi
9c60689e 7883
9c60689e 7884
a243b558
JF
7885fi
7886if test -z "$ac_cv_prog_LIPO"; then
7887 ac_ct_LIPO=$LIPO
7888 # Extract the first word of "lipo", so it can be a program name with args.
7889set dummy lipo; ac_word=$2
7890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7891$as_echo_n "checking for $ac_word... " >&6; }
7892if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9c60689e
DWT
7893 $as_echo_n "(cached) " >&6
7894else
a243b558
JF
7895 if test -n "$ac_ct_LIPO"; then
7896 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7897else
7898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7899for as_dir in $PATH
7900do
7901 IFS=$as_save_IFS
7902 test -z "$as_dir" && as_dir=.
7903 for ac_exec_ext in '' $ac_executable_extensions; do
7904 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7905 ac_cv_prog_ac_ct_LIPO="lipo"
7906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7907 break 2
7908 fi
7909done
7910 done
7911IFS=$as_save_IFS
9c60689e
DWT
7912
7913fi
a243b558
JF
7914fi
7915ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7916if test -n "$ac_ct_LIPO"; then
7917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7918$as_echo "$ac_ct_LIPO" >&6; }
9c60689e 7919else
a243b558
JF
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7921$as_echo "no" >&6; }
9c60689e
DWT
7922fi
7923
a243b558
JF
7924 if test "x$ac_ct_LIPO" = x; then
7925 LIPO=":"
7926 else
7927 case $cross_compiling:$ac_tool_warned in
7928yes:)
7929{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7930$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7931ac_tool_warned=yes ;;
7932esac
7933 LIPO=$ac_ct_LIPO
7934 fi
7935else
7936 LIPO="$ac_cv_prog_LIPO"
9c60689e
DWT
7937fi
7938
a243b558
JF
7939 if test -n "$ac_tool_prefix"; then
7940 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7941set dummy ${ac_tool_prefix}otool; ac_word=$2
7942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7943$as_echo_n "checking for $ac_word... " >&6; }
7944if ${ac_cv_prog_OTOOL+:} false; then :
7945 $as_echo_n "(cached) " >&6
7946else
7947 if test -n "$OTOOL"; then
7948 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7949else
7950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7951for as_dir in $PATH
7952do
7953 IFS=$as_save_IFS
7954 test -z "$as_dir" && as_dir=.
7955 for ac_exec_ext in '' $ac_executable_extensions; do
7956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7957 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7959 break 2
7960 fi
7961done
7962 done
7963IFS=$as_save_IFS
9c60689e 7964
a243b558
JF
7965fi
7966fi
7967OTOOL=$ac_cv_prog_OTOOL
7968if test -n "$OTOOL"; then
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7970$as_echo "$OTOOL" >&6; }
7971else
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7973$as_echo "no" >&6; }
7974fi
9c60689e
DWT
7975
7976
a243b558
JF
7977fi
7978if test -z "$ac_cv_prog_OTOOL"; then
7979 ac_ct_OTOOL=$OTOOL
7980 # Extract the first word of "otool", so it can be a program name with args.
7981set dummy otool; ac_word=$2
7982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7983$as_echo_n "checking for $ac_word... " >&6; }
7984if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7985 $as_echo_n "(cached) " >&6
7986else
7987 if test -n "$ac_ct_OTOOL"; then
7988 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7989else
7990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7991for as_dir in $PATH
7992do
7993 IFS=$as_save_IFS
7994 test -z "$as_dir" && as_dir=.
7995 for ac_exec_ext in '' $ac_executable_extensions; do
7996 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7997 ac_cv_prog_ac_ct_OTOOL="otool"
7998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7999 break 2
8000 fi
8001done
8002 done
8003IFS=$as_save_IFS
9c60689e 8004
a243b558
JF
8005fi
8006fi
8007ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8008if test -n "$ac_ct_OTOOL"; then
8009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8010$as_echo "$ac_ct_OTOOL" >&6; }
8011else
8012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8013$as_echo "no" >&6; }
8014fi
9c60689e 8015
a243b558
JF
8016 if test "x$ac_ct_OTOOL" = x; then
8017 OTOOL=":"
8018 else
8019 case $cross_compiling:$ac_tool_warned in
8020yes:)
8021{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8022$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8023ac_tool_warned=yes ;;
8024esac
8025 OTOOL=$ac_ct_OTOOL
8026 fi
8027else
8028 OTOOL="$ac_cv_prog_OTOOL"
8029fi
9c60689e 8030
a243b558
JF
8031 if test -n "$ac_tool_prefix"; then
8032 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8033set dummy ${ac_tool_prefix}otool64; ac_word=$2
8034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8035$as_echo_n "checking for $ac_word... " >&6; }
8036if ${ac_cv_prog_OTOOL64+:} false; then :
8037 $as_echo_n "(cached) " >&6
8038else
8039 if test -n "$OTOOL64"; then
8040 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8041else
8042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8043for as_dir in $PATH
8044do
8045 IFS=$as_save_IFS
8046 test -z "$as_dir" && as_dir=.
8047 for ac_exec_ext in '' $ac_executable_extensions; do
8048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8049 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8051 break 2
8052 fi
8053done
8054 done
8055IFS=$as_save_IFS
9c60689e 8056
a243b558
JF
8057fi
8058fi
8059OTOOL64=$ac_cv_prog_OTOOL64
8060if test -n "$OTOOL64"; then
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8062$as_echo "$OTOOL64" >&6; }
8063else
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8065$as_echo "no" >&6; }
8066fi
9c60689e 8067
9c60689e 8068
a243b558
JF
8069fi
8070if test -z "$ac_cv_prog_OTOOL64"; then
8071 ac_ct_OTOOL64=$OTOOL64
8072 # Extract the first word of "otool64", so it can be a program name with args.
8073set dummy otool64; ac_word=$2
8074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8075$as_echo_n "checking for $ac_word... " >&6; }
8076if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8077 $as_echo_n "(cached) " >&6
8078else
8079 if test -n "$ac_ct_OTOOL64"; then
8080 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8081else
8082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8083for as_dir in $PATH
8084do
8085 IFS=$as_save_IFS
8086 test -z "$as_dir" && as_dir=.
8087 for ac_exec_ext in '' $ac_executable_extensions; do
8088 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8089 ac_cv_prog_ac_ct_OTOOL64="otool64"
8090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8091 break 2
8092 fi
8093done
8094 done
8095IFS=$as_save_IFS
9c60689e 8096
a243b558
JF
8097fi
8098fi
8099ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8100if test -n "$ac_ct_OTOOL64"; then
8101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8102$as_echo "$ac_ct_OTOOL64" >&6; }
8103else
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8105$as_echo "no" >&6; }
8106fi
9c60689e 8107
a243b558
JF
8108 if test "x$ac_ct_OTOOL64" = x; then
8109 OTOOL64=":"
8110 else
8111 case $cross_compiling:$ac_tool_warned in
8112yes:)
8113{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8114$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8115ac_tool_warned=yes ;;
8116esac
8117 OTOOL64=$ac_ct_OTOOL64
8118 fi
8119else
8120 OTOOL64="$ac_cv_prog_OTOOL64"
8121fi
ee134472 8122
9c60689e 8123
9c60689e 8124
9c60689e 8125
9c60689e 8126
9c60689e 8127
ee134472 8128
9c60689e 8129
9c60689e 8130
9c60689e 8131
9c60689e 8132
9c60689e 8133
9c60689e 8134
9c60689e 8135
9c60689e 8136
9c60689e 8137
9c60689e 8138
9c60689e 8139
9c60689e 8140
9c60689e 8141
9c60689e 8142
9c60689e 8143
9c60689e 8144
9c60689e 8145
9c60689e 8146
a243b558
JF
8147
8148
8149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8150$as_echo_n "checking for -single_module linker flag... " >&6; }
8151if ${lt_cv_apple_cc_single_mod+:} false; then :
ee134472
JF
8152 $as_echo_n "(cached) " >&6
8153else
a243b558
JF
8154 lt_cv_apple_cc_single_mod=no
8155 if test -z "${LT_MULTI_MODULE}"; then
8156 # By default we will add the -single_module flag. You can override
8157 # by either setting the environment variable LT_MULTI_MODULE
8158 # non-empty at configure time, or by adding -multi_module to the
8159 # link flags.
8160 rm -rf libconftest.dylib*
8161 echo "int foo(void){return 1;}" > conftest.c
8162 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8163-dynamiclib -Wl,-single_module conftest.c" >&5
8164 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8165 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8166 _lt_result=$?
8167 # If there is a non-empty error log, and "single_module"
8168 # appears in it, assume the flag caused a linker warning
8169 if test -s conftest.err && $GREP single_module conftest.err; then
8170 cat conftest.err >&5
8171 # Otherwise, if the output was created with a 0 exit code from
8172 # the compiler, it worked.
8173 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8174 lt_cv_apple_cc_single_mod=yes
8175 else
8176 cat conftest.err >&5
8177 fi
8178 rm -rf libconftest.dylib*
8179 rm -f conftest.*
8180 fi
ee134472 8181fi
a243b558
JF
8182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8183$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9c60689e 8184
a243b558
JF
8185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8186$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8187if ${lt_cv_ld_exported_symbols_list+:} false; then :
9c60689e
DWT
8188 $as_echo_n "(cached) " >&6
8189else
a243b558
JF
8190 lt_cv_ld_exported_symbols_list=no
8191 save_LDFLAGS=$LDFLAGS
8192 echo "_main" > conftest.sym
8193 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8195/* end confdefs.h. */
9c60689e 8196
a243b558
JF
8197int
8198main ()
8199{
9c60689e 8200
a243b558
JF
8201 ;
8202 return 0;
8203}
8204_ACEOF
8205if ac_fn_c_try_link "$LINENO"; then :
8206 lt_cv_ld_exported_symbols_list=yes
9c60689e 8207else
a243b558 8208 lt_cv_ld_exported_symbols_list=no
9c60689e 8209fi
a243b558
JF
8210rm -f core conftest.err conftest.$ac_objext \
8211 conftest$ac_exeext conftest.$ac_ext
8212 LDFLAGS="$save_LDFLAGS"
9c60689e
DWT
8213
8214fi
a243b558
JF
8215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8216$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9c60689e 8217
a243b558
JF
8218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8219$as_echo_n "checking for -force_load linker flag... " >&6; }
8220if ${lt_cv_ld_force_load+:} false; then :
9c60689e
DWT
8221 $as_echo_n "(cached) " >&6
8222else
a243b558
JF
8223 lt_cv_ld_force_load=no
8224 cat > conftest.c << _LT_EOF
8225int forced_loaded() { return 2;}
8226_LT_EOF
8227 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8228 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8229 echo "$AR cru libconftest.a conftest.o" >&5
8230 $AR cru libconftest.a conftest.o 2>&5
8231 echo "$RANLIB libconftest.a" >&5
8232 $RANLIB libconftest.a 2>&5
8233 cat > conftest.c << _LT_EOF
8234int main() { return 0;}
8235_LT_EOF
8236 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8237 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8238 _lt_result=$?
8239 if test -s conftest.err && $GREP force_load conftest.err; then
8240 cat conftest.err >&5
8241 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8242 lt_cv_ld_force_load=yes
8243 else
8244 cat conftest.err >&5
8245 fi
8246 rm -f conftest.err libconftest.a conftest conftest.c
8247 rm -rf conftest.dSYM
9c60689e
DWT
8248
8249fi
a243b558
JF
8250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8251$as_echo "$lt_cv_ld_force_load" >&6; }
8252 case $host_os in
8253 rhapsody* | darwin1.[012])
8254 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8255 darwin1.*)
8256 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8257 darwin*) # darwin 5.x on
8258 # if running on 10.5 or later, the deployment target defaults
8259 # to the OS version, if on x86, and 10.4, the deployment
8260 # target defaults to 10.4. Don't you love it?
8261 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8262 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8263 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8264 10.[012]*)
8265 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8266 10.*)
8267 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8268 esac
8269 ;;
8270 esac
8271 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8272 _lt_dar_single_mod='$single_module'
8273 fi
8274 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8275 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8276 else
8277 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8278 fi
8279 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8280 _lt_dsymutil='~$DSYMUTIL $lib || :'
8281 else
8282 _lt_dsymutil=
8283 fi
8284 ;;
8285 esac
9c60689e 8286
a243b558
JF
8287ac_ext=c
8288ac_cpp='$CPP $CPPFLAGS'
8289ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8290ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8291ac_compiler_gnu=$ac_cv_c_compiler_gnu
8292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8293$as_echo_n "checking how to run the C preprocessor... " >&6; }
8294# On Suns, sometimes $CPP names a directory.
8295if test -n "$CPP" && test -d "$CPP"; then
8296 CPP=
9c60689e 8297fi
a243b558
JF
8298if test -z "$CPP"; then
8299 if ${ac_cv_prog_CPP+:} false; then :
8300 $as_echo_n "(cached) " >&6
8301else
8302 # Double quotes because CPP needs to be expanded
8303 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8304 do
8305 ac_preproc_ok=false
8306for ac_c_preproc_warn_flag in '' yes
8307do
8308 # Use a header file that comes with gcc, so configuring glibc
8309 # with a fresh cross-compiler works.
8310 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8311 # <limits.h> exists even on freestanding compilers.
8312 # On the NeXT, cc -E runs the code through the compiler's parser,
8313 # not just through cpp. "Syntax error" is here to catch this case.
8314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8315/* end confdefs.h. */
8316#ifdef __STDC__
8317# include <limits.h>
8318#else
8319# include <assert.h>
8320#endif
8321 Syntax error
8322_ACEOF
8323if ac_fn_c_try_cpp "$LINENO"; then :
9c60689e 8324
a243b558
JF
8325else
8326 # Broken: fails on valid input.
8327continue
8328fi
8329rm -f conftest.err conftest.i conftest.$ac_ext
9c60689e 8330
a243b558
JF
8331 # OK, works on sane cases. Now check whether nonexistent headers
8332 # can be detected and how.
8333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8334/* end confdefs.h. */
8335#include <ac_nonexistent.h>
8336_ACEOF
8337if ac_fn_c_try_cpp "$LINENO"; then :
8338 # Broken: success on invalid input.
8339continue
8340else
8341 # Passes both tests.
8342ac_preproc_ok=:
8343break
8344fi
8345rm -f conftest.err conftest.i conftest.$ac_ext
9c60689e 8346
a243b558
JF
8347done
8348# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8349rm -f conftest.i conftest.err conftest.$ac_ext
8350if $ac_preproc_ok; then :
8351 break
8352fi
9c60689e 8353
a243b558
JF
8354 done
8355 ac_cv_prog_CPP=$CPP
9c60689e 8356
a243b558
JF
8357fi
8358 CPP=$ac_cv_prog_CPP
9c60689e 8359else
a243b558
JF
8360 ac_cv_prog_CPP=$CPP
8361fi
8362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8363$as_echo "$CPP" >&6; }
8364ac_preproc_ok=false
8365for ac_c_preproc_warn_flag in '' yes
8366do
8367 # Use a header file that comes with gcc, so configuring glibc
8368 # with a fresh cross-compiler works.
8369 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8370 # <limits.h> exists even on freestanding compilers.
8371 # On the NeXT, cc -E runs the code through the compiler's parser,
8372 # not just through cpp. "Syntax error" is here to catch this case.
8373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8374/* end confdefs.h. */
8375#ifdef __STDC__
8376# include <limits.h>
8377#else
8378# include <assert.h>
8379#endif
8380 Syntax error
8381_ACEOF
8382if ac_fn_c_try_cpp "$LINENO"; then :
9c60689e 8383
a243b558
JF
8384else
8385 # Broken: fails on valid input.
8386continue
9c60689e 8387fi
a243b558 8388rm -f conftest.err conftest.i conftest.$ac_ext
9c60689e 8389
a243b558
JF
8390 # OK, works on sane cases. Now check whether nonexistent headers
8391 # can be detected and how.
8392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8393/* end confdefs.h. */
8394#include <ac_nonexistent.h>
8395_ACEOF
8396if ac_fn_c_try_cpp "$LINENO"; then :
8397 # Broken: success on invalid input.
8398continue
8399else
8400 # Passes both tests.
8401ac_preproc_ok=:
8402break
8403fi
8404rm -f conftest.err conftest.i conftest.$ac_ext
9c60689e 8405
a243b558
JF
8406done
8407# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8408rm -f conftest.i conftest.err conftest.$ac_ext
8409if $ac_preproc_ok; then :
9c60689e 8410
a243b558
JF
8411else
8412 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8413$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8414as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8415See \`config.log' for more details" "$LINENO" 5; }
8416fi
9c60689e 8417
a243b558
JF
8418ac_ext=c
8419ac_cpp='$CPP $CPPFLAGS'
8420ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8421ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8422ac_compiler_gnu=$ac_cv_c_compiler_gnu
9c60689e
DWT
8423
8424
a243b558
JF
8425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8426$as_echo_n "checking for ANSI C header files... " >&6; }
8427if ${ac_cv_header_stdc+:} false; then :
9c60689e
DWT
8428 $as_echo_n "(cached) " >&6
8429else
a243b558
JF
8430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8431/* end confdefs.h. */
8432#include <stdlib.h>
8433#include <stdarg.h>
8434#include <string.h>
8435#include <float.h>
9c60689e 8436
a243b558
JF
8437int
8438main ()
8439{
9c60689e 8440
a243b558
JF
8441 ;
8442 return 0;
8443}
8444_ACEOF
8445if ac_fn_c_try_compile "$LINENO"; then :
8446 ac_cv_header_stdc=yes
8447else
8448 ac_cv_header_stdc=no
9c60689e 8449fi
a243b558
JF
8450rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8451
8452if test $ac_cv_header_stdc = yes; then
8453 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8455/* end confdefs.h. */
8456#include <string.h>
9c60689e 8457
a243b558
JF
8458_ACEOF
8459if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8460 $EGREP "memchr" >/dev/null 2>&1; then :
9c60689e 8461
a243b558
JF
8462else
8463 ac_cv_header_stdc=no
8464fi
8465rm -f conftest*
9c60689e 8466
a243b558
JF
8467fi
8468
8469if test $ac_cv_header_stdc = yes; then
8470 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8472/* end confdefs.h. */
8473#include <stdlib.h>
8474
8475_ACEOF
8476if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8477 $EGREP "free" >/dev/null 2>&1; then :
9c60689e 8478
9c60689e 8479else
a243b558 8480 ac_cv_header_stdc=no
9c60689e 8481fi
a243b558 8482rm -f conftest*
9c60689e 8483
a243b558 8484fi
9c60689e 8485
a243b558
JF
8486if test $ac_cv_header_stdc = yes; then
8487 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8488 if test "$cross_compiling" = yes; then :
8489 :
8490else
8491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8492/* end confdefs.h. */
8493#include <ctype.h>
8494#include <stdlib.h>
8495#if ((' ' & 0x0FF) == 0x020)
8496# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8497# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8498#else
8499# define ISLOWER(c) \
8500 (('a' <= (c) && (c) <= 'i') \
8501 || ('j' <= (c) && (c) <= 'r') \
8502 || ('s' <= (c) && (c) <= 'z'))
8503# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8504#endif
9c60689e 8505
a243b558
JF
8506#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8507int
8508main ()
8509{
8510 int i;
8511 for (i = 0; i < 256; i++)
8512 if (XOR (islower (i), ISLOWER (i))
8513 || toupper (i) != TOUPPER (i))
8514 return 2;
8515 return 0;
8516}
8517_ACEOF
8518if ac_fn_c_try_run "$LINENO"; then :
9c60689e 8519
a243b558
JF
8520else
8521 ac_cv_header_stdc=no
8522fi
8523rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8524 conftest.$ac_objext conftest.beam conftest.$ac_ext
8525fi
9c60689e 8526
a243b558
JF
8527fi
8528fi
8529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8530$as_echo "$ac_cv_header_stdc" >&6; }
8531if test $ac_cv_header_stdc = yes; then
9c60689e 8532
a243b558 8533$as_echo "#define STDC_HEADERS 1" >>confdefs.h
9c60689e 8534
a243b558 8535fi
9c60689e 8536
a243b558
JF
8537# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8538for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8539 inttypes.h stdint.h unistd.h
8540do :
8541 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8542ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8543"
8544if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8545 cat >>confdefs.h <<_ACEOF
8546#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8547_ACEOF
9c60689e 8548
a243b558 8549fi
ee134472 8550
a243b558 8551done
ee134472 8552
9c60689e 8553
a243b558
JF
8554for ac_header in dlfcn.h
8555do :
8556 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8557"
8558if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8559 cat >>confdefs.h <<_ACEOF
8560#define HAVE_DLFCN_H 1
8561_ACEOF
9c60689e 8562
a243b558 8563fi
9c60689e 8564
a243b558 8565done
9c60689e 8566
9c60689e 8567
9c60689e 8568
9c60689e 8569
a243b558
JF
8570func_stripname_cnf ()
8571{
8572 case ${2} in
8573 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
8574 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8575 esac
8576} # func_stripname_cnf
9c60689e 8577
9c60689e 8578
ee134472 8579
a243b558
JF
8580
8581
8582# Set options
8583# Check whether --enable-static was given.
8584if test "${enable_static+set}" = set; then :
8585 enableval=$enable_static; p=${PACKAGE-default}
8586 case $enableval in
8587 yes) enable_static=yes ;;
8588 no) enable_static=no ;;
8589 *)
8590 enable_static=no
8591 # Look at the argument we got. We use all the common list separators.
8592 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8593 for pkg in $enableval; do
8594 IFS="$lt_save_ifs"
8595 if test "X$pkg" = "X$p"; then
8596 enable_static=yes
8597 fi
8598 done
8599 IFS="$lt_save_ifs"
9c60689e 8600 ;;
a243b558
JF
8601 esac
8602else
8603 enable_static=no
8604fi
9c60689e 8605
9c60689e 8606
9c60689e 8607
9c60689e 8608
9c60689e 8609
9c60689e 8610
9c60689e 8611
9c60689e 8612
9c60689e 8613
9c60689e 8614
a243b558 8615 enable_dlopen=no
9c60689e 8616
9c60689e 8617
a243b558
JF
8618 enable_win32_dll=no
8619
8620
8621 # Check whether --enable-shared was given.
8622if test "${enable_shared+set}" = set; then :
8623 enableval=$enable_shared; p=${PACKAGE-default}
8624 case $enableval in
8625 yes) enable_shared=yes ;;
8626 no) enable_shared=no ;;
9c60689e 8627 *)
a243b558
JF
8628 enable_shared=no
8629 # Look at the argument we got. We use all the common list separators.
8630 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8631 for pkg in $enableval; do
8632 IFS="$lt_save_ifs"
8633 if test "X$pkg" = "X$p"; then
8634 enable_shared=yes
8635 fi
8636 done
8637 IFS="$lt_save_ifs"
9c60689e
DWT
8638 ;;
8639 esac
a243b558
JF
8640else
8641 enable_shared=yes
8642fi
9c60689e 8643
9c60689e 8644
9c60689e 8645
9c60689e 8646
9c60689e 8647
9c60689e 8648
9c60689e 8649
9c60689e 8650
9c60689e 8651
9c60689e 8652
9c60689e 8653
a243b558
JF
8654# Check whether --with-pic was given.
8655if test "${with_pic+set}" = set; then :
8656 withval=$with_pic; lt_p=${PACKAGE-default}
8657 case $withval in
8658 yes|no) pic_mode=$withval ;;
8659 *)
8660 pic_mode=default
8661 # Look at the argument we got. We use all the common list separators.
8662 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8663 for lt_pkg in $withval; do
8664 IFS="$lt_save_ifs"
8665 if test "X$lt_pkg" = "X$lt_p"; then
8666 pic_mode=yes
8667 fi
8668 done
8669 IFS="$lt_save_ifs"
8670 ;;
8671 esac
8672else
8673 pic_mode=default
9c60689e 8674fi
ee134472 8675
ee134472 8676
a243b558 8677test -z "$pic_mode" && pic_mode=default
9c60689e 8678
9c60689e 8679
9c60689e 8680
9c60689e 8681
ee134472 8682
ee134472 8683
9c60689e 8684
a243b558
JF
8685 # Check whether --enable-fast-install was given.
8686if test "${enable_fast_install+set}" = set; then :
8687 enableval=$enable_fast_install; p=${PACKAGE-default}
8688 case $enableval in
8689 yes) enable_fast_install=yes ;;
8690 no) enable_fast_install=no ;;
8691 *)
8692 enable_fast_install=no
8693 # Look at the argument we got. We use all the common list separators.
8694 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8695 for pkg in $enableval; do
8696 IFS="$lt_save_ifs"
8697 if test "X$pkg" = "X$p"; then
8698 enable_fast_install=yes
9c60689e 8699 fi
a243b558
JF
8700 done
8701 IFS="$lt_save_ifs"
9c60689e 8702 ;;
a243b558
JF
8703 esac
8704else
8705 enable_fast_install=yes
8706fi
9c60689e 8707
9c60689e 8708
9c60689e 8709
9c60689e 8710
9c60689e
DWT
8711
8712
53ba6704 8713
9c60689e 8714
9c60689e 8715
9c60689e 8716
9c60689e 8717
a243b558
JF
8718# This can be used to rebuild libtool when needed
8719LIBTOOL_DEPS="$ltmain"
9c60689e 8720
a243b558
JF
8721# Always use our own libtool.
8722LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9c60689e 8723
9c60689e 8724
9c60689e 8725
9c60689e 8726
9c60689e 8727
ee134472 8728
ee134472 8729
ee134472 8730
ee134472 8731
9c60689e 8732
9c60689e 8733
9c60689e 8734
9c60689e 8735
9c60689e 8736
9c60689e 8737
9c60689e 8738
9c60689e 8739
9c60689e 8740
9c60689e 8741
9c60689e 8742
9c60689e 8743
9c60689e 8744
9c60689e 8745
9c60689e 8746
9c60689e 8747
9c60689e 8748
9c60689e 8749
9c60689e 8750
9c60689e 8751
9c60689e 8752
a243b558 8753test -z "$LN_S" && LN_S="ln -s"
9c60689e
DWT
8754
8755
8756
8757
8758
8759
8760
8761
8762
8763
8764
8765
8766
8767
a243b558
JF
8768if test -n "${ZSH_VERSION+set}" ; then
8769 setopt NO_GLOB_SUBST
8770fi
9c60689e 8771
a243b558
JF
8772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8773$as_echo_n "checking for objdir... " >&6; }
8774if ${lt_cv_objdir+:} false; then :
ee134472
JF
8775 $as_echo_n "(cached) " >&6
8776else
a243b558
JF
8777 rm -f .libs 2>/dev/null
8778mkdir .libs 2>/dev/null
8779if test -d .libs; then
8780 lt_cv_objdir=.libs
8781else
8782 # MS-DOS does not allow filenames that begin with a dot.
8783 lt_cv_objdir=_libs
ee134472 8784fi
a243b558
JF
8785rmdir .libs 2>/dev/null
8786fi
8787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8788$as_echo "$lt_cv_objdir" >&6; }
8789objdir=$lt_cv_objdir
9c60689e
DWT
8790
8791
8792
8793
8794
a243b558
JF
8795cat >>confdefs.h <<_ACEOF
8796#define LT_OBJDIR "$lt_cv_objdir/"
8797_ACEOF
9c60689e
DWT
8798
8799
8800
8801
a243b558
JF
8802case $host_os in
8803aix3*)
8804 # AIX sometimes has problems with the GCC collect2 program. For some
8805 # reason, if we set the COLLECT_NAMES environment variable, the problems
8806 # vanish in a puff of smoke.
8807 if test "X${COLLECT_NAMES+set}" != Xset; then
8808 COLLECT_NAMES=
8809 export COLLECT_NAMES
8810 fi
8811 ;;
8812esac
9c60689e 8813
a243b558
JF
8814# Global variables:
8815ofile=libtool
8816can_build_shared=yes
9c60689e 8817
a243b558
JF
8818# All known linkers require a `.a' archive for static linking (except MSVC,
8819# which needs '.lib').
8820libext=a
9c60689e 8821
a243b558 8822with_gnu_ld="$lt_cv_prog_gnu_ld"
9c60689e 8823
a243b558
JF
8824old_CC="$CC"
8825old_CFLAGS="$CFLAGS"
9c60689e 8826
a243b558
JF
8827# Set sane defaults for various variables
8828test -z "$CC" && CC=cc
8829test -z "$LTCC" && LTCC=$CC
8830test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8831test -z "$LD" && LD=ld
8832test -z "$ac_objext" && ac_objext=o
9c60689e 8833
a243b558
JF
8834for cc_temp in $compiler""; do
8835 case $cc_temp in
8836 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8837 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8838 \-*) ;;
8839 *) break;;
8840 esac
8841done
8842cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9c60689e
DWT
8843
8844
a243b558
JF
8845# Only perform the check for file, if the check method requires it
8846test -z "$MAGIC_CMD" && MAGIC_CMD=file
8847case $deplibs_check_method in
8848file_magic*)
8849 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8851$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8852if ${lt_cv_path_MAGIC_CMD+:} false; then :
8853 $as_echo_n "(cached) " >&6
8854else
8855 case $MAGIC_CMD in
8856[\\/*] | ?:[\\/]*)
8857 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8858 ;;
8859*)
8860 lt_save_MAGIC_CMD="$MAGIC_CMD"
8861 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8862 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8863 for ac_dir in $ac_dummy; do
8864 IFS="$lt_save_ifs"
8865 test -z "$ac_dir" && ac_dir=.
8866 if test -f $ac_dir/${ac_tool_prefix}file; then
8867 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8868 if test -n "$file_magic_test_file"; then
8869 case $deplibs_check_method in
8870 "file_magic "*)
8871 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8872 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8873 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8874 $EGREP "$file_magic_regex" > /dev/null; then
8875 :
8876 else
8877 cat <<_LT_EOF 1>&2
9c60689e 8878
a243b558
JF
8879*** Warning: the command libtool uses to detect shared libraries,
8880*** $file_magic_cmd, produces output that libtool cannot recognize.
8881*** The result is that libtool may fail to recognize shared libraries
8882*** as such. This will affect the creation of libtool libraries that
8883*** depend on shared libraries, but programs linked with such libtool
8884*** libraries will work regardless of this problem. Nevertheless, you
8885*** may want to report the problem to your system manager and/or to
8886*** bug-libtool@gnu.org
9c60689e 8887
a243b558
JF
8888_LT_EOF
8889 fi ;;
8890 esac
8891 fi
8892 break
8893 fi
8894 done
8895 IFS="$lt_save_ifs"
8896 MAGIC_CMD="$lt_save_MAGIC_CMD"
8897 ;;
8898esac
8899fi
9c60689e 8900
a243b558
JF
8901MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8902if test -n "$MAGIC_CMD"; then
8903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8904$as_echo "$MAGIC_CMD" >&6; }
8905else
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8907$as_echo "no" >&6; }
8908fi
9c60689e
DWT
8909
8910
8911
8912
8913
a243b558
JF
8914if test -z "$lt_cv_path_MAGIC_CMD"; then
8915 if test -n "$ac_tool_prefix"; then
8916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8917$as_echo_n "checking for file... " >&6; }
8918if ${lt_cv_path_MAGIC_CMD+:} false; then :
8919 $as_echo_n "(cached) " >&6
8920else
8921 case $MAGIC_CMD in
8922[\\/*] | ?:[\\/]*)
8923 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8924 ;;
8925*)
8926 lt_save_MAGIC_CMD="$MAGIC_CMD"
8927 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8928 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8929 for ac_dir in $ac_dummy; do
8930 IFS="$lt_save_ifs"
8931 test -z "$ac_dir" && ac_dir=.
8932 if test -f $ac_dir/file; then
8933 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8934 if test -n "$file_magic_test_file"; then
8935 case $deplibs_check_method in
8936 "file_magic "*)
8937 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8938 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8939 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8940 $EGREP "$file_magic_regex" > /dev/null; then
8941 :
8942 else
8943 cat <<_LT_EOF 1>&2
9c60689e 8944
a243b558
JF
8945*** Warning: the command libtool uses to detect shared libraries,
8946*** $file_magic_cmd, produces output that libtool cannot recognize.
8947*** The result is that libtool may fail to recognize shared libraries
8948*** as such. This will affect the creation of libtool libraries that
8949*** depend on shared libraries, but programs linked with such libtool
8950*** libraries will work regardless of this problem. Nevertheless, you
8951*** may want to report the problem to your system manager and/or to
8952*** bug-libtool@gnu.org
9c60689e 8953
a243b558
JF
8954_LT_EOF
8955 fi ;;
8956 esac
8957 fi
8958 break
8959 fi
8960 done
8961 IFS="$lt_save_ifs"
8962 MAGIC_CMD="$lt_save_MAGIC_CMD"
8963 ;;
8964esac
8965fi
9c60689e 8966
a243b558
JF
8967MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8968if test -n "$MAGIC_CMD"; then
8969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8970$as_echo "$MAGIC_CMD" >&6; }
8971else
8972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8973$as_echo "no" >&6; }
8974fi
9c60689e
DWT
8975
8976
a243b558
JF
8977 else
8978 MAGIC_CMD=:
8979 fi
8980fi
9c60689e 8981
a243b558
JF
8982 fi
8983 ;;
8984esac
9c60689e 8985
a243b558 8986# Use C for the default configuration in the libtool script
9c60689e 8987
a243b558
JF
8988lt_save_CC="$CC"
8989ac_ext=c
8990ac_cpp='$CPP $CPPFLAGS'
8991ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8992ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8993ac_compiler_gnu=$ac_cv_c_compiler_gnu
9c60689e
DWT
8994
8995
a243b558
JF
8996# Source file extension for C test sources.
8997ac_ext=c
9c60689e 8998
a243b558
JF
8999# Object file extension for compiled C test sources.
9000objext=o
9001objext=$objext
9c60689e 9002
a243b558
JF
9003# Code to be used in simple compile tests
9004lt_simple_compile_test_code="int some_variable = 0;"
9c60689e 9005
a243b558
JF
9006# Code to be used in simple link tests
9007lt_simple_link_test_code='int main(){return(0);}'
9c60689e
DWT
9008
9009
9010
9011
9012
9013
9014
a243b558
JF
9015# If no C compiler was specified, use CC.
9016LTCC=${LTCC-"$CC"}
9c60689e 9017
a243b558
JF
9018# If no C compiler flags were specified, use CFLAGS.
9019LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9c60689e 9020
a243b558
JF
9021# Allow CC to be a program name with arguments.
9022compiler=$CC
9c60689e 9023
a243b558
JF
9024# Save the default compiler, since it gets overwritten when the other
9025# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9026compiler_DEFAULT=$CC
9c60689e 9027
a243b558
JF
9028# save warnings/boilerplate of simple test code
9029ac_outfile=conftest.$ac_objext
9030echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9031eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9032_lt_compiler_boilerplate=`cat conftest.err`
9033$RM -r conftest*
9c60689e 9034
a243b558
JF
9035ac_outfile=conftest.$ac_objext
9036echo "$lt_simple_link_test_code" >conftest.$ac_ext
9037eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9038_lt_linker_boilerplate=`cat conftest.err`
9039$RM -r conftest*
9c60689e
DWT
9040
9041
a243b558
JF
9042## CAVEAT EMPTOR:
9043## There is no encapsulation within the following macros, do not change
9044## the running order or otherwise move them around unless you know exactly
9045## what you are doing...
9046if test -n "$compiler"; then
9c60689e 9047
a243b558 9048lt_prog_compiler_no_builtin_flag=
9c60689e 9049
a243b558
JF
9050if test "$GCC" = yes; then
9051 case $cc_basename in
9052 nvcc*)
9053 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9054 *)
9055 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9056 esac
9c60689e 9057
a243b558
JF
9058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9059$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9060if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9061 $as_echo_n "(cached) " >&6
9062else
9063 lt_cv_prog_compiler_rtti_exceptions=no
9064 ac_outfile=conftest.$ac_objext
9065 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9066 lt_compiler_flag="-fno-rtti -fno-exceptions"
9067 # Insert the option either (1) after the last *FLAGS variable, or
9068 # (2) before a word containing "conftest.", or (3) at the end.
9069 # Note that $ac_compile itself does not contain backslashes and begins
9070 # with a dollar sign (not a hyphen), so the echo should work correctly.
9071 # The option is referenced via a variable to avoid confusing sed.
9072 lt_compile=`echo "$ac_compile" | $SED \
9073 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9074 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9075 -e 's:$: $lt_compiler_flag:'`
9076 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9077 (eval "$lt_compile" 2>conftest.err)
9078 ac_status=$?
9079 cat conftest.err >&5
9080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9081 if (exit $ac_status) && test -s "$ac_outfile"; then
9082 # The compiler can only warn and ignore the option if not recognized
9083 # So say no if there are warnings other than the usual output.
9084 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9085 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9086 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9087 lt_cv_prog_compiler_rtti_exceptions=yes
9088 fi
9089 fi
9090 $RM -r conftest*
9c60689e 9091
a243b558
JF
9092fi
9093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9094$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9c60689e 9095
a243b558
JF
9096if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9097 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9098else
9099 :
9100fi
9c60689e 9101
a243b558 9102fi
9c60689e
DWT
9103
9104
9105
9106
9107
9108
a243b558
JF
9109 lt_prog_compiler_wl=
9110lt_prog_compiler_pic=
9111lt_prog_compiler_static=
9c60689e
DWT
9112
9113
a243b558
JF
9114 if test "$GCC" = yes; then
9115 lt_prog_compiler_wl='-Wl,'
9116 lt_prog_compiler_static='-static'
9c60689e 9117
a243b558
JF
9118 case $host_os in
9119 aix*)
9120 # All AIX code is PIC.
9121 if test "$host_cpu" = ia64; then
9122 # AIX 5 now supports IA64 processor
9123 lt_prog_compiler_static='-Bstatic'
9124 fi
9125 ;;
9c60689e 9126
a243b558
JF
9127 amigaos*)
9128 case $host_cpu in
9129 powerpc)
9130 # see comment about AmigaOS4 .so support
9131 lt_prog_compiler_pic='-fPIC'
9132 ;;
9133 m68k)
9134 # FIXME: we need at least 68020 code to build shared libraries, but
9135 # adding the `-m68020' flag to GCC prevents building anything better,
9136 # like `-m68040'.
9137 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9138 ;;
9139 esac
9140 ;;
9c60689e 9141
a243b558
JF
9142 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9143 # PIC is the default for these OSes.
9144 ;;
9c60689e 9145
a243b558
JF
9146 mingw* | cygwin* | pw32* | os2* | cegcc*)
9147 # This hack is so that the source file can tell whether it is being
9148 # built for inclusion in a dll (and should export symbols for example).
9149 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9150 # (--disable-auto-import) libraries
9151 lt_prog_compiler_pic='-DDLL_EXPORT'
9152 ;;
9c60689e 9153
a243b558
JF
9154 darwin* | rhapsody*)
9155 # PIC is the default on this platform
9156 # Common symbols not allowed in MH_DYLIB files
9157 lt_prog_compiler_pic='-fno-common'
9158 ;;
9c60689e 9159
a243b558
JF
9160 haiku*)
9161 # PIC is the default for Haiku.
9162 # The "-static" flag exists, but is broken.
9163 lt_prog_compiler_static=
9164 ;;
9c60689e 9165
a243b558
JF
9166 hpux*)
9167 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9168 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9169 # sets the default TLS model and affects inlining.
9170 case $host_cpu in
9171 hppa*64*)
9172 # +Z the default
9173 ;;
9174 *)
9175 lt_prog_compiler_pic='-fPIC'
9176 ;;
9177 esac
9178 ;;
9c60689e 9179
a243b558
JF
9180 interix[3-9]*)
9181 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9182 # Instead, we relocate shared libraries at runtime.
9183 ;;
9c60689e 9184
a243b558
JF
9185 msdosdjgpp*)
9186 # Just because we use GCC doesn't mean we suddenly get shared libraries
9187 # on systems that don't support them.
9188 lt_prog_compiler_can_build_shared=no
9189 enable_shared=no
9190 ;;
9c60689e 9191
a243b558
JF
9192 *nto* | *qnx*)
9193 # QNX uses GNU C++, but need to define -shared option too, otherwise
9194 # it will coredump.
9195 lt_prog_compiler_pic='-fPIC -shared'
9196 ;;
9c60689e 9197
a243b558
JF
9198 sysv4*MP*)
9199 if test -d /usr/nec; then
9200 lt_prog_compiler_pic=-Kconform_pic
9201 fi
9202 ;;
9c60689e 9203
a243b558
JF
9204 *)
9205 lt_prog_compiler_pic='-fPIC'
9206 ;;
9207 esac
9c60689e 9208
a243b558
JF
9209 case $cc_basename in
9210 nvcc*) # Cuda Compiler Driver 2.2
9211 lt_prog_compiler_wl='-Xlinker '
9212 if test -n "$lt_prog_compiler_pic"; then
9213 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9214 fi
9215 ;;
9216 esac
9217 else
9218 # PORTME Check for flag to pass linker flags through the system compiler.
9219 case $host_os in
9220 aix*)
9221 lt_prog_compiler_wl='-Wl,'
9222 if test "$host_cpu" = ia64; then
9223 # AIX 5 now supports IA64 processor
9224 lt_prog_compiler_static='-Bstatic'
9225 else
9226 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9227 fi
9228 ;;
9c60689e 9229
a243b558
JF
9230 mingw* | cygwin* | pw32* | os2* | cegcc*)
9231 # This hack is so that the source file can tell whether it is being
9232 # built for inclusion in a dll (and should export symbols for example).
9233 lt_prog_compiler_pic='-DDLL_EXPORT'
9234 ;;
9c60689e 9235
a243b558
JF
9236 hpux9* | hpux10* | hpux11*)
9237 lt_prog_compiler_wl='-Wl,'
9238 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9239 # not for PA HP-UX.
9240 case $host_cpu in
9241 hppa*64*|ia64*)
9242 # +Z the default
9243 ;;
9244 *)
9245 lt_prog_compiler_pic='+Z'
9246 ;;
9247 esac
9248 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9249 lt_prog_compiler_static='${wl}-a ${wl}archive'
9250 ;;
9c60689e 9251
a243b558
JF
9252 irix5* | irix6* | nonstopux*)
9253 lt_prog_compiler_wl='-Wl,'
9254 # PIC (with -KPIC) is the default.
9255 lt_prog_compiler_static='-non_shared'
9256 ;;
9c60689e 9257
a243b558
JF
9258 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9259 case $cc_basename in
9260 # old Intel for x86_64 which still supported -KPIC.
9261 ecc*)
9262 lt_prog_compiler_wl='-Wl,'
9263 lt_prog_compiler_pic='-KPIC'
9264 lt_prog_compiler_static='-static'
9265 ;;
9266 # icc used to be incompatible with GCC.
9267 # ICC 10 doesn't accept -KPIC any more.
9268 icc* | ifort*)
9269 lt_prog_compiler_wl='-Wl,'
9270 lt_prog_compiler_pic='-fPIC'
9271 lt_prog_compiler_static='-static'
9272 ;;
9273 # Lahey Fortran 8.1.
9274 lf95*)
9275 lt_prog_compiler_wl='-Wl,'
9276 lt_prog_compiler_pic='--shared'
9277 lt_prog_compiler_static='--static'
9278 ;;
9279 nagfor*)
9280 # NAG Fortran compiler
9281 lt_prog_compiler_wl='-Wl,-Wl,,'
9282 lt_prog_compiler_pic='-PIC'
9283 lt_prog_compiler_static='-Bstatic'
9284 ;;
9285 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9286 # Portland Group compilers (*not* the Pentium gcc compiler,
9287 # which looks to be a dead project)
9288 lt_prog_compiler_wl='-Wl,'
9289 lt_prog_compiler_pic='-fpic'
9290 lt_prog_compiler_static='-Bstatic'
9291 ;;
9292 ccc*)
9293 lt_prog_compiler_wl='-Wl,'
9294 # All Alpha code is PIC.
9295 lt_prog_compiler_static='-non_shared'
9296 ;;
9297 xl* | bgxl* | bgf* | mpixl*)
9298 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9299 lt_prog_compiler_wl='-Wl,'
9300 lt_prog_compiler_pic='-qpic'
9301 lt_prog_compiler_static='-qstaticlink'
9302 ;;
9303 *)
9304 case `$CC -V 2>&1 | sed 5q` in
9305 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9306 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9307 lt_prog_compiler_pic='-KPIC'
9308 lt_prog_compiler_static='-Bstatic'
9309 lt_prog_compiler_wl=''
9310 ;;
9311 *Sun\ F* | *Sun*Fortran*)
9312 lt_prog_compiler_pic='-KPIC'
9313 lt_prog_compiler_static='-Bstatic'
9314 lt_prog_compiler_wl='-Qoption ld '
9315 ;;
9316 *Sun\ C*)
9317 # Sun C 5.9
9318 lt_prog_compiler_pic='-KPIC'
9319 lt_prog_compiler_static='-Bstatic'
9320 lt_prog_compiler_wl='-Wl,'
9321 ;;
9322 *Intel*\ [CF]*Compiler*)
9323 lt_prog_compiler_wl='-Wl,'
9324 lt_prog_compiler_pic='-fPIC'
9325 lt_prog_compiler_static='-static'
9326 ;;
9327 *Portland\ Group*)
9328 lt_prog_compiler_wl='-Wl,'
9329 lt_prog_compiler_pic='-fpic'
9330 lt_prog_compiler_static='-Bstatic'
9331 ;;
9332 esac
9333 ;;
9334 esac
9335 ;;
9c60689e 9336
a243b558
JF
9337 newsos6)
9338 lt_prog_compiler_pic='-KPIC'
9339 lt_prog_compiler_static='-Bstatic'
9340 ;;
9c60689e 9341
a243b558
JF
9342 *nto* | *qnx*)
9343 # QNX uses GNU C++, but need to define -shared option too, otherwise
9344 # it will coredump.
9345 lt_prog_compiler_pic='-fPIC -shared'
9346 ;;
9c60689e 9347
a243b558
JF
9348 osf3* | osf4* | osf5*)
9349 lt_prog_compiler_wl='-Wl,'
9350 # All OSF/1 code is PIC.
9351 lt_prog_compiler_static='-non_shared'
9352 ;;
9c60689e 9353
a243b558
JF
9354 rdos*)
9355 lt_prog_compiler_static='-non_shared'
9356 ;;
9c60689e 9357
a243b558
JF
9358 solaris*)
9359 lt_prog_compiler_pic='-KPIC'
9360 lt_prog_compiler_static='-Bstatic'
9361 case $cc_basename in
9362 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9363 lt_prog_compiler_wl='-Qoption ld ';;
9364 *)
9365 lt_prog_compiler_wl='-Wl,';;
9366 esac
9367 ;;
9c60689e 9368
a243b558
JF
9369 sunos4*)
9370 lt_prog_compiler_wl='-Qoption ld '
9371 lt_prog_compiler_pic='-PIC'
9372 lt_prog_compiler_static='-Bstatic'
9373 ;;
9c60689e 9374
a243b558
JF
9375 sysv4 | sysv4.2uw2* | sysv4.3*)
9376 lt_prog_compiler_wl='-Wl,'
9377 lt_prog_compiler_pic='-KPIC'
9378 lt_prog_compiler_static='-Bstatic'
9379 ;;
9c60689e 9380
a243b558
JF
9381 sysv4*MP*)
9382 if test -d /usr/nec ;then
9383 lt_prog_compiler_pic='-Kconform_pic'
9384 lt_prog_compiler_static='-Bstatic'
9385 fi
9386 ;;
9c60689e 9387
a243b558
JF
9388 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9389 lt_prog_compiler_wl='-Wl,'
9390 lt_prog_compiler_pic='-KPIC'
9391 lt_prog_compiler_static='-Bstatic'
9392 ;;
9c60689e 9393
a243b558
JF
9394 unicos*)
9395 lt_prog_compiler_wl='-Wl,'
9396 lt_prog_compiler_can_build_shared=no
9397 ;;
9c60689e 9398
a243b558
JF
9399 uts4*)
9400 lt_prog_compiler_pic='-pic'
9401 lt_prog_compiler_static='-Bstatic'
9402 ;;
9c60689e 9403
a243b558
JF
9404 *)
9405 lt_prog_compiler_can_build_shared=no
9406 ;;
9407 esac
9408 fi
9c60689e 9409
a243b558
JF
9410case $host_os in
9411 # For platforms which do not support PIC, -DPIC is meaningless:
9412 *djgpp*)
9413 lt_prog_compiler_pic=
9414 ;;
9415 *)
9416 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9417 ;;
9418esac
9c60689e 9419
a243b558
JF
9420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9421$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9422if ${lt_cv_prog_compiler_pic+:} false; then :
9423 $as_echo_n "(cached) " >&6
9424else
9425 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9426fi
9427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9428$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9429lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9c60689e 9430
a243b558
JF
9431#
9432# Check to make sure the PIC flag actually works.
9433#
9434if test -n "$lt_prog_compiler_pic"; then
9435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9436$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9437if ${lt_cv_prog_compiler_pic_works+:} false; then :
9438 $as_echo_n "(cached) " >&6
9439else
9440 lt_cv_prog_compiler_pic_works=no
9441 ac_outfile=conftest.$ac_objext
9442 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9443 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9444 # Insert the option either (1) after the last *FLAGS variable, or
9445 # (2) before a word containing "conftest.", or (3) at the end.
9446 # Note that $ac_compile itself does not contain backslashes and begins
9447 # with a dollar sign (not a hyphen), so the echo should work correctly.
9448 # The option is referenced via a variable to avoid confusing sed.
9449 lt_compile=`echo "$ac_compile" | $SED \
9450 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9451 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9452 -e 's:$: $lt_compiler_flag:'`
9453 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9454 (eval "$lt_compile" 2>conftest.err)
9455 ac_status=$?
9456 cat conftest.err >&5
9457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9458 if (exit $ac_status) && test -s "$ac_outfile"; then
9459 # The compiler can only warn and ignore the option if not recognized
9460 # So say no if there are warnings other than the usual output.
9461 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9462 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9463 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9464 lt_cv_prog_compiler_pic_works=yes
9465 fi
9466 fi
9467 $RM -r conftest*
9c60689e 9468
a243b558
JF
9469fi
9470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9471$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9c60689e 9472
a243b558
JF
9473if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9474 case $lt_prog_compiler_pic in
9475 "" | " "*) ;;
9476 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9477 esac
9478else
9479 lt_prog_compiler_pic=
9480 lt_prog_compiler_can_build_shared=no
9481fi
9c60689e 9482
a243b558 9483fi
9c60689e
DWT
9484
9485
9486
9487
9488
9489
9c60689e
DWT
9490
9491
9492
9493
9494
a243b558
JF
9495#
9496# Check to make sure the static flag actually works.
9497#
9498wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9500$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9501if ${lt_cv_prog_compiler_static_works+:} false; then :
9502 $as_echo_n "(cached) " >&6
9503else
9504 lt_cv_prog_compiler_static_works=no
9505 save_LDFLAGS="$LDFLAGS"
9506 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9507 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9508 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9509 # The linker can only warn and ignore the option if not recognized
9510 # So say no if there are warnings
9511 if test -s conftest.err; then
9512 # Append any errors to the config.log.
9513 cat conftest.err 1>&5
9514 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9515 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9516 if diff conftest.exp conftest.er2 >/dev/null; then
9517 lt_cv_prog_compiler_static_works=yes
9518 fi
9519 else
9520 lt_cv_prog_compiler_static_works=yes
9521 fi
9522 fi
9523 $RM -r conftest*
9524 LDFLAGS="$save_LDFLAGS"
9c60689e 9525
a243b558
JF
9526fi
9527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9528$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9c60689e 9529
a243b558
JF
9530if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9531 :
9c60689e 9532else
a243b558 9533 lt_prog_compiler_static=
9c60689e 9534fi
9c60689e 9535
9c60689e 9536
9c60689e 9537
9c60689e 9538
9c60689e 9539
9c60689e 9540
9c60689e 9541
a243b558
JF
9542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9543$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9544if ${lt_cv_prog_compiler_c_o+:} false; then :
9545 $as_echo_n "(cached) " >&6
9546else
9547 lt_cv_prog_compiler_c_o=no
9548 $RM -r conftest 2>/dev/null
9549 mkdir conftest
9550 cd conftest
9551 mkdir out
9552 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9c60689e 9553
a243b558
JF
9554 lt_compiler_flag="-o out/conftest2.$ac_objext"
9555 # Insert the option either (1) after the last *FLAGS variable, or
9556 # (2) before a word containing "conftest.", or (3) at the end.
9557 # Note that $ac_compile itself does not contain backslashes and begins
9558 # with a dollar sign (not a hyphen), so the echo should work correctly.
9559 lt_compile=`echo "$ac_compile" | $SED \
9560 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9561 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9562 -e 's:$: $lt_compiler_flag:'`
9563 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9564 (eval "$lt_compile" 2>out/conftest.err)
9565 ac_status=$?
9566 cat out/conftest.err >&5
9567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9568 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9569 then
9570 # The compiler can only warn and ignore the option if not recognized
9571 # So say no if there are warnings
9572 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9573 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9574 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9575 lt_cv_prog_compiler_c_o=yes
9576 fi
9577 fi
9578 chmod u+w . 2>&5
9579 $RM -r conftest*
9580 # SGI C++ compiler will create directory out/ii_files/ for
9581 # template instantiation
9582 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9583 $RM out/* && rmdir out
9584 cd ..
9585 $RM -r conftest
9586 $RM -r conftest*
9c60689e 9587
a243b558
JF
9588fi
9589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9590$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9c60689e 9591
ee134472 9592
ee134472 9593
ee134472 9594
ee134472 9595
9c60689e 9596
a243b558
JF
9597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9598$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9599if ${lt_cv_prog_compiler_c_o+:} false; then :
9600 $as_echo_n "(cached) " >&6
9601else
9602 lt_cv_prog_compiler_c_o=no
9603 $RM -r conftest 2>/dev/null
9604 mkdir conftest
9605 cd conftest
9606 mkdir out
9607 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9c60689e 9608
a243b558
JF
9609 lt_compiler_flag="-o out/conftest2.$ac_objext"
9610 # Insert the option either (1) after the last *FLAGS variable, or
9611 # (2) before a word containing "conftest.", or (3) at the end.
9612 # Note that $ac_compile itself does not contain backslashes and begins
9613 # with a dollar sign (not a hyphen), so the echo should work correctly.
9614 lt_compile=`echo "$ac_compile" | $SED \
9615 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9616 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9617 -e 's:$: $lt_compiler_flag:'`
9618 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9619 (eval "$lt_compile" 2>out/conftest.err)
9620 ac_status=$?
9621 cat out/conftest.err >&5
9622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9623 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9624 then
9625 # The compiler can only warn and ignore the option if not recognized
9626 # So say no if there are warnings
9627 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9628 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9629 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9630 lt_cv_prog_compiler_c_o=yes
9631 fi
9632 fi
9633 chmod u+w . 2>&5
9634 $RM -r conftest*
9635 # SGI C++ compiler will create directory out/ii_files/ for
9636 # template instantiation
9637 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9638 $RM out/* && rmdir out
9639 cd ..
9640 $RM -r conftest
9641 $RM -r conftest*
9c60689e 9642
a243b558
JF
9643fi
9644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9645$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9c60689e 9646
9c60689e 9647
a243b558
JF
9648
9649
9650hard_links="nottested"
9651if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9652 # do not overwrite the value of need_locks provided by the user
9653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9654$as_echo_n "checking if we can lock with hard links... " >&6; }
9655 hard_links=yes
9656 $RM -r conftest*
9657 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9658 touch conftest.a
9659 ln conftest.a conftest.b 2>&5 || hard_links=no
9660 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9662$as_echo "$hard_links" >&6; }
9663 if test "$hard_links" = no; then
9664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9665$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9666 need_locks=warn
9c60689e 9667 fi
a243b558
JF
9668else
9669 need_locks=no
9670fi
9c60689e 9671
ee134472 9672
9c60689e 9673
9c60689e 9674
9c60689e 9675
a243b558
JF
9676
9677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9678$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9679
9680 runpath_var=
9681 allow_undefined_flag=
9682 always_export_symbols=no
9683 archive_cmds=
9684 archive_expsym_cmds=
9685 compiler_needs_object=no
9686 enable_shared_with_static_runtimes=no
9687 export_dynamic_flag_spec=
9688 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9689 hardcode_automatic=no
9690 hardcode_direct=no
9691 hardcode_direct_absolute=no
9692 hardcode_libdir_flag_spec=
9693 hardcode_libdir_separator=
9694 hardcode_minus_L=no
9695 hardcode_shlibpath_var=unsupported
9696 inherit_rpath=no
9697 link_all_deplibs=unknown
9698 module_cmds=
9699 module_expsym_cmds=
9700 old_archive_from_new_cmds=
9701 old_archive_from_expsyms_cmds=
9702 thread_safe_flag_spec=
9703 whole_archive_flag_spec=
9704 # include_expsyms should be a list of space-separated symbols to be *always*
9705 # included in the symbol list
9706 include_expsyms=
9707 # exclude_expsyms can be an extended regexp of symbols to exclude
9708 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9709 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9710 # as well as any symbol that contains `d'.
9711 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9712 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9713 # platforms (ab)use it in PIC code, but their linkers get confused if
9714 # the symbol is explicitly referenced. Since portable code cannot
9715 # rely on this symbol name, it's probably fine to never include it in
9716 # preloaded symbol tables.
9717 # Exclude shared library initialization/finalization symbols.
9718 extract_expsyms_cmds=
9719
9c60689e 9720 case $host_os in
a243b558
JF
9721 cygwin* | mingw* | pw32* | cegcc*)
9722 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9723 # When not using gcc, we currently assume that we are using
9724 # Microsoft Visual C++.
9725 if test "$GCC" != yes; then
9726 with_gnu_ld=no
9727 fi
9c60689e 9728 ;;
a243b558
JF
9729 interix*)
9730 # we just hope/assume this is gcc and not c89 (= MSVC++)
9731 with_gnu_ld=yes
9732 ;;
9733 openbsd*)
9734 with_gnu_ld=no
9c60689e
DWT
9735 ;;
9736 esac
9c60689e 9737
a243b558 9738 ld_shlibs=yes
ee134472 9739
a243b558
JF
9740 # On some targets, GNU ld is compatible enough with the native linker
9741 # that we're better off using the native interface for both.
9742 lt_use_gnu_ld_interface=no
9743 if test "$with_gnu_ld" = yes; then
9744 case $host_os in
9745 aix*)
9746 # The AIX port of GNU ld has always aspired to compatibility
9747 # with the native linker. However, as the warning in the GNU ld
9748 # block says, versions before 2.19.5* couldn't really create working
9749 # shared libraries, regardless of the interface used.
9750 case `$LD -v 2>&1` in
9751 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9752 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9753 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9754 *)
9755 lt_use_gnu_ld_interface=yes
9756 ;;
9757 esac
9758 ;;
9759 *)
9760 lt_use_gnu_ld_interface=yes
9761 ;;
9762 esac
9763 fi
9c60689e 9764
a243b558
JF
9765 if test "$lt_use_gnu_ld_interface" = yes; then
9766 # If archive_cmds runs LD, not CC, wlarc should be empty
9767 wlarc='${wl}'
9c60689e 9768
a243b558
JF
9769 # Set some defaults for GNU ld with shared library support. These
9770 # are reset later if shared libraries are not supported. Putting them
9771 # here allows them to be overridden if necessary.
9772 runpath_var=LD_RUN_PATH
9773 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9774 export_dynamic_flag_spec='${wl}--export-dynamic'
9775 # ancient GNU ld didn't support --whole-archive et. al.
9776 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9777 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9778 else
9779 whole_archive_flag_spec=
9780 fi
9781 supports_anon_versioning=no
9782 case `$LD -v 2>&1` in
9783 *GNU\ gold*) supports_anon_versioning=yes ;;
9784 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9785 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9786 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9787 *\ 2.11.*) ;; # other 2.11 versions
9788 *) supports_anon_versioning=yes ;;
9789 esac
ee134472 9790
a243b558
JF
9791 # See if GNU ld supports shared libraries.
9792 case $host_os in
9793 aix[3-9]*)
9794 # On AIX/PPC, the GNU linker is very broken
9795 if test "$host_cpu" != ia64; then
9796 ld_shlibs=no
9797 cat <<_LT_EOF 1>&2
ee134472 9798
a243b558
JF
9799*** Warning: the GNU linker, at least up to release 2.19, is reported
9800*** to be unable to reliably create shared libraries on AIX.
9801*** Therefore, libtool is disabling shared libraries support. If you
9802*** really care for shared libraries, you may want to install binutils
9803*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9804*** You will then need to restart the configuration process.
9c60689e 9805
a243b558
JF
9806_LT_EOF
9807 fi
9808 ;;
9c60689e 9809
a243b558
JF
9810 amigaos*)
9811 case $host_cpu in
9812 powerpc)
9813 # see comment about AmigaOS4 .so support
9814 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9815 archive_expsym_cmds=''
9816 ;;
9817 m68k)
9818 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)'
9819 hardcode_libdir_flag_spec='-L$libdir'
9820 hardcode_minus_L=yes
9821 ;;
9822 esac
9823 ;;
9c60689e 9824
a243b558
JF
9825 beos*)
9826 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9827 allow_undefined_flag=unsupported
9828 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9829 # support --undefined. This deserves some investigation. FIXME
9830 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9831 else
9832 ld_shlibs=no
9833 fi
9834 ;;
9c60689e 9835
a243b558
JF
9836 cygwin* | mingw* | pw32* | cegcc*)
9837 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9838 # as there is no search path for DLLs.
9839 hardcode_libdir_flag_spec='-L$libdir'
9840 export_dynamic_flag_spec='${wl}--export-all-symbols'
9841 allow_undefined_flag=unsupported
9842 always_export_symbols=no
9843 enable_shared_with_static_runtimes=yes
9844 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'
9845 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9c60689e 9846
a243b558
JF
9847 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9848 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9849 # If the export-symbols file already is a .def file (1st line
9850 # is EXPORTS), use it as is; otherwise, prepend...
9851 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9852 cp $export_symbols $output_objdir/$soname.def;
9853 else
9854 echo EXPORTS > $output_objdir/$soname.def;
9855 cat $export_symbols >> $output_objdir/$soname.def;
9856 fi~
9857 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9858 else
9859 ld_shlibs=no
9860 fi
9861 ;;
9c60689e 9862
a243b558
JF
9863 haiku*)
9864 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9865 link_all_deplibs=yes
9866 ;;
9c60689e 9867
a243b558
JF
9868 interix[3-9]*)
9869 hardcode_direct=no
9870 hardcode_shlibpath_var=no
9871 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9872 export_dynamic_flag_spec='${wl}-E'
9873 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9874 # Instead, shared libraries are loaded at an image base (0x10000000 by
9875 # default) and relocated if they conflict, which is a slow very memory
9876 # consuming and fragmenting process. To avoid this, we pick a random,
9877 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9878 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9879 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9880 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'
9881 ;;
9c60689e 9882
a243b558
JF
9883 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9884 tmp_diet=no
9885 if test "$host_os" = linux-dietlibc; then
9886 case $cc_basename in
9887 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9888 esac
9889 fi
9890 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9891 && test "$tmp_diet" = no
9892 then
9893 tmp_addflag=' $pic_flag'
9894 tmp_sharedflag='-shared'
9895 case $cc_basename,$host_cpu in
9896 pgcc*) # Portland Group C compiler
9897 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'
9898 tmp_addflag=' $pic_flag'
9899 ;;
9900 pgf77* | pgf90* | pgf95* | pgfortran*)
9901 # Portland Group f77 and f90 compilers
9902 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'
9903 tmp_addflag=' $pic_flag -Mnomain' ;;
9904 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9905 tmp_addflag=' -i_dynamic' ;;
9906 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9907 tmp_addflag=' -i_dynamic -nofor_main' ;;
9908 ifc* | ifort*) # Intel Fortran compiler
9909 tmp_addflag=' -nofor_main' ;;
9910 lf95*) # Lahey Fortran 8.1
9911 whole_archive_flag_spec=
9912 tmp_sharedflag='--shared' ;;
9913 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9914 tmp_sharedflag='-qmkshrobj'
9915 tmp_addflag= ;;
9916 nvcc*) # Cuda Compiler Driver 2.2
9917 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'
9918 compiler_needs_object=yes
9919 ;;
9920 esac
9921 case `$CC -V 2>&1 | sed 5q` in
9922 *Sun\ C*) # Sun C 5.9
9923 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'
9924 compiler_needs_object=yes
9925 tmp_sharedflag='-G' ;;
9926 *Sun\ F*) # Sun Fortran 8.3
9927 tmp_sharedflag='-G' ;;
9928 esac
9929 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9c60689e 9930
a243b558
JF
9931 if test "x$supports_anon_versioning" = xyes; then
9932 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9933 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9934 echo "local: *; };" >> $output_objdir/$libname.ver~
9935 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9936 fi
9c60689e 9937
a243b558
JF
9938 case $cc_basename in
9939 xlf* | bgf* | bgxlf* | mpixlf*)
9940 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9941 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9942 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9943 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9944 if test "x$supports_anon_versioning" = xyes; then
9945 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9946 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9947 echo "local: *; };" >> $output_objdir/$libname.ver~
9948 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9949 fi
9950 ;;
9951 esac
9952 else
9953 ld_shlibs=no
9954 fi
9955 ;;
9c60689e 9956
a243b558
JF
9957 netbsd*)
9958 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9959 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9960 wlarc=
9961 else
9962 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9963 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9964 fi
9965 ;;
9c60689e 9966
a243b558
JF
9967 solaris*)
9968 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9969 ld_shlibs=no
9970 cat <<_LT_EOF 1>&2
9c60689e 9971
a243b558
JF
9972*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9973*** create shared libraries on Solaris systems. Therefore, libtool
9974*** is disabling shared libraries support. We urge you to upgrade GNU
9975*** binutils to release 2.9.1 or newer. Another option is to modify
9976*** your PATH or compiler configuration so that the native linker is
9977*** used, and then restart.
9c60689e 9978
a243b558
JF
9979_LT_EOF
9980 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9981 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9982 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9983 else
9984 ld_shlibs=no
9985 fi
9986 ;;
9c60689e 9987
a243b558
JF
9988 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9989 case `$LD -v 2>&1` in
9990 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9991 ld_shlibs=no
9992 cat <<_LT_EOF 1>&2
9c60689e 9993
a243b558
JF
9994*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9995*** reliably create shared libraries on SCO systems. Therefore, libtool
9996*** is disabling shared libraries support. We urge you to upgrade GNU
9997*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9998*** your PATH or compiler configuration so that the native linker is
9999*** used, and then restart.
9c60689e 10000
a243b558
JF
10001_LT_EOF
10002 ;;
10003 *)
10004 # For security reasons, it is highly recommended that you always
10005 # use absolute paths for naming shared libraries, and exclude the
10006 # DT_RUNPATH tag from executables and libraries. But doing so
10007 # requires that you compile everything twice, which is a pain.
10008 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10009 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10010 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10011 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10012 else
10013 ld_shlibs=no
10014 fi
10015 ;;
10016 esac
10017 ;;
9c60689e 10018
a243b558
JF
10019 sunos4*)
10020 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10021 wlarc=
10022 hardcode_direct=yes
10023 hardcode_shlibpath_var=no
10024 ;;
9c60689e 10025
a243b558
JF
10026 *)
10027 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10028 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10029 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10030 else
10031 ld_shlibs=no
10032 fi
10033 ;;
10034 esac
9c60689e 10035
a243b558
JF
10036 if test "$ld_shlibs" = no; then
10037 runpath_var=
10038 hardcode_libdir_flag_spec=
10039 export_dynamic_flag_spec=
10040 whole_archive_flag_spec=
10041 fi
10042 else
10043 # PORTME fill in a description of your system's linker (not GNU ld)
10044 case $host_os in
10045 aix3*)
10046 allow_undefined_flag=unsupported
10047 always_export_symbols=yes
10048 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'
10049 # Note: this linker hardcodes the directories in LIBPATH if there
10050 # are no directories specified by -L.
10051 hardcode_minus_L=yes
10052 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10053 # Neither direct hardcoding nor static linking is supported with a
10054 # broken collect2.
10055 hardcode_direct=unsupported
10056 fi
10057 ;;
9c60689e 10058
a243b558
JF
10059 aix[4-9]*)
10060 if test "$host_cpu" = ia64; then
10061 # On IA64, the linker does run time linking by default, so we don't
10062 # have to do anything special.
10063 aix_use_runtimelinking=no
10064 exp_sym_flag='-Bexport'
10065 no_entry_flag=""
10066 else
10067 # If we're using GNU nm, then we don't want the "-C" option.
10068 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10069 # Also, AIX nm treats weak defined symbols like other global
10070 # defined symbols, whereas GNU nm marks them as "W".
10071 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10072 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'
10073 else
10074 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'
10075 fi
10076 aix_use_runtimelinking=no
9c60689e 10077
a243b558
JF
10078 # Test if we are trying to use run time linking or normal
10079 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10080 # need to do runtime linking.
10081 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10082 for ld_flag in $LDFLAGS; do
10083 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10084 aix_use_runtimelinking=yes
10085 break
10086 fi
10087 done
10088 ;;
10089 esac
9c60689e 10090
a243b558
JF
10091 exp_sym_flag='-bexport'
10092 no_entry_flag='-bnoentry'
10093 fi
9c60689e 10094
a243b558
JF
10095 # When large executables or shared objects are built, AIX ld can
10096 # have problems creating the table of contents. If linking a library
10097 # or program results in "error TOC overflow" add -mminimal-toc to
10098 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10099 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9c60689e 10100
a243b558
JF
10101 archive_cmds=''
10102 hardcode_direct=yes
10103 hardcode_direct_absolute=yes
10104 hardcode_libdir_separator=':'
10105 link_all_deplibs=yes
10106 file_list_spec='${wl}-f,'
9c60689e 10107
a243b558
JF
10108 if test "$GCC" = yes; then
10109 case $host_os in aix4.[012]|aix4.[012].*)
10110 # We only want to do this on AIX 4.2 and lower, the check
10111 # below for broken collect2 doesn't work under 4.3+
10112 collect2name=`${CC} -print-prog-name=collect2`
10113 if test -f "$collect2name" &&
10114 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10115 then
10116 # We have reworked collect2
10117 :
10118 else
10119 # We have old collect2
10120 hardcode_direct=unsupported
10121 # It fails to find uninstalled libraries when the uninstalled
10122 # path is not listed in the libpath. Setting hardcode_minus_L
10123 # to unsupported forces relinking
10124 hardcode_minus_L=yes
10125 hardcode_libdir_flag_spec='-L$libdir'
10126 hardcode_libdir_separator=
10127 fi
10128 ;;
10129 esac
10130 shared_flag='-shared'
10131 if test "$aix_use_runtimelinking" = yes; then
10132 shared_flag="$shared_flag "'${wl}-G'
10133 fi
10134 else
10135 # not using gcc
10136 if test "$host_cpu" = ia64; then
10137 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10138 # chokes on -Wl,-G. The following line is correct:
10139 shared_flag='-G'
10140 else
10141 if test "$aix_use_runtimelinking" = yes; then
10142 shared_flag='${wl}-G'
10143 else
10144 shared_flag='${wl}-bM:SRE'
10145 fi
10146 fi
10147 fi
9c60689e 10148
a243b558
JF
10149 export_dynamic_flag_spec='${wl}-bexpall'
10150 # It seems that -bexpall does not export symbols beginning with
10151 # underscore (_), so it is better to generate a list of symbols to export.
10152 always_export_symbols=yes
10153 if test "$aix_use_runtimelinking" = yes; then
10154 # Warning - without using the other runtime loading flags (-brtl),
10155 # -berok will link without error, but may produce a broken library.
10156 allow_undefined_flag='-berok'
10157 # Determine the default libpath from the value encoded in an
10158 # empty executable.
10159 if test "${lt_cv_aix_libpath+set}" = set; then
10160 aix_libpath=$lt_cv_aix_libpath
9c60689e 10161else
a243b558 10162 if ${lt_cv_aix_libpath_+:} false; then :
9c60689e
DWT
10163 $as_echo_n "(cached) " >&6
10164else
a243b558 10165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9c60689e
DWT
10166/* end confdefs.h. */
10167
9c60689e
DWT
10168int
10169main ()
10170{
a243b558 10171
9c60689e
DWT
10172 ;
10173 return 0;
10174}
10175_ACEOF
10176if ac_fn_c_try_link "$LINENO"; then :
a243b558
JF
10177
10178 lt_aix_libpath_sed='
10179 /Import File Strings/,/^$/ {
10180 /^0/ {
10181 s/^0 *\([^ ]*\) *$/\1/
10182 p
10183 }
10184 }'
10185 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10186 # Check for a 64-bit object if we didn't find anything.
10187 if test -z "$lt_cv_aix_libpath_"; then
10188 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10189 fi
9c60689e
DWT
10190fi
10191rm -f core conftest.err conftest.$ac_objext \
10192 conftest$ac_exeext conftest.$ac_ext
a243b558
JF
10193 if test -z "$lt_cv_aix_libpath_"; then
10194 lt_cv_aix_libpath_="/usr/lib:/lib"
10195 fi
9c60689e
DWT
10196
10197fi
10198
a243b558
JF
10199 aix_libpath=$lt_cv_aix_libpath_
10200fi
9c60689e 10201
a243b558
JF
10202 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10203 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"
10204 else
10205 if test "$host_cpu" = ia64; then
10206 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10207 allow_undefined_flag="-z nodefs"
10208 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"
10209 else
10210 # Determine the default libpath from the value encoded in an
10211 # empty executable.
10212 if test "${lt_cv_aix_libpath+set}" = set; then
10213 aix_libpath=$lt_cv_aix_libpath
9c60689e 10214else
a243b558 10215 if ${lt_cv_aix_libpath_+:} false; then :
9c60689e
DWT
10216 $as_echo_n "(cached) " >&6
10217else
a243b558 10218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9c60689e
DWT
10219/* end confdefs.h. */
10220
9c60689e
DWT
10221int
10222main ()
10223{
a243b558 10224
9c60689e
DWT
10225 ;
10226 return 0;
10227}
10228_ACEOF
10229if ac_fn_c_try_link "$LINENO"; then :
9c60689e 10230
a243b558
JF
10231 lt_aix_libpath_sed='
10232 /Import File Strings/,/^$/ {
10233 /^0/ {
10234 s/^0 *\([^ ]*\) *$/\1/
10235 p
10236 }
10237 }'
10238 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10239 # Check for a 64-bit object if we didn't find anything.
10240 if test -z "$lt_cv_aix_libpath_"; then
10241 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10242 fi
9c60689e
DWT
10243fi
10244rm -f core conftest.err conftest.$ac_objext \
10245 conftest$ac_exeext conftest.$ac_ext
a243b558
JF
10246 if test -z "$lt_cv_aix_libpath_"; then
10247 lt_cv_aix_libpath_="/usr/lib:/lib"
10248 fi
10249
9c60689e 10250fi
9c60689e 10251
a243b558
JF
10252 aix_libpath=$lt_cv_aix_libpath_
10253fi
10254
10255 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10256 # Warning - without using the other run time loading flags,
10257 # -berok will link without error, but may produce a broken library.
10258 no_undefined_flag=' ${wl}-bernotok'
10259 allow_undefined_flag=' ${wl}-berok'
10260 if test "$with_gnu_ld" = yes; then
10261 # We only use this code for GNU lds that support --whole-archive.
10262 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10263 else
10264 # Exported symbols can be pulled into shared objects from archives
10265 whole_archive_flag_spec='$convenience'
10266 fi
10267 archive_cmds_need_lc=yes
10268 # This is similar to how AIX traditionally builds its shared libraries.
10269 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'
10270 fi
10271 fi
10272 ;;
10273
10274 amigaos*)
10275 case $host_cpu in
10276 powerpc)
10277 # see comment about AmigaOS4 .so support
10278 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10279 archive_expsym_cmds=''
10280 ;;
10281 m68k)
10282 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)'
10283 hardcode_libdir_flag_spec='-L$libdir'
10284 hardcode_minus_L=yes
10285 ;;
10286 esac
10287 ;;
10288
10289 bsdi[45]*)
10290 export_dynamic_flag_spec=-rdynamic
10291 ;;
10292
10293 cygwin* | mingw* | pw32* | cegcc*)
10294 # When not using gcc, we currently assume that we are using
10295 # Microsoft Visual C++.
10296 # hardcode_libdir_flag_spec is actually meaningless, as there is
10297 # no search path for DLLs.
10298 case $cc_basename in
10299 cl*)
10300 # Native MSVC
10301 hardcode_libdir_flag_spec=' '
10302 allow_undefined_flag=unsupported
10303 always_export_symbols=yes
10304 file_list_spec='@'
10305 # Tell ltmain to make .lib files, not .a files.
10306 libext=lib
10307 # Tell ltmain to make .dll files, not .so files.
10308 shrext_cmds=".dll"
10309 # FIXME: Setting linknames here is a bad hack.
10310 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10311 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10312 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10313 else
10314 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10315 fi~
10316 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10317 linknames='
10318 # The linker will not automatically build a static lib if we build a DLL.
10319 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10320 enable_shared_with_static_runtimes=yes
10321 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10322 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10323 # Don't use ranlib
10324 old_postinstall_cmds='chmod 644 $oldlib'
10325 postlink_cmds='lt_outputfile="@OUTPUT@"~
10326 lt_tool_outputfile="@TOOL_OUTPUT@"~
10327 case $lt_outputfile in
10328 *.exe|*.EXE) ;;
10329 *)
10330 lt_outputfile="$lt_outputfile.exe"
10331 lt_tool_outputfile="$lt_tool_outputfile.exe"
10332 ;;
10333 esac~
10334 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10335 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10336 $RM "$lt_outputfile.manifest";
10337 fi'
10338 ;;
10339 *)
10340 # Assume MSVC wrapper
10341 hardcode_libdir_flag_spec=' '
10342 allow_undefined_flag=unsupported
10343 # Tell ltmain to make .lib files, not .a files.
10344 libext=lib
10345 # Tell ltmain to make .dll files, not .so files.
10346 shrext_cmds=".dll"
10347 # FIXME: Setting linknames here is a bad hack.
10348 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10349 # The linker will automatically build a .lib file if we build a DLL.
10350 old_archive_from_new_cmds='true'
10351 # FIXME: Should let the user specify the lib program.
10352 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10353 enable_shared_with_static_runtimes=yes
10354 ;;
10355 esac
10356 ;;
10357
10358 darwin* | rhapsody*)
10359
10360
10361 archive_cmds_need_lc=no
10362 hardcode_direct=no
10363 hardcode_automatic=yes
10364 hardcode_shlibpath_var=unsupported
10365 if test "$lt_cv_ld_force_load" = "yes"; then
10366 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\"`'
10367
10368 else
10369 whole_archive_flag_spec=''
10370 fi
10371 link_all_deplibs=yes
10372 allow_undefined_flag="$_lt_dar_allow_undefined"
10373 case $cc_basename in
10374 ifort*) _lt_dar_can_shared=yes ;;
10375 *) _lt_dar_can_shared=$GCC ;;
10376 esac
10377 if test "$_lt_dar_can_shared" = "yes"; then
10378 output_verbose_link_cmd=func_echo_all
10379 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10380 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10381 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}"
10382 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}"
10383
10384 else
10385 ld_shlibs=no
10386 fi
10387
10388 ;;
10389
10390 dgux*)
10391 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10392 hardcode_libdir_flag_spec='-L$libdir'
10393 hardcode_shlibpath_var=no
10394 ;;
10395
10396 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10397 # support. Future versions do this automatically, but an explicit c++rt0.o
10398 # does not break anything, and helps significantly (at the cost of a little
10399 # extra space).
10400 freebsd2.2*)
10401 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10402 hardcode_libdir_flag_spec='-R$libdir'
10403 hardcode_direct=yes
10404 hardcode_shlibpath_var=no
10405 ;;
10406
10407 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10408 freebsd2.*)
10409 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10410 hardcode_direct=yes
10411 hardcode_minus_L=yes
10412 hardcode_shlibpath_var=no
10413 ;;
10414
10415 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10416 freebsd* | dragonfly*)
10417 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10418 hardcode_libdir_flag_spec='-R$libdir'
10419 hardcode_direct=yes
10420 hardcode_shlibpath_var=no
10421 ;;
10422
10423 hpux9*)
10424 if test "$GCC" = yes; then
10425 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'
10426 else
10427 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'
10428 fi
10429 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10430 hardcode_libdir_separator=:
10431 hardcode_direct=yes
10432
10433 # hardcode_minus_L: Not really in the search PATH,
10434 # but as the default location of the library.
10435 hardcode_minus_L=yes
10436 export_dynamic_flag_spec='${wl}-E'
10437 ;;
10438
10439 hpux10*)
10440 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10441 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10442 else
10443 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10444 fi
10445 if test "$with_gnu_ld" = no; then
10446 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10447 hardcode_libdir_separator=:
10448 hardcode_direct=yes
10449 hardcode_direct_absolute=yes
10450 export_dynamic_flag_spec='${wl}-E'
10451 # hardcode_minus_L: Not really in the search PATH,
10452 # but as the default location of the library.
10453 hardcode_minus_L=yes
10454 fi
10455 ;;
10456
10457 hpux11*)
10458 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10459 case $host_cpu in
10460 hppa*64*)
10461 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10462 ;;
10463 ia64*)
10464 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10465 ;;
10466 *)
10467 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10468 ;;
10469 esac
10470 else
10471 case $host_cpu in
10472 hppa*64*)
10473 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10474 ;;
10475 ia64*)
10476 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10477 ;;
10478 *)
10479
10480 # Older versions of the 11.00 compiler do not understand -b yet
10481 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10483$as_echo_n "checking if $CC understands -b... " >&6; }
10484if ${lt_cv_prog_compiler__b+:} false; then :
10485 $as_echo_n "(cached) " >&6
10486else
10487 lt_cv_prog_compiler__b=no
10488 save_LDFLAGS="$LDFLAGS"
10489 LDFLAGS="$LDFLAGS -b"
10490 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10491 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10492 # The linker can only warn and ignore the option if not recognized
10493 # So say no if there are warnings
10494 if test -s conftest.err; then
10495 # Append any errors to the config.log.
10496 cat conftest.err 1>&5
10497 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10498 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10499 if diff conftest.exp conftest.er2 >/dev/null; then
10500 lt_cv_prog_compiler__b=yes
10501 fi
10502 else
10503 lt_cv_prog_compiler__b=yes
10504 fi
10505 fi
10506 $RM -r conftest*
10507 LDFLAGS="$save_LDFLAGS"
10508
10509fi
10510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10511$as_echo "$lt_cv_prog_compiler__b" >&6; }
10512
10513if test x"$lt_cv_prog_compiler__b" = xyes; then
10514 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10515else
10516 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10517fi
10518
10519 ;;
10520 esac
10521 fi
10522 if test "$with_gnu_ld" = no; then
10523 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10524 hardcode_libdir_separator=:
10525
10526 case $host_cpu in
10527 hppa*64*|ia64*)
10528 hardcode_direct=no
10529 hardcode_shlibpath_var=no
10530 ;;
10531 *)
10532 hardcode_direct=yes
10533 hardcode_direct_absolute=yes
10534 export_dynamic_flag_spec='${wl}-E'
10535
10536 # hardcode_minus_L: Not really in the search PATH,
10537 # but as the default location of the library.
10538 hardcode_minus_L=yes
10539 ;;
10540 esac
10541 fi
10542 ;;
10543
10544 irix5* | irix6* | nonstopux*)
10545 if test "$GCC" = yes; then
10546 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'
10547 # Try to use the -exported_symbol ld option, if it does not
10548 # work, assume that -exports_file does not work either and
10549 # implicitly export all symbols.
10550 # This should be the same for all languages, so no per-tag cache variable.
10551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10552$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10553if ${lt_cv_irix_exported_symbol+:} false; then :
10554 $as_echo_n "(cached) " >&6
10555else
10556 save_LDFLAGS="$LDFLAGS"
10557 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10559/* end confdefs.h. */
10560int foo (void) { return 0; }
10561_ACEOF
10562if ac_fn_c_try_link "$LINENO"; then :
10563 lt_cv_irix_exported_symbol=yes
10564else
10565 lt_cv_irix_exported_symbol=no
10566fi
10567rm -f core conftest.err conftest.$ac_objext \
10568 conftest$ac_exeext conftest.$ac_ext
10569 LDFLAGS="$save_LDFLAGS"
10570fi
10571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10572$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10573 if test "$lt_cv_irix_exported_symbol" = yes; then
10574 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'
10575 fi
10576 else
10577 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'
10578 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'
10579 fi
10580 archive_cmds_need_lc='no'
10581 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10582 hardcode_libdir_separator=:
10583 inherit_rpath=yes
10584 link_all_deplibs=yes
10585 ;;
10586
10587 netbsd*)
10588 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10589 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10590 else
10591 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10592 fi
10593 hardcode_libdir_flag_spec='-R$libdir'
10594 hardcode_direct=yes
10595 hardcode_shlibpath_var=no
10596 ;;
10597
10598 newsos6)
10599 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10600 hardcode_direct=yes
10601 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10602 hardcode_libdir_separator=:
10603 hardcode_shlibpath_var=no
10604 ;;
10605
10606 *nto* | *qnx*)
10607 ;;
10608
10609 openbsd*)
10610 if test -f /usr/libexec/ld.so; then
10611 hardcode_direct=yes
10612 hardcode_shlibpath_var=no
10613 hardcode_direct_absolute=yes
10614 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10615 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10616 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10617 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10618 export_dynamic_flag_spec='${wl}-E'
10619 else
10620 case $host_os in
10621 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10622 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10623 hardcode_libdir_flag_spec='-R$libdir'
10624 ;;
10625 *)
10626 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10627 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10628 ;;
10629 esac
10630 fi
10631 else
10632 ld_shlibs=no
10633 fi
10634 ;;
10635
10636 os2*)
10637 hardcode_libdir_flag_spec='-L$libdir'
10638 hardcode_minus_L=yes
10639 allow_undefined_flag=unsupported
10640 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'
10641 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10642 ;;
10643
10644 osf3*)
10645 if test "$GCC" = yes; then
10646 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10647 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'
10648 else
10649 allow_undefined_flag=' -expect_unresolved \*'
10650 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'
10651 fi
10652 archive_cmds_need_lc='no'
10653 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10654 hardcode_libdir_separator=:
10655 ;;
10656
10657 osf4* | osf5*) # as osf3* with the addition of -msym flag
10658 if test "$GCC" = yes; then
10659 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10660 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'
10661 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10662 else
10663 allow_undefined_flag=' -expect_unresolved \*'
10664 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'
10665 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~
10666 $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'
10667
10668 # Both c and cxx compiler support -rpath directly
10669 hardcode_libdir_flag_spec='-rpath $libdir'
10670 fi
10671 archive_cmds_need_lc='no'
10672 hardcode_libdir_separator=:
10673 ;;
10674
10675 solaris*)
10676 no_undefined_flag=' -z defs'
10677 if test "$GCC" = yes; then
10678 wlarc='${wl}'
10679 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10680 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10681 $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'
10682 else
10683 case `$CC -V 2>&1` in
10684 *"Compilers 5.0"*)
10685 wlarc=''
10686 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10687 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10688 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10689 ;;
10690 *)
10691 wlarc='${wl}'
10692 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10693 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10694 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10695 ;;
10696 esac
10697 fi
10698 hardcode_libdir_flag_spec='-R$libdir'
10699 hardcode_shlibpath_var=no
10700 case $host_os in
10701 solaris2.[0-5] | solaris2.[0-5].*) ;;
10702 *)
10703 # The compiler driver will combine and reorder linker options,
10704 # but understands `-z linker_flag'. GCC discards it without `$wl',
10705 # but is careful enough not to reorder.
10706 # Supported since Solaris 2.6 (maybe 2.5.1?)
10707 if test "$GCC" = yes; then
10708 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10709 else
10710 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10711 fi
10712 ;;
10713 esac
10714 link_all_deplibs=yes
10715 ;;
10716
10717 sunos4*)
10718 if test "x$host_vendor" = xsequent; then
10719 # Use $CC to link under sequent, because it throws in some extra .o
10720 # files that make .init and .fini sections work.
10721 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10722 else
10723 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10724 fi
10725 hardcode_libdir_flag_spec='-L$libdir'
10726 hardcode_direct=yes
10727 hardcode_minus_L=yes
10728 hardcode_shlibpath_var=no
10729 ;;
10730
10731 sysv4)
10732 case $host_vendor in
10733 sni)
10734 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10735 hardcode_direct=yes # is this really true???
10736 ;;
10737 siemens)
10738 ## LD is ld it makes a PLAMLIB
10739 ## CC just makes a GrossModule.
10740 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10741 reload_cmds='$CC -r -o $output$reload_objs'
10742 hardcode_direct=no
10743 ;;
10744 motorola)
10745 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10746 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10747 ;;
10748 esac
10749 runpath_var='LD_RUN_PATH'
10750 hardcode_shlibpath_var=no
10751 ;;
10752
10753 sysv4.3*)
10754 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10755 hardcode_shlibpath_var=no
10756 export_dynamic_flag_spec='-Bexport'
10757 ;;
10758
10759 sysv4*MP*)
10760 if test -d /usr/nec; then
10761 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10762 hardcode_shlibpath_var=no
10763 runpath_var=LD_RUN_PATH
10764 hardcode_runpath_var=yes
10765 ld_shlibs=yes
10766 fi
10767 ;;
10768
10769 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10770 no_undefined_flag='${wl}-z,text'
10771 archive_cmds_need_lc=no
10772 hardcode_shlibpath_var=no
10773 runpath_var='LD_RUN_PATH'
10774
10775 if test "$GCC" = yes; then
10776 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10777 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10778 else
10779 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10780 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10781 fi
10782 ;;
10783
10784 sysv5* | sco3.2v5* | sco5v6*)
10785 # Note: We can NOT use -z defs as we might desire, because we do not
10786 # link with -lc, and that would cause any symbols used from libc to
10787 # always be unresolved, which means just about no library would
10788 # ever link correctly. If we're not using GNU ld we use -z text
10789 # though, which does catch some bad symbols but isn't as heavy-handed
10790 # as -z defs.
10791 no_undefined_flag='${wl}-z,text'
10792 allow_undefined_flag='${wl}-z,nodefs'
10793 archive_cmds_need_lc=no
10794 hardcode_shlibpath_var=no
10795 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10796 hardcode_libdir_separator=':'
10797 link_all_deplibs=yes
10798 export_dynamic_flag_spec='${wl}-Bexport'
10799 runpath_var='LD_RUN_PATH'
10800
10801 if test "$GCC" = yes; then
10802 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10803 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10804 else
10805 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10806 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10807 fi
10808 ;;
10809
10810 uts4*)
10811 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10812 hardcode_libdir_flag_spec='-L$libdir'
10813 hardcode_shlibpath_var=no
10814 ;;
10815
10816 *)
10817 ld_shlibs=no
10818 ;;
10819 esac
10820
10821 if test x$host_vendor = xsni; then
10822 case $host in
10823 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10824 export_dynamic_flag_spec='${wl}-Blargedynsym'
10825 ;;
10826 esac
10827 fi
10828 fi
10829
10830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10831$as_echo "$ld_shlibs" >&6; }
10832test "$ld_shlibs" = no && can_build_shared=no
10833
10834with_gnu_ld=$with_gnu_ld
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850#
10851# Do we need to explicitly link libc?
10852#
10853case "x$archive_cmds_need_lc" in
10854x|xyes)
10855 # Assume -lc should be added
10856 archive_cmds_need_lc=yes
10857
10858 if test "$enable_shared" = yes && test "$GCC" = yes; then
10859 case $archive_cmds in
10860 *'~'*)
10861 # FIXME: we may have to deal with multi-command sequences.
10862 ;;
10863 '$CC '*)
10864 # Test whether the compiler implicitly links with -lc since on some
10865 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10866 # to ld, don't add -lc before -lgcc.
10867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10868$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10869if ${lt_cv_archive_cmds_need_lc+:} false; then :
10870 $as_echo_n "(cached) " >&6
10871else
10872 $RM -r conftest*
10873 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10874
10875 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10876 (eval $ac_compile) 2>&5
10877 ac_status=$?
10878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10879 test $ac_status = 0; } 2>conftest.err; then
10880 soname=conftest
10881 lib=conftest
10882 libobjs=conftest.$ac_objext
10883 deplibs=
10884 wl=$lt_prog_compiler_wl
10885 pic_flag=$lt_prog_compiler_pic
10886 compiler_flags=-v
10887 linker_flags=-v
10888 verstring=
10889 output_objdir=.
10890 libname=conftest
10891 lt_save_allow_undefined_flag=$allow_undefined_flag
10892 allow_undefined_flag=
10893 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10894 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10895 ac_status=$?
10896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10897 test $ac_status = 0; }
10898 then
10899 lt_cv_archive_cmds_need_lc=no
10900 else
10901 lt_cv_archive_cmds_need_lc=yes
10902 fi
10903 allow_undefined_flag=$lt_save_allow_undefined_flag
10904 else
10905 cat conftest.err 1>&5
10906 fi
10907 $RM -r conftest*
10908
10909fi
10910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10911$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10912 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10913 ;;
10914 esac
10915 fi
10916 ;;
10917esac
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11071$as_echo_n "checking dynamic linker characteristics... " >&6; }
11072
11073if test "$GCC" = yes; then
11074 case $host_os in
11075 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11076 *) lt_awk_arg="/^libraries:/" ;;
11077 esac
11078 case $host_os in
11079 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11080 *) lt_sed_strip_eq="s,=/,/,g" ;;
11081 esac
11082 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11083 case $lt_search_path_spec in
11084 *\;*)
11085 # if the path contains ";" then we assume it to be the separator
11086 # otherwise default to the standard path separator (i.e. ":") - it is
11087 # assumed that no part of a normal pathname contains ";" but that should
11088 # okay in the real world where ";" in dirpaths is itself problematic.
11089 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11090 ;;
11091 *)
11092 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11093 ;;
11094 esac
11095 # Ok, now we have the path, separated by spaces, we can step through it
11096 # and add multilib dir if necessary.
11097 lt_tmp_lt_search_path_spec=
11098 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11099 for lt_sys_path in $lt_search_path_spec; do
11100 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11101 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11102 else
11103 test -d "$lt_sys_path" && \
11104 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11105 fi
11106 done
11107 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11108BEGIN {RS=" "; FS="/|\n";} {
11109 lt_foo="";
11110 lt_count=0;
11111 for (lt_i = NF; lt_i > 0; lt_i--) {
11112 if ($lt_i != "" && $lt_i != ".") {
11113 if ($lt_i == "..") {
11114 lt_count++;
11115 } else {
11116 if (lt_count == 0) {
11117 lt_foo="/" $lt_i lt_foo;
11118 } else {
11119 lt_count--;
11120 }
11121 }
11122 }
11123 }
11124 if (lt_foo != "") { lt_freq[lt_foo]++; }
11125 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11126}'`
11127 # AWK program above erroneously prepends '/' to C:/dos/paths
11128 # for these hosts.
11129 case $host_os in
11130 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11131 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11132 esac
11133 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11134else
11135 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11136fi
11137library_names_spec=
11138libname_spec='lib$name'
11139soname_spec=
11140shrext_cmds=".so"
11141postinstall_cmds=
11142postuninstall_cmds=
11143finish_cmds=
11144finish_eval=
11145shlibpath_var=
11146shlibpath_overrides_runpath=unknown
11147version_type=none
11148dynamic_linker="$host_os ld.so"
11149sys_lib_dlsearch_path_spec="/lib /usr/lib"
11150need_lib_prefix=unknown
11151hardcode_into_libs=no
11152
11153# when you set need_version to no, make sure it does not cause -set_version
11154# flags to be left without arguments
11155need_version=unknown
11156
11157case $host_os in
11158aix3*)
11159 version_type=linux # correct to gnu/linux during the next big refactor
11160 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11161 shlibpath_var=LIBPATH
11162
11163 # AIX 3 has no versioning support, so we append a major version to the name.
11164 soname_spec='${libname}${release}${shared_ext}$major'
11165 ;;
11166
11167aix[4-9]*)
11168 version_type=linux # correct to gnu/linux during the next big refactor
11169 need_lib_prefix=no
11170 need_version=no
11171 hardcode_into_libs=yes
11172 if test "$host_cpu" = ia64; then
11173 # AIX 5 supports IA64
11174 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11175 shlibpath_var=LD_LIBRARY_PATH
11176 else
11177 # With GCC up to 2.95.x, collect2 would create an import file
11178 # for dependence libraries. The import file would start with
11179 # the line `#! .'. This would cause the generated library to
11180 # depend on `.', always an invalid library. This was fixed in
11181 # development snapshots of GCC prior to 3.0.
11182 case $host_os in
11183 aix4 | aix4.[01] | aix4.[01].*)
11184 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11185 echo ' yes '
11186 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11187 :
11188 else
11189 can_build_shared=no
11190 fi
11191 ;;
11192 esac
11193 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11194 # soname into executable. Probably we can add versioning support to
11195 # collect2, so additional links can be useful in future.
11196 if test "$aix_use_runtimelinking" = yes; then
11197 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11198 # instead of lib<name>.a to let people know that these are not
11199 # typical AIX shared libraries.
11200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11201 else
11202 # We preserve .a as extension for shared libraries through AIX4.2
11203 # and later when we are not doing run time linking.
11204 library_names_spec='${libname}${release}.a $libname.a'
11205 soname_spec='${libname}${release}${shared_ext}$major'
11206 fi
11207 shlibpath_var=LIBPATH
11208 fi
11209 ;;
11210
11211amigaos*)
11212 case $host_cpu in
11213 powerpc)
11214 # Since July 2007 AmigaOS4 officially supports .so libraries.
11215 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11217 ;;
11218 m68k)
11219 library_names_spec='$libname.ixlibrary $libname.a'
11220 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11221 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'
11222 ;;
11223 esac
11224 ;;
11225
11226beos*)
11227 library_names_spec='${libname}${shared_ext}'
11228 dynamic_linker="$host_os ld.so"
11229 shlibpath_var=LIBRARY_PATH
11230 ;;
11231
11232bsdi[45]*)
11233 version_type=linux # correct to gnu/linux during the next big refactor
11234 need_version=no
11235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11236 soname_spec='${libname}${release}${shared_ext}$major'
11237 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11238 shlibpath_var=LD_LIBRARY_PATH
11239 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11240 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11241 # the default ld.so.conf also contains /usr/contrib/lib and
11242 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11243 # libtool to hard-code these into programs
11244 ;;
11245
11246cygwin* | mingw* | pw32* | cegcc*)
11247 version_type=windows
11248 shrext_cmds=".dll"
11249 need_version=no
11250 need_lib_prefix=no
9c60689e 11251
a243b558
JF
11252 case $GCC,$cc_basename in
11253 yes,*)
11254 # gcc
11255 library_names_spec='$libname.dll.a'
11256 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11257 postinstall_cmds='base_file=`basename \${file}`~
11258 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11259 dldir=$destdir/`dirname \$dlpath`~
11260 test -d \$dldir || mkdir -p \$dldir~
11261 $install_prog $dir/$dlname \$dldir/$dlname~
11262 chmod a+x \$dldir/$dlname~
11263 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11264 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11265 fi'
11266 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11267 dlpath=$dir/\$dldll~
11268 $RM \$dlpath'
11269 shlibpath_overrides_runpath=yes
9c60689e 11270
a243b558
JF
11271 case $host_os in
11272 cygwin*)
11273 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11274 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9c60689e 11275
a243b558
JF
11276 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11277 ;;
11278 mingw* | cegcc*)
11279 # MinGW DLLs use traditional 'lib' prefix
11280 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11281 ;;
11282 pw32*)
11283 # pw32 DLLs use 'pw' prefix rather than 'lib'
11284 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11285 ;;
11286 esac
11287 dynamic_linker='Win32 ld.exe'
11288 ;;
9c60689e 11289
a243b558
JF
11290 *,cl*)
11291 # Native MSVC
11292 libname_spec='$name'
11293 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11294 library_names_spec='${libname}.dll.lib'
9c60689e 11295
a243b558
JF
11296 case $build_os in
11297 mingw*)
11298 sys_lib_search_path_spec=
11299 lt_save_ifs=$IFS
11300 IFS=';'
11301 for lt_path in $LIB
11302 do
11303 IFS=$lt_save_ifs
11304 # Let DOS variable expansion print the short 8.3 style file name.
11305 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11306 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11307 done
11308 IFS=$lt_save_ifs
11309 # Convert to MSYS style.
11310 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11311 ;;
11312 cygwin*)
11313 # Convert to unix form, then to dos form, then back to unix form
11314 # but this time dos style (no spaces!) so that the unix form looks
11315 # like /cygdrive/c/PROGRA~1:/cygdr...
11316 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11317 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11318 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11319 ;;
11320 *)
11321 sys_lib_search_path_spec="$LIB"
11322 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11323 # It is most probably a Windows format PATH.
11324 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11325 else
11326 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11327 fi
11328 # FIXME: find the short name or the path components, as spaces are
11329 # common. (e.g. "Program Files" -> "PROGRA~1")
11330 ;;
11331 esac
11332
11333 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11334 postinstall_cmds='base_file=`basename \${file}`~
11335 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11336 dldir=$destdir/`dirname \$dlpath`~
11337 test -d \$dldir || mkdir -p \$dldir~
11338 $install_prog $dir/$dlname \$dldir/$dlname'
11339 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11340 dlpath=$dir/\$dldll~
11341 $RM \$dlpath'
11342 shlibpath_overrides_runpath=yes
11343 dynamic_linker='Win32 link.exe'
11344 ;;
9c60689e 11345
a243b558
JF
11346 *)
11347 # Assume MSVC wrapper
11348 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11349 dynamic_linker='Win32 ld.exe'
11350 ;;
11351 esac
11352 # FIXME: first we should search . and the directory the executable is in
11353 shlibpath_var=PATH
11354 ;;
9c60689e 11355
a243b558
JF
11356darwin* | rhapsody*)
11357 dynamic_linker="$host_os dyld"
11358 version_type=darwin
11359 need_lib_prefix=no
11360 need_version=no
11361 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11362 soname_spec='${libname}${release}${major}$shared_ext'
11363 shlibpath_overrides_runpath=yes
11364 shlibpath_var=DYLD_LIBRARY_PATH
11365 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9c60689e 11366
a243b558
JF
11367 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11368 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11369 ;;
9c60689e 11370
a243b558
JF
11371dgux*)
11372 version_type=linux # correct to gnu/linux during the next big refactor
11373 need_lib_prefix=no
11374 need_version=no
11375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11376 soname_spec='${libname}${release}${shared_ext}$major'
11377 shlibpath_var=LD_LIBRARY_PATH
11378 ;;
11379
11380freebsd* | dragonfly*)
11381 # DragonFly does not have aout. When/if they implement a new
11382 # versioning mechanism, adjust this.
11383 if test -x /usr/bin/objformat; then
11384 objformat=`/usr/bin/objformat`
11385 else
11386 case $host_os in
11387 freebsd[23].*) objformat=aout ;;
11388 *) objformat=elf ;;
11389 esac
11390 fi
11391 version_type=freebsd-$objformat
11392 case $version_type in
11393 freebsd-elf*)
11394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11395 need_version=no
11396 need_lib_prefix=no
11397 ;;
11398 freebsd-*)
11399 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11400 need_version=yes
11401 ;;
11402 esac
11403 shlibpath_var=LD_LIBRARY_PATH
11404 case $host_os in
11405 freebsd2.*)
11406 shlibpath_overrides_runpath=yes
11407 ;;
11408 freebsd3.[01]* | freebsdelf3.[01]*)
11409 shlibpath_overrides_runpath=yes
11410 hardcode_into_libs=yes
11411 ;;
11412 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11413 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11414 shlibpath_overrides_runpath=no
11415 hardcode_into_libs=yes
11416 ;;
11417 *) # from 4.6 on, and DragonFly
11418 shlibpath_overrides_runpath=yes
11419 hardcode_into_libs=yes
11420 ;;
11421 esac
11422 ;;
9c60689e 11423
a243b558
JF
11424gnu*)
11425 version_type=linux # correct to gnu/linux during the next big refactor
11426 need_lib_prefix=no
11427 need_version=no
11428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11429 soname_spec='${libname}${release}${shared_ext}$major'
11430 shlibpath_var=LD_LIBRARY_PATH
11431 shlibpath_overrides_runpath=no
11432 hardcode_into_libs=yes
11433 ;;
9c60689e 11434
a243b558
JF
11435haiku*)
11436 version_type=linux # correct to gnu/linux during the next big refactor
11437 need_lib_prefix=no
11438 need_version=no
11439 dynamic_linker="$host_os runtime_loader"
11440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11441 soname_spec='${libname}${release}${shared_ext}$major'
11442 shlibpath_var=LIBRARY_PATH
11443 shlibpath_overrides_runpath=yes
11444 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11445 hardcode_into_libs=yes
11446 ;;
9c60689e 11447
a243b558
JF
11448hpux9* | hpux10* | hpux11*)
11449 # Give a soname corresponding to the major version so that dld.sl refuses to
11450 # link against other versions.
11451 version_type=sunos
11452 need_lib_prefix=no
11453 need_version=no
11454 case $host_cpu in
11455 ia64*)
11456 shrext_cmds='.so'
11457 hardcode_into_libs=yes
11458 dynamic_linker="$host_os dld.so"
11459 shlibpath_var=LD_LIBRARY_PATH
11460 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11462 soname_spec='${libname}${release}${shared_ext}$major'
11463 if test "X$HPUX_IA64_MODE" = X32; then
11464 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11465 else
11466 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11467 fi
11468 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11469 ;;
11470 hppa*64*)
11471 shrext_cmds='.sl'
11472 hardcode_into_libs=yes
11473 dynamic_linker="$host_os dld.sl"
11474 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11475 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11477 soname_spec='${libname}${release}${shared_ext}$major'
11478 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11479 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11480 ;;
11481 *)
11482 shrext_cmds='.sl'
11483 dynamic_linker="$host_os dld.sl"
11484 shlibpath_var=SHLIB_PATH
11485 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11487 soname_spec='${libname}${release}${shared_ext}$major'
9c60689e
DWT
11488 ;;
11489 esac
a243b558
JF
11490 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11491 postinstall_cmds='chmod 555 $lib'
11492 # or fails outright, so override atomically:
11493 install_override_mode=555
11494 ;;
9c60689e 11495
a243b558
JF
11496interix[3-9]*)
11497 version_type=linux # correct to gnu/linux during the next big refactor
11498 need_lib_prefix=no
11499 need_version=no
11500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11501 soname_spec='${libname}${release}${shared_ext}$major'
11502 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11503 shlibpath_var=LD_LIBRARY_PATH
11504 shlibpath_overrides_runpath=no
11505 hardcode_into_libs=yes
11506 ;;
9c60689e 11507
a243b558
JF
11508irix5* | irix6* | nonstopux*)
11509 case $host_os in
11510 nonstopux*) version_type=nonstopux ;;
11511 *)
11512 if test "$lt_cv_prog_gnu_ld" = yes; then
11513 version_type=linux # correct to gnu/linux during the next big refactor
11514 else
11515 version_type=irix
11516 fi ;;
11517 esac
11518 need_lib_prefix=no
11519 need_version=no
11520 soname_spec='${libname}${release}${shared_ext}$major'
11521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11522 case $host_os in
11523 irix5* | nonstopux*)
11524 libsuff= shlibsuff=
11525 ;;
11526 *)
11527 case $LD in # libtool.m4 will add one of these switches to LD
11528 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11529 libsuff= shlibsuff= libmagic=32-bit;;
11530 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11531 libsuff=32 shlibsuff=N32 libmagic=N32;;
11532 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11533 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11534 *) libsuff= shlibsuff= libmagic=never-match;;
11535 esac
11536 ;;
11537 esac
11538 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11539 shlibpath_overrides_runpath=no
11540 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11541 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11542 hardcode_into_libs=yes
11543 ;;
9c60689e 11544
a243b558
JF
11545# No shared lib support for Linux oldld, aout, or coff.
11546linux*oldld* | linux*aout* | linux*coff*)
11547 dynamic_linker=no
11548 ;;
9c60689e 11549
a243b558
JF
11550# This must be glibc/ELF.
11551linux* | k*bsd*-gnu | kopensolaris*-gnu)
11552 version_type=linux # correct to gnu/linux during the next big refactor
11553 need_lib_prefix=no
11554 need_version=no
11555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11556 soname_spec='${libname}${release}${shared_ext}$major'
11557 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11558 shlibpath_var=LD_LIBRARY_PATH
11559 shlibpath_overrides_runpath=no
9c60689e 11560
a243b558
JF
11561 # Some binutils ld are patched to set DT_RUNPATH
11562 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
9c60689e
DWT
11563 $as_echo_n "(cached) " >&6
11564else
a243b558
JF
11565 lt_cv_shlibpath_overrides_runpath=no
11566 save_LDFLAGS=$LDFLAGS
11567 save_libdir=$libdir
11568 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11569 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11571/* end confdefs.h. */
ee134472 11572
a243b558
JF
11573int
11574main ()
9c60689e 11575{
9c60689e 11576
a243b558
JF
11577 ;
11578 return 0;
11579}
11580_ACEOF
11581if ac_fn_c_try_link "$LINENO"; then :
11582 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11583 lt_cv_shlibpath_overrides_runpath=yes
11584fi
11585fi
11586rm -f core conftest.err conftest.$ac_objext \
11587 conftest$ac_exeext conftest.$ac_ext
11588 LDFLAGS=$save_LDFLAGS
11589 libdir=$save_libdir
9c60689e 11590
a243b558 11591fi
9c60689e 11592
a243b558 11593 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
9c60689e 11594
a243b558
JF
11595 # This implies no fast_install, which is unacceptable.
11596 # Some rework will be needed to allow for fast_install
11597 # before this can be enabled.
11598 hardcode_into_libs=yes
9c60689e 11599
a243b558
JF
11600 # Append ld.so.conf contents to the search path
11601 if test -f /etc/ld.so.conf; then
11602 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' ' '`
11603 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11604 fi
ee134472 11605
a243b558
JF
11606 # We used to test for /lib/ld.so.1 and disable shared libraries on
11607 # powerpc, because MkLinux only supported shared libraries with the
11608 # GNU dynamic linker. Since this was broken with cross compilers,
11609 # most powerpc-linux boxes support dynamic linking these days and
11610 # people can always --disable-shared, the test was removed, and we
11611 # assume the GNU/Linux dynamic linker is in use.
11612 dynamic_linker='GNU/Linux ld.so'
11613 ;;
9c60689e 11614
a243b558
JF
11615netbsd*)
11616 version_type=sunos
11617 need_lib_prefix=no
11618 need_version=no
11619 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11621 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11622 dynamic_linker='NetBSD (a.out) ld.so'
9c60689e 11623 else
a243b558
JF
11624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11625 soname_spec='${libname}${release}${shared_ext}$major'
11626 dynamic_linker='NetBSD ld.elf_so'
9c60689e 11627 fi
a243b558
JF
11628 shlibpath_var=LD_LIBRARY_PATH
11629 shlibpath_overrides_runpath=yes
11630 hardcode_into_libs=yes
11631 ;;
9c60689e 11632
a243b558
JF
11633newsos6)
11634 version_type=linux # correct to gnu/linux during the next big refactor
11635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11636 shlibpath_var=LD_LIBRARY_PATH
11637 shlibpath_overrides_runpath=yes
11638 ;;
9c60689e 11639
a243b558
JF
11640*nto* | *qnx*)
11641 version_type=qnx
11642 need_lib_prefix=no
11643 need_version=no
11644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11645 soname_spec='${libname}${release}${shared_ext}$major'
11646 shlibpath_var=LD_LIBRARY_PATH
11647 shlibpath_overrides_runpath=no
11648 hardcode_into_libs=yes
11649 dynamic_linker='ldqnx.so'
11650 ;;
9c60689e 11651
a243b558
JF
11652openbsd*)
11653 version_type=sunos
11654 sys_lib_dlsearch_path_spec="/usr/lib"
11655 need_lib_prefix=no
11656 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11657 case $host_os in
11658 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11659 *) need_version=no ;;
9c60689e 11660 esac
a243b558
JF
11661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11662 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11663 shlibpath_var=LD_LIBRARY_PATH
11664 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11665 case $host_os in
11666 openbsd2.[89] | openbsd2.[89].*)
11667 shlibpath_overrides_runpath=no
11668 ;;
11669 *)
11670 shlibpath_overrides_runpath=yes
11671 ;;
11672 esac
11673 else
11674 shlibpath_overrides_runpath=yes
11675 fi
11676 ;;
9c60689e 11677
a243b558
JF
11678os2*)
11679 libname_spec='$name'
11680 shrext_cmds=".dll"
11681 need_lib_prefix=no
11682 library_names_spec='$libname${shared_ext} $libname.a'
11683 dynamic_linker='OS/2 ld.exe'
11684 shlibpath_var=LIBPATH
11685 ;;
9c60689e 11686
a243b558
JF
11687osf3* | osf4* | osf5*)
11688 version_type=osf
11689 need_lib_prefix=no
11690 need_version=no
11691 soname_spec='${libname}${release}${shared_ext}$major'
11692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11693 shlibpath_var=LD_LIBRARY_PATH
11694 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11695 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11696 ;;
11697
11698rdos*)
11699 dynamic_linker=no
11700 ;;
11701
11702solaris*)
11703 version_type=linux # correct to gnu/linux during the next big refactor
11704 need_lib_prefix=no
11705 need_version=no
11706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11707 soname_spec='${libname}${release}${shared_ext}$major'
11708 shlibpath_var=LD_LIBRARY_PATH
11709 shlibpath_overrides_runpath=yes
11710 hardcode_into_libs=yes
11711 # ldd complains unless libraries are executable
11712 postinstall_cmds='chmod +x $lib'
11713 ;;
9c60689e 11714
a243b558
JF
11715sunos4*)
11716 version_type=sunos
11717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11718 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11719 shlibpath_var=LD_LIBRARY_PATH
11720 shlibpath_overrides_runpath=yes
11721 if test "$with_gnu_ld" = yes; then
11722 need_lib_prefix=no
11723 fi
11724 need_version=yes
11725 ;;
9c60689e 11726
a243b558
JF
11727sysv4 | sysv4.3*)
11728 version_type=linux # correct to gnu/linux during the next big refactor
11729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11730 soname_spec='${libname}${release}${shared_ext}$major'
11731 shlibpath_var=LD_LIBRARY_PATH
11732 case $host_vendor in
11733 sni)
11734 shlibpath_overrides_runpath=no
11735 need_lib_prefix=no
11736 runpath_var=LD_RUN_PATH
11737 ;;
11738 siemens)
11739 need_lib_prefix=no
11740 ;;
11741 motorola)
11742 need_lib_prefix=no
11743 need_version=no
11744 shlibpath_overrides_runpath=no
11745 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11746 ;;
11747 esac
11748 ;;
9c60689e 11749
a243b558
JF
11750sysv4*MP*)
11751 if test -d /usr/nec ;then
11752 version_type=linux # correct to gnu/linux during the next big refactor
11753 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11754 soname_spec='$libname${shared_ext}.$major'
11755 shlibpath_var=LD_LIBRARY_PATH
11756 fi
11757 ;;
9c60689e 11758
a243b558
JF
11759sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11760 version_type=freebsd-elf
11761 need_lib_prefix=no
11762 need_version=no
11763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11764 soname_spec='${libname}${release}${shared_ext}$major'
11765 shlibpath_var=LD_LIBRARY_PATH
11766 shlibpath_overrides_runpath=yes
11767 hardcode_into_libs=yes
11768 if test "$with_gnu_ld" = yes; then
11769 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11770 else
11771 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11772 case $host_os in
11773 sco3.2v5*)
11774 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11775 ;;
11776 esac
11777 fi
11778 sys_lib_dlsearch_path_spec='/usr/lib'
11779 ;;
9c60689e 11780
a243b558
JF
11781tpf*)
11782 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11783 version_type=linux # correct to gnu/linux during the next big refactor
11784 need_lib_prefix=no
11785 need_version=no
11786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11787 shlibpath_var=LD_LIBRARY_PATH
11788 shlibpath_overrides_runpath=no
11789 hardcode_into_libs=yes
11790 ;;
9c60689e 11791
a243b558
JF
11792uts4*)
11793 version_type=linux # correct to gnu/linux during the next big refactor
11794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11795 soname_spec='${libname}${release}${shared_ext}$major'
11796 shlibpath_var=LD_LIBRARY_PATH
11797 ;;
9c60689e 11798
a243b558
JF
11799*)
11800 dynamic_linker=no
11801 ;;
11802esac
11803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11804$as_echo "$dynamic_linker" >&6; }
11805test "$dynamic_linker" = no && can_build_shared=no
9c60689e 11806
a243b558
JF
11807variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11808if test "$GCC" = yes; then
11809 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11810fi
9c60689e 11811
a243b558
JF
11812if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11813 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11814fi
11815if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11816 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11817fi
9c60689e
DWT
11818
11819
11820
11821
11822
11823
11824
11825
9c60689e
DWT
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
9c60689e 11838
9c60689e 11839
9c60689e 11840
9c60689e 11841
9c60689e
DWT
11842
11843
11844
11845
9c60689e 11846
9c60689e
DWT
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859
53ba6704
JF
11860
11861
9c60689e
DWT
11862
11863
11864
11865
9c60689e
DWT
11866
11867
3fd51f51 11868
66170b30
JF
11869
11870
11871
3fd51f51 11872
12833ad8
JF
11873
11874
11875
11876
3fd51f51 11877
3fd51f51
DWT
11878
11879
3fd51f51 11880
3fd51f51 11881
3fd51f51 11882
66170b30 11883
632b71ea 11884
632b71ea
DWT
11885
11886
790e5246 11887
66170b30 11888
9c60689e 11889
9c60689e
DWT
11890
11891
9c60689e 11892
9c60689e
DWT
11893
11894
66170b30 11895
66170b30 11896
9c60689e 11897
e9c9a47c
DWT
11898
11899
11900
66170b30
JF
11901
11902
66170b30 11903
e9c9a47c 11904
a243b558
JF
11905
11906
11907
11908
11909
11910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11911$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11912hardcode_action=
11913if test -n "$hardcode_libdir_flag_spec" ||
11914 test -n "$runpath_var" ||
11915 test "X$hardcode_automatic" = "Xyes" ; then
11916
11917 # We can hardcode non-existent directories.
11918 if test "$hardcode_direct" != no &&
11919 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11920 # have to relink, otherwise we might link with an installed library
11921 # when we should be linking with a yet-to-be-installed one
11922 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11923 test "$hardcode_minus_L" != no; then
11924 # Linking always hardcodes the temporary library directory.
11925 hardcode_action=relink
11926 else
11927 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11928 hardcode_action=immediate
9c60689e 11929 fi
e9c9a47c 11930else
a243b558
JF
11931 # We cannot hardcode anything, or else we can only hardcode existing
11932 # directories.
11933 hardcode_action=unsupported
11934fi
11935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11936$as_echo "$hardcode_action" >&6; }
11937
11938if test "$hardcode_action" = relink ||
11939 test "$inherit_rpath" = yes; then
11940 # Fast installation is not supported
11941 enable_fast_install=no
11942elif test "$shlibpath_overrides_runpath" = yes ||
11943 test "$enable_shared" = no; then
11944 # Fast installation is not necessary
11945 enable_fast_install=needless
9c60689e 11946fi
9c60689e 11947
9c60689e 11948
66170b30 11949
66170b30 11950
9c60689e 11951
a243b558
JF
11952
11953 if test "x$enable_dlopen" != xyes; then
11954 enable_dlopen=unknown
11955 enable_dlopen_self=unknown
11956 enable_dlopen_self_static=unknown
66170b30 11957else
a243b558
JF
11958 lt_cv_dlopen=no
11959 lt_cv_dlopen_libs=
66170b30 11960
a243b558
JF
11961 case $host_os in
11962 beos*)
11963 lt_cv_dlopen="load_add_on"
11964 lt_cv_dlopen_libs=
11965 lt_cv_dlopen_self=yes
11966 ;;
66170b30 11967
a243b558
JF
11968 mingw* | pw32* | cegcc*)
11969 lt_cv_dlopen="LoadLibrary"
11970 lt_cv_dlopen_libs=
11971 ;;
66170b30 11972
a243b558
JF
11973 cygwin*)
11974 lt_cv_dlopen="dlopen"
11975 lt_cv_dlopen_libs=
11976 ;;
66170b30 11977
a243b558
JF
11978 darwin*)
11979 # if libdl is installed we need to link against it
11980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11981$as_echo_n "checking for dlopen in -ldl... " >&6; }
11982if ${ac_cv_lib_dl_dlopen+:} false; then :
11983 $as_echo_n "(cached) " >&6
11984else
11985 ac_check_lib_save_LIBS=$LIBS
11986LIBS="-ldl $LIBS"
11987cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11988/* end confdefs.h. */
66170b30 11989
a243b558
JF
11990/* Override any GCC internal prototype to avoid an error.
11991 Use char because int might match the return type of a GCC
11992 builtin and then its argument prototype would still apply. */
11993#ifdef __cplusplus
11994extern "C"
11995#endif
11996char dlopen ();
11997int
11998main ()
11999{
12000return dlopen ();
12001 ;
12002 return 0;
12003}
12004_ACEOF
12005if ac_fn_c_try_link "$LINENO"; then :
12006 ac_cv_lib_dl_dlopen=yes
12007else
12008 ac_cv_lib_dl_dlopen=no
66170b30 12009fi
a243b558
JF
12010rm -f core conftest.err conftest.$ac_objext \
12011 conftest$ac_exeext conftest.$ac_ext
12012LIBS=$ac_check_lib_save_LIBS
66170b30 12013fi
a243b558
JF
12014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12015$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12016if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12017 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12018else
66170b30 12019
a243b558
JF
12020 lt_cv_dlopen="dyld"
12021 lt_cv_dlopen_libs=
12022 lt_cv_dlopen_self=yes
66170b30 12023
a243b558 12024fi
9c60689e 12025
a243b558 12026 ;;
9c60689e 12027
a243b558
JF
12028 *)
12029 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12030if test "x$ac_cv_func_shl_load" = xyes; then :
12031 lt_cv_dlopen="shl_load"
12032else
12033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12034$as_echo_n "checking for shl_load in -ldld... " >&6; }
12035if ${ac_cv_lib_dld_shl_load+:} false; then :
12036 $as_echo_n "(cached) " >&6
12037else
12038 ac_check_lib_save_LIBS=$LIBS
12039LIBS="-ldld $LIBS"
12040cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12041/* end confdefs.h. */
66170b30 12042
a243b558
JF
12043/* Override any GCC internal prototype to avoid an error.
12044 Use char because int might match the return type of a GCC
12045 builtin and then its argument prototype would still apply. */
12046#ifdef __cplusplus
12047extern "C"
12048#endif
12049char shl_load ();
12050int
12051main ()
12052{
12053return shl_load ();
12054 ;
12055 return 0;
12056}
12057_ACEOF
12058if ac_fn_c_try_link "$LINENO"; then :
12059 ac_cv_lib_dld_shl_load=yes
66170b30 12060else
a243b558
JF
12061 ac_cv_lib_dld_shl_load=no
12062fi
12063rm -f core conftest.err conftest.$ac_objext \
12064 conftest$ac_exeext conftest.$ac_ext
12065LIBS=$ac_check_lib_save_LIBS
66170b30 12066fi
a243b558
JF
12067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12068$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12069if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12070 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12071else
12072 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12073if test "x$ac_cv_func_dlopen" = xyes; then :
12074 lt_cv_dlopen="dlopen"
12075else
12076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12077$as_echo_n "checking for dlopen in -ldl... " >&6; }
12078if ${ac_cv_lib_dl_dlopen+:} false; then :
12079 $as_echo_n "(cached) " >&6
12080else
12081 ac_check_lib_save_LIBS=$LIBS
12082LIBS="-ldl $LIBS"
12083cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12084/* end confdefs.h. */
e9c9a47c 12085
a243b558
JF
12086/* Override any GCC internal prototype to avoid an error.
12087 Use char because int might match the return type of a GCC
12088 builtin and then its argument prototype would still apply. */
12089#ifdef __cplusplus
12090extern "C"
12091#endif
12092char dlopen ();
12093int
12094main ()
12095{
12096return dlopen ();
12097 ;
12098 return 0;
12099}
12100_ACEOF
12101if ac_fn_c_try_link "$LINENO"; then :
12102 ac_cv_lib_dl_dlopen=yes
12103else
12104 ac_cv_lib_dl_dlopen=no
12105fi
12106rm -f core conftest.err conftest.$ac_objext \
12107 conftest$ac_exeext conftest.$ac_ext
12108LIBS=$ac_check_lib_save_LIBS
12109fi
12110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12111$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12112if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12113 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12114else
12115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12116$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12117if ${ac_cv_lib_svld_dlopen+:} false; then :
12118 $as_echo_n "(cached) " >&6
12119else
12120 ac_check_lib_save_LIBS=$LIBS
12121LIBS="-lsvld $LIBS"
12122cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12123/* end confdefs.h. */
12124
12125/* Override any GCC internal prototype to avoid an error.
12126 Use char because int might match the return type of a GCC
12127 builtin and then its argument prototype would still apply. */
12128#ifdef __cplusplus
12129extern "C"
12130#endif
12131char dlopen ();
12132int
12133main ()
12134{
12135return dlopen ();
12136 ;
12137 return 0;
12138}
12139_ACEOF
12140if ac_fn_c_try_link "$LINENO"; then :
12141 ac_cv_lib_svld_dlopen=yes
12142else
12143 ac_cv_lib_svld_dlopen=no
12144fi
12145rm -f core conftest.err conftest.$ac_objext \
12146 conftest$ac_exeext conftest.$ac_ext
12147LIBS=$ac_check_lib_save_LIBS
12148fi
12149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12150$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12151if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12152 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12153else
12154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12155$as_echo_n "checking for dld_link in -ldld... " >&6; }
12156if ${ac_cv_lib_dld_dld_link+:} false; then :
12157 $as_echo_n "(cached) " >&6
12158else
12159 ac_check_lib_save_LIBS=$LIBS
12160LIBS="-ldld $LIBS"
12161cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12162/* end confdefs.h. */
12163
12164/* Override any GCC internal prototype to avoid an error.
12165 Use char because int might match the return type of a GCC
12166 builtin and then its argument prototype would still apply. */
12167#ifdef __cplusplus
12168extern "C"
12169#endif
12170char dld_link ();
12171int
12172main ()
12173{
12174return dld_link ();
12175 ;
12176 return 0;
12177}
12178_ACEOF
12179if ac_fn_c_try_link "$LINENO"; then :
12180 ac_cv_lib_dld_dld_link=yes
9c60689e 12181else
a243b558
JF
12182 ac_cv_lib_dld_dld_link=no
12183fi
12184rm -f core conftest.err conftest.$ac_objext \
12185 conftest$ac_exeext conftest.$ac_ext
12186LIBS=$ac_check_lib_save_LIBS
12187fi
12188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12189$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12190if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12191 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
9c60689e
DWT
12192fi
12193
12194
a243b558 12195fi
66170b30 12196
66170b30 12197
a243b558 12198fi
66170b30 12199
66170b30
JF
12200
12201fi
e9c9a47c 12202
66170b30 12203
a243b558 12204fi
66170b30 12205
66170b30 12206
66170b30 12207fi
e9c9a47c 12208
a243b558
JF
12209 ;;
12210 esac
9c60689e 12211
a243b558
JF
12212 if test "x$lt_cv_dlopen" != xno; then
12213 enable_dlopen=yes
12214 else
12215 enable_dlopen=no
12216 fi
9c60689e 12217
a243b558
JF
12218 case $lt_cv_dlopen in
12219 dlopen)
12220 save_CPPFLAGS="$CPPFLAGS"
12221 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
66170b30 12222
a243b558
JF
12223 save_LDFLAGS="$LDFLAGS"
12224 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
66170b30 12225
a243b558
JF
12226 save_LIBS="$LIBS"
12227 LIBS="$lt_cv_dlopen_libs $LIBS"
3fd51f51 12228
a243b558
JF
12229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12230$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12231if ${lt_cv_dlopen_self+:} false; then :
12232 $as_echo_n "(cached) " >&6
e9c9a47c 12233else
a243b558
JF
12234 if test "$cross_compiling" = yes; then :
12235 lt_cv_dlopen_self=cross
12236else
12237 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12238 lt_status=$lt_dlunknown
12239 cat > conftest.$ac_ext <<_LT_EOF
12240#line $LINENO "configure"
12241#include "confdefs.h"
e9c9a47c 12242
a243b558
JF
12243#if HAVE_DLFCN_H
12244#include <dlfcn.h>
12245#endif
e9c9a47c 12246
a243b558 12247#include <stdio.h>
66170b30 12248
a243b558
JF
12249#ifdef RTLD_GLOBAL
12250# define LT_DLGLOBAL RTLD_GLOBAL
12251#else
12252# ifdef DL_GLOBAL
12253# define LT_DLGLOBAL DL_GLOBAL
12254# else
12255# define LT_DLGLOBAL 0
12256# endif
12257#endif
66170b30 12258
a243b558
JF
12259/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12260 find out it does not work in some platform. */
12261#ifndef LT_DLLAZY_OR_NOW
12262# ifdef RTLD_LAZY
12263# define LT_DLLAZY_OR_NOW RTLD_LAZY
12264# else
12265# ifdef DL_LAZY
12266# define LT_DLLAZY_OR_NOW DL_LAZY
12267# else
12268# ifdef RTLD_NOW
12269# define LT_DLLAZY_OR_NOW RTLD_NOW
12270# else
12271# ifdef DL_NOW
12272# define LT_DLLAZY_OR_NOW DL_NOW
12273# else
12274# define LT_DLLAZY_OR_NOW 0
12275# endif
12276# endif
12277# endif
12278# endif
12279#endif
e9c9a47c 12280
a243b558
JF
12281/* When -fvisbility=hidden is used, assume the code has been annotated
12282 correspondingly for the symbols needed. */
12283#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12284int fnord () __attribute__((visibility("default")));
12285#endif
e9c9a47c 12286
a243b558
JF
12287int fnord () { return 42; }
12288int main ()
12289{
12290 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12291 int status = $lt_dlunknown;
e9c9a47c 12292
a243b558
JF
12293 if (self)
12294 {
12295 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12296 else
12297 {
12298 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12299 else puts (dlerror ());
12300 }
12301 /* dlclose (self); */
12302 }
12303 else
12304 puts (dlerror ());
e9c9a47c 12305
a243b558
JF
12306 return status;
12307}
12308_LT_EOF
12309 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12310 (eval $ac_link) 2>&5
12311 ac_status=$?
12312 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12313 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12314 (./conftest; exit; ) >&5 2>/dev/null
12315 lt_status=$?
12316 case x$lt_status in
12317 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12318 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12319 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12320 esac
12321 else :
12322 # compilation failed
12323 lt_cv_dlopen_self=no
12324 fi
12325fi
12326rm -fr conftest*
e9c9a47c 12327
e9c9a47c 12328
e9c9a47c 12329fi
a243b558
JF
12330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12331$as_echo "$lt_cv_dlopen_self" >&6; }
e9c9a47c 12332
a243b558
JF
12333 if test "x$lt_cv_dlopen_self" = xyes; then
12334 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12336$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12337if ${lt_cv_dlopen_self_static+:} false; then :
12338 $as_echo_n "(cached) " >&6
e9c9a47c 12339else
a243b558
JF
12340 if test "$cross_compiling" = yes; then :
12341 lt_cv_dlopen_self_static=cross
12342else
12343 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12344 lt_status=$lt_dlunknown
12345 cat > conftest.$ac_ext <<_LT_EOF
12346#line $LINENO "configure"
12347#include "confdefs.h"
12348
12349#if HAVE_DLFCN_H
12350#include <dlfcn.h>
12351#endif
12352
12353#include <stdio.h>
e9c9a47c 12354
a243b558
JF
12355#ifdef RTLD_GLOBAL
12356# define LT_DLGLOBAL RTLD_GLOBAL
12357#else
12358# ifdef DL_GLOBAL
12359# define LT_DLGLOBAL DL_GLOBAL
12360# else
12361# define LT_DLGLOBAL 0
12362# endif
12363#endif
e9c9a47c 12364
a243b558
JF
12365/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12366 find out it does not work in some platform. */
12367#ifndef LT_DLLAZY_OR_NOW
12368# ifdef RTLD_LAZY
12369# define LT_DLLAZY_OR_NOW RTLD_LAZY
12370# else
12371# ifdef DL_LAZY
12372# define LT_DLLAZY_OR_NOW DL_LAZY
12373# else
12374# ifdef RTLD_NOW
12375# define LT_DLLAZY_OR_NOW RTLD_NOW
12376# else
12377# ifdef DL_NOW
12378# define LT_DLLAZY_OR_NOW DL_NOW
12379# else
12380# define LT_DLLAZY_OR_NOW 0
12381# endif
12382# endif
12383# endif
12384# endif
12385#endif
66170b30 12386
a243b558
JF
12387/* When -fvisbility=hidden is used, assume the code has been annotated
12388 correspondingly for the symbols needed. */
12389#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12390int fnord () __attribute__((visibility("default")));
12391#endif
e9c9a47c 12392
a243b558
JF
12393int fnord () { return 42; }
12394int main ()
12395{
12396 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12397 int status = $lt_dlunknown;
e9c9a47c 12398
a243b558
JF
12399 if (self)
12400 {
12401 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12402 else
12403 {
12404 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12405 else puts (dlerror ());
12406 }
12407 /* dlclose (self); */
12408 }
12409 else
12410 puts (dlerror ());
e9c9a47c 12411
a243b558
JF
12412 return status;
12413}
12414_LT_EOF
12415 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12416 (eval $ac_link) 2>&5
12417 ac_status=$?
12418 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12419 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12420 (./conftest; exit; ) >&5 2>/dev/null
12421 lt_status=$?
12422 case x$lt_status in
12423 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12424 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12425 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12426 esac
12427 else :
12428 # compilation failed
12429 lt_cv_dlopen_self_static=no
12430 fi
12431fi
12432rm -fr conftest*
e9c9a47c 12433
b65019fe 12434
a243b558
JF
12435fi
12436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12437$as_echo "$lt_cv_dlopen_self_static" >&6; }
12438 fi
66170b30 12439
a243b558
JF
12440 CPPFLAGS="$save_CPPFLAGS"
12441 LDFLAGS="$save_LDFLAGS"
12442 LIBS="$save_LIBS"
12443 ;;
12444 esac
66170b30 12445
a243b558
JF
12446 case $lt_cv_dlopen_self in
12447 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12448 *) enable_dlopen_self=unknown ;;
12449 esac
12450
12451 case $lt_cv_dlopen_self_static in
12452 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12453 *) enable_dlopen_self_static=unknown ;;
12454 esac
b65019fe
DWT
12455fi
12456
12457
66170b30 12458
b65019fe 12459
e9c9a47c 12460
e9c9a47c
DWT
12461
12462
e9c9a47c 12463
e9c9a47c
DWT
12464
12465
e9c9a47c 12466
e9c9a47c 12467
3530897b 12468
47aaa820 12469
47aaa820 12470
a243b558
JF
12471
12472
12473striplib=
12474old_striplib=
12475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12476$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12477if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12478 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12479 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12481$as_echo "yes" >&6; }
47aaa820 12482else
a243b558
JF
12483# FIXME - insert some real tests, host_os isn't really good enough
12484 case $host_os in
12485 darwin*)
12486 if test -n "$STRIP" ; then
12487 striplib="$STRIP -x"
12488 old_striplib="$STRIP -S"
12489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12490$as_echo "yes" >&6; }
12491 else
12492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12493$as_echo "no" >&6; }
12494 fi
12495 ;;
12496 *)
12497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12498$as_echo "no" >&6; }
12499 ;;
12500 esac
3530897b 12501fi
47aaa820 12502
3530897b
DWT
12503
12504
9c60689e 12505
9c60689e 12506
9c60689e 12507
9c60689e 12508
9c60689e 12509
66170b30 12510
66170b30 12511
66170b30 12512
66170b30 12513
a243b558
JF
12514 # Report which library types will actually be built
12515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12516$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12518$as_echo "$can_build_shared" >&6; }
66170b30 12519
a243b558
JF
12520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12521$as_echo_n "checking whether to build shared libraries... " >&6; }
12522 test "$can_build_shared" = "no" && enable_shared=no
66170b30 12523
a243b558
JF
12524 # On AIX, shared libraries and static libraries use the same namespace, and
12525 # are all built from PIC.
12526 case $host_os in
12527 aix3*)
12528 test "$enable_shared" = yes && enable_static=no
12529 if test -n "$RANLIB"; then
12530 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12531 postinstall_cmds='$RANLIB $lib'
12532 fi
12533 ;;
66170b30 12534
a243b558
JF
12535 aix[4-9]*)
12536 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12537 test "$enable_shared" = yes && enable_static=no
12538 fi
12539 ;;
12540 esac
12541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12542$as_echo "$enable_shared" >&6; }
66170b30 12543
a243b558
JF
12544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12545$as_echo_n "checking whether to build static libraries... " >&6; }
12546 # Make sure either enable_shared or enable_static is yes.
12547 test "$enable_shared" = yes || enable_static=yes
12548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12549$as_echo "$enable_static" >&6; }
66170b30 12550
9c60689e 12551
e9c9a47c 12552
9c60689e 12553
a243b558
JF
12554fi
12555ac_ext=c
12556ac_cpp='$CPP $CPPFLAGS'
12557ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12558ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12559ac_compiler_gnu=$ac_cv_c_compiler_gnu
12560
12561CC="$lt_save_CC"
e9c9a47c 12562
ee134472 12563 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
e9c9a47c
DWT
12564 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12565 (test "X$CXX" != "Xg++"))) ; then
12566 ac_ext=cpp
12567ac_cpp='$CXXCPP $CPPFLAGS'
12568ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12569ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12570ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12572$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12573if test -z "$CXXCPP"; then
ee134472 12574 if ${ac_cv_prog_CXXCPP+:} false; then :
e9c9a47c
DWT
12575 $as_echo_n "(cached) " >&6
12576else
12577 # Double quotes because CXXCPP needs to be expanded
12578 for CXXCPP in "$CXX -E" "/lib/cpp"
12579 do
12580 ac_preproc_ok=false
12581for ac_cxx_preproc_warn_flag in '' yes
12582do
12583 # Use a header file that comes with gcc, so configuring glibc
12584 # with a fresh cross-compiler works.
12585 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12586 # <limits.h> exists even on freestanding compilers.
12587 # On the NeXT, cc -E runs the code through the compiler's parser,
12588 # not just through cpp. "Syntax error" is here to catch this case.
12589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12590/* end confdefs.h. */
12591#ifdef __STDC__
12592# include <limits.h>
12593#else
12594# include <assert.h>
12595#endif
12596 Syntax error
12597_ACEOF
12598if ac_fn_cxx_try_cpp "$LINENO"; then :
12599
12600else
12601 # Broken: fails on valid input.
12602continue
12603fi
12833ad8 12604rm -f conftest.err conftest.i conftest.$ac_ext
e9c9a47c
DWT
12605
12606 # OK, works on sane cases. Now check whether nonexistent headers
12607 # can be detected and how.
12608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12609/* end confdefs.h. */
12610#include <ac_nonexistent.h>
12611_ACEOF
12612if ac_fn_cxx_try_cpp "$LINENO"; then :
12613 # Broken: success on invalid input.
12614continue
12615else
12616 # Passes both tests.
12617ac_preproc_ok=:
12618break
12619fi
12833ad8 12620rm -f conftest.err conftest.i conftest.$ac_ext
e9c9a47c
DWT
12621
12622done
12623# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12833ad8 12624rm -f conftest.i conftest.err conftest.$ac_ext
e9c9a47c
DWT
12625if $ac_preproc_ok; then :
12626 break
12627fi
12628
12629 done
12630 ac_cv_prog_CXXCPP=$CXXCPP
12631
12632fi
12633 CXXCPP=$ac_cv_prog_CXXCPP
12634else
12635 ac_cv_prog_CXXCPP=$CXXCPP
12636fi
12637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12638$as_echo "$CXXCPP" >&6; }
12639ac_preproc_ok=false
12640for ac_cxx_preproc_warn_flag in '' yes
12641do
12642 # Use a header file that comes with gcc, so configuring glibc
12643 # with a fresh cross-compiler works.
12644 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12645 # <limits.h> exists even on freestanding compilers.
12646 # On the NeXT, cc -E runs the code through the compiler's parser,
12647 # not just through cpp. "Syntax error" is here to catch this case.
12648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12649/* end confdefs.h. */
12650#ifdef __STDC__
12651# include <limits.h>
12652#else
12653# include <assert.h>
12654#endif
12655 Syntax error
12656_ACEOF
12657if ac_fn_cxx_try_cpp "$LINENO"; then :
12658
12659else
12660 # Broken: fails on valid input.
12661continue
12662fi
12833ad8 12663rm -f conftest.err conftest.i conftest.$ac_ext
e9c9a47c
DWT
12664
12665 # OK, works on sane cases. Now check whether nonexistent headers
12666 # can be detected and how.
12667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12668/* end confdefs.h. */
12669#include <ac_nonexistent.h>
12670_ACEOF
12671if ac_fn_cxx_try_cpp "$LINENO"; then :
12672 # Broken: success on invalid input.
12673continue
12674else
12675 # Passes both tests.
12676ac_preproc_ok=:
12677break
12678fi
12833ad8 12679rm -f conftest.err conftest.i conftest.$ac_ext
e9c9a47c
DWT
12680
12681done
12682# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12833ad8 12683rm -f conftest.i conftest.err conftest.$ac_ext
e9c9a47c
DWT
12684if $ac_preproc_ok; then :
12685
12686else
12687 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12688$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
ee134472
JF
12689as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12690See \`config.log' for more details" "$LINENO" 5; }
e9c9a47c
DWT
12691fi
12692
a243b558
JF
12693ac_ext=c
12694ac_cpp='$CPP $CPPFLAGS'
12695ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12696ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12697ac_compiler_gnu=$ac_cv_c_compiler_gnu
66170b30
JF
12698
12699else
e9c9a47c
DWT
12700 _lt_caught_CXX_error=yes
12701fi
12702
9c60689e
DWT
12703ac_ext=cpp
12704ac_cpp='$CXXCPP $CPPFLAGS'
12705ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12706ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12707ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9c60689e 12708
47aaa820
DWT
12709archive_cmds_need_lc_CXX=no
12710allow_undefined_flag_CXX=
12711always_export_symbols_CXX=no
12712archive_expsym_cmds_CXX=
12713compiler_needs_object_CXX=no
12714export_dynamic_flag_spec_CXX=
12715hardcode_direct_CXX=no
12716hardcode_direct_absolute_CXX=no
12717hardcode_libdir_flag_spec_CXX=
47aaa820
DWT
12718hardcode_libdir_separator_CXX=
12719hardcode_minus_L_CXX=no
12720hardcode_shlibpath_var_CXX=unsupported
12721hardcode_automatic_CXX=no
12722inherit_rpath_CXX=no
12723module_cmds_CXX=
12724module_expsym_cmds_CXX=
12725link_all_deplibs_CXX=unknown
12726old_archive_cmds_CXX=$old_archive_cmds
ee134472
JF
12727reload_flag_CXX=$reload_flag
12728reload_cmds_CXX=$reload_cmds
47aaa820
DWT
12729no_undefined_flag_CXX=
12730whole_archive_flag_spec_CXX=
12731enable_shared_with_static_runtimes_CXX=no
9c60689e 12732
47aaa820
DWT
12733# Source file extension for C++ test sources.
12734ac_ext=cpp
9c60689e 12735
47aaa820
DWT
12736# Object file extension for compiled C++ test sources.
12737objext=o
12738objext_CXX=$objext
9c60689e 12739
47aaa820
DWT
12740# No sense in running all these tests if we already determined that
12741# the CXX compiler isn't working. Some variables (like enable_shared)
12742# are currently assumed to apply to all compilers on this platform,
12743# and will be corrupted by setting them based on a non-working compiler.
12744if test "$_lt_caught_CXX_error" != yes; then
12745 # Code to be used in simple compile tests
12746 lt_simple_compile_test_code="int some_variable = 0;"
9c60689e 12747
47aaa820
DWT
12748 # Code to be used in simple link tests
12749 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
9c60689e 12750
47aaa820 12751 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9c60689e 12752
9c60689e 12753
9c60689e 12754
9c60689e 12755
9c60689e 12756
9c60689e 12757
47aaa820
DWT
12758# If no C compiler was specified, use CC.
12759LTCC=${LTCC-"$CC"}
9c60689e 12760
47aaa820
DWT
12761# If no C compiler flags were specified, use CFLAGS.
12762LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9c60689e 12763
47aaa820
DWT
12764# Allow CC to be a program name with arguments.
12765compiler=$CC
9c60689e 12766
9c60689e 12767
47aaa820
DWT
12768 # save warnings/boilerplate of simple test code
12769 ac_outfile=conftest.$ac_objext
12770echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12771eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12772_lt_compiler_boilerplate=`cat conftest.err`
53ba6704 12773$RM -r conftest*
9c60689e 12774
47aaa820
DWT
12775 ac_outfile=conftest.$ac_objext
12776echo "$lt_simple_link_test_code" >conftest.$ac_ext
12777eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12778_lt_linker_boilerplate=`cat conftest.err`
12779$RM -r conftest*
9c60689e 12780
9c60689e 12781
47aaa820
DWT
12782 # Allow CC to be a program name with arguments.
12783 lt_save_CC=$CC
ee134472 12784 lt_save_CFLAGS=$CFLAGS
47aaa820
DWT
12785 lt_save_LD=$LD
12786 lt_save_GCC=$GCC
12787 GCC=$GXX
12788 lt_save_with_gnu_ld=$with_gnu_ld
12789 lt_save_path_LD=$lt_cv_path_LD
12790 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12791 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9c60689e 12792 else
47aaa820 12793 $as_unset lt_cv_prog_gnu_ld
9c60689e 12794 fi
47aaa820
DWT
12795 if test -n "${lt_cv_path_LDCXX+set}"; then
12796 lt_cv_path_LD=$lt_cv_path_LDCXX
9c60689e 12797 else
47aaa820 12798 $as_unset lt_cv_path_LD
9c60689e 12799 fi
47aaa820
DWT
12800 test -z "${LDCXX+set}" || LD=$LDCXX
12801 CC=${CXX-"c++"}
ee134472 12802 CFLAGS=$CXXFLAGS
47aaa820
DWT
12803 compiler=$CC
12804 compiler_CXX=$CC
12805 for cc_temp in $compiler""; do
12806 case $cc_temp in
12807 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12808 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12809 \-*) ;;
12810 *) break;;
12811 esac
12812done
ee134472 12813cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9c60689e
DWT
12814
12815
47aaa820
DWT
12816 if test -n "$compiler"; then
12817 # We don't want -fno-exception when compiling C++ code, so set the
12818 # no_builtin_flag separately
12819 if test "$GXX" = yes; then
12820 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12821 else
12822 lt_prog_compiler_no_builtin_flag_CXX=
12823 fi
9c60689e 12824
47aaa820
DWT
12825 if test "$GXX" = yes; then
12826 # Set up default GNU C++ configuration
12827
12828
12829
12830# Check whether --with-gnu-ld was given.
12831if test "${with_gnu_ld+set}" = set; then :
12832 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9c60689e 12833else
47aaa820 12834 with_gnu_ld=no
9c60689e
DWT
12835fi
12836
47aaa820
DWT
12837ac_prog=ld
12838if test "$GCC" = yes; then
12839 # Check if gcc -print-prog-name=ld gives a path.
12840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12841$as_echo_n "checking for ld used by $CC... " >&6; }
12842 case $host in
12843 *-*-mingw*)
12844 # gcc leaves a trailing carriage return which upsets mingw
12845 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12846 *)
12847 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12848 esac
12849 case $ac_prog in
12850 # Accept absolute paths.
12851 [\\/]* | ?:[\\/]*)
12852 re_direlt='/[^/][^/]*/\.\./'
12853 # Canonicalize the pathname of ld
12854 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12855 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12856 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12857 done
12858 test -z "$LD" && LD="$ac_prog"
12859 ;;
12860 "")
12861 # If it fails, then pretend we aren't using GCC.
12862 ac_prog=ld
12863 ;;
12864 *)
12865 # If it is relative, then search for the first ld in PATH.
12866 with_gnu_ld=unknown
12867 ;;
12868 esac
12869elif test "$with_gnu_ld" = yes; then
12870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12871$as_echo_n "checking for GNU ld... " >&6; }
12872else
12873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12874$as_echo_n "checking for non-GNU ld... " >&6; }
9c60689e 12875fi
ee134472 12876if ${lt_cv_path_LD+:} false; then :
9c60689e
DWT
12877 $as_echo_n "(cached) " >&6
12878else
47aaa820
DWT
12879 if test -z "$LD"; then
12880 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12881 for ac_dir in $PATH; do
12882 IFS="$lt_save_ifs"
12883 test -z "$ac_dir" && ac_dir=.
12884 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12885 lt_cv_path_LD="$ac_dir/$ac_prog"
12886 # Check to see if the program is GNU ld. I'd rather use --version,
12887 # but apparently some variants of GNU ld only accept -v.
12888 # Break only if it was the GNU/non-GNU ld that we prefer.
12889 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12890 *GNU* | *'with BFD'*)
12891 test "$with_gnu_ld" != no && break
12892 ;;
12893 *)
12894 test "$with_gnu_ld" != yes && break
12895 ;;
12896 esac
12897 fi
9c60689e 12898 done
47aaa820
DWT
12899 IFS="$lt_save_ifs"
12900else
12901 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9c60689e
DWT
12902fi
12903fi
47aaa820
DWT
12904
12905LD="$lt_cv_path_LD"
12906if test -n "$LD"; then
12907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12908$as_echo "$LD" >&6; }
9c60689e
DWT
12909else
12910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12911$as_echo "no" >&6; }
12912fi
12833ad8 12913test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
47aaa820
DWT
12914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12915$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
ee134472 12916if ${lt_cv_prog_gnu_ld+:} false; then :
47aaa820
DWT
12917 $as_echo_n "(cached) " >&6
12918else
12919 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12920case `$LD -v 2>&1 </dev/null` in
12921*GNU* | *'with BFD'*)
12922 lt_cv_prog_gnu_ld=yes
12923 ;;
12924*)
12925 lt_cv_prog_gnu_ld=no
12926 ;;
12927esac
12928fi
12929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12930$as_echo "$lt_cv_prog_gnu_ld" >&6; }
12931with_gnu_ld=$lt_cv_prog_gnu_ld
9c60689e
DWT
12932
12933
9c60689e 12934
9c60689e 12935
9c60689e 12936
9c60689e 12937
9c60689e 12938
47aaa820
DWT
12939 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12940 # archiving commands below assume that GNU ld is being used.
12941 if test "$with_gnu_ld" = yes; then
ee134472
JF
12942 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12943 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 12944
47aaa820
DWT
12945 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12946 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9c60689e 12947
47aaa820
DWT
12948 # If archive_cmds runs LD, not CC, wlarc should be empty
12949 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12950 # investigate it a little bit more. (MM)
12951 wlarc='${wl}'
9c60689e 12952
47aaa820
DWT
12953 # ancient GNU ld didn't support --whole-archive et. al.
12954 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12955 $GREP 'no-whole-archive' > /dev/null; then
12956 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12957 else
12958 whole_archive_flag_spec_CXX=
12959 fi
12960 else
12961 with_gnu_ld=no
12962 wlarc=
12963
12964 # A generic and very simple default shared library creation
12965 # command for GNU C++ for the case where it uses the native
12966 # linker, instead of GNU ld. If possible, this setting should
12967 # overridden to take advantage of the native linker features on
12968 # the platform it is being used on.
12969 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12970 fi
12971
12972 # Commands to make compiler produce verbose output that lists
12973 # what "hidden" libraries, object files and flags are used when
12974 # linking a shared library.
ee134472 12975 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
47aaa820
DWT
12976
12977 else
12978 GXX=no
12979 with_gnu_ld=no
12980 wlarc=
12981 fi
12982
12983 # PORTME: fill in a description of your system's C++ link characteristics
12984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12985$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12986 ld_shlibs_CXX=yes
12987 case $host_os in
12988 aix3*)
12989 # FIXME: insert proper C++ library support
12990 ld_shlibs_CXX=no
12991 ;;
12992 aix[4-9]*)
12993 if test "$host_cpu" = ia64; then
12994 # On IA64, the linker does run time linking by default, so we don't
12995 # have to do anything special.
12996 aix_use_runtimelinking=no
12997 exp_sym_flag='-Bexport'
12998 no_entry_flag=""
12999 else
13000 aix_use_runtimelinking=no
13001
13002 # Test if we are trying to use run time linking or normal
13003 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13004 # need to do runtime linking.
13005 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13006 for ld_flag in $LDFLAGS; do
13007 case $ld_flag in
13008 *-brtl*)
13009 aix_use_runtimelinking=yes
13010 break
13011 ;;
13012 esac
13013 done
13014 ;;
13015 esac
13016
13017 exp_sym_flag='-bexport'
13018 no_entry_flag='-bnoentry'
13019 fi
13020
13021 # When large executables or shared objects are built, AIX ld can
13022 # have problems creating the table of contents. If linking a library
13023 # or program results in "error TOC overflow" add -mminimal-toc to
13024 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13025 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13026
13027 archive_cmds_CXX=''
13028 hardcode_direct_CXX=yes
13029 hardcode_direct_absolute_CXX=yes
13030 hardcode_libdir_separator_CXX=':'
13031 link_all_deplibs_CXX=yes
13032 file_list_spec_CXX='${wl}-f,'
13033
13034 if test "$GXX" = yes; then
13035 case $host_os in aix4.[012]|aix4.[012].*)
13036 # We only want to do this on AIX 4.2 and lower, the check
13037 # below for broken collect2 doesn't work under 4.3+
13038 collect2name=`${CC} -print-prog-name=collect2`
13039 if test -f "$collect2name" &&
13040 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13041 then
13042 # We have reworked collect2
13043 :
13044 else
13045 # We have old collect2
13046 hardcode_direct_CXX=unsupported
13047 # It fails to find uninstalled libraries when the uninstalled
13048 # path is not listed in the libpath. Setting hardcode_minus_L
13049 # to unsupported forces relinking
13050 hardcode_minus_L_CXX=yes
13051 hardcode_libdir_flag_spec_CXX='-L$libdir'
13052 hardcode_libdir_separator_CXX=
13053 fi
13054 esac
13055 shared_flag='-shared'
13056 if test "$aix_use_runtimelinking" = yes; then
13057 shared_flag="$shared_flag "'${wl}-G'
13058 fi
13059 else
13060 # not using gcc
13061 if test "$host_cpu" = ia64; then
13062 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13063 # chokes on -Wl,-G. The following line is correct:
13064 shared_flag='-G'
13065 else
13066 if test "$aix_use_runtimelinking" = yes; then
13067 shared_flag='${wl}-G'
13068 else
13069 shared_flag='${wl}-bM:SRE'
13070 fi
13071 fi
13072 fi
13073
13074 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13075 # It seems that -bexpall does not export symbols beginning with
13076 # underscore (_), so it is better to generate a list of symbols to
13077 # export.
13078 always_export_symbols_CXX=yes
13079 if test "$aix_use_runtimelinking" = yes; then
13080 # Warning - without using the other runtime loading flags (-brtl),
13081 # -berok will link without error, but may produce a broken library.
13082 allow_undefined_flag_CXX='-berok'
13083 # Determine the default libpath from the value encoded in an empty
13084 # executable.
ee134472
JF
13085 if test "${lt_cv_aix_libpath+set}" = set; then
13086 aix_libpath=$lt_cv_aix_libpath
13087else
13088 if ${lt_cv_aix_libpath__CXX+:} false; then :
13089 $as_echo_n "(cached) " >&6
13090else
13091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9c60689e
DWT
13092/* end confdefs.h. */
13093
13094int
13095main ()
13096{
13097
13098 ;
13099 return 0;
13100}
13101_ACEOF
47aaa820 13102if ac_fn_cxx_try_link "$LINENO"; then :
9c60689e 13103
ee134472
JF
13104 lt_aix_libpath_sed='
13105 /Import File Strings/,/^$/ {
13106 /^0/ {
13107 s/^0 *\([^ ]*\) *$/\1/
13108 p
13109 }
13110 }'
13111 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13112 # Check for a 64-bit object if we didn't find anything.
13113 if test -z "$lt_cv_aix_libpath__CXX"; then
13114 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13115 fi
47aaa820
DWT
13116fi
13117rm -f core conftest.err conftest.$ac_objext \
13118 conftest$ac_exeext conftest.$ac_ext
ee134472
JF
13119 if test -z "$lt_cv_aix_libpath__CXX"; then
13120 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13121 fi
13122
13123fi
13124
13125 aix_libpath=$lt_cv_aix_libpath__CXX
13126fi
47aaa820
DWT
13127
13128 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13129
ee134472 13130 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
13131 else
13132 if test "$host_cpu" = ia64; then
13133 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13134 allow_undefined_flag_CXX="-z nodefs"
13135 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"
13136 else
13137 # Determine the default libpath from the value encoded in an
13138 # empty executable.
ee134472
JF
13139 if test "${lt_cv_aix_libpath+set}" = set; then
13140 aix_libpath=$lt_cv_aix_libpath
13141else
13142 if ${lt_cv_aix_libpath__CXX+:} false; then :
13143 $as_echo_n "(cached) " >&6
13144else
13145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9c60689e
DWT
13146/* end confdefs.h. */
13147
13148int
13149main ()
13150{
13151
13152 ;
13153 return 0;
13154}
13155_ACEOF
47aaa820 13156if ac_fn_cxx_try_link "$LINENO"; then :
9c60689e 13157
ee134472
JF
13158 lt_aix_libpath_sed='
13159 /Import File Strings/,/^$/ {
13160 /^0/ {
13161 s/^0 *\([^ ]*\) *$/\1/
13162 p
13163 }
13164 }'
13165 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13166 # Check for a 64-bit object if we didn't find anything.
13167 if test -z "$lt_cv_aix_libpath__CXX"; then
13168 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13169 fi
9c60689e 13170fi
47aaa820
DWT
13171rm -f core conftest.err conftest.$ac_objext \
13172 conftest$ac_exeext conftest.$ac_ext
ee134472
JF
13173 if test -z "$lt_cv_aix_libpath__CXX"; then
13174 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13175 fi
13176
13177fi
13178
13179 aix_libpath=$lt_cv_aix_libpath__CXX
13180fi
9c60689e 13181
47aaa820
DWT
13182 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13183 # Warning - without using the other run time loading flags,
13184 # -berok will link without error, but may produce a broken library.
13185 no_undefined_flag_CXX=' ${wl}-bernotok'
13186 allow_undefined_flag_CXX=' ${wl}-berok'
ee134472
JF
13187 if test "$with_gnu_ld" = yes; then
13188 # We only use this code for GNU lds that support --whole-archive.
13189 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13190 else
13191 # Exported symbols can be pulled into shared objects from archives
13192 whole_archive_flag_spec_CXX='$convenience'
13193 fi
47aaa820
DWT
13194 archive_cmds_need_lc_CXX=yes
13195 # This is similar to how AIX traditionally builds its shared
13196 # libraries.
13197 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'
13198 fi
13199 fi
13200 ;;
9c60689e 13201
47aaa820
DWT
13202 beos*)
13203 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13204 allow_undefined_flag_CXX=unsupported
13205 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13206 # support --undefined. This deserves some investigation. FIXME
13207 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13208 else
13209 ld_shlibs_CXX=no
13210 fi
13211 ;;
9c60689e 13212
47aaa820
DWT
13213 chorus*)
13214 case $cc_basename in
13215 *)
13216 # FIXME: insert proper C++ library support
13217 ld_shlibs_CXX=no
13218 ;;
13219 esac
13220 ;;
9c60689e 13221
47aaa820 13222 cygwin* | mingw* | pw32* | cegcc*)
ee134472
JF
13223 case $GXX,$cc_basename in
13224 ,cl* | no,cl*)
13225 # Native MSVC
13226 # hardcode_libdir_flag_spec is actually meaningless, as there is
13227 # no search path for DLLs.
13228 hardcode_libdir_flag_spec_CXX=' '
13229 allow_undefined_flag_CXX=unsupported
13230 always_export_symbols_CXX=yes
13231 file_list_spec_CXX='@'
13232 # Tell ltmain to make .lib files, not .a files.
13233 libext=lib
13234 # Tell ltmain to make .dll files, not .so files.
13235 shrext_cmds=".dll"
13236 # FIXME: Setting linknames here is a bad hack.
13237 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13238 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13239 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13240 else
13241 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13242 fi~
13243 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13244 linknames='
13245 # The linker will not automatically build a static lib if we build a DLL.
13246 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13247 enable_shared_with_static_runtimes_CXX=yes
13248 # Don't use ranlib
13249 old_postinstall_cmds_CXX='chmod 644 $oldlib'
13250 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13251 lt_tool_outputfile="@TOOL_OUTPUT@"~
13252 case $lt_outputfile in
13253 *.exe|*.EXE) ;;
13254 *)
13255 lt_outputfile="$lt_outputfile.exe"
13256 lt_tool_outputfile="$lt_tool_outputfile.exe"
13257 ;;
13258 esac~
13259 func_to_tool_file "$lt_outputfile"~
13260 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13261 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13262 $RM "$lt_outputfile.manifest";
13263 fi'
13264 ;;
13265 *)
13266 # g++
13267 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13268 # as there is no search path for DLLs.
13269 hardcode_libdir_flag_spec_CXX='-L$libdir'
13270 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13271 allow_undefined_flag_CXX=unsupported
13272 always_export_symbols_CXX=no
13273 enable_shared_with_static_runtimes_CXX=yes
13274
13275 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13276 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'
13277 # If the export-symbols file already is a .def file (1st line
13278 # is EXPORTS), use it as is; otherwise, prepend...
13279 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13280 cp $export_symbols $output_objdir/$soname.def;
13281 else
13282 echo EXPORTS > $output_objdir/$soname.def;
13283 cat $export_symbols >> $output_objdir/$soname.def;
13284 fi~
13285 $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'
13286 else
13287 ld_shlibs_CXX=no
13288 fi
13289 ;;
13290 esac
13291 ;;
47aaa820 13292 darwin* | rhapsody*)
9c60689e 13293
9c60689e 13294
47aaa820
DWT
13295 archive_cmds_need_lc_CXX=no
13296 hardcode_direct_CXX=no
13297 hardcode_automatic_CXX=yes
13298 hardcode_shlibpath_var_CXX=unsupported
ee134472
JF
13299 if test "$lt_cv_ld_force_load" = "yes"; then
13300 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 13301
ee134472
JF
13302 else
13303 whole_archive_flag_spec_CXX=''
13304 fi
47aaa820
DWT
13305 link_all_deplibs_CXX=yes
13306 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13307 case $cc_basename in
13308 ifort*) _lt_dar_can_shared=yes ;;
13309 *) _lt_dar_can_shared=$GCC ;;
13310 esac
13311 if test "$_lt_dar_can_shared" = "yes"; then
ee134472 13312 output_verbose_link_cmd=func_echo_all
47aaa820
DWT
13313 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}"
13314 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13315 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}"
13316 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}"
13317 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13318 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}"
13319 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}"
13320 fi
9c60689e 13321
47aaa820
DWT
13322 else
13323 ld_shlibs_CXX=no
13324 fi
9c60689e 13325
47aaa820 13326 ;;
9c60689e 13327
47aaa820
DWT
13328 dgux*)
13329 case $cc_basename in
13330 ec++*)
13331 # FIXME: insert proper C++ library support
13332 ld_shlibs_CXX=no
13333 ;;
13334 ghcx*)
13335 # Green Hills C++ Compiler
13336 # FIXME: insert proper C++ library support
13337 ld_shlibs_CXX=no
13338 ;;
13339 *)
13340 # FIXME: insert proper C++ library support
13341 ld_shlibs_CXX=no
13342 ;;
13343 esac
13344 ;;
9c60689e 13345
53ba6704 13346 freebsd2.*)
47aaa820
DWT
13347 # C++ shared libraries reported to be fairly broken before
13348 # switch to ELF
13349 ld_shlibs_CXX=no
13350 ;;
9c60689e 13351
47aaa820
DWT
13352 freebsd-elf*)
13353 archive_cmds_need_lc_CXX=no
13354 ;;
9c60689e 13355
47aaa820
DWT
13356 freebsd* | dragonfly*)
13357 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13358 # conventions
13359 ld_shlibs_CXX=yes
13360 ;;
9c60689e 13361
47aaa820
DWT
13362 gnu*)
13363 ;;
9c60689e 13364
ee134472
JF
13365 haiku*)
13366 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13367 link_all_deplibs_CXX=yes
13368 ;;
13369
47aaa820
DWT
13370 hpux9*)
13371 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13372 hardcode_libdir_separator_CXX=:
13373 export_dynamic_flag_spec_CXX='${wl}-E'
13374 hardcode_direct_CXX=yes
13375 hardcode_minus_L_CXX=yes # Not in the search PATH,
13376 # but as the default
13377 # location of the library.
9c60689e 13378
47aaa820
DWT
13379 case $cc_basename in
13380 CC*)
13381 # FIXME: insert proper C++ library support
13382 ld_shlibs_CXX=no
13383 ;;
13384 aCC*)
13385 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'
13386 # Commands to make compiler produce verbose output that lists
13387 # what "hidden" libraries, object files and flags are used when
13388 # linking a shared library.
13389 #
13390 # There doesn't appear to be a way to prevent this compiler from
13391 # explicitly linking system object files so we need to strip them
13392 # from the output so that they don't get included in the library
13393 # dependencies.
ee134472 13394 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
13395 ;;
13396 *)
13397 if test "$GXX" = yes; then
ee134472 13398 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
13399 else
13400 # FIXME: insert proper C++ library support
13401 ld_shlibs_CXX=no
13402 fi
13403 ;;
13404 esac
13405 ;;
9c60689e 13406
47aaa820
DWT
13407 hpux10*|hpux11*)
13408 if test $with_gnu_ld = no; then
13409 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13410 hardcode_libdir_separator_CXX=:
9c60689e 13411
47aaa820
DWT
13412 case $host_cpu in
13413 hppa*64*|ia64*)
13414 ;;
13415 *)
13416 export_dynamic_flag_spec_CXX='${wl}-E'
13417 ;;
13418 esac
13419 fi
13420 case $host_cpu in
13421 hppa*64*|ia64*)
13422 hardcode_direct_CXX=no
13423 hardcode_shlibpath_var_CXX=no
13424 ;;
13425 *)
13426 hardcode_direct_CXX=yes
13427 hardcode_direct_absolute_CXX=yes
13428 hardcode_minus_L_CXX=yes # Not in the search PATH,
13429 # but as the default
13430 # location of the library.
13431 ;;
13432 esac
9c60689e 13433
47aaa820
DWT
13434 case $cc_basename in
13435 CC*)
13436 # FIXME: insert proper C++ library support
13437 ld_shlibs_CXX=no
13438 ;;
13439 aCC*)
13440 case $host_cpu in
13441 hppa*64*)
13442 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13443 ;;
13444 ia64*)
13445 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13446 ;;
13447 *)
13448 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13449 ;;
13450 esac
13451 # Commands to make compiler produce verbose output that lists
13452 # what "hidden" libraries, object files and flags are used when
13453 # linking a shared library.
13454 #
13455 # There doesn't appear to be a way to prevent this compiler from
13456 # explicitly linking system object files so we need to strip them
13457 # from the output so that they don't get included in the library
13458 # dependencies.
ee134472 13459 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
13460 ;;
13461 *)
13462 if test "$GXX" = yes; then
13463 if test $with_gnu_ld = no; then
13464 case $host_cpu in
13465 hppa*64*)
13466 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13467 ;;
13468 ia64*)
ee134472 13469 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
13470 ;;
13471 *)
ee134472 13472 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
13473 ;;
13474 esac
13475 fi
13476 else
13477 # FIXME: insert proper C++ library support
13478 ld_shlibs_CXX=no
13479 fi
13480 ;;
13481 esac
13482 ;;
9c60689e 13483
47aaa820
DWT
13484 interix[3-9]*)
13485 hardcode_direct_CXX=no
13486 hardcode_shlibpath_var_CXX=no
13487 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13488 export_dynamic_flag_spec_CXX='${wl}-E'
13489 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13490 # Instead, shared libraries are loaded at an image base (0x10000000 by
13491 # default) and relocated if they conflict, which is a slow very memory
13492 # consuming and fragmenting process. To avoid this, we pick a random,
13493 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13494 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13495 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'
13496 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'
13497 ;;
13498 irix5* | irix6*)
13499 case $cc_basename in
13500 CC*)
13501 # SGI C++
ee134472 13502 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 13503
47aaa820
DWT
13504 # Archives containing C++ object files must be created using
13505 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13506 # necessary to make sure instantiated templates are included
13507 # in the archive.
13508 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13509 ;;
13510 *)
13511 if test "$GXX" = yes; then
13512 if test "$with_gnu_ld" = no; then
ee134472 13513 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 13514 else
ee134472 13515 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
13516 fi
13517 fi
13518 link_all_deplibs_CXX=yes
13519 ;;
13520 esac
13521 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13522 hardcode_libdir_separator_CXX=:
13523 inherit_rpath_CXX=yes
13524 ;;
9c60689e 13525
1504c9b8 13526 linux* | k*bsd*-gnu | kopensolaris*-gnu)
47aaa820
DWT
13527 case $cc_basename in
13528 KCC*)
13529 # Kuck and Associates, Inc. (KAI) C++ Compiler
9c60689e 13530
47aaa820
DWT
13531 # KCC will only create a shared library if the output file
13532 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13533 # to its proper name (with version) after linking.
13534 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'
13535 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'
13536 # Commands to make compiler produce verbose output that lists
13537 # what "hidden" libraries, object files and flags are used when
13538 # linking a shared library.
13539 #
13540 # There doesn't appear to be a way to prevent this compiler from
13541 # explicitly linking system object files so we need to strip them
13542 # from the output so that they don't get included in the library
13543 # dependencies.
ee134472 13544 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 13545
47aaa820
DWT
13546 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13547 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9c60689e 13548
47aaa820
DWT
13549 # Archives containing C++ object files must be created using
13550 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13551 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13552 ;;
13553 icpc* | ecpc* )
13554 # Intel C++
13555 with_gnu_ld=yes
13556 # version 8.0 and above of icpc choke on multiply defined symbols
13557 # if we add $predep_objects and $postdep_objects, however 7.1 and
13558 # earlier do not add the objects themselves.
13559 case `$CC -V 2>&1` in
13560 *"Version 7."*)
13561 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13562 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'
13563 ;;
13564 *) # Version 8.0 or newer
13565 tmp_idyn=
13566 case $host_cpu in
13567 ia64*) tmp_idyn=' -i_dynamic';;
13568 esac
13569 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13570 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'
13571 ;;
13572 esac
13573 archive_cmds_need_lc_CXX=no
13574 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13575 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13576 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13577 ;;
13578 pgCC* | pgcpp*)
13579 # Portland Group C++ compiler
13580 case `$CC -V` in
ee134472 13581 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
47aaa820
DWT
13582 prelink_cmds_CXX='tpldir=Template.dir~
13583 rm -rf $tpldir~
13584 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
ee134472 13585 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
47aaa820
DWT
13586 old_archive_cmds_CXX='tpldir=Template.dir~
13587 rm -rf $tpldir~
13588 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
ee134472 13589 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
47aaa820
DWT
13590 $RANLIB $oldlib'
13591 archive_cmds_CXX='tpldir=Template.dir~
13592 rm -rf $tpldir~
13593 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
ee134472 13594 $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
13595 archive_expsym_cmds_CXX='tpldir=Template.dir~
13596 rm -rf $tpldir~
13597 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
ee134472 13598 $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 13599 ;;
ee134472 13600 *) # Version 6 and above use weak symbols
47aaa820
DWT
13601 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13602 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'
13603 ;;
13604 esac
9c60689e 13605
47aaa820
DWT
13606 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13607 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
ee134472 13608 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
13609 ;;
13610 cxx*)
13611 # Compaq C++
13612 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13613 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 13614
47aaa820
DWT
13615 runpath_var=LD_RUN_PATH
13616 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13617 hardcode_libdir_separator_CXX=:
9c60689e 13618
47aaa820
DWT
13619 # Commands to make compiler produce verbose output that lists
13620 # what "hidden" libraries, object files and flags are used when
13621 # linking a shared library.
13622 #
13623 # There doesn't appear to be a way to prevent this compiler from
13624 # explicitly linking system object files so we need to strip them
13625 # from the output so that they don't get included in the library
13626 # dependencies.
ee134472 13627 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 13628 ;;
ee134472 13629 xl* | mpixl* | bgxl*)
47aaa820
DWT
13630 # IBM XL 8.0 on PPC, with GNU ld
13631 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13632 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13633 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13634 if test "x$supports_anon_versioning" = xyes; then
13635 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13636 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13637 echo "local: *; };" >> $output_objdir/$libname.ver~
13638 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13639 fi
13640 ;;
13641 *)
13642 case `$CC -V 2>&1 | sed 5q` in
13643 *Sun\ C*)
13644 # Sun C++ 5.9
13645 no_undefined_flag_CXX=' -zdefs'
13646 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13647 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'
13648 hardcode_libdir_flag_spec_CXX='-R$libdir'
ee134472 13649 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 13650 compiler_needs_object_CXX=yes
9c60689e 13651
47aaa820
DWT
13652 # Not sure whether something based on
13653 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13654 # would be better.
ee134472 13655 output_verbose_link_cmd='func_echo_all'
9c60689e 13656
47aaa820
DWT
13657 # Archives containing C++ object files must be created using
13658 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13659 # necessary to make sure instantiated templates are included
13660 # in the archive.
13661 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13662 ;;
13663 esac
13664 ;;
13665 esac
13666 ;;
9c60689e 13667
47aaa820
DWT
13668 lynxos*)
13669 # FIXME: insert proper C++ library support
13670 ld_shlibs_CXX=no
13671 ;;
9c60689e 13672
47aaa820
DWT
13673 m88k*)
13674 # FIXME: insert proper C++ library support
13675 ld_shlibs_CXX=no
13676 ;;
9c60689e 13677
47aaa820
DWT
13678 mvs*)
13679 case $cc_basename in
13680 cxx*)
13681 # FIXME: insert proper C++ library support
13682 ld_shlibs_CXX=no
13683 ;;
13684 *)
13685 # FIXME: insert proper C++ library support
13686 ld_shlibs_CXX=no
13687 ;;
13688 esac
13689 ;;
9c60689e 13690
47aaa820
DWT
13691 netbsd*)
13692 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13693 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13694 wlarc=
13695 hardcode_libdir_flag_spec_CXX='-R$libdir'
13696 hardcode_direct_CXX=yes
13697 hardcode_shlibpath_var_CXX=no
13698 fi
13699 # Workaround some broken pre-1.5 toolchains
13700 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
9c60689e 13701 ;;
47aaa820
DWT
13702
13703 *nto* | *qnx*)
13704 ld_shlibs_CXX=yes
9c60689e 13705 ;;
9c60689e 13706
47aaa820
DWT
13707 openbsd2*)
13708 # C++ shared libraries are fairly broken
13709 ld_shlibs_CXX=no
13710 ;;
9c60689e 13711
47aaa820
DWT
13712 openbsd*)
13713 if test -f /usr/libexec/ld.so; then
13714 hardcode_direct_CXX=yes
13715 hardcode_shlibpath_var_CXX=no
13716 hardcode_direct_absolute_CXX=yes
13717 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13718 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13719 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13720 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13721 export_dynamic_flag_spec_CXX='${wl}-E'
13722 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13723 fi
ee134472 13724 output_verbose_link_cmd=func_echo_all
47aaa820
DWT
13725 else
13726 ld_shlibs_CXX=no
13727 fi
13728 ;;
9c60689e 13729
47aaa820
DWT
13730 osf3* | osf4* | osf5*)
13731 case $cc_basename in
13732 KCC*)
13733 # Kuck and Associates, Inc. (KAI) C++ Compiler
9c60689e 13734
47aaa820
DWT
13735 # KCC will only create a shared library if the output file
13736 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13737 # to its proper name (with version) after linking.
13738 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 13739
47aaa820
DWT
13740 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13741 hardcode_libdir_separator_CXX=:
9c60689e 13742
47aaa820
DWT
13743 # Archives containing C++ object files must be created using
13744 # the KAI C++ compiler.
13745 case $host in
13746 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13747 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13748 esac
13749 ;;
13750 RCC*)
13751 # Rational C++ 2.4.1
13752 # FIXME: insert proper C++ library support
13753 ld_shlibs_CXX=no
13754 ;;
13755 cxx*)
13756 case $host in
13757 osf3*)
13758 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
ee134472 13759 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
13760 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13761 ;;
13762 *)
13763 allow_undefined_flag_CXX=' -expect_unresolved \*'
ee134472 13764 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
13765 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13766 echo "-hidden">> $lib.exp~
ee134472 13767 $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
13768 $RM $lib.exp'
13769 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13770 ;;
13771 esac
9c60689e 13772
47aaa820 13773 hardcode_libdir_separator_CXX=:
9c60689e 13774
47aaa820
DWT
13775 # Commands to make compiler produce verbose output that lists
13776 # what "hidden" libraries, object files and flags are used when
13777 # linking a shared library.
13778 #
13779 # There doesn't appear to be a way to prevent this compiler from
13780 # explicitly linking system object files so we need to strip them
13781 # from the output so that they don't get included in the library
13782 # dependencies.
ee134472 13783 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
13784 ;;
13785 *)
13786 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13787 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13788 case $host in
13789 osf3*)
ee134472 13790 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
13791 ;;
13792 *)
ee134472 13793 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
13794 ;;
13795 esac
9c60689e 13796
47aaa820
DWT
13797 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13798 hardcode_libdir_separator_CXX=:
9c60689e 13799
47aaa820
DWT
13800 # Commands to make compiler produce verbose output that lists
13801 # what "hidden" libraries, object files and flags are used when
13802 # linking a shared library.
ee134472 13803 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
9c60689e 13804
47aaa820
DWT
13805 else
13806 # FIXME: insert proper C++ library support
13807 ld_shlibs_CXX=no
13808 fi
13809 ;;
13810 esac
13811 ;;
9c60689e 13812
47aaa820 13813 psos*)
9c60689e
DWT
13814 # FIXME: insert proper C++ library support
13815 ld_shlibs_CXX=no
13816 ;;
9c60689e 13817
47aaa820
DWT
13818 sunos4*)
13819 case $cc_basename in
13820 CC*)
13821 # Sun C++ 4.x
13822 # FIXME: insert proper C++ library support
13823 ld_shlibs_CXX=no
9c60689e 13824 ;;
47aaa820
DWT
13825 lcc*)
13826 # Lucid
13827 # FIXME: insert proper C++ library support
13828 ld_shlibs_CXX=no
13829 ;;
13830 *)
13831 # FIXME: insert proper C++ library support
13832 ld_shlibs_CXX=no
13833 ;;
13834 esac
13835 ;;
9c60689e 13836
47aaa820
DWT
13837 solaris*)
13838 case $cc_basename in
ee134472 13839 CC* | sunCC*)
47aaa820
DWT
13840 # Sun C++ 4.2, 5.x and Centerline C++
13841 archive_cmds_need_lc_CXX=yes
13842 no_undefined_flag_CXX=' -zdefs'
13843 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13844 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13845 $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 13846
47aaa820
DWT
13847 hardcode_libdir_flag_spec_CXX='-R$libdir'
13848 hardcode_shlibpath_var_CXX=no
13849 case $host_os in
13850 solaris2.[0-5] | solaris2.[0-5].*) ;;
13851 *)
13852 # The compiler driver will combine and reorder linker options,
13853 # but understands `-z linker_flag'.
13854 # Supported since Solaris 2.6 (maybe 2.5.1?)
13855 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13856 ;;
13857 esac
13858 link_all_deplibs_CXX=yes
9c60689e 13859
ee134472 13860 output_verbose_link_cmd='func_echo_all'
9c60689e 13861
47aaa820
DWT
13862 # Archives containing C++ object files must be created using
13863 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13864 # necessary to make sure instantiated templates are included
13865 # in the archive.
13866 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13867 ;;
13868 gcx*)
13869 # Green Hills C++ Compiler
13870 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9c60689e 13871
47aaa820
DWT
13872 # The C++ compiler must be used to create the archive.
13873 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13874 ;;
13875 *)
13876 # GNU C++ compiler with Solaris linker
13877 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13878 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13879 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
ee134472 13880 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
47aaa820 13881 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
ee134472 13882 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
9c60689e 13883
47aaa820
DWT
13884 # Commands to make compiler produce verbose output that lists
13885 # what "hidden" libraries, object files and flags are used when
13886 # linking a shared library.
ee134472 13887 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
47aaa820
DWT
13888 else
13889 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13890 # platform.
13891 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13892 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13893 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
9c60689e 13894
47aaa820
DWT
13895 # Commands to make compiler produce verbose output that lists
13896 # what "hidden" libraries, object files and flags are used when
13897 # linking a shared library.
ee134472 13898 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
47aaa820 13899 fi
9c60689e 13900
47aaa820
DWT
13901 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13902 case $host_os in
13903 solaris2.[0-5] | solaris2.[0-5].*) ;;
13904 *)
13905 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13906 ;;
13907 esac
13908 fi
13909 ;;
13910 esac
13911 ;;
9c60689e 13912
47aaa820
DWT
13913 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13914 no_undefined_flag_CXX='${wl}-z,text'
13915 archive_cmds_need_lc_CXX=no
13916 hardcode_shlibpath_var_CXX=no
13917 runpath_var='LD_RUN_PATH'
9c60689e 13918
47aaa820
DWT
13919 case $cc_basename in
13920 CC*)
13921 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13922 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13923 ;;
13924 *)
13925 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13926 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13927 ;;
13928 esac
13929 ;;
9c60689e 13930
47aaa820
DWT
13931 sysv5* | sco3.2v5* | sco5v6*)
13932 # Note: We can NOT use -z defs as we might desire, because we do not
13933 # link with -lc, and that would cause any symbols used from libc to
13934 # always be unresolved, which means just about no library would
13935 # ever link correctly. If we're not using GNU ld we use -z text
13936 # though, which does catch some bad symbols but isn't as heavy-handed
13937 # as -z defs.
13938 no_undefined_flag_CXX='${wl}-z,text'
13939 allow_undefined_flag_CXX='${wl}-z,nodefs'
13940 archive_cmds_need_lc_CXX=no
13941 hardcode_shlibpath_var_CXX=no
13942 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13943 hardcode_libdir_separator_CXX=':'
13944 link_all_deplibs_CXX=yes
13945 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13946 runpath_var='LD_RUN_PATH'
9c60689e 13947
47aaa820
DWT
13948 case $cc_basename in
13949 CC*)
13950 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13951 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
ee134472
JF
13952 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13953 '"$old_archive_cmds_CXX"
13954 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13955 '"$reload_cmds_CXX"
47aaa820
DWT
13956 ;;
13957 *)
13958 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13959 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13960 ;;
13961 esac
13962 ;;
9c60689e 13963
47aaa820 13964 tandem*)
9c60689e 13965 case $cc_basename in
47aaa820
DWT
13966 NCC*)
13967 # NonStop-UX NCC 3.20
13968 # FIXME: insert proper C++ library support
13969 ld_shlibs_CXX=no
13970 ;;
9c60689e 13971 *)
47aaa820
DWT
13972 # FIXME: insert proper C++ library support
13973 ld_shlibs_CXX=no
13974 ;;
9c60689e
DWT
13975 esac
13976 ;;
13977
47aaa820
DWT
13978 vxworks*)
13979 # FIXME: insert proper C++ library support
13980 ld_shlibs_CXX=no
13981 ;;
9c60689e 13982
47aaa820
DWT
13983 *)
13984 # FIXME: insert proper C++ library support
13985 ld_shlibs_CXX=no
9c60689e 13986 ;;
47aaa820 13987 esac
9c60689e 13988
47aaa820
DWT
13989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13990$as_echo "$ld_shlibs_CXX" >&6; }
13991 test "$ld_shlibs_CXX" = no && can_build_shared=no
9c60689e 13992
47aaa820
DWT
13993 GCC_CXX="$GXX"
13994 LD_CXX="$LD"
9c60689e 13995
47aaa820
DWT
13996 ## CAVEAT EMPTOR:
13997 ## There is no encapsulation within the following macros, do not change
13998 ## the running order or otherwise move them around unless you know exactly
13999 ## what you are doing...
14000 # Dependencies to place before and after the object being linked:
14001predep_objects_CXX=
14002postdep_objects_CXX=
14003predeps_CXX=
14004postdeps_CXX=
14005compiler_lib_search_path_CXX=
9c60689e 14006
47aaa820
DWT
14007cat > conftest.$ac_ext <<_LT_EOF
14008class Foo
14009{
14010public:
14011 Foo (void) { a = 0; }
14012private:
14013 int a;
14014};
14015_LT_EOF
9c60689e 14016
ee134472
JF
14017
14018_lt_libdeps_save_CFLAGS=$CFLAGS
14019case "$CC $CFLAGS " in #(
14020*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14021*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
53ba6704 14022*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
ee134472
JF
14023esac
14024
47aaa820
DWT
14025if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14026 (eval $ac_compile) 2>&5
14027 ac_status=$?
14028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14029 test $ac_status = 0; }; then
14030 # Parse the compiler output and extract the necessary
14031 # objects, libraries and library flags.
9c60689e 14032
47aaa820
DWT
14033 # Sentinel used to keep track of whether or not we are before
14034 # the conftest object file.
14035 pre_test_object_deps_done=no
9c60689e 14036
47aaa820 14037 for p in `eval "$output_verbose_link_cmd"`; do
ee134472 14038 case ${prev}${p} in
9c60689e 14039
47aaa820
DWT
14040 -L* | -R* | -l*)
14041 # Some compilers place space between "-{L,R}" and the path.
14042 # Remove the space.
14043 if test $p = "-L" ||
14044 test $p = "-R"; then
14045 prev=$p
14046 continue
47aaa820 14047 fi
9c60689e 14048
ee134472
JF
14049 # Expand the sysroot to ease extracting the directories later.
14050 if test -z "$prev"; then
14051 case $p in
14052 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14053 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14054 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14055 esac
14056 fi
14057 case $p in
14058 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14059 esac
47aaa820 14060 if test "$pre_test_object_deps_done" = no; then
ee134472
JF
14061 case ${prev} in
14062 -L | -R)
47aaa820
DWT
14063 # Internal compiler library paths should come after those
14064 # provided the user. The postdeps already come after the
14065 # user supplied libs so there is no need to process them.
14066 if test -z "$compiler_lib_search_path_CXX"; then
14067 compiler_lib_search_path_CXX="${prev}${p}"
14068 else
14069 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14070 fi
14071 ;;
14072 # The "-l" case would never come before the object being
14073 # linked, so don't bother handling this case.
14074 esac
14075 else
14076 if test -z "$postdeps_CXX"; then
14077 postdeps_CXX="${prev}${p}"
14078 else
14079 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14080 fi
14081 fi
ee134472 14082 prev=
47aaa820 14083 ;;
9c60689e 14084
ee134472 14085 *.lto.$objext) ;; # Ignore GCC LTO objects
47aaa820
DWT
14086 *.$objext)
14087 # This assumes that the test object file only shows up
14088 # once in the compiler output.
14089 if test "$p" = "conftest.$objext"; then
14090 pre_test_object_deps_done=yes
14091 continue
14092 fi
9c60689e 14093
47aaa820
DWT
14094 if test "$pre_test_object_deps_done" = no; then
14095 if test -z "$predep_objects_CXX"; then
14096 predep_objects_CXX="$p"
14097 else
14098 predep_objects_CXX="$predep_objects_CXX $p"
14099 fi
14100 else
14101 if test -z "$postdep_objects_CXX"; then
14102 postdep_objects_CXX="$p"
14103 else
14104 postdep_objects_CXX="$postdep_objects_CXX $p"
14105 fi
14106 fi
14107 ;;
9c60689e 14108
47aaa820 14109 *) ;; # Ignore the rest.
9c60689e 14110
47aaa820
DWT
14111 esac
14112 done
9c60689e 14113
47aaa820
DWT
14114 # Clean up.
14115 rm -f a.out a.exe
14116else
14117 echo "libtool.m4: error: problem compiling CXX test program"
14118fi
9c60689e 14119
47aaa820 14120$RM -f confest.$objext
ee134472 14121CFLAGS=$_lt_libdeps_save_CFLAGS
9c60689e 14122
47aaa820
DWT
14123# PORTME: override above test on systems where it is broken
14124case $host_os in
14125interix[3-9]*)
14126 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14127 # hack all around it, let's just trust "g++" to DTRT.
14128 predep_objects_CXX=
14129 postdep_objects_CXX=
14130 postdeps_CXX=
14131 ;;
9c60689e 14132
47aaa820
DWT
14133linux*)
14134 case `$CC -V 2>&1 | sed 5q` in
14135 *Sun\ C*)
14136 # Sun C++ 5.9
9c60689e 14137
47aaa820
DWT
14138 # The more standards-conforming stlport4 library is
14139 # incompatible with the Cstd library. Avoid specifying
14140 # it if it's in CXXFLAGS. Ignore libCrun as
14141 # -library=stlport4 depends on it.
14142 case " $CXX $CXXFLAGS " in
14143 *" -library=stlport4 "*)
14144 solaris_use_stlport4=yes
14145 ;;
14146 esac
9c60689e 14147
47aaa820
DWT
14148 if test "$solaris_use_stlport4" != yes; then
14149 postdeps_CXX='-library=Cstd -library=Crun'
14150 fi
14151 ;;
14152 esac
14153 ;;
9c60689e 14154
47aaa820
DWT
14155solaris*)
14156 case $cc_basename in
ee134472 14157 CC* | sunCC*)
47aaa820
DWT
14158 # The more standards-conforming stlport4 library is
14159 # incompatible with the Cstd library. Avoid specifying
14160 # it if it's in CXXFLAGS. Ignore libCrun as
14161 # -library=stlport4 depends on it.
14162 case " $CXX $CXXFLAGS " in
14163 *" -library=stlport4 "*)
14164 solaris_use_stlport4=yes
14165 ;;
14166 esac
9c60689e 14167
47aaa820
DWT
14168 # Adding this requires a known-good setup of shared libraries for
14169 # Sun compiler versions before 5.6, else PIC objects from an old
14170 # archive will be linked into the output, leading to subtle bugs.
14171 if test "$solaris_use_stlport4" != yes; then
14172 postdeps_CXX='-library=Cstd -library=Crun'
14173 fi
14174 ;;
14175 esac
14176 ;;
14177esac
9c60689e 14178
9c60689e 14179
47aaa820
DWT
14180case " $postdeps_CXX " in
14181*" -lc "*) archive_cmds_need_lc_CXX=no ;;
14182esac
14183 compiler_lib_search_dirs_CXX=
14184if test -n "${compiler_lib_search_path_CXX}"; then
14185 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14186fi
9c60689e 14187
9c60689e 14188
9c60689e 14189
9c60689e 14190
9c60689e 14191
9c60689e 14192
9c60689e 14193
9c60689e 14194
9c60689e 14195
9c60689e 14196
9c60689e 14197
9c60689e 14198
9c60689e 14199
9c60689e 14200
9c60689e 14201
9c60689e 14202
9c60689e 14203
9c60689e 14204
9c60689e 14205
9c60689e 14206
9c60689e 14207
9c60689e 14208
9c60689e 14209
9c60689e 14210
9c60689e 14211
9c60689e 14212
9c60689e 14213
9c60689e 14214
9c60689e 14215
9c60689e 14216
9c60689e 14217
47aaa820
DWT
14218 lt_prog_compiler_wl_CXX=
14219lt_prog_compiler_pic_CXX=
14220lt_prog_compiler_static_CXX=
9c60689e 14221
9c60689e
DWT
14222
14223 # C++ specific cases for pic, static, wl, etc.
14224 if test "$GXX" = yes; then
14225 lt_prog_compiler_wl_CXX='-Wl,'
14226 lt_prog_compiler_static_CXX='-static'
14227
14228 case $host_os in
14229 aix*)
14230 # All AIX code is PIC.
14231 if test "$host_cpu" = ia64; then
14232 # AIX 5 now supports IA64 processor
14233 lt_prog_compiler_static_CXX='-Bstatic'
14234 fi
14235 ;;
14236
14237 amigaos*)
14238 case $host_cpu in
14239 powerpc)
14240 # see comment about AmigaOS4 .so support
14241 lt_prog_compiler_pic_CXX='-fPIC'
14242 ;;
14243 m68k)
14244 # FIXME: we need at least 68020 code to build shared libraries, but
14245 # adding the `-m68020' flag to GCC prevents building anything better,
14246 # like `-m68040'.
14247 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14248 ;;
14249 esac
14250 ;;
14251
14252 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14253 # PIC is the default for these OSes.
14254 ;;
14255 mingw* | cygwin* | os2* | pw32* | cegcc*)
14256 # This hack is so that the source file can tell whether it is being
14257 # built for inclusion in a dll (and should export symbols for example).
14258 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14259 # (--disable-auto-import) libraries
14260 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14261 ;;
14262 darwin* | rhapsody*)
14263 # PIC is the default on this platform
14264 # Common symbols not allowed in MH_DYLIB files
14265 lt_prog_compiler_pic_CXX='-fno-common'
14266 ;;
14267 *djgpp*)
14268 # DJGPP does not support shared libraries at all
14269 lt_prog_compiler_pic_CXX=
14270 ;;
ee134472
JF
14271 haiku*)
14272 # PIC is the default for Haiku.
14273 # The "-static" flag exists, but is broken.
14274 lt_prog_compiler_static_CXX=
14275 ;;
9c60689e
DWT
14276 interix[3-9]*)
14277 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14278 # Instead, we relocate shared libraries at runtime.
14279 ;;
14280 sysv4*MP*)
14281 if test -d /usr/nec; then
14282 lt_prog_compiler_pic_CXX=-Kconform_pic
14283 fi
14284 ;;
14285 hpux*)
14286 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14287 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14288 # sets the default TLS model and affects inlining.
14289 case $host_cpu in
14290 hppa*64*)
14291 ;;
14292 *)
14293 lt_prog_compiler_pic_CXX='-fPIC'
14294 ;;
14295 esac
14296 ;;
14297 *qnx* | *nto*)
14298 # QNX uses GNU C++, but need to define -shared option too, otherwise
14299 # it will coredump.
14300 lt_prog_compiler_pic_CXX='-fPIC -shared'
14301 ;;
14302 *)
14303 lt_prog_compiler_pic_CXX='-fPIC'
14304 ;;
14305 esac
14306 else
14307 case $host_os in
14308 aix[4-9]*)
14309 # All AIX code is PIC.
14310 if test "$host_cpu" = ia64; then
14311 # AIX 5 now supports IA64 processor
14312 lt_prog_compiler_static_CXX='-Bstatic'
14313 else
14314 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14315 fi
14316 ;;
14317 chorus*)
14318 case $cc_basename in
14319 cxch68*)
14320 # Green Hills C++ Compiler
14321 # _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"
14322 ;;
14323 esac
14324 ;;
ee134472
JF
14325 mingw* | cygwin* | os2* | pw32* | cegcc*)
14326 # This hack is so that the source file can tell whether it is being
14327 # built for inclusion in a dll (and should export symbols for example).
14328 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14329 ;;
9c60689e
DWT
14330 dgux*)
14331 case $cc_basename in
14332 ec++*)
14333 lt_prog_compiler_pic_CXX='-KPIC'
14334 ;;
14335 ghcx*)
14336 # Green Hills C++ Compiler
14337 lt_prog_compiler_pic_CXX='-pic'
14338 ;;
14339 *)
14340 ;;
14341 esac
14342 ;;
14343 freebsd* | dragonfly*)
14344 # FreeBSD uses GNU C++
14345 ;;
14346 hpux9* | hpux10* | hpux11*)
14347 case $cc_basename in
14348 CC*)
14349 lt_prog_compiler_wl_CXX='-Wl,'
14350 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14351 if test "$host_cpu" != ia64; then
14352 lt_prog_compiler_pic_CXX='+Z'
14353 fi
14354 ;;
14355 aCC*)
14356 lt_prog_compiler_wl_CXX='-Wl,'
14357 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14358 case $host_cpu in
14359 hppa*64*|ia64*)
14360 # +Z the default
14361 ;;
14362 *)
14363 lt_prog_compiler_pic_CXX='+Z'
14364 ;;
14365 esac
14366 ;;
14367 *)
14368 ;;
14369 esac
14370 ;;
14371 interix*)
14372 # This is c89, which is MS Visual C++ (no shared libs)
14373 # Anyone wants to do a port?
14374 ;;
14375 irix5* | irix6* | nonstopux*)
14376 case $cc_basename in
14377 CC*)
14378 lt_prog_compiler_wl_CXX='-Wl,'
14379 lt_prog_compiler_static_CXX='-non_shared'
14380 # CC pic flag -KPIC is the default.
14381 ;;
14382 *)
14383 ;;
14384 esac
14385 ;;
1504c9b8 14386 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9c60689e
DWT
14387 case $cc_basename in
14388 KCC*)
14389 # KAI C++ Compiler
14390 lt_prog_compiler_wl_CXX='--backend -Wl,'
14391 lt_prog_compiler_pic_CXX='-fPIC'
14392 ;;
14393 ecpc* )
14394 # old Intel C++ for x86_64 which still supported -KPIC.
14395 lt_prog_compiler_wl_CXX='-Wl,'
14396 lt_prog_compiler_pic_CXX='-KPIC'
14397 lt_prog_compiler_static_CXX='-static'
14398 ;;
14399 icpc* )
14400 # Intel C++, used to be incompatible with GCC.
14401 # ICC 10 doesn't accept -KPIC any more.
14402 lt_prog_compiler_wl_CXX='-Wl,'
14403 lt_prog_compiler_pic_CXX='-fPIC'
14404 lt_prog_compiler_static_CXX='-static'
14405 ;;
14406 pgCC* | pgcpp*)
14407 # Portland Group C++ compiler
14408 lt_prog_compiler_wl_CXX='-Wl,'
14409 lt_prog_compiler_pic_CXX='-fpic'
14410 lt_prog_compiler_static_CXX='-Bstatic'
14411 ;;
14412 cxx*)
14413 # Compaq C++
14414 # Make sure the PIC flag is empty. It appears that all Alpha
14415 # Linux and Compaq Tru64 Unix objects are PIC.
14416 lt_prog_compiler_pic_CXX=
14417 lt_prog_compiler_static_CXX='-non_shared'
14418 ;;
ee134472
JF
14419 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14420 # IBM XL 8.0, 9.0 on PPC and BlueGene
9c60689e
DWT
14421 lt_prog_compiler_wl_CXX='-Wl,'
14422 lt_prog_compiler_pic_CXX='-qpic'
14423 lt_prog_compiler_static_CXX='-qstaticlink'
14424 ;;
14425 *)
14426 case `$CC -V 2>&1 | sed 5q` in
14427 *Sun\ C*)
14428 # Sun C++ 5.9
14429 lt_prog_compiler_pic_CXX='-KPIC'
14430 lt_prog_compiler_static_CXX='-Bstatic'
14431 lt_prog_compiler_wl_CXX='-Qoption ld '
14432 ;;
14433 esac
14434 ;;
14435 esac
14436 ;;
14437 lynxos*)
14438 ;;
14439 m88k*)
14440 ;;
14441 mvs*)
14442 case $cc_basename in
14443 cxx*)
14444 lt_prog_compiler_pic_CXX='-W c,exportall'
14445 ;;
14446 *)
14447 ;;
14448 esac
14449 ;;
53ba6704 14450 netbsd*)
9c60689e
DWT
14451 ;;
14452 *qnx* | *nto*)
14453 # QNX uses GNU C++, but need to define -shared option too, otherwise
14454 # it will coredump.
14455 lt_prog_compiler_pic_CXX='-fPIC -shared'
14456 ;;
14457 osf3* | osf4* | osf5*)
14458 case $cc_basename in
14459 KCC*)
14460 lt_prog_compiler_wl_CXX='--backend -Wl,'
14461 ;;
14462 RCC*)
14463 # Rational C++ 2.4.1
14464 lt_prog_compiler_pic_CXX='-pic'
14465 ;;
14466 cxx*)
14467 # Digital/Compaq C++
14468 lt_prog_compiler_wl_CXX='-Wl,'
14469 # Make sure the PIC flag is empty. It appears that all Alpha
14470 # Linux and Compaq Tru64 Unix objects are PIC.
14471 lt_prog_compiler_pic_CXX=
14472 lt_prog_compiler_static_CXX='-non_shared'
14473 ;;
14474 *)
14475 ;;
14476 esac
14477 ;;
14478 psos*)
14479 ;;
14480 solaris*)
14481 case $cc_basename in
ee134472 14482 CC* | sunCC*)
9c60689e
DWT
14483 # Sun C++ 4.2, 5.x and Centerline C++
14484 lt_prog_compiler_pic_CXX='-KPIC'
14485 lt_prog_compiler_static_CXX='-Bstatic'
14486 lt_prog_compiler_wl_CXX='-Qoption ld '
14487 ;;
14488 gcx*)
14489 # Green Hills C++ Compiler
14490 lt_prog_compiler_pic_CXX='-PIC'
14491 ;;
14492 *)
14493 ;;
14494 esac
14495 ;;
14496 sunos4*)
14497 case $cc_basename in
14498 CC*)
14499 # Sun C++ 4.x
14500 lt_prog_compiler_pic_CXX='-pic'
14501 lt_prog_compiler_static_CXX='-Bstatic'
14502 ;;
14503 lcc*)
14504 # Lucid
14505 lt_prog_compiler_pic_CXX='-pic'
14506 ;;
14507 *)
14508 ;;
14509 esac
14510 ;;
14511 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14512 case $cc_basename in
14513 CC*)
14514 lt_prog_compiler_wl_CXX='-Wl,'
14515 lt_prog_compiler_pic_CXX='-KPIC'
14516 lt_prog_compiler_static_CXX='-Bstatic'
14517 ;;
14518 esac
14519 ;;
14520 tandem*)
14521 case $cc_basename in
14522 NCC*)
14523 # NonStop-UX NCC 3.20
14524 lt_prog_compiler_pic_CXX='-KPIC'
14525 ;;
14526 *)
14527 ;;
14528 esac
14529 ;;
14530 vxworks*)
14531 ;;
14532 *)
14533 lt_prog_compiler_can_build_shared_CXX=no
14534 ;;
14535 esac
14536 fi
14537
14538case $host_os in
14539 # For platforms which do not support PIC, -DPIC is meaningless:
14540 *djgpp*)
14541 lt_prog_compiler_pic_CXX=
14542 ;;
14543 *)
14544 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14545 ;;
14546esac
9c60689e 14547
ee134472
JF
14548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14549$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14550if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14551 $as_echo_n "(cached) " >&6
14552else
14553 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14554fi
14555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14556$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14557lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
9c60689e
DWT
14558
14559#
14560# Check to make sure the PIC flag actually works.
14561#
14562if test -n "$lt_prog_compiler_pic_CXX"; then
14563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14564$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
ee134472 14565if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
9c60689e
DWT
14566 $as_echo_n "(cached) " >&6
14567else
14568 lt_cv_prog_compiler_pic_works_CXX=no
14569 ac_outfile=conftest.$ac_objext
14570 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14571 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14572 # Insert the option either (1) after the last *FLAGS variable, or
14573 # (2) before a word containing "conftest.", or (3) at the end.
14574 # Note that $ac_compile itself does not contain backslashes and begins
14575 # with a dollar sign (not a hyphen), so the echo should work correctly.
14576 # The option is referenced via a variable to avoid confusing sed.
14577 lt_compile=`echo "$ac_compile" | $SED \
14578 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14579 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14580 -e 's:$: $lt_compiler_flag:'`
ee134472 14581 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9c60689e
DWT
14582 (eval "$lt_compile" 2>conftest.err)
14583 ac_status=$?
14584 cat conftest.err >&5
ee134472 14585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9c60689e
DWT
14586 if (exit $ac_status) && test -s "$ac_outfile"; then
14587 # The compiler can only warn and ignore the option if not recognized
14588 # So say no if there are warnings other than the usual output.
ee134472 14589 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9c60689e
DWT
14590 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14591 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14592 lt_cv_prog_compiler_pic_works_CXX=yes
14593 fi
14594 fi
53ba6704 14595 $RM -r conftest*
9c60689e
DWT
14596
14597fi
14598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14599$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14600
14601if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14602 case $lt_prog_compiler_pic_CXX in
14603 "" | " "*) ;;
14604 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14605 esac
14606else
14607 lt_prog_compiler_pic_CXX=
14608 lt_prog_compiler_can_build_shared_CXX=no
14609fi
14610
14611fi
14612
14613
14614
ee134472
JF
14615
14616
47aaa820
DWT
14617#
14618# Check to make sure the static flag actually works.
14619#
14620wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14622$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
ee134472 14623if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
47aaa820
DWT
14624 $as_echo_n "(cached) " >&6
14625else
14626 lt_cv_prog_compiler_static_works_CXX=no
14627 save_LDFLAGS="$LDFLAGS"
14628 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14629 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14630 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14631 # The linker can only warn and ignore the option if not recognized
14632 # So say no if there are warnings
14633 if test -s conftest.err; then
14634 # Append any errors to the config.log.
14635 cat conftest.err 1>&5
ee134472 14636 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
47aaa820
DWT
14637 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14638 if diff conftest.exp conftest.er2 >/dev/null; then
14639 lt_cv_prog_compiler_static_works_CXX=yes
14640 fi
14641 else
14642 lt_cv_prog_compiler_static_works_CXX=yes
14643 fi
14644 fi
14645 $RM -r conftest*
14646 LDFLAGS="$save_LDFLAGS"
14647
14648fi
14649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14650$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14651
14652if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14653 :
14654else
14655 lt_prog_compiler_static_CXX=
14656fi
14657
14658
14659
14660
14661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14662$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
ee134472 14663if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
47aaa820
DWT
14664 $as_echo_n "(cached) " >&6
14665else
14666 lt_cv_prog_compiler_c_o_CXX=no
14667 $RM -r conftest 2>/dev/null
14668 mkdir conftest
14669 cd conftest
14670 mkdir out
14671 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14672
14673 lt_compiler_flag="-o out/conftest2.$ac_objext"
14674 # Insert the option either (1) after the last *FLAGS variable, or
14675 # (2) before a word containing "conftest.", or (3) at the end.
14676 # Note that $ac_compile itself does not contain backslashes and begins
14677 # with a dollar sign (not a hyphen), so the echo should work correctly.
14678 lt_compile=`echo "$ac_compile" | $SED \
14679 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14680 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14681 -e 's:$: $lt_compiler_flag:'`
ee134472 14682 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
47aaa820
DWT
14683 (eval "$lt_compile" 2>out/conftest.err)
14684 ac_status=$?
14685 cat out/conftest.err >&5
ee134472 14686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47aaa820
DWT
14687 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14688 then
14689 # The compiler can only warn and ignore the option if not recognized
14690 # So say no if there are warnings
ee134472 14691 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
47aaa820
DWT
14692 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14693 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14694 lt_cv_prog_compiler_c_o_CXX=yes
14695 fi
14696 fi
14697 chmod u+w . 2>&5
53ba6704 14698 $RM -r conftest*
47aaa820
DWT
14699 # SGI C++ compiler will create directory out/ii_files/ for
14700 # template instantiation
14701 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14702 $RM out/* && rmdir out
14703 cd ..
14704 $RM -r conftest
53ba6704 14705 $RM -r conftest*
47aaa820
DWT
14706
14707fi
14708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14709$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14710
14711
14712
14713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14714$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
ee134472 14715if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
47aaa820
DWT
14716 $as_echo_n "(cached) " >&6
14717else
14718 lt_cv_prog_compiler_c_o_CXX=no
14719 $RM -r conftest 2>/dev/null
14720 mkdir conftest
14721 cd conftest
14722 mkdir out
14723 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14724
14725 lt_compiler_flag="-o out/conftest2.$ac_objext"
14726 # Insert the option either (1) after the last *FLAGS variable, or
14727 # (2) before a word containing "conftest.", or (3) at the end.
14728 # Note that $ac_compile itself does not contain backslashes and begins
14729 # with a dollar sign (not a hyphen), so the echo should work correctly.
14730 lt_compile=`echo "$ac_compile" | $SED \
14731 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14732 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14733 -e 's:$: $lt_compiler_flag:'`
ee134472 14734 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
47aaa820
DWT
14735 (eval "$lt_compile" 2>out/conftest.err)
14736 ac_status=$?
14737 cat out/conftest.err >&5
ee134472 14738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47aaa820
DWT
14739 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14740 then
14741 # The compiler can only warn and ignore the option if not recognized
14742 # So say no if there are warnings
ee134472 14743 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
47aaa820
DWT
14744 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14745 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14746 lt_cv_prog_compiler_c_o_CXX=yes
14747 fi
14748 fi
14749 chmod u+w . 2>&5
53ba6704 14750 $RM -r conftest*
47aaa820
DWT
14751 # SGI C++ compiler will create directory out/ii_files/ for
14752 # template instantiation
14753 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14754 $RM out/* && rmdir out
14755 cd ..
14756 $RM -r conftest
53ba6704 14757 $RM -r conftest*
47aaa820
DWT
14758
14759fi
14760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14761$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14762
14763
14764
14765
14766hard_links="nottested"
14767if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14768 # do not overwrite the value of need_locks provided by the user
14769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14770$as_echo_n "checking if we can lock with hard links... " >&6; }
14771 hard_links=yes
53ba6704 14772 $RM -r conftest*
47aaa820
DWT
14773 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14774 touch conftest.a
14775 ln conftest.a conftest.b 2>&5 || hard_links=no
14776 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14778$as_echo "$hard_links" >&6; }
14779 if test "$hard_links" = no; then
14780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14781$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14782 need_locks=warn
14783 fi
14784else
14785 need_locks=no
14786fi
14787
14788
14789
14790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14791$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14792
14793 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
ee134472 14794 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
47aaa820
DWT
14795 case $host_os in
14796 aix[4-9]*)
14797 # If we're using GNU nm, then we don't want the "-C" option.
14798 # -C means demangle to AIX nm, but means don't demangle with GNU nm
ee134472
JF
14799 # Also, AIX nm treats weak defined symbols like other global defined
14800 # symbols, whereas GNU nm marks them as "W".
47aaa820 14801 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
ee134472 14802 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
14803 else
14804 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'
14805 fi
14806 ;;
14807 pw32*)
14808 export_symbols_cmds_CXX="$ltdll_cmds"
ee134472 14809 ;;
47aaa820 14810 cygwin* | mingw* | cegcc*)
ee134472 14811 case $cc_basename in
53ba6704
JF
14812 cl*)
14813 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14814 ;;
ee134472
JF
14815 *)
14816 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'
14817 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14818 ;;
14819 esac
14820 ;;
47aaa820
DWT
14821 *)
14822 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
ee134472 14823 ;;
47aaa820 14824 esac
47aaa820
DWT
14825
14826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14827$as_echo "$ld_shlibs_CXX" >&6; }
14828test "$ld_shlibs_CXX" = no && can_build_shared=no
14829
14830with_gnu_ld_CXX=$with_gnu_ld
14831
14832
14833
14834
14835
14836
14837#
14838# Do we need to explicitly link libc?
14839#
14840case "x$archive_cmds_need_lc_CXX" in
14841x|xyes)
14842 # Assume -lc should be added
14843 archive_cmds_need_lc_CXX=yes
14844
14845 if test "$enable_shared" = yes && test "$GCC" = yes; then
14846 case $archive_cmds_CXX in
14847 *'~'*)
14848 # FIXME: we may have to deal with multi-command sequences.
14849 ;;
14850 '$CC '*)
14851 # Test whether the compiler implicitly links with -lc since on some
14852 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14853 # to ld, don't add -lc before -lgcc.
14854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14855$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
ee134472
JF
14856if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14857 $as_echo_n "(cached) " >&6
14858else
53ba6704 14859 $RM -r conftest*
ee134472 14860 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
47aaa820 14861
ee134472 14862 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
47aaa820
DWT
14863 (eval $ac_compile) 2>&5
14864 ac_status=$?
14865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14866 test $ac_status = 0; } 2>conftest.err; then
ee134472
JF
14867 soname=conftest
14868 lib=conftest
14869 libobjs=conftest.$ac_objext
14870 deplibs=
14871 wl=$lt_prog_compiler_wl_CXX
14872 pic_flag=$lt_prog_compiler_pic_CXX
14873 compiler_flags=-v
14874 linker_flags=-v
14875 verstring=
14876 output_objdir=.
14877 libname=conftest
14878 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14879 allow_undefined_flag_CXX=
14880 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
47aaa820
DWT
14881 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14882 ac_status=$?
14883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14884 test $ac_status = 0; }
ee134472
JF
14885 then
14886 lt_cv_archive_cmds_need_lc_CXX=no
14887 else
14888 lt_cv_archive_cmds_need_lc_CXX=yes
14889 fi
14890 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14891 else
14892 cat conftest.err 1>&5
14893 fi
53ba6704 14894 $RM -r conftest*
ee134472
JF
14895
14896fi
14897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14898$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14899 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
47aaa820
DWT
14900 ;;
14901 esac
14902 fi
14903 ;;
14904esac
14905
14906
14907
14908
14909
14910
14911
14912
14913
14914
14915
14916
14917
14918
14919
14920
14921
14922
14923
14924
14925
14926
14927
14928
14929
14930
14931
14932
14933
14934
14935
14936
14937
14938
14939
14940
14941
14942
14943
14944
14945
14946
14947
14948
14949
14950
14951
14952
14953
14954
14955
14956
14957
14958
14959
14960
14961
14962
14963
47aaa820
DWT
14964
14965
14966
14967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14968$as_echo_n "checking dynamic linker characteristics... " >&6; }
14969
14970library_names_spec=
14971libname_spec='lib$name'
14972soname_spec=
14973shrext_cmds=".so"
14974postinstall_cmds=
14975postuninstall_cmds=
14976finish_cmds=
14977finish_eval=
14978shlibpath_var=
14979shlibpath_overrides_runpath=unknown
14980version_type=none
14981dynamic_linker="$host_os ld.so"
14982sys_lib_dlsearch_path_spec="/lib /usr/lib"
14983need_lib_prefix=unknown
14984hardcode_into_libs=no
14985
14986# when you set need_version to no, make sure it does not cause -set_version
14987# flags to be left without arguments
14988need_version=unknown
14989
14990case $host_os in
14991aix3*)
53ba6704 14992 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
14993 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14994 shlibpath_var=LIBPATH
14995
14996 # AIX 3 has no versioning support, so we append a major version to the name.
14997 soname_spec='${libname}${release}${shared_ext}$major'
14998 ;;
14999
15000aix[4-9]*)
53ba6704 15001 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15002 need_lib_prefix=no
15003 need_version=no
15004 hardcode_into_libs=yes
15005 if test "$host_cpu" = ia64; then
15006 # AIX 5 supports IA64
15007 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15008 shlibpath_var=LD_LIBRARY_PATH
15009 else
15010 # With GCC up to 2.95.x, collect2 would create an import file
15011 # for dependence libraries. The import file would start with
15012 # the line `#! .'. This would cause the generated library to
15013 # depend on `.', always an invalid library. This was fixed in
15014 # development snapshots of GCC prior to 3.0.
15015 case $host_os in
15016 aix4 | aix4.[01] | aix4.[01].*)
15017 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15018 echo ' yes '
15019 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15020 :
15021 else
15022 can_build_shared=no
15023 fi
15024 ;;
15025 esac
15026 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15027 # soname into executable. Probably we can add versioning support to
15028 # collect2, so additional links can be useful in future.
15029 if test "$aix_use_runtimelinking" = yes; then
15030 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15031 # instead of lib<name>.a to let people know that these are not
15032 # typical AIX shared libraries.
15033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15034 else
15035 # We preserve .a as extension for shared libraries through AIX4.2
15036 # and later when we are not doing run time linking.
15037 library_names_spec='${libname}${release}.a $libname.a'
15038 soname_spec='${libname}${release}${shared_ext}$major'
15039 fi
15040 shlibpath_var=LIBPATH
15041 fi
15042 ;;
15043
15044amigaos*)
15045 case $host_cpu in
15046 powerpc)
15047 # Since July 2007 AmigaOS4 officially supports .so libraries.
15048 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15050 ;;
15051 m68k)
15052 library_names_spec='$libname.ixlibrary $libname.a'
15053 # Create ${libname}_ixlibrary.a entries in /sys/libs.
ee134472 15054 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
15055 ;;
15056 esac
15057 ;;
15058
15059beos*)
15060 library_names_spec='${libname}${shared_ext}'
15061 dynamic_linker="$host_os ld.so"
15062 shlibpath_var=LIBRARY_PATH
15063 ;;
15064
15065bsdi[45]*)
53ba6704 15066 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15067 need_version=no
15068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15069 soname_spec='${libname}${release}${shared_ext}$major'
15070 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15071 shlibpath_var=LD_LIBRARY_PATH
15072 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15073 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15074 # the default ld.so.conf also contains /usr/contrib/lib and
15075 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15076 # libtool to hard-code these into programs
15077 ;;
9c60689e 15078
47aaa820
DWT
15079cygwin* | mingw* | pw32* | cegcc*)
15080 version_type=windows
15081 shrext_cmds=".dll"
15082 need_version=no
15083 need_lib_prefix=no
9c60689e 15084
ee134472
JF
15085 case $GCC,$cc_basename in
15086 yes,*)
15087 # gcc
47aaa820
DWT
15088 library_names_spec='$libname.dll.a'
15089 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15090 postinstall_cmds='base_file=`basename \${file}`~
15091 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15092 dldir=$destdir/`dirname \$dlpath`~
15093 test -d \$dldir || mkdir -p \$dldir~
15094 $install_prog $dir/$dlname \$dldir/$dlname~
15095 chmod a+x \$dldir/$dlname~
15096 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15097 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15098 fi'
15099 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15100 dlpath=$dir/\$dldll~
15101 $RM \$dlpath'
15102 shlibpath_overrides_runpath=yes
9c60689e 15103
47aaa820
DWT
15104 case $host_os in
15105 cygwin*)
15106 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15107 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
ee134472 15108
47aaa820
DWT
15109 ;;
15110 mingw* | cegcc*)
15111 # MinGW DLLs use traditional 'lib' prefix
15112 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
47aaa820
DWT
15113 ;;
15114 pw32*)
15115 # pw32 DLLs use 'pw' prefix rather than 'lib'
15116 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15117 ;;
15118 esac
ee134472
JF
15119 dynamic_linker='Win32 ld.exe'
15120 ;;
15121
15122 *,cl*)
15123 # Native MSVC
15124 libname_spec='$name'
15125 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15126 library_names_spec='${libname}.dll.lib'
15127
15128 case $build_os in
15129 mingw*)
15130 sys_lib_search_path_spec=
15131 lt_save_ifs=$IFS
15132 IFS=';'
15133 for lt_path in $LIB
15134 do
15135 IFS=$lt_save_ifs
15136 # Let DOS variable expansion print the short 8.3 style file name.
15137 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15138 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15139 done
15140 IFS=$lt_save_ifs
15141 # Convert to MSYS style.
15142 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15143 ;;
15144 cygwin*)
15145 # Convert to unix form, then to dos form, then back to unix form
15146 # but this time dos style (no spaces!) so that the unix form looks
15147 # like /cygdrive/c/PROGRA~1:/cygdr...
15148 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15149 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15150 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15151 ;;
15152 *)
15153 sys_lib_search_path_spec="$LIB"
15154 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15155 # It is most probably a Windows format PATH.
15156 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15157 else
15158 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15159 fi
15160 # FIXME: find the short name or the path components, as spaces are
15161 # common. (e.g. "Program Files" -> "PROGRA~1")
15162 ;;
15163 esac
15164
15165 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15166 postinstall_cmds='base_file=`basename \${file}`~
15167 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15168 dldir=$destdir/`dirname \$dlpath`~
15169 test -d \$dldir || mkdir -p \$dldir~
15170 $install_prog $dir/$dlname \$dldir/$dlname'
15171 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15172 dlpath=$dir/\$dldll~
15173 $RM \$dlpath'
15174 shlibpath_overrides_runpath=yes
15175 dynamic_linker='Win32 link.exe'
47aaa820 15176 ;;
9c60689e 15177
47aaa820 15178 *)
ee134472 15179 # Assume MSVC wrapper
47aaa820 15180 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
ee134472 15181 dynamic_linker='Win32 ld.exe'
47aaa820
DWT
15182 ;;
15183 esac
47aaa820
DWT
15184 # FIXME: first we should search . and the directory the executable is in
15185 shlibpath_var=PATH
15186 ;;
9c60689e 15187
47aaa820
DWT
15188darwin* | rhapsody*)
15189 dynamic_linker="$host_os dyld"
15190 version_type=darwin
15191 need_lib_prefix=no
15192 need_version=no
15193 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15194 soname_spec='${libname}${release}${major}$shared_ext'
15195 shlibpath_overrides_runpath=yes
15196 shlibpath_var=DYLD_LIBRARY_PATH
15197 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9c60689e 15198
47aaa820
DWT
15199 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15200 ;;
9c60689e 15201
47aaa820 15202dgux*)
53ba6704 15203 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15204 need_lib_prefix=no
15205 need_version=no
15206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15207 soname_spec='${libname}${release}${shared_ext}$major'
15208 shlibpath_var=LD_LIBRARY_PATH
15209 ;;
9c60689e 15210
47aaa820
DWT
15211freebsd* | dragonfly*)
15212 # DragonFly does not have aout. When/if they implement a new
15213 # versioning mechanism, adjust this.
15214 if test -x /usr/bin/objformat; then
15215 objformat=`/usr/bin/objformat`
15216 else
15217 case $host_os in
53ba6704 15218 freebsd[23].*) objformat=aout ;;
47aaa820
DWT
15219 *) objformat=elf ;;
15220 esac
15221 fi
15222 version_type=freebsd-$objformat
15223 case $version_type in
15224 freebsd-elf*)
15225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15226 need_version=no
15227 need_lib_prefix=no
15228 ;;
15229 freebsd-*)
15230 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15231 need_version=yes
15232 ;;
15233 esac
15234 shlibpath_var=LD_LIBRARY_PATH
15235 case $host_os in
53ba6704 15236 freebsd2.*)
47aaa820
DWT
15237 shlibpath_overrides_runpath=yes
15238 ;;
15239 freebsd3.[01]* | freebsdelf3.[01]*)
15240 shlibpath_overrides_runpath=yes
15241 hardcode_into_libs=yes
15242 ;;
15243 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15244 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15245 shlibpath_overrides_runpath=no
15246 hardcode_into_libs=yes
15247 ;;
15248 *) # from 4.6 on, and DragonFly
15249 shlibpath_overrides_runpath=yes
15250 hardcode_into_libs=yes
15251 ;;
15252 esac
15253 ;;
9c60689e 15254
47aaa820 15255gnu*)
53ba6704 15256 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15257 need_lib_prefix=no
15258 need_version=no
15259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15260 soname_spec='${libname}${release}${shared_ext}$major'
15261 shlibpath_var=LD_LIBRARY_PATH
ee134472
JF
15262 shlibpath_overrides_runpath=no
15263 hardcode_into_libs=yes
15264 ;;
15265
15266haiku*)
53ba6704 15267 version_type=linux # correct to gnu/linux during the next big refactor
ee134472
JF
15268 need_lib_prefix=no
15269 need_version=no
15270 dynamic_linker="$host_os runtime_loader"
15271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15272 soname_spec='${libname}${release}${shared_ext}$major'
15273 shlibpath_var=LIBRARY_PATH
15274 shlibpath_overrides_runpath=yes
15275 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
47aaa820
DWT
15276 hardcode_into_libs=yes
15277 ;;
9c60689e 15278
47aaa820
DWT
15279hpux9* | hpux10* | hpux11*)
15280 # Give a soname corresponding to the major version so that dld.sl refuses to
15281 # link against other versions.
15282 version_type=sunos
15283 need_lib_prefix=no
15284 need_version=no
15285 case $host_cpu in
15286 ia64*)
15287 shrext_cmds='.so'
15288 hardcode_into_libs=yes
15289 dynamic_linker="$host_os dld.so"
15290 shlibpath_var=LD_LIBRARY_PATH
15291 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15293 soname_spec='${libname}${release}${shared_ext}$major'
15294 if test "X$HPUX_IA64_MODE" = X32; then
15295 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15296 else
15297 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15298 fi
15299 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15300 ;;
15301 hppa*64*)
15302 shrext_cmds='.sl'
15303 hardcode_into_libs=yes
15304 dynamic_linker="$host_os dld.sl"
15305 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15306 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15308 soname_spec='${libname}${release}${shared_ext}$major'
15309 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15310 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15311 ;;
15312 *)
15313 shrext_cmds='.sl'
15314 dynamic_linker="$host_os dld.sl"
15315 shlibpath_var=SHLIB_PATH
15316 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15318 soname_spec='${libname}${release}${shared_ext}$major'
15319 ;;
15320 esac
ee134472 15321 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
47aaa820 15322 postinstall_cmds='chmod 555 $lib'
ee134472
JF
15323 # or fails outright, so override atomically:
15324 install_override_mode=555
47aaa820 15325 ;;
9c60689e 15326
47aaa820 15327interix[3-9]*)
53ba6704 15328 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15329 need_lib_prefix=no
15330 need_version=no
15331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15332 soname_spec='${libname}${release}${shared_ext}$major'
15333 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15334 shlibpath_var=LD_LIBRARY_PATH
15335 shlibpath_overrides_runpath=no
15336 hardcode_into_libs=yes
15337 ;;
9c60689e 15338
47aaa820
DWT
15339irix5* | irix6* | nonstopux*)
15340 case $host_os in
15341 nonstopux*) version_type=nonstopux ;;
15342 *)
15343 if test "$lt_cv_prog_gnu_ld" = yes; then
53ba6704 15344 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15345 else
15346 version_type=irix
15347 fi ;;
15348 esac
15349 need_lib_prefix=no
15350 need_version=no
15351 soname_spec='${libname}${release}${shared_ext}$major'
15352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15353 case $host_os in
15354 irix5* | nonstopux*)
15355 libsuff= shlibsuff=
15356 ;;
15357 *)
15358 case $LD in # libtool.m4 will add one of these switches to LD
15359 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15360 libsuff= shlibsuff= libmagic=32-bit;;
15361 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15362 libsuff=32 shlibsuff=N32 libmagic=N32;;
15363 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15364 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15365 *) libsuff= shlibsuff= libmagic=never-match;;
15366 esac
15367 ;;
15368 esac
15369 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15370 shlibpath_overrides_runpath=no
15371 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15372 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15373 hardcode_into_libs=yes
15374 ;;
9c60689e 15375
47aaa820
DWT
15376# No shared lib support for Linux oldld, aout, or coff.
15377linux*oldld* | linux*aout* | linux*coff*)
15378 dynamic_linker=no
15379 ;;
9c60689e 15380
53ba6704 15381# This must be glibc/ELF.
1504c9b8 15382linux* | k*bsd*-gnu | kopensolaris*-gnu)
53ba6704 15383 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15384 need_lib_prefix=no
15385 need_version=no
15386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15387 soname_spec='${libname}${release}${shared_ext}$major'
15388 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15389 shlibpath_var=LD_LIBRARY_PATH
15390 shlibpath_overrides_runpath=no
ee134472 15391
47aaa820 15392 # Some binutils ld are patched to set DT_RUNPATH
ee134472
JF
15393 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15394 $as_echo_n "(cached) " >&6
15395else
15396 lt_cv_shlibpath_overrides_runpath=no
15397 save_LDFLAGS=$LDFLAGS
15398 save_libdir=$libdir
15399 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15400 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47aaa820 15402/* end confdefs.h. */
9c60689e 15403
47aaa820
DWT
15404int
15405main ()
15406{
9c60689e 15407
47aaa820
DWT
15408 ;
15409 return 0;
15410}
15411_ACEOF
15412if ac_fn_cxx_try_link "$LINENO"; then :
15413 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
ee134472 15414 lt_cv_shlibpath_overrides_runpath=yes
9c60689e 15415fi
47aaa820
DWT
15416fi
15417rm -f core conftest.err conftest.$ac_objext \
15418 conftest$ac_exeext conftest.$ac_ext
ee134472
JF
15419 LDFLAGS=$save_LDFLAGS
15420 libdir=$save_libdir
15421
15422fi
15423
15424 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
9c60689e 15425
47aaa820
DWT
15426 # This implies no fast_install, which is unacceptable.
15427 # Some rework will be needed to allow for fast_install
15428 # before this can be enabled.
15429 hardcode_into_libs=yes
9c60689e 15430
47aaa820
DWT
15431 # Append ld.so.conf contents to the search path
15432 if test -f /etc/ld.so.conf; then
ee134472 15433 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
15434 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15435 fi
9c60689e 15436
47aaa820
DWT
15437 # We used to test for /lib/ld.so.1 and disable shared libraries on
15438 # powerpc, because MkLinux only supported shared libraries with the
15439 # GNU dynamic linker. Since this was broken with cross compilers,
15440 # most powerpc-linux boxes support dynamic linking these days and
15441 # people can always --disable-shared, the test was removed, and we
15442 # assume the GNU/Linux dynamic linker is in use.
15443 dynamic_linker='GNU/Linux ld.so'
9c60689e 15444 ;;
47aaa820 15445
47aaa820
DWT
15446netbsd*)
15447 version_type=sunos
15448 need_lib_prefix=no
15449 need_version=no
15450 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15452 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15453 dynamic_linker='NetBSD (a.out) ld.so'
15454 else
15455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15456 soname_spec='${libname}${release}${shared_ext}$major'
15457 dynamic_linker='NetBSD ld.elf_so'
15458 fi
15459 shlibpath_var=LD_LIBRARY_PATH
15460 shlibpath_overrides_runpath=yes
15461 hardcode_into_libs=yes
9c60689e 15462 ;;
9c60689e 15463
47aaa820 15464newsos6)
53ba6704 15465 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15467 shlibpath_var=LD_LIBRARY_PATH
15468 shlibpath_overrides_runpath=yes
15469 ;;
9c60689e 15470
47aaa820
DWT
15471*nto* | *qnx*)
15472 version_type=qnx
15473 need_lib_prefix=no
15474 need_version=no
15475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15476 soname_spec='${libname}${release}${shared_ext}$major'
15477 shlibpath_var=LD_LIBRARY_PATH
15478 shlibpath_overrides_runpath=no
15479 hardcode_into_libs=yes
15480 dynamic_linker='ldqnx.so'
15481 ;;
9c60689e 15482
47aaa820
DWT
15483openbsd*)
15484 version_type=sunos
15485 sys_lib_dlsearch_path_spec="/usr/lib"
15486 need_lib_prefix=no
15487 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15488 case $host_os in
15489 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15490 *) need_version=no ;;
15491 esac
15492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15493 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15494 shlibpath_var=LD_LIBRARY_PATH
15495 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15496 case $host_os in
15497 openbsd2.[89] | openbsd2.[89].*)
15498 shlibpath_overrides_runpath=no
15499 ;;
15500 *)
15501 shlibpath_overrides_runpath=yes
15502 ;;
15503 esac
15504 else
15505 shlibpath_overrides_runpath=yes
15506 fi
15507 ;;
9c60689e 15508
47aaa820
DWT
15509os2*)
15510 libname_spec='$name'
15511 shrext_cmds=".dll"
15512 need_lib_prefix=no
15513 library_names_spec='$libname${shared_ext} $libname.a'
15514 dynamic_linker='OS/2 ld.exe'
15515 shlibpath_var=LIBPATH
15516 ;;
9c60689e 15517
47aaa820
DWT
15518osf3* | osf4* | osf5*)
15519 version_type=osf
15520 need_lib_prefix=no
15521 need_version=no
15522 soname_spec='${libname}${release}${shared_ext}$major'
15523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15524 shlibpath_var=LD_LIBRARY_PATH
15525 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15526 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15527 ;;
9c60689e 15528
47aaa820
DWT
15529rdos*)
15530 dynamic_linker=no
15531 ;;
9c60689e 15532
47aaa820 15533solaris*)
53ba6704 15534 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15535 need_lib_prefix=no
15536 need_version=no
15537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15538 soname_spec='${libname}${release}${shared_ext}$major'
15539 shlibpath_var=LD_LIBRARY_PATH
15540 shlibpath_overrides_runpath=yes
15541 hardcode_into_libs=yes
15542 # ldd complains unless libraries are executable
15543 postinstall_cmds='chmod +x $lib'
15544 ;;
9c60689e 15545
47aaa820
DWT
15546sunos4*)
15547 version_type=sunos
15548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15549 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15550 shlibpath_var=LD_LIBRARY_PATH
15551 shlibpath_overrides_runpath=yes
15552 if test "$with_gnu_ld" = yes; then
15553 need_lib_prefix=no
15554 fi
15555 need_version=yes
15556 ;;
9c60689e 15557
47aaa820 15558sysv4 | sysv4.3*)
53ba6704 15559 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15561 soname_spec='${libname}${release}${shared_ext}$major'
15562 shlibpath_var=LD_LIBRARY_PATH
15563 case $host_vendor in
15564 sni)
15565 shlibpath_overrides_runpath=no
15566 need_lib_prefix=no
15567 runpath_var=LD_RUN_PATH
9c60689e 15568 ;;
47aaa820
DWT
15569 siemens)
15570 need_lib_prefix=no
9c60689e 15571 ;;
47aaa820
DWT
15572 motorola)
15573 need_lib_prefix=no
15574 need_version=no
15575 shlibpath_overrides_runpath=no
15576 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15577 ;;
15578 esac
9c60689e 15579 ;;
9c60689e 15580
47aaa820
DWT
15581sysv4*MP*)
15582 if test -d /usr/nec ;then
53ba6704 15583 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15584 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15585 soname_spec='$libname${shared_ext}.$major'
15586 shlibpath_var=LD_LIBRARY_PATH
15587 fi
15588 ;;
9c60689e 15589
47aaa820
DWT
15590sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15591 version_type=freebsd-elf
15592 need_lib_prefix=no
15593 need_version=no
15594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15595 soname_spec='${libname}${release}${shared_ext}$major'
15596 shlibpath_var=LD_LIBRARY_PATH
15597 shlibpath_overrides_runpath=yes
15598 hardcode_into_libs=yes
15599 if test "$with_gnu_ld" = yes; then
15600 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15601 else
15602 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15603 case $host_os in
15604 sco3.2v5*)
15605 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15606 ;;
15607 esac
15608 fi
15609 sys_lib_dlsearch_path_spec='/usr/lib'
15610 ;;
9c60689e 15611
47aaa820
DWT
15612tpf*)
15613 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
53ba6704 15614 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15615 need_lib_prefix=no
15616 need_version=no
15617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15618 shlibpath_var=LD_LIBRARY_PATH
15619 shlibpath_overrides_runpath=no
15620 hardcode_into_libs=yes
15621 ;;
9c60689e 15622
47aaa820 15623uts4*)
53ba6704 15624 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15626 soname_spec='${libname}${release}${shared_ext}$major'
15627 shlibpath_var=LD_LIBRARY_PATH
15628 ;;
9c60689e 15629
47aaa820
DWT
15630*)
15631 dynamic_linker=no
e9c9a47c
DWT
15632 ;;
15633esac
15634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15635$as_echo "$dynamic_linker" >&6; }
15636test "$dynamic_linker" = no && can_build_shared=no
15637
15638variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15639if test "$GCC" = yes; then
15640 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
47aaa820 15641fi
9c60689e 15642
e9c9a47c
DWT
15643if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15644 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
47aaa820 15645fi
e9c9a47c
DWT
15646if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15647 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
47aaa820 15648fi
9c60689e 15649
9c60689e 15650
9c60689e 15651
9c60689e 15652
47aaa820 15653
47aaa820 15654
47aaa820 15655
9c60689e 15656
9c60689e 15657
47aaa820 15658
47aaa820 15659
47aaa820 15660
47aaa820 15661
47aaa820 15662
47aaa820 15663
47aaa820 15664
47aaa820 15665
9c60689e 15666
9c60689e 15667
9c60689e 15668
9c60689e 15669
9c60689e 15670
e9c9a47c
DWT
15671
15672
15673
15674
15675
15676
15677
15678
15679
15680
15681
ee134472
JF
15682
15683
e9c9a47c
DWT
15684
15685
15686
15687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15688$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15689hardcode_action_CXX=
15690if test -n "$hardcode_libdir_flag_spec_CXX" ||
15691 test -n "$runpath_var_CXX" ||
15692 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15693
15694 # We can hardcode non-existent directories.
15695 if test "$hardcode_direct_CXX" != no &&
15696 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15697 # have to relink, otherwise we might link with an installed library
15698 # when we should be linking with a yet-to-be-installed one
15699 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15700 test "$hardcode_minus_L_CXX" != no; then
15701 # Linking always hardcodes the temporary library directory.
15702 hardcode_action_CXX=relink
15703 else
15704 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15705 hardcode_action_CXX=immediate
15706 fi
15707else
15708 # We cannot hardcode anything, or else we can only hardcode existing
15709 # directories.
15710 hardcode_action_CXX=unsupported
15711fi
15712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15713$as_echo "$hardcode_action_CXX" >&6; }
15714
15715if test "$hardcode_action_CXX" = relink ||
15716 test "$inherit_rpath_CXX" = yes; then
15717 # Fast installation is not supported
15718 enable_fast_install=no
15719elif test "$shlibpath_overrides_runpath" = yes ||
15720 test "$enable_shared" = no; then
15721 # Fast installation is not necessary
15722 enable_fast_install=needless
47aaa820 15723fi
9c60689e 15724
47aaa820 15725
47aaa820 15726
e9c9a47c
DWT
15727
15728
15729
15730
a243b558
JF
15731 fi # test -n "$compiler"
15732
15733 CC=$lt_save_CC
15734 CFLAGS=$lt_save_CFLAGS
15735 LDCXX=$LD
15736 LD=$lt_save_LD
15737 GCC=$lt_save_GCC
15738 with_gnu_ld=$lt_save_with_gnu_ld
15739 lt_cv_path_LDCXX=$lt_cv_path_LD
15740 lt_cv_path_LD=$lt_save_path_LD
15741 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15742 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15743fi # test "$_lt_caught_CXX_error" != yes
15744
15745ac_ext=c
15746ac_cpp='$CPP $CPPFLAGS'
15747ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15748ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15749ac_compiler_gnu=$ac_cv_c_compiler_gnu
15750
15751
15752
15753
15754
15755
15756
15757
15758
15759
15760
15761
15762
15763
15764
15765 ac_config_commands="$ac_config_commands libtool"
15766
15767
15768
15769
15770# Only expand once:
15771
15772
15773
15774ac_ext=cpp
15775ac_cpp='$CXXCPP $CPPFLAGS'
15776ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15777ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15778ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15779
15780
15781
15782
15783
15784
15785
15786
15787if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
15788 if test -n "$ac_tool_prefix"; then
15789 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
15790set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
15791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15792$as_echo_n "checking for $ac_word... " >&6; }
15793if ${ac_cv_path_PKG_CONFIG+:} false; then :
15794 $as_echo_n "(cached) " >&6
15795else
15796 case $PKG_CONFIG in
15797 [\\/]* | ?:[\\/]*)
15798 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
15799 ;;
15800 *)
15801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15802for as_dir in $PATH
15803do
15804 IFS=$as_save_IFS
15805 test -z "$as_dir" && as_dir=.
15806 for ac_exec_ext in '' $ac_executable_extensions; do
15807 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15808 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15810 break 2
15811 fi
15812done
15813 done
15814IFS=$as_save_IFS
15815
15816 ;;
15817esac
15818fi
15819PKG_CONFIG=$ac_cv_path_PKG_CONFIG
15820if test -n "$PKG_CONFIG"; then
15821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
15822$as_echo "$PKG_CONFIG" >&6; }
15823else
15824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15825$as_echo "no" >&6; }
15826fi
15827
15828
15829fi
15830if test -z "$ac_cv_path_PKG_CONFIG"; then
15831 ac_pt_PKG_CONFIG=$PKG_CONFIG
15832 # Extract the first word of "pkg-config", so it can be a program name with args.
15833set dummy pkg-config; ac_word=$2
15834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15835$as_echo_n "checking for $ac_word... " >&6; }
15836if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
15837 $as_echo_n "(cached) " >&6
15838else
15839 case $ac_pt_PKG_CONFIG in
15840 [\\/]* | ?:[\\/]*)
15841 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
15842 ;;
15843 *)
15844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15845for as_dir in $PATH
15846do
15847 IFS=$as_save_IFS
15848 test -z "$as_dir" && as_dir=.
15849 for ac_exec_ext in '' $ac_executable_extensions; do
15850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15851 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15853 break 2
15854 fi
15855done
15856 done
15857IFS=$as_save_IFS
15858
15859 ;;
15860esac
15861fi
15862ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
15863if test -n "$ac_pt_PKG_CONFIG"; then
15864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
15865$as_echo "$ac_pt_PKG_CONFIG" >&6; }
15866else
15867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15868$as_echo "no" >&6; }
15869fi
15870
15871 if test "x$ac_pt_PKG_CONFIG" = x; then
15872 PKG_CONFIG=""
15873 else
15874 case $cross_compiling:$ac_tool_warned in
15875yes:)
15876{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15877$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15878ac_tool_warned=yes ;;
15879esac
15880 PKG_CONFIG=$ac_pt_PKG_CONFIG
15881 fi
15882else
15883 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
15884fi
15885
15886fi
15887if test -n "$PKG_CONFIG"; then
15888 _pkg_min_version=0.22
15889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
15890$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
15891 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
15892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15893$as_echo "yes" >&6; }
15894 else
15895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15896$as_echo "no" >&6; }
15897 PKG_CONFIG=""
15898 fi
15899fi
15900
a243b558
JF
15901# Extract the first word of "bash", so it can be a program name with args.
15902set dummy bash; ac_word=$2
15903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15904$as_echo_n "checking for $ac_word... " >&6; }
15905if ${ac_cv_path__BASH+:} false; then :
15906 $as_echo_n "(cached) " >&6
15907else
15908 case $_BASH in
15909 [\\/]* | ?:[\\/]*)
15910 ac_cv_path__BASH="$_BASH" # Let the user override the test with a path.
15911 ;;
15912 *)
15913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15914for as_dir in $PATH
15915do
15916 IFS=$as_save_IFS
15917 test -z "$as_dir" && as_dir=.
15918 for ac_exec_ext in '' $ac_executable_extensions; do
15919 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15920 ac_cv_path__BASH="$as_dir/$ac_word$ac_exec_ext"
15921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15922 break 2
15923 fi
15924done
15925 done
15926IFS=$as_save_IFS
15927
15928 test -z "$ac_cv_path__BASH" && ac_cv_path__BASH="as_fn_error $? "missing \"bash\"" "$LINENO" 5"
15929 ;;
15930esac
15931fi
15932_BASH=$ac_cv_path__BASH
15933if test -n "$_BASH"; then
15934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_BASH" >&5
15935$as_echo "$_BASH" >&6; }
15936else
15937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15938$as_echo "no" >&6; }
15939fi
15940
e9c9a47c 15941
a243b558
JF
15942# Extract the first word of "git", so it can be a program name with args.
15943set dummy git; ac_word=$2
15944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15945$as_echo_n "checking for $ac_word... " >&6; }
15946if ${ac_cv_path_GIT+:} false; then :
15947 $as_echo_n "(cached) " >&6
15948else
15949 case $GIT in
15950 [\\/]* | ?:[\\/]*)
15951 ac_cv_path_GIT="$GIT" # Let the user override the test with a path.
15952 ;;
15953 *)
15954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15955for as_dir in $PATH
15956do
15957 IFS=$as_save_IFS
15958 test -z "$as_dir" && as_dir=.
15959 for ac_exec_ext in '' $ac_executable_extensions; do
15960 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15961 ac_cv_path_GIT="$as_dir/$ac_word$ac_exec_ext"
15962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15963 break 2
15964 fi
15965done
15966 done
15967IFS=$as_save_IFS
e9c9a47c 15968
a243b558
JF
15969 ;;
15970esac
15971fi
15972GIT=$ac_cv_path_GIT
15973if test -n "$GIT"; then
15974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
15975$as_echo "$GIT" >&6; }
15976else
15977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15978$as_echo "no" >&6; }
15979fi
e9c9a47c
DWT
15980
15981
a243b558
JF
15982# Extract the first word of "time", so it can be a program name with args.
15983set dummy time; ac_word=$2
632b71ea
DWT
15984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15985$as_echo_n "checking for $ac_word... " >&6; }
a243b558 15986if ${ac_cv_path_TIME+:} false; then :
632b71ea
DWT
15987 $as_echo_n "(cached) " >&6
15988else
a243b558
JF
15989 case $TIME in
15990 [\\/]* | ?:[\\/]*)
15991 ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
15992 ;;
15993 *)
15994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
632b71ea
DWT
15995for as_dir in $PATH
15996do
15997 IFS=$as_save_IFS
15998 test -z "$as_dir" && as_dir=.
15999 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 16000 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 16001 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
632b71ea
DWT
16002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16003 break 2
16004 fi
16005done
16006 done
16007IFS=$as_save_IFS
16008
a243b558
JF
16009 ;;
16010esac
632b71ea 16011fi
a243b558
JF
16012TIME=$ac_cv_path_TIME
16013if test -n "$TIME"; then
16014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
16015$as_echo "$TIME" >&6; }
632b71ea
DWT
16016else
16017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16018$as_echo "no" >&6; }
16019fi
16020
16021
a243b558
JF
16022
16023
16024
16025
16026
16027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bison >= 2.3" >&5
16028$as_echo_n "checking for bison >= 2.3... " >&6; }
16029 if test -z "$BISON"; then
16030 ac_path_BISON_found=false
16031 # Loop through the user's path and test for each of PROGNAME-LIST
16032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16033for as_dir in $PATH
16034do
16035 IFS=$as_save_IFS
16036 test -z "$as_dir" && as_dir=.
16037 for ac_prog in bison; do
16038 for ac_exec_ext in '' $ac_executable_extensions; do
16039 ac_path_BISON="$as_dir/$ac_prog$ac_exec_ext"
16040 as_fn_executable_p "$ac_path_BISON" || continue
16041version=`$ac_path_BISON -V | $SED -e '1 s/^bison (GNU Bison) \(.*\)$/\1/p;d'`
16042 if ${version:+false} :; then :
16043
16044else
16045 as_awk_strverscmp='
16046 # Use only awk features that work with 7th edition Unix awk (1978).
16047 # My, what an old awk you have, Mr. Solaris!
16048 END {
16049 while (length(v1) && length(v2)) {
16050 # Set d1 to be the next thing to compare from v1, and likewise for d2.
16051 # Normally this is a single character, but if v1 and v2 contain digits,
16052 # compare them as integers and fractions as strverscmp does.
16053 if (v1 ~ /^0-9/ && v2 ~ /^0-9/) {
16054 # Split v1 and v2 into their leading digit string components d1 and d2,
16055 # and advance v1 and v2 past the leading digit strings.
16056 for (len1 = 1; substr(v1, len1 + 1) ~ /^0-9/; len1++) continue
16057 for (len2 = 1; substr(v2, len2 + 1) ~ /^0-9/; len2++) continue
16058 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
16059 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
16060 if (d1 ~ /^0/) {
16061 if (d2 ~ /^0/) {
16062 # Compare two fractions.
16063 while (d1 ~ /^0/ && d2 ~ /^0/) {
16064 d1 = substr(d1, 2); len1--
16065 d2 = substr(d2, 2); len2--
16066 }
16067 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
16068 # The two components differ in length, and the common prefix
16069 # contains only leading zeros. Consider the longer to be less.
16070 d1 = -len1
16071 d2 = -len2
16072 } else {
16073 # Otherwise, compare as strings.
16074 d1 = "x" d1
16075 d2 = "x" d2
16076 }
16077 } else {
16078 # A fraction is less than an integer.
16079 exit 1
16080 }
16081 } else {
16082 if (d2 ~ /^0/) {
16083 # An integer is greater than a fraction.
16084 exit 2
16085 } else {
16086 # Compare two integers.
16087 d1 += 0
16088 d2 += 0
16089 }
16090 }
16091 } else {
16092 # The normal case, without worrying about digits.
16093 d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
16094 d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
16095 }
16096 if (d1 < d2) exit 1
16097 if (d1 > d2) exit 2
16098 }
16099 # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
16100 # which mishandles some comparisons of empty strings to integers.
16101 if (length(v2)) exit 1
16102 if (length(v1)) exit 2
16103 }
16104'
16105as_arg_v1=$version
16106as_arg_v2=2.3
16107awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
16108case $? in #(
16109 1) :
16110 ;; #(
16111 0) :
16112 ac_cv_path_BISON=$ac_path_BISON ;; #(
16113 2) :
16114 ac_cv_path_BISON=$ac_path_BISON ;; #(
16115 *) :
16116 ;;
16117esac
16118fi
16119
16120 $ac_path_BISON_found && break 3
16121 done
16122 done
e9c9a47c 16123 done
a243b558
JF
16124IFS=$as_save_IFS
16125 if test -z "$ac_cv_path_BISON"; then
16126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16127$as_echo "no" >&6; }
16128 fi
16129else
16130 ac_cv_path_BISON=$BISON
632b71ea 16131fi
a243b558
JF
16132
16133
16134 if true; then :
16135
16136 BISON=$ac_cv_path_BISON
16137
16138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
16139$as_echo "$BISON" >&6; }
16140
47aaa820 16141else
a243b558
JF
16142 if true; then :
16143
16144 as_fn_error $? "You need bison 2.3 or greater" "$LINENO" 5
16145
47aaa820 16146else
a243b558
JF
16147
16148 BISON=:
16149
16150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16151$as_echo "no" >&6; }
16152
16153fi
16154fi
16155
16156
16157
16158
16159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flex >= 2.5.33" >&5
16160$as_echo_n "checking for flex >= 2.5.33... " >&6; }
16161 if test -z "$FLEX"; then
16162 ac_path_FLEX_found=false
16163 # Loop through the user's path and test for each of PROGNAME-LIST
16164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47aaa820
DWT
16165for as_dir in $PATH
16166do
16167 IFS=$as_save_IFS
16168 test -z "$as_dir" && as_dir=.
a243b558 16169 for ac_prog in flex; do
47aaa820 16170 for ac_exec_ext in '' $ac_executable_extensions; do
a243b558
JF
16171 ac_path_FLEX="$as_dir/$ac_prog$ac_exec_ext"
16172 as_fn_executable_p "$ac_path_FLEX" || continue
16173version=`$ac_path_FLEX --version | $SED -e '1 s/^[^0-9.]* \([0-9.]*\).*$/\1/p;d'`
16174 if ${version:+false} :; then :
9c60689e 16175
47aaa820 16176else
a243b558
JF
16177 as_arg_v1=$version
16178as_arg_v2=2.5.33
16179awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
16180case $? in #(
16181 1) :
16182 ;; #(
16183 0) :
16184 ac_cv_path_FLEX=$ac_path_FLEX ;; #(
16185 2) :
16186 ac_cv_path_FLEX=$ac_path_FLEX ;; #(
16187 *) :
16188 ;;
16189esac
16190fi
16191
16192 $ac_path_FLEX_found && break 3
16193 done
16194 done
16195 done
16196IFS=$as_save_IFS
16197 if test -z "$ac_cv_path_FLEX"; then
16198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47aaa820 16199$as_echo "no" >&6; }
a243b558
JF
16200 fi
16201else
16202 ac_cv_path_FLEX=$FLEX
9c60689e
DWT
16203fi
16204
16205
a243b558 16206 if true; then :
e9c9a47c 16207
a243b558 16208 FLEX=$ac_cv_path_FLEX
e9c9a47c 16209
a243b558
JF
16210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
16211$as_echo "$FLEX" >&6; }
9c60689e 16212
632b71ea 16213else
a243b558 16214 if true; then :
e9c9a47c 16215
a243b558 16216 as_fn_error $? "You need flex 2.5.33 or greater" "$LINENO" 5
e9c9a47c 16217
e9c9a47c 16218else
a243b558
JF
16219
16220 FLEX=:
16221
16222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16223$as_echo "no" >&6; }
9c60689e 16224
632b71ea 16225fi
a243b558
JF
16226fi
16227
16228
16229
16230
16231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gperf >= 3.0.3" >&5
16232$as_echo_n "checking for gperf >= 3.0.3... " >&6; }
16233 if test -z "$GPERF"; then
16234 ac_path_GPERF_found=false
16235 # Loop through the user's path and test for each of PROGNAME-LIST
16236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16237for as_dir in $PATH
16238do
16239 IFS=$as_save_IFS
16240 test -z "$as_dir" && as_dir=.
16241 for ac_prog in gperf; do
16242 for ac_exec_ext in '' $ac_executable_extensions; do
16243 ac_path_GPERF="$as_dir/$ac_prog$ac_exec_ext"
16244 as_fn_executable_p "$ac_path_GPERF" || continue
16245version=`$ac_path_GPERF --version | $SED -e '1 s/^.* \([0-9.]*\)$/\1/p;d'`
16246 if ${version:+false} :; then :
16247
e9c9a47c 16248else
a243b558
JF
16249 as_arg_v1=$version
16250as_arg_v2=3.0.3
16251awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
16252case $? in #(
16253 1) :
16254 ;; #(
16255 0) :
16256 ac_cv_path_GPERF=$ac_path_GPERF ;; #(
16257 2) :
16258 ac_cv_path_GPERF=$ac_path_GPERF ;; #(
16259 *) :
16260 ;;
16261esac
632b71ea 16262fi
a243b558
JF
16263
16264 $ac_path_GPERF_found && break 3
16265 done
16266 done
16267 done
16268IFS=$as_save_IFS
16269 if test -z "$ac_cv_path_GPERF"; then
16270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16271$as_echo "no" >&6; }
16272 fi
47aaa820 16273else
a243b558
JF
16274 ac_cv_path_GPERF=$GPERF
16275fi
9c60689e
DWT
16276
16277
a243b558 16278 if true; then :
9c60689e 16279
a243b558 16280 GPERF=$ac_cv_path_GPERF
9c60689e 16281
a243b558
JF
16282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPERF" >&5
16283$as_echo "$GPERF" >&6; }
9c60689e 16284
47aaa820 16285else
a243b558 16286 if true; then :
9c60689e 16287
a243b558
JF
16288 as_fn_error $? "You need gperf 3.0.3 or greater" "$LINENO" 5
16289
16290else
16291
16292 GPERF=:
16293
16294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16295$as_echo "no" >&6; }
9c60689e 16296
47aaa820 16297fi
47aaa820 16298fi
a243b558
JF
16299
16300
16301
16302
16303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tar gtar gnutar >= 1.19" >&5
16304$as_echo_n "checking for tar gtar gnutar >= 1.19... " >&6; }
16305 if test -z "$GNUTAR"; then
16306 ac_path_GNUTAR_found=false
16307 # Loop through the user's path and test for each of PROGNAME-LIST
16308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16309for as_dir in $PATH
16310do
16311 IFS=$as_save_IFS
16312 test -z "$as_dir" && as_dir=.
16313 for ac_prog in tar gtar gnutar; do
16314 for ac_exec_ext in '' $ac_executable_extensions; do
16315 ac_path_GNUTAR="$as_dir/$ac_prog$ac_exec_ext"
16316 as_fn_executable_p "$ac_path_GNUTAR" || continue
16317version=`$ac_path_GNUTAR --version | $SED -e '1 s/^tar (GNU tar) \(.*\)$/\1/p;d'`
16318 if ${version:+false} :; then :
16319
16320else
16321 as_arg_v1=$version
16322as_arg_v2=1.19
16323awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
16324case $? in #(
16325 1) :
16326 ;; #(
16327 0) :
16328 ac_cv_path_GNUTAR=$ac_path_GNUTAR ;; #(
16329 2) :
16330 ac_cv_path_GNUTAR=$ac_path_GNUTAR ;; #(
16331 *) :
16332 ;;
16333esac
790e5246 16334fi
a243b558
JF
16335
16336 $ac_path_GNUTAR_found && break 3
16337 done
16338 done
16339 done
16340IFS=$as_save_IFS
16341 if test -z "$ac_cv_path_GNUTAR"; then
16342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16343$as_echo "no" >&6; }
632b71ea 16344 fi
632b71ea 16345else
a243b558 16346 ac_cv_path_GNUTAR=$GNUTAR
632b71ea 16347fi
66170b30 16348
66170b30 16349
a243b558 16350 if true; then :
66170b30 16351
a243b558 16352 GNUTAR=$ac_cv_path_GNUTAR
66170b30 16353
a243b558
JF
16354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUTAR" >&5
16355$as_echo "$GNUTAR" >&6; }
66170b30 16356
a243b558
JF
16357else
16358 if true; then :
66170b30 16359
a243b558 16360 as_fn_error $? "You need tar gtar gnutar 1.19 or greater" "$LINENO" 5
66170b30 16361
66170b30 16362else
66170b30 16363
a243b558 16364 GNUTAR=:
66170b30 16365
a243b558
JF
16366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16367$as_echo "no" >&6; }
66170b30 16368
a243b558
JF
16369fi
16370fi
66170b30
JF
16371
16372
9228a43a
JF
16373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking bison for %code{}" >&5
16374$as_echo_n "checking bison for %code{}... " >&6; }
16375echo '%code{}%%_:' >conftest.y
16376if $BISON conftest.y -o/dev/null 2>/dev/null; then
16377
16378 for element in Bison24; do
16379 haveit=
16380 for x in $CY_FILTERS; do
16381
16382 acl_save_prefix="$prefix"
16383 prefix="$acl_final_prefix"
16384 acl_save_exec_prefix="$exec_prefix"
16385 exec_prefix="$acl_final_exec_prefix"
16386 eval x=\"$x\"
16387 exec_prefix="$acl_save_exec_prefix"
16388 prefix="$acl_save_prefix"
16389
16390 if test "X$x" = "X$element"; then
16391 haveit=yes
16392 break
16393 fi
16394 done
16395 if test -z "$haveit"; then
16396 CY_FILTERS="${CY_FILTERS}${CY_FILTERS:+ }$element"
16397 fi
16398 done
16399
16400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16401$as_echo "yes" >&6; }
16402else
16403
16404 for element in Bison23; do
16405 haveit=
16406 for x in $CY_FILTERS; do
16407
16408 acl_save_prefix="$prefix"
16409 prefix="$acl_final_prefix"
16410 acl_save_exec_prefix="$exec_prefix"
16411 exec_prefix="$acl_final_exec_prefix"
16412 eval x=\"$x\"
16413 exec_prefix="$acl_save_exec_prefix"
16414 prefix="$acl_save_prefix"
16415
16416 if test "X$x" = "X$element"; then
16417 haveit=yes
16418 break
16419 fi
16420 done
16421 if test -z "$haveit"; then
16422 CY_FILTERS="${CY_FILTERS}${CY_FILTERS:+ }$element"
16423 fi
16424 done
16425
16426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16427$as_echo "no" >&6; }
16428fi
16429
16430rm -f conftest.y
16431
16432
66170b30
JF
16433
16434
16435
16436
16437
16438
16439
16440
16441if ${CFLAGS+:} false; then :
16442 case " $CFLAGS " in
16443 *" "*)
16444 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains "; } >&5
16445 (: CFLAGS already contains ) 2>&5
16446 ac_status=$?
16447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16448 test $ac_status = 0; }
16449 ;;
16450 *)
16451 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \""; } >&5
16452 (: CFLAGS="$CFLAGS ") 2>&5
16453 ac_status=$?
16454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16455 test $ac_status = 0; }
16456 CFLAGS="$CFLAGS "
16457 ;;
16458 esac
16459else
16460 CFLAGS=""
16461fi
16462
e9c9a47c
DWT
16463ac_ext=c
16464ac_cpp='$CPP $CPPFLAGS'
16465ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16466ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16467ac_compiler_gnu=$ac_cv_c_compiler_gnu
632b71ea 16468
66170b30
JF
16469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
16470$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
16471if ${ac_cv_cflags_warn_all+:} false; then :
16472 $as_echo_n "(cached) " >&6
16473else
16474 ac_cv_cflags_warn_all="no, unknown"
16475ac_save_CFLAGS="$CFLAGS"
16476for 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" #
16477do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
16478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16479/* end confdefs.h. */
16480
16481int
16482main ()
16483{
16484
16485 ;
16486 return 0;
16487}
16488_ACEOF
16489if ac_fn_c_try_compile "$LINENO"; then :
16490 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
16491fi
16492rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16493done
16494CFLAGS="$ac_save_CFLAGS"
16495
16496fi
16497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
16498$as_echo "$ac_cv_cflags_warn_all" >&6; }
16499
16500case ".$ac_cv_cflags_warn_all" in
16501 .ok|.ok,*) ;;
16502 .|.no|.no,*) ;;
16503 *) if ${CFLAGS+:} false; then :
16504 case " $CFLAGS " in
16505 *" $ac_cv_cflags_warn_all "*)
16506 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5
16507 (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5
16508 ac_status=$?
16509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16510 test $ac_status = 0; }
16511 ;;
16512 *)
16513 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
16514 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
16515 ac_status=$?
16516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16517 test $ac_status = 0; }
16518 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
16519 ;;
16520 esac
16521else
16522 CFLAGS="$ac_cv_cflags_warn_all"
16523fi
16524 ;;
16525esac
16526
b816329d
JF
16527ac_ext=cpp
16528ac_cpp='$CXXCPP $CPPFLAGS'
16529ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16530ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16531ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16532
9c60689e 16533
66170b30
JF
16534ac_ext=cpp
16535ac_cpp='$CXXCPP $CPPFLAGS'
16536ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16537ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16538ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1504c9b8 16539
66170b30
JF
16540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for maximum warnings" >&5
16541$as_echo_n "checking CXXFLAGS for maximum warnings... " >&6; }
16542if ${ac_cv_cxxflags_warn_all+:} false; then :
16543 $as_echo_n "(cached) " >&6
16544else
16545 ac_cv_cxxflags_warn_all="no, unknown"
16546ac_save_CXXFLAGS="$CXXFLAGS"
16547for 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" #
16548do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
16549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16550/* end confdefs.h. */
1504c9b8 16551
66170b30
JF
16552int
16553main ()
16554{
1504c9b8 16555
66170b30
JF
16556 ;
16557 return 0;
16558}
16559_ACEOF
16560if ac_fn_cxx_try_compile "$LINENO"; then :
16561 ac_cv_cxxflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
16562fi
16563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16564done
16565CXXFLAGS="$ac_save_CXXFLAGS"
1504c9b8 16566
66170b30
JF
16567fi
16568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxxflags_warn_all" >&5
16569$as_echo "$ac_cv_cxxflags_warn_all" >&6; }
16570
16571case ".$ac_cv_cxxflags_warn_all" in
16572 .ok|.ok,*) ;;
16573 .|.no|.no,*) ;;
16574 *) if ${CXXFLAGS+:} false; then :
16575 case " $CXXFLAGS " in
16576 *" $ac_cv_cxxflags_warn_all "*)
16577 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$ac_cv_cxxflags_warn_all"; } >&5
16578 (: CXXFLAGS already contains $ac_cv_cxxflags_warn_all) 2>&5
16579 ac_status=$?
16580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16581 test $ac_status = 0; }
16582 ;;
16583 *)
16584 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$ac_cv_cxxflags_warn_all\""; } >&5
16585 (: CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all") 2>&5
16586 ac_status=$?
16587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16588 test $ac_status = 0; }
16589 CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all"
16590 ;;
16591 esac
16592else
16593 CXXFLAGS="$ac_cv_cxxflags_warn_all"
16594fi
16595 ;;
16596esac
16597
16598ac_ext=cpp
16599ac_cpp='$CXXCPP $CPPFLAGS'
16600ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16601ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16602ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16603
16604
16605
16606
66170b30 16607
66170b30 16608
c10a2228
JF
16609 ac_ext=c
16610ac_cpp='$CPP $CPPFLAGS'
16611ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16612ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16613ac_compiler_gnu=$ac_cv_c_compiler_gnu
16614
16615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-deprecated-declarations" >&5
16616$as_echo_n "checking for cc -Wno-deprecated-declarations... " >&6; }
16617
16618 cy_save=$CFLAGS
16619
16620 for element in -Wno-deprecated-declarations; do
16621 haveit=
16622 for x in $CFLAGS; do
16623
16624 acl_save_prefix="$prefix"
16625 prefix="$acl_final_prefix"
16626 acl_save_exec_prefix="$exec_prefix"
16627 exec_prefix="$acl_final_exec_prefix"
16628 eval x=\"$x\"
16629 exec_prefix="$acl_save_exec_prefix"
16630 prefix="$acl_save_prefix"
16631
16632 if test "X$x" = "X$element"; then
16633 haveit=yes
16634 break
16635 fi
16636 done
16637 if test -z "$haveit"; then
16638 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
16639 fi
16640 done
16641
16642
16643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16644/* end confdefs.h. */
16645
16646_ACEOF
16647if ac_fn_c_try_compile "$LINENO"; then :
16648 cy_good=1
16649else
16650 cy_good=0
16651fi
16652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16653
16654 CFLAGS=$cy_save
16655 if test "x$cy_good" = x1; then :
16656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16657$as_echo "yes" >&6; }
16658
16659 for element in -Wno-deprecated-declarations; do
16660 haveit=
16661 for x in $CFLAGS; do
16662
16663 acl_save_prefix="$prefix"
16664 prefix="$acl_final_prefix"
16665 acl_save_exec_prefix="$exec_prefix"
16666 exec_prefix="$acl_final_exec_prefix"
16667 eval x=\"$x\"
16668 exec_prefix="$acl_save_exec_prefix"
16669 prefix="$acl_save_prefix"
16670
16671 if test "X$x" = "X$element"; then
16672 haveit=yes
16673 break
16674 fi
16675 done
16676 if test -z "$haveit"; then
16677 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
16678 fi
16679 done
16680
16681
16682else
16683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16684$as_echo "no" >&6; }
16685fi
16686
16687 ac_ext=cpp
16688ac_cpp='$CXXCPP $CPPFLAGS'
16689ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16690ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16691ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16692
16693
16694
16695 ac_ext=cpp
16696ac_cpp='$CXXCPP $CPPFLAGS'
16697ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16698ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16699ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16700
16701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-deprecated-declarations" >&5
16702$as_echo_n "checking for c++ -Wno-deprecated-declarations... " >&6; }
16703
16704 cy_save=$CXXFLAGS
16705
16706 for element in -Wno-deprecated-declarations; do
16707 haveit=
16708 for x in $CXXFLAGS; do
16709
16710 acl_save_prefix="$prefix"
16711 prefix="$acl_final_prefix"
16712 acl_save_exec_prefix="$exec_prefix"
16713 exec_prefix="$acl_final_exec_prefix"
16714 eval x=\"$x\"
16715 exec_prefix="$acl_save_exec_prefix"
16716 prefix="$acl_save_prefix"
16717
16718 if test "X$x" = "X$element"; then
16719 haveit=yes
16720 break
16721 fi
16722 done
16723 if test -z "$haveit"; then
16724 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
16725 fi
16726 done
16727
16728
16729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16730/* end confdefs.h. */
16731
16732_ACEOF
16733if ac_fn_cxx_try_compile "$LINENO"; then :
16734 cy_good=1
16735else
16736 cy_good=0
16737fi
16738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16739
16740 CXXFLAGS=$cy_save
16741 if test "x$cy_good" = x1; then :
16742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16743$as_echo "yes" >&6; }
16744
16745 for element in -Wno-deprecated-declarations; do
16746 haveit=
16747 for x in $CXXFLAGS; do
16748
16749 acl_save_prefix="$prefix"
16750 prefix="$acl_final_prefix"
16751 acl_save_exec_prefix="$exec_prefix"
16752 exec_prefix="$acl_final_exec_prefix"
16753 eval x=\"$x\"
16754 exec_prefix="$acl_save_exec_prefix"
16755 prefix="$acl_save_prefix"
16756
16757 if test "X$x" = "X$element"; then
16758 haveit=yes
16759 break
16760 fi
16761 done
16762 if test -z "$haveit"; then
16763 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
16764 fi
16765 done
16766
16767
16768else
16769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16770$as_echo "no" >&6; }
16771fi
16772
16773 ac_ext=cpp
16774ac_cpp='$CXXCPP $CPPFLAGS'
16775ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16776ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16777ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16778
16779
16780
16781 ac_ext=mm
16782ac_cpp='$OBJCXXCPP $CPPFLAGS'
16783ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16784ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16785ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
16786
16787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-deprecated-declarations" >&5
16788$as_echo_n "checking for c++ -ObjC -Wno-deprecated-declarations... " >&6; }
16789
16790 cy_save=$OBJCXXFLAGS
16791
16792 for element in -Wno-deprecated-declarations; do
16793 haveit=
16794 for x in $OBJCXXFLAGS; do
16795
16796 acl_save_prefix="$prefix"
16797 prefix="$acl_final_prefix"
16798 acl_save_exec_prefix="$exec_prefix"
16799 exec_prefix="$acl_final_exec_prefix"
16800 eval x=\"$x\"
16801 exec_prefix="$acl_save_exec_prefix"
16802 prefix="$acl_save_prefix"
16803
16804 if test "X$x" = "X$element"; then
16805 haveit=yes
16806 break
16807 fi
16808 done
16809 if test -z "$haveit"; then
16810 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
16811 fi
16812 done
16813
16814
16815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16816/* end confdefs.h. */
16817
16818_ACEOF
16819if ac_fn_objcxx_try_compile "$LINENO"; then :
16820 cy_good=1
16821else
16822 cy_good=0
16823fi
16824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16825
16826 OBJCXXFLAGS=$cy_save
16827 if test "x$cy_good" = x1; then :
16828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16829$as_echo "yes" >&6; }
16830
16831 for element in -Wno-deprecated-declarations; do
16832 haveit=
16833 for x in $OBJCXXFLAGS; do
16834
16835 acl_save_prefix="$prefix"
16836 prefix="$acl_final_prefix"
16837 acl_save_exec_prefix="$exec_prefix"
16838 exec_prefix="$acl_final_exec_prefix"
16839 eval x=\"$x\"
16840 exec_prefix="$acl_save_exec_prefix"
16841 prefix="$acl_save_prefix"
16842
16843 if test "X$x" = "X$element"; then
16844 haveit=yes
16845 break
16846 fi
16847 done
16848 if test -z "$haveit"; then
16849 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
16850 fi
16851 done
16852
16853
16854else
16855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16856$as_echo "no" >&6; }
16857fi
16858
16859 ac_ext=cpp
16860ac_cpp='$CXXCPP $CPPFLAGS'
16861ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16862ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16863ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16864
16865
16866
16867
16868
16869
16870 ac_ext=c
16871ac_cpp='$CPP $CPPFLAGS'
16872ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16873ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16874ac_compiler_gnu=$ac_cv_c_compiler_gnu
16875
16876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-dangling-else" >&5
16877$as_echo_n "checking for cc -Wno-dangling-else... " >&6; }
16878
16879 cy_save=$CFLAGS
16880
16881 for element in -Wno-dangling-else; do
16882 haveit=
16883 for x in $CFLAGS; do
16884
16885 acl_save_prefix="$prefix"
16886 prefix="$acl_final_prefix"
16887 acl_save_exec_prefix="$exec_prefix"
16888 exec_prefix="$acl_final_exec_prefix"
16889 eval x=\"$x\"
16890 exec_prefix="$acl_save_exec_prefix"
16891 prefix="$acl_save_prefix"
16892
16893 if test "X$x" = "X$element"; then
16894 haveit=yes
16895 break
16896 fi
16897 done
16898 if test -z "$haveit"; then
16899 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
16900 fi
16901 done
16902
16903
16904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16905/* end confdefs.h. */
16906
16907_ACEOF
16908if ac_fn_c_try_compile "$LINENO"; then :
16909 cy_good=1
16910else
16911 cy_good=0
16912fi
16913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16914
16915 CFLAGS=$cy_save
16916 if test "x$cy_good" = x1; then :
16917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16918$as_echo "yes" >&6; }
16919
16920 for element in -Wno-dangling-else; do
16921 haveit=
16922 for x in $CFLAGS; do
16923
16924 acl_save_prefix="$prefix"
16925 prefix="$acl_final_prefix"
16926 acl_save_exec_prefix="$exec_prefix"
16927 exec_prefix="$acl_final_exec_prefix"
16928 eval x=\"$x\"
16929 exec_prefix="$acl_save_exec_prefix"
16930 prefix="$acl_save_prefix"
16931
16932 if test "X$x" = "X$element"; then
16933 haveit=yes
16934 break
16935 fi
16936 done
16937 if test -z "$haveit"; then
16938 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
16939 fi
16940 done
16941
16942
16943else
16944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16945$as_echo "no" >&6; }
16946fi
16947
16948 ac_ext=cpp
16949ac_cpp='$CXXCPP $CPPFLAGS'
16950ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16951ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16952ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16953
16954
16955
16956 ac_ext=cpp
16957ac_cpp='$CXXCPP $CPPFLAGS'
16958ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16959ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16960ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16961
16962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-dangling-else" >&5
16963$as_echo_n "checking for c++ -Wno-dangling-else... " >&6; }
16964
16965 cy_save=$CXXFLAGS
16966
16967 for element in -Wno-dangling-else; do
16968 haveit=
16969 for x in $CXXFLAGS; do
16970
16971 acl_save_prefix="$prefix"
16972 prefix="$acl_final_prefix"
16973 acl_save_exec_prefix="$exec_prefix"
16974 exec_prefix="$acl_final_exec_prefix"
16975 eval x=\"$x\"
16976 exec_prefix="$acl_save_exec_prefix"
16977 prefix="$acl_save_prefix"
16978
16979 if test "X$x" = "X$element"; then
16980 haveit=yes
16981 break
16982 fi
16983 done
16984 if test -z "$haveit"; then
16985 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
16986 fi
16987 done
16988
16989
16990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16991/* end confdefs.h. */
16992
16993_ACEOF
16994if ac_fn_cxx_try_compile "$LINENO"; then :
16995 cy_good=1
16996else
16997 cy_good=0
16998fi
16999rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17000
17001 CXXFLAGS=$cy_save
17002 if test "x$cy_good" = x1; then :
17003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17004$as_echo "yes" >&6; }
17005
17006 for element in -Wno-dangling-else; do
17007 haveit=
17008 for x in $CXXFLAGS; do
17009
17010 acl_save_prefix="$prefix"
17011 prefix="$acl_final_prefix"
17012 acl_save_exec_prefix="$exec_prefix"
17013 exec_prefix="$acl_final_exec_prefix"
17014 eval x=\"$x\"
17015 exec_prefix="$acl_save_exec_prefix"
17016 prefix="$acl_save_prefix"
17017
17018 if test "X$x" = "X$element"; then
17019 haveit=yes
17020 break
17021 fi
17022 done
17023 if test -z "$haveit"; then
17024 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17025 fi
17026 done
17027
17028
17029else
17030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17031$as_echo "no" >&6; }
17032fi
17033
17034 ac_ext=cpp
17035ac_cpp='$CXXCPP $CPPFLAGS'
17036ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17037ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17038ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17039
17040
17041
17042 ac_ext=mm
17043ac_cpp='$OBJCXXCPP $CPPFLAGS'
17044ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17045ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17046ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
17047
17048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-dangling-else" >&5
17049$as_echo_n "checking for c++ -ObjC -Wno-dangling-else... " >&6; }
17050
17051 cy_save=$OBJCXXFLAGS
17052
17053 for element in -Wno-dangling-else; do
17054 haveit=
17055 for x in $OBJCXXFLAGS; do
17056
17057 acl_save_prefix="$prefix"
17058 prefix="$acl_final_prefix"
17059 acl_save_exec_prefix="$exec_prefix"
17060 exec_prefix="$acl_final_exec_prefix"
17061 eval x=\"$x\"
17062 exec_prefix="$acl_save_exec_prefix"
17063 prefix="$acl_save_prefix"
17064
17065 if test "X$x" = "X$element"; then
17066 haveit=yes
17067 break
17068 fi
17069 done
17070 if test -z "$haveit"; then
17071 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
17072 fi
17073 done
17074
17075
17076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17077/* end confdefs.h. */
17078
17079_ACEOF
17080if ac_fn_objcxx_try_compile "$LINENO"; then :
17081 cy_good=1
17082else
17083 cy_good=0
17084fi
17085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17086
17087 OBJCXXFLAGS=$cy_save
17088 if test "x$cy_good" = x1; then :
17089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17090$as_echo "yes" >&6; }
17091
17092 for element in -Wno-dangling-else; do
17093 haveit=
17094 for x in $OBJCXXFLAGS; do
17095
17096 acl_save_prefix="$prefix"
17097 prefix="$acl_final_prefix"
17098 acl_save_exec_prefix="$exec_prefix"
17099 exec_prefix="$acl_final_exec_prefix"
17100 eval x=\"$x\"
17101 exec_prefix="$acl_save_exec_prefix"
17102 prefix="$acl_save_prefix"
17103
17104 if test "X$x" = "X$element"; then
17105 haveit=yes
17106 break
17107 fi
17108 done
17109 if test -z "$haveit"; then
17110 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
17111 fi
17112 done
17113
17114
17115else
17116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17117$as_echo "no" >&6; }
17118fi
17119
17120 ac_ext=cpp
17121ac_cpp='$CXXCPP $CPPFLAGS'
17122ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17123ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17124ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17125
17126
17127
17128
17129
17130 ac_ext=c
17131ac_cpp='$CPP $CPPFLAGS'
17132ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17133ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17134ac_compiler_gnu=$ac_cv_c_compiler_gnu
17135
17136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-overloaded-virtual" >&5
17137$as_echo_n "checking for cc -Wno-overloaded-virtual... " >&6; }
17138
17139 cy_save=$CFLAGS
17140
17141 for element in -Wno-overloaded-virtual; do
17142 haveit=
17143 for x in $CFLAGS; do
17144
17145 acl_save_prefix="$prefix"
17146 prefix="$acl_final_prefix"
17147 acl_save_exec_prefix="$exec_prefix"
17148 exec_prefix="$acl_final_exec_prefix"
17149 eval x=\"$x\"
17150 exec_prefix="$acl_save_exec_prefix"
17151 prefix="$acl_save_prefix"
17152
17153 if test "X$x" = "X$element"; then
17154 haveit=yes
17155 break
17156 fi
17157 done
17158 if test -z "$haveit"; then
17159 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
17160 fi
17161 done
17162
17163
17164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17165/* end confdefs.h. */
17166
17167_ACEOF
17168if ac_fn_c_try_compile "$LINENO"; then :
17169 cy_good=1
17170else
17171 cy_good=0
17172fi
17173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17174
17175 CFLAGS=$cy_save
17176 if test "x$cy_good" = x1; then :
17177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17178$as_echo "yes" >&6; }
17179
17180 for element in -Wno-overloaded-virtual; do
17181 haveit=
17182 for x in $CFLAGS; do
17183
17184 acl_save_prefix="$prefix"
17185 prefix="$acl_final_prefix"
17186 acl_save_exec_prefix="$exec_prefix"
17187 exec_prefix="$acl_final_exec_prefix"
17188 eval x=\"$x\"
17189 exec_prefix="$acl_save_exec_prefix"
17190 prefix="$acl_save_prefix"
17191
17192 if test "X$x" = "X$element"; then
17193 haveit=yes
17194 break
17195 fi
17196 done
17197 if test -z "$haveit"; then
17198 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
17199 fi
17200 done
17201
17202
17203else
17204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17205$as_echo "no" >&6; }
17206fi
17207
17208 ac_ext=cpp
17209ac_cpp='$CXXCPP $CPPFLAGS'
17210ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17211ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17212ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17213
17214
17215
17216 ac_ext=cpp
17217ac_cpp='$CXXCPP $CPPFLAGS'
17218ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17219ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17220ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17221
17222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-overloaded-virtual" >&5
17223$as_echo_n "checking for c++ -Wno-overloaded-virtual... " >&6; }
17224
17225 cy_save=$CXXFLAGS
17226
17227 for element in -Wno-overloaded-virtual; do
17228 haveit=
17229 for x in $CXXFLAGS; do
17230
17231 acl_save_prefix="$prefix"
17232 prefix="$acl_final_prefix"
17233 acl_save_exec_prefix="$exec_prefix"
17234 exec_prefix="$acl_final_exec_prefix"
17235 eval x=\"$x\"
17236 exec_prefix="$acl_save_exec_prefix"
17237 prefix="$acl_save_prefix"
17238
17239 if test "X$x" = "X$element"; then
17240 haveit=yes
17241 break
17242 fi
17243 done
17244 if test -z "$haveit"; then
17245 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17246 fi
17247 done
17248
17249
17250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17251/* end confdefs.h. */
17252
17253_ACEOF
17254if ac_fn_cxx_try_compile "$LINENO"; then :
17255 cy_good=1
17256else
17257 cy_good=0
17258fi
17259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17260
17261 CXXFLAGS=$cy_save
17262 if test "x$cy_good" = x1; then :
17263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17264$as_echo "yes" >&6; }
17265
17266 for element in -Wno-overloaded-virtual; do
17267 haveit=
17268 for x in $CXXFLAGS; do
17269
17270 acl_save_prefix="$prefix"
17271 prefix="$acl_final_prefix"
17272 acl_save_exec_prefix="$exec_prefix"
17273 exec_prefix="$acl_final_exec_prefix"
17274 eval x=\"$x\"
17275 exec_prefix="$acl_save_exec_prefix"
17276 prefix="$acl_save_prefix"
17277
17278 if test "X$x" = "X$element"; then
17279 haveit=yes
17280 break
17281 fi
17282 done
17283 if test -z "$haveit"; then
17284 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17285 fi
17286 done
17287
17288
17289else
17290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17291$as_echo "no" >&6; }
17292fi
17293
17294 ac_ext=cpp
17295ac_cpp='$CXXCPP $CPPFLAGS'
17296ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17297ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17298ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17299
17300
17301
17302 ac_ext=mm
17303ac_cpp='$OBJCXXCPP $CPPFLAGS'
17304ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17305ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17306ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
17307
17308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-overloaded-virtual" >&5
17309$as_echo_n "checking for c++ -ObjC -Wno-overloaded-virtual... " >&6; }
17310
17311 cy_save=$OBJCXXFLAGS
17312
17313 for element in -Wno-overloaded-virtual; do
17314 haveit=
17315 for x in $OBJCXXFLAGS; do
17316
17317 acl_save_prefix="$prefix"
17318 prefix="$acl_final_prefix"
17319 acl_save_exec_prefix="$exec_prefix"
17320 exec_prefix="$acl_final_exec_prefix"
17321 eval x=\"$x\"
17322 exec_prefix="$acl_save_exec_prefix"
17323 prefix="$acl_save_prefix"
17324
17325 if test "X$x" = "X$element"; then
17326 haveit=yes
17327 break
17328 fi
17329 done
17330 if test -z "$haveit"; then
17331 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
17332 fi
17333 done
17334
17335
17336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17337/* end confdefs.h. */
17338
17339_ACEOF
17340if ac_fn_objcxx_try_compile "$LINENO"; then :
17341 cy_good=1
17342else
17343 cy_good=0
17344fi
17345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17346
17347 OBJCXXFLAGS=$cy_save
17348 if test "x$cy_good" = x1; then :
17349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17350$as_echo "yes" >&6; }
17351
17352 for element in -Wno-overloaded-virtual; do
17353 haveit=
17354 for x in $OBJCXXFLAGS; do
17355
17356 acl_save_prefix="$prefix"
17357 prefix="$acl_final_prefix"
17358 acl_save_exec_prefix="$exec_prefix"
17359 exec_prefix="$acl_final_exec_prefix"
17360 eval x=\"$x\"
17361 exec_prefix="$acl_save_exec_prefix"
17362 prefix="$acl_save_prefix"
17363
17364 if test "X$x" = "X$element"; then
17365 haveit=yes
17366 break
17367 fi
17368 done
17369 if test -z "$haveit"; then
17370 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
17371 fi
17372 done
17373
17374
17375else
17376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17377$as_echo "no" >&6; }
17378fi
17379
17380 ac_ext=cpp
17381ac_cpp='$CXXCPP $CPPFLAGS'
17382ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17383ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17384ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17385
17386
17387
17388
17389
17390 ac_ext=c
17391ac_cpp='$CPP $CPPFLAGS'
17392ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17393ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17394ac_compiler_gnu=$ac_cv_c_compiler_gnu
17395
17396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-parentheses" >&5
17397$as_echo_n "checking for cc -Wno-parentheses... " >&6; }
17398
17399 cy_save=$CFLAGS
17400
17401 for element in -Wno-parentheses; do
1504c9b8 17402 haveit=
c10a2228 17403 for x in $CFLAGS; do
1504c9b8
DWT
17404
17405 acl_save_prefix="$prefix"
17406 prefix="$acl_final_prefix"
17407 acl_save_exec_prefix="$exec_prefix"
17408 exec_prefix="$acl_final_exec_prefix"
17409 eval x=\"$x\"
17410 exec_prefix="$acl_save_exec_prefix"
17411 prefix="$acl_save_prefix"
17412
17413 if test "X$x" = "X$element"; then
17414 haveit=yes
17415 break
17416 fi
17417 done
17418 if test -z "$haveit"; then
c10a2228 17419 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
1504c9b8
DWT
17420 fi
17421 done
17422
66170b30
JF
17423
17424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1504c9b8
DWT
17425/* end confdefs.h. */
17426
66170b30 17427_ACEOF
c10a2228 17428if ac_fn_c_try_compile "$LINENO"; then :
66170b30
JF
17429 cy_good=1
17430else
17431 cy_good=0
17432fi
17433rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17434
c10a2228 17435 CFLAGS=$cy_save
66170b30
JF
17436 if test "x$cy_good" = x1; then :
17437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17438$as_echo "yes" >&6; }
17439
c10a2228 17440 for element in -Wno-parentheses; do
66170b30
JF
17441 haveit=
17442 for x in $CFLAGS; do
17443
17444 acl_save_prefix="$prefix"
17445 prefix="$acl_final_prefix"
17446 acl_save_exec_prefix="$exec_prefix"
17447 exec_prefix="$acl_final_exec_prefix"
17448 eval x=\"$x\"
17449 exec_prefix="$acl_save_exec_prefix"
17450 prefix="$acl_save_prefix"
17451
17452 if test "X$x" = "X$element"; then
17453 haveit=yes
17454 break
17455 fi
17456 done
17457 if test -z "$haveit"; then
17458 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
17459 fi
17460 done
17461
17462
c10a2228
JF
17463else
17464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17465$as_echo "no" >&6; }
17466fi
17467
17468 ac_ext=cpp
17469ac_cpp='$CXXCPP $CPPFLAGS'
17470ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17471ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17472ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17473
17474
17475
17476 ac_ext=cpp
17477ac_cpp='$CXXCPP $CPPFLAGS'
17478ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17479ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17480ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17481
17482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-parentheses" >&5
17483$as_echo_n "checking for c++ -Wno-parentheses... " >&6; }
17484
17485 cy_save=$CXXFLAGS
17486
17487 for element in -Wno-parentheses; do
66170b30
JF
17488 haveit=
17489 for x in $CXXFLAGS; do
17490
17491 acl_save_prefix="$prefix"
17492 prefix="$acl_final_prefix"
17493 acl_save_exec_prefix="$exec_prefix"
17494 exec_prefix="$acl_final_exec_prefix"
17495 eval x=\"$x\"
17496 exec_prefix="$acl_save_exec_prefix"
17497 prefix="$acl_save_prefix"
17498
17499 if test "X$x" = "X$element"; then
17500 haveit=yes
17501 break
17502 fi
17503 done
17504 if test -z "$haveit"; then
17505 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17506 fi
17507 done
17508
17509
c10a2228
JF
17510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17511/* end confdefs.h. */
17512
17513_ACEOF
17514if ac_fn_cxx_try_compile "$LINENO"; then :
17515 cy_good=1
17516else
17517 cy_good=0
17518fi
17519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17520
17521 CXXFLAGS=$cy_save
17522 if test "x$cy_good" = x1; then :
17523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17524$as_echo "yes" >&6; }
17525
17526 for element in -Wno-parentheses; do
66170b30 17527 haveit=
c10a2228 17528 for x in $CXXFLAGS; do
66170b30
JF
17529
17530 acl_save_prefix="$prefix"
17531 prefix="$acl_final_prefix"
17532 acl_save_exec_prefix="$exec_prefix"
17533 exec_prefix="$acl_final_exec_prefix"
17534 eval x=\"$x\"
17535 exec_prefix="$acl_save_exec_prefix"
17536 prefix="$acl_save_prefix"
17537
17538 if test "X$x" = "X$element"; then
17539 haveit=yes
17540 break
17541 fi
17542 done
17543 if test -z "$haveit"; then
c10a2228 17544 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
66170b30
JF
17545 fi
17546 done
17547
17548
66170b30
JF
17549else
17550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17551$as_echo "no" >&6; }
17552fi
17553
c10a2228
JF
17554 ac_ext=cpp
17555ac_cpp='$CXXCPP $CPPFLAGS'
17556ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17557ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17558ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17559
66170b30
JF
17560
17561
c10a2228
JF
17562 ac_ext=mm
17563ac_cpp='$OBJCXXCPP $CPPFLAGS'
17564ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17565ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17566ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
17567
17568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-parentheses" >&5
17569$as_echo_n "checking for c++ -ObjC -Wno-parentheses... " >&6; }
66170b30 17570
c10a2228 17571 cy_save=$OBJCXXFLAGS
66170b30
JF
17572
17573 for element in -Wno-parentheses; do
17574 haveit=
c10a2228 17575 for x in $OBJCXXFLAGS; do
66170b30
JF
17576
17577 acl_save_prefix="$prefix"
17578 prefix="$acl_final_prefix"
17579 acl_save_exec_prefix="$exec_prefix"
17580 exec_prefix="$acl_final_exec_prefix"
17581 eval x=\"$x\"
17582 exec_prefix="$acl_save_exec_prefix"
17583 prefix="$acl_save_prefix"
17584
17585 if test "X$x" = "X$element"; then
17586 haveit=yes
17587 break
17588 fi
17589 done
17590 if test -z "$haveit"; then
c10a2228 17591 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
66170b30
JF
17592 fi
17593 done
17594
17595
17596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17597/* end confdefs.h. */
1504c9b8 17598
1504c9b8 17599_ACEOF
c10a2228 17600if ac_fn_objcxx_try_compile "$LINENO"; then :
66170b30
JF
17601 cy_good=1
17602else
17603 cy_good=0
17604fi
17605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17606
c10a2228 17607 OBJCXXFLAGS=$cy_save
66170b30
JF
17608 if test "x$cy_good" = x1; then :
17609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17610$as_echo "yes" >&6; }
1504c9b8 17611
66170b30 17612 for element in -Wno-parentheses; do
1504c9b8 17613 haveit=
c10a2228 17614 for x in $OBJCXXFLAGS; do
1504c9b8
DWT
17615
17616 acl_save_prefix="$prefix"
17617 prefix="$acl_final_prefix"
17618 acl_save_exec_prefix="$exec_prefix"
17619 exec_prefix="$acl_final_exec_prefix"
17620 eval x=\"$x\"
17621 exec_prefix="$acl_save_exec_prefix"
17622 prefix="$acl_save_prefix"
17623
17624 if test "X$x" = "X$element"; then
17625 haveit=yes
17626 break
17627 fi
17628 done
17629 if test -z "$haveit"; then
c10a2228 17630 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
1504c9b8
DWT
17631 fi
17632 done
17633
17634
c10a2228
JF
17635else
17636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17637$as_echo "no" >&6; }
17638fi
17639
17640 ac_ext=cpp
17641ac_cpp='$CXXCPP $CPPFLAGS'
17642ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17643ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17644ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17645
17646
17647
17648
17649
17650 ac_ext=c
17651ac_cpp='$CPP $CPPFLAGS'
17652ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17653ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17654ac_compiler_gnu=$ac_cv_c_compiler_gnu
17655
17656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-unneeded-internal-declaration" >&5
17657$as_echo_n "checking for cc -Wno-unneeded-internal-declaration... " >&6; }
17658
17659 cy_save=$CFLAGS
17660
17661 for element in -Wno-unneeded-internal-declaration; do
66170b30 17662 haveit=
c10a2228 17663 for x in $CFLAGS; do
66170b30
JF
17664
17665 acl_save_prefix="$prefix"
17666 prefix="$acl_final_prefix"
17667 acl_save_exec_prefix="$exec_prefix"
17668 exec_prefix="$acl_final_exec_prefix"
17669 eval x=\"$x\"
17670 exec_prefix="$acl_save_exec_prefix"
17671 prefix="$acl_save_prefix"
17672
17673 if test "X$x" = "X$element"; then
17674 haveit=yes
17675 break
17676 fi
17677 done
17678 if test -z "$haveit"; then
c10a2228 17679 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
66170b30
JF
17680 fi
17681 done
17682
17683
c10a2228
JF
17684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17685/* end confdefs.h. */
17686
17687_ACEOF
17688if ac_fn_c_try_compile "$LINENO"; then :
17689 cy_good=1
17690else
17691 cy_good=0
17692fi
17693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17694
17695 CFLAGS=$cy_save
17696 if test "x$cy_good" = x1; then :
17697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17698$as_echo "yes" >&6; }
17699
17700 for element in -Wno-unneeded-internal-declaration; do
66170b30 17701 haveit=
c10a2228 17702 for x in $CFLAGS; do
66170b30
JF
17703
17704 acl_save_prefix="$prefix"
17705 prefix="$acl_final_prefix"
17706 acl_save_exec_prefix="$exec_prefix"
17707 exec_prefix="$acl_final_exec_prefix"
17708 eval x=\"$x\"
17709 exec_prefix="$acl_save_exec_prefix"
17710 prefix="$acl_save_prefix"
17711
17712 if test "X$x" = "X$element"; then
17713 haveit=yes
17714 break
17715 fi
17716 done
17717 if test -z "$haveit"; then
c10a2228 17718 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
66170b30
JF
17719 fi
17720 done
17721
17722
66170b30
JF
17723else
17724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17725$as_echo "no" >&6; }
17726fi
17727
c10a2228
JF
17728 ac_ext=cpp
17729ac_cpp='$CXXCPP $CPPFLAGS'
17730ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17731ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17732ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17733
66170b30
JF
17734
17735
c10a2228
JF
17736 ac_ext=cpp
17737ac_cpp='$CXXCPP $CPPFLAGS'
17738ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17739ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17740ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17741
17742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-unneeded-internal-declaration" >&5
17743$as_echo_n "checking for c++ -Wno-unneeded-internal-declaration... " >&6; }
66170b30
JF
17744
17745 cy_save=$CXXFLAGS
17746
17747 for element in -Wno-unneeded-internal-declaration; do
17748 haveit=
17749 for x in $CXXFLAGS; do
17750
17751 acl_save_prefix="$prefix"
17752 prefix="$acl_final_prefix"
17753 acl_save_exec_prefix="$exec_prefix"
17754 exec_prefix="$acl_final_exec_prefix"
17755 eval x=\"$x\"
17756 exec_prefix="$acl_save_exec_prefix"
17757 prefix="$acl_save_prefix"
17758
17759 if test "X$x" = "X$element"; then
17760 haveit=yes
17761 break
17762 fi
17763 done
17764 if test -z "$haveit"; then
17765 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17766 fi
17767 done
17768
17769
17770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17771/* end confdefs.h. */
17772
17773_ACEOF
17774if ac_fn_cxx_try_compile "$LINENO"; then :
17775 cy_good=1
17776else
17777 cy_good=0
17778fi
17779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17780
17781 CXXFLAGS=$cy_save
17782 if test "x$cy_good" = x1; then :
17783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17784$as_echo "yes" >&6; }
17785
66170b30 17786 for element in -Wno-unneeded-internal-declaration; do
1504c9b8 17787 haveit=
c10a2228 17788 for x in $CXXFLAGS; do
1504c9b8
DWT
17789
17790 acl_save_prefix="$prefix"
17791 prefix="$acl_final_prefix"
17792 acl_save_exec_prefix="$exec_prefix"
17793 exec_prefix="$acl_final_exec_prefix"
17794 eval x=\"$x\"
17795 exec_prefix="$acl_save_exec_prefix"
17796 prefix="$acl_save_prefix"
17797
17798 if test "X$x" = "X$element"; then
17799 haveit=yes
17800 break
17801 fi
17802 done
17803 if test -z "$haveit"; then
c10a2228 17804 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
1504c9b8
DWT
17805 fi
17806 done
17807
17808
c10a2228
JF
17809else
17810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17811$as_echo "no" >&6; }
17812fi
17813
17814 ac_ext=cpp
17815ac_cpp='$CXXCPP $CPPFLAGS'
17816ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17817ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17818ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17819
17820
17821
17822 ac_ext=mm
17823ac_cpp='$OBJCXXCPP $CPPFLAGS'
17824ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17825ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17826ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
17827
17828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-unneeded-internal-declaration" >&5
17829$as_echo_n "checking for c++ -ObjC -Wno-unneeded-internal-declaration... " >&6; }
17830
17831 cy_save=$OBJCXXFLAGS
17832
66170b30 17833 for element in -Wno-unneeded-internal-declaration; do
1504c9b8 17834 haveit=
c10a2228 17835 for x in $OBJCXXFLAGS; do
1504c9b8
DWT
17836
17837 acl_save_prefix="$prefix"
17838 prefix="$acl_final_prefix"
17839 acl_save_exec_prefix="$exec_prefix"
17840 exec_prefix="$acl_final_exec_prefix"
17841 eval x=\"$x\"
17842 exec_prefix="$acl_save_exec_prefix"
17843 prefix="$acl_save_prefix"
17844
17845 if test "X$x" = "X$element"; then
17846 haveit=yes
17847 break
17848 fi
17849 done
17850 if test -z "$haveit"; then
c10a2228 17851 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
1504c9b8
DWT
17852 fi
17853 done
17854
17855
c10a2228
JF
17856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17857/* end confdefs.h. */
17858
17859_ACEOF
17860if ac_fn_objcxx_try_compile "$LINENO"; then :
17861 cy_good=1
17862else
17863 cy_good=0
17864fi
17865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17866
17867 OBJCXXFLAGS=$cy_save
17868 if test "x$cy_good" = x1; then :
17869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17870$as_echo "yes" >&6; }
17871
66170b30 17872 for element in -Wno-unneeded-internal-declaration; do
1504c9b8 17873 haveit=
c10a2228 17874 for x in $OBJCXXFLAGS; do
1504c9b8
DWT
17875
17876 acl_save_prefix="$prefix"
17877 prefix="$acl_final_prefix"
17878 acl_save_exec_prefix="$exec_prefix"
17879 exec_prefix="$acl_final_exec_prefix"
17880 eval x=\"$x\"
17881 exec_prefix="$acl_save_exec_prefix"
17882 prefix="$acl_save_prefix"
17883
17884 if test "X$x" = "X$element"; then
17885 haveit=yes
17886 break
17887 fi
17888 done
17889 if test -z "$haveit"; then
c10a2228 17890 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
1504c9b8
DWT
17891 fi
17892 done
17893
17894
66170b30
JF
17895else
17896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17897$as_echo "no" >&6; }
1504c9b8 17898fi
1504c9b8 17899
c10a2228
JF
17900 ac_ext=cpp
17901ac_cpp='$CXXCPP $CPPFLAGS'
17902ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17903ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17904ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17905
17906
1504c9b8 17907
1504c9b8 17908
66170b30
JF
17909for cy_arch in ppc ppc64 i386 x86_64 armv6; do
17910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -arch $cy_arch" >&5
17911$as_echo_n "checking for -arch $cy_arch... " >&6; }
1504c9b8 17912
66170b30 17913 cy_save=$CXXFLAGS
1504c9b8
DWT
17914
17915 for element in "-arch $cy_arch"; do
17916 haveit=
17917 for x in $CXXFLAGS; do
17918
17919 acl_save_prefix="$prefix"
17920 prefix="$acl_final_prefix"
17921 acl_save_exec_prefix="$exec_prefix"
17922 exec_prefix="$acl_final_exec_prefix"
17923 eval x=\"$x\"
17924 exec_prefix="$acl_save_exec_prefix"
17925 prefix="$acl_save_prefix"
17926
17927 if test "X$x" = "X$element"; then
17928 haveit=yes
17929 break
17930 fi
17931 done
17932 if test -z "$haveit"; then
17933 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17934 fi
17935 done
17936
66170b30
JF
17937
17938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1504c9b8
DWT
17939/* end confdefs.h. */
17940
17941int
17942main ()
17943{
17944
17945 ;
17946 return 0;
a243b558
JF
17947}
17948_ACEOF
17949if ac_fn_cxx_try_link "$LINENO"; then :
17950 cy_good=1
17951else
17952 cy_good=0
17953fi
17954rm -f core conftest.err conftest.$ac_objext \
17955 conftest$ac_exeext conftest.$ac_ext
1504c9b8 17956
a243b558
JF
17957 CXXFLAGS=$cy_save
17958 if test "x$cy_good" = x1; then :
17959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17960$as_echo "yes" >&6; }
66170b30 17961
1504c9b8
DWT
17962 for element in "-arch $cy_arch"; do
17963 haveit=
a243b558 17964 for x in $CY_ARCH; do
1504c9b8
DWT
17965
17966 acl_save_prefix="$prefix"
17967 prefix="$acl_final_prefix"
17968 acl_save_exec_prefix="$exec_prefix"
17969 exec_prefix="$acl_final_exec_prefix"
17970 eval x=\"$x\"
17971 exec_prefix="$acl_save_exec_prefix"
17972 prefix="$acl_save_prefix"
17973
17974 if test "X$x" = "X$element"; then
17975 haveit=yes
17976 break
17977 fi
17978 done
17979 if test -z "$haveit"; then
a243b558 17980 CY_ARCH="${CY_ARCH}${CY_ARCH:+ }$element"
1504c9b8
DWT
17981 fi
17982 done
17983
17984
17985else
66170b30
JF
17986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17987$as_echo "no" >&6; }
1504c9b8
DWT
17988fi
17989
66170b30 17990done
1504c9b8 17991
a243b558
JF
17992
17993
296ee9a6
JF
17994
17995
9c60689e 17996
632b71ea
DWT
17997
17998
5053a6d1
DWT
17999# Check whether --enable-javascript was given.
18000if test "${enable_javascript+set}" = set; then :
18001 enableval=$enable_javascript;
66170b30 18002 case $enableval in #(
5053a6d1 18003 yes) :
9c60689e
DWT
18004
18005
9c60689e 18006
66170b30 18007
7eda51e0
JF
18008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
18009$as_echo_n "checking for framework JavaScriptCore... " >&6; }
18010if ${ac_cv_framework_JavaScriptCore+:} false; then :
18011 $as_echo_n "(cached) " >&6
9c60689e 18012else
7eda51e0
JF
18013
18014 ac_check_framework_save_LIBS=$LIBS
18015 LIBS="-framework JavaScriptCore $LIBS"
18016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18017/* end confdefs.h. */
18018
18019 #include <JavaScriptCore/JSBase.h>
18020
18021int
18022main ()
18023{
18024
18025 JSEvaluateScript(0, 0, 0, 0, 0, 0);
18026
18027 ;
18028 return 0;
18029}
18030_ACEOF
18031if ac_fn_cxx_try_link "$LINENO"; then :
18032
18033 ac_cv_framework_JavaScriptCore=yes
18034
9c60689e 18035else
7eda51e0 18036 ac_cv_framework_JavaScriptCore=no
9c60689e 18037fi
7eda51e0
JF
18038rm -f core conftest.err conftest.$ac_objext \
18039 conftest$ac_exeext conftest.$ac_ext
18040 LIBS=$ac_check_framework_save_LIBS
18041
9c60689e 18042fi
7eda51e0
JF
18043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
18044$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
18045 if test $ac_cv_framework_JavaScriptCore = yes; then :
18046
18047
18048 for element in "-framework JavaScriptCore"; do
18049 haveit=
18050 for x in $LIBS; do
9c60689e 18051
7eda51e0
JF
18052 acl_save_prefix="$prefix"
18053 prefix="$acl_final_prefix"
18054 acl_save_exec_prefix="$exec_prefix"
18055 exec_prefix="$acl_final_exec_prefix"
18056 eval x=\"$x\"
18057 exec_prefix="$acl_save_exec_prefix"
18058 prefix="$acl_save_prefix"
9c60689e 18059
7eda51e0
JF
18060 if test "X$x" = "X$element"; then
18061 haveit=yes
18062 break
18063 fi
18064 done
18065 if test -z "$haveit"; then
18066 LIBS="${LIBS}${LIBS:+ }$element"
18067 fi
18068 done
9c60689e 18069
9c60689e 18070
7eda51e0 18071 CY_EXECUTE=1
632b71ea 18072
5053a6d1
DWT
18073
18074
7eda51e0
JF
18075else
18076
18077 for cy_webkit_pkg in "webkit-1.0" "WebKitGtk"; do
18078
5053a6d1
DWT
18079pkg_failed=no
18080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
18081$as_echo_n "checking for WEBKIT... " >&6; }
632b71ea 18082
12833ad8
JF
18083if test -n "$WEBKIT_CFLAGS"; then
18084 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
18085 elif test -n "$PKG_CONFIG"; then
18086 if test -n "$PKG_CONFIG" && \
7eda51e0
JF
18087 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
18088 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
5053a6d1
DWT
18089 ac_status=$?
18090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18091 test $ac_status = 0; }; then
7eda51e0 18092 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "$cy_webkit_pkg" 2>/dev/null`
5053a6d1
DWT
18093else
18094 pkg_failed=yes
9c60689e 18095fi
12833ad8
JF
18096 else
18097 pkg_failed=untried
5053a6d1 18098fi
12833ad8
JF
18099if test -n "$WEBKIT_LIBS"; then
18100 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
18101 elif test -n "$PKG_CONFIG"; then
18102 if test -n "$PKG_CONFIG" && \
7eda51e0
JF
18103 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
18104 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
5053a6d1
DWT
18105 ac_status=$?
18106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18107 test $ac_status = 0; }; then
7eda51e0 18108 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "$cy_webkit_pkg" 2>/dev/null`
5053a6d1
DWT
18109else
18110 pkg_failed=yes
18111fi
12833ad8
JF
18112 else
18113 pkg_failed=untried
632b71ea
DWT
18114fi
18115
18116
18117
5053a6d1 18118if test $pkg_failed = yes; then
12833ad8
JF
18119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18120$as_echo "no" >&6; }
5053a6d1
DWT
18121
18122if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18123 _pkg_short_errors_supported=yes
18124else
18125 _pkg_short_errors_supported=no
18126fi
18127 if test $_pkg_short_errors_supported = yes; then
7eda51e0 18128 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$cy_webkit_pkg" 2>&1`
5053a6d1 18129 else
7eda51e0 18130 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "$cy_webkit_pkg" 2>&1`
5053a6d1
DWT
18131 fi
18132 # Put the nasty error message in config.log where it belongs
18133 echo "$WEBKIT_PKG_ERRORS" >&5
18134
7eda51e0
JF
18135 :
18136elif test $pkg_failed = untried; then
18137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18138$as_echo "no" >&6; }
18139 :
18140else
18141 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
18142 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
18143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18144$as_echo "yes" >&6; }
5053a6d1 18145
7eda51e0 18146 CY_EXECUTE=1
632b71ea
DWT
18147
18148
7eda51e0 18149 for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do
5053a6d1 18150 haveit=
d70419f1 18151 for x in $CPPFLAGS; do
632b71ea
DWT
18152
18153 acl_save_prefix="$prefix"
18154 prefix="$acl_final_prefix"
18155 acl_save_exec_prefix="$exec_prefix"
18156 exec_prefix="$acl_final_exec_prefix"
5053a6d1 18157 eval x=\"$x\"
632b71ea
DWT
18158 exec_prefix="$acl_save_exec_prefix"
18159 prefix="$acl_save_prefix"
18160
5053a6d1
DWT
18161 if test "X$x" = "X$element"; then
18162 haveit=yes
18163 break
18164 fi
18165 done
18166 if test -z "$haveit"; then
d70419f1 18167 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5053a6d1
DWT
18168 fi
18169 done
18170
66170b30 18171
7eda51e0
JF
18172 for element in `$PKG_CONFIG --libs $cy_webkit_pkg`; do
18173 haveit=
18174 for x in $LIBS; do
18175
18176 acl_save_prefix="$prefix"
18177 prefix="$acl_final_prefix"
18178 acl_save_exec_prefix="$exec_prefix"
18179 exec_prefix="$acl_final_exec_prefix"
18180 eval x=\"$x\"
18181 exec_prefix="$acl_save_exec_prefix"
18182 prefix="$acl_save_prefix"
18183
18184 if test "X$x" = "X$element"; then
18185 haveit=yes
18186 break
18187 fi
18188 done
18189 if test -z "$haveit"; then
18190 LIBS="${LIBS}${LIBS:+ }$element"
18191 fi
18192 done
66170b30
JF
18193
18194
7eda51e0
JF
18195fi; if test "x$CY_EXECUTE" = x1; then break; fi
18196 done
632b71ea 18197
5053a6d1 18198fi
7eda51e0
JF
18199 ;; #(
18200 no) :
18201
18202 CY_EXECUTE=0
18203 ;; #(
18204 JavaScriptCore) :
5053a6d1 18205
5053a6d1
DWT
18206
18207
18208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
18209$as_echo_n "checking for framework JavaScriptCore... " >&6; }
ee134472 18210if ${ac_cv_framework_JavaScriptCore+:} false; then :
5053a6d1
DWT
18211 $as_echo_n "(cached) " >&6
18212else
18213
18214 ac_check_framework_save_LIBS=$LIBS
18215 LIBS="-framework JavaScriptCore $LIBS"
18216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18217/* end confdefs.h. */
18218
7eda51e0 18219 #include <JavaScriptCore/JSBase.h>
5053a6d1
DWT
18220
18221int
18222main ()
18223{
66170b30 18224
7eda51e0 18225 JSEvaluateScript(0, 0, 0, 0, 0, 0);
66170b30 18226
5053a6d1
DWT
18227 ;
18228 return 0;
18229}
18230_ACEOF
18231if ac_fn_cxx_try_link "$LINENO"; then :
18232
18233 ac_cv_framework_JavaScriptCore=yes
18234
18235else
18236 ac_cv_framework_JavaScriptCore=no
18237fi
18238rm -f core conftest.err conftest.$ac_objext \
18239 conftest$ac_exeext conftest.$ac_ext
18240 LIBS=$ac_check_framework_save_LIBS
18241
18242fi
18243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
18244$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
18245 if test $ac_cv_framework_JavaScriptCore = yes; then :
18246
18247
7eda51e0 18248 for element in "-framework JavaScriptCore"; do
5053a6d1
DWT
18249 haveit=
18250 for x in $LIBS; do
632b71ea
DWT
18251
18252 acl_save_prefix="$prefix"
18253 prefix="$acl_final_prefix"
18254 acl_save_exec_prefix="$exec_prefix"
18255 exec_prefix="$acl_final_exec_prefix"
5053a6d1
DWT
18256 eval x=\"$x\"
18257 exec_prefix="$acl_save_exec_prefix"
18258 prefix="$acl_save_prefix"
632b71ea 18259
5053a6d1
DWT
18260 if test "X$x" = "X$element"; then
18261 haveit=yes
18262 break
18263 fi
18264 done
18265 if test -z "$haveit"; then
18266 LIBS="${LIBS}${LIBS:+ }$element"
18267 fi
18268 done
18269
66170b30 18270
7eda51e0 18271 CY_EXECUTE=1
66170b30 18272
5053a6d1 18273
5053a6d1
DWT
18274
18275else
5053a6d1 18276
7eda51e0 18277 for cy_webkit_pkg in "webkit-1.0" "WebKitGtk"; do
66170b30 18278
7eda51e0
JF
18279pkg_failed=no
18280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
18281$as_echo_n "checking for WEBKIT... " >&6; }
5053a6d1 18282
7eda51e0
JF
18283if test -n "$WEBKIT_CFLAGS"; then
18284 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
18285 elif test -n "$PKG_CONFIG"; then
18286 if test -n "$PKG_CONFIG" && \
18287 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
18288 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
18289 ac_status=$?
18290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18291 test $ac_status = 0; }; then
18292 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "$cy_webkit_pkg" 2>/dev/null`
18293else
18294 pkg_failed=yes
18295fi
18296 else
18297 pkg_failed=untried
18298fi
18299if test -n "$WEBKIT_LIBS"; then
18300 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
18301 elif test -n "$PKG_CONFIG"; then
18302 if test -n "$PKG_CONFIG" && \
18303 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
18304 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
18305 ac_status=$?
18306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18307 test $ac_status = 0; }; then
18308 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "$cy_webkit_pkg" 2>/dev/null`
18309else
18310 pkg_failed=yes
18311fi
18312 else
18313 pkg_failed=untried
18314fi
632b71ea 18315
7eda51e0
JF
18316
18317
18318if test $pkg_failed = yes; then
18319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18320$as_echo "no" >&6; }
18321
18322if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18323 _pkg_short_errors_supported=yes
18324else
18325 _pkg_short_errors_supported=no
18326fi
18327 if test $_pkg_short_errors_supported = yes; then
18328 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$cy_webkit_pkg" 2>&1`
18329 else
18330 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "$cy_webkit_pkg" 2>&1`
18331 fi
18332 # Put the nasty error message in config.log where it belongs
18333 echo "$WEBKIT_PKG_ERRORS" >&5
18334
18335 :
18336elif test $pkg_failed = untried; then
18337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18338$as_echo "no" >&6; }
18339 :
18340else
18341 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
18342 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
18343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18344$as_echo "yes" >&6; }
18345
18346 CY_EXECUTE=1
18347
18348
7eda51e0
JF
18349 for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do
18350 haveit=
d70419f1 18351 for x in $CPPFLAGS; do
5053a6d1 18352
7eda51e0
JF
18353 acl_save_prefix="$prefix"
18354 prefix="$acl_final_prefix"
18355 acl_save_exec_prefix="$exec_prefix"
18356 exec_prefix="$acl_final_exec_prefix"
18357 eval x=\"$x\"
18358 exec_prefix="$acl_save_exec_prefix"
18359 prefix="$acl_save_prefix"
5053a6d1 18360
7eda51e0
JF
18361 if test "X$x" = "X$element"; then
18362 haveit=yes
18363 break
18364 fi
18365 done
18366 if test -z "$haveit"; then
d70419f1 18367 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7eda51e0
JF
18368 fi
18369 done
5053a6d1 18370
5053a6d1 18371
7eda51e0 18372 for element in `$PKG_CONFIG --libs $cy_webkit_pkg`; do
632b71ea 18373 haveit=
5053a6d1 18374 for x in $LIBS; do
9c60689e 18375
632b71ea
DWT
18376 acl_save_prefix="$prefix"
18377 prefix="$acl_final_prefix"
18378 acl_save_exec_prefix="$exec_prefix"
18379 exec_prefix="$acl_final_exec_prefix"
18380 eval x=\"$x\"
18381 exec_prefix="$acl_save_exec_prefix"
18382 prefix="$acl_save_prefix"
18383
18384 if test "X$x" = "X$element"; then
18385 haveit=yes
18386 break
18387 fi
18388 done
18389 if test -z "$haveit"; then
5053a6d1 18390 LIBS="${LIBS}${LIBS:+ }$element"
632b71ea
DWT
18391 fi
18392 done
b128dfee 18393
66170b30 18394
7eda51e0
JF
18395fi; if test "x$CY_EXECUTE" = x1; then break; fi
18396 done
5053a6d1
DWT
18397
18398fi
7eda51e0
JF
18399 ;; #(
18400 *) :
18401 as_fn_error $? "Unknown JavaScript engine: $enableval" "$LINENO" 5 ;;
18402esac
18403
18404else
c823f118 18405
5053a6d1
DWT
18406
18407
18408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
18409$as_echo_n "checking for framework JavaScriptCore... " >&6; }
ee134472 18410if ${ac_cv_framework_JavaScriptCore+:} false; then :
c823f118
DWT
18411 $as_echo_n "(cached) " >&6
18412else
18413
5053a6d1
DWT
18414 ac_check_framework_save_LIBS=$LIBS
18415 LIBS="-framework JavaScriptCore $LIBS"
18416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
632b71ea 18417/* end confdefs.h. */
5053a6d1 18418
7eda51e0 18419 #include <JavaScriptCore/JSBase.h>
5053a6d1 18420
632b71ea
DWT
18421int
18422main ()
18423{
66170b30 18424
7eda51e0 18425 JSEvaluateScript(0, 0, 0, 0, 0, 0);
66170b30 18426
632b71ea
DWT
18427 ;
18428 return 0;
18429}
18430_ACEOF
5053a6d1
DWT
18431if ac_fn_cxx_try_link "$LINENO"; then :
18432
18433 ac_cv_framework_JavaScriptCore=yes
18434
18435else
18436 ac_cv_framework_JavaScriptCore=no
632b71ea
DWT
18437fi
18438rm -f core conftest.err conftest.$ac_objext \
18439 conftest$ac_exeext conftest.$ac_ext
5053a6d1 18440 LIBS=$ac_check_framework_save_LIBS
b128dfee 18441
c823f118 18442fi
5053a6d1
DWT
18443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
18444$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
18445 if test $ac_cv_framework_JavaScriptCore = yes; then :
c823f118
DWT
18446
18447
7eda51e0 18448 for element in "-framework JavaScriptCore"; do
5053a6d1
DWT
18449 haveit=
18450 for x in $LIBS; do
18451
18452 acl_save_prefix="$prefix"
18453 prefix="$acl_final_prefix"
18454 acl_save_exec_prefix="$exec_prefix"
18455 exec_prefix="$acl_final_exec_prefix"
18456 eval x=\"$x\"
18457 exec_prefix="$acl_save_exec_prefix"
18458 prefix="$acl_save_prefix"
18459
18460 if test "X$x" = "X$element"; then
18461 haveit=yes
18462 break
18463 fi
18464 done
18465 if test -z "$haveit"; then
18466 LIBS="${LIBS}${LIBS:+ }$element"
18467 fi
18468 done
c823f118 18469
66170b30 18470
7eda51e0
JF
18471 CY_EXECUTE=1
18472
18473
18474
18475else
18476
18477 for cy_webkit_pkg in "webkit-1.0" "WebKitGtk"; do
18478
18479pkg_failed=no
18480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
18481$as_echo_n "checking for WEBKIT... " >&6; }
18482
18483if test -n "$WEBKIT_CFLAGS"; then
18484 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
18485 elif test -n "$PKG_CONFIG"; then
18486 if test -n "$PKG_CONFIG" && \
18487 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
18488 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
18489 ac_status=$?
18490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18491 test $ac_status = 0; }; then
18492 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "$cy_webkit_pkg" 2>/dev/null`
18493else
18494 pkg_failed=yes
18495fi
18496 else
18497 pkg_failed=untried
18498fi
18499if test -n "$WEBKIT_LIBS"; then
18500 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
18501 elif test -n "$PKG_CONFIG"; then
18502 if test -n "$PKG_CONFIG" && \
18503 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
18504 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
18505 ac_status=$?
18506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18507 test $ac_status = 0; }; then
18508 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "$cy_webkit_pkg" 2>/dev/null`
18509else
18510 pkg_failed=yes
18511fi
18512 else
18513 pkg_failed=untried
18514fi
18515
66170b30
JF
18516
18517
7eda51e0
JF
18518if test $pkg_failed = yes; then
18519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18520$as_echo "no" >&6; }
b128dfee 18521
7eda51e0
JF
18522if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18523 _pkg_short_errors_supported=yes
18524else
18525 _pkg_short_errors_supported=no
632b71ea 18526fi
7eda51e0
JF
18527 if test $_pkg_short_errors_supported = yes; then
18528 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$cy_webkit_pkg" 2>&1`
18529 else
18530 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "$cy_webkit_pkg" 2>&1`
18531 fi
18532 # Put the nasty error message in config.log where it belongs
18533 echo "$WEBKIT_PKG_ERRORS" >&5
c823f118 18534
7eda51e0
JF
18535 :
18536elif test $pkg_failed = untried; then
18537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18538$as_echo "no" >&6; }
18539 :
5053a6d1
DWT
18540else
18541 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
18542 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
18543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18544$as_echo "yes" >&6; }
c823f118 18545
7eda51e0
JF
18546 CY_EXECUTE=1
18547
66170b30 18548
7eda51e0 18549 for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do
5053a6d1 18550 haveit=
d70419f1 18551 for x in $CPPFLAGS; do
c823f118 18552
5053a6d1
DWT
18553 acl_save_prefix="$prefix"
18554 prefix="$acl_final_prefix"
18555 acl_save_exec_prefix="$exec_prefix"
18556 exec_prefix="$acl_final_exec_prefix"
18557 eval x=\"$x\"
18558 exec_prefix="$acl_save_exec_prefix"
18559 prefix="$acl_save_prefix"
c823f118 18560
5053a6d1
DWT
18561 if test "X$x" = "X$element"; then
18562 haveit=yes
18563 break
18564 fi
18565 done
18566 if test -z "$haveit"; then
d70419f1 18567 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5053a6d1
DWT
18568 fi
18569 done
c823f118 18570
b66977f1 18571
7eda51e0 18572 for element in `$PKG_CONFIG --libs $cy_webkit_pkg`; do
5053a6d1
DWT
18573 haveit=
18574 for x in $LIBS; do
18575
18576 acl_save_prefix="$prefix"
18577 prefix="$acl_final_prefix"
18578 acl_save_exec_prefix="$exec_prefix"
18579 exec_prefix="$acl_final_exec_prefix"
18580 eval x=\"$x\"
18581 exec_prefix="$acl_save_exec_prefix"
18582 prefix="$acl_save_prefix"
18583
18584 if test "X$x" = "X$element"; then
18585 haveit=yes
18586 break
18587 fi
18588 done
18589 if test -z "$haveit"; then
18590 LIBS="${LIBS}${LIBS:+ }$element"
18591 fi
18592 done
18593
18594
7eda51e0
JF
18595fi; if test "x$CY_EXECUTE" = x1; then break; fi
18596 done
18597
5053a6d1 18598fi
5053a6d1 18599
7eda51e0 18600fi
b66977f1
DWT
18601
18602
18603
7eda51e0
JF
18604 apr_found="no"
18605
18606 if test "$target_os" = "os2-emx"; then
18607 # Scripts don't pass test -x on OS/2
18608 TEST_X="test -f"
18609 else
18610 TEST_X="test -x"
18611 fi
18612
18613 acceptable_majors="1"
18614
18615 apr_temp_acceptable_apr_config=""
18616 for apr_temp_major in $acceptable_majors
18617 do
18618 case $apr_temp_major in
18619 0)
18620 apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-config"
18621 ;;
18622 *)
18623 apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-$apr_temp_major-config"
18624 ;;
18625 esac
18626 done
18627
18628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APR" >&5
18629$as_echo_n "checking for APR... " >&6; }
18630
18631# Check whether --with-apr was given.
18632if test "${with_apr+set}" = set; then :
18633 withval=$with_apr;
18634 if test "$withval" = "no" || test "$withval" = "yes"; then
18635 as_fn_error $? "--with-apr requires a directory or file to be provided" "$LINENO" 5
18636 fi
18637
18638 for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config
18639 do
18640 for lookdir in "$withval/bin" "$withval"
18641 do
18642 if $TEST_X "$lookdir/$apr_temp_apr_config_file"; then
18643 apr_config="$lookdir/$apr_temp_apr_config_file"
18644
18645 apr_found="yes"
18646 break 2
18647 fi
18648 done
18649 done
18650
18651 if test "$apr_found" != "yes" && $TEST_X "$withval" && $withval --help > /dev/null 2>&1 ; then
18652 apr_config="$withval"
18653 apr_found="yes"
18654 fi
18655
18656 if test "$apr_found" != "yes"; then
18657 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
18658 fi
b66977f1 18659
b66977f1 18660else
7eda51e0
JF
18661
18662 if test -n "1" && test "1" = "1"; then
18663 for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config
18664 do
18665 if $apr_temp_apr_config_file --help > /dev/null 2>&1 ; then
18666 apr_config="$apr_temp_apr_config_file"
18667
18668 apr_found="yes"
18669 break
18670 else
18671 for lookdir in /usr /usr/local /usr/local/apr /opt/apr; do
18672 if $TEST_X "$lookdir/bin/$apr_temp_apr_config_file"; then
18673 apr_config="$lookdir/bin/$apr_temp_apr_config_file"
18674
18675 apr_found="yes"
18676 break 2
18677 fi
18678 done
18679 fi
18680 done
18681 fi
18682 if test "$apr_found" = "no" && test -d ""; then
18683 apr_temp_abs_srcdir="`cd && pwd`"
18684 apr_found="reconfig"
18685 apr_bundled_major="`sed -n '/#define.*APR_MAJOR_VERSION/s/^[^0-9]*\([0-9]*\).*$/\1/p' \"/include/apr_version.h\"`"
18686 case $apr_bundled_major in
18687 "")
18688 as_fn_error $? "failed to find major version of bundled APR" "$LINENO" 5
18689 ;;
18690 0)
18691 apr_temp_apr_config_file="apr-config"
18692 ;;
18693 *)
18694 apr_temp_apr_config_file="apr-$apr_bundled_major-config"
18695 ;;
18696 esac
18697 if test -n ""; then
18698 apr_config="/$apr_temp_apr_config_file"
18699 else
18700 apr_config="/$apr_temp_apr_config_file"
18701 fi
18702 fi
18703
b66977f1 18704fi
7eda51e0
JF
18705
18706
18707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_found" >&5
18708$as_echo "$apr_found" >&6; }
18709
18710case $apr_found in #(
18711 yes) :
18712
18713
18714 for element in `$apr_config --includes`; do
18715 haveit=
18716 for x in $CPPFLAGS; do
18717
18718 acl_save_prefix="$prefix"
18719 prefix="$acl_final_prefix"
18720 acl_save_exec_prefix="$exec_prefix"
18721 exec_prefix="$acl_final_exec_prefix"
18722 eval x=\"$x\"
18723 exec_prefix="$acl_save_exec_prefix"
18724 prefix="$acl_save_prefix"
18725
18726 if test "X$x" = "X$element"; then
18727 haveit=yes
18728 break
18729 fi
18730 done
18731 if test -z "$haveit"; then
18732 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18733 fi
18734 done
18735
18736
18737 for element in `$apr_config --link-libtool`; do
18738 haveit=
18739 for x in $LTLIBAPR; do
18740
18741 acl_save_prefix="$prefix"
18742 prefix="$acl_final_prefix"
18743 acl_save_exec_prefix="$exec_prefix"
18744 exec_prefix="$acl_final_exec_prefix"
18745 eval x=\"$x\"
18746 exec_prefix="$acl_save_exec_prefix"
18747 prefix="$acl_save_prefix"
18748
18749 if test "X$x" = "X$element"; then
18750 haveit=yes
18751 break
18752 fi
18753 done
18754 if test -z "$haveit"; then
18755 LTLIBAPR="${LTLIBAPR}${LTLIBAPR:+ }$element"
18756 fi
18757 done
18758
18759
18760 ;; #(
18761 *) :
18762 as_fn_error $? "missing \"libapr\"" "$LINENO" 5 ;;
18763esac
18764
18765
18766
18767 if test "x$CY_EXECUTE" = x1; then
18768 CY_EXECUTE_TRUE=
18769 CY_EXECUTE_FALSE='#'
b66977f1 18770else
7eda51e0
JF
18771 CY_EXECUTE_TRUE='#'
18772 CY_EXECUTE_FALSE=
b66977f1
DWT
18773fi
18774
18775
18776
7eda51e0
JF
18777case $CY_EXECUTE in #(
18778 1) :
18779
18780 for ac_header in ffi.h ffi/ffi.h
18781do :
18782 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18783ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18784if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18785 cat >>confdefs.h <<_ACEOF
18786#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18787_ACEOF
18788 break
b66977f1 18789fi
7eda51e0
JF
18790
18791done
18792
296ee9a6
JF
18793
18794
18795 cy_save=$LIBS
18796 LIBS=
7eda51e0 18797 if test "x$ac_cv_header_ffi_h" = xno && test "x$ac_cv_header_ffi_ffi_h" = xno; then :
b66977f1 18798
b66977f1 18799
296ee9a6
JF
18800 LIBFFI_CFLAGS
18801 C compiler flags for LIBFFI, overriding pkg-config
18802 LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config
b66977f1
DWT
18803
18804pkg_failed=no
7eda51e0
JF
18805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5
18806$as_echo_n "checking for LIBFFI... " >&6; }
b66977f1 18807
7eda51e0
JF
18808if test -n "$LIBFFI_CFLAGS"; then
18809 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS"
12833ad8
JF
18810 elif test -n "$PKG_CONFIG"; then
18811 if test -n "$PKG_CONFIG" && \
7eda51e0
JF
18812 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
18813 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
b66977f1
DWT
18814 ac_status=$?
18815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18816 test $ac_status = 0; }; then
7eda51e0 18817 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null`
b66977f1
DWT
18818else
18819 pkg_failed=yes
18820fi
12833ad8
JF
18821 else
18822 pkg_failed=untried
b66977f1 18823fi
7eda51e0
JF
18824if test -n "$LIBFFI_LIBS"; then
18825 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS"
12833ad8
JF
18826 elif test -n "$PKG_CONFIG"; then
18827 if test -n "$PKG_CONFIG" && \
7eda51e0
JF
18828 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
18829 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
b66977f1
DWT
18830 ac_status=$?
18831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18832 test $ac_status = 0; }; then
7eda51e0 18833 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null`
b66977f1
DWT
18834else
18835 pkg_failed=yes
18836fi
12833ad8
JF
18837 else
18838 pkg_failed=untried
b66977f1
DWT
18839fi
18840
18841
18842
18843if test $pkg_failed = yes; then
12833ad8
JF
18844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18845$as_echo "no" >&6; }
b66977f1
DWT
18846
18847if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18848 _pkg_short_errors_supported=yes
18849else
18850 _pkg_short_errors_supported=no
18851fi
18852 if test $_pkg_short_errors_supported = yes; then
7eda51e0 18853 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libffi" 2>&1`
b66977f1 18854 else
7eda51e0 18855 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libffi" 2>&1`
b66977f1
DWT
18856 fi
18857 # Put the nasty error message in config.log where it belongs
7eda51e0 18858 echo "$LIBFFI_PKG_ERRORS" >&5
b66977f1 18859
7eda51e0
JF
18860 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
18861elif test $pkg_failed = untried; then
18862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18863$as_echo "no" >&6; }
18864 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
18865else
18866 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS
18867 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS
18868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18869$as_echo "yes" >&6; }
b66977f1
DWT
18870
18871
7eda51e0 18872 for element in `$PKG_CONFIG --cflags libffi`; do
b66977f1 18873 haveit=
d70419f1 18874 for x in $CPPFLAGS; do
b66977f1
DWT
18875
18876 acl_save_prefix="$prefix"
18877 prefix="$acl_final_prefix"
18878 acl_save_exec_prefix="$exec_prefix"
18879 exec_prefix="$acl_final_exec_prefix"
18880 eval x=\"$x\"
18881 exec_prefix="$acl_save_exec_prefix"
18882 prefix="$acl_save_prefix"
18883
18884 if test "X$x" = "X$element"; then
18885 haveit=yes
18886 break
18887 fi
18888 done
18889 if test -z "$haveit"; then
d70419f1 18890 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
b66977f1
DWT
18891 fi
18892 done
18893
18894
7eda51e0 18895 for element in `$PKG_CONFIG --libs libffi`; do
b66977f1
DWT
18896 haveit=
18897 for x in $LIBS; do
18898
18899 acl_save_prefix="$prefix"
18900 prefix="$acl_final_prefix"
18901 acl_save_exec_prefix="$exec_prefix"
18902 exec_prefix="$acl_final_exec_prefix"
18903 eval x=\"$x\"
18904 exec_prefix="$acl_save_exec_prefix"
18905 prefix="$acl_save_prefix"
18906
18907 if test "X$x" = "X$element"; then
18908 haveit=yes
18909 break
18910 fi
18911 done
18912 if test -z "$haveit"; then
18913 LIBS="${LIBS}${LIBS:+ }$element"
18914 fi
18915 done
18916
18917
18918fi
18919
7eda51e0
JF
18920else
18921
18922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ffi_call" >&5
18923$as_echo_n "checking for library containing ffi_call... " >&6; }
18924if ${ac_cv_search_ffi_call+:} false; then :
18925 $as_echo_n "(cached) " >&6
18926else
18927 ac_func_search_save_LIBS=$LIBS
18928cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18929/* end confdefs.h. */
18930
18931/* Override any GCC internal prototype to avoid an error.
18932 Use char because int might match the return type of a GCC
18933 builtin and then its argument prototype would still apply. */
18934#ifdef __cplusplus
18935extern "C"
18936#endif
18937char ffi_call ();
18938int
18939main ()
18940{
18941return ffi_call ();
18942 ;
18943 return 0;
18944}
18945_ACEOF
18946for ac_lib in '' ffi; do
18947 if test -z "$ac_lib"; then
18948 ac_res="none required"
18949 else
18950 ac_res=-l$ac_lib
18951 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18952 fi
18953 if ac_fn_cxx_try_link "$LINENO"; then :
18954 ac_cv_search_ffi_call=$ac_res
18955fi
18956rm -f core conftest.err conftest.$ac_objext \
18957 conftest$ac_exeext
18958 if ${ac_cv_search_ffi_call+:} false; then :
18959 break
18960fi
18961done
18962if ${ac_cv_search_ffi_call+:} false; then :
18963
18964else
18965 ac_cv_search_ffi_call=no
18966fi
18967rm conftest.$ac_ext
18968LIBS=$ac_func_search_save_LIBS
18969fi
18970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ffi_call" >&5
18971$as_echo "$ac_cv_search_ffi_call" >&6; }
18972ac_res=$ac_cv_search_ffi_call
18973if test "$ac_res" != no; then :
18974 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18975
18976fi
18977
18978 case $ac_cv_search_ffi_call in #(
18979 no) :
b66977f1
DWT
18980
18981
18982pkg_failed=no
7eda51e0
JF
18983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5
18984$as_echo_n "checking for LIBFFI... " >&6; }
b66977f1 18985
7eda51e0
JF
18986if test -n "$LIBFFI_CFLAGS"; then
18987 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS"
12833ad8
JF
18988 elif test -n "$PKG_CONFIG"; then
18989 if test -n "$PKG_CONFIG" && \
7eda51e0
JF
18990 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
18991 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
b66977f1
DWT
18992 ac_status=$?
18993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18994 test $ac_status = 0; }; then
7eda51e0 18995 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null`
b66977f1
DWT
18996else
18997 pkg_failed=yes
18998fi
12833ad8
JF
18999 else
19000 pkg_failed=untried
b66977f1 19001fi
7eda51e0
JF
19002if test -n "$LIBFFI_LIBS"; then
19003 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS"
12833ad8
JF
19004 elif test -n "$PKG_CONFIG"; then
19005 if test -n "$PKG_CONFIG" && \
7eda51e0
JF
19006 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
19007 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
b66977f1
DWT
19008 ac_status=$?
19009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19010 test $ac_status = 0; }; then
7eda51e0 19011 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null`
b66977f1
DWT
19012else
19013 pkg_failed=yes
19014fi
12833ad8
JF
19015 else
19016 pkg_failed=untried
b66977f1
DWT
19017fi
19018
19019
19020
19021if test $pkg_failed = yes; then
12833ad8
JF
19022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19023$as_echo "no" >&6; }
b66977f1
DWT
19024
19025if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19026 _pkg_short_errors_supported=yes
19027else
19028 _pkg_short_errors_supported=no
19029fi
19030 if test $_pkg_short_errors_supported = yes; then
7eda51e0 19031 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libffi" 2>&1`
b66977f1 19032 else
7eda51e0 19033 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libffi" 2>&1`
b66977f1
DWT
19034 fi
19035 # Put the nasty error message in config.log where it belongs
7eda51e0 19036 echo "$LIBFFI_PKG_ERRORS" >&5
b66977f1 19037
7eda51e0
JF
19038 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
19039elif test $pkg_failed = untried; then
19040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19041$as_echo "no" >&6; }
19042 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
b66977f1 19043else
7eda51e0
JF
19044 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS
19045 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS
19046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19047$as_echo "yes" >&6; }
b66977f1 19048
b66977f1 19049
7eda51e0 19050 for element in `$PKG_CONFIG --cflags libffi`; do
b66977f1 19051 haveit=
d70419f1 19052 for x in $CPPFLAGS; do
7eda51e0
JF
19053
19054 acl_save_prefix="$prefix"
19055 prefix="$acl_final_prefix"
19056 acl_save_exec_prefix="$exec_prefix"
19057 exec_prefix="$acl_final_exec_prefix"
19058 eval x=\"$x\"
19059 exec_prefix="$acl_save_exec_prefix"
19060 prefix="$acl_save_prefix"
19061
19062 if test "X$x" = "X$element"; then
19063 haveit=yes
19064 break
19065 fi
19066 done
19067 if test -z "$haveit"; then
d70419f1 19068 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7eda51e0
JF
19069 fi
19070 done
19071
19072
7eda51e0
JF
19073 for element in `$PKG_CONFIG --libs libffi`; do
19074 haveit=
19075 for x in $LIBS; do
19076
19077 acl_save_prefix="$prefix"
19078 prefix="$acl_final_prefix"
19079 acl_save_exec_prefix="$exec_prefix"
19080 exec_prefix="$acl_final_exec_prefix"
19081 eval x=\"$x\"
19082 exec_prefix="$acl_save_exec_prefix"
19083 prefix="$acl_save_prefix"
19084
19085 if test "X$x" = "X$element"; then
19086 haveit=yes
19087 break
19088 fi
19089 done
19090 if test -z "$haveit"; then
19091 LIBS="${LIBS}${LIBS:+ }$element"
19092 fi
19093 done
19094
19095
19096fi ;; #(
19097 *) :
19098 ;;
19099esac
19100
19101fi
296ee9a6
JF
19102 LTLIBFFI=$LIBS
19103 LIBS=$cy_save
19104
19105
7eda51e0
JF
19106
19107 ac_ext=mm
19108ac_cpp='$OBJCXXCPP $CPPFLAGS'
19109ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19110ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19111ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
19112
19113
19114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we really have Objective C++" >&5
19115$as_echo_n "checking if we really have Objective C++... " >&6; }
19116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19117/* end confdefs.h. */
19118
19119_ACEOF
19120if ac_fn_objcxx_try_compile "$LINENO"; then :
19121
19122 CY_OBJECTIVEC=1
19123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19124$as_echo "yes" >&6; }
19125
19126else
19127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12833ad8 19128$as_echo "no" >&6; }
7eda51e0
JF
19129fi
19130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b66977f1 19131
7eda51e0 19132 if test "x$CY_OBJECTIVEC" = x1; then :
b66977f1 19133
7eda51e0
JF
19134
19135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework CoreFoundation" >&5
19136$as_echo_n "checking for framework CoreFoundation... " >&6; }
19137if ${ac_cv_framework_CoreFoundation+:} false; then :
b66977f1
DWT
19138 $as_echo_n "(cached) " >&6
19139else
19140
19141 ac_check_framework_save_LIBS=$LIBS
7eda51e0 19142 LIBS="-framework CoreFoundation $LIBS"
b66977f1
DWT
19143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19144/* end confdefs.h. */
19145
7eda51e0 19146 #include <CoreFoundation/CFBase.h>
b66977f1
DWT
19147
19148int
19149main ()
19150{
7eda51e0 19151CFAllocatorGetDefault();
b66977f1
DWT
19152 ;
19153 return 0;
19154}
19155_ACEOF
7eda51e0 19156if ac_fn_objcxx_try_link "$LINENO"; then :
b66977f1 19157
7eda51e0 19158 ac_cv_framework_CoreFoundation=yes
b66977f1
DWT
19159
19160else
7eda51e0 19161 ac_cv_framework_CoreFoundation=no
b66977f1
DWT
19162fi
19163rm -f core conftest.err conftest.$ac_objext \
19164 conftest$ac_exeext conftest.$ac_ext
19165 LIBS=$ac_check_framework_save_LIBS
19166
19167fi
7eda51e0
JF
19168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_CoreFoundation" >&5
19169$as_echo "$ac_cv_framework_CoreFoundation" >&6; }
19170 if test $ac_cv_framework_CoreFoundation = yes; then :
b66977f1
DWT
19171
19172
7eda51e0 19173 for element in "-framework CoreFoundation"; do
b66977f1
DWT
19174 haveit=
19175 for x in $LIBS; do
19176
19177 acl_save_prefix="$prefix"
19178 prefix="$acl_final_prefix"
19179 acl_save_exec_prefix="$exec_prefix"
19180 exec_prefix="$acl_final_exec_prefix"
19181 eval x=\"$x\"
19182 exec_prefix="$acl_save_exec_prefix"
19183 prefix="$acl_save_prefix"
19184
19185 if test "X$x" = "X$element"; then
19186 haveit=yes
19187 break
19188 fi
19189 done
19190 if test -z "$haveit"; then
19191 LIBS="${LIBS}${LIBS:+ }$element"
19192 fi
19193 done
19194
66170b30 19195
66170b30
JF
19196
19197
b66977f1 19198
b66977f1 19199
7eda51e0
JF
19200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework Foundation" >&5
19201$as_echo_n "checking for framework Foundation... " >&6; }
19202if ${ac_cv_framework_Foundation+:} false; then :
19203 $as_echo_n "(cached) " >&6
b66977f1 19204else
b66977f1 19205
7eda51e0
JF
19206 ac_check_framework_save_LIBS=$LIBS
19207 LIBS="-framework Foundation $LIBS"
19208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19209/* end confdefs.h. */
66170b30 19210
7eda51e0 19211 #include <Foundation/NSObject.h>
b66977f1 19212
7eda51e0
JF
19213int
19214main ()
19215{
19216[[NSObject alloc] init];
19217 ;
19218 return 0;
19219}
19220_ACEOF
19221if ac_fn_objcxx_try_link "$LINENO"; then :
b66977f1 19222
7eda51e0 19223 ac_cv_framework_Foundation=yes
b66977f1 19224
7eda51e0
JF
19225else
19226 ac_cv_framework_Foundation=no
19227fi
19228rm -f core conftest.err conftest.$ac_objext \
19229 conftest$ac_exeext conftest.$ac_ext
19230 LIBS=$ac_check_framework_save_LIBS
19231
19232fi
19233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Foundation" >&5
19234$as_echo "$ac_cv_framework_Foundation" >&6; }
19235 if test $ac_cv_framework_Foundation = yes; then :
b66977f1
DWT
19236
19237
7eda51e0 19238 for element in "-framework Foundation"; do
b66977f1
DWT
19239 haveit=
19240 for x in $LIBS; do
19241
19242 acl_save_prefix="$prefix"
19243 prefix="$acl_final_prefix"
19244 acl_save_exec_prefix="$exec_prefix"
19245 exec_prefix="$acl_final_exec_prefix"
19246 eval x=\"$x\"
19247 exec_prefix="$acl_save_exec_prefix"
19248 prefix="$acl_save_prefix"
19249
19250 if test "X$x" = "X$element"; then
19251 haveit=yes
19252 break
19253 fi
19254 done
19255 if test -z "$haveit"; then
19256 LIBS="${LIBS}${LIBS:+ }$element"
19257 fi
19258 done
19259
7eda51e0
JF
19260 cat >>confdefs.h <<_ACEOF
19261#define HAVE_FRAMEWORK_FOUNDATION 1
19262_ACEOF
19263
b66977f1
DWT
19264
19265fi
19266
7eda51e0
JF
19267
19268
19269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework WebKit" >&5
19270$as_echo_n "checking for framework WebKit... " >&6; }
19271if ${ac_cv_framework_WebKit+:} false; then :
19272 $as_echo_n "(cached) " >&6
b66977f1 19273else
b66977f1 19274
7eda51e0
JF
19275 ac_check_framework_save_LIBS=$LIBS
19276 LIBS="-framework WebKit $LIBS"
19277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19278/* end confdefs.h. */
66170b30 19279
7eda51e0 19280 #include <WebKit/WebScriptObject.h>
b66977f1 19281
7eda51e0
JF
19282int
19283main ()
19284{
19285[[WebScriptObject alloc] init];
19286 ;
19287 return 0;
19288}
19289_ACEOF
19290if ac_fn_objcxx_try_link "$LINENO"; then :
b66977f1 19291
7eda51e0 19292 ac_cv_framework_WebKit=yes
b66977f1 19293
7eda51e0
JF
19294else
19295 ac_cv_framework_WebKit=no
19296fi
19297rm -f core conftest.err conftest.$ac_objext \
19298 conftest$ac_exeext conftest.$ac_ext
19299 LIBS=$ac_check_framework_save_LIBS
19300
19301fi
19302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_WebKit" >&5
19303$as_echo "$ac_cv_framework_WebKit" >&6; }
19304 if test $ac_cv_framework_WebKit = yes; then :
b66977f1
DWT
19305
19306
7eda51e0 19307 for element in "-framework WebKit"; do
b66977f1
DWT
19308 haveit=
19309 for x in $LIBS; do
19310
19311 acl_save_prefix="$prefix"
19312 prefix="$acl_final_prefix"
19313 acl_save_exec_prefix="$exec_prefix"
19314 exec_prefix="$acl_final_exec_prefix"
19315 eval x=\"$x\"
19316 exec_prefix="$acl_save_exec_prefix"
19317 prefix="$acl_save_prefix"
19318
19319 if test "X$x" = "X$element"; then
19320 haveit=yes
19321 break
19322 fi
19323 done
19324 if test -z "$haveit"; then
19325 LIBS="${LIBS}${LIBS:+ }$element"
19326 fi
19327 done
19328
7eda51e0
JF
19329 cat >>confdefs.h <<_ACEOF
19330#define HAVE_FRAMEWORK_WEBKIT 1
19331_ACEOF
b66977f1 19332
5053a6d1 19333
7eda51e0 19334fi
b66977f1
DWT
19335
19336
7eda51e0 19337else
b66977f1 19338
b66977f1 19339
7eda51e0
JF
19340 for ac_prog in gnustep-config
19341do
19342 # Extract the first word of "$ac_prog", so it can be a program name with args.
19343set dummy $ac_prog; ac_word=$2
19344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19345$as_echo_n "checking for $ac_word... " >&6; }
19346if ${ac_cv_prog_GNUSTEP_CONFIG+:} false; then :
19347 $as_echo_n "(cached) " >&6
b66977f1 19348else
7eda51e0
JF
19349 if test -n "$GNUSTEP_CONFIG"; then
19350 ac_cv_prog_GNUSTEP_CONFIG="$GNUSTEP_CONFIG" # Let the user override the test.
b66977f1 19351else
7eda51e0
JF
19352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19353for as_dir in $PATH
19354do
19355 IFS=$as_save_IFS
19356 test -z "$as_dir" && as_dir=.
19357 for ac_exec_ext in '' $ac_executable_extensions; do
19358 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19359 ac_cv_prog_GNUSTEP_CONFIG="$ac_prog"
19360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19361 break 2
19362 fi
19363done
19364 done
19365IFS=$as_save_IFS
b66977f1 19366
b66977f1 19367fi
b66977f1 19368fi
7eda51e0
JF
19369GNUSTEP_CONFIG=$ac_cv_prog_GNUSTEP_CONFIG
19370if test -n "$GNUSTEP_CONFIG"; then
19371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_CONFIG" >&5
19372$as_echo "$GNUSTEP_CONFIG" >&6; }
b66977f1 19373else
7eda51e0 19374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12833ad8 19375$as_echo "no" >&6; }
b66977f1 19376fi
66170b30 19377
66170b30 19378
7eda51e0
JF
19379 test -n "$GNUSTEP_CONFIG" && break
19380done
b66977f1 19381
b66977f1 19382
7eda51e0 19383 if test "x$GNUSTEP_CONFIG" != x; then :
b66977f1 19384
b66977f1
DWT
19385
19386
7eda51e0 19387 for element in `$GNUSTEP_CONFIG --objc-flags`; do
b66977f1 19388 haveit=
7eda51e0 19389 for x in $OBJCXXFLAGS; do
b66977f1
DWT
19390
19391 acl_save_prefix="$prefix"
19392 prefix="$acl_final_prefix"
19393 acl_save_exec_prefix="$exec_prefix"
19394 exec_prefix="$acl_final_exec_prefix"
19395 eval x=\"$x\"
19396 exec_prefix="$acl_save_exec_prefix"
19397 prefix="$acl_save_prefix"
19398
19399 if test "X$x" = "X$element"; then
19400 haveit=yes
19401 break
19402 fi
19403 done
19404 if test -z "$haveit"; then
7eda51e0 19405 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
b66977f1
DWT
19406 fi
19407 done
19408
66170b30 19409
7eda51e0 19410 for element in `$GNUSTEP_CONFIG --base-libs`; do
b66977f1
DWT
19411 haveit=
19412 for x in $LIBS; do
19413
19414 acl_save_prefix="$prefix"
19415 prefix="$acl_final_prefix"
19416 acl_save_exec_prefix="$exec_prefix"
19417 exec_prefix="$acl_final_exec_prefix"
19418 eval x=\"$x\"
19419 exec_prefix="$acl_save_exec_prefix"
19420 prefix="$acl_save_prefix"
19421
19422 if test "X$x" = "X$element"; then
19423 haveit=yes
19424 break
19425 fi
19426 done
19427 if test -z "$haveit"; then
19428 LIBS="${LIBS}${LIBS:+ }$element"
19429 fi
19430 done
19431
66170b30 19432
7eda51e0
JF
19433else
19434 CY_OBJECTIVEC=0
66170b30 19435
7eda51e0 19436fi
b66977f1
DWT
19437
19438fi
19439
7eda51e0 19440fi
b66977f1 19441
7eda51e0
JF
19442 ac_ext=cpp
19443ac_cpp='$CXXCPP $CPPFLAGS'
19444ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19445ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19446ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
66170b30 19447
7eda51e0
JF
19448 ;; #(
19449 *) :
19450 ;;
19451esac
b66977f1 19452
7eda51e0
JF
19453 if test "x$CY_OBJECTIVEC" = x1; then
19454 CY_OBJECTIVEC_TRUE=
19455 CY_OBJECTIVEC_FALSE='#'
19456else
19457 CY_OBJECTIVEC_TRUE='#'
19458 CY_OBJECTIVEC_FALSE=
19459fi
b66977f1 19460
b66977f1 19461
b66977f1 19462
7eda51e0
JF
19463 cy_save=$LIBS
19464 LIBS=
b66977f1 19465
7eda51e0
JF
19466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
19467$as_echo_n "checking for a readline compatible library... " >&6; }
19468if ${ax_cv_lib_readline+:} false; then :
19469 $as_echo_n "(cached) " >&6
b66977f1 19470else
b66977f1 19471
7eda51e0
JF
19472 ORIG_LIBS="$LIBS"
19473 for readline_lib in readline edit editline; do
19474 for termcap_lib in "" termcap curses ncurses; do
19475 if test -z "$termcap_lib"; then
19476 TRY_LIB="-l$readline_lib"
b66977f1 19477 else
7eda51e0 19478 TRY_LIB="-l$readline_lib -l$termcap_lib"
b66977f1 19479 fi
7eda51e0
JF
19480 LIBS="$ORIG_LIBS $TRY_LIB"
19481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b66977f1
DWT
19482/* end confdefs.h. */
19483
7eda51e0
JF
19484/* Override any GCC internal prototype to avoid an error.
19485 Use char because int might match the return type of a GCC
19486 builtin and then its argument prototype would still apply. */
19487#ifdef __cplusplus
19488extern "C"
19489#endif
19490char readline ();
b66977f1
DWT
19491int
19492main ()
19493{
7eda51e0 19494return readline ();
b66977f1
DWT
19495 ;
19496 return 0;
19497}
19498_ACEOF
19499if ac_fn_cxx_try_link "$LINENO"; then :
7eda51e0 19500 ax_cv_lib_readline="$TRY_LIB"
b66977f1
DWT
19501fi
19502rm -f core conftest.err conftest.$ac_objext \
19503 conftest$ac_exeext conftest.$ac_ext
7eda51e0
JF
19504 if test -n "$ax_cv_lib_readline"; then
19505 break
19506 fi
19507 done
19508 if test -n "$ax_cv_lib_readline"; then
b66977f1
DWT
19509 break
19510 fi
19511 done
7eda51e0
JF
19512 if test -z "$ax_cv_lib_readline"; then
19513 ax_cv_lib_readline="no"
b66977f1 19514 fi
7eda51e0 19515 LIBS="$ORIG_LIBS"
b66977f1 19516
7eda51e0
JF
19517fi
19518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lib_readline" >&5
19519$as_echo "$ax_cv_lib_readline" >&6; }
66170b30 19520
7eda51e0
JF
19521 if test "$ax_cv_lib_readline" != "no"; then
19522 LIBS="$LIBS $ax_cv_lib_readline"
66170b30 19523
7eda51e0 19524$as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
66170b30 19525
7eda51e0
JF
19526 for ac_header in readline.h readline/readline.h
19527do :
19528 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19529ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19530if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19531 cat >>confdefs.h <<_ACEOF
19532#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19533_ACEOF
b66977f1
DWT
19534
19535fi
19536
7eda51e0 19537done
b66977f1 19538
7eda51e0
JF
19539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
19540$as_echo_n "checking whether readline supports history... " >&6; }
19541if ${ax_cv_lib_readline_history+:} false; then :
b66977f1
DWT
19542 $as_echo_n "(cached) " >&6
19543else
19544
7eda51e0
JF
19545 ax_cv_lib_readline_history="no"
19546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b66977f1
DWT
19547/* end confdefs.h. */
19548
7eda51e0
JF
19549/* Override any GCC internal prototype to avoid an error.
19550 Use char because int might match the return type of a GCC
19551 builtin and then its argument prototype would still apply. */
19552#ifdef __cplusplus
19553extern "C"
19554#endif
19555char add_history ();
b66977f1
DWT
19556int
19557main ()
19558{
7eda51e0 19559return add_history ();
b66977f1
DWT
19560 ;
19561 return 0;
19562}
19563_ACEOF
19564if ac_fn_cxx_try_link "$LINENO"; then :
7eda51e0 19565 ax_cv_lib_readline_history="yes"
b66977f1
DWT
19566fi
19567rm -f core conftest.err conftest.$ac_objext \
19568 conftest$ac_exeext conftest.$ac_ext
b66977f1
DWT
19569
19570fi
7eda51e0
JF
19571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lib_readline_history" >&5
19572$as_echo "$ax_cv_lib_readline_history" >&6; }
19573 if test "$ax_cv_lib_readline_history" = "yes"; then
b66977f1 19574
7eda51e0 19575$as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
b66977f1 19576
7eda51e0
JF
19577 for ac_header in history.h readline/history.h
19578do :
19579 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19580ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19581if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19582 cat >>confdefs.h <<_ACEOF
19583#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19584_ACEOF
b66977f1 19585
7eda51e0 19586fi
b66977f1 19587
7eda51e0 19588done
b66977f1 19589
7eda51e0
JF
19590 fi
19591 fi
66170b30 19592
7eda51e0
JF
19593 LTLIBREADLINE=$LIBS
19594 LIBS=$cy_save
66170b30
JF
19595
19596
7eda51e0
JF
19597case $ax_cv_lib_readline in #(
19598 no) :
19599 as_fn_error $? "missing \"libreadline\"" "$LINENO" 5 ;; #(
19600 *) :
19601 ;;
19602esac
b66977f1 19603
b66977f1 19604
7eda51e0
JF
19605 cy_save=$LIBS
19606 LIBS=
19607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cur_term" >&5
19608$as_echo_n "checking for library containing cur_term... " >&6; }
19609if ${ac_cv_search_cur_term+:} false; then :
19610 $as_echo_n "(cached) " >&6
b66977f1 19611else
7eda51e0
JF
19612 ac_func_search_save_LIBS=$LIBS
19613cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19614/* end confdefs.h. */
b66977f1 19615
7eda51e0
JF
19616/* Override any GCC internal prototype to avoid an error.
19617 Use char because int might match the return type of a GCC
19618 builtin and then its argument prototype would still apply. */
19619#ifdef __cplusplus
19620extern "C"
19621#endif
19622char cur_term ();
19623int
19624main ()
19625{
19626return cur_term ();
19627 ;
19628 return 0;
19629}
19630_ACEOF
19631for ac_lib in '' termcap; do
19632 if test -z "$ac_lib"; then
19633 ac_res="none required"
19634 else
19635 ac_res=-l$ac_lib
19636 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19637 fi
19638 if ac_fn_cxx_try_link "$LINENO"; then :
19639 ac_cv_search_cur_term=$ac_res
19640fi
19641rm -f core conftest.err conftest.$ac_objext \
19642 conftest$ac_exeext
19643 if ${ac_cv_search_cur_term+:} false; then :
19644 break
19645fi
19646done
19647if ${ac_cv_search_cur_term+:} false; then :
b66977f1 19648
7eda51e0
JF
19649else
19650 ac_cv_search_cur_term=no
19651fi
19652rm conftest.$ac_ext
19653LIBS=$ac_func_search_save_LIBS
19654fi
19655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cur_term" >&5
19656$as_echo "$ac_cv_search_cur_term" >&6; }
19657ac_res=$ac_cv_search_cur_term
19658if test "$ac_res" != no; then :
19659 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
b66977f1
DWT
19660
19661fi
19662
7eda51e0
JF
19663 LTLIBTERMCAP=$LIBS
19664 LIBS=$cy_save
b66977f1 19665
66170b30 19666
b66977f1 19667
7eda51e0
JF
19668ac_ext=c
19669ac_cpp='$CPP $CPPFLAGS'
19670ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19671ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19672ac_compiler_gnu=$ac_cv_c_compiler_gnu
19673
b66977f1 19674
7eda51e0
JF
19675 if test "X$prefix" = "XNONE"; then
19676 acl_final_prefix="$ac_default_prefix"
19677 else
19678 acl_final_prefix="$prefix"
19679 fi
19680 if test "X$exec_prefix" = "XNONE"; then
19681 acl_final_exec_prefix='${prefix}'
19682 else
19683 acl_final_exec_prefix="$exec_prefix"
19684 fi
b66977f1
DWT
19685 acl_save_prefix="$prefix"
19686 prefix="$acl_final_prefix"
7eda51e0 19687 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
b66977f1
DWT
19688 prefix="$acl_save_prefix"
19689
b66977f1
DWT
19690
19691
7eda51e0
JF
19692# Check whether --with-gnu-ld was given.
19693if test "${with_gnu_ld+set}" = set; then :
19694 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
19695else
19696 with_gnu_ld=no
19697fi
b66977f1 19698
7eda51e0
JF
19699# Prepare PATH_SEPARATOR.
19700# The user is always right.
19701if test "${PATH_SEPARATOR+set}" != set; then
19702 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
19703 # contains only /bin. Note that ksh looks also at the FPATH variable,
19704 # so we have to set that as well for the test.
19705 PATH_SEPARATOR=:
19706 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
19707 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
19708 || PATH_SEPARATOR=';'
19709 }
19710fi
b66977f1 19711
7eda51e0
JF
19712ac_prog=ld
19713if test "$GCC" = yes; then
19714 # Check if gcc -print-prog-name=ld gives a path.
19715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
19716$as_echo_n "checking for ld used by $CC... " >&6; }
19717 case $host in
19718 *-*-mingw*)
19719 # gcc leaves a trailing carriage return which upsets mingw
19720 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
19721 *)
19722 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
19723 esac
19724 case $ac_prog in
19725 # Accept absolute paths.
19726 [\\/]* | ?:[\\/]*)
19727 re_direlt='/[^/][^/]*/\.\./'
19728 # Canonicalize the pathname of ld
19729 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
19730 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
19731 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
19732 done
19733 test -z "$LD" && LD="$ac_prog"
19734 ;;
19735 "")
19736 # If it fails, then pretend we aren't using GCC.
19737 ac_prog=ld
19738 ;;
19739 *)
19740 # If it is relative, then search for the first ld in PATH.
19741 with_gnu_ld=unknown
19742 ;;
19743 esac
19744elif test "$with_gnu_ld" = yes; then
19745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
19746$as_echo_n "checking for GNU ld... " >&6; }
19747else
19748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
19749$as_echo_n "checking for non-GNU ld... " >&6; }
19750fi
19751if ${acl_cv_path_LD+:} false; then :
19752 $as_echo_n "(cached) " >&6
19753else
19754 if test -z "$LD"; then
19755 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
19756 for ac_dir in $PATH; do
19757 IFS="$acl_save_ifs"
19758 test -z "$ac_dir" && ac_dir=.
19759 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
19760 acl_cv_path_LD="$ac_dir/$ac_prog"
19761 # Check to see if the program is GNU ld. I'd rather use --version,
19762 # but apparently some variants of GNU ld only accept -v.
19763 # Break only if it was the GNU/non-GNU ld that we prefer.
19764 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
19765 *GNU* | *'with BFD'*)
19766 test "$with_gnu_ld" != no && break
19767 ;;
19768 *)
19769 test "$with_gnu_ld" != yes && break
19770 ;;
19771 esac
b66977f1
DWT
19772 fi
19773 done
7eda51e0
JF
19774 IFS="$acl_save_ifs"
19775else
19776 acl_cv_path_LD="$LD" # Let the user override the test with a path.
b66977f1 19777fi
66170b30
JF
19778fi
19779
7eda51e0
JF
19780LD="$acl_cv_path_LD"
19781if test -n "$LD"; then
19782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
19783$as_echo "$LD" >&6; }
19784else
19785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19786$as_echo "no" >&6; }
19787fi
19788test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
19789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
19790$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
19791if ${acl_cv_prog_gnu_ld+:} false; then :
19792 $as_echo_n "(cached) " >&6
19793else
19794 # I'd rather use --version here, but apparently some GNU lds only accept -v.
19795case `$LD -v 2>&1 </dev/null` in
19796*GNU* | *'with BFD'*)
19797 acl_cv_prog_gnu_ld=yes
19798 ;;
19799*)
19800 acl_cv_prog_gnu_ld=no
19801 ;;
19802esac
19803fi
19804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
19805$as_echo "$acl_cv_prog_gnu_ld" >&6; }
19806with_gnu_ld=$acl_cv_prog_gnu_ld
66170b30
JF
19807
19808
66170b30 19809
66170b30 19810
7eda51e0
JF
19811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
19812$as_echo_n "checking for shared library run path origin... " >&6; }
19813if ${acl_cv_rpath+:} false; then :
19814 $as_echo_n "(cached) " >&6
19815else
66170b30 19816
7eda51e0
JF
19817 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
19818 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
19819 . ./conftest.sh
19820 rm -f ./conftest.sh
19821 acl_cv_rpath=done
66170b30 19822
7eda51e0
JF
19823fi
19824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
19825$as_echo "$acl_cv_rpath" >&6; }
19826 wl="$acl_cv_wl"
19827 acl_libext="$acl_cv_libext"
19828 acl_shlibext="$acl_cv_shlibext"
19829 acl_libname_spec="$acl_cv_libname_spec"
19830 acl_library_names_spec="$acl_cv_library_names_spec"
19831 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
19832 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
19833 acl_hardcode_direct="$acl_cv_hardcode_direct"
19834 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
19835 # Check whether --enable-rpath was given.
19836if test "${enable_rpath+set}" = set; then :
19837 enableval=$enable_rpath; :
19838else
19839 enable_rpath=yes
19840fi
66170b30 19841
66170b30 19842
66170b30 19843
66170b30 19844
7eda51e0
JF
19845 acl_libdirstem=lib
19846 acl_libdirstem2=
19847 case "$host_os" in
19848 solaris*)
19849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
19850$as_echo_n "checking for 64-bit host... " >&6; }
19851if ${gl_cv_solaris_64bit+:} false; then :
19852 $as_echo_n "(cached) " >&6
19853else
19854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19855/* end confdefs.h. */
66170b30 19856
7eda51e0
JF
19857#ifdef _LP64
19858sixtyfour bits
19859#endif
66170b30 19860
7eda51e0
JF
19861_ACEOF
19862if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19863 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
19864 gl_cv_solaris_64bit=yes
66170b30 19865else
7eda51e0
JF
19866 gl_cv_solaris_64bit=no
19867fi
19868rm -f conftest*
66170b30 19869
66170b30 19870
7eda51e0
JF
19871fi
19872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
19873$as_echo "$gl_cv_solaris_64bit" >&6; }
19874 if test $gl_cv_solaris_64bit = yes; then
19875 acl_libdirstem=lib/64
19876 case "$host_cpu" in
19877 sparc*) acl_libdirstem2=lib/sparcv9 ;;
19878 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
19879 esac
66170b30 19880 fi
7eda51e0
JF
19881 ;;
19882 *)
19883 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
19884 if test -n "$searchpath"; then
19885 acl_save_IFS="${IFS= }"; IFS=":"
19886 for searchdir in $searchpath; do
19887 if test -d "$searchdir"; then
19888 case "$searchdir" in
19889 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
19890 */../ | */.. )
19891 # Better ignore directories of this form. They are misleading.
19892 ;;
19893 *) searchdir=`cd "$searchdir" && pwd`
19894 case "$searchdir" in
19895 */lib64 ) acl_libdirstem=lib64 ;;
19896 esac ;;
19897 esac
19898 fi
19899 done
19900 IFS="$acl_save_IFS"
19901 fi
19902 ;;
19903 esac
19904 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
5053a6d1 19905
9c60689e 19906
5053a6d1 19907
66170b30 19908
66170b30
JF
19909
19910
7eda51e0
JF
19911
19912
19913
19914
19915
19916
19917 use_additional=yes
66170b30
JF
19918
19919 acl_save_prefix="$prefix"
19920 prefix="$acl_final_prefix"
19921 acl_save_exec_prefix="$exec_prefix"
19922 exec_prefix="$acl_final_exec_prefix"
7eda51e0
JF
19923
19924 eval additional_includedir=\"$includedir\"
19925 eval additional_libdir=\"$libdir\"
19926
66170b30
JF
19927 exec_prefix="$acl_save_exec_prefix"
19928 prefix="$acl_save_prefix"
19929
a243b558 19930
7eda51e0
JF
19931# Check whether --with-libiconv-prefix was given.
19932if test "${with_libiconv_prefix+set}" = set; then :
19933 withval=$with_libiconv_prefix;
19934 if test "X$withval" = "Xno"; then
19935 use_additional=no
19936 else
19937 if test "X$withval" = "X"; then
a243b558
JF
19938
19939 acl_save_prefix="$prefix"
19940 prefix="$acl_final_prefix"
19941 acl_save_exec_prefix="$exec_prefix"
19942 exec_prefix="$acl_final_exec_prefix"
7eda51e0
JF
19943
19944 eval additional_includedir=\"$includedir\"
19945 eval additional_libdir=\"$libdir\"
19946
a243b558
JF
19947 exec_prefix="$acl_save_exec_prefix"
19948 prefix="$acl_save_prefix"
19949
7eda51e0
JF
19950 else
19951 additional_includedir="$withval/include"
19952 additional_libdir="$withval/$acl_libdirstem"
19953 if test "$acl_libdirstem2" != "$acl_libdirstem" \
19954 && ! test -d "$withval/$acl_libdirstem"; then
19955 additional_libdir="$withval/$acl_libdirstem2"
19956 fi
a243b558 19957 fi
a243b558 19958 fi
5053a6d1 19959
e5cca37d
DWT
19960fi
19961
7eda51e0
JF
19962 LIBICONV=
19963 LTLIBICONV=
19964 INCICONV=
19965 LIBICONV_PREFIX=
19966 HAVE_LIBICONV=
19967 rpathdirs=
19968 ltrpathdirs=
19969 names_already_handled=
19970 names_next_round='iconv '
19971 while test -n "$names_next_round"; do
19972 names_this_round="$names_next_round"
19973 names_next_round=
19974 for name in $names_this_round; do
19975 already_handled=
19976 for n in $names_already_handled; do
19977 if test "$n" = "$name"; then
19978 already_handled=yes
19979 break
9c60689e 19980 fi
7eda51e0
JF
19981 done
19982 if test -z "$already_handled"; then
19983 names_already_handled="$names_already_handled $name"
19984 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
19985 eval value=\"\$HAVE_LIB$uppername\"
19986 if test -n "$value"; then
19987 if test "$value" = yes; then
19988 eval value=\"\$LIB$uppername\"
19989 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
19990 eval value=\"\$LTLIB$uppername\"
19991 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
19992 else
19993 :
19994 fi
19995 else
19996 found_dir=
19997 found_la=
19998 found_so=
19999 found_a=
20000 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
20001 if test -n "$acl_shlibext"; then
20002 shrext=".$acl_shlibext" # typically: shrext=.so
20003 else
20004 shrext=
20005 fi
20006 if test $use_additional = yes; then
20007 dir="$additional_libdir"
20008 if test -n "$acl_shlibext"; then
20009 if test -f "$dir/$libname$shrext"; then
20010 found_dir="$dir"
20011 found_so="$dir/$libname$shrext"
20012 else
20013 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
20014 ver=`(cd "$dir" && \
20015 for f in "$libname$shrext".*; do echo "$f"; done \
20016 | sed -e "s,^$libname$shrext\\\\.,," \
20017 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
20018 | sed 1q ) 2>/dev/null`
20019 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
20020 found_dir="$dir"
20021 found_so="$dir/$libname$shrext.$ver"
20022 fi
20023 else
20024 eval library_names=\"$acl_library_names_spec\"
20025 for f in $library_names; do
20026 if test -f "$dir/$f"; then
20027 found_dir="$dir"
20028 found_so="$dir/$f"
20029 break
20030 fi
20031 done
20032 fi
20033 fi
20034 fi
20035 if test "X$found_dir" = "X"; then
20036 if test -f "$dir/$libname.$acl_libext"; then
20037 found_dir="$dir"
20038 found_a="$dir/$libname.$acl_libext"
20039 fi
20040 fi
20041 if test "X$found_dir" != "X"; then
20042 if test -f "$dir/$libname.la"; then
20043 found_la="$dir/$libname.la"
20044 fi
20045 fi
20046 fi
20047 if test "X$found_dir" = "X"; then
20048 for x in $LDFLAGS $LTLIBICONV; do
e5cca37d
DWT
20049
20050 acl_save_prefix="$prefix"
20051 prefix="$acl_final_prefix"
20052 acl_save_exec_prefix="$exec_prefix"
20053 exec_prefix="$acl_final_exec_prefix"
20054 eval x=\"$x\"
20055 exec_prefix="$acl_save_exec_prefix"
20056 prefix="$acl_save_prefix"
20057
7eda51e0
JF
20058 case "$x" in
20059 -L*)
20060 dir=`echo "X$x" | sed -e 's/^X-L//'`
20061 if test -n "$acl_shlibext"; then
20062 if test -f "$dir/$libname$shrext"; then
20063 found_dir="$dir"
20064 found_so="$dir/$libname$shrext"
20065 else
20066 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
20067 ver=`(cd "$dir" && \
20068 for f in "$libname$shrext".*; do echo "$f"; done \
20069 | sed -e "s,^$libname$shrext\\\\.,," \
20070 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
20071 | sed 1q ) 2>/dev/null`
20072 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
20073 found_dir="$dir"
20074 found_so="$dir/$libname$shrext.$ver"
20075 fi
20076 else
20077 eval library_names=\"$acl_library_names_spec\"
20078 for f in $library_names; do
20079 if test -f "$dir/$f"; then
20080 found_dir="$dir"
20081 found_so="$dir/$f"
20082 break
20083 fi
20084 done
20085 fi
20086 fi
20087 fi
20088 if test "X$found_dir" = "X"; then
20089 if test -f "$dir/$libname.$acl_libext"; then
20090 found_dir="$dir"
20091 found_a="$dir/$libname.$acl_libext"
20092 fi
20093 fi
20094 if test "X$found_dir" != "X"; then
20095 if test -f "$dir/$libname.la"; then
20096 found_la="$dir/$libname.la"
20097 fi
20098 fi
20099 ;;
20100 esac
20101 if test "X$found_dir" != "X"; then
20102 break
20103 fi
20104 done
20105 fi
20106 if test "X$found_dir" != "X"; then
20107 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
20108 if test "X$found_so" != "X"; then
20109 if test "$enable_rpath" = no \
20110 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
20111 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
20112 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
20113 else
20114 haveit=
20115 for x in $ltrpathdirs; do
20116 if test "X$x" = "X$found_dir"; then
20117 haveit=yes
20118 break
20119 fi
20120 done
20121 if test -z "$haveit"; then
20122 ltrpathdirs="$ltrpathdirs $found_dir"
20123 fi
20124 if test "$acl_hardcode_direct" = yes; then
20125 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
20126 else
20127 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
20128 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
20129 haveit=
20130 for x in $rpathdirs; do
20131 if test "X$x" = "X$found_dir"; then
20132 haveit=yes
20133 break
20134 fi
20135 done
20136 if test -z "$haveit"; then
20137 rpathdirs="$rpathdirs $found_dir"
20138 fi
20139 else
20140 haveit=
20141 for x in $LDFLAGS $LIBICONV; do
e5cca37d
DWT
20142
20143 acl_save_prefix="$prefix"
20144 prefix="$acl_final_prefix"
20145 acl_save_exec_prefix="$exec_prefix"
20146 exec_prefix="$acl_final_exec_prefix"
20147 eval x=\"$x\"
20148 exec_prefix="$acl_save_exec_prefix"
20149 prefix="$acl_save_prefix"
20150
7eda51e0
JF
20151 if test "X$x" = "X-L$found_dir"; then
20152 haveit=yes
20153 break
20154 fi
20155 done
20156 if test -z "$haveit"; then
20157 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
20158 fi
20159 if test "$acl_hardcode_minus_L" != no; then
20160 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
20161 else
20162 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
20163 fi
20164 fi
20165 fi
20166 fi
20167 else
20168 if test "X$found_a" != "X"; then
20169 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
20170 else
20171 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
20172 fi
20173 fi
20174 additional_includedir=
20175 case "$found_dir" in
20176 */$acl_libdirstem | */$acl_libdirstem/)
20177 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
20178 if test "$name" = 'iconv'; then
20179 LIBICONV_PREFIX="$basedir"
20180 fi
20181 additional_includedir="$basedir/include"
20182 ;;
20183 */$acl_libdirstem2 | */$acl_libdirstem2/)
20184 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
20185 if test "$name" = 'iconv'; then
20186 LIBICONV_PREFIX="$basedir"
20187 fi
20188 additional_includedir="$basedir/include"
20189 ;;
20190 esac
20191 if test "X$additional_includedir" != "X"; then
20192 if test "X$additional_includedir" != "X/usr/include"; then
20193 haveit=
20194 if test "X$additional_includedir" = "X/usr/local/include"; then
20195 if test -n "$GCC"; then
20196 case $host_os in
20197 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
20198 esac
20199 fi
20200 fi
20201 if test -z "$haveit"; then
20202 for x in $CPPFLAGS $INCICONV; do
3fd51f51
DWT
20203
20204 acl_save_prefix="$prefix"
20205 prefix="$acl_final_prefix"
20206 acl_save_exec_prefix="$exec_prefix"
20207 exec_prefix="$acl_final_exec_prefix"
20208 eval x=\"$x\"
20209 exec_prefix="$acl_save_exec_prefix"
20210 prefix="$acl_save_prefix"
20211
7eda51e0
JF
20212 if test "X$x" = "X-I$additional_includedir"; then
20213 haveit=yes
20214 break
20215 fi
20216 done
20217 if test -z "$haveit"; then
20218 if test -d "$additional_includedir"; then
20219 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
20220 fi
20221 fi
20222 fi
20223 fi
20224 fi
20225 if test -n "$found_la"; then
20226 save_libdir="$libdir"
20227 case "$found_la" in
20228 */* | *\\*) . "$found_la" ;;
20229 *) . "./$found_la" ;;
20230 esac
20231 libdir="$save_libdir"
20232 for dep in $dependency_libs; do
20233 case "$dep" in
20234 -L*)
20235 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
20236 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
20237 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
20238 haveit=
20239 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
20240 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
20241 if test -n "$GCC"; then
20242 case $host_os in
20243 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
20244 esac
20245 fi
20246 fi
20247 if test -z "$haveit"; then
20248 haveit=
20249 for x in $LDFLAGS $LIBICONV; do
3fd51f51
DWT
20250
20251 acl_save_prefix="$prefix"
20252 prefix="$acl_final_prefix"
20253 acl_save_exec_prefix="$exec_prefix"
20254 exec_prefix="$acl_final_exec_prefix"
20255 eval x=\"$x\"
20256 exec_prefix="$acl_save_exec_prefix"
20257 prefix="$acl_save_prefix"
20258
7eda51e0
JF
20259 if test "X$x" = "X-L$additional_libdir"; then
20260 haveit=yes
20261 break
20262 fi
20263 done
20264 if test -z "$haveit"; then
20265 if test -d "$additional_libdir"; then
20266 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
20267 fi
20268 fi
20269 haveit=
20270 for x in $LDFLAGS $LTLIBICONV; do
632b71ea
DWT
20271
20272 acl_save_prefix="$prefix"
20273 prefix="$acl_final_prefix"
20274 acl_save_exec_prefix="$exec_prefix"
20275 exec_prefix="$acl_final_exec_prefix"
20276 eval x=\"$x\"
20277 exec_prefix="$acl_save_exec_prefix"
20278 prefix="$acl_save_prefix"
20279
7eda51e0
JF
20280 if test "X$x" = "X-L$additional_libdir"; then
20281 haveit=yes
20282 break
20283 fi
20284 done
20285 if test -z "$haveit"; then
20286 if test -d "$additional_libdir"; then
20287 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
20288 fi
20289 fi
20290 fi
20291 fi
20292 ;;
20293 -R*)
20294 dir=`echo "X$dep" | sed -e 's/^X-R//'`
20295 if test "$enable_rpath" != no; then
20296 haveit=
20297 for x in $rpathdirs; do
20298 if test "X$x" = "X$dir"; then
20299 haveit=yes
20300 break
20301 fi
20302 done
20303 if test -z "$haveit"; then
20304 rpathdirs="$rpathdirs $dir"
20305 fi
20306 haveit=
20307 for x in $ltrpathdirs; do
20308 if test "X$x" = "X$dir"; then
20309 haveit=yes
20310 break
20311 fi
20312 done
20313 if test -z "$haveit"; then
20314 ltrpathdirs="$ltrpathdirs $dir"
20315 fi
20316 fi
20317 ;;
20318 -l*)
20319 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
20320 ;;
20321 *.la)
20322 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
20323 ;;
20324 *)
20325 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
20326 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
20327 ;;
20328 esac
20329 done
20330 fi
20331 else
20332 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
20333 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
20334 fi
20335 fi
632b71ea
DWT
20336 fi
20337 done
632b71ea 20338 done
7eda51e0
JF
20339 if test "X$rpathdirs" != "X"; then
20340 if test -n "$acl_hardcode_libdir_separator"; then
20341 alldirs=
20342 for found_dir in $rpathdirs; do
20343 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
20344 done
20345 acl_save_libdir="$libdir"
20346 libdir="$alldirs"
20347 eval flag=\"$acl_hardcode_libdir_flag_spec\"
20348 libdir="$acl_save_libdir"
20349 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
20350 else
20351 for found_dir in $rpathdirs; do
20352 acl_save_libdir="$libdir"
20353 libdir="$found_dir"
20354 eval flag=\"$acl_hardcode_libdir_flag_spec\"
20355 libdir="$acl_save_libdir"
20356 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
20357 done
20358 fi
20359 fi
20360 if test "X$ltrpathdirs" != "X"; then
20361 for found_dir in $ltrpathdirs; do
20362 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
20363 done
20364 fi
632b71ea 20365
632b71ea 20366
632b71ea 20367
632b71ea
DWT
20368
20369
66170b30 20370
a667869d 20371
632b71ea 20372
632b71ea 20373
632b71ea 20374
a667869d 20375
a667869d 20376
7eda51e0 20377 am_save_CPPFLAGS="$CPPFLAGS"
a667869d 20378
7eda51e0 20379 for element in $INCICONV; do
632b71ea 20380 haveit=
7eda51e0 20381 for x in $CPPFLAGS; do
a667869d 20382
632b71ea
DWT
20383 acl_save_prefix="$prefix"
20384 prefix="$acl_final_prefix"
20385 acl_save_exec_prefix="$exec_prefix"
20386 exec_prefix="$acl_final_exec_prefix"
20387 eval x=\"$x\"
20388 exec_prefix="$acl_save_exec_prefix"
20389 prefix="$acl_save_prefix"
20390
20391 if test "X$x" = "X$element"; then
20392 haveit=yes
20393 break
20394 fi
20395 done
20396 if test -z "$haveit"; then
7eda51e0 20397 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
632b71ea
DWT
20398 fi
20399 done
20400
5053a6d1 20401
7eda51e0
JF
20402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
20403$as_echo_n "checking for iconv... " >&6; }
20404if ${am_cv_func_iconv+:} false; then :
5053a6d1 20405 $as_echo_n "(cached) " >&6
a667869d 20406else
632b71ea 20407
7eda51e0
JF
20408 am_cv_func_iconv="no, consider installing GNU libiconv"
20409 am_cv_lib_iconv=no
20410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5053a6d1 20411/* end confdefs.h. */
632b71ea 20412
7eda51e0
JF
20413#include <stdlib.h>
20414#include <iconv.h>
632b71ea 20415
5053a6d1
DWT
20416int
20417main ()
20418{
7eda51e0
JF
20419iconv_t cd = iconv_open("","");
20420 iconv(cd,NULL,NULL,NULL,NULL);
20421 iconv_close(cd);
5053a6d1
DWT
20422 ;
20423 return 0;
20424}
20425_ACEOF
7eda51e0
JF
20426if ac_fn_c_try_link "$LINENO"; then :
20427 am_cv_func_iconv=yes
5053a6d1
DWT
20428fi
20429rm -f core conftest.err conftest.$ac_objext \
20430 conftest$ac_exeext conftest.$ac_ext
7eda51e0
JF
20431 if test "$am_cv_func_iconv" != yes; then
20432 am_save_LIBS="$LIBS"
20433 LIBS="$LIBS $LIBICONV"
20434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20435/* end confdefs.h. */
5053a6d1 20436
7eda51e0
JF
20437#include <stdlib.h>
20438#include <iconv.h>
5053a6d1 20439
058f1bc8
DWT
20440int
20441main ()
20442{
7eda51e0
JF
20443iconv_t cd = iconv_open("","");
20444 iconv(cd,NULL,NULL,NULL,NULL);
20445 iconv_close(cd);
058f1bc8
DWT
20446 ;
20447 return 0;
20448}
20449_ACEOF
7eda51e0
JF
20450if ac_fn_c_try_link "$LINENO"; then :
20451 am_cv_lib_iconv=yes
20452 am_cv_func_iconv=yes
058f1bc8
DWT
20453fi
20454rm -f core conftest.err conftest.$ac_objext \
20455 conftest$ac_exeext conftest.$ac_ext
7eda51e0 20456 LIBS="$am_save_LIBS"
058f1bc8 20457 fi
a667869d 20458
a667869d 20459fi
7eda51e0
JF
20460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
20461$as_echo "$am_cv_func_iconv" >&6; }
20462 if test "$am_cv_func_iconv" = yes; then
20463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
20464$as_echo_n "checking for working iconv... " >&6; }
20465if ${am_cv_func_iconv_works+:} false; then :
20466 $as_echo_n "(cached) " >&6
20467else
5053a6d1 20468
7eda51e0
JF
20469 am_save_LIBS="$LIBS"
20470 if test $am_cv_lib_iconv = yes; then
20471 LIBS="$LIBS $LIBICONV"
20472 fi
20473 if test "$cross_compiling" = yes; then :
058f1bc8 20474
7eda51e0
JF
20475 case "$host_os" in
20476 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
20477 *) am_cv_func_iconv_works="guessing yes" ;;
20478 esac
058f1bc8 20479
058f1bc8 20480else
7eda51e0 20481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
058f1bc8
DWT
20482/* end confdefs.h. */
20483
7eda51e0
JF
20484#include <iconv.h>
20485#include <string.h>
20486int main ()
a243b558 20487{
7eda51e0
JF
20488 int result = 0;
20489 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
20490 returns. */
20491 {
20492 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
20493 if (cd_utf8_to_88591 != (iconv_t)(-1))
20494 {
20495 static const char input[] = "\342\202\254"; /* EURO SIGN */
20496 char buf[10];
20497 const char *inptr = input;
20498 size_t inbytesleft = strlen (input);
20499 char *outptr = buf;
20500 size_t outbytesleft = sizeof (buf);
20501 size_t res = iconv (cd_utf8_to_88591,
20502 (char **) &inptr, &inbytesleft,
20503 &outptr, &outbytesleft);
20504 if (res == 0)
20505 result |= 1;
20506 iconv_close (cd_utf8_to_88591);
20507 }
20508 }
20509 /* Test against Solaris 10 bug: Failures are not distinguishable from
20510 successful returns. */
20511 {
20512 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
20513 if (cd_ascii_to_88591 != (iconv_t)(-1))
20514 {
20515 static const char input[] = "\263";
20516 char buf[10];
20517 const char *inptr = input;
20518 size_t inbytesleft = strlen (input);
20519 char *outptr = buf;
20520 size_t outbytesleft = sizeof (buf);
20521 size_t res = iconv (cd_ascii_to_88591,
20522 (char **) &inptr, &inbytesleft,
20523 &outptr, &outbytesleft);
20524 if (res == 0)
20525 result |= 2;
20526 iconv_close (cd_ascii_to_88591);
20527 }
20528 }
20529 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
20530 {
20531 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
20532 if (cd_88591_to_utf8 != (iconv_t)(-1))
20533 {
20534 static const char input[] = "\304";
20535 static char buf[2] = { (char)0xDE, (char)0xAD };
20536 const char *inptr = input;
20537 size_t inbytesleft = 1;
20538 char *outptr = buf;
20539 size_t outbytesleft = 1;
20540 size_t res = iconv (cd_88591_to_utf8,
20541 (char **) &inptr, &inbytesleft,
20542 &outptr, &outbytesleft);
20543 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
20544 result |= 4;
20545 iconv_close (cd_88591_to_utf8);
20546 }
20547 }
20548#if 0 /* This bug could be worked around by the caller. */
20549 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
20550 {
20551 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
20552 if (cd_88591_to_utf8 != (iconv_t)(-1))
20553 {
20554 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
20555 char buf[50];
20556 const char *inptr = input;
20557 size_t inbytesleft = strlen (input);
20558 char *outptr = buf;
20559 size_t outbytesleft = sizeof (buf);
20560 size_t res = iconv (cd_88591_to_utf8,
20561 (char **) &inptr, &inbytesleft,
20562 &outptr, &outbytesleft);
20563 if ((int)res > 0)
20564 result |= 8;
20565 iconv_close (cd_88591_to_utf8);
20566 }
20567 }
20568#endif
20569 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
20570 provided. */
20571 if (/* Try standardized names. */
20572 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
20573 /* Try IRIX, OSF/1 names. */
20574 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
20575 /* Try AIX names. */
20576 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
20577 /* Try HP-UX names. */
20578 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
20579 result |= 16;
20580 return result;
20581}
20582_ACEOF
20583if ac_fn_c_try_run "$LINENO"; then :
20584 am_cv_func_iconv_works=yes
20585else
20586 am_cv_func_iconv_works=no
20587fi
20588rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20589 conftest.$ac_objext conftest.beam conftest.$ac_ext
20590fi
058f1bc8 20591
7eda51e0 20592 LIBS="$am_save_LIBS"
058f1bc8 20593
7eda51e0
JF
20594fi
20595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
20596$as_echo "$am_cv_func_iconv_works" >&6; }
20597 case "$am_cv_func_iconv_works" in
20598 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
20599 *) am_func_iconv=yes ;;
20600 esac
20601 else
20602 am_func_iconv=no am_cv_lib_iconv=no
20603 fi
20604 if test "$am_func_iconv" = yes; then
058f1bc8 20605
7eda51e0 20606$as_echo "#define HAVE_ICONV 1" >>confdefs.h
058f1bc8 20607
058f1bc8 20608 fi
7eda51e0
JF
20609 if test "$am_cv_lib_iconv" = yes; then
20610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
20611$as_echo_n "checking how to link with libiconv... " >&6; }
20612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
20613$as_echo "$LIBICONV" >&6; }
20614 else
20615 CPPFLAGS="$am_save_CPPFLAGS"
20616 LIBICONV=
20617 LTLIBICONV=
058f1bc8
DWT
20618 fi
20619
20620
20621
7eda51e0
JF
20622 if test "$am_cv_func_iconv" = yes; then
20623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
20624$as_echo_n "checking for iconv declaration... " >&6; }
20625 if ${am_cv_proto_iconv+:} false; then :
20626 $as_echo_n "(cached) " >&6
20627else
20628
20629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20630/* end confdefs.h. */
20631
20632#include <stdlib.h>
20633#include <iconv.h>
20634extern
20635#ifdef __cplusplus
20636"C"
20637#endif
20638#if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
20639size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
20640#else
20641size_t iconv();
20642#endif
20643
20644int
20645main ()
20646{
20647
20648 ;
20649 return 0;
20650}
20651_ACEOF
20652if ac_fn_c_try_compile "$LINENO"; then :
20653 am_cv_proto_iconv_arg1=""
20654else
20655 am_cv_proto_iconv_arg1="const"
20656fi
20657rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20658 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
20659fi
058f1bc8 20660
7eda51e0
JF
20661 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
20662 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
20663 $am_cv_proto_iconv" >&5
20664$as_echo "
20665 $am_cv_proto_iconv" >&6; }
058f1bc8 20666
7eda51e0
JF
20667cat >>confdefs.h <<_ACEOF
20668#define ICONV_CONST $am_cv_proto_iconv_arg1
20669_ACEOF
058f1bc8
DWT
20670
20671
7eda51e0 20672 fi
058f1bc8 20673
058f1bc8
DWT
20674case $am_cv_func_iconv in #(
20675 yes) :
20676 ;; #(
20677 *) :
66170b30 20678 as_fn_error $? "missing \"libiconv\"" "$LINENO" 5 ;;
058f1bc8
DWT
20679esac
20680ac_ext=cpp
20681ac_cpp='$CXXCPP $CPPFLAGS'
20682ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20683ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20684ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20685
66170b30
JF
20686
20687
9777bd50
JF
20688SO=$acl_shlibext
20689
e1cce270 20690
7eda51e0
JF
20691if test "x$CY_EXECUTE" = x1; then :
20692
20693 ac_fn_cxx_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
ee134472 20694if test "x$ac_cv_header_mach_mach_h" = xyes; then :
e1cce270 20695
7eda51e0 20696 if test -n "$ac_tool_prefix"; then
a243b558 20697 for ac_prog in lipo
794e88e7
DWT
20698 do
20699 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20700set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20702$as_echo_n "checking for $ac_word... " >&6; }
a243b558 20703if ${ac_cv_prog__LIPO+:} false; then :
794e88e7
DWT
20704 $as_echo_n "(cached) " >&6
20705else
a243b558
JF
20706 if test -n "$_LIPO"; then
20707 ac_cv_prog__LIPO="$_LIPO" # Let the user override the test.
794e88e7
DWT
20708else
20709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20710for as_dir in $PATH
20711do
20712 IFS=$as_save_IFS
20713 test -z "$as_dir" && as_dir=.
20714 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 20715 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 20716 ac_cv_prog__LIPO="$ac_tool_prefix$ac_prog"
794e88e7
DWT
20717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20718 break 2
20719 fi
20720done
20721 done
20722IFS=$as_save_IFS
20723
20724fi
20725fi
a243b558
JF
20726_LIPO=$ac_cv_prog__LIPO
20727if test -n "$_LIPO"; then
20728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_LIPO" >&5
20729$as_echo "$_LIPO" >&6; }
794e88e7
DWT
20730else
20731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20732$as_echo "no" >&6; }
20733fi
20734
20735
a243b558 20736 test -n "$_LIPO" && break
794e88e7
DWT
20737 done
20738fi
a243b558
JF
20739if test -z "$_LIPO"; then
20740 ac_ct__LIPO=$_LIPO
20741 for ac_prog in lipo
794e88e7
DWT
20742do
20743 # Extract the first word of "$ac_prog", so it can be a program name with args.
20744set dummy $ac_prog; ac_word=$2
20745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20746$as_echo_n "checking for $ac_word... " >&6; }
a243b558 20747if ${ac_cv_prog_ac_ct__LIPO+:} false; then :
794e88e7
DWT
20748 $as_echo_n "(cached) " >&6
20749else
a243b558
JF
20750 if test -n "$ac_ct__LIPO"; then
20751 ac_cv_prog_ac_ct__LIPO="$ac_ct__LIPO" # Let the user override the test.
794e88e7
DWT
20752else
20753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20754for as_dir in $PATH
20755do
20756 IFS=$as_save_IFS
20757 test -z "$as_dir" && as_dir=.
20758 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 20759 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 20760 ac_cv_prog_ac_ct__LIPO="$ac_prog"
794e88e7
DWT
20761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20762 break 2
20763 fi
20764done
20765 done
20766IFS=$as_save_IFS
20767
20768fi
20769fi
a243b558
JF
20770ac_ct__LIPO=$ac_cv_prog_ac_ct__LIPO
20771if test -n "$ac_ct__LIPO"; then
20772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct__LIPO" >&5
20773$as_echo "$ac_ct__LIPO" >&6; }
794e88e7
DWT
20774else
20775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20776$as_echo "no" >&6; }
20777fi
20778
20779
a243b558 20780 test -n "$ac_ct__LIPO" && break
794e88e7
DWT
20781done
20782
a243b558
JF
20783 if test "x$ac_ct__LIPO" = x; then
20784 _LIPO="as_fn_error $? "missing \"lipo\"" "$LINENO" 5"
794e88e7
DWT
20785 else
20786 case $cross_compiling:$ac_tool_warned in
20787yes:)
20788{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20789$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20790ac_tool_warned=yes ;;
e1cce270 20791esac
a243b558 20792 _LIPO=$ac_ct__LIPO
794e88e7
DWT
20793 fi
20794fi
20795
7eda51e0 20796 if test -n "$ac_tool_prefix"; then
a243b558 20797 for ac_prog in nm
794e88e7
DWT
20798 do
20799 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20800set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20802$as_echo_n "checking for $ac_word... " >&6; }
a243b558 20803if ${ac_cv_prog__NM+:} false; then :
794e88e7
DWT
20804 $as_echo_n "(cached) " >&6
20805else
a243b558
JF
20806 if test -n "$_NM"; then
20807 ac_cv_prog__NM="$_NM" # Let the user override the test.
794e88e7
DWT
20808else
20809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20810for as_dir in $PATH
20811do
20812 IFS=$as_save_IFS
20813 test -z "$as_dir" && as_dir=.
20814 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 20815 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 20816 ac_cv_prog__NM="$ac_tool_prefix$ac_prog"
794e88e7
DWT
20817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20818 break 2
20819 fi
20820done
20821 done
20822IFS=$as_save_IFS
20823
20824fi
20825fi
a243b558
JF
20826_NM=$ac_cv_prog__NM
20827if test -n "$_NM"; then
20828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_NM" >&5
20829$as_echo "$_NM" >&6; }
794e88e7
DWT
20830else
20831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20832$as_echo "no" >&6; }
20833fi
20834
20835
a243b558 20836 test -n "$_NM" && break
794e88e7
DWT
20837 done
20838fi
a243b558
JF
20839if test -z "$_NM"; then
20840 ac_ct__NM=$_NM
20841 for ac_prog in nm
794e88e7
DWT
20842do
20843 # Extract the first word of "$ac_prog", so it can be a program name with args.
20844set dummy $ac_prog; ac_word=$2
20845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20846$as_echo_n "checking for $ac_word... " >&6; }
a243b558 20847if ${ac_cv_prog_ac_ct__NM+:} false; then :
794e88e7
DWT
20848 $as_echo_n "(cached) " >&6
20849else
a243b558
JF
20850 if test -n "$ac_ct__NM"; then
20851 ac_cv_prog_ac_ct__NM="$ac_ct__NM" # Let the user override the test.
794e88e7
DWT
20852else
20853as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20854for as_dir in $PATH
20855do
20856 IFS=$as_save_IFS
20857 test -z "$as_dir" && as_dir=.
20858 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 20859 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 20860 ac_cv_prog_ac_ct__NM="$ac_prog"
794e88e7
DWT
20861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20862 break 2
20863 fi
20864done
20865 done
20866IFS=$as_save_IFS
20867
20868fi
20869fi
a243b558
JF
20870ac_ct__NM=$ac_cv_prog_ac_ct__NM
20871if test -n "$ac_ct__NM"; then
20872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct__NM" >&5
20873$as_echo "$ac_ct__NM" >&6; }
794e88e7
DWT
20874else
20875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20876$as_echo "no" >&6; }
20877fi
20878
20879
a243b558 20880 test -n "$ac_ct__NM" && break
794e88e7
DWT
20881done
20882
a243b558
JF
20883 if test "x$ac_ct__NM" = x; then
20884 _NM="as_fn_error $? "missing \"nm\"" "$LINENO" 5"
794e88e7
DWT
20885 else
20886 case $cross_compiling:$ac_tool_warned in
20887yes:)
20888{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20889$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20890ac_tool_warned=yes ;;
20891esac
a243b558 20892 _NM=$ac_ct__NM
794e88e7
DWT
20893 fi
20894fi
20895
7eda51e0 20896 if test -n "$ac_tool_prefix"; then
a243b558 20897 for ac_prog in otool
794e88e7
DWT
20898 do
20899 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20900set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20902$as_echo_n "checking for $ac_word... " >&6; }
a243b558 20903if ${ac_cv_prog__OTOOL+:} false; then :
794e88e7
DWT
20904 $as_echo_n "(cached) " >&6
20905else
a243b558
JF
20906 if test -n "$_OTOOL"; then
20907 ac_cv_prog__OTOOL="$_OTOOL" # Let the user override the test.
794e88e7
DWT
20908else
20909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20910for as_dir in $PATH
20911do
20912 IFS=$as_save_IFS
20913 test -z "$as_dir" && as_dir=.
20914 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 20915 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 20916 ac_cv_prog__OTOOL="$ac_tool_prefix$ac_prog"
794e88e7
DWT
20917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20918 break 2
20919 fi
20920done
20921 done
20922IFS=$as_save_IFS
20923
20924fi
20925fi
a243b558
JF
20926_OTOOL=$ac_cv_prog__OTOOL
20927if test -n "$_OTOOL"; then
20928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_OTOOL" >&5
20929$as_echo "$_OTOOL" >&6; }
794e88e7
DWT
20930else
20931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20932$as_echo "no" >&6; }
20933fi
20934
20935
a243b558 20936 test -n "$_OTOOL" && break
794e88e7
DWT
20937 done
20938fi
a243b558
JF
20939if test -z "$_OTOOL"; then
20940 ac_ct__OTOOL=$_OTOOL
20941 for ac_prog in otool
794e88e7
DWT
20942do
20943 # Extract the first word of "$ac_prog", so it can be a program name with args.
20944set dummy $ac_prog; ac_word=$2
20945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20946$as_echo_n "checking for $ac_word... " >&6; }
a243b558 20947if ${ac_cv_prog_ac_ct__OTOOL+:} false; then :
794e88e7
DWT
20948 $as_echo_n "(cached) " >&6
20949else
a243b558
JF
20950 if test -n "$ac_ct__OTOOL"; then
20951 ac_cv_prog_ac_ct__OTOOL="$ac_ct__OTOOL" # Let the user override the test.
794e88e7
DWT
20952else
20953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20954for as_dir in $PATH
20955do
20956 IFS=$as_save_IFS
20957 test -z "$as_dir" && as_dir=.
20958 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 20959 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 20960 ac_cv_prog_ac_ct__OTOOL="$ac_prog"
794e88e7
DWT
20961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20962 break 2
20963 fi
20964done
20965 done
20966IFS=$as_save_IFS
20967
20968fi
20969fi
a243b558
JF
20970ac_ct__OTOOL=$ac_cv_prog_ac_ct__OTOOL
20971if test -n "$ac_ct__OTOOL"; then
20972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct__OTOOL" >&5
20973$as_echo "$ac_ct__OTOOL" >&6; }
794e88e7
DWT
20974else
20975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20976$as_echo "no" >&6; }
20977fi
20978
20979
a243b558 20980 test -n "$ac_ct__OTOOL" && break
794e88e7
DWT
20981done
20982
a243b558
JF
20983 if test "x$ac_ct__OTOOL" = x; then
20984 _OTOOL="as_fn_error $? "missing \"otool\"" "$LINENO" 5"
794e88e7
DWT
20985 else
20986 case $cross_compiling:$ac_tool_warned in
20987yes:)
20988{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20989$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20990ac_tool_warned=yes ;;
20991esac
a243b558 20992 _OTOOL=$ac_ct__OTOOL
794e88e7
DWT
20993 fi
20994fi
20995
7eda51e0 20996 CY_ATTACH_GROUP=procmod
794e88e7 20997
7eda51e0 20998 CY_MACH=1
e1cce270
DWT
20999
21000fi
21001
21002
7eda51e0 21003fi
a243b558
JF
21004 if test "x$CY_MACH" = x1; then
21005 CY_MACH_TRUE=
21006 CY_MACH_FALSE='#'
21007else
21008 CY_MACH_TRUE='#'
21009 CY_MACH_FALSE=
47aaa820 21010fi
9c60689e 21011
66170b30 21012
a243b558
JF
21013ac_config_files="$ac_config_files Makefile"
21014
9c60689e
DWT
21015cat >confcache <<\_ACEOF
21016# This file is a shell script that caches the results of configure
21017# tests run on this system so they can be shared between configure
21018# scripts and configure runs, see configure's option --config-cache.
21019# It is not useful on other systems. If it contains results you don't
21020# want to keep, you may remove or edit it.
21021#
21022# config.status only pays attention to the cache file if you give it
21023# the --recheck option to rerun configure.
21024#
21025# `ac_cv_env_foo' variables (set or unset) will be overridden when
21026# loading this file, other *unset* `ac_cv_foo' will be assigned the
21027# following values.
21028
21029_ACEOF
21030
21031# The following way of writing the cache mishandles newlines in values,
21032# but we know of no workaround that is simple, portable, and efficient.
21033# So, we kill variables containing newlines.
21034# Ultrix sh set writes to stderr and can't be redirected directly,
21035# and sets the high bit in the cache file unless we assign to the vars.
21036(
21037 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21038 eval ac_val=\$$ac_var
21039 case $ac_val in #(
21040 *${as_nl}*)
21041 case $ac_var in #(
21042 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
21043$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21044 esac
21045 case $ac_var in #(
21046 _ | IFS | as_nl) ;; #(
21047 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21048 *) { eval $ac_var=; unset $ac_var;} ;;
21049 esac ;;
21050 esac
21051 done
21052
21053 (set) 2>&1 |
21054 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21055 *${as_nl}ac_space=\ *)
21056 # `set' does not quote correctly, so add quotes: double-quote
21057 # substitution turns \\\\ into \\, and sed turns \\ into \.
21058 sed -n \
21059 "s/'/'\\\\''/g;
21060 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21061 ;; #(
21062 *)
21063 # `set' quotes correctly as required by POSIX, so do not add quotes.
21064 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21065 ;;
21066 esac |
21067 sort
21068) |
21069 sed '
21070 /^ac_cv_env_/b end
21071 t clear
21072 :clear
21073 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21074 t end
21075 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21076 :end' >>confcache
21077if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21078 if test -w "$cache_file"; then
ee134472 21079 if test "x$cache_file" != "x/dev/null"; then
9c60689e
DWT
21080 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
21081$as_echo "$as_me: updating cache $cache_file" >&6;}
ee134472
JF
21082 if test ! -f "$cache_file" || test -h "$cache_file"; then
21083 cat confcache >"$cache_file"
21084 else
21085 case $cache_file in #(
21086 */* | ?:*)
21087 mv -f confcache "$cache_file"$$ &&
21088 mv -f "$cache_file"$$ "$cache_file" ;; #(
21089 *)
21090 mv -f confcache "$cache_file" ;;
21091 esac
21092 fi
21093 fi
9c60689e
DWT
21094 else
21095 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
21096$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21097 fi
21098fi
21099rm -f confcache
21100
21101test "x$prefix" = xNONE && prefix=$ac_default_prefix
21102# Let make expand exec_prefix.
21103test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21104
296ee9a6 21105DEFS=-DHAVE_CONFIG_H
9c60689e
DWT
21106
21107ac_libobjs=
21108ac_ltlibobjs=
12833ad8 21109U=
9c60689e
DWT
21110for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21111 # 1. Remove the extension, and $U if already installed.
21112 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21113 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
21114 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21115 # will be set to the directory where LIBOBJS objects are built.
21116 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21117 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
21118done
21119LIBOBJS=$ac_libobjs
21120
21121LTLIBOBJS=$ac_ltlibobjs
21122
21123
66170b30
JF
21124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
21125$as_echo_n "checking that generated files are newer than configure... " >&6; }
21126 if test -n "$am_sleep_pid"; then
21127 # Hide warnings about reused PIDs.
21128 wait $am_sleep_pid 2>/dev/null
21129 fi
21130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
21131$as_echo "done" >&6; }
21132 if test -n "$EXEEXT"; then
21133 am__EXEEXT_TRUE=
21134 am__EXEEXT_FALSE='#'
21135else
21136 am__EXEEXT_TRUE='#'
21137 am__EXEEXT_FALSE=
21138fi
21139
21140if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21141 as_fn_error $? "conditional \"AMDEP\" was never defined.
21142Usually this means the macro was only invoked conditionally." "$LINENO" 5
21143fi
66170b30
JF
21144if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21145 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
21146Usually this means the macro was only invoked conditionally." "$LINENO" 5
21147fi
21148if test -z "${am__fastdepOBJCXX_TRUE}" && test -z "${am__fastdepOBJCXX_FALSE}"; then
21149 as_fn_error $? "conditional \"am__fastdepOBJCXX\" was never defined.
21150Usually this means the macro was only invoked conditionally." "$LINENO" 5
21151fi
a243b558
JF
21152if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21153 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
21154Usually this means the macro was only invoked conditionally." "$LINENO" 5
21155fi
21156if test -z "${CY_EXECUTE_TRUE}" && test -z "${CY_EXECUTE_FALSE}"; then
21157 as_fn_error $? "conditional \"CY_EXECUTE\" was never defined.
21158Usually this means the macro was only invoked conditionally." "$LINENO" 5
21159fi
21160if test -z "${CY_OBJECTIVEC_TRUE}" && test -z "${CY_OBJECTIVEC_FALSE}"; then
21161 as_fn_error $? "conditional \"CY_OBJECTIVEC\" was never defined.
21162Usually this means the macro was only invoked conditionally." "$LINENO" 5
21163fi
21164if test -z "${CY_MACH_TRUE}" && test -z "${CY_MACH_FALSE}"; then
21165 as_fn_error $? "conditional \"CY_MACH\" was never defined.
21166Usually this means the macro was only invoked conditionally." "$LINENO" 5
21167fi
9c60689e 21168
ee134472 21169: "${CONFIG_STATUS=./config.status}"
9c60689e
DWT
21170ac_write_fail=0
21171ac_clean_files_save=$ac_clean_files
21172ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21173{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
21174$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
21175as_write_fail=0
21176cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
21177#! $SHELL
21178# Generated by $as_me.
21179# Run this file to recreate the current configuration.
21180# Compiler output produced by configure, useful for debugging
21181# configure, is in config.log if it exists.
21182
21183debug=false
21184ac_cs_recheck=false
21185ac_cs_silent=false
21186
21187SHELL=\${CONFIG_SHELL-$SHELL}
21188export SHELL
21189_ASEOF
21190cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
21191## -------------------- ##
21192## M4sh Initialization. ##
21193## -------------------- ##
21194
21195# Be more Bourne compatible
21196DUALCASE=1; export DUALCASE # for MKS sh
21197if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21198 emulate sh
21199 NULLCMD=:
21200 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21201 # is contrary to our usage. Disable this feature.
21202 alias -g '${1+"$@"}'='"$@"'
21203 setopt NO_GLOB_SUBST
21204else
21205 case `(set -o) 2>/dev/null` in #(
21206 *posix*) :
21207 set -o posix ;; #(
21208 *) :
21209 ;;
21210esac
21211fi
21212
21213
21214as_nl='
21215'
21216export as_nl
21217# Printing a long string crashes Solaris 7 /usr/bin/printf.
21218as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
21219as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
21220as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
21221# Prefer a ksh shell builtin over an external printf program on Solaris,
21222# but without wasting forks for bash or zsh.
21223if test -z "$BASH_VERSION$ZSH_VERSION" \
21224 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
21225 as_echo='print -r --'
21226 as_echo_n='print -rn --'
21227elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
21228 as_echo='printf %s\n'
21229 as_echo_n='printf %s'
21230else
21231 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
21232 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
21233 as_echo_n='/usr/ucb/echo -n'
21234 else
21235 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
21236 as_echo_n_body='eval
21237 arg=$1;
21238 case $arg in #(
21239 *"$as_nl"*)
21240 expr "X$arg" : "X\\(.*\\)$as_nl";
21241 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
21242 esac;
21243 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
21244 '
21245 export as_echo_n_body
21246 as_echo_n='sh -c $as_echo_n_body as_echo'
21247 fi
21248 export as_echo_body
21249 as_echo='sh -c $as_echo_body as_echo'
21250fi
21251
21252# The user is always right.
21253if test "${PATH_SEPARATOR+set}" != set; then
21254 PATH_SEPARATOR=:
21255 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21256 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21257 PATH_SEPARATOR=';'
21258 }
21259fi
21260
21261
21262# IFS
21263# We need space, tab and new line, in precisely that order. Quoting is
21264# there to prevent editors from complaining about space-tab.
21265# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21266# splitting by setting IFS to empty value.)
21267IFS=" "" $as_nl"
21268
21269# Find who we are. Look in the path if we contain no directory separator.
ee134472 21270as_myself=
9c60689e
DWT
21271case $0 in #((
21272 *[\\/]* ) as_myself=$0 ;;
21273 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21274for as_dir in $PATH
21275do
21276 IFS=$as_save_IFS
21277 test -z "$as_dir" && as_dir=.
21278 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21279 done
21280IFS=$as_save_IFS
21281
21282 ;;
21283esac
21284# We did not find ourselves, most probably we were run as `sh COMMAND'
21285# in which case we are not to be found in the path.
21286if test "x$as_myself" = x; then
21287 as_myself=$0
21288fi
21289if test ! -f "$as_myself"; then
21290 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21291 exit 1
21292fi
21293
21294# Unset variables that we do not need and which cause bugs (e.g. in
21295# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
21296# suppresses any "Segmentation fault" message there. '((' could
21297# trigger a bug in pdksh 5.2.14.
21298for as_var in BASH_ENV ENV MAIL MAILPATH
21299do eval test x\${$as_var+set} = xset \
21300 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
21301done
21302PS1='$ '
21303PS2='> '
21304PS4='+ '
21305
21306# NLS nuisances.
21307LC_ALL=C
21308export LC_ALL
21309LANGUAGE=C
21310export LANGUAGE
21311
21312# CDPATH.
21313(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21314
21315
12833ad8
JF
21316# as_fn_error STATUS ERROR [LINENO LOG_FD]
21317# ----------------------------------------
9c60689e
DWT
21318# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
21319# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12833ad8 21320# script with STATUS, using 1 if that was 0.
9c60689e
DWT
21321as_fn_error ()
21322{
12833ad8
JF
21323 as_status=$1; test $as_status -eq 0 && as_status=1
21324 if test "$4"; then
21325 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21326 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
9c60689e 21327 fi
12833ad8 21328 $as_echo "$as_me: error: $2" >&2
9c60689e
DWT
21329 as_fn_exit $as_status
21330} # as_fn_error
21331
21332
21333# as_fn_set_status STATUS
21334# -----------------------
21335# Set $? to STATUS, without forking.
21336as_fn_set_status ()
21337{
21338 return $1
21339} # as_fn_set_status
21340
21341# as_fn_exit STATUS
21342# -----------------
21343# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
21344as_fn_exit ()
21345{
21346 set +e
21347 as_fn_set_status $1
21348 exit $1
21349} # as_fn_exit
21350
21351# as_fn_unset VAR
21352# ---------------
21353# Portably unset VAR.
21354as_fn_unset ()
21355{
21356 { eval $1=; unset $1;}
21357}
21358as_unset=as_fn_unset
21359# as_fn_append VAR VALUE
21360# ----------------------
21361# Append the text in VALUE to the end of the definition contained in VAR. Take
21362# advantage of any shell optimizations that allow amortized linear growth over
21363# repeated appends, instead of the typical quadratic growth present in naive
21364# implementations.
21365if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
21366 eval 'as_fn_append ()
21367 {
21368 eval $1+=\$2
21369 }'
21370else
21371 as_fn_append ()
21372 {
21373 eval $1=\$$1\$2
21374 }
21375fi # as_fn_append
21376
21377# as_fn_arith ARG...
21378# ------------------
21379# Perform arithmetic evaluation on the ARGs, and store the result in the
21380# global $as_val. Take advantage of shells that can avoid forks. The arguments
21381# must be portable across $(()) and expr.
21382if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
21383 eval 'as_fn_arith ()
21384 {
21385 as_val=$(( $* ))
21386 }'
21387else
21388 as_fn_arith ()
21389 {
21390 as_val=`expr "$@" || test $? -eq 1`
21391 }
21392fi # as_fn_arith
21393
21394
21395if expr a : '\(a\)' >/dev/null 2>&1 &&
21396 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21397 as_expr=expr
21398else
21399 as_expr=false
21400fi
21401
21402if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21403 as_basename=basename
21404else
21405 as_basename=false
21406fi
21407
21408if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21409 as_dirname=dirname
21410else
21411 as_dirname=false
21412fi
21413
21414as_me=`$as_basename -- "$0" ||
21415$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21416 X"$0" : 'X\(//\)$' \| \
21417 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21418$as_echo X/"$0" |
21419 sed '/^.*\/\([^/][^/]*\)\/*$/{
21420 s//\1/
21421 q
21422 }
21423 /^X\/\(\/\/\)$/{
21424 s//\1/
21425 q
21426 }
21427 /^X\/\(\/\).*/{
21428 s//\1/
21429 q
21430 }
21431 s/.*/./; q'`
21432
21433# Avoid depending upon Character Ranges.
21434as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21435as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21436as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21437as_cr_digits='0123456789'
21438as_cr_alnum=$as_cr_Letters$as_cr_digits
21439
21440ECHO_C= ECHO_N= ECHO_T=
21441case `echo -n x` in #(((((
21442-n*)
21443 case `echo 'xy\c'` in
21444 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21445 xy) ECHO_C='\c';;
21446 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
21447 ECHO_T=' ';;
21448 esac;;
21449*)
21450 ECHO_N='-n';;
21451esac
21452
21453rm -f conf$$ conf$$.exe conf$$.file
21454if test -d conf$$.dir; then
21455 rm -f conf$$.dir/conf$$.file
21456else
21457 rm -f conf$$.dir
21458 mkdir conf$$.dir 2>/dev/null
21459fi
21460if (echo >conf$$.file) 2>/dev/null; then
21461 if ln -s conf$$.file conf$$ 2>/dev/null; then
21462 as_ln_s='ln -s'
21463 # ... but there are two gotchas:
21464 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21465 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
53ba6704 21466 # In both cases, we have to default to `cp -pR'.
9c60689e 21467 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
53ba6704 21468 as_ln_s='cp -pR'
9c60689e
DWT
21469 elif ln conf$$.file conf$$ 2>/dev/null; then
21470 as_ln_s=ln
21471 else
53ba6704 21472 as_ln_s='cp -pR'
9c60689e
DWT
21473 fi
21474else
53ba6704 21475 as_ln_s='cp -pR'
9c60689e
DWT
21476fi
21477rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21478rmdir conf$$.dir 2>/dev/null
21479
21480
21481# as_fn_mkdir_p
21482# -------------
21483# Create "$as_dir" as a directory, including parents if necessary.
21484as_fn_mkdir_p ()
21485{
21486
21487 case $as_dir in #(
21488 -*) as_dir=./$as_dir;;
21489 esac
21490 test -d "$as_dir" || eval $as_mkdir_p || {
21491 as_dirs=
21492 while :; do
21493 case $as_dir in #(
21494 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21495 *) as_qdir=$as_dir;;
21496 esac
21497 as_dirs="'$as_qdir' $as_dirs"
21498 as_dir=`$as_dirname -- "$as_dir" ||
21499$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21500 X"$as_dir" : 'X\(//\)[^/]' \| \
21501 X"$as_dir" : 'X\(//\)$' \| \
21502 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21503$as_echo X"$as_dir" |
21504 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21505 s//\1/
21506 q
21507 }
21508 /^X\(\/\/\)[^/].*/{
21509 s//\1/
21510 q
21511 }
21512 /^X\(\/\/\)$/{
21513 s//\1/
21514 q
21515 }
21516 /^X\(\/\).*/{
21517 s//\1/
21518 q
21519 }
21520 s/.*/./; q'`
21521 test -d "$as_dir" && break
21522 done
21523 test -z "$as_dirs" || eval "mkdir $as_dirs"
12833ad8 21524 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
9c60689e
DWT
21525
21526
21527} # as_fn_mkdir_p
21528if mkdir -p . 2>/dev/null; then
21529 as_mkdir_p='mkdir -p "$as_dir"'
21530else
21531 test -d ./-p && rmdir ./-p
21532 as_mkdir_p=false
21533fi
21534
53ba6704
JF
21535
21536# as_fn_executable_p FILE
21537# -----------------------
21538# Test if FILE is an executable regular file.
21539as_fn_executable_p ()
21540{
21541 test -f "$1" && test -x "$1"
21542} # as_fn_executable_p
21543as_test_x='test -x'
21544as_executable_p=as_fn_executable_p
9c60689e
DWT
21545
21546# Sed expression to map a string onto a valid CPP name.
21547as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21548
21549# Sed expression to map a string onto a valid variable name.
21550as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21551
21552
21553exec 6>&1
21554## ----------------------------------- ##
21555## Main body of $CONFIG_STATUS script. ##
21556## ----------------------------------- ##
21557_ASEOF
21558test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21559
21560cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21561# Save the log message, to keep $0 and so on meaningful, and to
21562# report actual input values of CONFIG_FILES etc. instead of their
21563# values after options handling.
21564ac_log="
21565This file was extended by Cycript $as_me 0.9, which was
53ba6704 21566generated by GNU Autoconf 2.69. Invocation command line was
9c60689e
DWT
21567
21568 CONFIG_FILES = $CONFIG_FILES
21569 CONFIG_HEADERS = $CONFIG_HEADERS
21570 CONFIG_LINKS = $CONFIG_LINKS
21571 CONFIG_COMMANDS = $CONFIG_COMMANDS
21572 $ $0 $@
21573
21574on `(hostname || uname -n) 2>/dev/null | sed 1q`
21575"
21576
21577_ACEOF
21578
21579case $ac_config_files in *"
21580"*) set x $ac_config_files; shift; ac_config_files=$*;;
21581esac
21582
296ee9a6
JF
21583case $ac_config_headers in *"
21584"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21585esac
9c60689e
DWT
21586
21587
21588cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21589# Files that config.status was made for.
21590config_files="$ac_config_files"
296ee9a6 21591config_headers="$ac_config_headers"
9c60689e
DWT
21592config_commands="$ac_config_commands"
21593
21594_ACEOF
21595
21596cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21597ac_cs_usage="\
21598\`$as_me' instantiates files and other configuration actions
21599from templates according to the current configuration. Unless the files
21600and actions are specified as TAGs, all are instantiated by default.
21601
21602Usage: $0 [OPTION]... [TAG]...
21603
21604 -h, --help print this help, then exit
21605 -V, --version print version number and configuration settings, then exit
21606 --config print configuration, then exit
21607 -q, --quiet, --silent
21608 do not print progress messages
21609 -d, --debug don't remove temporary files
21610 --recheck update $as_me by reconfiguring in the same conditions
21611 --file=FILE[:TEMPLATE]
21612 instantiate the configuration file FILE
296ee9a6
JF
21613 --header=FILE[:TEMPLATE]
21614 instantiate the configuration header FILE
9c60689e
DWT
21615
21616Configuration files:
21617$config_files
21618
296ee9a6
JF
21619Configuration headers:
21620$config_headers
21621
9c60689e
DWT
21622Configuration commands:
21623$config_commands
21624
21625Report bugs to <saurik@saurik.com>.
21626Cycript home page: <http://www.cycript.org/>."
21627
21628_ACEOF
21629cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21630ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
21631ac_cs_version="\\
21632Cycript config.status 0.9
53ba6704 21633configured by $0, generated by GNU Autoconf 2.69,
9c60689e
DWT
21634 with options \\"\$ac_cs_config\\"
21635
53ba6704 21636Copyright (C) 2012 Free Software Foundation, Inc.
9c60689e
DWT
21637This config.status script is free software; the Free Software Foundation
21638gives unlimited permission to copy, distribute and modify it."
21639
21640ac_pwd='$ac_pwd'
21641srcdir='$srcdir'
21642INSTALL='$INSTALL'
66170b30
JF
21643MKDIR_P='$MKDIR_P'
21644AWK='$AWK'
9c60689e
DWT
21645test -n "\$AWK" || AWK=awk
21646_ACEOF
21647
21648cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21649# The default lists apply if the user does not specify any file.
21650ac_need_defaults=:
21651while test $# != 0
21652do
21653 case $1 in
12833ad8 21654 --*=?*)
9c60689e
DWT
21655 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21656 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21657 ac_shift=:
21658 ;;
12833ad8
JF
21659 --*=)
21660 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21661 ac_optarg=
21662 ac_shift=:
21663 ;;
9c60689e
DWT
21664 *)
21665 ac_option=$1
21666 ac_optarg=$2
21667 ac_shift=shift
21668 ;;
21669 esac
21670
21671 case $ac_option in
21672 # Handling of the options.
21673 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21674 ac_cs_recheck=: ;;
21675 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21676 $as_echo "$ac_cs_version"; exit ;;
21677 --config | --confi | --conf | --con | --co | --c )
21678 $as_echo "$ac_cs_config"; exit ;;
21679 --debug | --debu | --deb | --de | --d | -d )
21680 debug=: ;;
21681 --file | --fil | --fi | --f )
21682 $ac_shift
21683 case $ac_optarg in
21684 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12833ad8 21685 '') as_fn_error $? "missing file argument" ;;
9c60689e
DWT
21686 esac
21687 as_fn_append CONFIG_FILES " '$ac_optarg'"
21688 ac_need_defaults=false;;
296ee9a6
JF
21689 --header | --heade | --head | --hea )
21690 $ac_shift
21691 case $ac_optarg in
21692 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21693 esac
21694 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21695 ac_need_defaults=false;;
21696 --he | --h)
21697 # Conflict between --help and --header
21698 as_fn_error $? "ambiguous option: \`$1'
21699Try \`$0 --help' for more information.";;
21700 --help | --hel | -h )
9c60689e
DWT
21701 $as_echo "$ac_cs_usage"; exit ;;
21702 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21703 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21704 ac_cs_silent=: ;;
21705
21706 # This is an error.
12833ad8 21707 -*) as_fn_error $? "unrecognized option: \`$1'
9c60689e
DWT
21708Try \`$0 --help' for more information." ;;
21709
21710 *) as_fn_append ac_config_targets " $1"
21711 ac_need_defaults=false ;;
21712
21713 esac
21714 shift
21715done
21716
21717ac_configure_extra_args=
21718
21719if $ac_cs_silent; then
21720 exec 6>/dev/null
21721 ac_configure_extra_args="$ac_configure_extra_args --silent"
21722fi
21723
21724_ACEOF
21725cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21726if \$ac_cs_recheck; then
53ba6704 21727 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9c60689e
DWT
21728 shift
21729 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
21730 CONFIG_SHELL='$SHELL'
21731 export CONFIG_SHELL
21732 exec "\$@"
21733fi
21734
21735_ACEOF
21736cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21737exec 5>>config.log
21738{
21739 echo
21740 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21741## Running $as_me. ##
21742_ASBOX
21743 $as_echo "$ac_log"
21744} >&5
21745
21746_ACEOF
21747cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21748#
21749# INIT-COMMANDS
21750#
66170b30 21751AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
9c60689e
DWT
21752
21753
21754# The HP-UX ksh and POSIX shell print the target directory to stdout
21755# if CDPATH is set.
21756(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21757
21758sed_quote_subst='$sed_quote_subst'
21759double_quote_subst='$double_quote_subst'
21760delay_variable_subst='$delay_variable_subst'
ee134472
JF
21761macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
21762macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
21763enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
21764enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
21765pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
21766enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
21767SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
21768ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
53ba6704 21769PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
ee134472
JF
21770host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
21771host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
21772host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
21773build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
21774build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
21775build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
21776SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
21777Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
21778GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
21779EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
21780FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
21781LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
21782NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
21783LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
21784max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
21785ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
21786exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
21787lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
21788lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
21789lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
21790lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
21791lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
21792reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
21793reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
21794OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
21795deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
21796file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
21797file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
21798want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
21799DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
21800sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
21801AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
21802AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
21803archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
21804STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
21805RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
21806old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21807old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21808old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
21809lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
21810CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
21811CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
21812compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
21813GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
21814lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
21815lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
21816lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
21817lt_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"`'
21818nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
21819lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
21820objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
21821MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
21822lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
21823lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
21824lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
21825lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
21826lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
21827need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
21828MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
21829DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
21830NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
21831LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
21832OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
21833OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
21834libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
21835shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
21836extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21837archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
21838enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
21839export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
21840whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
21841compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
21842old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
21843old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21844archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
21845archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21846module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
21847module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21848with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
21849allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
21850no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
21851hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
ee134472
JF
21852hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
21853hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
21854hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
21855hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
21856hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
21857hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
21858inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
21859link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
21860always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
21861export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
21862exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
21863include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
21864prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
21865postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
21866file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
21867variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
21868need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
21869need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
21870version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
21871runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
21872shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
21873shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
21874libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
21875library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
21876soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
21877install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
21878postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21879postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21880finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
21881finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
21882hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
21883sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
21884sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
21885hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
21886enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
21887enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
21888enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
21889old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
21890striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
21891compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
21892predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
21893postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
21894predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
21895postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
21896compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
21897LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
21898reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
21899reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21900old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21901compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
21902GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
21903lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
21904lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
21905lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
21906lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
21907lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
21908archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
21909enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
21910export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21911whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21912compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
21913old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21914old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21915archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21916archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21917module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21918module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21919with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
21920allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
21921no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
21922hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
ee134472
JF
21923hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
21924hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
21925hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
21926hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
21927hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
21928hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
21929inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
21930link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
21931always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
21932export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21933exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
21934include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
21935prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21936postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21937file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
21938hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
21939compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
21940predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
21941postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
21942predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
21943postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
21944compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
9c60689e
DWT
21945
21946LTCC='$LTCC'
21947LTCFLAGS='$LTCFLAGS'
21948compiler='$compiler_DEFAULT'
21949
ee134472
JF
21950# A function that is used when there is no print builtin or printf.
21951func_fallback_echo ()
21952{
21953 eval 'cat <<_LTECHO_EOF
21954\$1
21955_LTECHO_EOF'
21956}
21957
9c60689e 21958# Quote evaled strings.
ee134472
JF
21959for var in SHELL \
21960ECHO \
53ba6704 21961PATH_SEPARATOR \
ee134472 21962SED \
9c60689e
DWT
21963GREP \
21964EGREP \
21965FGREP \
21966LD \
21967NM \
21968LN_S \
21969lt_SP2NL \
21970lt_NL2SP \
21971reload_flag \
21972OBJDUMP \
21973deplibs_check_method \
21974file_magic_cmd \
ee134472
JF
21975file_magic_glob \
21976want_nocaseglob \
21977DLLTOOL \
21978sharedlib_from_linklib_cmd \
9c60689e
DWT
21979AR \
21980AR_FLAGS \
ee134472 21981archiver_list_spec \
9c60689e
DWT
21982STRIP \
21983RANLIB \
21984CC \
21985CFLAGS \
21986compiler \
21987lt_cv_sys_global_symbol_pipe \
21988lt_cv_sys_global_symbol_to_cdecl \
21989lt_cv_sys_global_symbol_to_c_name_address \
21990lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
ee134472 21991nm_file_list_spec \
9c60689e 21992lt_prog_compiler_no_builtin_flag \
9c60689e 21993lt_prog_compiler_pic \
ee134472 21994lt_prog_compiler_wl \
9c60689e
DWT
21995lt_prog_compiler_static \
21996lt_cv_prog_compiler_c_o \
21997need_locks \
ee134472 21998MANIFEST_TOOL \
9c60689e
DWT
21999DSYMUTIL \
22000NMEDIT \
22001LIPO \
22002OTOOL \
22003OTOOL64 \
22004shrext_cmds \
22005export_dynamic_flag_spec \
22006whole_archive_flag_spec \
22007compiler_needs_object \
22008with_gnu_ld \
22009allow_undefined_flag \
22010no_undefined_flag \
22011hardcode_libdir_flag_spec \
9c60689e 22012hardcode_libdir_separator \
9c60689e
DWT
22013exclude_expsyms \
22014include_expsyms \
22015file_list_spec \
22016variables_saved_for_relink \
22017libname_spec \
22018library_names_spec \
22019soname_spec \
ee134472 22020install_override_mode \
9c60689e
DWT
22021finish_eval \
22022old_striplib \
22023striplib \
22024compiler_lib_search_dirs \
22025predep_objects \
22026postdep_objects \
22027predeps \
22028postdeps \
22029compiler_lib_search_path \
22030LD_CXX \
ee134472 22031reload_flag_CXX \
9c60689e
DWT
22032compiler_CXX \
22033lt_prog_compiler_no_builtin_flag_CXX \
9c60689e 22034lt_prog_compiler_pic_CXX \
ee134472 22035lt_prog_compiler_wl_CXX \
9c60689e
DWT
22036lt_prog_compiler_static_CXX \
22037lt_cv_prog_compiler_c_o_CXX \
22038export_dynamic_flag_spec_CXX \
22039whole_archive_flag_spec_CXX \
22040compiler_needs_object_CXX \
22041with_gnu_ld_CXX \
22042allow_undefined_flag_CXX \
22043no_undefined_flag_CXX \
22044hardcode_libdir_flag_spec_CXX \
9c60689e 22045hardcode_libdir_separator_CXX \
9c60689e
DWT
22046exclude_expsyms_CXX \
22047include_expsyms_CXX \
22048file_list_spec_CXX \
22049compiler_lib_search_dirs_CXX \
22050predep_objects_CXX \
22051postdep_objects_CXX \
22052predeps_CXX \
22053postdeps_CXX \
22054compiler_lib_search_path_CXX; do
ee134472 22055 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
9c60689e 22056 *[\\\\\\\`\\"\\\$]*)
ee134472 22057 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
9c60689e
DWT
22058 ;;
22059 *)
22060 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22061 ;;
22062 esac
22063done
22064
22065# Double-quote double-evaled strings.
22066for var in reload_cmds \
22067old_postinstall_cmds \
22068old_postuninstall_cmds \
22069old_archive_cmds \
22070extract_expsyms_cmds \
22071old_archive_from_new_cmds \
22072old_archive_from_expsyms_cmds \
22073archive_cmds \
22074archive_expsym_cmds \
22075module_cmds \
22076module_expsym_cmds \
22077export_symbols_cmds \
22078prelink_cmds \
ee134472 22079postlink_cmds \
9c60689e
DWT
22080postinstall_cmds \
22081postuninstall_cmds \
22082finish_cmds \
22083sys_lib_search_path_spec \
22084sys_lib_dlsearch_path_spec \
ee134472 22085reload_cmds_CXX \
9c60689e
DWT
22086old_archive_cmds_CXX \
22087old_archive_from_new_cmds_CXX \
22088old_archive_from_expsyms_cmds_CXX \
22089archive_cmds_CXX \
22090archive_expsym_cmds_CXX \
22091module_cmds_CXX \
22092module_expsym_cmds_CXX \
22093export_symbols_cmds_CXX \
ee134472
JF
22094prelink_cmds_CXX \
22095postlink_cmds_CXX; do
22096 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
9c60689e 22097 *[\\\\\\\`\\"\\\$]*)
ee134472 22098 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
9c60689e
DWT
22099 ;;
22100 *)
22101 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22102 ;;
22103 esac
22104done
22105
9c60689e
DWT
22106ac_aux_dir='$ac_aux_dir'
22107xsi_shell='$xsi_shell'
22108lt_shell_append='$lt_shell_append'
22109
22110# See if we are running on zsh, and set the options which allow our
22111# commands through without removal of \ escapes INIT.
22112if test -n "\${ZSH_VERSION+set}" ; then
22113 setopt NO_GLOB_SUBST
22114fi
22115
22116
22117 PACKAGE='$PACKAGE'
22118 VERSION='$VERSION'
22119 TIMESTAMP='$TIMESTAMP'
22120 RM='$RM'
22121 ofile='$ofile'
22122
22123
22124
22125
22126
22127
22128_ACEOF
22129
22130cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22131
22132# Handling of arguments.
22133for ac_config_target in $ac_config_targets
22134do
22135 case $ac_config_target in
296ee9a6 22136 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
66170b30 22137 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
9c60689e 22138 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
790e5246 22139 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9c60689e 22140
ee134472 22141 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
9c60689e
DWT
22142 esac
22143done
22144
22145
22146# If the user did not use the arguments to specify the items to instantiate,
22147# then the envvar interface is used. Set only those that are not.
22148# We use the long form for the default assignment because of an extremely
22149# bizarre bug on SunOS 4.1.3.
22150if $ac_need_defaults; then
22151 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
296ee9a6 22152 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9c60689e
DWT
22153 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22154fi
22155
22156# Have a temporary directory for convenience. Make it in the build tree
22157# simply because there is no reason against having it here, and in addition,
22158# creating and moving files from /tmp can sometimes cause problems.
22159# Hook for its removal unless debugging.
22160# Note that there is a small window in which the directory will not be cleaned:
22161# after its creation but before its name has been assigned to `$tmp'.
22162$debug ||
22163{
ee134472 22164 tmp= ac_tmp=
9c60689e 22165 trap 'exit_status=$?
ee134472
JF
22166 : "${ac_tmp:=$tmp}"
22167 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
9c60689e
DWT
22168' 0
22169 trap 'as_fn_exit 1' 1 2 13 15
22170}
22171# Create a (secure) tmp directory for tmp files.
22172
22173{
22174 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
ee134472 22175 test -d "$tmp"
9c60689e
DWT
22176} ||
22177{
22178 tmp=./conf$$-$RANDOM
22179 (umask 077 && mkdir "$tmp")
12833ad8 22180} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
ee134472 22181ac_tmp=$tmp
9c60689e
DWT
22182
22183# Set up the scripts for CONFIG_FILES section.
22184# No need to generate them if there are no CONFIG_FILES.
22185# This happens for instance with `./config.status config.h'.
22186if test -n "$CONFIG_FILES"; then
22187
22188
22189ac_cr=`echo X | tr X '\015'`
22190# On cygwin, bash can eat \r inside `` if the user requested igncr.
22191# But we know of no other shell where ac_cr would be empty at this
22192# point, so we can use a bashism as a fallback.
22193if test "x$ac_cr" = x; then
22194 eval ac_cr=\$\'\\r\'
22195fi
22196ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22197if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12833ad8 22198 ac_cs_awk_cr='\\r'
9c60689e
DWT
22199else
22200 ac_cs_awk_cr=$ac_cr
22201fi
22202
ee134472 22203echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
9c60689e
DWT
22204_ACEOF
22205
22206
22207{
22208 echo "cat >conf$$subs.awk <<_ACEOF" &&
22209 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22210 echo "_ACEOF"
22211} >conf$$subs.sh ||
12833ad8
JF
22212 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22213ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
9c60689e
DWT
22214ac_delim='%!_!# '
22215for ac_last_try in false false false false false :; do
22216 . ./conf$$subs.sh ||
12833ad8 22217 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9c60689e
DWT
22218
22219 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22220 if test $ac_delim_n = $ac_delim_num; then
22221 break
22222 elif $ac_last_try; then
12833ad8 22223 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9c60689e
DWT
22224 else
22225 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22226 fi
22227done
22228rm -f conf$$subs.sh
22229
22230cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ee134472 22231cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
9c60689e
DWT
22232_ACEOF
22233sed -n '
22234h
22235s/^/S["/; s/!.*/"]=/
22236p
22237g
22238s/^[^!]*!//
22239:repl
22240t repl
22241s/'"$ac_delim"'$//
22242t delim
22243:nl
22244h
22245s/\(.\{148\}\)..*/\1/
22246t more1
22247s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22248p
22249n
22250b repl
22251:more1
22252s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22253p
22254g
22255s/.\{148\}//
22256t nl
22257:delim
22258h
22259s/\(.\{148\}\)..*/\1/
22260t more2
22261s/["\\]/\\&/g; s/^/"/; s/$/"/
22262p
22263b
22264:more2
22265s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22266p
22267g
22268s/.\{148\}//
22269t delim
22270' <conf$$subs.awk | sed '
22271/^[^""]/{
22272 N
22273 s/\n//
22274}
22275' >>$CONFIG_STATUS || ac_write_fail=1
22276rm -f conf$$subs.awk
22277cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22278_ACAWK
ee134472 22279cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
9c60689e
DWT
22280 for (key in S) S_is_set[key] = 1
22281 FS = "\a"
22282
22283}
22284{
22285 line = $ 0
22286 nfields = split(line, field, "@")
22287 substed = 0
22288 len = length(field[1])
22289 for (i = 2; i < nfields; i++) {
22290 key = field[i]
22291 keylen = length(key)
22292 if (S_is_set[key]) {
22293 value = S[key]
22294 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22295 len += length(value) + length(field[++i])
22296 substed = 1
22297 } else
22298 len += 1 + keylen
22299 }
22300
22301 print line
22302}
22303
22304_ACAWK
22305_ACEOF
22306cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22307if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22308 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22309else
22310 cat
ee134472 22311fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12833ad8 22312 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
9c60689e
DWT
22313_ACEOF
22314
12833ad8
JF
22315# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
22316# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
9c60689e
DWT
22317# trailing colons and then remove the whole line if VPATH becomes empty
22318# (actually we leave an empty line to preserve line numbers).
22319if test "x$srcdir" = x.; then
12833ad8
JF
22320 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
22321h
22322s///
22323s/^/:/
22324s/[ ]*$/:/
22325s/:\$(srcdir):/:/g
22326s/:\${srcdir}:/:/g
22327s/:@srcdir@:/:/g
22328s/^:*//
9c60689e 22329s/:*$//
12833ad8
JF
22330x
22331s/\(=[ ]*\).*/\1/
22332G
22333s/\n//
9c60689e
DWT
22334s/^[^=]*=[ ]*$//
22335}'
22336fi
22337
22338cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22339fi # test -n "$CONFIG_FILES"
22340
296ee9a6
JF
22341# Set up the scripts for CONFIG_HEADERS section.
22342# No need to generate them if there are no CONFIG_HEADERS.
22343# This happens for instance with `./config.status Makefile'.
22344if test -n "$CONFIG_HEADERS"; then
22345cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
22346BEGIN {
22347_ACEOF
22348
22349# Transform confdefs.h into an awk script `defines.awk', embedded as
22350# here-document in config.status, that substitutes the proper values into
22351# config.h.in to produce config.h.
22352
22353# Create a delimiter string that does not exist in confdefs.h, to ease
22354# handling of long lines.
22355ac_delim='%!_!# '
22356for ac_last_try in false false :; do
22357 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
22358 if test -z "$ac_tt"; then
22359 break
22360 elif $ac_last_try; then
22361 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
22362 else
22363 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22364 fi
22365done
22366
22367# For the awk script, D is an array of macro values keyed by name,
22368# likewise P contains macro parameters if any. Preserve backslash
22369# newline sequences.
22370
22371ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22372sed -n '
22373s/.\{148\}/&'"$ac_delim"'/g
22374t rset
22375:rset
22376s/^[ ]*#[ ]*define[ ][ ]*/ /
22377t def
22378d
22379:def
22380s/\\$//
22381t bsnl
22382s/["\\]/\\&/g
22383s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22384D["\1"]=" \3"/p
22385s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
22386d
22387:bsnl
22388s/["\\]/\\&/g
22389s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22390D["\1"]=" \3\\\\\\n"\\/p
22391t cont
22392s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22393t cont
22394d
22395:cont
22396n
22397s/.\{148\}/&'"$ac_delim"'/g
22398t clear
22399:clear
22400s/\\$//
22401t bsnlc
22402s/["\\]/\\&/g; s/^/"/; s/$/"/p
22403d
22404:bsnlc
22405s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22406b cont
22407' <confdefs.h | sed '
22408s/'"$ac_delim"'/"\\\
22409"/g' >>$CONFIG_STATUS || ac_write_fail=1
22410
22411cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22412 for (key in D) D_is_set[key] = 1
22413 FS = "\a"
22414}
22415/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22416 line = \$ 0
22417 split(line, arg, " ")
22418 if (arg[1] == "#") {
22419 defundef = arg[2]
22420 mac1 = arg[3]
22421 } else {
22422 defundef = substr(arg[1], 2)
22423 mac1 = arg[2]
22424 }
22425 split(mac1, mac2, "(") #)
22426 macro = mac2[1]
22427 prefix = substr(line, 1, index(line, defundef) - 1)
22428 if (D_is_set[macro]) {
22429 # Preserve the white space surrounding the "#".
22430 print prefix "define", macro P[macro] D[macro]
22431 next
22432 } else {
22433 # Replace #undef with comments. This is necessary, for example,
22434 # in the case of _POSIX_SOURCE, which is predefined and required
22435 # on some systems where configure will not decide to define it.
22436 if (defundef == "undef") {
22437 print "/*", prefix defundef, macro, "*/"
22438 next
22439 }
22440 }
22441}
22442{ print }
22443_ACAWK
22444_ACEOF
22445cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22446 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
22447fi # test -n "$CONFIG_HEADERS"
22448
9c60689e 22449
296ee9a6 22450eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
9c60689e
DWT
22451shift
22452for ac_tag
22453do
22454 case $ac_tag in
22455 :[FHLC]) ac_mode=$ac_tag; continue;;
22456 esac
22457 case $ac_mode$ac_tag in
22458 :[FHL]*:*);;
ee134472 22459 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
9c60689e
DWT
22460 :[FH]-) ac_tag=-:-;;
22461 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22462 esac
22463 ac_save_IFS=$IFS
22464 IFS=:
22465 set x $ac_tag
22466 IFS=$ac_save_IFS
22467 shift
22468 ac_file=$1
22469 shift
22470
22471 case $ac_mode in
22472 :L) ac_source=$1;;
22473 :[FH])
22474 ac_file_inputs=
22475 for ac_f
22476 do
22477 case $ac_f in
ee134472 22478 -) ac_f="$ac_tmp/stdin";;
9c60689e
DWT
22479 *) # Look for the file first in the build tree, then in the source tree
22480 # (if the path is not absolute). The absolute path cannot be DOS-style,
22481 # because $ac_f cannot contain `:'.
22482 test -f "$ac_f" ||
22483 case $ac_f in
22484 [\\/$]*) false;;
22485 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22486 esac ||
ee134472 22487 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
9c60689e
DWT
22488 esac
22489 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22490 as_fn_append ac_file_inputs " '$ac_f'"
22491 done
22492
22493 # Let's still pretend it is `configure' which instantiates (i.e., don't
22494 # use $as_me), people would be surprised to read:
22495 # /* config.h. Generated by config.status. */
22496 configure_input='Generated from '`
22497 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22498 `' by configure.'
22499 if test x"$ac_file" != x-; then
22500 configure_input="$ac_file. $configure_input"
22501 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22502$as_echo "$as_me: creating $ac_file" >&6;}
22503 fi
22504 # Neutralize special characters interpreted by sed in replacement strings.
22505 case $configure_input in #(
22506 *\&* | *\|* | *\\* )
22507 ac_sed_conf_input=`$as_echo "$configure_input" |
22508 sed 's/[\\\\&|]/\\\\&/g'`;; #(
22509 *) ac_sed_conf_input=$configure_input;;
22510 esac
22511
22512 case $ac_tag in
ee134472
JF
22513 *:-:* | *:-) cat >"$ac_tmp/stdin" \
22514 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
9c60689e
DWT
22515 esac
22516 ;;
22517 esac
22518
22519 ac_dir=`$as_dirname -- "$ac_file" ||
22520$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22521 X"$ac_file" : 'X\(//\)[^/]' \| \
22522 X"$ac_file" : 'X\(//\)$' \| \
22523 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22524$as_echo X"$ac_file" |
22525 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22526 s//\1/
22527 q
22528 }
22529 /^X\(\/\/\)[^/].*/{
22530 s//\1/
22531 q
22532 }
22533 /^X\(\/\/\)$/{
22534 s//\1/
22535 q
22536 }
22537 /^X\(\/\).*/{
22538 s//\1/
22539 q
22540 }
22541 s/.*/./; q'`
22542 as_dir="$ac_dir"; as_fn_mkdir_p
22543 ac_builddir=.
22544
22545case "$ac_dir" in
22546.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22547*)
22548 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
22549 # A ".." for each directory in $ac_dir_suffix.
22550 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22551 case $ac_top_builddir_sub in
22552 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22553 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22554 esac ;;
22555esac
22556ac_abs_top_builddir=$ac_pwd
22557ac_abs_builddir=$ac_pwd$ac_dir_suffix
22558# for backward compatibility:
22559ac_top_builddir=$ac_top_build_prefix
35fa52c0 22560
9c60689e
DWT
22561case $srcdir in
22562 .) # We are building in place.
22563 ac_srcdir=.
22564 ac_top_srcdir=$ac_top_builddir_sub
22565 ac_abs_top_srcdir=$ac_pwd ;;
22566 [\\/]* | ?:[\\/]* ) # Absolute name.
22567 ac_srcdir=$srcdir$ac_dir_suffix;
22568 ac_top_srcdir=$srcdir
22569 ac_abs_top_srcdir=$srcdir ;;
22570 *) # Relative name.
22571 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22572 ac_top_srcdir=$ac_top_build_prefix$srcdir
22573 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22574esac
22575ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35fa52c0
DWT
22576
22577
9c60689e
DWT
22578 case $ac_mode in
22579 :F)
22580 #
22581 # CONFIG_FILE
22582 #
35fa52c0 22583
9c60689e
DWT
22584 case $INSTALL in
22585 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22586 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22587 esac
66170b30
JF
22588 ac_MKDIR_P=$MKDIR_P
22589 case $MKDIR_P in
22590 [\\/$]* | ?:[\\/]* ) ;;
22591 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22592 esac
9c60689e 22593_ACEOF
35fa52c0 22594
9c60689e
DWT
22595cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22596# If the template does not know about datarootdir, expand it.
22597# FIXME: This hack should be removed a few years after 2.60.
22598ac_datarootdir_hack=; ac_datarootdir_seen=
22599ac_sed_dataroot='
22600/datarootdir/ {
22601 p
22602 q
22603}
22604/@datadir@/p
22605/@docdir@/p
22606/@infodir@/p
22607/@localedir@/p
22608/@mandir@/p'
22609case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22610*datarootdir*) ac_datarootdir_seen=yes;;
22611*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22612 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22613$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22614_ACEOF
22615cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22616 ac_datarootdir_hack='
22617 s&@datadir@&$datadir&g
22618 s&@docdir@&$docdir&g
22619 s&@infodir@&$infodir&g
22620 s&@localedir@&$localedir&g
22621 s&@mandir@&$mandir&g
22622 s&\\\${datarootdir}&$datarootdir&g' ;;
22623esac
22624_ACEOF
35fa52c0 22625
9c60689e
DWT
22626# Neutralize VPATH when `$srcdir' = `.'.
22627# Shell code in configure.ac might set extrasub.
22628# FIXME: do we really want to maintain this feature?
22629cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22630ac_sed_extra="$ac_vpsub
22631$extrasub
22632_ACEOF
22633cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22634:t
22635/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22636s|@configure_input@|$ac_sed_conf_input|;t t
22637s&@top_builddir@&$ac_top_builddir_sub&;t t
22638s&@top_build_prefix@&$ac_top_build_prefix&;t t
22639s&@srcdir@&$ac_srcdir&;t t
22640s&@abs_srcdir@&$ac_abs_srcdir&;t t
22641s&@top_srcdir@&$ac_top_srcdir&;t t
22642s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22643s&@builddir@&$ac_builddir&;t t
22644s&@abs_builddir@&$ac_abs_builddir&;t t
22645s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22646s&@INSTALL@&$ac_INSTALL&;t t
66170b30 22647s&@MKDIR_P@&$ac_MKDIR_P&;t t
9c60689e
DWT
22648$ac_datarootdir_hack
22649"
ee134472
JF
22650eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
22651 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9c60689e
DWT
22652
22653test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
ee134472
JF
22654 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
22655 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
22656 "$ac_tmp/out"`; test -z "$ac_out"; } &&
9c60689e 22657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12833ad8 22658which seems to be undefined. Please make sure it is defined" >&5
9c60689e 22659$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12833ad8 22660which seems to be undefined. Please make sure it is defined" >&2;}
9c60689e 22661
ee134472 22662 rm -f "$ac_tmp/stdin"
9c60689e 22663 case $ac_file in
ee134472
JF
22664 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
22665 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
9c60689e 22666 esac \
12833ad8 22667 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9c60689e 22668 ;;
296ee9a6
JF
22669 :H)
22670 #
22671 # CONFIG_HEADER
22672 #
22673 if test x"$ac_file" != x-; then
22674 {
22675 $as_echo "/* $configure_input */" \
22676 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
22677 } >"$ac_tmp/config.h" \
22678 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22679 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
22680 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22681$as_echo "$as_me: $ac_file is unchanged" >&6;}
22682 else
22683 rm -f "$ac_file"
22684 mv "$ac_tmp/config.h" "$ac_file" \
22685 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22686 fi
22687 else
22688 $as_echo "/* $configure_input */" \
22689 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
22690 || as_fn_error $? "could not create -" "$LINENO" 5
22691 fi
22692# Compute "$ac_file"'s index in $config_headers.
22693_am_arg="$ac_file"
22694_am_stamp_count=1
22695for _am_header in $config_headers :; do
22696 case $_am_header in
22697 $_am_arg | $_am_arg:* )
22698 break ;;
22699 * )
22700 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22701 esac
22702done
22703echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22704$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22705 X"$_am_arg" : 'X\(//\)[^/]' \| \
22706 X"$_am_arg" : 'X\(//\)$' \| \
22707 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22708$as_echo X"$_am_arg" |
22709 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22710 s//\1/
22711 q
22712 }
22713 /^X\(\/\/\)[^/].*/{
22714 s//\1/
22715 q
22716 }
22717 /^X\(\/\/\)$/{
22718 s//\1/
22719 q
22720 }
22721 /^X\(\/\).*/{
22722 s//\1/
22723 q
22724 }
22725 s/.*/./; q'`/stamp-h$_am_stamp_count
22726 ;;
35fa52c0 22727
9c60689e
DWT
22728 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22729$as_echo "$as_me: executing $ac_file commands" >&6;}
22730 ;;
22731 esac
35fa52c0 22732
35fa52c0 22733
9c60689e 22734 case $ac_file$ac_mode in
66170b30
JF
22735 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22736 # Older Autoconf quotes --file arguments for eval, but not when files
22737 # are listed without --file. Let's play safe and only enable the eval
22738 # if we detect the quoting.
22739 case $CONFIG_FILES in
22740 *\'*) eval set x "$CONFIG_FILES" ;;
22741 *) set x $CONFIG_FILES ;;
22742 esac
22743 shift
22744 for mf
22745 do
22746 # Strip MF so we end up with the name of the file.
22747 mf=`echo "$mf" | sed -e 's/:.*$//'`
22748 # Check whether this is an Automake generated Makefile or not.
22749 # We used to match only the files named 'Makefile.in', but
22750 # some people rename them; so instead we look at the file content.
22751 # Grep'ing the first line is not enough: some people post-process
22752 # each Makefile.in and add a new line on top of each file to say so.
22753 # Grep'ing the whole file is not good either: AIX grep has a line
22754 # limit of 2048, but all sed's we know have understand at least 4000.
22755 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
22756 dirpart=`$as_dirname -- "$mf" ||
22757$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22758 X"$mf" : 'X\(//\)[^/]' \| \
22759 X"$mf" : 'X\(//\)$' \| \
22760 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22761$as_echo X"$mf" |
22762 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22763 s//\1/
22764 q
22765 }
22766 /^X\(\/\/\)[^/].*/{
22767 s//\1/
22768 q
22769 }
22770 /^X\(\/\/\)$/{
22771 s//\1/
22772 q
22773 }
22774 /^X\(\/\).*/{
22775 s//\1/
22776 q
22777 }
22778 s/.*/./; q'`
22779 else
22780 continue
22781 fi
22782 # Extract the definition of DEPDIR, am__include, and am__quote
22783 # from the Makefile without running 'make'.
22784 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22785 test -z "$DEPDIR" && continue
22786 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22787 test -z "am__include" && continue
22788 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22789 # Find all dependency output files, they are included files with
22790 # $(DEPDIR) in their names. We invoke sed twice because it is the
22791 # simplest approach to changing $(DEPDIR) to its actual value in the
22792 # expansion.
22793 for file in `sed -n "
22794 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22795 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
22796 # Make sure the directory exists.
22797 test -f "$dirpart/$file" && continue
22798 fdir=`$as_dirname -- "$file" ||
22799$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22800 X"$file" : 'X\(//\)[^/]' \| \
22801 X"$file" : 'X\(//\)$' \| \
22802 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22803$as_echo X"$file" |
22804 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22805 s//\1/
22806 q
22807 }
22808 /^X\(\/\/\)[^/].*/{
22809 s//\1/
22810 q
22811 }
22812 /^X\(\/\/\)$/{
22813 s//\1/
22814 q
22815 }
22816 /^X\(\/\).*/{
22817 s//\1/
22818 q
22819 }
22820 s/.*/./; q'`
22821 as_dir=$dirpart/$fdir; as_fn_mkdir_p
22822 # echo "creating $dirpart/$file"
22823 echo '# dummy' > "$dirpart/$file"
22824 done
22825 done
22826}
22827 ;;
9c60689e
DWT
22828 "libtool":C)
22829
22830 # See if we are running on zsh, and set the options which allow our
22831 # commands through without removal of \ escapes.
22832 if test -n "${ZSH_VERSION+set}" ; then
22833 setopt NO_GLOB_SUBST
35fa52c0 22834 fi
35fa52c0 22835
9c60689e
DWT
22836 cfgfile="${ofile}T"
22837 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22838 $RM "$cfgfile"
35fa52c0 22839
9c60689e
DWT
22840 cat <<_LT_EOF >> "$cfgfile"
22841#! $SHELL
35fa52c0 22842
9c60689e
DWT
22843# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
22844# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
22845# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22846# NOTE: Changes made to this file will be lost: look at ltmain.sh.
22847#
22848# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
53ba6704
JF
22849# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
22850# Foundation, Inc.
9c60689e
DWT
22851# Written by Gordon Matzigkeit, 1996
22852#
22853# This file is part of GNU Libtool.
22854#
22855# GNU Libtool is free software; you can redistribute it and/or
22856# modify it under the terms of the GNU General Public License as
22857# published by the Free Software Foundation; either version 2 of
22858# the License, or (at your option) any later version.
22859#
22860# As a special exception to the GNU General Public License,
22861# if you distribute this file as part of a program or library that
22862# is built using GNU Libtool, you may include this file under the
22863# same distribution terms that you use for the rest of that program.
22864#
22865# GNU Libtool is distributed in the hope that it will be useful,
22866# but WITHOUT ANY WARRANTY; without even the implied warranty of
22867# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22868# GNU General Public License for more details.
22869#
22870# You should have received a copy of the GNU General Public License
22871# along with GNU Libtool; see the file COPYING. If not, a copy
22872# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
22873# obtained by writing to the Free Software Foundation, Inc.,
22874# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
35fa52c0 22875
35fa52c0 22876
9c60689e
DWT
22877# The names of the tagged configurations supported by this script.
22878available_tags="CXX "
35fa52c0 22879
9c60689e 22880# ### BEGIN LIBTOOL CONFIG
35fa52c0 22881
9c60689e
DWT
22882# Which release of libtool.m4 was used?
22883macro_version=$macro_version
22884macro_revision=$macro_revision
35fa52c0 22885
9c60689e
DWT
22886# Whether or not to build static libraries.
22887build_old_libs=$enable_static
35fa52c0 22888
549f29b5
DWT
22889# Whether or not to build shared libraries.
22890build_libtool_libs=$enable_shared
22891
9c60689e
DWT
22892# What type of objects to build.
22893pic_mode=$pic_mode
35fa52c0 22894
9c60689e
DWT
22895# Whether or not to optimize for fast installation.
22896fast_install=$enable_fast_install
35fa52c0 22897
ee134472
JF
22898# Shell to use when invoking shell scripts.
22899SHELL=$lt_SHELL
22900
22901# An echo program that protects backslashes.
22902ECHO=$lt_ECHO
22903
53ba6704
JF
22904# The PATH separator for the build system.
22905PATH_SEPARATOR=$lt_PATH_SEPARATOR
22906
9c60689e
DWT
22907# The host system.
22908host_alias=$host_alias
22909host=$host
22910host_os=$host_os
35fa52c0 22911
9c60689e
DWT
22912# The build system.
22913build_alias=$build_alias
22914build=$build
22915build_os=$build_os
22916
22917# A sed program that does not truncate output.
22918SED=$lt_SED
22919
22920# Sed that helps us avoid accidentally triggering echo(1) options like -n.
22921Xsed="\$SED -e 1s/^X//"
22922
22923# A grep program that handles long lines.
22924GREP=$lt_GREP
22925
22926# An ERE matcher.
22927EGREP=$lt_EGREP
22928
22929# A literal string matcher.
22930FGREP=$lt_FGREP
22931
22932# A BSD- or MS-compatible name lister.
22933NM=$lt_NM
22934
22935# Whether we need soft or hard links.
22936LN_S=$lt_LN_S
22937
22938# What is the maximum length of a command?
22939max_cmd_len=$max_cmd_len
22940
22941# Object file suffix (normally "o").
22942objext=$ac_objext
22943
22944# Executable file suffix (normally "").
22945exeext=$exeext
22946
22947# whether the shell understands "unset".
22948lt_unset=$lt_unset
22949
22950# turn spaces into newlines.
22951SP2NL=$lt_lt_SP2NL
22952
22953# turn newlines into spaces.
22954NL2SP=$lt_lt_NL2SP
22955
ee134472
JF
22956# convert \$build file names to \$host format.
22957to_host_file_cmd=$lt_cv_to_host_file_cmd
22958
22959# convert \$build files to toolchain format.
22960to_tool_file_cmd=$lt_cv_to_tool_file_cmd
9c60689e
DWT
22961
22962# An object symbol dumper.
22963OBJDUMP=$lt_OBJDUMP
22964
22965# Method to check whether dependent libraries are shared objects.
22966deplibs_check_method=$lt_deplibs_check_method
22967
ee134472 22968# Command to use when deplibs_check_method = "file_magic".
9c60689e
DWT
22969file_magic_cmd=$lt_file_magic_cmd
22970
ee134472
JF
22971# How to find potential files when deplibs_check_method = "file_magic".
22972file_magic_glob=$lt_file_magic_glob
22973
22974# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
22975want_nocaseglob=$lt_want_nocaseglob
22976
22977# DLL creation program.
22978DLLTOOL=$lt_DLLTOOL
22979
22980# Command to associate shared and link libraries.
22981sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
22982
9c60689e
DWT
22983# The archiver.
22984AR=$lt_AR
ee134472
JF
22985
22986# Flags to create an archive.
9c60689e
DWT
22987AR_FLAGS=$lt_AR_FLAGS
22988
ee134472
JF
22989# How to feed a file listing to the archiver.
22990archiver_list_spec=$lt_archiver_list_spec
22991
9c60689e
DWT
22992# A symbol stripping program.
22993STRIP=$lt_STRIP
22994
22995# Commands used to install an old-style archive.
22996RANLIB=$lt_RANLIB
22997old_postinstall_cmds=$lt_old_postinstall_cmds
22998old_postuninstall_cmds=$lt_old_postuninstall_cmds
22999
ee134472
JF
23000# Whether to use a lock for old archive extraction.
23001lock_old_archive_extraction=$lock_old_archive_extraction
23002
9c60689e
DWT
23003# A C compiler.
23004LTCC=$lt_CC
23005
23006# LTCC compiler flags.
23007LTCFLAGS=$lt_CFLAGS
23008
23009# Take the output of nm and produce a listing of raw symbols and C names.
23010global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23011
23012# Transform the output of nm in a proper C declaration.
23013global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23014
23015# Transform the output of nm in a C name address pair.
23016global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23017
23018# Transform the output of nm in a C name address pair when lib prefix is needed.
23019global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
23020
ee134472
JF
23021# Specify filename containing input files for \$NM.
23022nm_file_list_spec=$lt_nm_file_list_spec
9c60689e 23023
ee134472
JF
23024# The root where to search for dependent libraries,and in which our libraries should be installed.
23025lt_sysroot=$lt_sysroot
9c60689e 23026
ee134472
JF
23027# The name of the directory that contains temporary libtool files.
23028objdir=$objdir
9c60689e
DWT
23029
23030# Used to examine libraries when file_magic_cmd begins with "file".
23031MAGIC_CMD=$MAGIC_CMD
23032
23033# Must we lock files when doing compilation?
23034need_locks=$lt_need_locks
23035
ee134472
JF
23036# Manifest tool.
23037MANIFEST_TOOL=$lt_MANIFEST_TOOL
23038
9c60689e
DWT
23039# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
23040DSYMUTIL=$lt_DSYMUTIL
23041
23042# Tool to change global to local symbols on Mac OS X.
23043NMEDIT=$lt_NMEDIT
23044
23045# Tool to manipulate fat objects and archives on Mac OS X.
23046LIPO=$lt_LIPO
23047
23048# ldd/readelf like tool for Mach-O binaries on Mac OS X.
23049OTOOL=$lt_OTOOL
23050
23051# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
23052OTOOL64=$lt_OTOOL64
23053
23054# Old archive suffix (normally "a").
23055libext=$libext
23056
23057# Shared library suffix (normally ".so").
23058shrext_cmds=$lt_shrext_cmds
35fa52c0 23059
9c60689e
DWT
23060# The commands to extract the exported symbol list from a shared archive.
23061extract_expsyms_cmds=$lt_extract_expsyms_cmds
35fa52c0 23062
9c60689e
DWT
23063# Variables whose values should be saved in libtool wrapper scripts and
23064# restored at link time.
23065variables_saved_for_relink=$lt_variables_saved_for_relink
35fa52c0 23066
9c60689e
DWT
23067# Do we need the "lib" prefix for modules?
23068need_lib_prefix=$need_lib_prefix
35fa52c0 23069
9c60689e
DWT
23070# Do we need a version for libraries?
23071need_version=$need_version
35fa52c0 23072
9c60689e
DWT
23073# Library versioning type.
23074version_type=$version_type
35fa52c0 23075
9c60689e
DWT
23076# Shared library runtime path variable.
23077runpath_var=$runpath_var
35fa52c0 23078
9c60689e
DWT
23079# Shared library path variable.
23080shlibpath_var=$shlibpath_var
35fa52c0 23081
9c60689e
DWT
23082# Is shlibpath searched before the hard-coded library search path?
23083shlibpath_overrides_runpath=$shlibpath_overrides_runpath
35fa52c0 23084
9c60689e
DWT
23085# Format of library name prefix.
23086libname_spec=$lt_libname_spec
35fa52c0 23087
9c60689e
DWT
23088# List of archive names. First name is the real one, the rest are links.
23089# The last name is the one that the linker finds with -lNAME
23090library_names_spec=$lt_library_names_spec
dbadc56a 23091
9c60689e
DWT
23092# The coded name of the library, if different from the real name.
23093soname_spec=$lt_soname_spec
dbadc56a 23094
ee134472
JF
23095# Permission mode override for installation of shared libraries.
23096install_override_mode=$lt_install_override_mode
23097
9c60689e
DWT
23098# Command to use after installation of a shared archive.
23099postinstall_cmds=$lt_postinstall_cmds
35fa52c0 23100
9c60689e
DWT
23101# Command to use after uninstallation of a shared archive.
23102postuninstall_cmds=$lt_postuninstall_cmds
dbadc56a 23103
9c60689e
DWT
23104# Commands used to finish a libtool library installation in a directory.
23105finish_cmds=$lt_finish_cmds
35fa52c0 23106
9c60689e
DWT
23107# As "finish_cmds", except a single script fragment to be evaled but
23108# not shown.
23109finish_eval=$lt_finish_eval
35fa52c0 23110
9c60689e
DWT
23111# Whether we should hardcode library paths into libraries.
23112hardcode_into_libs=$hardcode_into_libs
dbadc56a 23113
9c60689e
DWT
23114# Compile-time system search path for libraries.
23115sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
35fa52c0 23116
9c60689e
DWT
23117# Run-time system search path for libraries.
23118sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
dbadc56a 23119
9c60689e
DWT
23120# Whether dlopen is supported.
23121dlopen_support=$enable_dlopen
dbadc56a 23122
9c60689e
DWT
23123# Whether dlopen of programs is supported.
23124dlopen_self=$enable_dlopen_self
35fa52c0 23125
9c60689e
DWT
23126# Whether dlopen of statically linked programs is supported.
23127dlopen_self_static=$enable_dlopen_self_static
35fa52c0 23128
9c60689e
DWT
23129# Commands to strip libraries.
23130old_striplib=$lt_old_striplib
23131striplib=$lt_striplib
35fa52c0 23132
35fa52c0 23133
9c60689e
DWT
23134# The linker used to build libraries.
23135LD=$lt_LD
dbadc56a 23136
ee134472
JF
23137# How to create reloadable object files.
23138reload_flag=$lt_reload_flag
23139reload_cmds=$lt_reload_cmds
23140
9c60689e
DWT
23141# Commands used to build an old-style archive.
23142old_archive_cmds=$lt_old_archive_cmds
dbadc56a 23143
9c60689e
DWT
23144# A language specific compiler.
23145CC=$lt_compiler
35fa52c0 23146
9c60689e
DWT
23147# Is the compiler the GNU compiler?
23148with_gcc=$GCC
dbadc56a 23149
9c60689e
DWT
23150# Compiler flag to turn off builtin functions.
23151no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
dbadc56a 23152
9c60689e
DWT
23153# Additional compiler flags for building library objects.
23154pic_flag=$lt_lt_prog_compiler_pic
35fa52c0 23155
ee134472
JF
23156# How to pass a linker flag through the compiler.
23157wl=$lt_lt_prog_compiler_wl
23158
9c60689e
DWT
23159# Compiler flag to prevent dynamic linking.
23160link_static_flag=$lt_lt_prog_compiler_static
35fa52c0 23161
9c60689e
DWT
23162# Does compiler simultaneously support -c and -o options?
23163compiler_c_o=$lt_lt_cv_prog_compiler_c_o
dbadc56a 23164
9c60689e
DWT
23165# Whether or not to add -lc for building shared libraries.
23166build_libtool_need_lc=$archive_cmds_need_lc
35fa52c0 23167
9c60689e
DWT
23168# Whether or not to disallow shared libs when runtime libs are static.
23169allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
35fa52c0 23170
9c60689e
DWT
23171# Compiler flag to allow reflexive dlopens.
23172export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
35fa52c0 23173
9c60689e
DWT
23174# Compiler flag to generate shared objects directly from archives.
23175whole_archive_flag_spec=$lt_whole_archive_flag_spec
dbadc56a 23176
9c60689e
DWT
23177# Whether the compiler copes with passing no objects directly.
23178compiler_needs_object=$lt_compiler_needs_object
dbadc56a 23179
9c60689e
DWT
23180# Create an old-style archive from a shared archive.
23181old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
dbadc56a 23182
9c60689e
DWT
23183# Create a temporary old-style archive to link instead of a shared archive.
23184old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
dbadc56a 23185
9c60689e
DWT
23186# Commands used to build a shared archive.
23187archive_cmds=$lt_archive_cmds
23188archive_expsym_cmds=$lt_archive_expsym_cmds
35fa52c0 23189
9c60689e
DWT
23190# Commands used to build a loadable module if different from building
23191# a shared archive.
23192module_cmds=$lt_module_cmds
23193module_expsym_cmds=$lt_module_expsym_cmds
dbadc56a 23194
9c60689e
DWT
23195# Whether we are building with GNU ld or not.
23196with_gnu_ld=$lt_with_gnu_ld
6b66678a 23197
9c60689e
DWT
23198# Flag that allows shared libraries with undefined symbols to be built.
23199allow_undefined_flag=$lt_allow_undefined_flag
6b66678a 23200
9c60689e
DWT
23201# Flag that enforces no undefined symbols.
23202no_undefined_flag=$lt_no_undefined_flag
6b66678a 23203
9c60689e
DWT
23204# Flag to hardcode \$libdir into a binary during linking.
23205# This must work even if \$libdir does not exist
23206hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
6b66678a 23207
9c60689e
DWT
23208# Whether we need a single "-rpath" flag with a separated argument.
23209hardcode_libdir_separator=$lt_hardcode_libdir_separator
6b66678a 23210
9c60689e
DWT
23211# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23212# DIR into the resulting binary.
23213hardcode_direct=$hardcode_direct
6b66678a 23214
9c60689e
DWT
23215# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23216# DIR into the resulting binary and the resulting library dependency is
23217# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
23218# library is relocated.
23219hardcode_direct_absolute=$hardcode_direct_absolute
6b66678a 23220
9c60689e
DWT
23221# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23222# into the resulting binary.
23223hardcode_minus_L=$hardcode_minus_L
6b66678a 23224
9c60689e
DWT
23225# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23226# into the resulting binary.
23227hardcode_shlibpath_var=$hardcode_shlibpath_var
6b66678a 23228
9c60689e
DWT
23229# Set to "yes" if building a shared library automatically hardcodes DIR
23230# into the library and all subsequent libraries and executables linked
23231# against it.
23232hardcode_automatic=$hardcode_automatic
6b66678a 23233
9c60689e
DWT
23234# Set to yes if linker adds runtime paths of dependent libraries
23235# to runtime path list.
23236inherit_rpath=$inherit_rpath
6b66678a 23237
9c60689e
DWT
23238# Whether libtool must link a program against all its dependency libraries.
23239link_all_deplibs=$link_all_deplibs
23240
9c60689e
DWT
23241# Set to "yes" if exported symbols are required.
23242always_export_symbols=$always_export_symbols
6b66678a 23243
9c60689e
DWT
23244# The commands to list exported symbols.
23245export_symbols_cmds=$lt_export_symbols_cmds
6b66678a 23246
9c60689e
DWT
23247# Symbols that should not be listed in the preloaded symbols.
23248exclude_expsyms=$lt_exclude_expsyms
6b66678a 23249
9c60689e
DWT
23250# Symbols that must always be exported.
23251include_expsyms=$lt_include_expsyms
6b66678a 23252
9c60689e
DWT
23253# Commands necessary for linking programs (against libraries) with templates.
23254prelink_cmds=$lt_prelink_cmds
6b66678a 23255
ee134472
JF
23256# Commands necessary for finishing linking programs.
23257postlink_cmds=$lt_postlink_cmds
23258
9c60689e
DWT
23259# Specify filename containing input files.
23260file_list_spec=$lt_file_list_spec
6b66678a 23261
9c60689e
DWT
23262# How to hardcode a shared library path into an executable.
23263hardcode_action=$hardcode_action
23264
23265# The directories searched by this compiler when creating a shared library.
23266compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
23267
23268# Dependencies to place before and after the objects being linked to
23269# create a shared library.
23270predep_objects=$lt_predep_objects
23271postdep_objects=$lt_postdep_objects
23272predeps=$lt_predeps
23273postdeps=$lt_postdeps
23274
23275# The library search path used internally by the compiler when linking
23276# a shared library.
23277compiler_lib_search_path=$lt_compiler_lib_search_path
23278
23279# ### END LIBTOOL CONFIG
23280
23281_LT_EOF
23282
23283 case $host_os in
23284 aix3*)
23285 cat <<\_LT_EOF >> "$cfgfile"
23286# AIX sometimes has problems with the GCC collect2 program. For some
23287# reason, if we set the COLLECT_NAMES environment variable, the problems
23288# vanish in a puff of smoke.
23289if test "X${COLLECT_NAMES+set}" != Xset; then
23290 COLLECT_NAMES=
23291 export COLLECT_NAMES
6b66678a 23292fi
9c60689e
DWT
23293_LT_EOF
23294 ;;
23295 esac
6b66678a
DWT
23296
23297
9c60689e 23298ltmain="$ac_aux_dir/ltmain.sh"
6b66678a 23299
9c60689e
DWT
23300
23301 # We use sed instead of cat because bash on DJGPP gets confused if
23302 # if finds mixed CR/LF and LF-only lines. Since sed operates in
23303 # text mode, it properly converts lines to CR/LF. This bash problem
23304 # is reportedly fixed, but why not run on old versions too?
ee134472
JF
23305 sed '$q' "$ltmain" >> "$cfgfile" \
23306 || (rm -f "$cfgfile"; exit 1)
23307
23308 if test x"$xsi_shell" = xyes; then
23309 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
23310func_dirname ()\
23311{\
23312\ case ${1} in\
23313\ */*) func_dirname_result="${1%/*}${2}" ;;\
23314\ * ) func_dirname_result="${3}" ;;\
23315\ esac\
23316} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
23317 && mv -f "$cfgfile.tmp" "$cfgfile" \
23318 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23319test 0 -eq $? || _lt_function_replace_fail=:
23320
23321
23322 sed -e '/^func_basename ()$/,/^} # func_basename /c\
23323func_basename ()\
23324{\
23325\ func_basename_result="${1##*/}"\
23326} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
23327 && mv -f "$cfgfile.tmp" "$cfgfile" \
23328 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23329test 0 -eq $? || _lt_function_replace_fail=:
23330
23331
23332 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
23333func_dirname_and_basename ()\
23334{\
23335\ case ${1} in\
23336\ */*) func_dirname_result="${1%/*}${2}" ;;\
23337\ * ) func_dirname_result="${3}" ;;\
23338\ esac\
23339\ func_basename_result="${1##*/}"\
23340} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
23341 && mv -f "$cfgfile.tmp" "$cfgfile" \
23342 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23343test 0 -eq $? || _lt_function_replace_fail=:
23344
23345
23346 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
23347func_stripname ()\
23348{\
23349\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
23350\ # positional parameters, so assign one to ordinary parameter first.\
23351\ func_stripname_result=${3}\
23352\ func_stripname_result=${func_stripname_result#"${1}"}\
23353\ func_stripname_result=${func_stripname_result%"${2}"}\
23354} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
23355 && mv -f "$cfgfile.tmp" "$cfgfile" \
23356 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23357test 0 -eq $? || _lt_function_replace_fail=:
23358
23359
23360 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
23361func_split_long_opt ()\
23362{\
23363\ func_split_long_opt_name=${1%%=*}\
23364\ func_split_long_opt_arg=${1#*=}\
23365} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
23366 && mv -f "$cfgfile.tmp" "$cfgfile" \
23367 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23368test 0 -eq $? || _lt_function_replace_fail=:
23369
23370
23371 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
23372func_split_short_opt ()\
23373{\
23374\ func_split_short_opt_arg=${1#??}\
23375\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
23376} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
23377 && mv -f "$cfgfile.tmp" "$cfgfile" \
23378 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23379test 0 -eq $? || _lt_function_replace_fail=:
23380
23381
23382 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
23383func_lo2o ()\
23384{\
23385\ case ${1} in\
23386\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
23387\ *) func_lo2o_result=${1} ;;\
23388\ esac\
23389} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
23390 && mv -f "$cfgfile.tmp" "$cfgfile" \
23391 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23392test 0 -eq $? || _lt_function_replace_fail=:
23393
23394
23395 sed -e '/^func_xform ()$/,/^} # func_xform /c\
23396func_xform ()\
23397{\
23398 func_xform_result=${1%.*}.lo\
23399} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
23400 && mv -f "$cfgfile.tmp" "$cfgfile" \
23401 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23402test 0 -eq $? || _lt_function_replace_fail=:
23403
23404
23405 sed -e '/^func_arith ()$/,/^} # func_arith /c\
23406func_arith ()\
23407{\
23408 func_arith_result=$(( $* ))\
23409} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
23410 && mv -f "$cfgfile.tmp" "$cfgfile" \
23411 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23412test 0 -eq $? || _lt_function_replace_fail=:
23413
23414
23415 sed -e '/^func_len ()$/,/^} # func_len /c\
23416func_len ()\
23417{\
23418 func_len_result=${#1}\
23419} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
23420 && mv -f "$cfgfile.tmp" "$cfgfile" \
23421 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23422test 0 -eq $? || _lt_function_replace_fail=:
23423
23424fi
23425
23426if test x"$lt_shell_append" = xyes; then
23427 sed -e '/^func_append ()$/,/^} # func_append /c\
23428func_append ()\
23429{\
23430 eval "${1}+=\\${2}"\
23431} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
23432 && mv -f "$cfgfile.tmp" "$cfgfile" \
23433 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23434test 0 -eq $? || _lt_function_replace_fail=:
23435
23436
23437 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
23438func_append_quoted ()\
23439{\
23440\ func_quote_for_eval "${2}"\
23441\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
23442} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
23443 && mv -f "$cfgfile.tmp" "$cfgfile" \
23444 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23445test 0 -eq $? || _lt_function_replace_fail=:
23446
23447
23448 # Save a `func_append' function call where possible by direct use of '+='
23449 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
23450 && mv -f "$cfgfile.tmp" "$cfgfile" \
23451 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23452 test 0 -eq $? || _lt_function_replace_fail=:
23453else
23454 # Save a `func_append' function call even when '+=' is not available
23455 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
23456 && mv -f "$cfgfile.tmp" "$cfgfile" \
23457 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23458 test 0 -eq $? || _lt_function_replace_fail=:
23459fi
23460
23461if test x"$_lt_function_replace_fail" = x":"; then
23462 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
23463$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
23464fi
23465
23466
23467 mv -f "$cfgfile" "$ofile" ||
9c60689e
DWT
23468 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23469 chmod +x "$ofile"
23470
23471
23472 cat <<_LT_EOF >> "$ofile"
23473
23474# ### BEGIN LIBTOOL TAG CONFIG: CXX
23475
23476# The linker used to build libraries.
23477LD=$lt_LD_CXX
23478
ee134472
JF
23479# How to create reloadable object files.
23480reload_flag=$lt_reload_flag_CXX
23481reload_cmds=$lt_reload_cmds_CXX
23482
9c60689e
DWT
23483# Commands used to build an old-style archive.
23484old_archive_cmds=$lt_old_archive_cmds_CXX
23485
23486# A language specific compiler.
23487CC=$lt_compiler_CXX
23488
23489# Is the compiler the GNU compiler?
23490with_gcc=$GCC_CXX
23491
23492# Compiler flag to turn off builtin functions.
23493no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
6b66678a 23494
9c60689e
DWT
23495# Additional compiler flags for building library objects.
23496pic_flag=$lt_lt_prog_compiler_pic_CXX
6b66678a 23497
ee134472
JF
23498# How to pass a linker flag through the compiler.
23499wl=$lt_lt_prog_compiler_wl_CXX
23500
9c60689e
DWT
23501# Compiler flag to prevent dynamic linking.
23502link_static_flag=$lt_lt_prog_compiler_static_CXX
6b66678a 23503
9c60689e
DWT
23504# Does compiler simultaneously support -c and -o options?
23505compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
dbadc56a 23506
9c60689e
DWT
23507# Whether or not to add -lc for building shared libraries.
23508build_libtool_need_lc=$archive_cmds_need_lc_CXX
dbadc56a 23509
9c60689e
DWT
23510# Whether or not to disallow shared libs when runtime libs are static.
23511allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
35fa52c0 23512
9c60689e
DWT
23513# Compiler flag to allow reflexive dlopens.
23514export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
35fa52c0 23515
9c60689e
DWT
23516# Compiler flag to generate shared objects directly from archives.
23517whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
35fa52c0 23518
9c60689e
DWT
23519# Whether the compiler copes with passing no objects directly.
23520compiler_needs_object=$lt_compiler_needs_object_CXX
35fa52c0 23521
9c60689e
DWT
23522# Create an old-style archive from a shared archive.
23523old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
35fa52c0 23524
9c60689e
DWT
23525# Create a temporary old-style archive to link instead of a shared archive.
23526old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
35fa52c0 23527
9c60689e
DWT
23528# Commands used to build a shared archive.
23529archive_cmds=$lt_archive_cmds_CXX
23530archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
6b66678a 23531
9c60689e
DWT
23532# Commands used to build a loadable module if different from building
23533# a shared archive.
23534module_cmds=$lt_module_cmds_CXX
23535module_expsym_cmds=$lt_module_expsym_cmds_CXX
6b66678a 23536
9c60689e
DWT
23537# Whether we are building with GNU ld or not.
23538with_gnu_ld=$lt_with_gnu_ld_CXX
6b66678a 23539
9c60689e
DWT
23540# Flag that allows shared libraries with undefined symbols to be built.
23541allow_undefined_flag=$lt_allow_undefined_flag_CXX
35fa52c0 23542
9c60689e
DWT
23543# Flag that enforces no undefined symbols.
23544no_undefined_flag=$lt_no_undefined_flag_CXX
35fa52c0 23545
9c60689e
DWT
23546# Flag to hardcode \$libdir into a binary during linking.
23547# This must work even if \$libdir does not exist
23548hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
6b66678a 23549
9c60689e
DWT
23550# Whether we need a single "-rpath" flag with a separated argument.
23551hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
6b66678a 23552
9c60689e
DWT
23553# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23554# DIR into the resulting binary.
23555hardcode_direct=$hardcode_direct_CXX
6b66678a 23556
9c60689e
DWT
23557# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23558# DIR into the resulting binary and the resulting library dependency is
23559# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
23560# library is relocated.
23561hardcode_direct_absolute=$hardcode_direct_absolute_CXX
6b66678a 23562
9c60689e
DWT
23563# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23564# into the resulting binary.
23565hardcode_minus_L=$hardcode_minus_L_CXX
35fa52c0 23566
9c60689e
DWT
23567# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23568# into the resulting binary.
23569hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
35fa52c0 23570
9c60689e
DWT
23571# Set to "yes" if building a shared library automatically hardcodes DIR
23572# into the library and all subsequent libraries and executables linked
23573# against it.
23574hardcode_automatic=$hardcode_automatic_CXX
6b66678a 23575
9c60689e
DWT
23576# Set to yes if linker adds runtime paths of dependent libraries
23577# to runtime path list.
23578inherit_rpath=$inherit_rpath_CXX
6b66678a 23579
9c60689e
DWT
23580# Whether libtool must link a program against all its dependency libraries.
23581link_all_deplibs=$link_all_deplibs_CXX
6b66678a 23582
9c60689e
DWT
23583# Set to "yes" if exported symbols are required.
23584always_export_symbols=$always_export_symbols_CXX
6b66678a 23585
9c60689e
DWT
23586# The commands to list exported symbols.
23587export_symbols_cmds=$lt_export_symbols_cmds_CXX
6b66678a 23588
9c60689e
DWT
23589# Symbols that should not be listed in the preloaded symbols.
23590exclude_expsyms=$lt_exclude_expsyms_CXX
6b66678a 23591
9c60689e
DWT
23592# Symbols that must always be exported.
23593include_expsyms=$lt_include_expsyms_CXX
6b66678a 23594
9c60689e
DWT
23595# Commands necessary for linking programs (against libraries) with templates.
23596prelink_cmds=$lt_prelink_cmds_CXX
6b66678a 23597
ee134472
JF
23598# Commands necessary for finishing linking programs.
23599postlink_cmds=$lt_postlink_cmds_CXX
23600
9c60689e
DWT
23601# Specify filename containing input files.
23602file_list_spec=$lt_file_list_spec_CXX
dbadc56a 23603
9c60689e
DWT
23604# How to hardcode a shared library path into an executable.
23605hardcode_action=$hardcode_action_CXX
309b0535 23606
9c60689e
DWT
23607# The directories searched by this compiler when creating a shared library.
23608compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
309b0535 23609
9c60689e
DWT
23610# Dependencies to place before and after the objects being linked to
23611# create a shared library.
23612predep_objects=$lt_predep_objects_CXX
23613postdep_objects=$lt_postdep_objects_CXX
23614predeps=$lt_predeps_CXX
23615postdeps=$lt_postdeps_CXX
309b0535 23616
9c60689e
DWT
23617# The library search path used internally by the compiler when linking
23618# a shared library.
23619compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
23620
23621# ### END LIBTOOL TAG CONFIG: CXX
23622_LT_EOF
23623
23624 ;;
23625
23626 esac
23627done # for ac_tag
23628
23629
23630as_fn_exit 0
23631_ACEOF
23632ac_clean_files=$ac_clean_files_save
23633
23634test $ac_write_fail = 0 ||
12833ad8 23635 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
9c60689e
DWT
23636
23637
23638# configure is writing to config.log, and then calls config.status.
23639# config.status does its own redirection, appending to config.log.
23640# Unfortunately, on DOS this fails, as config.log is still kept open
23641# by configure, so config.status won't be able to write to it; its
23642# output is simply discarded. So we exec the FD to /dev/null,
23643# effectively closing config.log, so it can be properly (re)opened and
23644# appended to by config.status. When coming back to configure, we
23645# need to make the FD available again.
23646if test "$no_create" != yes; then
23647 ac_cs_success=:
23648 ac_config_status_args=
23649 test "$silent" = yes &&
23650 ac_config_status_args="$ac_config_status_args --quiet"
23651 exec 5>/dev/null
23652 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23653 exec 5>>config.log
23654 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23655 # would make configure fail if this is the last instruction.
12833ad8 23656 $ac_cs_success || as_fn_exit 1
309b0535 23657fi
9c60689e
DWT
23658if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23660$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23661fi
23662