]> git.saurik.com Git - cycript.git/blame - configure
Support full compilation on Mac OS X with clang++.
[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
632b71ea 819with_frameworks
5053a6d1 820enable_javascript
66170b30 821with_apr
35fa52c0
DWT
822enable_rpath
823with_libiconv_prefix
c7aa54aa
DWT
824'
825 ac_precious_vars='build_alias
826host_alias
dbadc56a 827target_alias
a243b558
JF
828CXX
829CXXFLAGS
dbadc56a
DWT
830LDFLAGS
831LIBS
832CPPFLAGS
a243b558
JF
833CCC
834OBJCXX
835OBJCXXFLAGS
836CC
837CFLAGS
9c60689e 838CPP
a243b558 839CXXCPP
3fd51f51 840PKG_CONFIG
12833ad8
JF
841PKG_CONFIG_PATH
842PKG_CONFIG_LIBDIR
e9c9a47c
DWT
843BISON
844FLEX
845GPERF
66170b30 846GNUTAR
35fa52c0
DWT
847WEBKIT_CFLAGS
848WEBKIT_LIBS
a667869d 849LIBFFI_CFLAGS
790e5246
DWT
850LIBFFI_LIBS
851GNUSTEP_CONFIG'
c7aa54aa
DWT
852
853
854# Initialize some variables set by options.
855ac_init_help=
856ac_init_version=false
857ac_unrecognized_opts=
858ac_unrecognized_sep=
859# The variables have the same names as the options, with
860# dashes changed to underlines.
861cache_file=/dev/null
862exec_prefix=NONE
863no_create=
864no_recursion=
865prefix=NONE
866program_prefix=NONE
867program_suffix=NONE
868program_transform_name=s,x,x,
869silent=
870site=
871srcdir=
872verbose=
873x_includes=NONE
874x_libraries=NONE
875
876# Installation directory options.
877# These are left unexpanded so users can "make install exec_prefix=/foo"
878# and all the variables that are supposed to be based on exec_prefix
879# by default will actually change.
880# Use braces instead of parens because sh, perl, etc. also accept them.
881# (The list follows the same order as the GNU Coding Standards.)
882bindir='${exec_prefix}/bin'
883sbindir='${exec_prefix}/sbin'
884libexecdir='${exec_prefix}/libexec'
885datarootdir='${prefix}/share'
886datadir='${datarootdir}'
887sysconfdir='${prefix}/etc'
888sharedstatedir='${prefix}/com'
889localstatedir='${prefix}/var'
890includedir='${prefix}/include'
891oldincludedir='/usr/include'
892docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
893infodir='${datarootdir}/info'
894htmldir='${docdir}'
895dvidir='${docdir}'
896pdfdir='${docdir}'
897psdir='${docdir}'
898libdir='${exec_prefix}/lib'
899localedir='${datarootdir}/locale'
900mandir='${datarootdir}/man'
901
902ac_prev=
903ac_dashdash=
904for ac_option
905do
906 # If the previous option needs an argument, assign it.
907 if test -n "$ac_prev"; then
908 eval $ac_prev=\$ac_option
909 ac_prev=
910 continue
911 fi
912
913 case $ac_option in
12833ad8
JF
914 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
915 *=) ac_optarg= ;;
916 *) ac_optarg=yes ;;
c7aa54aa
DWT
917 esac
918
919 # Accept the important Cygnus configure options, so we can diagnose typos.
920
921 case $ac_dashdash$ac_option in
922 --)
923 ac_dashdash=yes ;;
924
925 -bindir | --bindir | --bindi | --bind | --bin | --bi)
926 ac_prev=bindir ;;
927 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
928 bindir=$ac_optarg ;;
929
930 -build | --build | --buil | --bui | --bu)
931 ac_prev=build_alias ;;
932 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
933 build_alias=$ac_optarg ;;
934
935 -cache-file | --cache-file | --cache-fil | --cache-fi \
936 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
937 ac_prev=cache_file ;;
938 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
939 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
940 cache_file=$ac_optarg ;;
941
942 --config-cache | -C)
943 cache_file=config.cache ;;
944
945 -datadir | --datadir | --datadi | --datad)
946 ac_prev=datadir ;;
947 -datadir=* | --datadir=* | --datadi=* | --datad=*)
948 datadir=$ac_optarg ;;
949
950 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
951 | --dataroo | --dataro | --datar)
952 ac_prev=datarootdir ;;
953 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
954 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
955 datarootdir=$ac_optarg ;;
956
957 -disable-* | --disable-*)
958 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
959 # Reject names that are not valid shell variable names.
960 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
12833ad8 961 as_fn_error $? "invalid feature name: $ac_useropt"
c7aa54aa
DWT
962 ac_useropt_orig=$ac_useropt
963 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
964 case $ac_user_opts in
965 *"
966"enable_$ac_useropt"
967"*) ;;
968 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
969 ac_unrecognized_sep=', ';;
970 esac
971 eval enable_$ac_useropt=no ;;
972
973 -docdir | --docdir | --docdi | --doc | --do)
974 ac_prev=docdir ;;
975 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
976 docdir=$ac_optarg ;;
977
978 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
979 ac_prev=dvidir ;;
980 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
981 dvidir=$ac_optarg ;;
982
983 -enable-* | --enable-*)
984 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
985 # Reject names that are not valid shell variable names.
986 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
12833ad8 987 as_fn_error $? "invalid feature name: $ac_useropt"
c7aa54aa
DWT
988 ac_useropt_orig=$ac_useropt
989 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
990 case $ac_user_opts in
991 *"
992"enable_$ac_useropt"
993"*) ;;
994 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
995 ac_unrecognized_sep=', ';;
996 esac
997 eval enable_$ac_useropt=\$ac_optarg ;;
998
999 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1000 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1001 | --exec | --exe | --ex)
1002 ac_prev=exec_prefix ;;
1003 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1004 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1005 | --exec=* | --exe=* | --ex=*)
1006 exec_prefix=$ac_optarg ;;
1007
1008 -gas | --gas | --ga | --g)
1009 # Obsolete; use --with-gas.
1010 with_gas=yes ;;
1011
1012 -help | --help | --hel | --he | -h)
1013 ac_init_help=long ;;
1014 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1015 ac_init_help=recursive ;;
1016 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1017 ac_init_help=short ;;
1018
1019 -host | --host | --hos | --ho)
1020 ac_prev=host_alias ;;
1021 -host=* | --host=* | --hos=* | --ho=*)
1022 host_alias=$ac_optarg ;;
1023
1024 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1025 ac_prev=htmldir ;;
1026 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1027 | --ht=*)
1028 htmldir=$ac_optarg ;;
1029
1030 -includedir | --includedir | --includedi | --included | --include \
1031 | --includ | --inclu | --incl | --inc)
1032 ac_prev=includedir ;;
1033 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1034 | --includ=* | --inclu=* | --incl=* | --inc=*)
1035 includedir=$ac_optarg ;;
1036
1037 -infodir | --infodir | --infodi | --infod | --info | --inf)
1038 ac_prev=infodir ;;
1039 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1040 infodir=$ac_optarg ;;
1041
1042 -libdir | --libdir | --libdi | --libd)
1043 ac_prev=libdir ;;
1044 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1045 libdir=$ac_optarg ;;
1046
1047 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1048 | --libexe | --libex | --libe)
1049 ac_prev=libexecdir ;;
1050 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1051 | --libexe=* | --libex=* | --libe=*)
1052 libexecdir=$ac_optarg ;;
1053
1054 -localedir | --localedir | --localedi | --localed | --locale)
1055 ac_prev=localedir ;;
1056 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1057 localedir=$ac_optarg ;;
1058
1059 -localstatedir | --localstatedir | --localstatedi | --localstated \
1060 | --localstate | --localstat | --localsta | --localst | --locals)
1061 ac_prev=localstatedir ;;
1062 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1063 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1064 localstatedir=$ac_optarg ;;
1065
1066 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1067 ac_prev=mandir ;;
1068 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1069 mandir=$ac_optarg ;;
1070
1071 -nfp | --nfp | --nf)
1072 # Obsolete; use --without-fp.
1073 with_fp=no ;;
1074
1075 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1076 | --no-cr | --no-c | -n)
1077 no_create=yes ;;
1078
1079 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1080 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1081 no_recursion=yes ;;
1082
1083 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1084 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1085 | --oldin | --oldi | --old | --ol | --o)
1086 ac_prev=oldincludedir ;;
1087 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1088 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1089 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1090 oldincludedir=$ac_optarg ;;
1091
1092 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1093 ac_prev=prefix ;;
1094 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1095 prefix=$ac_optarg ;;
1096
1097 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1098 | --program-pre | --program-pr | --program-p)
1099 ac_prev=program_prefix ;;
1100 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1101 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1102 program_prefix=$ac_optarg ;;
1103
1104 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1105 | --program-suf | --program-su | --program-s)
1106 ac_prev=program_suffix ;;
1107 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1108 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1109 program_suffix=$ac_optarg ;;
1110
1111 -program-transform-name | --program-transform-name \
1112 | --program-transform-nam | --program-transform-na \
1113 | --program-transform-n | --program-transform- \
1114 | --program-transform | --program-transfor \
1115 | --program-transfo | --program-transf \
1116 | --program-trans | --program-tran \
1117 | --progr-tra | --program-tr | --program-t)
1118 ac_prev=program_transform_name ;;
1119 -program-transform-name=* | --program-transform-name=* \
1120 | --program-transform-nam=* | --program-transform-na=* \
1121 | --program-transform-n=* | --program-transform-=* \
1122 | --program-transform=* | --program-transfor=* \
1123 | --program-transfo=* | --program-transf=* \
1124 | --program-trans=* | --program-tran=* \
1125 | --progr-tra=* | --program-tr=* | --program-t=*)
1126 program_transform_name=$ac_optarg ;;
1127
1128 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1129 ac_prev=pdfdir ;;
1130 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1131 pdfdir=$ac_optarg ;;
1132
1133 -psdir | --psdir | --psdi | --psd | --ps)
1134 ac_prev=psdir ;;
1135 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1136 psdir=$ac_optarg ;;
1137
1138 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1139 | -silent | --silent | --silen | --sile | --sil)
1140 silent=yes ;;
1141
1142 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1143 ac_prev=sbindir ;;
1144 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1145 | --sbi=* | --sb=*)
1146 sbindir=$ac_optarg ;;
1147
1148 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1149 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1150 | --sharedst | --shareds | --shared | --share | --shar \
1151 | --sha | --sh)
1152 ac_prev=sharedstatedir ;;
1153 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1154 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1155 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1156 | --sha=* | --sh=*)
1157 sharedstatedir=$ac_optarg ;;
1158
1159 -site | --site | --sit)
1160 ac_prev=site ;;
1161 -site=* | --site=* | --sit=*)
1162 site=$ac_optarg ;;
1163
1164 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1165 ac_prev=srcdir ;;
1166 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1167 srcdir=$ac_optarg ;;
1168
1169 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1170 | --syscon | --sysco | --sysc | --sys | --sy)
1171 ac_prev=sysconfdir ;;
1172 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1173 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1174 sysconfdir=$ac_optarg ;;
1175
1176 -target | --target | --targe | --targ | --tar | --ta | --t)
1177 ac_prev=target_alias ;;
1178 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1179 target_alias=$ac_optarg ;;
1180
1181 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1182 verbose=yes ;;
1183
1184 -version | --version | --versio | --versi | --vers | -V)
1185 ac_init_version=: ;;
1186
1187 -with-* | --with-*)
1188 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1189 # Reject names that are not valid shell variable names.
1190 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
12833ad8 1191 as_fn_error $? "invalid package name: $ac_useropt"
c7aa54aa
DWT
1192 ac_useropt_orig=$ac_useropt
1193 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1194 case $ac_user_opts in
1195 *"
1196"with_$ac_useropt"
1197"*) ;;
1198 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1199 ac_unrecognized_sep=', ';;
1200 esac
1201 eval with_$ac_useropt=\$ac_optarg ;;
1202
1203 -without-* | --without-*)
1204 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1205 # Reject names that are not valid shell variable names.
1206 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
12833ad8 1207 as_fn_error $? "invalid package name: $ac_useropt"
c7aa54aa
DWT
1208 ac_useropt_orig=$ac_useropt
1209 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1210 case $ac_user_opts in
1211 *"
1212"with_$ac_useropt"
1213"*) ;;
1214 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1215 ac_unrecognized_sep=', ';;
1216 esac
1217 eval with_$ac_useropt=no ;;
1218
1219 --x)
1220 # Obsolete; use --with-x.
1221 with_x=yes ;;
1222
1223 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1224 | --x-incl | --x-inc | --x-in | --x-i)
1225 ac_prev=x_includes ;;
1226 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1227 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1228 x_includes=$ac_optarg ;;
1229
1230 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1231 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1232 ac_prev=x_libraries ;;
1233 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1234 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1235 x_libraries=$ac_optarg ;;
1236
12833ad8
JF
1237 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1238Try \`$0 --help' for more information"
c7aa54aa
DWT
1239 ;;
1240
1241 *=*)
1242 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1243 # Reject names that are not valid shell variable names.
1244 case $ac_envvar in #(
1245 '' | [0-9]* | *[!_$as_cr_alnum]* )
12833ad8 1246 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
c7aa54aa
DWT
1247 esac
1248 eval $ac_envvar=\$ac_optarg
1249 export $ac_envvar ;;
1250
1251 *)
1252 # FIXME: should be removed in autoconf 3.0.
1253 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1254 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1255 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
ee134472 1256 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
c7aa54aa
DWT
1257 ;;
1258
1259 esac
1260done
1261
1262if test -n "$ac_prev"; then
1263 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
12833ad8 1264 as_fn_error $? "missing argument to $ac_option"
c7aa54aa
DWT
1265fi
1266
1267if test -n "$ac_unrecognized_opts"; then
1268 case $enable_option_checking in
1269 no) ;;
12833ad8 1270 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
c7aa54aa
DWT
1271 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1272 esac
1273fi
1274
1275# Check all directory arguments for consistency.
1276for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1277 datadir sysconfdir sharedstatedir localstatedir includedir \
1278 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1279 libdir localedir mandir
1280do
1281 eval ac_val=\$$ac_var
1282 # Remove trailing slashes.
1283 case $ac_val in
1284 */ )
1285 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1286 eval $ac_var=\$ac_val;;
1287 esac
1288 # Be sure to have absolute directory names.
1289 case $ac_val in
1290 [\\/$]* | ?:[\\/]* ) continue;;
1291 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1292 esac
12833ad8 1293 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
c7aa54aa
DWT
1294done
1295
1296# There might be people who depend on the old broken behavior: `$host'
1297# used to hold the argument of --host etc.
1298# FIXME: To remove some day.
1299build=$build_alias
1300host=$host_alias
1301target=$target_alias
1302
1303# FIXME: To remove some day.
1304if test "x$host_alias" != x; then
1305 if test "x$build_alias" = x; then
1306 cross_compiling=maybe
c7aa54aa
DWT
1307 elif test "x$build_alias" != "x$host_alias"; then
1308 cross_compiling=yes
1309 fi
1310fi
1311
1312ac_tool_prefix=
1313test -n "$host_alias" && ac_tool_prefix=$host_alias-
1314
1315test "$silent" = yes && exec 6>/dev/null
1316
1317
1318ac_pwd=`pwd` && test -n "$ac_pwd" &&
1319ac_ls_di=`ls -di .` &&
1320ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
12833ad8 1321 as_fn_error $? "working directory cannot be determined"
c7aa54aa 1322test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
12833ad8 1323 as_fn_error $? "pwd does not report name of working directory"
c7aa54aa
DWT
1324
1325
1326# Find the source files, if location was not specified.
1327if test -z "$srcdir"; then
1328 ac_srcdir_defaulted=yes
1329 # Try the directory containing this script, then the parent directory.
1330 ac_confdir=`$as_dirname -- "$as_myself" ||
1331$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1332 X"$as_myself" : 'X\(//\)[^/]' \| \
1333 X"$as_myself" : 'X\(//\)$' \| \
1334 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1335$as_echo X"$as_myself" |
1336 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1337 s//\1/
1338 q
1339 }
1340 /^X\(\/\/\)[^/].*/{
1341 s//\1/
1342 q
1343 }
1344 /^X\(\/\/\)$/{
1345 s//\1/
1346 q
1347 }
1348 /^X\(\/\).*/{
1349 s//\1/
1350 q
1351 }
1352 s/.*/./; q'`
1353 srcdir=$ac_confdir
1354 if test ! -r "$srcdir/$ac_unique_file"; then
1355 srcdir=..
1356 fi
1357else
1358 ac_srcdir_defaulted=no
1359fi
1360if test ! -r "$srcdir/$ac_unique_file"; then
1361 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
12833ad8 1362 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
c7aa54aa
DWT
1363fi
1364ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1365ac_abs_confdir=`(
12833ad8 1366 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
c7aa54aa
DWT
1367 pwd)`
1368# When building in place, set srcdir=.
1369if test "$ac_abs_confdir" = "$ac_pwd"; then
1370 srcdir=.
1371fi
1372# Remove unnecessary trailing slashes from srcdir.
1373# Double slashes in file names in object file debugging info
1374# mess up M-x gdb in Emacs.
1375case $srcdir in
1376*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1377esac
1378for ac_var in $ac_precious_vars; do
1379 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1380 eval ac_env_${ac_var}_value=\$${ac_var}
1381 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1382 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1383done
1384
1385#
1386# Report the --help message.
1387#
1388if test "$ac_init_help" = "long"; then
1389 # Omit some internal or obsolete options to make the list less imposing.
1390 # This message is too long to be a string in the A/UX 3.1 sh.
1391 cat <<_ACEOF
1392\`configure' configures Cycript 0.9 to adapt to many kinds of systems.
1393
1394Usage: $0 [OPTION]... [VAR=VALUE]...
1395
1396To assign environment variables (e.g., CC, CFLAGS...), specify them as
1397VAR=VALUE. See below for descriptions of some of the useful variables.
1398
1399Defaults for the options are specified in brackets.
1400
1401Configuration:
1402 -h, --help display this help and exit
1403 --help=short display options specific to this package
1404 --help=recursive display the short help of all the included packages
1405 -V, --version display version information and exit
12833ad8 1406 -q, --quiet, --silent do not print \`checking ...' messages
c7aa54aa
DWT
1407 --cache-file=FILE cache test results in FILE [disabled]
1408 -C, --config-cache alias for \`--cache-file=config.cache'
1409 -n, --no-create do not create output files
1410 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1411
1412Installation directories:
1413 --prefix=PREFIX install architecture-independent files in PREFIX
1414 [$ac_default_prefix]
1415 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1416 [PREFIX]
1417
1418By default, \`make install' will install all the files in
1419\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1420an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1421for instance \`--prefix=\$HOME'.
1422
1423For better control, use the options below.
1424
1425Fine tuning of the installation directories:
1426 --bindir=DIR user executables [EPREFIX/bin]
1427 --sbindir=DIR system admin executables [EPREFIX/sbin]
1428 --libexecdir=DIR program executables [EPREFIX/libexec]
1429 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1430 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1431 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1432 --libdir=DIR object code libraries [EPREFIX/lib]
1433 --includedir=DIR C header files [PREFIX/include]
1434 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1435 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1436 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1437 --infodir=DIR info documentation [DATAROOTDIR/info]
1438 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1439 --mandir=DIR man documentation [DATAROOTDIR/man]
1440 --docdir=DIR documentation root [DATAROOTDIR/doc/cycript]
1441 --htmldir=DIR html documentation [DOCDIR]
1442 --dvidir=DIR dvi documentation [DOCDIR]
1443 --pdfdir=DIR pdf documentation [DOCDIR]
1444 --psdir=DIR ps documentation [DOCDIR]
1445_ACEOF
1446
1447 cat <<\_ACEOF
35fa52c0 1448
66170b30
JF
1449Program names:
1450 --program-prefix=PREFIX prepend PREFIX to installed program names
1451 --program-suffix=SUFFIX append SUFFIX to installed program names
1452 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1453
35fa52c0
DWT
1454System types:
1455 --build=BUILD configure for building on BUILD [guessed]
1456 --host=HOST cross-compile to build programs to run on HOST [BUILD]
c7aa54aa
DWT
1457_ACEOF
1458fi
1459
1460if test -n "$ac_init_help"; then
1461 case $ac_init_help in
1462 short | recursive ) echo "Configuration of Cycript 0.9:";;
1463 esac
1464 cat <<\_ACEOF
1465
35fa52c0
DWT
1466Optional Features:
1467 --disable-option-checking ignore unrecognized --enable/--with options
1468 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1469 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
66170b30
JF
1470 --enable-silent-rules less verbose build output (undo: "make V=1")
1471 --disable-silent-rules verbose build output (undo: "make V=0")
66170b30
JF
1472 --enable-dependency-tracking
1473 do not reject slow dependency extractors
1474 --disable-dependency-tracking
1475 speeds up one-time build
a243b558
JF
1476 --enable-static[=PKGS] build static libraries [default=no]
1477 --enable-shared[=PKGS] build shared libraries [default=yes]
1478 --enable-fast-install[=PKGS]
1479 optimize for fast installation [default=yes]
9c60689e 1480 --disable-libtool-lock avoid locking (might break parallel builds)
b66977f1 1481 --enable-javascript[=ENGINE]
790e5246 1482 use a JavaScript runtime (currently the only
b66977f1
DWT
1483 available option for ENGINE is JavaScriptCore)
1484 [default=yes]
5053a6d1 1485 --disable-rpath do not hardcode runtime library paths
35fa52c0
DWT
1486
1487Optional Packages:
1488 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1489 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
53ba6704 1490 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
9c60689e
DWT
1491 both]
1492 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
ee134472
JF
1493 --with-sysroot=DIR Search for dependent libraries within DIR
1494 (or the compiler's sysroot if not specified).
632b71ea
DWT
1495 --with-frameworks=DIRS add to DIRS (space separated) to the Darwin include
1496 path for frameworks with -F
309b0535
DWT
1497 --with-apr=PATH prefix for installed APR or the full path to
1498 apr-config
53ba6704 1499 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
35fa52c0
DWT
1500 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1501 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1502
dbadc56a 1503Some influential environment variables:
a243b558
JF
1504 CXX C++ compiler command
1505 CXXFLAGS C++ compiler flags
dbadc56a
DWT
1506 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1507 nonstandard directory <lib dir>
1508 LIBS libraries to pass to the linker, e.g. -l<library>
9c60689e 1509 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
dbadc56a 1510 you have headers in a nonstandard directory <include dir>
a243b558
JF
1511 OBJCXX Objective C++ compiler command
1512 OBJCXXFLAGS Objective C++ compiler flags
1513 CC C compiler command
1514 CFLAGS C compiler flags
9c60689e 1515 CPP C preprocessor
a243b558 1516 CXXCPP C++ preprocessor
3fd51f51 1517 PKG_CONFIG path to pkg-config utility
12833ad8
JF
1518 PKG_CONFIG_PATH
1519 directories to add to pkg-config's search path
1520 PKG_CONFIG_LIBDIR
1521 path overriding pkg-config's built-in search path
e9c9a47c
DWT
1522 BISON GNU Project parser generator (yacc replacement)
1523 FLEX the fast lexical analyser generator
1524 GPERF perfect hash function generator
66170b30 1525 GNUTAR a very sticky lump of files
35fa52c0
DWT
1526 WEBKIT_CFLAGS
1527 C compiler flags for WEBKIT, overriding pkg-config
1528 WEBKIT_LIBS linker flags for WEBKIT, overriding pkg-config
790e5246
DWT
1529 GNUSTEP_CONFIG
1530 prints information about the current gnustep installation
dbadc56a
DWT
1531
1532Use these variables to override the choices made by `configure' or to help
1533it to find libraries and programs with nonstandard names/locations.
1534
c7aa54aa
DWT
1535Report bugs to <saurik@saurik.com>.
1536Cycript home page: <http://www.cycript.org/>.
1537_ACEOF
1538ac_status=$?
1539fi
1540
1541if test "$ac_init_help" = "recursive"; then
1542 # If there are subdirs, report their specific --help.
1543 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1544 test -d "$ac_dir" ||
1545 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1546 continue
1547 ac_builddir=.
1548
1549case "$ac_dir" in
1550.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1551*)
1552 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1553 # A ".." for each directory in $ac_dir_suffix.
1554 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1555 case $ac_top_builddir_sub in
1556 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1557 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1558 esac ;;
1559esac
1560ac_abs_top_builddir=$ac_pwd
1561ac_abs_builddir=$ac_pwd$ac_dir_suffix
1562# for backward compatibility:
1563ac_top_builddir=$ac_top_build_prefix
1564
1565case $srcdir in
1566 .) # We are building in place.
1567 ac_srcdir=.
1568 ac_top_srcdir=$ac_top_builddir_sub
1569 ac_abs_top_srcdir=$ac_pwd ;;
1570 [\\/]* | ?:[\\/]* ) # Absolute name.
1571 ac_srcdir=$srcdir$ac_dir_suffix;
1572 ac_top_srcdir=$srcdir
1573 ac_abs_top_srcdir=$srcdir ;;
1574 *) # Relative name.
1575 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1576 ac_top_srcdir=$ac_top_build_prefix$srcdir
1577 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1578esac
1579ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1580
1581 cd "$ac_dir" || { ac_status=$?; continue; }
1582 # Check for guested configure.
1583 if test -f "$ac_srcdir/configure.gnu"; then
1584 echo &&
1585 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1586 elif test -f "$ac_srcdir/configure"; then
1587 echo &&
1588 $SHELL "$ac_srcdir/configure" --help=recursive
1589 else
1590 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1591 fi || ac_status=$?
1592 cd "$ac_pwd" || { ac_status=$?; break; }
1593 done
1594fi
1595
1596test -n "$ac_init_help" && exit $ac_status
1597if $ac_init_version; then
1598 cat <<\_ACEOF
1599Cycript configure 0.9
53ba6704 1600generated by GNU Autoconf 2.69
c7aa54aa 1601
53ba6704 1602Copyright (C) 2012 Free Software Foundation, Inc.
c7aa54aa
DWT
1603This configure script is free software; the Free Software Foundation
1604gives unlimited permission to copy, distribute and modify it.
66170b30
JF
1605
1606Copyright (C) 2009-2012 Jay Freeman (saurik)
c7aa54aa
DWT
1607_ACEOF
1608 exit
1609fi
1610
1611## ------------------------ ##
1612## Autoconf initialization. ##
1613## ------------------------ ##
dbadc56a 1614
a243b558
JF
1615# ac_fn_cxx_try_compile LINENO
1616# ----------------------------
1617# Try to compile conftest.$ac_ext, and return whether this succeeded.
1618ac_fn_cxx_try_compile ()
1619{
1620 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1621 rm -f conftest.$ac_objext
1622 if { { ac_try="$ac_compile"
1623case "(($ac_try" in
1624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1625 *) ac_try_echo=$ac_try;;
1626esac
1627eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1628$as_echo "$ac_try_echo"; } >&5
1629 (eval "$ac_compile") 2>conftest.err
1630 ac_status=$?
1631 if test -s conftest.err; then
1632 grep -v '^ *+' conftest.err >conftest.er1
1633 cat conftest.er1 >&5
1634 mv -f conftest.er1 conftest.err
1635 fi
1636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1637 test $ac_status = 0; } && {
1638 test -z "$ac_cxx_werror_flag" ||
1639 test ! -s conftest.err
1640 } && test -s conftest.$ac_objext; then :
1641 ac_retval=0
1642else
1643 $as_echo "$as_me: failed program was:" >&5
1644sed 's/^/| /' conftest.$ac_ext >&5
1645
1646 ac_retval=1
1647fi
1648 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1649 as_fn_set_status $ac_retval
1650
1651} # ac_fn_cxx_try_compile
1652
1653# ac_fn_objcxx_try_compile LINENO
1654# -------------------------------
1655# Try to compile conftest.$ac_ext, and return whether this succeeded.
1656ac_fn_objcxx_try_compile ()
1657{
1658 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1659 rm -f conftest.$ac_objext
1660 if { { ac_try="$ac_compile"
1661case "(($ac_try" in
1662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1663 *) ac_try_echo=$ac_try;;
1664esac
1665eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1666$as_echo "$ac_try_echo"; } >&5
1667 (eval "$ac_compile") 2>conftest.err
1668 ac_status=$?
1669 if test -s conftest.err; then
1670 grep -v '^ *+' conftest.err >conftest.er1
1671 cat conftest.er1 >&5
1672 mv -f conftest.er1 conftest.err
1673 fi
1674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1675 test $ac_status = 0; } && {
1676 test -z "$ac_objcxx_werror_flag" ||
1677 test ! -s conftest.err
1678 } && test -s conftest.$ac_objext; then :
1679 ac_retval=0
1680else
1681 $as_echo "$as_me: failed program was:" >&5
1682sed 's/^/| /' conftest.$ac_ext >&5
1683
1684 ac_retval=1
1685fi
1686 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1687 as_fn_set_status $ac_retval
1688
1689} # ac_fn_objcxx_try_compile
1690
35fa52c0
DWT
1691# ac_fn_c_try_compile LINENO
1692# --------------------------
1693# Try to compile conftest.$ac_ext, and return whether this succeeded.
1694ac_fn_c_try_compile ()
1695{
1696 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1697 rm -f conftest.$ac_objext
1698 if { { ac_try="$ac_compile"
1699case "(($ac_try" in
1700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1701 *) ac_try_echo=$ac_try;;
1702esac
1703eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1704$as_echo "$ac_try_echo"; } >&5
1705 (eval "$ac_compile") 2>conftest.err
1706 ac_status=$?
1707 if test -s conftest.err; then
1708 grep -v '^ *+' conftest.err >conftest.er1
1709 cat conftest.er1 >&5
1710 mv -f conftest.er1 conftest.err
1711 fi
1712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1713 test $ac_status = 0; } && {
1714 test -z "$ac_c_werror_flag" ||
1715 test ! -s conftest.err
1716 } && test -s conftest.$ac_objext; then :
1717 ac_retval=0
1718else
1719 $as_echo "$as_me: failed program was:" >&5
1720sed 's/^/| /' conftest.$ac_ext >&5
1721
1722 ac_retval=1
1723fi
ee134472 1724 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9c60689e 1725 as_fn_set_status $ac_retval
35fa52c0
DWT
1726
1727} # ac_fn_c_try_compile
1728
1729# ac_fn_c_try_link LINENO
1730# -----------------------
1731# Try to link conftest.$ac_ext, and return whether this succeeded.
1732ac_fn_c_try_link ()
1733{
1734 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1735 rm -f conftest.$ac_objext conftest$ac_exeext
1736 if { { ac_try="$ac_link"
1737case "(($ac_try" in
1738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1739 *) ac_try_echo=$ac_try;;
1740esac
1741eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1742$as_echo "$ac_try_echo"; } >&5
1743 (eval "$ac_link") 2>conftest.err
1744 ac_status=$?
1745 if test -s conftest.err; then
1746 grep -v '^ *+' conftest.err >conftest.er1
1747 cat conftest.er1 >&5
1748 mv -f conftest.er1 conftest.err
1749 fi
1750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1751 test $ac_status = 0; } && {
1752 test -z "$ac_c_werror_flag" ||
1753 test ! -s conftest.err
1754 } && test -s conftest$ac_exeext && {
1755 test "$cross_compiling" = yes ||
53ba6704 1756 test -x conftest$ac_exeext
35fa52c0
DWT
1757 }; then :
1758 ac_retval=0
1759else
1760 $as_echo "$as_me: failed program was:" >&5
1761sed 's/^/| /' conftest.$ac_ext >&5
1762
1763 ac_retval=1
1764fi
1765 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1766 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1767 # interfere with the next link command; also delete a directory that is
1768 # left behind by Apple's compiler. We do this before executing the actions.
1769 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
ee134472 1770 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9c60689e 1771 as_fn_set_status $ac_retval
35fa52c0
DWT
1772
1773} # ac_fn_c_try_link
1774
9c60689e
DWT
1775# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1776# -------------------------------------------------------
1777# Tests whether HEADER exists and can be compiled using the include files in
1778# INCLUDES, setting the cache variable VAR accordingly.
1779ac_fn_c_check_header_compile ()
dbadc56a
DWT
1780{
1781 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9c60689e
DWT
1782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1783$as_echo_n "checking for $2... " >&6; }
ee134472 1784if eval \${$3+:} false; then :
9c60689e
DWT
1785 $as_echo_n "(cached) " >&6
1786else
1787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1788/* end confdefs.h. */
1789$4
1790#include <$2>
1791_ACEOF
1792if ac_fn_c_try_compile "$LINENO"; then :
1793 eval "$3=yes"
1794else
1795 eval "$3=no"
1796fi
1797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1798fi
1799eval ac_res=\$$3
1800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1801$as_echo "$ac_res" >&6; }
ee134472 1802 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9c60689e
DWT
1803
1804} # ac_fn_c_check_header_compile
1805
1806# ac_fn_c_try_cpp LINENO
1807# ----------------------
1808# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1809ac_fn_c_try_cpp ()
1810{
1811 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1812 if { { ac_try="$ac_cpp conftest.$ac_ext"
dbadc56a
DWT
1813case "(($ac_try" in
1814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1815 *) ac_try_echo=$ac_try;;
1816esac
1817eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1818$as_echo "$ac_try_echo"; } >&5
9c60689e 1819 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
dbadc56a
DWT
1820 ac_status=$?
1821 if test -s conftest.err; then
1822 grep -v '^ *+' conftest.err >conftest.er1
1823 cat conftest.er1 >&5
1824 mv -f conftest.er1 conftest.err
1825 fi
1826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12833ad8 1827 test $ac_status = 0; } > conftest.i && {
9c60689e 1828 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
dbadc56a 1829 test ! -s conftest.err
9c60689e 1830 }; then :
dbadc56a
DWT
1831 ac_retval=0
1832else
1833 $as_echo "$as_me: failed program was:" >&5
1834sed 's/^/| /' conftest.$ac_ext >&5
1835
9c60689e 1836 ac_retval=1
dbadc56a 1837fi
ee134472 1838 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9c60689e 1839 as_fn_set_status $ac_retval
dbadc56a 1840
9c60689e 1841} # ac_fn_c_try_cpp
35fa52c0
DWT
1842
1843# ac_fn_c_try_run LINENO
1844# ----------------------
1845# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1846# that executables *can* be run.
1847ac_fn_c_try_run ()
1848{
1849 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1850 if { { ac_try="$ac_link"
1851case "(($ac_try" in
1852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1853 *) ac_try_echo=$ac_try;;
1854esac
1855eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1856$as_echo "$ac_try_echo"; } >&5
1857 (eval "$ac_link") 2>&5
1858 ac_status=$?
1859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1860 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1861 { { case "(($ac_try" in
1862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1863 *) ac_try_echo=$ac_try;;
1864esac
1865eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1866$as_echo "$ac_try_echo"; } >&5
1867 (eval "$ac_try") 2>&5
1868 ac_status=$?
1869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1870 test $ac_status = 0; }; }; then :
1871 ac_retval=0
1872else
1873 $as_echo "$as_me: program exited with status $ac_status" >&5
1874 $as_echo "$as_me: failed program was:" >&5
1875sed 's/^/| /' conftest.$ac_ext >&5
1876
1877 ac_retval=$ac_status
1878fi
1879 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
ee134472 1880 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9c60689e 1881 as_fn_set_status $ac_retval
35fa52c0
DWT
1882
1883} # ac_fn_c_try_run
6b66678a 1884
9c60689e
DWT
1885# ac_fn_c_check_func LINENO FUNC VAR
1886# ----------------------------------
1887# Tests whether FUNC exists, setting the cache variable VAR accordingly
1888ac_fn_c_check_func ()
6b66678a
DWT
1889{
1890 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9c60689e
DWT
1891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1892$as_echo_n "checking for $2... " >&6; }
ee134472 1893if eval \${$3+:} false; then :
9c60689e 1894 $as_echo_n "(cached) " >&6
6b66678a 1895else
9c60689e
DWT
1896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1897/* end confdefs.h. */
1898/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1899 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1900#define $2 innocuous_$2
6b66678a 1901
9c60689e
DWT
1902/* System header to define __stub macros and hopefully few prototypes,
1903 which can conflict with char $2 (); below.
1904 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1905 <limits.h> exists even on freestanding compilers. */
1906
1907#ifdef __STDC__
1908# include <limits.h>
1909#else
1910# include <assert.h>
1911#endif
1912
1913#undef $2
1914
1915/* Override any GCC internal prototype to avoid an error.
1916 Use char because int might match the return type of a GCC
1917 builtin and then its argument prototype would still apply. */
1918#ifdef __cplusplus
1919extern "C"
1920#endif
1921char $2 ();
1922/* The GNU C library defines this for functions which it implements
1923 to always fail with ENOSYS. Some functions are actually named
1924 something starting with __ and the normal name is an alias. */
1925#if defined __stub_$2 || defined __stub___$2
1926choke me
1927#endif
1928
1929int
1930main ()
1931{
1932return $2 ();
1933 ;
1934 return 0;
1935}
1936_ACEOF
1937if ac_fn_c_try_link "$LINENO"; then :
1938 eval "$3=yes"
1939else
1940 eval "$3=no"
1941fi
1942rm -f core conftest.err conftest.$ac_objext \
1943 conftest$ac_exeext conftest.$ac_ext
6b66678a 1944fi
9c60689e
DWT
1945eval ac_res=\$$3
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1947$as_echo "$ac_res" >&6; }
ee134472 1948 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
6b66678a 1949
9c60689e 1950} # ac_fn_c_check_func
6b66678a 1951
9c60689e
DWT
1952# ac_fn_cxx_try_cpp LINENO
1953# ------------------------
1954# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1955ac_fn_cxx_try_cpp ()
1956{
1957 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1958 if { { ac_try="$ac_cpp conftest.$ac_ext"
1959case "(($ac_try" in
1960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1961 *) ac_try_echo=$ac_try;;
1962esac
1963eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1964$as_echo "$ac_try_echo"; } >&5
1965 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1966 ac_status=$?
1967 if test -s conftest.err; then
1968 grep -v '^ *+' conftest.err >conftest.er1
1969 cat conftest.er1 >&5
1970 mv -f conftest.er1 conftest.err
1971 fi
1972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12833ad8 1973 test $ac_status = 0; } > conftest.i && {
9c60689e
DWT
1974 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1975 test ! -s conftest.err
1976 }; then :
1977 ac_retval=0
1978else
1979 $as_echo "$as_me: failed program was:" >&5
1980sed 's/^/| /' conftest.$ac_ext >&5
1981
1982 ac_retval=1
1983fi
ee134472 1984 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9c60689e
DWT
1985 as_fn_set_status $ac_retval
1986
1987} # ac_fn_cxx_try_cpp
1988
1989# ac_fn_cxx_try_link LINENO
1990# -------------------------
1991# Try to link conftest.$ac_ext, and return whether this succeeded.
1992ac_fn_cxx_try_link ()
1993{
1994 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1995 rm -f conftest.$ac_objext conftest$ac_exeext
1996 if { { ac_try="$ac_link"
1997case "(($ac_try" in
1998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1999 *) ac_try_echo=$ac_try;;
2000esac
2001eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2002$as_echo "$ac_try_echo"; } >&5
2003 (eval "$ac_link") 2>conftest.err
2004 ac_status=$?
2005 if test -s conftest.err; then
2006 grep -v '^ *+' conftest.err >conftest.er1
2007 cat conftest.er1 >&5
2008 mv -f conftest.er1 conftest.err
2009 fi
2010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2011 test $ac_status = 0; } && {
2012 test -z "$ac_cxx_werror_flag" ||
2013 test ! -s conftest.err
2014 } && test -s conftest$ac_exeext && {
2015 test "$cross_compiling" = yes ||
53ba6704 2016 test -x conftest$ac_exeext
9c60689e
DWT
2017 }; then :
2018 ac_retval=0
2019else
2020 $as_echo "$as_me: failed program was:" >&5
2021sed 's/^/| /' conftest.$ac_ext >&5
2022
2023 ac_retval=1
2024fi
2025 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2026 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2027 # interfere with the next link command; also delete a directory that is
2028 # left behind by Apple's compiler. We do this before executing the actions.
2029 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
ee134472 2030 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9c60689e
DWT
2031 as_fn_set_status $ac_retval
2032
2033} # ac_fn_cxx_try_link
2034
47aaa820
DWT
2035# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2036# ---------------------------------------------------------
2037# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2038# the include files in INCLUDES and setting the cache variable VAR
2039# accordingly.
2040ac_fn_cxx_check_header_mongrel ()
2041{
2042 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
ee134472 2043 if eval \${$3+:} false; then :
47aaa820
DWT
2044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2045$as_echo_n "checking for $2... " >&6; }
ee134472 2046if eval \${$3+:} false; then :
47aaa820
DWT
2047 $as_echo_n "(cached) " >&6
2048fi
2049eval ac_res=\$$3
2050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2051$as_echo "$ac_res" >&6; }
2052else
2053 # Is the header compilable?
2054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2055$as_echo_n "checking $2 usability... " >&6; }
2056cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2057/* end confdefs.h. */
2058$4
2059#include <$2>
2060_ACEOF
2061if ac_fn_cxx_try_compile "$LINENO"; then :
2062 ac_header_compiler=yes
2063else
2064 ac_header_compiler=no
2065fi
2066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2068$as_echo "$ac_header_compiler" >&6; }
2069
2070# Is the header present?
2071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2072$as_echo_n "checking $2 presence... " >&6; }
2073cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2074/* end confdefs.h. */
2075#include <$2>
2076_ACEOF
2077if ac_fn_cxx_try_cpp "$LINENO"; then :
2078 ac_header_preproc=yes
2079else
2080 ac_header_preproc=no
2081fi
12833ad8 2082rm -f conftest.err conftest.i conftest.$ac_ext
47aaa820
DWT
2083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2084$as_echo "$ac_header_preproc" >&6; }
2085
2086# So? What about this header?
2087case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2088 yes:no: )
2089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2090$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2092$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2093 ;;
2094 no:yes:* )
2095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2096$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2098$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2100$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2102$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2103 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2104$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
12833ad8 2105( $as_echo "## -------------------------------- ##
47aaa820 2106## Report this to saurik@saurik.com ##
12833ad8 2107## -------------------------------- ##"
47aaa820
DWT
2108 ) | sed "s/^/$as_me: WARNING: /" >&2
2109 ;;
2110esac
2111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2112$as_echo_n "checking for $2... " >&6; }
ee134472 2113if eval \${$3+:} false; then :
47aaa820
DWT
2114 $as_echo_n "(cached) " >&6
2115else
2116 eval "$3=\$ac_header_compiler"
2117fi
2118eval ac_res=\$$3
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2120$as_echo "$ac_res" >&6; }
2121fi
ee134472 2122 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
47aaa820
DWT
2123
2124} # ac_fn_cxx_check_header_mongrel
2125
c823f118
DWT
2126# ac_fn_objcxx_try_link LINENO
2127# ----------------------------
2128# Try to link conftest.$ac_ext, and return whether this succeeded.
2129ac_fn_objcxx_try_link ()
2130{
2131 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2132 rm -f conftest.$ac_objext conftest$ac_exeext
2133 if { { ac_try="$ac_link"
2134case "(($ac_try" in
2135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2136 *) ac_try_echo=$ac_try;;
2137esac
2138eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2139$as_echo "$ac_try_echo"; } >&5
2140 (eval "$ac_link") 2>conftest.err
2141 ac_status=$?
2142 if test -s conftest.err; then
2143 grep -v '^ *+' conftest.err >conftest.er1
2144 cat conftest.er1 >&5
2145 mv -f conftest.er1 conftest.err
2146 fi
2147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2148 test $ac_status = 0; } && {
2149 test -z "$ac_objcxx_werror_flag" ||
2150 test ! -s conftest.err
2151 } && test -s conftest$ac_exeext && {
2152 test "$cross_compiling" = yes ||
53ba6704 2153 test -x conftest$ac_exeext
c823f118
DWT
2154 }; then :
2155 ac_retval=0
2156else
2157 $as_echo "$as_me: failed program was:" >&5
2158sed 's/^/| /' conftest.$ac_ext >&5
2159
2160 ac_retval=1
2161fi
2162 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2163 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2164 # interfere with the next link command; also delete a directory that is
2165 # left behind by Apple's compiler. We do this before executing the actions.
2166 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
ee134472 2167 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
c823f118
DWT
2168 as_fn_set_status $ac_retval
2169
2170} # ac_fn_objcxx_try_link
c7aa54aa
DWT
2171cat >config.log <<_ACEOF
2172This file contains any messages produced by compilers while
2173running configure, to aid debugging if configure makes a mistake.
2174
2175It was created by Cycript $as_me 0.9, which was
53ba6704 2176generated by GNU Autoconf 2.69. Invocation command line was
c7aa54aa
DWT
2177
2178 $ $0 $@
2179
2180_ACEOF
2181exec 5>>config.log
2182{
2183cat <<_ASUNAME
2184## --------- ##
2185## Platform. ##
2186## --------- ##
2187
2188hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2189uname -m = `(uname -m) 2>/dev/null || echo unknown`
2190uname -r = `(uname -r) 2>/dev/null || echo unknown`
2191uname -s = `(uname -s) 2>/dev/null || echo unknown`
2192uname -v = `(uname -v) 2>/dev/null || echo unknown`
2193
2194/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2195/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2196
2197/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2198/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2199/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2200/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2201/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2202/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2203/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2204
2205_ASUNAME
2206
2207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2208for as_dir in $PATH
2209do
2210 IFS=$as_save_IFS
2211 test -z "$as_dir" && as_dir=.
2212 $as_echo "PATH: $as_dir"
2213 done
2214IFS=$as_save_IFS
2215
2216} >&5
2217
2218cat >&5 <<_ACEOF
2219
2220
2221## ----------- ##
2222## Core tests. ##
2223## ----------- ##
2224
2225_ACEOF
2226
2227
2228# Keep a trace of the command line.
2229# Strip out --no-create and --no-recursion so they do not pile up.
2230# Strip out --silent because we don't want to record it for future runs.
2231# Also quote any args containing shell meta-characters.
2232# Make two passes to allow for proper duplicate-argument suppression.
2233ac_configure_args=
2234ac_configure_args0=
2235ac_configure_args1=
2236ac_must_keep_next=false
2237for ac_pass in 1 2
2238do
2239 for ac_arg
2240 do
2241 case $ac_arg in
2242 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2243 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2244 | -silent | --silent | --silen | --sile | --sil)
2245 continue ;;
2246 *\'*)
2247 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2248 esac
2249 case $ac_pass in
2250 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2251 2)
2252 as_fn_append ac_configure_args1 " '$ac_arg'"
2253 if test $ac_must_keep_next = true; then
2254 ac_must_keep_next=false # Got value, back to normal.
2255 else
2256 case $ac_arg in
2257 *=* | --config-cache | -C | -disable-* | --disable-* \
2258 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2259 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2260 | -with-* | --with-* | -without-* | --without-* | --x)
2261 case "$ac_configure_args0 " in
2262 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2263 esac
2264 ;;
2265 -* ) ac_must_keep_next=true ;;
2266 esac
2267 fi
2268 as_fn_append ac_configure_args " '$ac_arg'"
2269 ;;
2270 esac
2271 done
2272done
2273{ ac_configure_args0=; unset ac_configure_args0;}
2274{ ac_configure_args1=; unset ac_configure_args1;}
2275
2276# When interrupted or exit'd, cleanup temporary files, and complete
2277# config.log. We remove comments because anyway the quotes in there
2278# would cause problems or look ugly.
2279# WARNING: Use '\'' to represent an apostrophe within the trap.
2280# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2281trap 'exit_status=$?
2282 # Save into config.log some information that might help in debugging.
2283 {
2284 echo
2285
12833ad8 2286 $as_echo "## ---------------- ##
c7aa54aa 2287## Cache variables. ##
12833ad8 2288## ---------------- ##"
c7aa54aa
DWT
2289 echo
2290 # The following way of writing the cache mishandles newlines in values,
2291(
2292 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2293 eval ac_val=\$$ac_var
2294 case $ac_val in #(
2295 *${as_nl}*)
2296 case $ac_var in #(
2297 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2298$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2299 esac
2300 case $ac_var in #(
2301 _ | IFS | as_nl) ;; #(
2302 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2303 *) { eval $ac_var=; unset $ac_var;} ;;
2304 esac ;;
2305 esac
2306 done
2307 (set) 2>&1 |
2308 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2309 *${as_nl}ac_space=\ *)
2310 sed -n \
2311 "s/'\''/'\''\\\\'\'''\''/g;
2312 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2313 ;; #(
2314 *)
2315 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2316 ;;
2317 esac |
2318 sort
2319)
2320 echo
2321
12833ad8 2322 $as_echo "## ----------------- ##
c7aa54aa 2323## Output variables. ##
12833ad8 2324## ----------------- ##"
c7aa54aa
DWT
2325 echo
2326 for ac_var in $ac_subst_vars
2327 do
2328 eval ac_val=\$$ac_var
2329 case $ac_val in
2330 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2331 esac
2332 $as_echo "$ac_var='\''$ac_val'\''"
2333 done | sort
2334 echo
2335
2336 if test -n "$ac_subst_files"; then
12833ad8 2337 $as_echo "## ------------------- ##
c7aa54aa 2338## File substitutions. ##
12833ad8 2339## ------------------- ##"
c7aa54aa
DWT
2340 echo
2341 for ac_var in $ac_subst_files
2342 do
2343 eval ac_val=\$$ac_var
2344 case $ac_val in
2345 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2346 esac
2347 $as_echo "$ac_var='\''$ac_val'\''"
2348 done | sort
2349 echo
2350 fi
2351
2352 if test -s confdefs.h; then
12833ad8 2353 $as_echo "## ----------- ##
c7aa54aa 2354## confdefs.h. ##
12833ad8 2355## ----------- ##"
c7aa54aa
DWT
2356 echo
2357 cat confdefs.h
2358 echo
2359 fi
2360 test "$ac_signal" != 0 &&
2361 $as_echo "$as_me: caught signal $ac_signal"
2362 $as_echo "$as_me: exit $exit_status"
2363 } >&5
2364 rm -f core *.core core.conftest.* &&
2365 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2366 exit $exit_status
2367' 0
2368for ac_signal in 1 2 13 15; do
2369 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2370done
2371ac_signal=0
2372
2373# confdefs.h avoids OS command line length limits that DEFS can exceed.
2374rm -f -r conftest* confdefs.h
2375
2376$as_echo "/* confdefs.h */" > confdefs.h
2377
2378# Predefined preprocessor variables.
2379
2380cat >>confdefs.h <<_ACEOF
2381#define PACKAGE_NAME "$PACKAGE_NAME"
2382_ACEOF
2383
2384cat >>confdefs.h <<_ACEOF
2385#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2386_ACEOF
2387
2388cat >>confdefs.h <<_ACEOF
2389#define PACKAGE_VERSION "$PACKAGE_VERSION"
2390_ACEOF
2391
2392cat >>confdefs.h <<_ACEOF
2393#define PACKAGE_STRING "$PACKAGE_STRING"
2394_ACEOF
2395
2396cat >>confdefs.h <<_ACEOF
2397#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2398_ACEOF
2399
2400cat >>confdefs.h <<_ACEOF
2401#define PACKAGE_URL "$PACKAGE_URL"
2402_ACEOF
2403
2404
2405# Let the site file select an alternate cache file if it wants to.
2406# Prefer an explicitly selected file to automatically selected ones.
2407ac_site_file1=NONE
2408ac_site_file2=NONE
2409if test -n "$CONFIG_SITE"; then
12833ad8
JF
2410 # We do not want a PATH search for config.site.
2411 case $CONFIG_SITE in #((
2412 -*) ac_site_file1=./$CONFIG_SITE;;
2413 */*) ac_site_file1=$CONFIG_SITE;;
2414 *) ac_site_file1=./$CONFIG_SITE;;
2415 esac
c7aa54aa
DWT
2416elif test "x$prefix" != xNONE; then
2417 ac_site_file1=$prefix/share/config.site
2418 ac_site_file2=$prefix/etc/config.site
2419else
2420 ac_site_file1=$ac_default_prefix/share/config.site
2421 ac_site_file2=$ac_default_prefix/etc/config.site
2422fi
2423for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2424do
2425 test "x$ac_site_file" = xNONE && continue
9c60689e 2426 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
c7aa54aa
DWT
2427 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2428$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2429 sed 's/^/| /' "$ac_site_file" >&5
12833ad8
JF
2430 . "$ac_site_file" \
2431 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2432$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2433as_fn_error $? "failed to load site script $ac_site_file
ee134472 2434See \`config.log' for more details" "$LINENO" 5; }
c7aa54aa
DWT
2435 fi
2436done
2437
2438if test -r "$cache_file"; then
9c60689e
DWT
2439 # Some versions of bash will fail to source /dev/null (special files
2440 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2441 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
c7aa54aa
DWT
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2443$as_echo "$as_me: loading cache $cache_file" >&6;}
2444 case $cache_file in
2445 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2446 *) . "./$cache_file";;
2447 esac
2448 fi
2449else
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2451$as_echo "$as_me: creating cache $cache_file" >&6;}
2452 >$cache_file
2453fi
2454
2455# Check that the precious variables saved in the cache have kept the same
2456# value.
2457ac_cache_corrupted=false
2458for ac_var in $ac_precious_vars; do
2459 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2460 eval ac_new_set=\$ac_env_${ac_var}_set
2461 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2462 eval ac_new_val=\$ac_env_${ac_var}_value
2463 case $ac_old_set,$ac_new_set in
2464 set,)
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2466$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2467 ac_cache_corrupted=: ;;
2468 ,set)
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2470$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2471 ac_cache_corrupted=: ;;
2472 ,);;
2473 *)
2474 if test "x$ac_old_val" != "x$ac_new_val"; then
2475 # differences in whitespace do not lead to failure.
2476 ac_old_val_w=`echo x $ac_old_val`
2477 ac_new_val_w=`echo x $ac_new_val`
2478 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2480$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2481 ac_cache_corrupted=:
2482 else
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2484$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2485 eval $ac_var=\$ac_old_val
2486 fi
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2488$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2490$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2491 fi;;
2492 esac
2493 # Pass precious variables to config.status.
2494 if test "$ac_new_set" = set; then
2495 case $ac_new_val in
2496 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2497 *) ac_arg=$ac_var=$ac_new_val ;;
2498 esac
2499 case " $ac_configure_args " in
2500 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2501 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2502 esac
2503 fi
2504done
2505if $ac_cache_corrupted; then
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2507$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2509$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
12833ad8 2510 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
c7aa54aa
DWT
2511fi
2512## -------------------- ##
2513## Main body of script. ##
2514## -------------------- ##
2515
2516ac_ext=c
2517ac_cpp='$CPP $CPPFLAGS'
2518ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2519ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2520ac_compiler_gnu=$ac_cv_c_compiler_gnu
2521
2522
66170b30
JF
2523
2524
35fa52c0 2525
6b66678a
DWT
2526ac_aux_dir=
2527for ac_dir in . "$srcdir"/.; do
12833ad8
JF
2528 if test -f "$ac_dir/install-sh"; then
2529 ac_aux_dir=$ac_dir
2530 ac_install_sh="$ac_aux_dir/install-sh -c"
2531 break
2532 elif test -f "$ac_dir/install.sh"; then
2533 ac_aux_dir=$ac_dir
2534 ac_install_sh="$ac_aux_dir/install.sh -c"
2535 break
2536 elif test -f "$ac_dir/shtool"; then
2537 ac_aux_dir=$ac_dir
2538 ac_install_sh="$ac_aux_dir/shtool install -c"
2539 break
2540 fi
6b66678a
DWT
2541done
2542if test -z "$ac_aux_dir"; then
12833ad8 2543 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
6b66678a
DWT
2544fi
2545
2546# These three variables are undocumented and unsupported,
2547# and are intended to be withdrawn in a future Autoconf release.
2548# They can cause serious problems if a builder's source tree is in a directory
2549# whose full name contains unusual characters.
2550ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2551ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2552ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2553
2554
9c60689e 2555
296ee9a6
JF
2556ac_config_headers="$ac_config_headers config.h"
2557
9c60689e 2558
66170b30 2559am__api_version='1.13'
9c60689e 2560
66170b30
JF
2561# Find a good install program. We prefer a C program (faster),
2562# so one script is as good as another. But avoid the broken or
2563# incompatible versions:
2564# SysV /etc/install, /usr/sbin/install
2565# SunOS /usr/etc/install
2566# IRIX /sbin/install
2567# AIX /bin/install
2568# AmigaOS /C/install, which installs bootblocks on floppy discs
2569# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2570# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2571# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2572# OS/2's system install, which has a completely different semantic
2573# ./install, which can be erroneously created by make from ./install.sh.
2574# Reject install programs that cannot install multiple files.
2575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2576$as_echo_n "checking for a BSD-compatible install... " >&6; }
2577if test -z "$INSTALL"; then
2578if ${ac_cv_path_install+:} false; then :
2579 $as_echo_n "(cached) " >&6
2580else
2581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2582for as_dir in $PATH
2583do
2584 IFS=$as_save_IFS
2585 test -z "$as_dir" && as_dir=.
2586 # Account for people who put trailing slashes in PATH elements.
2587case $as_dir/ in #((
2588 ./ | .// | /[cC]/* | \
2589 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2590 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2591 /usr/ucb/* ) ;;
2592 *)
2593 # OSF1 and SCO ODT 3.0 have their own names for install.
2594 # Don't use installbsd from OSF since it installs stuff as root
2595 # by default.
2596 for ac_prog in ginstall scoinst install; do
2597 for ac_exec_ext in '' $ac_executable_extensions; do
2598 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2599 if test $ac_prog = install &&
2600 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2601 # AIX install. It has an incompatible calling convention.
2602 :
2603 elif test $ac_prog = install &&
2604 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2605 # program-specific install script used by HP pwplus--don't use.
2606 :
2607 else
2608 rm -rf conftest.one conftest.two conftest.dir
2609 echo one > conftest.one
2610 echo two > conftest.two
2611 mkdir conftest.dir
2612 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2613 test -s conftest.one && test -s conftest.two &&
2614 test -s conftest.dir/conftest.one &&
2615 test -s conftest.dir/conftest.two
2616 then
2617 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2618 break 3
2619 fi
2620 fi
2621 fi
2622 done
2623 done
2624 ;;
2625esac
9c60689e 2626
66170b30
JF
2627 done
2628IFS=$as_save_IFS
9c60689e 2629
66170b30 2630rm -rf conftest.one conftest.two conftest.dir
9c60689e 2631
66170b30
JF
2632fi
2633 if test "${ac_cv_path_install+set}" = set; then
2634 INSTALL=$ac_cv_path_install
2635 else
2636 # As a last resort, use the slow shell script. Don't cache a
2637 # value for INSTALL within a source directory, because that will
2638 # break other packages using the cache if that directory is
2639 # removed, or if the value is a relative name.
2640 INSTALL=$ac_install_sh
2641 fi
2642fi
2643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2644$as_echo "$INSTALL" >&6; }
9c60689e 2645
66170b30
JF
2646# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2647# It thinks the first close brace ends the variable substitution.
2648test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9c60689e 2649
66170b30 2650test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
9c60689e 2651
66170b30 2652test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9c60689e 2653
66170b30
JF
2654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2655$as_echo_n "checking whether build environment is sane... " >&6; }
2656# Reject unsafe characters in $srcdir or the absolute working directory
2657# name. Accept space and tab only in the latter.
2658am_lf='
2659'
2660case `pwd` in
2661 *[\\\"\#\$\&\'\`$am_lf]*)
2662 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2663esac
2664case $srcdir in
2665 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2666 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2667esac
9c60689e 2668
66170b30
JF
2669# Do 'set' in a subshell so we don't clobber the current shell's
2670# arguments. Must try -L first in case configure is actually a
2671# symlink; some systems play weird games with the mod time of symlinks
2672# (eg FreeBSD returns the mod time of the symlink's containing
2673# directory).
2674if (
2675 am_has_slept=no
2676 for am_try in 1 2; do
2677 echo "timestamp, slept: $am_has_slept" > conftest.file
2678 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2679 if test "$*" = "X"; then
2680 # -L didn't work.
2681 set X `ls -t "$srcdir/configure" conftest.file`
2682 fi
2683 if test "$*" != "X $srcdir/configure conftest.file" \
2684 && test "$*" != "X conftest.file $srcdir/configure"; then
2685
2686 # If neither matched, then we have a broken ls. This can happen
2687 # if, for instance, CONFIG_SHELL is bash and it inherits a
2688 # broken ls alias from the environment. This has actually
2689 # happened. Such a system could not be considered "sane".
2690 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2691 alias in your environment" "$LINENO" 5
2692 fi
2693 if test "$2" = conftest.file || test $am_try -eq 2; then
2694 break
2695 fi
2696 # Just in case.
2697 sleep 1
2698 am_has_slept=yes
2699 done
2700 test "$2" = conftest.file
2701 )
2702then
2703 # Ok.
2704 :
2705else
2706 as_fn_error $? "newly created file is older than distributed files!
2707Check your system clock" "$LINENO" 5
2708fi
2709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2710$as_echo "yes" >&6; }
2711# If we didn't sleep, we still need to ensure time stamps of config.status and
2712# generated files are strictly newer.
2713am_sleep_pid=
2714if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2715 ( sleep 1 ) &
2716 am_sleep_pid=$!
2717fi
2718
2719rm -f conftest.file
2720
2721test "$program_prefix" != NONE &&
2722 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2723# Use a double $ so make ignores it.
2724test "$program_suffix" != NONE &&
2725 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2726# Double any \ or $.
2727# By default was `s,x,x', remove it if useless.
2728ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2729program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2730
2731# expand $ac_aux_dir to an absolute path
2732am_aux_dir=`cd $ac_aux_dir && pwd`
2733
2734if test x"${MISSING+set}" != xset; then
2735 case $am_aux_dir in
2736 *\ * | *\ *)
2737 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2738 *)
2739 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2740 esac
2741fi
2742# Use eval to expand $SHELL
2743if eval "$MISSING --is-lightweight"; then
2744 am_missing_run="$MISSING "
2745else
2746 am_missing_run=
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2748$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2749fi
9c60689e 2750
66170b30
JF
2751if test x"${install_sh}" != xset; then
2752 case $am_aux_dir in
2753 *\ * | *\ *)
2754 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2755 *)
2756 install_sh="\${SHELL} $am_aux_dir/install-sh"
2757 esac
2758fi
9c60689e 2759
66170b30
JF
2760# Installed binaries are usually stripped using 'strip' when the user
2761# run "make install-strip". However 'strip' might not be the right
2762# tool to use in cross-compilation environments, therefore Automake
2763# will honor the 'STRIP' environment variable to overrule this program.
2764if test "$cross_compiling" != no; then
2765 if test -n "$ac_tool_prefix"; then
2766 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2767set dummy ${ac_tool_prefix}strip; ac_word=$2
2768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2769$as_echo_n "checking for $ac_word... " >&6; }
2770if ${ac_cv_prog_STRIP+:} false; then :
2771 $as_echo_n "(cached) " >&6
2772else
2773 if test -n "$STRIP"; then
2774 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2775else
2776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2777for as_dir in $PATH
2778do
2779 IFS=$as_save_IFS
2780 test -z "$as_dir" && as_dir=.
2781 for ac_exec_ext in '' $ac_executable_extensions; do
2782 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2783 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2785 break 2
2786 fi
2787done
2788 done
2789IFS=$as_save_IFS
9c60689e 2790
66170b30
JF
2791fi
2792fi
2793STRIP=$ac_cv_prog_STRIP
2794if test -n "$STRIP"; then
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2796$as_echo "$STRIP" >&6; }
2797else
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2799$as_echo "no" >&6; }
2800fi
9c60689e 2801
9c60689e 2802
66170b30
JF
2803fi
2804if test -z "$ac_cv_prog_STRIP"; then
2805 ac_ct_STRIP=$STRIP
2806 # Extract the first word of "strip", so it can be a program name with args.
2807set dummy strip; ac_word=$2
2808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2809$as_echo_n "checking for $ac_word... " >&6; }
2810if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
9c60689e
DWT
2811 $as_echo_n "(cached) " >&6
2812else
66170b30
JF
2813 if test -n "$ac_ct_STRIP"; then
2814 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2815else
2816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2817for as_dir in $PATH
2818do
2819 IFS=$as_save_IFS
2820 test -z "$as_dir" && as_dir=.
2821 for ac_exec_ext in '' $ac_executable_extensions; do
2822 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2823 ac_cv_prog_ac_ct_STRIP="strip"
2824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2825 break 2
2826 fi
2827done
2828 done
2829IFS=$as_save_IFS
9c60689e
DWT
2830
2831fi
66170b30
JF
2832fi
2833ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2834if test -n "$ac_ct_STRIP"; then
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2836$as_echo "$ac_ct_STRIP" >&6; }
2837else
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2839$as_echo "no" >&6; }
2840fi
2841
2842 if test "x$ac_ct_STRIP" = x; then
2843 STRIP=":"
2844 else
2845 case $cross_compiling:$ac_tool_warned in
2846yes:)
2847{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2848$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2849ac_tool_warned=yes ;;
9c60689e 2850esac
66170b30
JF
2851 STRIP=$ac_ct_STRIP
2852 fi
2853else
2854 STRIP="$ac_cv_prog_STRIP"
2855fi
9c60689e 2856
66170b30
JF
2857fi
2858INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
9c60689e 2859
66170b30
JF
2860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2861$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2862if test -z "$MKDIR_P"; then
2863 if ${ac_cv_path_mkdir+:} false; then :
9c60689e
DWT
2864 $as_echo_n "(cached) " >&6
2865else
66170b30
JF
2866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2867for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2868do
2869 IFS=$as_save_IFS
2870 test -z "$as_dir" && as_dir=.
2871 for ac_prog in mkdir gmkdir; do
2872 for ac_exec_ext in '' $ac_executable_extensions; do
2873 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2874 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2875 'mkdir (GNU coreutils) '* | \
2876 'mkdir (coreutils) '* | \
2877 'mkdir (fileutils) '4.1*)
2878 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2879 break 3;;
2880 esac
2881 done
2882 done
2883 done
2884IFS=$as_save_IFS
2885
2886fi
2887
2888 test -d ./--version && rmdir ./--version
2889 if test "${ac_cv_path_mkdir+set}" = set; then
2890 MKDIR_P="$ac_cv_path_mkdir -p"
2891 else
2892 # As a last resort, use the slow shell script. Don't cache a
2893 # value for MKDIR_P within a source directory, because that will
2894 # break other packages using the cache if that directory is
2895 # removed, or if the value is a relative name.
2896 MKDIR_P="$ac_install_sh -d"
2897 fi
2898fi
2899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2900$as_echo "$MKDIR_P" >&6; }
2901
2902for ac_prog in gawk mawk nawk awk
2903do
2904 # Extract the first word of "$ac_prog", so it can be a program name with args.
2905set dummy $ac_prog; ac_word=$2
2906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2907$as_echo_n "checking for $ac_word... " >&6; }
2908if ${ac_cv_prog_AWK+:} false; then :
2909 $as_echo_n "(cached) " >&6
2910else
2911 if test -n "$AWK"; then
2912 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2913else
2914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2915for as_dir in $PATH
2916do
2917 IFS=$as_save_IFS
2918 test -z "$as_dir" && as_dir=.
2919 for ac_exec_ext in '' $ac_executable_extensions; do
2920 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2921 ac_cv_prog_AWK="$ac_prog"
2922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2923 break 2
2924 fi
2925done
2926 done
2927IFS=$as_save_IFS
2928
2929fi
2930fi
2931AWK=$ac_cv_prog_AWK
2932if test -n "$AWK"; then
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2934$as_echo "$AWK" >&6; }
2935else
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2937$as_echo "no" >&6; }
2938fi
2939
2940
2941 test -n "$AWK" && break
2942done
2943
2944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2945$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2946set x ${MAKE-make}
2947ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2948if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2949 $as_echo_n "(cached) " >&6
2950else
2951 cat >conftest.make <<\_ACEOF
2952SHELL = /bin/sh
2953all:
2954 @echo '@@@%%%=$(MAKE)=@@@%%%'
2955_ACEOF
2956# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2957case `${MAKE-make} -f conftest.make 2>/dev/null` in
2958 *@@@%%%=?*=@@@%%%*)
2959 eval ac_cv_prog_make_${ac_make}_set=yes;;
2960 *)
2961 eval ac_cv_prog_make_${ac_make}_set=no;;
2962esac
2963rm -f conftest.make
2964fi
2965if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2967$as_echo "yes" >&6; }
2968 SET_MAKE=
2969else
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2971$as_echo "no" >&6; }
2972 SET_MAKE="MAKE=${MAKE-make}"
2973fi
2974
2975rm -rf .tst 2>/dev/null
2976mkdir .tst 2>/dev/null
2977if test -d .tst; then
2978 am__leading_dot=.
2979else
2980 am__leading_dot=_
2981fi
2982rmdir .tst 2>/dev/null
2983
2984# Check whether --enable-silent-rules was given.
2985if test "${enable_silent_rules+set}" = set; then :
2986 enableval=$enable_silent_rules;
2987fi
2988
2989case $enable_silent_rules in # (((
2990 yes) AM_DEFAULT_VERBOSITY=0;;
2991 no) AM_DEFAULT_VERBOSITY=1;;
2992 *) AM_DEFAULT_VERBOSITY=1;;
2993esac
2994am_make=${MAKE-make}
2995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2996$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2997if ${am_cv_make_support_nested_variables+:} false; then :
2998 $as_echo_n "(cached) " >&6
2999else
3000 if $as_echo 'TRUE=$(BAR$(V))
3001BAR0=false
3002BAR1=true
3003V=1
3004am__doit:
3005 @$(TRUE)
3006.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3007 am_cv_make_support_nested_variables=yes
3008else
3009 am_cv_make_support_nested_variables=no
3010fi
3011fi
3012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3013$as_echo "$am_cv_make_support_nested_variables" >&6; }
3014if test $am_cv_make_support_nested_variables = yes; then
3015 AM_V='$(V)'
3016 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3017else
3018 AM_V=$AM_DEFAULT_VERBOSITY
3019 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3020fi
3021AM_BACKSLASH='\'
3022
3023if test "`cd $srcdir && pwd`" != "`pwd`"; then
3024 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3025 # is not polluted with repeated "-I."
3026 am__isrc=' -I$(srcdir)'
3027 # test to see if srcdir already configured
3028 if test -f $srcdir/config.status; then
3029 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3030 fi
3031fi
3032
3033# test whether we have cygpath
3034if test -z "$CYGPATH_W"; then
3035 if (cygpath --version) >/dev/null 2>/dev/null; then
3036 CYGPATH_W='cygpath -w'
3037 else
3038 CYGPATH_W=echo
3039 fi
3040fi
3041
3042
3043# Define the identity of the package.
3044 PACKAGE='cycript'
3045 VERSION='0.9'
3046
3047
3048cat >>confdefs.h <<_ACEOF
3049#define PACKAGE "$PACKAGE"
3050_ACEOF
3051
3052
3053cat >>confdefs.h <<_ACEOF
3054#define VERSION "$VERSION"
3055_ACEOF
3056
3057# Some tools Automake needs.
3058
3059ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3060
3061
3062AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3063
3064
3065AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3066
3067
3068AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3069
3070
3071MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3072
3073# For better backward compatibility. To be removed once Automake 1.9.x
3074# dies out for good. For more background, see:
3075# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3076# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3077mkdir_p='$(MKDIR_P)'
3078
3079# We need awk for the "check" target. The system "awk" is bad on
3080# some platforms.
3081# Always define AMTAR for backward compatibility. Yes, it's still used
3082# in the wild :-( We should find a proper way to deprecate it ...
3083AMTAR='$${TAR-tar}'
3084
3085am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3086
3087
3088
3089
3090
66170b30 3091
a243b558
JF
3092ac_ext=cpp
3093ac_cpp='$CXXCPP $CPPFLAGS'
3094ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3095ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3096ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3097if test -z "$CXX"; then
3098 if test -n "$CCC"; then
3099 CXX=$CCC
3100 else
3101 if test -n "$ac_tool_prefix"; then
3102 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3103 do
3104 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3105set dummy $ac_tool_prefix$ac_prog; ac_word=$2
dbadc56a
DWT
3106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3107$as_echo_n "checking for $ac_word... " >&6; }
a243b558 3108if ${ac_cv_prog_CXX+:} false; then :
dbadc56a
DWT
3109 $as_echo_n "(cached) " >&6
3110else
a243b558
JF
3111 if test -n "$CXX"; then
3112 ac_cv_prog_CXX="$CXX" # Let the user override the test.
dbadc56a
DWT
3113else
3114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3115for as_dir in $PATH
3116do
3117 IFS=$as_save_IFS
3118 test -z "$as_dir" && as_dir=.
3119 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 3120 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 3121 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
dbadc56a
DWT
3122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3123 break 2
3124 fi
3125done
3126 done
3127IFS=$as_save_IFS
3128
3129fi
3130fi
a243b558
JF
3131CXX=$ac_cv_prog_CXX
3132if test -n "$CXX"; then
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3134$as_echo "$CXX" >&6; }
35fa52c0
DWT
3135else
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3137$as_echo "no" >&6; }
3138fi
3139
3140
a243b558 3141 test -n "$CXX" && break
35fa52c0
DWT
3142 done
3143fi
a243b558
JF
3144if test -z "$CXX"; then
3145 ac_ct_CXX=$CXX
3146 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
35fa52c0
DWT
3147do
3148 # Extract the first word of "$ac_prog", so it can be a program name with args.
3149set dummy $ac_prog; ac_word=$2
3150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3151$as_echo_n "checking for $ac_word... " >&6; }
a243b558 3152if ${ac_cv_prog_ac_ct_CXX+:} false; then :
35fa52c0
DWT
3153 $as_echo_n "(cached) " >&6
3154else
a243b558
JF
3155 if test -n "$ac_ct_CXX"; then
3156 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
35fa52c0
DWT
3157else
3158as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3159for as_dir in $PATH
3160do
3161 IFS=$as_save_IFS
3162 test -z "$as_dir" && as_dir=.
3163 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 3164 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 3165 ac_cv_prog_ac_ct_CXX="$ac_prog"
35fa52c0
DWT
3166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3167 break 2
3168 fi
3169done
3170 done
3171IFS=$as_save_IFS
3172
3173fi
3174fi
a243b558
JF
3175ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3176if test -n "$ac_ct_CXX"; then
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3178$as_echo "$ac_ct_CXX" >&6; }
35fa52c0
DWT
3179else
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3181$as_echo "no" >&6; }
3182fi
3183
3184
a243b558 3185 test -n "$ac_ct_CXX" && break
35fa52c0
DWT
3186done
3187
a243b558
JF
3188 if test "x$ac_ct_CXX" = x; then
3189 CXX="g++"
35fa52c0
DWT
3190 else
3191 case $cross_compiling:$ac_tool_warned in
3192yes:)
3193{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3194$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3195ac_tool_warned=yes ;;
3196esac
a243b558 3197 CXX=$ac_ct_CXX
35fa52c0
DWT
3198 fi
3199fi
3200
a243b558 3201 fi
35fa52c0 3202fi
35fa52c0 3203# Provide some information about the compiler.
a243b558 3204$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
35fa52c0
DWT
3205set X $ac_compile
3206ac_compiler=$2
3207for ac_option in --version -v -V -qversion; do
3208 { { ac_try="$ac_compiler $ac_option >&5"
3209case "(($ac_try" in
3210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3211 *) ac_try_echo=$ac_try;;
3212esac
3213eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3214$as_echo "$ac_try_echo"; } >&5
3215 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3216 ac_status=$?
3217 if test -s conftest.err; then
3218 sed '10a\
3219... rest of stderr output deleted ...
3220 10q' conftest.err >conftest.er1
3221 cat conftest.er1 >&5
35fa52c0 3222 fi
9c60689e 3223 rm -f conftest.er1 conftest.err
35fa52c0
DWT
3224 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3225 test $ac_status = 0; }
3226done
3227
3228cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3229/* end confdefs.h. */
9c60689e 3230
35fa52c0
DWT
3231int
3232main ()
3233{
35fa52c0
DWT
3234
3235 ;
3236 return 0;
3237}
3238_ACEOF
3239ac_clean_files_save=$ac_clean_files
9c60689e 3240ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
35fa52c0
DWT
3241# Try to create an executable without -o first, disregard a.out.
3242# It will help us diagnose broken compilers, and finding out an intuition
3243# of exeext.
a243b558
JF
3244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3245$as_echo_n "checking whether the C++ compiler works... " >&6; }
35fa52c0
DWT
3246ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3247
3248# The possible output files:
3249ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3250
3251ac_rmfiles=
3252for ac_file in $ac_files
3253do
3254 case $ac_file in
3255 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3256 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3257 esac
3258done
3259rm -f $ac_rmfiles
3260
3261if { { ac_try="$ac_link_default"
3262case "(($ac_try" in
3263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3264 *) ac_try_echo=$ac_try;;
3265esac
3266eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3267$as_echo "$ac_try_echo"; } >&5
3268 (eval "$ac_link_default") 2>&5
3269 ac_status=$?
3270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3271 test $ac_status = 0; }; then :
3272 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3273# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3274# in a Makefile. We should not override ac_cv_exeext if it was cached,
3275# so that the user can short-circuit this test for compilers unknown to
3276# Autoconf.
3277for ac_file in $ac_files ''
3278do
3279 test -f "$ac_file" || continue
3280 case $ac_file in
3281 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3282 ;;
3283 [ab].out )
3284 # We found the default executable, but exeext='' is most
3285 # certainly right.
3286 break;;
3287 *.* )
3288 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3289 then :; else
3290 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3291 fi
3292 # We set ac_cv_exeext here because the later test for it is not
3293 # safe: cross compilers may not add the suffix if given an `-o'
3294 # argument, so we may need to know it at that point already.
3295 # Even if this section looks crufty: it has the advantage of
3296 # actually working.
3297 break;;
3298 * )
3299 break;;
3300 esac
3301done
3302test "$ac_cv_exeext" = no && ac_cv_exeext=
3303
3304else
3305 ac_file=''
3306fi
35fa52c0 3307if test -z "$ac_file"; then :
9c60689e
DWT
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3309$as_echo "no" >&6; }
3310$as_echo "$as_me: failed program was:" >&5
35fa52c0
DWT
3311sed 's/^/| /' conftest.$ac_ext >&5
3312
3313{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3314$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
a243b558 3315as_fn_error 77 "C++ compiler cannot create executables
ee134472 3316See \`config.log' for more details" "$LINENO" 5; }
9c60689e
DWT
3317else
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3319$as_echo "yes" >&6; }
35fa52c0 3320fi
a243b558
JF
3321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3322$as_echo_n "checking for C++ compiler default output file name... " >&6; }
9c60689e
DWT
3323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3324$as_echo "$ac_file" >&6; }
35fa52c0
DWT
3325ac_exeext=$ac_cv_exeext
3326
9c60689e 3327rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
35fa52c0 3328ac_clean_files=$ac_clean_files_save
35fa52c0
DWT
3329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3330$as_echo_n "checking for suffix of executables... " >&6; }
3331if { { ac_try="$ac_link"
3332case "(($ac_try" in
3333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3334 *) ac_try_echo=$ac_try;;
3335esac
3336eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3337$as_echo "$ac_try_echo"; } >&5
3338 (eval "$ac_link") 2>&5
3339 ac_status=$?
3340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3341 test $ac_status = 0; }; then :
3342 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3343# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3344# work properly (i.e., refer to `conftest.exe'), while it won't with
3345# `rm'.
3346for ac_file in conftest.exe conftest conftest.*; do
3347 test -f "$ac_file" || continue
3348 case $ac_file in
3349 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3350 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3351 break;;
3352 * ) break;;
3353 esac
3354done
3355else
3356 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3357$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12833ad8 3358as_fn_error $? "cannot compute suffix of executables: cannot compile and link
ee134472 3359See \`config.log' for more details" "$LINENO" 5; }
35fa52c0 3360fi
9c60689e 3361rm -f conftest conftest$ac_cv_exeext
35fa52c0
DWT
3362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3363$as_echo "$ac_cv_exeext" >&6; }
3364
3365rm -f conftest.$ac_ext
3366EXEEXT=$ac_cv_exeext
3367ac_exeext=$EXEEXT
9c60689e
DWT
3368cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3369/* end confdefs.h. */
3370#include <stdio.h>
3371int
3372main ()
3373{
3374FILE *f = fopen ("conftest.out", "w");
3375 return ferror (f) || fclose (f) != 0;
3376
3377 ;
3378 return 0;
3379}
3380_ACEOF
3381ac_clean_files="$ac_clean_files conftest.out"
3382# Check that the compiler produces executables we can run. If not, either
3383# the compiler is broken, or we cross compile.
3384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3385$as_echo_n "checking whether we are cross compiling... " >&6; }
3386if test "$cross_compiling" != yes; then
3387 { { ac_try="$ac_link"
3388case "(($ac_try" in
3389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3390 *) ac_try_echo=$ac_try;;
3391esac
3392eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3393$as_echo "$ac_try_echo"; } >&5
3394 (eval "$ac_link") 2>&5
3395 ac_status=$?
3396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3397 test $ac_status = 0; }
3398 if { ac_try='./conftest$ac_cv_exeext'
3399 { { case "(($ac_try" in
3400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3401 *) ac_try_echo=$ac_try;;
3402esac
3403eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3404$as_echo "$ac_try_echo"; } >&5
3405 (eval "$ac_try") 2>&5
3406 ac_status=$?
3407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3408 test $ac_status = 0; }; }; then
3409 cross_compiling=no
3410 else
3411 if test "$cross_compiling" = maybe; then
3412 cross_compiling=yes
3413 else
3414 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3415$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
a243b558 3416as_fn_error $? "cannot run C++ compiled programs.
9c60689e 3417If you meant to cross compile, use \`--host'.
ee134472 3418See \`config.log' for more details" "$LINENO" 5; }
9c60689e
DWT
3419 fi
3420 fi
3421fi
3422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3423$as_echo "$cross_compiling" >&6; }
3424
3425rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3426ac_clean_files=$ac_clean_files_save
35fa52c0
DWT
3427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3428$as_echo_n "checking for suffix of object files... " >&6; }
ee134472 3429if ${ac_cv_objext+:} false; then :
35fa52c0
DWT
3430 $as_echo_n "(cached) " >&6
3431else
3432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3433/* end confdefs.h. */
3434
3435int
3436main ()
3437{
3438
3439 ;
3440 return 0;
3441}
3442_ACEOF
3443rm -f conftest.o conftest.obj
3444if { { ac_try="$ac_compile"
3445case "(($ac_try" in
3446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3447 *) ac_try_echo=$ac_try;;
3448esac
3449eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3450$as_echo "$ac_try_echo"; } >&5
3451 (eval "$ac_compile") 2>&5
3452 ac_status=$?
3453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3454 test $ac_status = 0; }; then :
3455 for ac_file in conftest.o conftest.obj conftest.*; do
3456 test -f "$ac_file" || continue;
3457 case $ac_file in
3458 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3459 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3460 break;;
3461 esac
3462done
3463else
3464 $as_echo "$as_me: failed program was:" >&5
3465sed 's/^/| /' conftest.$ac_ext >&5
3466
3467{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3468$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12833ad8 3469as_fn_error $? "cannot compute suffix of object files: cannot compile
ee134472 3470See \`config.log' for more details" "$LINENO" 5; }
35fa52c0
DWT
3471fi
3472rm -f conftest.$ac_cv_objext conftest.$ac_ext
3473fi
3474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3475$as_echo "$ac_cv_objext" >&6; }
3476OBJEXT=$ac_cv_objext
3477ac_objext=$OBJEXT
a243b558
JF
3478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3479$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3480if ${ac_cv_cxx_compiler_gnu+:} false; then :
35fa52c0
DWT
3481 $as_echo_n "(cached) " >&6
3482else
3483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3484/* end confdefs.h. */
3485
3486int
3487main ()
3488{
3489#ifndef __GNUC__
3490 choke me
3491#endif
3492
3493 ;
3494 return 0;
3495}
3496_ACEOF
a243b558 3497if ac_fn_cxx_try_compile "$LINENO"; then :
35fa52c0
DWT
3498 ac_compiler_gnu=yes
3499else
3500 ac_compiler_gnu=no
3501fi
3502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a243b558 3503ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
35fa52c0
DWT
3504
3505fi
a243b558
JF
3506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3507$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
35fa52c0 3508if test $ac_compiler_gnu = yes; then
a243b558 3509 GXX=yes
35fa52c0 3510else
a243b558 3511 GXX=
35fa52c0 3512fi
a243b558
JF
3513ac_test_CXXFLAGS=${CXXFLAGS+set}
3514ac_save_CXXFLAGS=$CXXFLAGS
3515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3516$as_echo_n "checking whether $CXX accepts -g... " >&6; }
3517if ${ac_cv_prog_cxx_g+:} false; then :
35fa52c0
DWT
3518 $as_echo_n "(cached) " >&6
3519else
a243b558
JF
3520 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3521 ac_cxx_werror_flag=yes
3522 ac_cv_prog_cxx_g=no
3523 CXXFLAGS="-g"
35fa52c0
DWT
3524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3525/* end confdefs.h. */
3526
3527int
3528main ()
3529{
3530
3531 ;
3532 return 0;
3533}
3534_ACEOF
a243b558
JF
3535if ac_fn_cxx_try_compile "$LINENO"; then :
3536 ac_cv_prog_cxx_g=yes
35fa52c0 3537else
a243b558 3538 CXXFLAGS=""
35fa52c0
DWT
3539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3540/* end confdefs.h. */
3541
3542int
3543main ()
3544{
3545
3546 ;
3547 return 0;
3548}
3549_ACEOF
a243b558 3550if ac_fn_cxx_try_compile "$LINENO"; then :
35fa52c0
DWT
3551
3552else
a243b558
JF
3553 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3554 CXXFLAGS="-g"
35fa52c0
DWT
3555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3556/* end confdefs.h. */
3557
3558int
3559main ()
3560{
3561
3562 ;
3563 return 0;
3564}
3565_ACEOF
a243b558
JF
3566if ac_fn_cxx_try_compile "$LINENO"; then :
3567 ac_cv_prog_cxx_g=yes
35fa52c0
DWT
3568fi
3569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3570fi
3571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3572fi
3573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a243b558 3574 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
35fa52c0 3575fi
a243b558
JF
3576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3577$as_echo "$ac_cv_prog_cxx_g" >&6; }
3578if test "$ac_test_CXXFLAGS" = set; then
3579 CXXFLAGS=$ac_save_CXXFLAGS
3580elif test $ac_cv_prog_cxx_g = yes; then
3581 if test "$GXX" = yes; then
3582 CXXFLAGS="-g -O2"
35fa52c0 3583 else
a243b558 3584 CXXFLAGS="-g"
35fa52c0
DWT
3585 fi
3586else
a243b558
JF
3587 if test "$GXX" = yes; then
3588 CXXFLAGS="-O2"
35fa52c0 3589 else
a243b558 3590 CXXFLAGS=
35fa52c0
DWT
3591 fi
3592fi
a243b558
JF
3593ac_ext=c
3594ac_cpp='$CPP $CPPFLAGS'
3595ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3596ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3597ac_compiler_gnu=$ac_cv_c_compiler_gnu
3598DEPDIR="${am__leading_dot}deps"
35fa52c0 3599
a243b558 3600ac_config_commands="$ac_config_commands depfiles"
35fa52c0 3601
35fa52c0 3602
a243b558
JF
3603am_make=${MAKE-make}
3604cat > confinc << 'END'
3605am__doit:
3606 @echo this is the am__doit target
3607.PHONY: am__doit
3608END
3609# If we don't find an include directive, just comment out the code.
3610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3611$as_echo_n "checking for style of include used by $am_make... " >&6; }
3612am__include="#"
3613am__quote=
3614_am_result=none
3615# First try GNU make style include.
3616echo "include confinc" > confmf
3617# Ignore all kinds of additional output from 'make'.
3618case `$am_make -s -f confmf 2> /dev/null` in #(
3619*the\ am__doit\ target*)
3620 am__include=include
3621 am__quote=
3622 _am_result=GNU
3623 ;;
3624esac
3625# Now try BSD make style include.
3626if test "$am__include" = "#"; then
3627 echo '.include "confinc"' > confmf
3628 case `$am_make -s -f confmf 2> /dev/null` in #(
3629 *the\ am__doit\ target*)
3630 am__include=.include
3631 am__quote="\""
3632 _am_result=BSD
3633 ;;
3634 esac
35fa52c0 3635fi
35fa52c0 3636
a243b558
JF
3637
3638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3639$as_echo "$_am_result" >&6; }
3640rm -f confinc confmf
3641
3642# Check whether --enable-dependency-tracking was given.
3643if test "${enable_dependency_tracking+set}" = set; then :
3644 enableval=$enable_dependency_tracking;
35fa52c0 3645fi
35fa52c0 3646
a243b558
JF
3647if test "x$enable_dependency_tracking" != xno; then
3648 am_depcomp="$ac_aux_dir/depcomp"
3649 AMDEPBACKSLASH='\'
3650 am__nodep='_no'
3651fi
3652 if test "x$enable_dependency_tracking" != xno; then
3653 AMDEP_TRUE=
3654 AMDEP_FALSE='#'
3655else
3656 AMDEP_TRUE='#'
3657 AMDEP_FALSE=
35fa52c0
DWT
3658fi
3659
35fa52c0 3660
a243b558
JF
3661
3662depcc="$CXX" am_compiler_list=
66170b30
JF
3663
3664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3665$as_echo_n "checking dependency style of $depcc... " >&6; }
a243b558 3666if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
66170b30
JF
3667 $as_echo_n "(cached) " >&6
3668else
3669 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3670 # We make a subdir and do the tests there. Otherwise we can end up
3671 # making bogus files that we don't know about and never remove. For
3672 # instance it was reported that on HP-UX the gcc test will end up
3673 # making a dummy file named 'D' -- because '-MD' means "put the output
3674 # in D".
3675 rm -rf conftest.dir
3676 mkdir conftest.dir
3677 # Copy depcomp to subdir because otherwise we won't find it if we're
3678 # using a relative directory.
3679 cp "$am_depcomp" conftest.dir
3680 cd conftest.dir
3681 # We will build objects and dependencies in a subdirectory because
3682 # it helps to detect inapplicable dependency modes. For instance
3683 # both Tru64's cc and ICC support -MD to output dependencies as a
3684 # side effect of compilation, but ICC will put the dependencies in
3685 # the current directory while Tru64 will put them in the object
3686 # directory.
3687 mkdir sub
3688
a243b558 3689 am_cv_CXX_dependencies_compiler_type=none
66170b30
JF
3690 if test "$am_compiler_list" = ""; then
3691 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3692 fi
3693 am__universal=false
3694 case " $depcc " in #(
3695 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3696 esac
3697
3698 for depmode in $am_compiler_list; do
3699 # Setup a source with many dependencies, because some compilers
3700 # like to wrap large dependency lists on column 80 (with \), and
3701 # we should not choose a depcomp mode which is confused by this.
3702 #
3703 # We need to recreate these files for each test, as the compiler may
3704 # overwrite some of them when testing with obscure command lines.
3705 # This happens at least with the AIX C compiler.
3706 : > sub/conftest.c
3707 for i in 1 2 3 4 5 6; do
3708 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3709 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3710 # Solaris 10 /bin/sh.
3711 echo '/* dummy */' > sub/conftst$i.h
3712 done
3713 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3714
3715 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3716 # mode. It turns out that the SunPro C++ compiler does not properly
3717 # handle '-M -o', and we need to detect this. Also, some Intel
3718 # versions had trouble with output in subdirs.
3719 am__obj=sub/conftest.${OBJEXT-o}
3720 am__minus_obj="-o $am__obj"
3721 case $depmode in
3722 gcc)
3723 # This depmode causes a compiler race in universal mode.
3724 test "$am__universal" = false || continue
3725 ;;
3726 nosideeffect)
3727 # After this tag, mechanisms are not by side-effect, so they'll
3728 # only be used when explicitly requested.
3729 if test "x$enable_dependency_tracking" = xyes; then
3730 continue
3731 else
3732 break
3733 fi
3734 ;;
3735 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3736 # This compiler won't grok '-c -o', but also, the minuso test has
3737 # not run yet. These depmodes are late enough in the game, and
3738 # so weak that their functioning should not be impacted.
3739 am__obj=conftest.${OBJEXT-o}
3740 am__minus_obj=
3741 ;;
3742 none) break ;;
3743 esac
3744 if depmode=$depmode \
3745 source=sub/conftest.c object=$am__obj \
3746 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3747 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3748 >/dev/null 2>conftest.err &&
3749 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3750 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3751 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3752 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3753 # icc doesn't choke on unknown options, it will just issue warnings
3754 # or remarks (even with -Werror). So we grep stderr for any message
3755 # that says an option was ignored or not supported.
3756 # When given -MP, icc 7.0 and 7.1 complain thusly:
3757 # icc: Command line warning: ignoring option '-M'; no argument required
3758 # The diagnosis changed in icc 8.0:
3759 # icc: Command line remark: option '-MP' not supported
3760 if (grep 'ignoring option' conftest.err ||
3761 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
a243b558 3762 am_cv_CXX_dependencies_compiler_type=$depmode
66170b30
JF
3763 break
3764 fi
3765 fi
3766 done
3767
3768 cd ..
3769 rm -rf conftest.dir
3770else
a243b558 3771 am_cv_CXX_dependencies_compiler_type=none
66170b30
JF
3772fi
3773
3774fi
a243b558
JF
3775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
3776$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
3777CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
66170b30
JF
3778
3779 if
3780 test "x$enable_dependency_tracking" != xno \
a243b558
JF
3781 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3782 am__fastdepCXX_TRUE=
3783 am__fastdepCXX_FALSE='#'
66170b30 3784else
a243b558
JF
3785 am__fastdepCXX_TRUE='#'
3786 am__fastdepCXX_FALSE=
66170b30
JF
3787fi
3788
3789
a243b558
JF
3790ac_ext=mm
3791ac_cpp='$OBJCXXCPP $CPPFLAGS'
3792ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3793ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3794ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
3795if test -n "$ac_tool_prefix"; then
3796 for ac_prog in g++ objc++ objcxx c++ CXX
3797 do
3798 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3799set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3801$as_echo_n "checking for $ac_word... " >&6; }
3802if ${ac_cv_prog_OBJCXX+:} false; then :
35fa52c0
DWT
3803 $as_echo_n "(cached) " >&6
3804else
a243b558
JF
3805 if test -n "$OBJCXX"; then
3806 ac_cv_prog_OBJCXX="$OBJCXX" # Let the user override the test.
3807else
3808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3809for as_dir in $PATH
3810do
35fa52c0
DWT
3811 IFS=$as_save_IFS
3812 test -z "$as_dir" && as_dir=.
3813 for ac_exec_ext in '' $ac_executable_extensions; do
a243b558
JF
3814 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3815 ac_cv_prog_OBJCXX="$ac_tool_prefix$ac_prog"
3816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3817 break 2
3818 fi
3819done
9c60689e
DWT
3820 done
3821IFS=$as_save_IFS
35fa52c0 3822
9c60689e 3823fi
a243b558
JF
3824fi
3825OBJCXX=$ac_cv_prog_OBJCXX
3826if test -n "$OBJCXX"; then
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCXX" >&5
3828$as_echo "$OBJCXX" >&6; }
3829else
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3831$as_echo "no" >&6; }
3832fi
35fa52c0 3833
35fa52c0 3834
a243b558
JF
3835 test -n "$OBJCXX" && break
3836 done
3837fi
3838if test -z "$OBJCXX"; then
3839 ac_ct_OBJCXX=$OBJCXX
3840 for ac_prog in g++ objc++ objcxx c++ CXX
3841do
3842 # Extract the first word of "$ac_prog", so it can be a program name with args.
3843set dummy $ac_prog; ac_word=$2
3844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3845$as_echo_n "checking for $ac_word... " >&6; }
3846if ${ac_cv_prog_ac_ct_OBJCXX+:} false; then :
9c60689e
DWT
3847 $as_echo_n "(cached) " >&6
3848else
a243b558
JF
3849 if test -n "$ac_ct_OBJCXX"; then
3850 ac_cv_prog_ac_ct_OBJCXX="$ac_ct_OBJCXX" # Let the user override the test.
3851else
3852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3853for as_dir in $PATH
9c60689e
DWT
3854do
3855 IFS=$as_save_IFS
3856 test -z "$as_dir" && as_dir=.
9c60689e 3857 for ac_exec_ext in '' $ac_executable_extensions; do
a243b558
JF
3858 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3859 ac_cv_prog_ac_ct_OBJCXX="$ac_prog"
3860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3861 break 2
3862 fi
3863done
9c60689e
DWT
3864 done
3865IFS=$as_save_IFS
a243b558
JF
3866
3867fi
3868fi
3869ac_ct_OBJCXX=$ac_cv_prog_ac_ct_OBJCXX
3870if test -n "$ac_ct_OBJCXX"; then
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCXX" >&5
3872$as_echo "$ac_ct_OBJCXX" >&6; }
9c60689e 3873else
a243b558
JF
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3875$as_echo "no" >&6; }
9c60689e 3876fi
6b66678a
DWT
3877
3878
a243b558
JF
3879 test -n "$ac_ct_OBJCXX" && break
3880done
6b66678a 3881
a243b558
JF
3882 if test "x$ac_ct_OBJCXX" = x; then
3883 OBJCXX="g++"
3884 else
3885 case $cross_compiling:$ac_tool_warned in
3886yes:)
3887{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3888$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3889ac_tool_warned=yes ;;
9c60689e 3890esac
a243b558 3891 OBJCXX=$ac_ct_OBJCXX
9c60689e 3892 fi
9c60689e 3893fi
6b66678a 3894
a243b558
JF
3895# Provide some information about the compiler.
3896$as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C++ compiler version" >&5
3897set X $ac_compile
3898ac_compiler=$2
3899for ac_option in --version -v -V -qversion; do
3900 { { ac_try="$ac_compiler $ac_option >&5"
3901case "(($ac_try" in
3902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3903 *) ac_try_echo=$ac_try;;
3904esac
3905eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3906$as_echo "$ac_try_echo"; } >&5
3907 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3908 ac_status=$?
3909 if test -s conftest.err; then
3910 sed '10a\
3911... rest of stderr output deleted ...
3912 10q' conftest.err >conftest.er1
3913 cat conftest.er1 >&5
3914 fi
3915 rm -f conftest.er1 conftest.err
3916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3917 test $ac_status = 0; }
3918done
6b66678a 3919
a243b558
JF
3920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C++ compiler" >&5
3921$as_echo_n "checking whether we are using the GNU Objective C++ compiler... " >&6; }
3922if ${ac_cv_objcxx_compiler_gnu+:} false; then :
9c60689e 3923 $as_echo_n "(cached) " >&6
6b66678a 3924else
a243b558
JF
3925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3926/* end confdefs.h. */
6b66678a 3927
a243b558
JF
3928int
3929main ()
3930{
3931#ifndef __GNUC__
3932 choke me
3933#endif
3934
3935 ;
3936 return 0;
3937}
3938_ACEOF
3939if ac_fn_objcxx_try_compile "$LINENO"; then :
3940 ac_compiler_gnu=yes
9c60689e 3941else
a243b558 3942 ac_compiler_gnu=no
6b66678a 3943fi
a243b558
JF
3944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3945ac_cv_objcxx_compiler_gnu=$ac_compiler_gnu
6b66678a
DWT
3946
3947fi
a243b558
JF
3948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objcxx_compiler_gnu" >&5
3949$as_echo "$ac_cv_objcxx_compiler_gnu" >&6; }
3950if test $ac_compiler_gnu = yes; then
3951 GOBJCXX=yes
3952else
3953 GOBJCXX=
3954fi
3955ac_test_OBJCXXFLAGS=${OBJCXXFLAGS+set}
3956ac_save_OBJCXXFLAGS=$OBJCXXFLAGS
3957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJCXX accepts -g" >&5
3958$as_echo_n "checking whether $OBJCXX accepts -g... " >&6; }
3959if ${ac_cv_prog_objcxx_g+:} false; then :
3960 $as_echo_n "(cached) " >&6
3961else
3962 ac_save_objcxx_werror_flag=$ac_objcxx_werror_flag
3963 ac_objcxx_werror_flag=yes
3964 ac_cv_prog_objcxx_g=no
3965 OBJCXXFLAGS="-g"
3966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3967/* end confdefs.h. */
309b0535 3968
a243b558
JF
3969int
3970main ()
3971{
309b0535 3972
a243b558
JF
3973 ;
3974 return 0;
3975}
3976_ACEOF
3977if ac_fn_objcxx_try_compile "$LINENO"; then :
3978 ac_cv_prog_objcxx_g=yes
3979else
3980 OBJCXXFLAGS=""
3981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3982/* end confdefs.h. */
309b0535 3983
a243b558
JF
3984int
3985main ()
3986{
309b0535 3987
a243b558
JF
3988 ;
3989 return 0;
3990}
3991_ACEOF
3992if ac_fn_objcxx_try_compile "$LINENO"; then :
309b0535 3993
a243b558
JF
3994else
3995 ac_objcxx_werror_flag=$ac_save_objcxx_werror_flag
3996 OBJCXXFLAGS="-g"
3997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3998/* end confdefs.h. */
309b0535 3999
a243b558
JF
4000int
4001main ()
4002{
309b0535 4003
a243b558
JF
4004 ;
4005 return 0;
4006}
4007_ACEOF
4008if ac_fn_objcxx_try_compile "$LINENO"; then :
4009 ac_cv_prog_objcxx_g=yes
9c60689e 4010fi
a243b558 4011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9c60689e 4012fi
a243b558 4013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9c60689e 4014fi
a243b558
JF
4015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4016 ac_objcxx_werror_flag=$ac_save_objcx_werror_flag
9c60689e 4017fi
a243b558
JF
4018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objcxx_g" >&5
4019$as_echo "$ac_cv_prog_objcxx_g" >&6; }
4020if test "$ac_test_OBJCXXFLAGS" = set; then
4021 OBJCXXFLAGS=$ac_save_OBJCXXFLAGS
4022elif test $ac_cv_prog_objcxx_g = yes; then
4023 if test "$GOBJCXX" = yes; then
4024 OBJCXXFLAGS="-g -O2"
4025 else
4026 OBJCXXFLAGS="-g"
4027 fi
9c60689e 4028else
a243b558
JF
4029 if test "$GOBJCXX" = yes; then
4030 OBJCXXFLAGS="-O2"
4031 else
4032 OBJCXXFLAGS=
4033 fi
9c60689e 4034fi
a243b558
JF
4035ac_ext=c
4036ac_cpp='$CPP $CPPFLAGS'
4037ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4038ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4039ac_compiler_gnu=$ac_cv_c_compiler_gnu
309b0535 4040
a243b558 4041depcc="$OBJCXX" am_compiler_list='gcc3 gcc'
309b0535 4042
a243b558
JF
4043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4044$as_echo_n "checking dependency style of $depcc... " >&6; }
4045if ${am_cv_OBJCXX_dependencies_compiler_type+:} false; then :
4046 $as_echo_n "(cached) " >&6
4047else
4048 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4049 # We make a subdir and do the tests there. Otherwise we can end up
4050 # making bogus files that we don't know about and never remove. For
4051 # instance it was reported that on HP-UX the gcc test will end up
4052 # making a dummy file named 'D' -- because '-MD' means "put the output
4053 # in D".
4054 rm -rf conftest.dir
4055 mkdir conftest.dir
4056 # Copy depcomp to subdir because otherwise we won't find it if we're
4057 # using a relative directory.
4058 cp "$am_depcomp" conftest.dir
4059 cd conftest.dir
4060 # We will build objects and dependencies in a subdirectory because
4061 # it helps to detect inapplicable dependency modes. For instance
4062 # both Tru64's cc and ICC support -MD to output dependencies as a
4063 # side effect of compilation, but ICC will put the dependencies in
4064 # the current directory while Tru64 will put them in the object
4065 # directory.
4066 mkdir sub
309b0535 4067
a243b558
JF
4068 am_cv_OBJCXX_dependencies_compiler_type=none
4069 if test "$am_compiler_list" = ""; then
4070 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4071 fi
4072 am__universal=false
309b0535 4073
9c60689e 4074
a243b558
JF
4075 for depmode in $am_compiler_list; do
4076 # Setup a source with many dependencies, because some compilers
4077 # like to wrap large dependency lists on column 80 (with \), and
4078 # we should not choose a depcomp mode which is confused by this.
4079 #
4080 # We need to recreate these files for each test, as the compiler may
4081 # overwrite some of them when testing with obscure command lines.
4082 # This happens at least with the AIX C compiler.
4083 : > sub/conftest.c
4084 for i in 1 2 3 4 5 6; do
4085 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4086 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4087 # Solaris 10 /bin/sh.
4088 echo '/* dummy */' > sub/conftst$i.h
4089 done
4090 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
9c60689e 4091
a243b558
JF
4092 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4093 # mode. It turns out that the SunPro C++ compiler does not properly
4094 # handle '-M -o', and we need to detect this. Also, some Intel
4095 # versions had trouble with output in subdirs.
4096 am__obj=sub/conftest.${OBJEXT-o}
4097 am__minus_obj="-o $am__obj"
4098 case $depmode in
4099 gcc)
4100 # This depmode causes a compiler race in universal mode.
4101 test "$am__universal" = false || continue
4102 ;;
4103 nosideeffect)
4104 # After this tag, mechanisms are not by side-effect, so they'll
4105 # only be used when explicitly requested.
4106 if test "x$enable_dependency_tracking" = xyes; then
4107 continue
4108 else
4109 break
309b0535 4110 fi
a243b558
JF
4111 ;;
4112 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4113 # This compiler won't grok '-c -o', but also, the minuso test has
4114 # not run yet. These depmodes are late enough in the game, and
4115 # so weak that their functioning should not be impacted.
4116 am__obj=conftest.${OBJEXT-o}
4117 am__minus_obj=
4118 ;;
4119 none) break ;;
4120 esac
4121 if depmode=$depmode \
4122 source=sub/conftest.c object=$am__obj \
4123 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4124 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4125 >/dev/null 2>conftest.err &&
4126 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4127 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4128 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4129 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4130 # icc doesn't choke on unknown options, it will just issue warnings
4131 # or remarks (even with -Werror). So we grep stderr for any message
4132 # that says an option was ignored or not supported.
4133 # When given -MP, icc 7.0 and 7.1 complain thusly:
4134 # icc: Command line warning: ignoring option '-M'; no argument required
4135 # The diagnosis changed in icc 8.0:
4136 # icc: Command line remark: option '-MP' not supported
4137 if (grep 'ignoring option' conftest.err ||
4138 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4139 am_cv_OBJCXX_dependencies_compiler_type=$depmode
4140 break
4141 fi
4142 fi
309b0535 4143 done
a243b558
JF
4144
4145 cd ..
4146 rm -rf conftest.dir
4147else
4148 am_cv_OBJCXX_dependencies_compiler_type=none
9c60689e 4149fi
a243b558 4150
9c60689e 4151fi
a243b558
JF
4152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_OBJCXX_dependencies_compiler_type" >&5
4153$as_echo "$am_cv_OBJCXX_dependencies_compiler_type" >&6; }
4154OBJCXXDEPMODE=depmode=$am_cv_OBJCXX_dependencies_compiler_type
4155
4156 if
4157 test "x$enable_dependency_tracking" != xno \
4158 && test "$am_cv_OBJCXX_dependencies_compiler_type" = gcc3; then
4159 am__fastdepOBJCXX_TRUE=
4160 am__fastdepOBJCXX_FALSE='#'
9c60689e 4161else
a243b558
JF
4162 am__fastdepOBJCXX_TRUE='#'
4163 am__fastdepOBJCXX_FALSE=
4164fi
4165
4166
4167ac_ext=c
4168ac_cpp='$CPP $CPPFLAGS'
4169ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4170ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4171ac_compiler_gnu=$ac_cv_c_compiler_gnu
4172if test -n "$ac_tool_prefix"; then
4173 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4174set dummy ${ac_tool_prefix}gcc; ac_word=$2
35fa52c0
DWT
4175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4176$as_echo_n "checking for $ac_word... " >&6; }
a243b558 4177if ${ac_cv_prog_CC+:} false; then :
35fa52c0
DWT
4178 $as_echo_n "(cached) " >&6
4179else
a243b558
JF
4180 if test -n "$CC"; then
4181 ac_cv_prog_CC="$CC" # Let the user override the test.
35fa52c0
DWT
4182else
4183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4184for as_dir in $PATH
4185do
4186 IFS=$as_save_IFS
4187 test -z "$as_dir" && as_dir=.
4188 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 4189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 4190 ac_cv_prog_CC="${ac_tool_prefix}gcc"
35fa52c0
DWT
4191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4192 break 2
4193 fi
4194done
4195 done
4196IFS=$as_save_IFS
4197
4198fi
4199fi
a243b558
JF
4200CC=$ac_cv_prog_CC
4201if test -n "$CC"; then
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4203$as_echo "$CC" >&6; }
35fa52c0
DWT
4204else
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4206$as_echo "no" >&6; }
4207fi
4208
4209
35fa52c0 4210fi
a243b558
JF
4211if test -z "$ac_cv_prog_CC"; then
4212 ac_ct_CC=$CC
4213 # Extract the first word of "gcc", so it can be a program name with args.
4214set dummy gcc; ac_word=$2
35fa52c0
DWT
4215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4216$as_echo_n "checking for $ac_word... " >&6; }
a243b558 4217if ${ac_cv_prog_ac_ct_CC+:} false; then :
35fa52c0
DWT
4218 $as_echo_n "(cached) " >&6
4219else
a243b558
JF
4220 if test -n "$ac_ct_CC"; then
4221 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
35fa52c0
DWT
4222else
4223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4224for as_dir in $PATH
4225do
4226 IFS=$as_save_IFS
4227 test -z "$as_dir" && as_dir=.
4228 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 4229 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 4230 ac_cv_prog_ac_ct_CC="gcc"
35fa52c0
DWT
4231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4232 break 2
4233 fi
4234done
4235 done
4236IFS=$as_save_IFS
4237
4238fi
4239fi
a243b558
JF
4240ac_ct_CC=$ac_cv_prog_ac_ct_CC
4241if test -n "$ac_ct_CC"; then
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4243$as_echo "$ac_ct_CC" >&6; }
35fa52c0
DWT
4244else
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4246$as_echo "no" >&6; }
4247fi
4248
a243b558
JF
4249 if test "x$ac_ct_CC" = x; then
4250 CC=""
35fa52c0
DWT
4251 else
4252 case $cross_compiling:$ac_tool_warned in
4253yes:)
4254{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4255$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4256ac_tool_warned=yes ;;
4257esac
a243b558 4258 CC=$ac_ct_CC
35fa52c0 4259 fi
a243b558
JF
4260else
4261 CC="$ac_cv_prog_CC"
35fa52c0
DWT
4262fi
4263
a243b558
JF
4264if test -z "$CC"; then
4265 if test -n "$ac_tool_prefix"; then
4266 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4267set dummy ${ac_tool_prefix}cc; ac_word=$2
4268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4269$as_echo_n "checking for $ac_word... " >&6; }
4270if ${ac_cv_prog_CC+:} false; then :
4271 $as_echo_n "(cached) " >&6
4272else
4273 if test -n "$CC"; then
4274 ac_cv_prog_CC="$CC" # Let the user override the test.
4275else
4276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4277for as_dir in $PATH
4278do
4279 IFS=$as_save_IFS
4280 test -z "$as_dir" && as_dir=.
4281 for ac_exec_ext in '' $ac_executable_extensions; do
4282 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4283 ac_cv_prog_CC="${ac_tool_prefix}cc"
4284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4285 break 2
ee134472 4286 fi
a243b558
JF
4287done
4288 done
4289IFS=$as_save_IFS
9c60689e 4290
35fa52c0 4291fi
a243b558
JF
4292fi
4293CC=$ac_cv_prog_CC
4294if test -n "$CC"; then
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4296$as_echo "$CC" >&6; }
4297else
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4299$as_echo "no" >&6; }
4300fi
35fa52c0 4301
35fa52c0 4302
a243b558
JF
4303 fi
4304fi
4305if test -z "$CC"; then
4306 # Extract the first word of "cc", so it can be a program name with args.
4307set dummy cc; ac_word=$2
4308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4309$as_echo_n "checking for $ac_word... " >&6; }
4310if ${ac_cv_prog_CC+:} false; then :
4311 $as_echo_n "(cached) " >&6
4312else
4313 if test -n "$CC"; then
4314 ac_cv_prog_CC="$CC" # Let the user override the test.
4315else
4316 ac_prog_rejected=no
4317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4318for as_dir in $PATH
4319do
4320 IFS=$as_save_IFS
4321 test -z "$as_dir" && as_dir=.
4322 for ac_exec_ext in '' $ac_executable_extensions; do
4323 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4324 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4325 ac_prog_rejected=yes
4326 continue
4327 fi
4328 ac_cv_prog_CC="cc"
4329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4330 break 2
4331 fi
4332done
4333 done
4334IFS=$as_save_IFS
35fa52c0 4335
a243b558
JF
4336if test $ac_prog_rejected = yes; then
4337 # We found a bogon in the path, so make sure we never use it.
4338 set dummy $ac_cv_prog_CC
4339 shift
4340 if test $# != 0; then
4341 # We chose a different compiler from the bogus one.
4342 # However, it has the same basename, so the bogon will be chosen
4343 # first if we set CC to just the basename; use the full file name.
4344 shift
4345 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4346 fi
4347fi
4348fi
4349fi
4350CC=$ac_cv_prog_CC
4351if test -n "$CC"; then
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4353$as_echo "$CC" >&6; }
4354else
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4356$as_echo "no" >&6; }
4357fi
9c60689e
DWT
4358
4359
a243b558
JF
4360fi
4361if test -z "$CC"; then
4362 if test -n "$ac_tool_prefix"; then
4363 for ac_prog in cl.exe
4364 do
4365 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4366set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4368$as_echo_n "checking for $ac_word... " >&6; }
4369if ${ac_cv_prog_CC+:} false; then :
9c60689e
DWT
4370 $as_echo_n "(cached) " >&6
4371else
a243b558
JF
4372 if test -n "$CC"; then
4373 ac_cv_prog_CC="$CC" # Let the user override the test.
4374else
4375as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4376for as_dir in $PATH
4377do
4378 IFS=$as_save_IFS
4379 test -z "$as_dir" && as_dir=.
4380 for ac_exec_ext in '' $ac_executable_extensions; do
4381 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4382 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4384 break 2
9c60689e 4385 fi
a243b558
JF
4386done
4387 done
4388IFS=$as_save_IFS
9c60689e 4389
a243b558
JF
4390fi
4391fi
4392CC=$ac_cv_prog_CC
4393if test -n "$CC"; then
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4395$as_echo "$CC" >&6; }
35fa52c0 4396else
a243b558
JF
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4398$as_echo "no" >&6; }
35fa52c0 4399fi
9c60689e 4400
a243b558
JF
4401
4402 test -n "$CC" && break
4403 done
4404fi
4405if test -z "$CC"; then
4406 ac_ct_CC=$CC
4407 for ac_prog in cl.exe
4408do
4409 # Extract the first word of "$ac_prog", so it can be a program name with args.
4410set dummy $ac_prog; ac_word=$2
4411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4412$as_echo_n "checking for $ac_word... " >&6; }
4413if ${ac_cv_prog_ac_ct_CC+:} false; then :
35fa52c0
DWT
4414 $as_echo_n "(cached) " >&6
4415else
a243b558
JF
4416 if test -n "$ac_ct_CC"; then
4417 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4418else
4419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4420for as_dir in $PATH
4421do
4422 IFS=$as_save_IFS
4423 test -z "$as_dir" && as_dir=.
4424 for ac_exec_ext in '' $ac_executable_extensions; do
4425 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4426 ac_cv_prog_ac_ct_CC="$ac_prog"
4427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4428 break 2
4429 fi
4430done
4431 done
4432IFS=$as_save_IFS
9c60689e 4433
a243b558
JF
4434fi
4435fi
4436ac_ct_CC=$ac_cv_prog_ac_ct_CC
4437if test -n "$ac_ct_CC"; then
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4439$as_echo "$ac_ct_CC" >&6; }
4440else
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4442$as_echo "no" >&6; }
4443fi
35fa52c0 4444
35fa52c0 4445
a243b558
JF
4446 test -n "$ac_ct_CC" && break
4447done
35fa52c0 4448
a243b558
JF
4449 if test "x$ac_ct_CC" = x; then
4450 CC=""
4451 else
4452 case $cross_compiling:$ac_tool_warned in
4453yes:)
4454{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4455$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4456ac_tool_warned=yes ;;
4457esac
4458 CC=$ac_ct_CC
4459 fi
4460fi
ee134472 4461
a243b558 4462fi
35fa52c0 4463
35fa52c0 4464
a243b558
JF
4465test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4466$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4467as_fn_error $? "no acceptable C compiler found in \$PATH
4468See \`config.log' for more details" "$LINENO" 5; }
35fa52c0 4469
a243b558
JF
4470# Provide some information about the compiler.
4471$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4472set X $ac_compile
4473ac_compiler=$2
4474for ac_option in --version -v -V -qversion; do
4475 { { ac_try="$ac_compiler $ac_option >&5"
4476case "(($ac_try" in
4477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4478 *) ac_try_echo=$ac_try;;
4479esac
4480eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4481$as_echo "$ac_try_echo"; } >&5
4482 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4483 ac_status=$?
4484 if test -s conftest.err; then
4485 sed '10a\
4486... rest of stderr output deleted ...
4487 10q' conftest.err >conftest.er1
4488 cat conftest.er1 >&5
4489 fi
4490 rm -f conftest.er1 conftest.err
4491 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4492 test $ac_status = 0; }
4493done
53ba6704 4494
a243b558
JF
4495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4496$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4497if ${ac_cv_c_compiler_gnu+:} false; then :
4498 $as_echo_n "(cached) " >&6
4499else
4500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4501/* end confdefs.h. */
35fa52c0 4502
a243b558
JF
4503int
4504main ()
4505{
4506#ifndef __GNUC__
4507 choke me
4508#endif
9c60689e 4509
a243b558
JF
4510 ;
4511 return 0;
4512}
4513_ACEOF
4514if ac_fn_c_try_compile "$LINENO"; then :
4515 ac_compiler_gnu=yes
35fa52c0 4516else
a243b558 4517 ac_compiler_gnu=no
35fa52c0 4518fi
a243b558
JF
4519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4520ac_cv_c_compiler_gnu=$ac_compiler_gnu
9c60689e 4521
a243b558
JF
4522fi
4523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4524$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4525if test $ac_compiler_gnu = yes; then
4526 GCC=yes
35fa52c0 4527else
a243b558 4528 GCC=
9c60689e 4529fi
a243b558
JF
4530ac_test_CFLAGS=${CFLAGS+set}
4531ac_save_CFLAGS=$CFLAGS
4532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4533$as_echo_n "checking whether $CC accepts -g... " >&6; }
4534if ${ac_cv_prog_cc_g+:} false; then :
4535 $as_echo_n "(cached) " >&6
4536else
4537 ac_save_c_werror_flag=$ac_c_werror_flag
4538 ac_c_werror_flag=yes
4539 ac_cv_prog_cc_g=no
4540 CFLAGS="-g"
4541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4542/* end confdefs.h. */
9c60689e 4543
a243b558
JF
4544int
4545main ()
4546{
9c60689e 4547
a243b558
JF
4548 ;
4549 return 0;
4550}
4551_ACEOF
4552if ac_fn_c_try_compile "$LINENO"; then :
4553 ac_cv_prog_cc_g=yes
4554else
4555 CFLAGS=""
4556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4557/* end confdefs.h. */
9c60689e 4558
a243b558
JF
4559int
4560main ()
4561{
9c60689e 4562
a243b558
JF
4563 ;
4564 return 0;
4565}
4566_ACEOF
4567if ac_fn_c_try_compile "$LINENO"; then :
9c60689e 4568
a243b558
JF
4569else
4570 ac_c_werror_flag=$ac_save_c_werror_flag
4571 CFLAGS="-g"
4572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4573/* end confdefs.h. */
35fa52c0 4574
a243b558
JF
4575int
4576main ()
4577{
9c60689e 4578
a243b558
JF
4579 ;
4580 return 0;
4581}
4582_ACEOF
4583if ac_fn_c_try_compile "$LINENO"; then :
4584 ac_cv_prog_cc_g=yes
ee134472 4585fi
a243b558
JF
4586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4587fi
4588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4589fi
4590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4591 ac_c_werror_flag=$ac_save_c_werror_flag
4592fi
4593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4594$as_echo "$ac_cv_prog_cc_g" >&6; }
4595if test "$ac_test_CFLAGS" = set; then
4596 CFLAGS=$ac_save_CFLAGS
4597elif test $ac_cv_prog_cc_g = yes; then
4598 if test "$GCC" = yes; then
4599 CFLAGS="-g -O2"
4600 else
4601 CFLAGS="-g"
4602 fi
ee134472 4603else
a243b558
JF
4604 if test "$GCC" = yes; then
4605 CFLAGS="-O2"
4606 else
4607 CFLAGS=
4608 fi
ee134472 4609fi
a243b558
JF
4610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4611$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4612if ${ac_cv_prog_cc_c89+:} false; then :
35fa52c0
DWT
4613 $as_echo_n "(cached) " >&6
4614else
a243b558
JF
4615 ac_cv_prog_cc_c89=no
4616ac_save_CC=$CC
4617cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4618/* end confdefs.h. */
4619#include <stdarg.h>
4620#include <stdio.h>
4621struct stat;
4622/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4623struct buf { int x; };
4624FILE * (*rcsopen) (struct buf *, struct stat *, int);
4625static char *e (p, i)
4626 char **p;
4627 int i;
4628{
4629 return p[i];
4630}
4631static char *f (char * (*g) (char **, int), char **p, ...)
4632{
4633 char *s;
4634 va_list v;
4635 va_start (v,p);
4636 s = g (p, va_arg (v,int));
4637 va_end (v);
4638 return s;
4639}
9c60689e 4640
a243b558
JF
4641/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4642 function prototypes and stuff, but not '\xHH' hex character constants.
4643 These don't provoke an error unfortunately, instead are silently treated
4644 as 'x'. The following induces an error, until -std is added to get
4645 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4646 array size at least. It's necessary to write '\x00'==0 to get something
4647 that's true only with -std. */
4648int osf4_cc_array ['\x00' == 0 ? 1 : -1];
9c60689e 4649
a243b558
JF
4650/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4651 inside strings and character constants. */
4652#define FOO(x) 'x'
4653int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
9c60689e 4654
a243b558
JF
4655int test (int i, double x);
4656struct s1 {int (*f) (int a);};
4657struct s2 {int (*f) (double a);};
4658int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4659int argc;
4660char **argv;
4661int
4662main ()
4663{
4664return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4665 ;
4666 return 0;
4667}
4668_ACEOF
4669for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4670 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
9c60689e 4671do
a243b558
JF
4672 CC="$ac_save_CC $ac_arg"
4673 if ac_fn_c_try_compile "$LINENO"; then :
4674 ac_cv_prog_cc_c89=$ac_arg
4675fi
4676rm -f core conftest.err conftest.$ac_objext
4677 test "x$ac_cv_prog_cc_c89" != "xno" && break
9c60689e 4678done
a243b558
JF
4679rm -f conftest.$ac_ext
4680CC=$ac_save_CC
35fa52c0 4681
35fa52c0 4682fi
a243b558
JF
4683# AC_CACHE_VAL
4684case "x$ac_cv_prog_cc_c89" in
4685 x)
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4687$as_echo "none needed" >&6; } ;;
4688 xno)
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4690$as_echo "unsupported" >&6; } ;;
4691 *)
4692 CC="$CC $ac_cv_prog_cc_c89"
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4694$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4695esac
4696if test "x$ac_cv_prog_cc_c89" != xno; then :
4697
35fa52c0 4698fi
9c60689e 4699
a243b558
JF
4700ac_ext=c
4701ac_cpp='$CPP $CPPFLAGS'
4702ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4703ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4704ac_compiler_gnu=$ac_cv_c_compiler_gnu
4705
4706depcc="$CC" am_compiler_list=
9c60689e 4707
a243b558
JF
4708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4709$as_echo_n "checking dependency style of $depcc... " >&6; }
4710if ${am_cv_CC_dependencies_compiler_type+:} false; then :
35fa52c0
DWT
4711 $as_echo_n "(cached) " >&6
4712else
a243b558
JF
4713 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4714 # We make a subdir and do the tests there. Otherwise we can end up
4715 # making bogus files that we don't know about and never remove. For
4716 # instance it was reported that on HP-UX the gcc test will end up
4717 # making a dummy file named 'D' -- because '-MD' means "put the output
4718 # in D".
4719 rm -rf conftest.dir
4720 mkdir conftest.dir
4721 # Copy depcomp to subdir because otherwise we won't find it if we're
4722 # using a relative directory.
4723 cp "$am_depcomp" conftest.dir
4724 cd conftest.dir
4725 # We will build objects and dependencies in a subdirectory because
4726 # it helps to detect inapplicable dependency modes. For instance
4727 # both Tru64's cc and ICC support -MD to output dependencies as a
4728 # side effect of compilation, but ICC will put the dependencies in
4729 # the current directory while Tru64 will put them in the object
4730 # directory.
4731 mkdir sub
4732
4733 am_cv_CC_dependencies_compiler_type=none
4734 if test "$am_compiler_list" = ""; then
4735 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4736 fi
4737 am__universal=false
4738 case " $depcc " in #(
4739 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4740 esac
4741
4742 for depmode in $am_compiler_list; do
4743 # Setup a source with many dependencies, because some compilers
4744 # like to wrap large dependency lists on column 80 (with \), and
4745 # we should not choose a depcomp mode which is confused by this.
4746 #
4747 # We need to recreate these files for each test, as the compiler may
4748 # overwrite some of them when testing with obscure command lines.
4749 # This happens at least with the AIX C compiler.
4750 : > sub/conftest.c
4751 for i in 1 2 3 4 5 6; do
4752 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4753 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4754 # Solaris 10 /bin/sh.
4755 echo '/* dummy */' > sub/conftst$i.h
4756 done
4757 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4758
4759 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4760 # mode. It turns out that the SunPro C++ compiler does not properly
4761 # handle '-M -o', and we need to detect this. Also, some Intel
4762 # versions had trouble with output in subdirs.
4763 am__obj=sub/conftest.${OBJEXT-o}
4764 am__minus_obj="-o $am__obj"
4765 case $depmode in
4766 gcc)
4767 # This depmode causes a compiler race in universal mode.
4768 test "$am__universal" = false || continue
4769 ;;
4770 nosideeffect)
4771 # After this tag, mechanisms are not by side-effect, so they'll
4772 # only be used when explicitly requested.
4773 if test "x$enable_dependency_tracking" = xyes; then
4774 continue
4775 else
4776 break
4777 fi
4778 ;;
4779 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4780 # This compiler won't grok '-c -o', but also, the minuso test has
4781 # not run yet. These depmodes are late enough in the game, and
4782 # so weak that their functioning should not be impacted.
4783 am__obj=conftest.${OBJEXT-o}
4784 am__minus_obj=
4785 ;;
4786 none) break ;;
4787 esac
4788 if depmode=$depmode \
4789 source=sub/conftest.c object=$am__obj \
4790 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4791 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4792 >/dev/null 2>conftest.err &&
4793 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4794 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4795 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4796 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4797 # icc doesn't choke on unknown options, it will just issue warnings
4798 # or remarks (even with -Werror). So we grep stderr for any message
4799 # that says an option was ignored or not supported.
4800 # When given -MP, icc 7.0 and 7.1 complain thusly:
4801 # icc: Command line warning: ignoring option '-M'; no argument required
4802 # The diagnosis changed in icc 8.0:
4803 # icc: Command line remark: option '-MP' not supported
4804 if (grep 'ignoring option' conftest.err ||
4805 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4806 am_cv_CC_dependencies_compiler_type=$depmode
4807 break
4808 fi
4809 fi
4810 done
9c60689e 4811
a243b558
JF
4812 cd ..
4813 rm -rf conftest.dir
4814else
4815 am_cv_CC_dependencies_compiler_type=none
35fa52c0 4816fi
a243b558 4817
35fa52c0 4818fi
a243b558
JF
4819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4820$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4821CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4822
4823 if
4824 test "x$enable_dependency_tracking" != xno \
4825 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4826 am__fastdepCC_TRUE=
4827 am__fastdepCC_FALSE='#'
4828else
4829 am__fastdepCC_TRUE='#'
4830 am__fastdepCC_FALSE=
4831fi
4832
4833
4834
4835if test -n "$ac_tool_prefix"; then
4836 for ac_prog in ar lib "link -lib"
4837 do
4838 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4839set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4841$as_echo_n "checking for $ac_word... " >&6; }
4842if ${ac_cv_prog_AR+:} false; then :
4843 $as_echo_n "(cached) " >&6
4844else
4845 if test -n "$AR"; then
4846 ac_cv_prog_AR="$AR" # Let the user override the test.
4847else
4848as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4849for as_dir in $PATH
4850do
4851 IFS=$as_save_IFS
4852 test -z "$as_dir" && as_dir=.
4853 for ac_exec_ext in '' $ac_executable_extensions; do
4854 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4855 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4857 break 2
4858 fi
4859done
4860 done
4861IFS=$as_save_IFS
4862
4863fi
4864fi
4865AR=$ac_cv_prog_AR
4866if test -n "$AR"; then
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4868$as_echo "$AR" >&6; }
35fa52c0
DWT
4869else
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4871$as_echo "no" >&6; }
4872fi
9c60689e 4873
a243b558
JF
4874
4875 test -n "$AR" && break
4876 done
4877fi
4878if test -z "$AR"; then
4879 ac_ct_AR=$AR
4880 for ac_prog in ar lib "link -lib"
4881do
4882 # Extract the first word of "$ac_prog", so it can be a program name with args.
4883set dummy $ac_prog; ac_word=$2
4884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4885$as_echo_n "checking for $ac_word... " >&6; }
4886if ${ac_cv_prog_ac_ct_AR+:} false; then :
4887 $as_echo_n "(cached) " >&6
4888else
4889 if test -n "$ac_ct_AR"; then
4890 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4891else
4892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4893for as_dir in $PATH
4894do
4895 IFS=$as_save_IFS
4896 test -z "$as_dir" && as_dir=.
4897 for ac_exec_ext in '' $ac_executable_extensions; do
4898 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4899 ac_cv_prog_ac_ct_AR="$ac_prog"
4900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4901 break 2
4902 fi
4903done
4904 done
4905IFS=$as_save_IFS
4906
4907fi
4908fi
4909ac_ct_AR=$ac_cv_prog_ac_ct_AR
4910if test -n "$ac_ct_AR"; then
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4912$as_echo "$ac_ct_AR" >&6; }
4913else
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4915$as_echo "no" >&6; }
4916fi
4917
4918
4919 test -n "$ac_ct_AR" && break
4920done
4921
4922 if test "x$ac_ct_AR" = x; then
4923 AR="false"
9c60689e
DWT
4924 else
4925 case $cross_compiling:$ac_tool_warned in
4926yes:)
4927{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4928$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4929ac_tool_warned=yes ;;
35fa52c0 4930esac
a243b558 4931 AR=$ac_ct_AR
9c60689e 4932 fi
a243b558
JF
4933fi
4934
4935: ${AR=ar}
4936
4937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4938$as_echo_n "checking the archiver ($AR) interface... " >&6; }
4939if ${am_cv_ar_interface+:} false; then :
4940 $as_echo_n "(cached) " >&6
9c60689e 4941else
a243b558
JF
4942 am_cv_ar_interface=ar
4943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4944/* end confdefs.h. */
4945int some_variable = 0;
4946_ACEOF
4947if ac_fn_c_try_compile "$LINENO"; then :
4948 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
4949 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4950 (eval $am_ar_try) 2>&5
4951 ac_status=$?
4952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4953 test $ac_status = 0; }
4954 if test "$ac_status" -eq 0; then
4955 am_cv_ar_interface=ar
4956 else
4957 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4958 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4959 (eval $am_ar_try) 2>&5
4960 ac_status=$?
4961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4962 test $ac_status = 0; }
4963 if test "$ac_status" -eq 0; then
4964 am_cv_ar_interface=lib
4965 else
4966 am_cv_ar_interface=unknown
4967 fi
4968 fi
4969 rm -f conftest.lib libconftest.a
4970
35fa52c0 4971fi
a243b558 4972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35fa52c0 4973
a243b558
JF
4974fi
4975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4976$as_echo "$am_cv_ar_interface" >&6; }
35fa52c0 4977
a243b558
JF
4978case $am_cv_ar_interface in
4979ar)
4980 ;;
4981lib)
4982 # Microsoft lib, so override with the ar-lib wrapper script.
4983 # FIXME: It is wrong to rewrite AR.
4984 # But if we don't then we get into trouble of one sort or another.
4985 # A longer-term fix would be to have automake use am__AR in this case,
4986 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4987 # similar.
4988 AR="$am_aux_dir/ar-lib $AR"
4989 ;;
4990unknown)
4991 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
4992 ;;
4993esac
35fa52c0 4994
35fa52c0 4995
35fa52c0 4996
a243b558
JF
4997case `pwd` in
4998 *\ * | *\ *)
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5000$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5001esac
35fa52c0
DWT
5002
5003
5004
a243b558
JF
5005macro_version='2.4.2'
5006macro_revision='1.3337'
35fa52c0
DWT
5007
5008
5009
5010
5011
5012
5013
5014
5015
35fa52c0 5016
35fa52c0 5017
ee134472 5018
35fa52c0 5019
a243b558 5020ltmain="$ac_aux_dir/ltmain.sh"
35fa52c0 5021
a243b558
JF
5022# Make sure we can run config.sub.
5023$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5024 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
35fa52c0 5025
a243b558
JF
5026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5027$as_echo_n "checking build system type... " >&6; }
5028if ${ac_cv_build+:} false; then :
5029 $as_echo_n "(cached) " >&6
5030else
5031 ac_build_alias=$build_alias
5032test "x$ac_build_alias" = x &&
5033 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5034test "x$ac_build_alias" = x &&
5035 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5036ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5037 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
35fa52c0 5038
a243b558
JF
5039fi
5040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5041$as_echo "$ac_cv_build" >&6; }
5042case $ac_cv_build in
5043*-*-*) ;;
5044*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5045esac
5046build=$ac_cv_build
5047ac_save_IFS=$IFS; IFS='-'
5048set x $ac_cv_build
5049shift
5050build_cpu=$1
5051build_vendor=$2
5052shift; shift
5053# Remember, the first character of IFS is used to create $*,
5054# except with old shells:
5055build_os=$*
5056IFS=$ac_save_IFS
5057case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
35fa52c0 5058
35fa52c0 5059
a243b558
JF
5060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5061$as_echo_n "checking host system type... " >&6; }
5062if ${ac_cv_host+:} false; then :
5063 $as_echo_n "(cached) " >&6
5064else
5065 if test "x$host_alias" = x; then
5066 ac_cv_host=$ac_cv_build
5067else
5068 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5069 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5070fi
35fa52c0 5071
a243b558
JF
5072fi
5073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5074$as_echo "$ac_cv_host" >&6; }
5075case $ac_cv_host in
5076*-*-*) ;;
5077*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5078esac
5079host=$ac_cv_host
5080ac_save_IFS=$IFS; IFS='-'
5081set x $ac_cv_host
5082shift
5083host_cpu=$1
5084host_vendor=$2
5085shift; shift
5086# Remember, the first character of IFS is used to create $*,
5087# except with old shells:
5088host_os=$*
5089IFS=$ac_save_IFS
5090case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
9c60689e 5091
9c60689e 5092
a243b558
JF
5093# Backslashify metacharacters that are still active within
5094# double-quoted strings.
5095sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9c60689e 5096
a243b558
JF
5097# Same as above, but do not quote variable references.
5098double_quote_subst='s/\(["`\\]\)/\\\1/g'
9c60689e 5099
a243b558
JF
5100# Sed substitution to delay expansion of an escaped shell variable in a
5101# double_quote_subst'ed string.
5102delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9c60689e 5103
a243b558
JF
5104# Sed substitution to delay expansion of an escaped single quote.
5105delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9c60689e 5106
a243b558
JF
5107# Sed substitution to avoid accidental globbing in evaled expressions
5108no_glob_subst='s/\*/\\\*/g'
35fa52c0 5109
a243b558
JF
5110ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5111ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5112ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
ee134472 5113
a243b558
JF
5114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5115$as_echo_n "checking how to print strings... " >&6; }
5116# Test print first, because it will be a builtin if present.
5117if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5118 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5119 ECHO='print -r --'
5120elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5121 ECHO='printf %s\n'
5122else
5123 # Use this function as a fallback that always works.
5124 func_fallback_echo ()
5125 {
5126 eval 'cat <<_LTECHO_EOF
5127$1
5128_LTECHO_EOF'
5129 }
5130 ECHO='func_fallback_echo'
ee134472
JF
5131fi
5132
a243b558
JF
5133# func_echo_all arg...
5134# Invoke $ECHO with all args, space-separated.
5135func_echo_all ()
5136{
5137 $ECHO ""
5138}
35fa52c0 5139
a243b558
JF
5140case "$ECHO" in
5141 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5142$as_echo "printf" >&6; } ;;
5143 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5144$as_echo "print -r" >&6; } ;;
5145 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5146$as_echo "cat" >&6; } ;;
5147esac
35fa52c0 5148
35fa52c0 5149
ee134472
JF
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
35fa52c0 5160
9c60689e 5161
a243b558
JF
5162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5163$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5164if ${ac_cv_path_SED+:} false; then :
9c60689e
DWT
5165 $as_echo_n "(cached) " >&6
5166else
a243b558
JF
5167 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5168 for ac_i in 1 2 3 4 5 6 7; do
5169 ac_script="$ac_script$as_nl$ac_script"
5170 done
5171 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5172 { ac_script=; unset ac_script;}
5173 if test -z "$SED"; then
5174 ac_path_SED_found=false
5175 # Loop through the user's path and test for each of PROGNAME-LIST
5176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9c60689e
DWT
5177for as_dir in $PATH
5178do
5179 IFS=$as_save_IFS
5180 test -z "$as_dir" && as_dir=.
a243b558 5181 for ac_prog in sed gsed; do
9c60689e 5182 for ac_exec_ext in '' $ac_executable_extensions; do
a243b558
JF
5183 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5184 as_fn_executable_p "$ac_path_SED" || continue
5185# Check for GNU ac_path_SED and select it if it is found.
5186 # Check for GNU $ac_path_SED
5187case `"$ac_path_SED" --version 2>&1` in
5188*GNU*)
5189 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5190*)
5191 ac_count=0
5192 $as_echo_n 0123456789 >"conftest.in"
5193 while :
5194 do
5195 cat "conftest.in" "conftest.in" >"conftest.tmp"
5196 mv "conftest.tmp" "conftest.in"
5197 cp "conftest.in" "conftest.nl"
5198 $as_echo '' >> "conftest.nl"
5199 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5200 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5201 as_fn_arith $ac_count + 1 && ac_count=$as_val
5202 if test $ac_count -gt ${ac_path_SED_max-0}; then
5203 # Best one so far, save it but keep looking for a better one
5204 ac_cv_path_SED="$ac_path_SED"
5205 ac_path_SED_max=$ac_count
5206 fi
5207 # 10*(2^10) chars as input seems more than enough
5208 test $ac_count -gt 10 && break
35fa52c0 5209 done
a243b558
JF
5210 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5211esac
9c60689e 5212
a243b558
JF
5213 $ac_path_SED_found && break 3
5214 done
5215 done
9c60689e
DWT
5216 done
5217IFS=$as_save_IFS
a243b558
JF
5218 if test -z "$ac_cv_path_SED"; then
5219 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
9c60689e
DWT
5220 fi
5221else
a243b558 5222 ac_cv_path_SED=$SED
9c60689e
DWT
5223fi
5224
a243b558
JF
5225fi
5226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5227$as_echo "$ac_cv_path_SED" >&6; }
5228 SED="$ac_cv_path_SED"
5229 rm -f conftest.sed
9c60689e 5230
a243b558
JF
5231test -z "$SED" && SED=sed
5232Xsed="$SED -e 1s/^X//"
9c60689e 5233
ee134472 5234
ee134472 5235
9c60689e
DWT
5236
5237
5238
5239
5240
5241
5242
5243
a243b558
JF
5244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5245$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5246if ${ac_cv_path_GREP+:} false; then :
9c60689e
DWT
5247 $as_echo_n "(cached) " >&6
5248else
a243b558
JF
5249 if test -z "$GREP"; then
5250 ac_path_GREP_found=false
5251 # Loop through the user's path and test for each of PROGNAME-LIST
5252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5253for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9c60689e
DWT
5254do
5255 IFS=$as_save_IFS
5256 test -z "$as_dir" && as_dir=.
a243b558 5257 for ac_prog in grep ggrep; do
9c60689e 5258 for ac_exec_ext in '' $ac_executable_extensions; do
a243b558
JF
5259 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5260 as_fn_executable_p "$ac_path_GREP" || continue
5261# Check for GNU ac_path_GREP and select it if it is found.
5262 # Check for GNU $ac_path_GREP
5263case `"$ac_path_GREP" --version 2>&1` in
5264*GNU*)
5265 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5266*)
5267 ac_count=0
5268 $as_echo_n 0123456789 >"conftest.in"
5269 while :
5270 do
5271 cat "conftest.in" "conftest.in" >"conftest.tmp"
5272 mv "conftest.tmp" "conftest.in"
5273 cp "conftest.in" "conftest.nl"
5274 $as_echo 'GREP' >> "conftest.nl"
5275 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5276 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5277 as_fn_arith $ac_count + 1 && ac_count=$as_val
5278 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5279 # Best one so far, save it but keep looking for a better one
5280 ac_cv_path_GREP="$ac_path_GREP"
5281 ac_path_GREP_max=$ac_count
5282 fi
5283 # 10*(2^10) chars as input seems more than enough
5284 test $ac_count -gt 10 && break
5285 done
5286 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5287esac
9c60689e 5288
a243b558
JF
5289 $ac_path_GREP_found && break 3
5290 done
ee134472 5291 done
a243b558
JF
5292 done
5293IFS=$as_save_IFS
5294 if test -z "$ac_cv_path_GREP"; then
5295 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5296 fi
5297else
5298 ac_cv_path_GREP=$GREP
9c60689e 5299fi
a243b558
JF
5300
5301fi
5302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5303$as_echo "$ac_cv_path_GREP" >&6; }
5304 GREP="$ac_cv_path_GREP"
5305
5306
5307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5308$as_echo_n "checking for egrep... " >&6; }
5309if ${ac_cv_path_EGREP+:} false; then :
9c60689e
DWT
5310 $as_echo_n "(cached) " >&6
5311else
a243b558
JF
5312 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5313 then ac_cv_path_EGREP="$GREP -E"
5314 else
5315 if test -z "$EGREP"; then
5316 ac_path_EGREP_found=false
5317 # Loop through the user's path and test for each of PROGNAME-LIST
5318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5319for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9c60689e
DWT
5320do
5321 IFS=$as_save_IFS
5322 test -z "$as_dir" && as_dir=.
a243b558 5323 for ac_prog in egrep; do
9c60689e 5324 for ac_exec_ext in '' $ac_executable_extensions; do
a243b558
JF
5325 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5326 as_fn_executable_p "$ac_path_EGREP" || continue
5327# Check for GNU ac_path_EGREP and select it if it is found.
5328 # Check for GNU $ac_path_EGREP
5329case `"$ac_path_EGREP" --version 2>&1` in
5330*GNU*)
5331 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5332*)
5333 ac_count=0
5334 $as_echo_n 0123456789 >"conftest.in"
5335 while :
5336 do
5337 cat "conftest.in" "conftest.in" >"conftest.tmp"
5338 mv "conftest.tmp" "conftest.in"
5339 cp "conftest.in" "conftest.nl"
5340 $as_echo 'EGREP' >> "conftest.nl"
5341 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5342 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5343 as_fn_arith $ac_count + 1 && ac_count=$as_val
5344 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5345 # Best one so far, save it but keep looking for a better one
5346 ac_cv_path_EGREP="$ac_path_EGREP"
5347 ac_path_EGREP_max=$ac_count
5348 fi
5349 # 10*(2^10) chars as input seems more than enough
5350 test $ac_count -gt 10 && break
9c60689e 5351 done
a243b558
JF
5352 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5353esac
9c60689e 5354
a243b558
JF
5355 $ac_path_EGREP_found && break 3
5356 done
5357 done
5358 done
5359IFS=$as_save_IFS
5360 if test -z "$ac_cv_path_EGREP"; then
5361 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5362 fi
9c60689e 5363else
a243b558 5364 ac_cv_path_EGREP=$EGREP
9c60689e
DWT
5365fi
5366
a243b558
JF
5367 fi
5368fi
5369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5370$as_echo "$ac_cv_path_EGREP" >&6; }
5371 EGREP="$ac_cv_path_EGREP"
ee134472 5372
ee134472 5373
a243b558
JF
5374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5375$as_echo_n "checking for fgrep... " >&6; }
5376if ${ac_cv_path_FGREP+:} false; then :
5377 $as_echo_n "(cached) " >&6
5378else
5379 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5380 then ac_cv_path_FGREP="$GREP -F"
5381 else
5382 if test -z "$FGREP"; then
5383 ac_path_FGREP_found=false
5384 # Loop through the user's path and test for each of PROGNAME-LIST
5385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5386for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5387do
5388 IFS=$as_save_IFS
5389 test -z "$as_dir" && as_dir=.
5390 for ac_prog in fgrep; do
5391 for ac_exec_ext in '' $ac_executable_extensions; do
5392 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5393 as_fn_executable_p "$ac_path_FGREP" || continue
5394# Check for GNU ac_path_FGREP and select it if it is found.
5395 # Check for GNU $ac_path_FGREP
5396case `"$ac_path_FGREP" --version 2>&1` in
5397*GNU*)
5398 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5399*)
5400 ac_count=0
5401 $as_echo_n 0123456789 >"conftest.in"
5402 while :
5403 do
5404 cat "conftest.in" "conftest.in" >"conftest.tmp"
5405 mv "conftest.tmp" "conftest.in"
5406 cp "conftest.in" "conftest.nl"
5407 $as_echo 'FGREP' >> "conftest.nl"
5408 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5409 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5410 as_fn_arith $ac_count + 1 && ac_count=$as_val
5411 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5412 # Best one so far, save it but keep looking for a better one
5413 ac_cv_path_FGREP="$ac_path_FGREP"
5414 ac_path_FGREP_max=$ac_count
5415 fi
5416 # 10*(2^10) chars as input seems more than enough
5417 test $ac_count -gt 10 && break
5418 done
5419 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9c60689e 5420esac
a243b558
JF
5421
5422 $ac_path_FGREP_found && break 3
5423 done
5424 done
5425 done
5426IFS=$as_save_IFS
5427 if test -z "$ac_cv_path_FGREP"; then
5428 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
ee134472 5429 fi
a243b558
JF
5430else
5431 ac_cv_path_FGREP=$FGREP
ee134472
JF
5432fi
5433
a243b558
JF
5434 fi
5435fi
5436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5437$as_echo "$ac_cv_path_FGREP" >&6; }
5438 FGREP="$ac_cv_path_FGREP"
ee134472
JF
5439
5440
a243b558 5441test -z "$GREP" && GREP=grep
ee134472
JF
5442
5443
5444
5445
5446
5447
5448
ee134472 5449
ee134472 5450
ee134472 5451
ee134472 5452
ee134472 5453
ee134472
JF
5454
5455
5456
5457
5458
5459
5460
a243b558
JF
5461# Check whether --with-gnu-ld was given.
5462if test "${with_gnu_ld+set}" = set; then :
5463 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5464else
5465 with_gnu_ld=no
5466fi
5467
5468ac_prog=ld
5469if test "$GCC" = yes; then
5470 # Check if gcc -print-prog-name=ld gives a path.
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5472$as_echo_n "checking for ld used by $CC... " >&6; }
5473 case $host in
5474 *-*-mingw*)
5475 # gcc leaves a trailing carriage return which upsets mingw
5476 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5477 *)
5478 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5479 esac
5480 case $ac_prog in
5481 # Accept absolute paths.
5482 [\\/]* | ?:[\\/]*)
5483 re_direlt='/[^/][^/]*/\.\./'
5484 # Canonicalize the pathname of ld
5485 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5486 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5487 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5488 done
5489 test -z "$LD" && LD="$ac_prog"
5490 ;;
5491 "")
5492 # If it fails, then pretend we aren't using GCC.
5493 ac_prog=ld
5494 ;;
5495 *)
5496 # If it is relative, then search for the first ld in PATH.
5497 with_gnu_ld=unknown
5498 ;;
5499 esac
5500elif test "$with_gnu_ld" = yes; then
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5502$as_echo_n "checking for GNU ld... " >&6; }
5503else
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5505$as_echo_n "checking for non-GNU ld... " >&6; }
5506fi
5507if ${lt_cv_path_LD+:} false; then :
5508 $as_echo_n "(cached) " >&6
5509else
5510 if test -z "$LD"; then
5511 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5512 for ac_dir in $PATH; do
5513 IFS="$lt_save_ifs"
5514 test -z "$ac_dir" && ac_dir=.
5515 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5516 lt_cv_path_LD="$ac_dir/$ac_prog"
5517 # Check to see if the program is GNU ld. I'd rather use --version,
5518 # but apparently some variants of GNU ld only accept -v.
5519 # Break only if it was the GNU/non-GNU ld that we prefer.
5520 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5521 *GNU* | *'with BFD'*)
5522 test "$with_gnu_ld" != no && break
5523 ;;
5524 *)
5525 test "$with_gnu_ld" != yes && break
5526 ;;
5527 esac
5528 fi
5529 done
5530 IFS="$lt_save_ifs"
5531else
5532 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5533fi
5534fi
5535
5536LD="$lt_cv_path_LD"
5537if test -n "$LD"; then
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5539$as_echo "$LD" >&6; }
5540else
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5542$as_echo "no" >&6; }
5543fi
5544test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5546$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5547if ${lt_cv_prog_gnu_ld+:} false; then :
5548 $as_echo_n "(cached) " >&6
5549else
5550 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5551case `$LD -v 2>&1 </dev/null` in
5552*GNU* | *'with BFD'*)
5553 lt_cv_prog_gnu_ld=yes
5554 ;;
5555*)
5556 lt_cv_prog_gnu_ld=no
5557 ;;
5558esac
5559fi
5560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5561$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5562with_gnu_ld=$lt_cv_prog_gnu_ld
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5573$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5574if ${lt_cv_path_NM+:} false; then :
5575 $as_echo_n "(cached) " >&6
5576else
5577 if test -n "$NM"; then
5578 # Let the user override the test.
5579 lt_cv_path_NM="$NM"
5580else
5581 lt_nm_to_check="${ac_tool_prefix}nm"
5582 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5583 lt_nm_to_check="$lt_nm_to_check nm"
5584 fi
5585 for lt_tmp_nm in $lt_nm_to_check; do
5586 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5587 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5588 IFS="$lt_save_ifs"
5589 test -z "$ac_dir" && ac_dir=.
5590 tmp_nm="$ac_dir/$lt_tmp_nm"
5591 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5592 # Check to see if the nm accepts a BSD-compat flag.
5593 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5594 # nm: unknown option "B" ignored
5595 # Tru64's nm complains that /dev/null is an invalid object file
5596 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5597 */dev/null* | *'Invalid file or object type'*)
5598 lt_cv_path_NM="$tmp_nm -B"
5599 break
5600 ;;
5601 *)
5602 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5603 */dev/null*)
5604 lt_cv_path_NM="$tmp_nm -p"
5605 break
5606 ;;
5607 *)
5608 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5609 continue # so that we can try to find one that supports BSD flags
5610 ;;
5611 esac
5612 ;;
5613 esac
5614 fi
5615 done
5616 IFS="$lt_save_ifs"
5617 done
5618 : ${lt_cv_path_NM=no}
5619fi
5620fi
5621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5622$as_echo "$lt_cv_path_NM" >&6; }
5623if test "$lt_cv_path_NM" != "no"; then
5624 NM="$lt_cv_path_NM"
5625else
5626 # Didn't find any BSD compatible name lister, look for dumpbin.
5627 if test -n "$DUMPBIN"; then :
5628 # Let the user override the test.
5629 else
5630 if test -n "$ac_tool_prefix"; then
5631 for ac_prog in dumpbin "link -dump"
5632 do
5633 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5634set dummy $ac_tool_prefix$ac_prog; ac_word=$2
ee134472
JF
5635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5636$as_echo_n "checking for $ac_word... " >&6; }
a243b558 5637if ${ac_cv_prog_DUMPBIN+:} false; then :
ee134472
JF
5638 $as_echo_n "(cached) " >&6
5639else
a243b558
JF
5640 if test -n "$DUMPBIN"; then
5641 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
ee134472
JF
5642else
5643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5644for as_dir in $PATH
5645do
5646 IFS=$as_save_IFS
5647 test -z "$as_dir" && as_dir=.
5648 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 5649 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 5650 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
ee134472
JF
5651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5652 break 2
5653 fi
5654done
5655 done
5656IFS=$as_save_IFS
5657
5658fi
5659fi
a243b558
JF
5660DUMPBIN=$ac_cv_prog_DUMPBIN
5661if test -n "$DUMPBIN"; then
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5663$as_echo "$DUMPBIN" >&6; }
ee134472
JF
5664else
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5666$as_echo "no" >&6; }
5667fi
5668
5669
a243b558
JF
5670 test -n "$DUMPBIN" && break
5671 done
ee134472 5672fi
a243b558
JF
5673if test -z "$DUMPBIN"; then
5674 ac_ct_DUMPBIN=$DUMPBIN
5675 for ac_prog in dumpbin "link -dump"
5676do
5677 # Extract the first word of "$ac_prog", so it can be a program name with args.
5678set dummy $ac_prog; ac_word=$2
ee134472
JF
5679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5680$as_echo_n "checking for $ac_word... " >&6; }
a243b558 5681if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
ee134472
JF
5682 $as_echo_n "(cached) " >&6
5683else
a243b558
JF
5684 if test -n "$ac_ct_DUMPBIN"; then
5685 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
ee134472
JF
5686else
5687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5688for as_dir in $PATH
5689do
5690 IFS=$as_save_IFS
5691 test -z "$as_dir" && as_dir=.
5692 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 5693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 5694 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
ee134472
JF
5695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5696 break 2
5697 fi
5698done
5699 done
5700IFS=$as_save_IFS
5701
5702fi
5703fi
a243b558
JF
5704ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5705if test -n "$ac_ct_DUMPBIN"; then
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5707$as_echo "$ac_ct_DUMPBIN" >&6; }
ee134472
JF
5708else
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5710$as_echo "no" >&6; }
5711fi
5712
a243b558
JF
5713
5714 test -n "$ac_ct_DUMPBIN" && break
5715done
5716
5717 if test "x$ac_ct_DUMPBIN" = x; then
5718 DUMPBIN=":"
ee134472
JF
5719 else
5720 case $cross_compiling:$ac_tool_warned in
5721yes:)
5722{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5723$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5724ac_tool_warned=yes ;;
5725esac
a243b558 5726 DUMPBIN=$ac_ct_DUMPBIN
9c60689e 5727 fi
9c60689e
DWT
5728fi
5729
a243b558
JF
5730 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5731 *COFF*)
5732 DUMPBIN="$DUMPBIN -symbols"
5733 ;;
5734 *)
5735 DUMPBIN=:
5736 ;;
5737 esac
5738 fi
9c60689e 5739
a243b558
JF
5740 if test "$DUMPBIN" != ":"; then
5741 NM="$DUMPBIN"
5742 fi
5743fi
5744test -z "$NM" && NM=nm
9c60689e
DWT
5745
5746
5747
5748
5749
a243b558
JF
5750
5751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5752$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5753if ${lt_cv_nm_interface+:} false; then :
9c60689e
DWT
5754 $as_echo_n "(cached) " >&6
5755else
a243b558
JF
5756 lt_cv_nm_interface="BSD nm"
5757 echo "int some_variable = 0;" > conftest.$ac_ext
5758 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5759 (eval "$ac_compile" 2>conftest.err)
5760 cat conftest.err >&5
5761 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5762 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5763 cat conftest.err >&5
5764 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5765 cat conftest.out >&5
5766 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5767 lt_cv_nm_interface="MS dumpbin"
9c60689e 5768 fi
a243b558 5769 rm -rf conftest*
9c60689e 5770fi
a243b558
JF
5771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5772$as_echo "$lt_cv_nm_interface" >&6; }
5773
5774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5775$as_echo_n "checking whether ln -s works... " >&6; }
5776LN_S=$as_ln_s
5777if test "$LN_S" = "ln -s"; then
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5779$as_echo "yes" >&6; }
9c60689e 5780else
a243b558
JF
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5782$as_echo "no, using $LN_S" >&6; }
9c60689e
DWT
5783fi
5784
a243b558
JF
5785# find the maximum length of command line arguments
5786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5787$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5788if ${lt_cv_sys_max_cmd_len+:} false; then :
9c60689e
DWT
5789 $as_echo_n "(cached) " >&6
5790else
a243b558
JF
5791 i=0
5792 teststring="ABCD"
9c60689e 5793
a243b558
JF
5794 case $build_os in
5795 msdosdjgpp*)
5796 # On DJGPP, this test can blow up pretty badly due to problems in libc
5797 # (any single argument exceeding 2000 bytes causes a buffer overrun
5798 # during glob expansion). Even if it were fixed, the result of this
5799 # check would be larger than it should be.
5800 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5801 ;;
9c60689e 5802
a243b558
JF
5803 gnu*)
5804 # Under GNU Hurd, this test is not required because there is
5805 # no limit to the length of command line arguments.
5806 # Libtool will interpret -1 as no limit whatsoever
5807 lt_cv_sys_max_cmd_len=-1;
5808 ;;
9c60689e 5809
a243b558
JF
5810 cygwin* | mingw* | cegcc*)
5811 # On Win9x/ME, this test blows up -- it succeeds, but takes
5812 # about 5 minutes as the teststring grows exponentially.
5813 # Worse, since 9x/ME are not pre-emptively multitasking,
5814 # you end up with a "frozen" computer, even though with patience
5815 # the test eventually succeeds (with a max line length of 256k).
5816 # Instead, let's just punt: use the minimum linelength reported by
5817 # all of the supported platforms: 8192 (on NT/2K/XP).
5818 lt_cv_sys_max_cmd_len=8192;
5819 ;;
9c60689e 5820
a243b558
JF
5821 mint*)
5822 # On MiNT this can take a long time and run out of memory.
5823 lt_cv_sys_max_cmd_len=8192;
5824 ;;
9c60689e 5825
a243b558
JF
5826 amigaos*)
5827 # On AmigaOS with pdksh, this test takes hours, literally.
5828 # So we just punt and use a minimum line length of 8192.
5829 lt_cv_sys_max_cmd_len=8192;
5830 ;;
9c60689e 5831
a243b558
JF
5832 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5833 # This has been around since 386BSD, at least. Likely further.
5834 if test -x /sbin/sysctl; then
5835 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5836 elif test -x /usr/sbin/sysctl; then
5837 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5838 else
5839 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5840 fi
5841 # And add a safety zone
5842 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5843 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5844 ;;
9c60689e 5845
a243b558
JF
5846 interix*)
5847 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5848 lt_cv_sys_max_cmd_len=196608
5849 ;;
9c60689e 5850
a243b558
JF
5851 os2*)
5852 # The test takes a long time on OS/2.
5853 lt_cv_sys_max_cmd_len=8192
5854 ;;
9c60689e 5855
a243b558
JF
5856 osf*)
5857 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5858 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5859 # nice to cause kernel panics so lets avoid the loop below.
5860 # First set a reasonable default.
5861 lt_cv_sys_max_cmd_len=16384
5862 #
5863 if test -x /sbin/sysconfig; then
5864 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5865 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5866 esac
5867 fi
5868 ;;
5869 sco3.2v5*)
5870 lt_cv_sys_max_cmd_len=102400
5871 ;;
5872 sysv5* | sco5v6* | sysv4.2uw2*)
5873 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5874 if test -n "$kargmax"; then
5875 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5876 else
5877 lt_cv_sys_max_cmd_len=32768
5878 fi
9c60689e
DWT
5879 ;;
5880 *)
a243b558
JF
5881 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5882 if test -n "$lt_cv_sys_max_cmd_len"; then
5883 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5884 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5885 else
5886 # Make teststring a little bigger before we do anything with it.
5887 # a 1K string should be a reasonable start.
5888 for i in 1 2 3 4 5 6 7 8 ; do
5889 teststring=$teststring$teststring
5890 done
5891 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5892 # If test is not a shell built-in, we'll probably end up computing a
5893 # maximum length that is only half of the actual maximum length, but
5894 # we can't tell.
5895 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5896 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5897 test $i != 17 # 1/2 MB should be enough
5898 do
5899 i=`expr $i + 1`
5900 teststring=$teststring$teststring
5901 done
5902 # Only check the string length outside the loop.
5903 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5904 teststring=
5905 # Add a significant safety factor because C++ compilers can tack on
5906 # massive amounts of additional arguments before passing them to the
5907 # linker. It appears as though 1/2 is a usable value.
5908 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5909 fi
9c60689e
DWT
5910 ;;
5911 esac
ee134472 5912
a243b558 5913fi
ee134472 5914
a243b558
JF
5915if test -n $lt_cv_sys_max_cmd_len ; then
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5917$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5918else
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5920$as_echo "none" >&6; }
5921fi
5922max_cmd_len=$lt_cv_sys_max_cmd_len
ee134472
JF
5923
5924
9c60689e
DWT
5925
5926
5927
5928
a243b558
JF
5929: ${CP="cp -f"}
5930: ${MV="mv -f"}
5931: ${RM="rm -f"}
9c60689e 5932
a243b558
JF
5933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5934$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5935# Try some XSI features
5936xsi_shell=no
5937( _lt_dummy="a/b/c"
5938 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5939 = c,a/b,b/c, \
5940 && eval 'test $(( 1 + 1 )) -eq 2 \
5941 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5942 && xsi_shell=yes
5943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5944$as_echo "$xsi_shell" >&6; }
9c60689e
DWT
5945
5946
a243b558
JF
5947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5948$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5949lt_shell_append=no
5950( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5951 >/dev/null 2>&1 \
5952 && lt_shell_append=yes
5953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5954$as_echo "$lt_shell_append" >&6; }
9c60689e
DWT
5955
5956
a243b558
JF
5957if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5958 lt_unset=unset
5959else
5960 lt_unset=false
5961fi
9c60689e
DWT
5962
5963
5964
5965
5966
a243b558
JF
5967# test EBCDIC or ASCII
5968case `echo X|tr X '\101'` in
5969 A) # ASCII based system
5970 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5971 lt_SP2NL='tr \040 \012'
5972 lt_NL2SP='tr \015\012 \040\040'
5973 ;;
5974 *) # EBCDIC based system
5975 lt_SP2NL='tr \100 \n'
5976 lt_NL2SP='tr \r\n \100\100'
5977 ;;
5978esac
9c60689e
DWT
5979
5980
5981
5982
5983
5984
5985
5986
5987
a243b558
JF
5988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5989$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5990if ${lt_cv_to_host_file_cmd+:} false; then :
5991 $as_echo_n "(cached) " >&6
5992else
5993 case $host in
5994 *-*-mingw* )
5995 case $build in
5996 *-*-mingw* ) # actually msys
5997 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5998 ;;
5999 *-*-cygwin* )
6000 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6001 ;;
6002 * ) # otherwise, assume *nix
6003 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6004 ;;
6005 esac
6006 ;;
6007 *-*-cygwin* )
6008 case $build in
6009 *-*-mingw* ) # actually msys
6010 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6011 ;;
6012 *-*-cygwin* )
6013 lt_cv_to_host_file_cmd=func_convert_file_noop
6014 ;;
6015 * ) # otherwise, assume *nix
6016 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6017 ;;
6018 esac
6019 ;;
6020 * ) # unhandled hosts (and "normal" native builds)
6021 lt_cv_to_host_file_cmd=func_convert_file_noop
6022 ;;
6023esac
9c60689e 6024
a243b558 6025fi
9c60689e 6026
a243b558
JF
6027to_host_file_cmd=$lt_cv_to_host_file_cmd
6028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6029$as_echo "$lt_cv_to_host_file_cmd" >&6; }
9c60689e
DWT
6030
6031
6032
6033
6034
a243b558
JF
6035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6036$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6037if ${lt_cv_to_tool_file_cmd+:} false; then :
6038 $as_echo_n "(cached) " >&6
6039else
6040 #assume ordinary cross tools, or native build.
6041lt_cv_to_tool_file_cmd=func_convert_file_noop
6042case $host in
6043 *-*-mingw* )
6044 case $build in
6045 *-*-mingw* ) # actually msys
6046 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6047 ;;
6048 esac
6049 ;;
6050esac
9c60689e 6051
a243b558 6052fi
9c60689e 6053
a243b558
JF
6054to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6056$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
9c60689e 6057
9c60689e 6058
9c60689e 6059
9c60689e
DWT
6060
6061
a243b558
JF
6062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6063$as_echo_n "checking for $LD option to reload object files... " >&6; }
6064if ${lt_cv_ld_reload_flag+:} false; then :
9c60689e
DWT
6065 $as_echo_n "(cached) " >&6
6066else
a243b558
JF
6067 lt_cv_ld_reload_flag='-r'
6068fi
6069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6070$as_echo "$lt_cv_ld_reload_flag" >&6; }
6071reload_flag=$lt_cv_ld_reload_flag
6072case $reload_flag in
6073"" | " "*) ;;
6074*) reload_flag=" $reload_flag" ;;
6075esac
6076reload_cmds='$LD$reload_flag -o $output$reload_objs'
9c60689e 6077case $host_os in
a243b558
JF
6078 cygwin* | mingw* | pw32* | cegcc*)
6079 if test "$GCC" != yes; then
6080 reload_cmds=false
6081 fi
6082 ;;
6083 darwin*)
6084 if test "$GCC" = yes; then
6085 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6086 else
6087 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6088 fi
6089 ;;
9c60689e
DWT
6090esac
6091
9c60689e 6092
9c60689e 6093
9c60689e 6094
9c60689e 6095
9c60689e 6096
9c60689e 6097
9c60689e 6098
9c60689e 6099
a243b558
JF
6100if test -n "$ac_tool_prefix"; then
6101 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6102set dummy ${ac_tool_prefix}objdump; ac_word=$2
6103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6104$as_echo_n "checking for $ac_word... " >&6; }
6105if ${ac_cv_prog_OBJDUMP+:} false; then :
6106 $as_echo_n "(cached) " >&6
6107else
6108 if test -n "$OBJDUMP"; then
6109 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6110else
6111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6112for as_dir in $PATH
6113do
6114 IFS=$as_save_IFS
6115 test -z "$as_dir" && as_dir=.
6116 for ac_exec_ext in '' $ac_executable_extensions; do
6117 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6118 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6120 break 2
6121 fi
6122done
6123 done
6124IFS=$as_save_IFS
9c60689e 6125
a243b558
JF
6126fi
6127fi
6128OBJDUMP=$ac_cv_prog_OBJDUMP
6129if test -n "$OBJDUMP"; then
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6131$as_echo "$OBJDUMP" >&6; }
6132else
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6134$as_echo "no" >&6; }
6135fi
9c60689e 6136
9c60689e 6137
a243b558
JF
6138fi
6139if test -z "$ac_cv_prog_OBJDUMP"; then
6140 ac_ct_OBJDUMP=$OBJDUMP
6141 # Extract the first word of "objdump", so it can be a program name with args.
6142set dummy objdump; ac_word=$2
6143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6144$as_echo_n "checking for $ac_word... " >&6; }
6145if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6146 $as_echo_n "(cached) " >&6
6147else
6148 if test -n "$ac_ct_OBJDUMP"; then
6149 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6150else
6151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6152for as_dir in $PATH
6153do
6154 IFS=$as_save_IFS
6155 test -z "$as_dir" && as_dir=.
6156 for ac_exec_ext in '' $ac_executable_extensions; do
6157 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6158 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6160 break 2
9c60689e
DWT
6161 fi
6162done
a243b558
JF
6163 done
6164IFS=$as_save_IFS
9c60689e
DWT
6165
6166fi
9c60689e 6167fi
a243b558
JF
6168ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6169if test -n "$ac_ct_OBJDUMP"; then
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6171$as_echo "$ac_ct_OBJDUMP" >&6; }
9c60689e 6172else
a243b558
JF
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6174$as_echo "no" >&6; }
9c60689e
DWT
6175fi
6176
a243b558
JF
6177 if test "x$ac_ct_OBJDUMP" = x; then
6178 OBJDUMP="false"
6179 else
6180 case $cross_compiling:$ac_tool_warned in
6181yes:)
6182{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6183$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6184ac_tool_warned=yes ;;
6185esac
6186 OBJDUMP=$ac_ct_OBJDUMP
6187 fi
6188else
6189 OBJDUMP="$ac_cv_prog_OBJDUMP"
ee134472
JF
6190fi
6191
a243b558 6192test -z "$OBJDUMP" && OBJDUMP=objdump
ee134472
JF
6193
6194
6195
6196
6197
6198
6199
6200
6201
a243b558
JF
6202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6203$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6204if ${lt_cv_deplibs_check_method+:} false; then :
6205 $as_echo_n "(cached) " >&6
6206else
6207 lt_cv_file_magic_cmd='$MAGIC_CMD'
6208lt_cv_file_magic_test_file=
6209lt_cv_deplibs_check_method='unknown'
6210# Need to set the preceding variable on all platforms that support
6211# interlibrary dependencies.
6212# 'none' -- dependencies not supported.
6213# `unknown' -- same as none, but documents that we really don't know.
6214# 'pass_all' -- all dependencies passed with no checks.
6215# 'test_compile' -- check by making test program.
6216# 'file_magic [[regex]]' -- check by looking for files in library path
6217# which responds to the $file_magic_cmd with a given extended regex.
6218# If you have `file' or equivalent on your system and you're not sure
6219# whether `pass_all' will *always* work, you probably want this one.
9c60689e 6220
a243b558
JF
6221case $host_os in
6222aix[4-9]*)
6223 lt_cv_deplibs_check_method=pass_all
6224 ;;
9c60689e 6225
a243b558
JF
6226beos*)
6227 lt_cv_deplibs_check_method=pass_all
6228 ;;
9c60689e 6229
a243b558
JF
6230bsdi[45]*)
6231 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6232 lt_cv_file_magic_cmd='/usr/bin/file -L'
6233 lt_cv_file_magic_test_file=/shlib/libc.so
6234 ;;
9c60689e 6235
a243b558
JF
6236cygwin*)
6237 # func_win32_libid is a shell function defined in ltmain.sh
6238 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6239 lt_cv_file_magic_cmd='func_win32_libid'
6240 ;;
9c60689e 6241
a243b558
JF
6242mingw* | pw32*)
6243 # Base MSYS/MinGW do not provide the 'file' command needed by
6244 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6245 # unless we find 'file', for example because we are cross-compiling.
6246 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6247 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6248 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6249 lt_cv_file_magic_cmd='func_win32_libid'
6250 else
6251 # Keep this pattern in sync with the one in func_win32_libid.
6252 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6253 lt_cv_file_magic_cmd='$OBJDUMP -f'
6254 fi
6255 ;;
9c60689e 6256
a243b558
JF
6257cegcc*)
6258 # use the weaker test based on 'objdump'. See mingw*.
6259 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6260 lt_cv_file_magic_cmd='$OBJDUMP -f'
6261 ;;
9c60689e 6262
a243b558
JF
6263darwin* | rhapsody*)
6264 lt_cv_deplibs_check_method=pass_all
6265 ;;
9c60689e 6266
a243b558
JF
6267freebsd* | dragonfly*)
6268 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6269 case $host_cpu in
6270 i*86 )
6271 # Not sure whether the presence of OpenBSD here was a mistake.
6272 # Let's accept both of them until this is cleared up.
6273 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6274 lt_cv_file_magic_cmd=/usr/bin/file
6275 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6276 ;;
6277 esac
6278 else
6279 lt_cv_deplibs_check_method=pass_all
6280 fi
6281 ;;
9c60689e 6282
a243b558
JF
6283gnu*)
6284 lt_cv_deplibs_check_method=pass_all
6285 ;;
9c60689e 6286
a243b558
JF
6287haiku*)
6288 lt_cv_deplibs_check_method=pass_all
6289 ;;
9c60689e 6290
a243b558
JF
6291hpux10.20* | hpux11*)
6292 lt_cv_file_magic_cmd=/usr/bin/file
6293 case $host_cpu in
6294 ia64*)
6295 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6296 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6297 ;;
6298 hppa*64*)
6299 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]'
6300 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6301 ;;
6302 *)
6303 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6304 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6305 ;;
6306 esac
6307 ;;
9c60689e 6308
a243b558
JF
6309interix[3-9]*)
6310 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6311 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6312 ;;
9c60689e 6313
a243b558
JF
6314irix5* | irix6* | nonstopux*)
6315 case $LD in
6316 *-32|*"-32 ") libmagic=32-bit;;
6317 *-n32|*"-n32 ") libmagic=N32;;
6318 *-64|*"-64 ") libmagic=64-bit;;
6319 *) libmagic=never-match;;
6320 esac
6321 lt_cv_deplibs_check_method=pass_all
6322 ;;
9c60689e 6323
a243b558
JF
6324# This must be glibc/ELF.
6325linux* | k*bsd*-gnu | kopensolaris*-gnu)
6326 lt_cv_deplibs_check_method=pass_all
6327 ;;
9c60689e 6328
a243b558
JF
6329netbsd*)
6330 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6331 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6332 else
6333 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6334 fi
6335 ;;
9c60689e 6336
a243b558
JF
6337newos6*)
6338 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6339 lt_cv_file_magic_cmd=/usr/bin/file
6340 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6341 ;;
9c60689e 6342
a243b558
JF
6343*nto* | *qnx*)
6344 lt_cv_deplibs_check_method=pass_all
6345 ;;
9c60689e 6346
a243b558
JF
6347openbsd*)
6348 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6349 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6350 else
6351 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6352 fi
6353 ;;
9c60689e 6354
a243b558
JF
6355osf3* | osf4* | osf5*)
6356 lt_cv_deplibs_check_method=pass_all
6357 ;;
9c60689e 6358
a243b558
JF
6359rdos*)
6360 lt_cv_deplibs_check_method=pass_all
9c60689e 6361 ;;
a243b558
JF
6362
6363solaris*)
6364 lt_cv_deplibs_check_method=pass_all
9c60689e
DWT
6365 ;;
6366
a243b558
JF
6367sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6368 lt_cv_deplibs_check_method=pass_all
9c60689e
DWT
6369 ;;
6370
a243b558
JF
6371sysv4 | sysv4.3*)
6372 case $host_vendor in
6373 motorola)
6374 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]'
6375 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6376 ;;
6377 ncr)
6378 lt_cv_deplibs_check_method=pass_all
6379 ;;
6380 sequent)
6381 lt_cv_file_magic_cmd='/bin/file'
6382 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6383 ;;
6384 sni)
6385 lt_cv_file_magic_cmd='/bin/file'
6386 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6387 lt_cv_file_magic_test_file=/lib/libc.so
6388 ;;
6389 siemens)
6390 lt_cv_deplibs_check_method=pass_all
6391 ;;
6392 pc)
6393 lt_cv_deplibs_check_method=pass_all
6394 ;;
6395 esac
6396 ;;
9c60689e 6397
a243b558
JF
6398tpf*)
6399 lt_cv_deplibs_check_method=pass_all
6400 ;;
6401esac
9c60689e 6402
a243b558
JF
6403fi
6404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6405$as_echo "$lt_cv_deplibs_check_method" >&6; }
9c60689e 6406
a243b558
JF
6407file_magic_glob=
6408want_nocaseglob=no
6409if test "$build" = "$host"; then
6410 case $host_os in
6411 mingw* | pw32*)
6412 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6413 want_nocaseglob=yes
6414 else
6415 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6416 fi
6417 ;;
6418 esac
9c60689e 6419fi
9c60689e 6420
a243b558
JF
6421file_magic_cmd=$lt_cv_file_magic_cmd
6422deplibs_check_method=$lt_cv_deplibs_check_method
6423test -z "$deplibs_check_method" && deplibs_check_method=unknown
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
9c60689e 6444
9c60689e 6445
ee134472 6446if test -n "$ac_tool_prefix"; then
a243b558
JF
6447 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6448set dummy ${ac_tool_prefix}dlltool; ac_word=$2
ee134472
JF
6449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6450$as_echo_n "checking for $ac_word... " >&6; }
a243b558 6451if ${ac_cv_prog_DLLTOOL+:} false; then :
ee134472
JF
6452 $as_echo_n "(cached) " >&6
6453else
a243b558
JF
6454 if test -n "$DLLTOOL"; then
6455 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
ee134472
JF
6456else
6457as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6458for as_dir in $PATH
6459do
6460 IFS=$as_save_IFS
6461 test -z "$as_dir" && as_dir=.
6462 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 6463 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 6464 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
ee134472
JF
6465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6466 break 2
6467 fi
6468done
6469 done
6470IFS=$as_save_IFS
6471
6472fi
6473fi
a243b558
JF
6474DLLTOOL=$ac_cv_prog_DLLTOOL
6475if test -n "$DLLTOOL"; then
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6477$as_echo "$DLLTOOL" >&6; }
ee134472
JF
6478else
6479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6480$as_echo "no" >&6; }
6481fi
6482
6483
6484fi
a243b558
JF
6485if test -z "$ac_cv_prog_DLLTOOL"; then
6486 ac_ct_DLLTOOL=$DLLTOOL
6487 # Extract the first word of "dlltool", so it can be a program name with args.
6488set dummy dlltool; ac_word=$2
ee134472
JF
6489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6490$as_echo_n "checking for $ac_word... " >&6; }
a243b558 6491if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
ee134472
JF
6492 $as_echo_n "(cached) " >&6
6493else
a243b558
JF
6494 if test -n "$ac_ct_DLLTOOL"; then
6495 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
ee134472
JF
6496else
6497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6498for as_dir in $PATH
6499do
6500 IFS=$as_save_IFS
6501 test -z "$as_dir" && as_dir=.
6502 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 6503 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 6504 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
ee134472
JF
6505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6506 break 2
6507 fi
6508done
6509 done
6510IFS=$as_save_IFS
6511
6512fi
6513fi
a243b558
JF
6514ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6515if test -n "$ac_ct_DLLTOOL"; then
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6517$as_echo "$ac_ct_DLLTOOL" >&6; }
ee134472
JF
6518else
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6520$as_echo "no" >&6; }
6521fi
6522
a243b558
JF
6523 if test "x$ac_ct_DLLTOOL" = x; then
6524 DLLTOOL="false"
ee134472
JF
6525 else
6526 case $cross_compiling:$ac_tool_warned in
6527yes:)
6528{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6529$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6530ac_tool_warned=yes ;;
6531esac
a243b558 6532 DLLTOOL=$ac_ct_DLLTOOL
ee134472
JF
6533 fi
6534else
a243b558 6535 DLLTOOL="$ac_cv_prog_DLLTOOL"
ee134472
JF
6536fi
6537
a243b558
JF
6538test -z "$DLLTOOL" && DLLTOOL=dlltool
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6550$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6551if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
ee134472
JF
6552 $as_echo_n "(cached) " >&6
6553else
a243b558
JF
6554 lt_cv_sharedlib_from_linklib_cmd='unknown'
6555
6556case $host_os in
6557cygwin* | mingw* | pw32* | cegcc*)
6558 # two different shell functions defined in ltmain.sh
6559 # decide which to use based on capabilities of $DLLTOOL
6560 case `$DLLTOOL --help 2>&1` in
6561 *--identify-strict*)
6562 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6563 ;;
6564 *)
6565 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6566 ;;
6567 esac
6568 ;;
6569*)
6570 # fallback: assume linklib IS sharedlib
6571 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6572 ;;
6573esac
6574
ee134472 6575fi
a243b558
JF
6576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6577$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6578sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6579test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
ee134472
JF
6580
6581
6582
6583
6584
9c60689e 6585
a243b558
JF
6586
6587if test -n "$ac_tool_prefix"; then
6588 for ac_prog in ar
6589 do
6590 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6591set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9c60689e
DWT
6592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6593$as_echo_n "checking for $ac_word... " >&6; }
a243b558 6594if ${ac_cv_prog_AR+:} false; then :
9c60689e
DWT
6595 $as_echo_n "(cached) " >&6
6596else
a243b558
JF
6597 if test -n "$AR"; then
6598 ac_cv_prog_AR="$AR" # Let the user override the test.
9c60689e
DWT
6599else
6600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6601for as_dir in $PATH
6602do
6603 IFS=$as_save_IFS
6604 test -z "$as_dir" && as_dir=.
6605 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 6606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 6607 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
9c60689e
DWT
6608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6609 break 2
6610 fi
6611done
6612 done
6613IFS=$as_save_IFS
6614
6615fi
6616fi
a243b558
JF
6617AR=$ac_cv_prog_AR
6618if test -n "$AR"; then
6619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6620$as_echo "$AR" >&6; }
9c60689e
DWT
6621else
6622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6623$as_echo "no" >&6; }
6624fi
6625
6626
a243b558
JF
6627 test -n "$AR" && break
6628 done
9c60689e 6629fi
a243b558
JF
6630if test -z "$AR"; then
6631 ac_ct_AR=$AR
6632 for ac_prog in ar
6633do
6634 # Extract the first word of "$ac_prog", so it can be a program name with args.
6635set dummy $ac_prog; ac_word=$2
9c60689e
DWT
6636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6637$as_echo_n "checking for $ac_word... " >&6; }
a243b558 6638if ${ac_cv_prog_ac_ct_AR+:} false; then :
9c60689e
DWT
6639 $as_echo_n "(cached) " >&6
6640else
a243b558
JF
6641 if test -n "$ac_ct_AR"; then
6642 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9c60689e
DWT
6643else
6644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6645for as_dir in $PATH
6646do
6647 IFS=$as_save_IFS
6648 test -z "$as_dir" && as_dir=.
6649 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 6650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 6651 ac_cv_prog_ac_ct_AR="$ac_prog"
9c60689e
DWT
6652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6653 break 2
6654 fi
6655done
6656 done
6657IFS=$as_save_IFS
6658
6659fi
6660fi
a243b558
JF
6661ac_ct_AR=$ac_cv_prog_ac_ct_AR
6662if test -n "$ac_ct_AR"; then
6663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6664$as_echo "$ac_ct_AR" >&6; }
9c60689e
DWT
6665else
6666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6667$as_echo "no" >&6; }
6668fi
6669
a243b558
JF
6670
6671 test -n "$ac_ct_AR" && break
6672done
6673
6674 if test "x$ac_ct_AR" = x; then
6675 AR="false"
9c60689e
DWT
6676 else
6677 case $cross_compiling:$ac_tool_warned in
6678yes:)
6679{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6680$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6681ac_tool_warned=yes ;;
6682esac
a243b558 6683 AR=$ac_ct_AR
9c60689e 6684 fi
a243b558
JF
6685fi
6686
6687: ${AR=ar}
6688: ${AR_FLAGS=cru}
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6701$as_echo_n "checking for archiver @FILE support... " >&6; }
6702if ${lt_cv_ar_at_file+:} false; then :
6703 $as_echo_n "(cached) " >&6
9c60689e 6704else
a243b558
JF
6705 lt_cv_ar_at_file=no
6706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6707/* end confdefs.h. */
6708
6709int
6710main ()
6711{
6712
6713 ;
6714 return 0;
6715}
6716_ACEOF
6717if ac_fn_c_try_compile "$LINENO"; then :
6718 echo conftest.$ac_objext > conftest.lst
6719 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6720 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6721 (eval $lt_ar_try) 2>&5
6722 ac_status=$?
6723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6724 test $ac_status = 0; }
6725 if test "$ac_status" -eq 0; then
6726 # Ensure the archiver fails upon bogus file names.
6727 rm -f conftest.$ac_objext libconftest.a
6728 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6729 (eval $lt_ar_try) 2>&5
6730 ac_status=$?
6731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6732 test $ac_status = 0; }
6733 if test "$ac_status" -ne 0; then
6734 lt_cv_ar_at_file=@
6735 fi
6736 fi
6737 rm -f conftest.* libconftest.a
6738
9c60689e 6739fi
a243b558 6740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9c60689e 6741
a243b558
JF
6742fi
6743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6744$as_echo "$lt_cv_ar_at_file" >&6; }
6745
6746if test "x$lt_cv_ar_at_file" = xno; then
6747 archiver_list_spec=
6748else
6749 archiver_list_spec=$lt_cv_ar_at_file
6750fi
6751
6752
6753
6754
6755
6756
6757
6758if test -n "$ac_tool_prefix"; then
6759 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6760set dummy ${ac_tool_prefix}strip; ac_word=$2
9c60689e
DWT
6761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6762$as_echo_n "checking for $ac_word... " >&6; }
a243b558 6763if ${ac_cv_prog_STRIP+:} false; then :
9c60689e
DWT
6764 $as_echo_n "(cached) " >&6
6765else
a243b558
JF
6766 if test -n "$STRIP"; then
6767 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9c60689e
DWT
6768else
6769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6770for as_dir in $PATH
6771do
6772 IFS=$as_save_IFS
6773 test -z "$as_dir" && as_dir=.
6774 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 6775 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 6776 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9c60689e
DWT
6777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6778 break 2
6779 fi
6780done
6781 done
6782IFS=$as_save_IFS
6783
6784fi
6785fi
a243b558
JF
6786STRIP=$ac_cv_prog_STRIP
6787if test -n "$STRIP"; then
6788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6789$as_echo "$STRIP" >&6; }
9c60689e
DWT
6790else
6791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6792$as_echo "no" >&6; }
6793fi
6794
6795
6796fi
a243b558
JF
6797if test -z "$ac_cv_prog_STRIP"; then
6798 ac_ct_STRIP=$STRIP
6799 # Extract the first word of "strip", so it can be a program name with args.
6800set dummy strip; ac_word=$2
9c60689e
DWT
6801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6802$as_echo_n "checking for $ac_word... " >&6; }
a243b558 6803if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
9c60689e
DWT
6804 $as_echo_n "(cached) " >&6
6805else
a243b558
JF
6806 if test -n "$ac_ct_STRIP"; then
6807 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9c60689e
DWT
6808else
6809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6810for as_dir in $PATH
6811do
6812 IFS=$as_save_IFS
6813 test -z "$as_dir" && as_dir=.
6814 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 6815 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 6816 ac_cv_prog_ac_ct_STRIP="strip"
9c60689e
DWT
6817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6818 break 2
6819 fi
6820done
6821 done
6822IFS=$as_save_IFS
6823
6824fi
6825fi
a243b558
JF
6826ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6827if test -n "$ac_ct_STRIP"; then
6828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6829$as_echo "$ac_ct_STRIP" >&6; }
9c60689e
DWT
6830else
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6832$as_echo "no" >&6; }
6833fi
6834
a243b558
JF
6835 if test "x$ac_ct_STRIP" = x; then
6836 STRIP=":"
9c60689e
DWT
6837 else
6838 case $cross_compiling:$ac_tool_warned in
6839yes:)
6840{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6841$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6842ac_tool_warned=yes ;;
6843esac
a243b558 6844 STRIP=$ac_ct_STRIP
9c60689e
DWT
6845 fi
6846else
a243b558 6847 STRIP="$ac_cv_prog_STRIP"
9c60689e
DWT
6848fi
6849
a243b558
JF
6850test -z "$STRIP" && STRIP=:
6851
6852
6853
6854
6855
6856
6857if test -n "$ac_tool_prefix"; then
6858 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6859set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9c60689e
DWT
6860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6861$as_echo_n "checking for $ac_word... " >&6; }
a243b558 6862if ${ac_cv_prog_RANLIB+:} false; then :
9c60689e
DWT
6863 $as_echo_n "(cached) " >&6
6864else
a243b558
JF
6865 if test -n "$RANLIB"; then
6866 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9c60689e
DWT
6867else
6868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6869for as_dir in $PATH
6870do
6871 IFS=$as_save_IFS
6872 test -z "$as_dir" && as_dir=.
6873 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 6874 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 6875 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9c60689e
DWT
6876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6877 break 2
6878 fi
6879done
6880 done
6881IFS=$as_save_IFS
6882
6883fi
6884fi
a243b558
JF
6885RANLIB=$ac_cv_prog_RANLIB
6886if test -n "$RANLIB"; then
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6888$as_echo "$RANLIB" >&6; }
9c60689e
DWT
6889else
6890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6891$as_echo "no" >&6; }
6892fi
6893
6894
6895fi
a243b558
JF
6896if test -z "$ac_cv_prog_RANLIB"; then
6897 ac_ct_RANLIB=$RANLIB
6898 # Extract the first word of "ranlib", so it can be a program name with args.
6899set dummy ranlib; ac_word=$2
9c60689e
DWT
6900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6901$as_echo_n "checking for $ac_word... " >&6; }
a243b558 6902if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
9c60689e
DWT
6903 $as_echo_n "(cached) " >&6
6904else
a243b558
JF
6905 if test -n "$ac_ct_RANLIB"; then
6906 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9c60689e
DWT
6907else
6908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6909for as_dir in $PATH
6910do
6911 IFS=$as_save_IFS
6912 test -z "$as_dir" && as_dir=.
6913 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 6914 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 6915 ac_cv_prog_ac_ct_RANLIB="ranlib"
9c60689e
DWT
6916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6917 break 2
6918 fi
6919done
6920 done
6921IFS=$as_save_IFS
6922
6923fi
6924fi
a243b558
JF
6925ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6926if test -n "$ac_ct_RANLIB"; then
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6928$as_echo "$ac_ct_RANLIB" >&6; }
9c60689e
DWT
6929else
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6931$as_echo "no" >&6; }
6932fi
6933
a243b558
JF
6934 if test "x$ac_ct_RANLIB" = x; then
6935 RANLIB=":"
9c60689e
DWT
6936 else
6937 case $cross_compiling:$ac_tool_warned in
6938yes:)
6939{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6940$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6941ac_tool_warned=yes ;;
6942esac
a243b558 6943 RANLIB=$ac_ct_RANLIB
9c60689e
DWT
6944 fi
6945else
a243b558 6946 RANLIB="$ac_cv_prog_RANLIB"
9c60689e
DWT
6947fi
6948
a243b558
JF
6949test -z "$RANLIB" && RANLIB=:
6950
6951
9c60689e 6952
9c60689e
DWT
6953
6954
a243b558
JF
6955
6956# Determine commands to create old-style static archives.
6957old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6958old_postinstall_cmds='chmod 644 $oldlib'
6959old_postuninstall_cmds=
6960
6961if test -n "$RANLIB"; then
6962 case $host_os in
6963 openbsd*)
6964 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6965 ;;
6966 *)
6967 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6968 ;;
6969 esac
6970 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
9c60689e
DWT
6971fi
6972
a243b558
JF
6973case $host_os in
6974 darwin*)
6975 lock_old_archive_extraction=yes ;;
6976 *)
6977 lock_old_archive_extraction=no ;;
9c60689e 6978esac
9c60689e 6979
9c60689e 6980
9c60689e
DWT
6981
6982
9c60689e 6983
9c60689e 6984
9c60689e
DWT
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
53ba6704 7012
9c60689e 7013
9c60689e 7014
9c60689e 7015
53ba6704 7016
a243b558
JF
7017
7018# If no C compiler was specified, use CC.
7019LTCC=${LTCC-"$CC"}
7020
7021# If no C compiler flags were specified, use CFLAGS.
7022LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7023
7024# Allow CC to be a program name with arguments.
7025compiler=$CC
7026
7027
7028# Check for command to grab the raw symbol name followed by C symbol from nm.
7029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7030$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7031if ${lt_cv_sys_global_symbol_pipe+:} false; then :
ee134472
JF
7032 $as_echo_n "(cached) " >&6
7033else
ee134472 7034
a243b558
JF
7035# These are sane defaults that work on at least a few old systems.
7036# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9c60689e 7037
a243b558
JF
7038# Character class describing NM global symbol codes.
7039symcode='[BCDEGRST]'
9c60689e 7040
a243b558
JF
7041# Regexp to match symbols that can be accessed directly from C.
7042sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9c60689e 7043
a243b558
JF
7044# Define system-specific variables.
7045case $host_os in
7046aix*)
7047 symcode='[BCDT]'
7048 ;;
7049cygwin* | mingw* | pw32* | cegcc*)
7050 symcode='[ABCDGISTW]'
7051 ;;
7052hpux*)
7053 if test "$host_cpu" = ia64; then
7054 symcode='[ABCDEGRST]'
7055 fi
7056 ;;
7057irix* | nonstopux*)
7058 symcode='[BCDEGRST]'
7059 ;;
7060osf*)
7061 symcode='[BCDEGQRST]'
7062 ;;
7063solaris*)
7064 symcode='[BDRT]'
7065 ;;
7066sco3.2v5*)
7067 symcode='[DT]'
7068 ;;
7069sysv4.2uw2*)
7070 symcode='[DT]'
7071 ;;
7072sysv5* | sco5v6* | unixware* | OpenUNIX*)
7073 symcode='[ABDT]'
7074 ;;
7075sysv4)
7076 symcode='[DFNSTU]'
7077 ;;
7078esac
9c60689e 7079
a243b558
JF
7080# If we're using GNU nm, then use its standard symbol codes.
7081case `$NM -V 2>&1` in
7082*GNU* | *'with BFD'*)
7083 symcode='[ABCDGIRSTW]' ;;
7084esac
9c60689e 7085
a243b558
JF
7086# Transform an extracted symbol line into a proper C declaration.
7087# Some systems (esp. on ia64) link data and code symbols differently,
7088# so use this general approach.
7089lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9c60689e 7090
a243b558
JF
7091# Transform an extracted symbol line into symbol name and symbol address
7092lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7093lt_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 7094
a243b558
JF
7095# Handle CRLF in mingw tool chain
7096opt_cr=
7097case $build_os in
7098mingw*)
7099 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7100 ;;
7101esac
9c60689e 7102
a243b558
JF
7103# Try without a prefix underscore, then with it.
7104for ac_symprfx in "" "_"; do
9c60689e 7105
a243b558
JF
7106 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7107 symxfrm="\\1 $ac_symprfx\\2 \\2"
9c60689e 7108
a243b558
JF
7109 # Write the raw and C identifiers.
7110 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7111 # Fake it for dumpbin and say T for any non-static function
7112 # and D for any global variable.
7113 # Also find C++ and __fastcall symbols from MSVC++,
7114 # which start with @ or ?.
7115 lt_cv_sys_global_symbol_pipe="$AWK '"\
7116" {last_section=section; section=\$ 3};"\
7117" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7118" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7119" \$ 0!~/External *\|/{next};"\
7120" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7121" {if(hide[section]) next};"\
7122" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7123" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7124" s[1]~/^[@?]/{print s[1], s[1]; next};"\
7125" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7126" ' prfx=^$ac_symprfx"
7127 else
7128 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7129 fi
7130 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
9c60689e 7131
a243b558
JF
7132 # Check to see that the pipe works correctly.
7133 pipe_works=no
9c60689e 7134
a243b558
JF
7135 rm -rf conftest*
7136 cat > conftest.$ac_ext <<_LT_EOF
7137#ifdef __cplusplus
7138extern "C" {
7139#endif
7140char nm_test_var;
7141void nm_test_func(void);
7142void nm_test_func(void){}
7143#ifdef __cplusplus
7144}
7145#endif
7146int main(){nm_test_var='a';nm_test_func();return(0);}
7147_LT_EOF
9c60689e 7148
a243b558
JF
7149 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7150 (eval $ac_compile) 2>&5
7151 ac_status=$?
7152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7153 test $ac_status = 0; }; then
7154 # Now try to grab the symbols.
7155 nlist=conftest.nm
7156 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7157 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7158 ac_status=$?
7159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7160 test $ac_status = 0; } && test -s "$nlist"; then
7161 # Try sorting and uniquifying the output.
7162 if sort "$nlist" | uniq > "$nlist"T; then
7163 mv -f "$nlist"T "$nlist"
7164 else
7165 rm -f "$nlist"T
7166 fi
9c60689e 7167
a243b558
JF
7168 # Make sure that we snagged all the symbols we need.
7169 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7170 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7171 cat <<_LT_EOF > conftest.$ac_ext
7172/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7173#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7174/* DATA imports from DLLs on WIN32 con't be const, because runtime
7175 relocations are performed -- see ld's documentation on pseudo-relocs. */
7176# define LT_DLSYM_CONST
7177#elif defined(__osf__)
7178/* This system does not cope well with relocations in const data. */
7179# define LT_DLSYM_CONST
7180#else
7181# define LT_DLSYM_CONST const
7182#endif
9c60689e 7183
a243b558
JF
7184#ifdef __cplusplus
7185extern "C" {
7186#endif
9c60689e 7187
a243b558
JF
7188_LT_EOF
7189 # Now generate the symbol file.
7190 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9c60689e 7191
a243b558 7192 cat <<_LT_EOF >> conftest.$ac_ext
9c60689e 7193
a243b558
JF
7194/* The mapping between symbol names and symbols. */
7195LT_DLSYM_CONST struct {
7196 const char *name;
7197 void *address;
7198}
7199lt__PROGRAM__LTX_preloaded_symbols[] =
7200{
7201 { "@PROGRAM@", (void *) 0 },
7202_LT_EOF
7203 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7204 cat <<\_LT_EOF >> conftest.$ac_ext
7205 {0, (void *) 0}
7206};
9c60689e 7207
a243b558
JF
7208/* This works around a problem in FreeBSD linker */
7209#ifdef FREEBSD_WORKAROUND
7210static const void *lt_preloaded_setup() {
7211 return lt__PROGRAM__LTX_preloaded_symbols;
7212}
7213#endif
9c60689e 7214
a243b558
JF
7215#ifdef __cplusplus
7216}
7217#endif
7218_LT_EOF
7219 # Now try linking the two files.
7220 mv conftest.$ac_objext conftstm.$ac_objext
7221 lt_globsym_save_LIBS=$LIBS
7222 lt_globsym_save_CFLAGS=$CFLAGS
7223 LIBS="conftstm.$ac_objext"
7224 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7225 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7226 (eval $ac_link) 2>&5
7227 ac_status=$?
7228 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7229 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7230 pipe_works=yes
7231 fi
7232 LIBS=$lt_globsym_save_LIBS
7233 CFLAGS=$lt_globsym_save_CFLAGS
7234 else
7235 echo "cannot find nm_test_func in $nlist" >&5
7236 fi
7237 else
7238 echo "cannot find nm_test_var in $nlist" >&5
7239 fi
7240 else
7241 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7242 fi
7243 else
7244 echo "$progname: failed program was:" >&5
7245 cat conftest.$ac_ext >&5
7246 fi
7247 rm -rf conftest* conftst*
9c60689e 7248
a243b558
JF
7249 # Do not use the global_symbol_pipe unless it works.
7250 if test "$pipe_works" = yes; then
7251 break
7252 else
7253 lt_cv_sys_global_symbol_pipe=
7254 fi
7255done
9c60689e 7256
9c60689e 7257fi
9c60689e 7258
a243b558
JF
7259if test -z "$lt_cv_sys_global_symbol_pipe"; then
7260 lt_cv_sys_global_symbol_to_cdecl=
9c60689e 7261fi
a243b558
JF
7262if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7264$as_echo "failed" >&6; }
9c60689e 7265else
a243b558
JF
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7267$as_echo "ok" >&6; }
9c60689e
DWT
7268fi
7269
a243b558
JF
7270# Response file support.
7271if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7272 nm_file_list_spec='@'
7273elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7274 nm_file_list_spec='@'
9c60689e 7275fi
9c60689e 7276
9c60689e 7277
9c60689e 7278
9c60689e 7279
9c60689e 7280
9c60689e
DWT
7281
7282
9c60689e 7283
9c60689e 7284
9c60689e
DWT
7285
7286
7287
ee134472
JF
7288
7289
9c60689e
DWT
7290
7291
7292
7293
7294
7295
7296
7297
7298
549f29b5 7299
549f29b5
DWT
7300
7301
549f29b5 7302
a243b558
JF
7303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7304$as_echo_n "checking for sysroot... " >&6; }
549f29b5 7305
a243b558
JF
7306# Check whether --with-sysroot was given.
7307if test "${with_sysroot+set}" = set; then :
7308 withval=$with_sysroot;
9c60689e 7309else
a243b558 7310 with_sysroot=no
9c60689e
DWT
7311fi
7312
7313
a243b558
JF
7314lt_sysroot=
7315case ${with_sysroot} in #(
7316 yes)
7317 if test "$GCC" = yes; then
7318 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7319 fi
7320 ;; #(
7321 /*)
7322 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7323 ;; #(
7324 no|'')
7325 ;; #(
7326 *)
7327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7328$as_echo "${with_sysroot}" >&6; }
7329 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7330 ;;
7331esac
9c60689e 7332
a243b558
JF
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7334$as_echo "${lt_sysroot:-no}" >&6; }
9c60689e
DWT
7335
7336
7337
7338
7339
a243b558
JF
7340# Check whether --enable-libtool-lock was given.
7341if test "${enable_libtool_lock+set}" = set; then :
7342 enableval=$enable_libtool_lock;
9c60689e
DWT
7343fi
7344
a243b558 7345test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9c60689e 7346
a243b558
JF
7347# Some flags need to be propagated to the compiler or linker for good
7348# libtool support.
7349case $host in
7350ia64-*-hpux*)
7351 # Find out which ABI we are using.
7352 echo 'int i;' > conftest.$ac_ext
7353 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7354 (eval $ac_compile) 2>&5
7355 ac_status=$?
7356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7357 test $ac_status = 0; }; then
7358 case `/usr/bin/file conftest.$ac_objext` in
7359 *ELF-32*)
7360 HPUX_IA64_MODE="32"
7361 ;;
7362 *ELF-64*)
7363 HPUX_IA64_MODE="64"
7364 ;;
7365 esac
7366 fi
7367 rm -rf conftest*
7368 ;;
7369*-*-irix6*)
7370 # Find out which ABI we are using.
7371 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7372 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7373 (eval $ac_compile) 2>&5
7374 ac_status=$?
7375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7376 test $ac_status = 0; }; then
7377 if test "$lt_cv_prog_gnu_ld" = yes; then
7378 case `/usr/bin/file conftest.$ac_objext` in
7379 *32-bit*)
7380 LD="${LD-ld} -melf32bsmip"
7381 ;;
7382 *N32*)
7383 LD="${LD-ld} -melf32bmipn32"
7384 ;;
7385 *64-bit*)
7386 LD="${LD-ld} -melf64bmip"
7387 ;;
7388 esac
7389 else
7390 case `/usr/bin/file conftest.$ac_objext` in
7391 *32-bit*)
7392 LD="${LD-ld} -32"
7393 ;;
7394 *N32*)
7395 LD="${LD-ld} -n32"
7396 ;;
7397 *64-bit*)
7398 LD="${LD-ld} -64"
7399 ;;
7400 esac
7401 fi
7402 fi
7403 rm -rf conftest*
7404 ;;
9c60689e 7405
a243b558
JF
7406x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7407s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7408 # Find out which ABI we are using.
7409 echo 'int i;' > conftest.$ac_ext
7410 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7411 (eval $ac_compile) 2>&5
7412 ac_status=$?
7413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7414 test $ac_status = 0; }; then
7415 case `/usr/bin/file conftest.o` in
7416 *32-bit*)
7417 case $host in
7418 x86_64-*kfreebsd*-gnu)
7419 LD="${LD-ld} -m elf_i386_fbsd"
7420 ;;
7421 x86_64-*linux*)
7422 LD="${LD-ld} -m elf_i386"
7423 ;;
7424 ppc64-*linux*|powerpc64-*linux*)
7425 LD="${LD-ld} -m elf32ppclinux"
7426 ;;
7427 s390x-*linux*)
7428 LD="${LD-ld} -m elf_s390"
7429 ;;
7430 sparc64-*linux*)
7431 LD="${LD-ld} -m elf32_sparc"
7432 ;;
7433 esac
7434 ;;
7435 *64-bit*)
7436 case $host in
7437 x86_64-*kfreebsd*-gnu)
7438 LD="${LD-ld} -m elf_x86_64_fbsd"
7439 ;;
7440 x86_64-*linux*)
7441 LD="${LD-ld} -m elf_x86_64"
7442 ;;
7443 ppc*-*linux*|powerpc*-*linux*)
7444 LD="${LD-ld} -m elf64ppc"
7445 ;;
7446 s390*-*linux*|s390*-*tpf*)
7447 LD="${LD-ld} -m elf64_s390"
7448 ;;
7449 sparc*-*linux*)
7450 LD="${LD-ld} -m elf64_sparc"
7451 ;;
7452 esac
7453 ;;
7454 esac
7455 fi
7456 rm -rf conftest*
7457 ;;
9c60689e 7458
a243b558
JF
7459*-*-sco3.2v5*)
7460 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7461 SAVE_CFLAGS="$CFLAGS"
7462 CFLAGS="$CFLAGS -belf"
7463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7464$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7465if ${lt_cv_cc_needs_belf+:} false; then :
7466 $as_echo_n "(cached) " >&6
7467else
7468 ac_ext=c
7469ac_cpp='$CPP $CPPFLAGS'
7470ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7471ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7472ac_compiler_gnu=$ac_cv_c_compiler_gnu
9c60689e 7473
a243b558
JF
7474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7475/* end confdefs.h. */
9c60689e 7476
a243b558
JF
7477int
7478main ()
7479{
9c60689e 7480
a243b558
JF
7481 ;
7482 return 0;
7483}
7484_ACEOF
7485if ac_fn_c_try_link "$LINENO"; then :
7486 lt_cv_cc_needs_belf=yes
9c60689e 7487else
a243b558 7488 lt_cv_cc_needs_belf=no
9c60689e 7489fi
a243b558
JF
7490rm -f core conftest.err conftest.$ac_objext \
7491 conftest$ac_exeext conftest.$ac_ext
7492 ac_ext=c
7493ac_cpp='$CPP $CPPFLAGS'
7494ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7495ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7496ac_compiler_gnu=$ac_cv_c_compiler_gnu
9c60689e 7497
a243b558
JF
7498fi
7499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7500$as_echo "$lt_cv_cc_needs_belf" >&6; }
7501 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7502 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7503 CFLAGS="$SAVE_CFLAGS"
7504 fi
7505 ;;
7506*-*solaris*)
7507 # Find out which ABI we are using.
7508 echo 'int i;' > conftest.$ac_ext
7509 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7510 (eval $ac_compile) 2>&5
7511 ac_status=$?
7512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7513 test $ac_status = 0; }; then
7514 case `/usr/bin/file conftest.o` in
7515 *64-bit*)
7516 case $lt_cv_prog_gnu_ld in
7517 yes*)
7518 case $host in
7519 i?86-*-solaris*)
7520 LD="${LD-ld} -m elf_x86_64"
7521 ;;
7522 sparc*-*-solaris*)
7523 LD="${LD-ld} -m elf64_sparc"
7524 ;;
7525 esac
7526 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7527 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7528 LD="${LD-ld}_sol2"
7529 fi
7530 ;;
7531 *)
7532 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7533 LD="${LD-ld} -64"
7534 fi
7535 ;;
7536 esac
7537 ;;
7538 esac
7539 fi
7540 rm -rf conftest*
7541 ;;
7542esac
9c60689e 7543
a243b558 7544need_locks="$enable_libtool_lock"
9c60689e 7545
a243b558
JF
7546if test -n "$ac_tool_prefix"; then
7547 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7548set dummy ${ac_tool_prefix}mt; ac_word=$2
7549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7550$as_echo_n "checking for $ac_word... " >&6; }
7551if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7552 $as_echo_n "(cached) " >&6
7553else
7554 if test -n "$MANIFEST_TOOL"; then
7555 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7556else
7557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7558for as_dir in $PATH
7559do
7560 IFS=$as_save_IFS
7561 test -z "$as_dir" && as_dir=.
7562 for ac_exec_ext in '' $ac_executable_extensions; do
7563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7564 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7566 break 2
7567 fi
7568done
7569 done
7570IFS=$as_save_IFS
9c60689e 7571
a243b558
JF
7572fi
7573fi
7574MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7575if test -n "$MANIFEST_TOOL"; then
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7577$as_echo "$MANIFEST_TOOL" >&6; }
7578else
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7580$as_echo "no" >&6; }
7581fi
9c60689e
DWT
7582
7583
a243b558
JF
7584fi
7585if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7586 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7587 # Extract the first word of "mt", so it can be a program name with args.
7588set dummy mt; ac_word=$2
7589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7590$as_echo_n "checking for $ac_word... " >&6; }
7591if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7592 $as_echo_n "(cached) " >&6
7593else
7594 if test -n "$ac_ct_MANIFEST_TOOL"; then
7595 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7596else
7597as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7598for as_dir in $PATH
7599do
7600 IFS=$as_save_IFS
7601 test -z "$as_dir" && as_dir=.
7602 for ac_exec_ext in '' $ac_executable_extensions; do
7603 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7604 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7606 break 2
7607 fi
7608done
7609 done
7610IFS=$as_save_IFS
9c60689e 7611
a243b558
JF
7612fi
7613fi
7614ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7615if test -n "$ac_ct_MANIFEST_TOOL"; then
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7617$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7618else
7619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7620$as_echo "no" >&6; }
7621fi
9c60689e 7622
a243b558
JF
7623 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7624 MANIFEST_TOOL=":"
7625 else
7626 case $cross_compiling:$ac_tool_warned in
7627yes:)
7628{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7629$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7630ac_tool_warned=yes ;;
7631esac
7632 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7633 fi
7634else
7635 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7636fi
9c60689e 7637
a243b558
JF
7638test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7640$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7641if ${lt_cv_path_mainfest_tool+:} false; then :
7642 $as_echo_n "(cached) " >&6
7643else
7644 lt_cv_path_mainfest_tool=no
7645 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7646 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7647 cat conftest.err >&5
7648 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7649 lt_cv_path_mainfest_tool=yes
7650 fi
7651 rm -rf conftest*
7652fi
7653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7654$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7655if test "x$lt_cv_path_mainfest_tool" != xyes; then
7656 MANIFEST_TOOL=:
7657fi
9c60689e
DWT
7658
7659
7660
7661
7662
7663
a243b558
JF
7664 case $host_os in
7665 rhapsody* | darwin*)
7666 if test -n "$ac_tool_prefix"; then
7667 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7668set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7670$as_echo_n "checking for $ac_word... " >&6; }
7671if ${ac_cv_prog_DSYMUTIL+:} false; then :
7672 $as_echo_n "(cached) " >&6
7673else
7674 if test -n "$DSYMUTIL"; then
7675 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7676else
7677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7678for as_dir in $PATH
7679do
7680 IFS=$as_save_IFS
7681 test -z "$as_dir" && as_dir=.
7682 for ac_exec_ext in '' $ac_executable_extensions; do
7683 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7684 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7686 break 2
7687 fi
7688done
7689 done
7690IFS=$as_save_IFS
9c60689e 7691
a243b558
JF
7692fi
7693fi
7694DSYMUTIL=$ac_cv_prog_DSYMUTIL
7695if test -n "$DSYMUTIL"; then
7696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7697$as_echo "$DSYMUTIL" >&6; }
7698else
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7700$as_echo "no" >&6; }
7701fi
9c60689e
DWT
7702
7703
9c60689e 7704fi
a243b558
JF
7705if test -z "$ac_cv_prog_DSYMUTIL"; then
7706 ac_ct_DSYMUTIL=$DSYMUTIL
7707 # Extract the first word of "dsymutil", so it can be a program name with args.
7708set dummy dsymutil; ac_word=$2
7709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7710$as_echo_n "checking for $ac_word... " >&6; }
7711if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9c60689e
DWT
7712 $as_echo_n "(cached) " >&6
7713else
a243b558
JF
7714 if test -n "$ac_ct_DSYMUTIL"; then
7715 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9c60689e 7716else
a243b558
JF
7717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7718for as_dir in $PATH
7719do
7720 IFS=$as_save_IFS
7721 test -z "$as_dir" && as_dir=.
7722 for ac_exec_ext in '' $ac_executable_extensions; do
7723 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7724 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7726 break 2
7727 fi
7728done
7729 done
7730IFS=$as_save_IFS
7731
9c60689e 7732fi
9c60689e 7733fi
a243b558
JF
7734ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7735if test -n "$ac_ct_DSYMUTIL"; then
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7737$as_echo "$ac_ct_DSYMUTIL" >&6; }
7738else
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7740$as_echo "no" >&6; }
7741fi
9c60689e 7742
a243b558
JF
7743 if test "x$ac_ct_DSYMUTIL" = x; then
7744 DSYMUTIL=":"
7745 else
7746 case $cross_compiling:$ac_tool_warned in
7747yes:)
7748{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7749$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7750ac_tool_warned=yes ;;
9c60689e 7751esac
a243b558
JF
7752 DSYMUTIL=$ac_ct_DSYMUTIL
7753 fi
7754else
7755 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7756fi
9c60689e 7757
a243b558
JF
7758 if test -n "$ac_tool_prefix"; then
7759 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7760set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7762$as_echo_n "checking for $ac_word... " >&6; }
7763if ${ac_cv_prog_NMEDIT+:} false; then :
9c60689e
DWT
7764 $as_echo_n "(cached) " >&6
7765else
a243b558
JF
7766 if test -n "$NMEDIT"; then
7767 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7768else
7769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7770for as_dir in $PATH
7771do
7772 IFS=$as_save_IFS
7773 test -z "$as_dir" && as_dir=.
7774 for ac_exec_ext in '' $ac_executable_extensions; do
7775 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7776 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7778 break 2
7779 fi
7780done
9c60689e 7781 done
a243b558 7782IFS=$as_save_IFS
9c60689e 7783
a243b558
JF
7784fi
7785fi
7786NMEDIT=$ac_cv_prog_NMEDIT
7787if test -n "$NMEDIT"; then
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7789$as_echo "$NMEDIT" >&6; }
9c60689e
DWT
7790else
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7792$as_echo "no" >&6; }
7793fi
7794
7795
a243b558
JF
7796fi
7797if test -z "$ac_cv_prog_NMEDIT"; then
7798 ac_ct_NMEDIT=$NMEDIT
7799 # Extract the first word of "nmedit", so it can be a program name with args.
7800set dummy nmedit; ac_word=$2
7801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7802$as_echo_n "checking for $ac_word... " >&6; }
7803if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9c60689e
DWT
7804 $as_echo_n "(cached) " >&6
7805else
a243b558
JF
7806 if test -n "$ac_ct_NMEDIT"; then
7807 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7808else
7809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7810for as_dir in $PATH
7811do
7812 IFS=$as_save_IFS
7813 test -z "$as_dir" && as_dir=.
7814 for ac_exec_ext in '' $ac_executable_extensions; do
7815 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7816 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7818 break 2
7819 fi
7820done
9c60689e 7821 done
a243b558 7822IFS=$as_save_IFS
9c60689e 7823
a243b558
JF
7824fi
7825fi
7826ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7827if test -n "$ac_ct_NMEDIT"; then
7828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7829$as_echo "$ac_ct_NMEDIT" >&6; }
9c60689e
DWT
7830else
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7832$as_echo "no" >&6; }
7833fi
7834
a243b558
JF
7835 if test "x$ac_ct_NMEDIT" = x; then
7836 NMEDIT=":"
9c60689e 7837 else
a243b558
JF
7838 case $cross_compiling:$ac_tool_warned in
7839yes:)
7840{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7841$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7842ac_tool_warned=yes ;;
7843esac
7844 NMEDIT=$ac_ct_NMEDIT
9c60689e 7845 fi
a243b558
JF
7846else
7847 NMEDIT="$ac_cv_prog_NMEDIT"
9c60689e
DWT
7848fi
7849
a243b558
JF
7850 if test -n "$ac_tool_prefix"; then
7851 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7852set dummy ${ac_tool_prefix}lipo; ac_word=$2
7853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7854$as_echo_n "checking for $ac_word... " >&6; }
7855if ${ac_cv_prog_LIPO+:} false; then :
7856 $as_echo_n "(cached) " >&6
7857else
7858 if test -n "$LIPO"; then
7859 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7860else
7861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7862for as_dir in $PATH
7863do
7864 IFS=$as_save_IFS
7865 test -z "$as_dir" && as_dir=.
7866 for ac_exec_ext in '' $ac_executable_extensions; do
7867 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7868 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7870 break 2
7871 fi
7872done
7873 done
7874IFS=$as_save_IFS
9c60689e 7875
a243b558
JF
7876fi
7877fi
7878LIPO=$ac_cv_prog_LIPO
7879if test -n "$LIPO"; then
7880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7881$as_echo "$LIPO" >&6; }
7882else
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7884$as_echo "no" >&6; }
7885fi
9c60689e 7886
9c60689e 7887
a243b558
JF
7888fi
7889if test -z "$ac_cv_prog_LIPO"; then
7890 ac_ct_LIPO=$LIPO
7891 # Extract the first word of "lipo", so it can be a program name with args.
7892set dummy lipo; ac_word=$2
7893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7894$as_echo_n "checking for $ac_word... " >&6; }
7895if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9c60689e
DWT
7896 $as_echo_n "(cached) " >&6
7897else
a243b558
JF
7898 if test -n "$ac_ct_LIPO"; then
7899 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7900else
7901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7902for as_dir in $PATH
7903do
7904 IFS=$as_save_IFS
7905 test -z "$as_dir" && as_dir=.
7906 for ac_exec_ext in '' $ac_executable_extensions; do
7907 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7908 ac_cv_prog_ac_ct_LIPO="lipo"
7909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7910 break 2
7911 fi
7912done
7913 done
7914IFS=$as_save_IFS
9c60689e
DWT
7915
7916fi
a243b558
JF
7917fi
7918ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7919if test -n "$ac_ct_LIPO"; then
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7921$as_echo "$ac_ct_LIPO" >&6; }
9c60689e 7922else
a243b558
JF
7923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7924$as_echo "no" >&6; }
9c60689e
DWT
7925fi
7926
a243b558
JF
7927 if test "x$ac_ct_LIPO" = x; then
7928 LIPO=":"
7929 else
7930 case $cross_compiling:$ac_tool_warned in
7931yes:)
7932{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7933$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7934ac_tool_warned=yes ;;
7935esac
7936 LIPO=$ac_ct_LIPO
7937 fi
7938else
7939 LIPO="$ac_cv_prog_LIPO"
9c60689e
DWT
7940fi
7941
a243b558
JF
7942 if test -n "$ac_tool_prefix"; then
7943 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7944set dummy ${ac_tool_prefix}otool; ac_word=$2
7945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7946$as_echo_n "checking for $ac_word... " >&6; }
7947if ${ac_cv_prog_OTOOL+:} false; then :
7948 $as_echo_n "(cached) " >&6
7949else
7950 if test -n "$OTOOL"; then
7951 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7952else
7953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7954for as_dir in $PATH
7955do
7956 IFS=$as_save_IFS
7957 test -z "$as_dir" && as_dir=.
7958 for ac_exec_ext in '' $ac_executable_extensions; do
7959 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7960 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7962 break 2
7963 fi
7964done
7965 done
7966IFS=$as_save_IFS
9c60689e 7967
a243b558
JF
7968fi
7969fi
7970OTOOL=$ac_cv_prog_OTOOL
7971if test -n "$OTOOL"; then
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7973$as_echo "$OTOOL" >&6; }
7974else
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7976$as_echo "no" >&6; }
7977fi
9c60689e
DWT
7978
7979
a243b558
JF
7980fi
7981if test -z "$ac_cv_prog_OTOOL"; then
7982 ac_ct_OTOOL=$OTOOL
7983 # Extract the first word of "otool", so it can be a program name with args.
7984set dummy otool; ac_word=$2
7985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7986$as_echo_n "checking for $ac_word... " >&6; }
7987if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7988 $as_echo_n "(cached) " >&6
7989else
7990 if test -n "$ac_ct_OTOOL"; then
7991 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7992else
7993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7994for as_dir in $PATH
7995do
7996 IFS=$as_save_IFS
7997 test -z "$as_dir" && as_dir=.
7998 for ac_exec_ext in '' $ac_executable_extensions; do
7999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8000 ac_cv_prog_ac_ct_OTOOL="otool"
8001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8002 break 2
8003 fi
8004done
8005 done
8006IFS=$as_save_IFS
9c60689e 8007
a243b558
JF
8008fi
8009fi
8010ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8011if test -n "$ac_ct_OTOOL"; then
8012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8013$as_echo "$ac_ct_OTOOL" >&6; }
8014else
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8016$as_echo "no" >&6; }
8017fi
9c60689e 8018
a243b558
JF
8019 if test "x$ac_ct_OTOOL" = x; then
8020 OTOOL=":"
8021 else
8022 case $cross_compiling:$ac_tool_warned in
8023yes:)
8024{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8025$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8026ac_tool_warned=yes ;;
8027esac
8028 OTOOL=$ac_ct_OTOOL
8029 fi
8030else
8031 OTOOL="$ac_cv_prog_OTOOL"
8032fi
9c60689e 8033
a243b558
JF
8034 if test -n "$ac_tool_prefix"; then
8035 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8036set dummy ${ac_tool_prefix}otool64; ac_word=$2
8037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8038$as_echo_n "checking for $ac_word... " >&6; }
8039if ${ac_cv_prog_OTOOL64+:} false; then :
8040 $as_echo_n "(cached) " >&6
8041else
8042 if test -n "$OTOOL64"; then
8043 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8044else
8045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8046for as_dir in $PATH
8047do
8048 IFS=$as_save_IFS
8049 test -z "$as_dir" && as_dir=.
8050 for ac_exec_ext in '' $ac_executable_extensions; do
8051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8052 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8054 break 2
8055 fi
8056done
8057 done
8058IFS=$as_save_IFS
9c60689e 8059
a243b558
JF
8060fi
8061fi
8062OTOOL64=$ac_cv_prog_OTOOL64
8063if test -n "$OTOOL64"; then
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8065$as_echo "$OTOOL64" >&6; }
8066else
8067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8068$as_echo "no" >&6; }
8069fi
9c60689e 8070
9c60689e 8071
a243b558
JF
8072fi
8073if test -z "$ac_cv_prog_OTOOL64"; then
8074 ac_ct_OTOOL64=$OTOOL64
8075 # Extract the first word of "otool64", so it can be a program name with args.
8076set dummy otool64; ac_word=$2
8077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8078$as_echo_n "checking for $ac_word... " >&6; }
8079if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8080 $as_echo_n "(cached) " >&6
8081else
8082 if test -n "$ac_ct_OTOOL64"; then
8083 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8084else
8085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8086for as_dir in $PATH
8087do
8088 IFS=$as_save_IFS
8089 test -z "$as_dir" && as_dir=.
8090 for ac_exec_ext in '' $ac_executable_extensions; do
8091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8092 ac_cv_prog_ac_ct_OTOOL64="otool64"
8093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8094 break 2
8095 fi
8096done
8097 done
8098IFS=$as_save_IFS
9c60689e 8099
a243b558
JF
8100fi
8101fi
8102ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8103if test -n "$ac_ct_OTOOL64"; then
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8105$as_echo "$ac_ct_OTOOL64" >&6; }
8106else
8107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8108$as_echo "no" >&6; }
8109fi
9c60689e 8110
a243b558
JF
8111 if test "x$ac_ct_OTOOL64" = x; then
8112 OTOOL64=":"
8113 else
8114 case $cross_compiling:$ac_tool_warned in
8115yes:)
8116{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8117$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8118ac_tool_warned=yes ;;
8119esac
8120 OTOOL64=$ac_ct_OTOOL64
8121 fi
8122else
8123 OTOOL64="$ac_cv_prog_OTOOL64"
8124fi
ee134472 8125
9c60689e 8126
9c60689e 8127
9c60689e 8128
9c60689e 8129
9c60689e 8130
ee134472 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
9c60689e 8147
9c60689e 8148
9c60689e 8149
a243b558
JF
8150
8151
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8153$as_echo_n "checking for -single_module linker flag... " >&6; }
8154if ${lt_cv_apple_cc_single_mod+:} false; then :
ee134472
JF
8155 $as_echo_n "(cached) " >&6
8156else
a243b558
JF
8157 lt_cv_apple_cc_single_mod=no
8158 if test -z "${LT_MULTI_MODULE}"; then
8159 # By default we will add the -single_module flag. You can override
8160 # by either setting the environment variable LT_MULTI_MODULE
8161 # non-empty at configure time, or by adding -multi_module to the
8162 # link flags.
8163 rm -rf libconftest.dylib*
8164 echo "int foo(void){return 1;}" > conftest.c
8165 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8166-dynamiclib -Wl,-single_module conftest.c" >&5
8167 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8168 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8169 _lt_result=$?
8170 # If there is a non-empty error log, and "single_module"
8171 # appears in it, assume the flag caused a linker warning
8172 if test -s conftest.err && $GREP single_module conftest.err; then
8173 cat conftest.err >&5
8174 # Otherwise, if the output was created with a 0 exit code from
8175 # the compiler, it worked.
8176 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8177 lt_cv_apple_cc_single_mod=yes
8178 else
8179 cat conftest.err >&5
8180 fi
8181 rm -rf libconftest.dylib*
8182 rm -f conftest.*
8183 fi
ee134472 8184fi
a243b558
JF
8185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8186$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9c60689e 8187
a243b558
JF
8188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8189$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8190if ${lt_cv_ld_exported_symbols_list+:} false; then :
9c60689e
DWT
8191 $as_echo_n "(cached) " >&6
8192else
a243b558
JF
8193 lt_cv_ld_exported_symbols_list=no
8194 save_LDFLAGS=$LDFLAGS
8195 echo "_main" > conftest.sym
8196 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8198/* end confdefs.h. */
9c60689e 8199
a243b558
JF
8200int
8201main ()
8202{
9c60689e 8203
a243b558
JF
8204 ;
8205 return 0;
8206}
8207_ACEOF
8208if ac_fn_c_try_link "$LINENO"; then :
8209 lt_cv_ld_exported_symbols_list=yes
9c60689e 8210else
a243b558 8211 lt_cv_ld_exported_symbols_list=no
9c60689e 8212fi
a243b558
JF
8213rm -f core conftest.err conftest.$ac_objext \
8214 conftest$ac_exeext conftest.$ac_ext
8215 LDFLAGS="$save_LDFLAGS"
9c60689e
DWT
8216
8217fi
a243b558
JF
8218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8219$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9c60689e 8220
a243b558
JF
8221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8222$as_echo_n "checking for -force_load linker flag... " >&6; }
8223if ${lt_cv_ld_force_load+:} false; then :
9c60689e
DWT
8224 $as_echo_n "(cached) " >&6
8225else
a243b558
JF
8226 lt_cv_ld_force_load=no
8227 cat > conftest.c << _LT_EOF
8228int forced_loaded() { return 2;}
8229_LT_EOF
8230 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8231 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8232 echo "$AR cru libconftest.a conftest.o" >&5
8233 $AR cru libconftest.a conftest.o 2>&5
8234 echo "$RANLIB libconftest.a" >&5
8235 $RANLIB libconftest.a 2>&5
8236 cat > conftest.c << _LT_EOF
8237int main() { return 0;}
8238_LT_EOF
8239 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8240 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8241 _lt_result=$?
8242 if test -s conftest.err && $GREP force_load conftest.err; then
8243 cat conftest.err >&5
8244 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8245 lt_cv_ld_force_load=yes
8246 else
8247 cat conftest.err >&5
8248 fi
8249 rm -f conftest.err libconftest.a conftest conftest.c
8250 rm -rf conftest.dSYM
9c60689e
DWT
8251
8252fi
a243b558
JF
8253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8254$as_echo "$lt_cv_ld_force_load" >&6; }
8255 case $host_os in
8256 rhapsody* | darwin1.[012])
8257 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8258 darwin1.*)
8259 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8260 darwin*) # darwin 5.x on
8261 # if running on 10.5 or later, the deployment target defaults
8262 # to the OS version, if on x86, and 10.4, the deployment
8263 # target defaults to 10.4. Don't you love it?
8264 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8265 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8266 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8267 10.[012]*)
8268 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8269 10.*)
8270 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8271 esac
8272 ;;
8273 esac
8274 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8275 _lt_dar_single_mod='$single_module'
8276 fi
8277 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8278 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8279 else
8280 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8281 fi
8282 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8283 _lt_dsymutil='~$DSYMUTIL $lib || :'
8284 else
8285 _lt_dsymutil=
8286 fi
8287 ;;
8288 esac
9c60689e 8289
a243b558
JF
8290ac_ext=c
8291ac_cpp='$CPP $CPPFLAGS'
8292ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8293ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8294ac_compiler_gnu=$ac_cv_c_compiler_gnu
8295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8296$as_echo_n "checking how to run the C preprocessor... " >&6; }
8297# On Suns, sometimes $CPP names a directory.
8298if test -n "$CPP" && test -d "$CPP"; then
8299 CPP=
9c60689e 8300fi
a243b558
JF
8301if test -z "$CPP"; then
8302 if ${ac_cv_prog_CPP+:} false; then :
8303 $as_echo_n "(cached) " >&6
8304else
8305 # Double quotes because CPP needs to be expanded
8306 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8307 do
8308 ac_preproc_ok=false
8309for ac_c_preproc_warn_flag in '' yes
8310do
8311 # Use a header file that comes with gcc, so configuring glibc
8312 # with a fresh cross-compiler works.
8313 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8314 # <limits.h> exists even on freestanding compilers.
8315 # On the NeXT, cc -E runs the code through the compiler's parser,
8316 # not just through cpp. "Syntax error" is here to catch this case.
8317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8318/* end confdefs.h. */
8319#ifdef __STDC__
8320# include <limits.h>
8321#else
8322# include <assert.h>
8323#endif
8324 Syntax error
8325_ACEOF
8326if ac_fn_c_try_cpp "$LINENO"; then :
9c60689e 8327
a243b558
JF
8328else
8329 # Broken: fails on valid input.
8330continue
8331fi
8332rm -f conftest.err conftest.i conftest.$ac_ext
9c60689e 8333
a243b558
JF
8334 # OK, works on sane cases. Now check whether nonexistent headers
8335 # can be detected and how.
8336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8337/* end confdefs.h. */
8338#include <ac_nonexistent.h>
8339_ACEOF
8340if ac_fn_c_try_cpp "$LINENO"; then :
8341 # Broken: success on invalid input.
8342continue
8343else
8344 # Passes both tests.
8345ac_preproc_ok=:
8346break
8347fi
8348rm -f conftest.err conftest.i conftest.$ac_ext
9c60689e 8349
a243b558
JF
8350done
8351# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8352rm -f conftest.i conftest.err conftest.$ac_ext
8353if $ac_preproc_ok; then :
8354 break
8355fi
9c60689e 8356
a243b558
JF
8357 done
8358 ac_cv_prog_CPP=$CPP
9c60689e 8359
a243b558
JF
8360fi
8361 CPP=$ac_cv_prog_CPP
9c60689e 8362else
a243b558
JF
8363 ac_cv_prog_CPP=$CPP
8364fi
8365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8366$as_echo "$CPP" >&6; }
8367ac_preproc_ok=false
8368for ac_c_preproc_warn_flag in '' yes
8369do
8370 # Use a header file that comes with gcc, so configuring glibc
8371 # with a fresh cross-compiler works.
8372 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8373 # <limits.h> exists even on freestanding compilers.
8374 # On the NeXT, cc -E runs the code through the compiler's parser,
8375 # not just through cpp. "Syntax error" is here to catch this case.
8376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8377/* end confdefs.h. */
8378#ifdef __STDC__
8379# include <limits.h>
8380#else
8381# include <assert.h>
8382#endif
8383 Syntax error
8384_ACEOF
8385if ac_fn_c_try_cpp "$LINENO"; then :
9c60689e 8386
a243b558
JF
8387else
8388 # Broken: fails on valid input.
8389continue
9c60689e 8390fi
a243b558 8391rm -f conftest.err conftest.i conftest.$ac_ext
9c60689e 8392
a243b558
JF
8393 # OK, works on sane cases. Now check whether nonexistent headers
8394 # can be detected and how.
8395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8396/* end confdefs.h. */
8397#include <ac_nonexistent.h>
8398_ACEOF
8399if ac_fn_c_try_cpp "$LINENO"; then :
8400 # Broken: success on invalid input.
8401continue
8402else
8403 # Passes both tests.
8404ac_preproc_ok=:
8405break
8406fi
8407rm -f conftest.err conftest.i conftest.$ac_ext
9c60689e 8408
a243b558
JF
8409done
8410# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8411rm -f conftest.i conftest.err conftest.$ac_ext
8412if $ac_preproc_ok; then :
9c60689e 8413
a243b558
JF
8414else
8415 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8416$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8417as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8418See \`config.log' for more details" "$LINENO" 5; }
8419fi
9c60689e 8420
a243b558
JF
8421ac_ext=c
8422ac_cpp='$CPP $CPPFLAGS'
8423ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8424ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8425ac_compiler_gnu=$ac_cv_c_compiler_gnu
9c60689e
DWT
8426
8427
a243b558
JF
8428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8429$as_echo_n "checking for ANSI C header files... " >&6; }
8430if ${ac_cv_header_stdc+:} false; then :
9c60689e
DWT
8431 $as_echo_n "(cached) " >&6
8432else
a243b558
JF
8433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8434/* end confdefs.h. */
8435#include <stdlib.h>
8436#include <stdarg.h>
8437#include <string.h>
8438#include <float.h>
9c60689e 8439
a243b558
JF
8440int
8441main ()
8442{
9c60689e 8443
a243b558
JF
8444 ;
8445 return 0;
8446}
8447_ACEOF
8448if ac_fn_c_try_compile "$LINENO"; then :
8449 ac_cv_header_stdc=yes
8450else
8451 ac_cv_header_stdc=no
9c60689e 8452fi
a243b558
JF
8453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8454
8455if test $ac_cv_header_stdc = yes; then
8456 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8458/* end confdefs.h. */
8459#include <string.h>
9c60689e 8460
a243b558
JF
8461_ACEOF
8462if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8463 $EGREP "memchr" >/dev/null 2>&1; then :
9c60689e 8464
a243b558
JF
8465else
8466 ac_cv_header_stdc=no
8467fi
8468rm -f conftest*
9c60689e 8469
a243b558
JF
8470fi
8471
8472if test $ac_cv_header_stdc = yes; then
8473 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8475/* end confdefs.h. */
8476#include <stdlib.h>
8477
8478_ACEOF
8479if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8480 $EGREP "free" >/dev/null 2>&1; then :
9c60689e 8481
9c60689e 8482else
a243b558 8483 ac_cv_header_stdc=no
9c60689e 8484fi
a243b558 8485rm -f conftest*
9c60689e 8486
a243b558 8487fi
9c60689e 8488
a243b558
JF
8489if test $ac_cv_header_stdc = yes; then
8490 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8491 if test "$cross_compiling" = yes; then :
8492 :
8493else
8494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8495/* end confdefs.h. */
8496#include <ctype.h>
8497#include <stdlib.h>
8498#if ((' ' & 0x0FF) == 0x020)
8499# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8500# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8501#else
8502# define ISLOWER(c) \
8503 (('a' <= (c) && (c) <= 'i') \
8504 || ('j' <= (c) && (c) <= 'r') \
8505 || ('s' <= (c) && (c) <= 'z'))
8506# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8507#endif
9c60689e 8508
a243b558
JF
8509#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8510int
8511main ()
8512{
8513 int i;
8514 for (i = 0; i < 256; i++)
8515 if (XOR (islower (i), ISLOWER (i))
8516 || toupper (i) != TOUPPER (i))
8517 return 2;
8518 return 0;
8519}
8520_ACEOF
8521if ac_fn_c_try_run "$LINENO"; then :
9c60689e 8522
a243b558
JF
8523else
8524 ac_cv_header_stdc=no
8525fi
8526rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8527 conftest.$ac_objext conftest.beam conftest.$ac_ext
8528fi
9c60689e 8529
a243b558
JF
8530fi
8531fi
8532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8533$as_echo "$ac_cv_header_stdc" >&6; }
8534if test $ac_cv_header_stdc = yes; then
9c60689e 8535
a243b558 8536$as_echo "#define STDC_HEADERS 1" >>confdefs.h
9c60689e 8537
a243b558 8538fi
9c60689e 8539
a243b558
JF
8540# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8541for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8542 inttypes.h stdint.h unistd.h
8543do :
8544 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8545ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8546"
8547if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8548 cat >>confdefs.h <<_ACEOF
8549#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8550_ACEOF
9c60689e 8551
a243b558 8552fi
ee134472 8553
a243b558 8554done
ee134472 8555
9c60689e 8556
a243b558
JF
8557for ac_header in dlfcn.h
8558do :
8559 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8560"
8561if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8562 cat >>confdefs.h <<_ACEOF
8563#define HAVE_DLFCN_H 1
8564_ACEOF
9c60689e 8565
a243b558 8566fi
9c60689e 8567
a243b558 8568done
9c60689e 8569
9c60689e 8570
9c60689e 8571
9c60689e 8572
a243b558
JF
8573func_stripname_cnf ()
8574{
8575 case ${2} in
8576 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
8577 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8578 esac
8579} # func_stripname_cnf
9c60689e 8580
9c60689e 8581
ee134472 8582
a243b558
JF
8583
8584
8585# Set options
8586# Check whether --enable-static was given.
8587if test "${enable_static+set}" = set; then :
8588 enableval=$enable_static; p=${PACKAGE-default}
8589 case $enableval in
8590 yes) enable_static=yes ;;
8591 no) enable_static=no ;;
8592 *)
8593 enable_static=no
8594 # Look at the argument we got. We use all the common list separators.
8595 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8596 for pkg in $enableval; do
8597 IFS="$lt_save_ifs"
8598 if test "X$pkg" = "X$p"; then
8599 enable_static=yes
8600 fi
8601 done
8602 IFS="$lt_save_ifs"
9c60689e 8603 ;;
a243b558
JF
8604 esac
8605else
8606 enable_static=no
8607fi
9c60689e 8608
9c60689e 8609
9c60689e 8610
9c60689e 8611
9c60689e 8612
9c60689e 8613
9c60689e 8614
9c60689e 8615
9c60689e 8616
9c60689e 8617
a243b558 8618 enable_dlopen=no
9c60689e 8619
9c60689e 8620
a243b558
JF
8621 enable_win32_dll=no
8622
8623
8624 # Check whether --enable-shared was given.
8625if test "${enable_shared+set}" = set; then :
8626 enableval=$enable_shared; p=${PACKAGE-default}
8627 case $enableval in
8628 yes) enable_shared=yes ;;
8629 no) enable_shared=no ;;
9c60689e 8630 *)
a243b558
JF
8631 enable_shared=no
8632 # Look at the argument we got. We use all the common list separators.
8633 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8634 for pkg in $enableval; do
8635 IFS="$lt_save_ifs"
8636 if test "X$pkg" = "X$p"; then
8637 enable_shared=yes
8638 fi
8639 done
8640 IFS="$lt_save_ifs"
9c60689e
DWT
8641 ;;
8642 esac
a243b558
JF
8643else
8644 enable_shared=yes
8645fi
9c60689e 8646
9c60689e 8647
9c60689e 8648
9c60689e 8649
9c60689e 8650
9c60689e 8651
9c60689e 8652
9c60689e 8653
9c60689e 8654
9c60689e 8655
9c60689e 8656
a243b558
JF
8657# Check whether --with-pic was given.
8658if test "${with_pic+set}" = set; then :
8659 withval=$with_pic; lt_p=${PACKAGE-default}
8660 case $withval in
8661 yes|no) pic_mode=$withval ;;
8662 *)
8663 pic_mode=default
8664 # Look at the argument we got. We use all the common list separators.
8665 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8666 for lt_pkg in $withval; do
8667 IFS="$lt_save_ifs"
8668 if test "X$lt_pkg" = "X$lt_p"; then
8669 pic_mode=yes
8670 fi
8671 done
8672 IFS="$lt_save_ifs"
8673 ;;
8674 esac
8675else
8676 pic_mode=default
9c60689e 8677fi
ee134472 8678
ee134472 8679
a243b558 8680test -z "$pic_mode" && pic_mode=default
9c60689e 8681
9c60689e 8682
9c60689e 8683
9c60689e 8684
ee134472 8685
ee134472 8686
9c60689e 8687
a243b558
JF
8688 # Check whether --enable-fast-install was given.
8689if test "${enable_fast_install+set}" = set; then :
8690 enableval=$enable_fast_install; p=${PACKAGE-default}
8691 case $enableval in
8692 yes) enable_fast_install=yes ;;
8693 no) enable_fast_install=no ;;
8694 *)
8695 enable_fast_install=no
8696 # Look at the argument we got. We use all the common list separators.
8697 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8698 for pkg in $enableval; do
8699 IFS="$lt_save_ifs"
8700 if test "X$pkg" = "X$p"; then
8701 enable_fast_install=yes
9c60689e 8702 fi
a243b558
JF
8703 done
8704 IFS="$lt_save_ifs"
9c60689e 8705 ;;
a243b558
JF
8706 esac
8707else
8708 enable_fast_install=yes
8709fi
9c60689e 8710
9c60689e 8711
9c60689e 8712
9c60689e 8713
9c60689e
DWT
8714
8715
53ba6704 8716
9c60689e 8717
9c60689e 8718
9c60689e 8719
9c60689e 8720
a243b558
JF
8721# This can be used to rebuild libtool when needed
8722LIBTOOL_DEPS="$ltmain"
9c60689e 8723
a243b558
JF
8724# Always use our own libtool.
8725LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9c60689e 8726
9c60689e 8727
9c60689e 8728
9c60689e 8729
9c60689e 8730
ee134472 8731
ee134472 8732
ee134472 8733
ee134472 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
9c60689e 8753
9c60689e 8754
9c60689e 8755
a243b558 8756test -z "$LN_S" && LN_S="ln -s"
9c60689e
DWT
8757
8758
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770
a243b558
JF
8771if test -n "${ZSH_VERSION+set}" ; then
8772 setopt NO_GLOB_SUBST
8773fi
9c60689e 8774
a243b558
JF
8775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8776$as_echo_n "checking for objdir... " >&6; }
8777if ${lt_cv_objdir+:} false; then :
ee134472
JF
8778 $as_echo_n "(cached) " >&6
8779else
a243b558
JF
8780 rm -f .libs 2>/dev/null
8781mkdir .libs 2>/dev/null
8782if test -d .libs; then
8783 lt_cv_objdir=.libs
8784else
8785 # MS-DOS does not allow filenames that begin with a dot.
8786 lt_cv_objdir=_libs
ee134472 8787fi
a243b558
JF
8788rmdir .libs 2>/dev/null
8789fi
8790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8791$as_echo "$lt_cv_objdir" >&6; }
8792objdir=$lt_cv_objdir
9c60689e
DWT
8793
8794
8795
8796
8797
a243b558
JF
8798cat >>confdefs.h <<_ACEOF
8799#define LT_OBJDIR "$lt_cv_objdir/"
8800_ACEOF
9c60689e
DWT
8801
8802
8803
8804
a243b558
JF
8805case $host_os in
8806aix3*)
8807 # AIX sometimes has problems with the GCC collect2 program. For some
8808 # reason, if we set the COLLECT_NAMES environment variable, the problems
8809 # vanish in a puff of smoke.
8810 if test "X${COLLECT_NAMES+set}" != Xset; then
8811 COLLECT_NAMES=
8812 export COLLECT_NAMES
8813 fi
8814 ;;
8815esac
9c60689e 8816
a243b558
JF
8817# Global variables:
8818ofile=libtool
8819can_build_shared=yes
9c60689e 8820
a243b558
JF
8821# All known linkers require a `.a' archive for static linking (except MSVC,
8822# which needs '.lib').
8823libext=a
9c60689e 8824
a243b558 8825with_gnu_ld="$lt_cv_prog_gnu_ld"
9c60689e 8826
a243b558
JF
8827old_CC="$CC"
8828old_CFLAGS="$CFLAGS"
9c60689e 8829
a243b558
JF
8830# Set sane defaults for various variables
8831test -z "$CC" && CC=cc
8832test -z "$LTCC" && LTCC=$CC
8833test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8834test -z "$LD" && LD=ld
8835test -z "$ac_objext" && ac_objext=o
9c60689e 8836
a243b558
JF
8837for cc_temp in $compiler""; do
8838 case $cc_temp in
8839 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8840 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8841 \-*) ;;
8842 *) break;;
8843 esac
8844done
8845cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9c60689e
DWT
8846
8847
a243b558
JF
8848# Only perform the check for file, if the check method requires it
8849test -z "$MAGIC_CMD" && MAGIC_CMD=file
8850case $deplibs_check_method in
8851file_magic*)
8852 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8854$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8855if ${lt_cv_path_MAGIC_CMD+:} false; then :
8856 $as_echo_n "(cached) " >&6
8857else
8858 case $MAGIC_CMD in
8859[\\/*] | ?:[\\/]*)
8860 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8861 ;;
8862*)
8863 lt_save_MAGIC_CMD="$MAGIC_CMD"
8864 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8865 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8866 for ac_dir in $ac_dummy; do
8867 IFS="$lt_save_ifs"
8868 test -z "$ac_dir" && ac_dir=.
8869 if test -f $ac_dir/${ac_tool_prefix}file; then
8870 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8871 if test -n "$file_magic_test_file"; then
8872 case $deplibs_check_method in
8873 "file_magic "*)
8874 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8875 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8876 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8877 $EGREP "$file_magic_regex" > /dev/null; then
8878 :
8879 else
8880 cat <<_LT_EOF 1>&2
9c60689e 8881
a243b558
JF
8882*** Warning: the command libtool uses to detect shared libraries,
8883*** $file_magic_cmd, produces output that libtool cannot recognize.
8884*** The result is that libtool may fail to recognize shared libraries
8885*** as such. This will affect the creation of libtool libraries that
8886*** depend on shared libraries, but programs linked with such libtool
8887*** libraries will work regardless of this problem. Nevertheless, you
8888*** may want to report the problem to your system manager and/or to
8889*** bug-libtool@gnu.org
9c60689e 8890
a243b558
JF
8891_LT_EOF
8892 fi ;;
8893 esac
8894 fi
8895 break
8896 fi
8897 done
8898 IFS="$lt_save_ifs"
8899 MAGIC_CMD="$lt_save_MAGIC_CMD"
8900 ;;
8901esac
8902fi
9c60689e 8903
a243b558
JF
8904MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8905if test -n "$MAGIC_CMD"; then
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8907$as_echo "$MAGIC_CMD" >&6; }
8908else
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8910$as_echo "no" >&6; }
8911fi
9c60689e
DWT
8912
8913
8914
8915
8916
a243b558
JF
8917if test -z "$lt_cv_path_MAGIC_CMD"; then
8918 if test -n "$ac_tool_prefix"; then
8919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8920$as_echo_n "checking for file... " >&6; }
8921if ${lt_cv_path_MAGIC_CMD+:} false; then :
8922 $as_echo_n "(cached) " >&6
8923else
8924 case $MAGIC_CMD in
8925[\\/*] | ?:[\\/]*)
8926 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8927 ;;
8928*)
8929 lt_save_MAGIC_CMD="$MAGIC_CMD"
8930 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8931 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8932 for ac_dir in $ac_dummy; do
8933 IFS="$lt_save_ifs"
8934 test -z "$ac_dir" && ac_dir=.
8935 if test -f $ac_dir/file; then
8936 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8937 if test -n "$file_magic_test_file"; then
8938 case $deplibs_check_method in
8939 "file_magic "*)
8940 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8941 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8942 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8943 $EGREP "$file_magic_regex" > /dev/null; then
8944 :
8945 else
8946 cat <<_LT_EOF 1>&2
9c60689e 8947
a243b558
JF
8948*** Warning: the command libtool uses to detect shared libraries,
8949*** $file_magic_cmd, produces output that libtool cannot recognize.
8950*** The result is that libtool may fail to recognize shared libraries
8951*** as such. This will affect the creation of libtool libraries that
8952*** depend on shared libraries, but programs linked with such libtool
8953*** libraries will work regardless of this problem. Nevertheless, you
8954*** may want to report the problem to your system manager and/or to
8955*** bug-libtool@gnu.org
9c60689e 8956
a243b558
JF
8957_LT_EOF
8958 fi ;;
8959 esac
8960 fi
8961 break
8962 fi
8963 done
8964 IFS="$lt_save_ifs"
8965 MAGIC_CMD="$lt_save_MAGIC_CMD"
8966 ;;
8967esac
8968fi
9c60689e 8969
a243b558
JF
8970MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8971if test -n "$MAGIC_CMD"; then
8972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8973$as_echo "$MAGIC_CMD" >&6; }
8974else
8975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8976$as_echo "no" >&6; }
8977fi
9c60689e
DWT
8978
8979
a243b558
JF
8980 else
8981 MAGIC_CMD=:
8982 fi
8983fi
9c60689e 8984
a243b558
JF
8985 fi
8986 ;;
8987esac
9c60689e 8988
a243b558 8989# Use C for the default configuration in the libtool script
9c60689e 8990
a243b558
JF
8991lt_save_CC="$CC"
8992ac_ext=c
8993ac_cpp='$CPP $CPPFLAGS'
8994ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8995ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8996ac_compiler_gnu=$ac_cv_c_compiler_gnu
9c60689e
DWT
8997
8998
a243b558
JF
8999# Source file extension for C test sources.
9000ac_ext=c
9c60689e 9001
a243b558
JF
9002# Object file extension for compiled C test sources.
9003objext=o
9004objext=$objext
9c60689e 9005
a243b558
JF
9006# Code to be used in simple compile tests
9007lt_simple_compile_test_code="int some_variable = 0;"
9c60689e 9008
a243b558
JF
9009# Code to be used in simple link tests
9010lt_simple_link_test_code='int main(){return(0);}'
9c60689e
DWT
9011
9012
9013
9014
9015
9016
9017
a243b558
JF
9018# If no C compiler was specified, use CC.
9019LTCC=${LTCC-"$CC"}
9c60689e 9020
a243b558
JF
9021# If no C compiler flags were specified, use CFLAGS.
9022LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9c60689e 9023
a243b558
JF
9024# Allow CC to be a program name with arguments.
9025compiler=$CC
9c60689e 9026
a243b558
JF
9027# Save the default compiler, since it gets overwritten when the other
9028# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9029compiler_DEFAULT=$CC
9c60689e 9030
a243b558
JF
9031# save warnings/boilerplate of simple test code
9032ac_outfile=conftest.$ac_objext
9033echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9034eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9035_lt_compiler_boilerplate=`cat conftest.err`
9036$RM -r conftest*
9c60689e 9037
a243b558
JF
9038ac_outfile=conftest.$ac_objext
9039echo "$lt_simple_link_test_code" >conftest.$ac_ext
9040eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9041_lt_linker_boilerplate=`cat conftest.err`
9042$RM -r conftest*
9c60689e
DWT
9043
9044
a243b558
JF
9045## CAVEAT EMPTOR:
9046## There is no encapsulation within the following macros, do not change
9047## the running order or otherwise move them around unless you know exactly
9048## what you are doing...
9049if test -n "$compiler"; then
9c60689e 9050
a243b558 9051lt_prog_compiler_no_builtin_flag=
9c60689e 9052
a243b558
JF
9053if test "$GCC" = yes; then
9054 case $cc_basename in
9055 nvcc*)
9056 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9057 *)
9058 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9059 esac
9c60689e 9060
a243b558
JF
9061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9062$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9063if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9064 $as_echo_n "(cached) " >&6
9065else
9066 lt_cv_prog_compiler_rtti_exceptions=no
9067 ac_outfile=conftest.$ac_objext
9068 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9069 lt_compiler_flag="-fno-rtti -fno-exceptions"
9070 # Insert the option either (1) after the last *FLAGS variable, or
9071 # (2) before a word containing "conftest.", or (3) at the end.
9072 # Note that $ac_compile itself does not contain backslashes and begins
9073 # with a dollar sign (not a hyphen), so the echo should work correctly.
9074 # The option is referenced via a variable to avoid confusing sed.
9075 lt_compile=`echo "$ac_compile" | $SED \
9076 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9077 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9078 -e 's:$: $lt_compiler_flag:'`
9079 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9080 (eval "$lt_compile" 2>conftest.err)
9081 ac_status=$?
9082 cat conftest.err >&5
9083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9084 if (exit $ac_status) && test -s "$ac_outfile"; then
9085 # The compiler can only warn and ignore the option if not recognized
9086 # So say no if there are warnings other than the usual output.
9087 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9088 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9089 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9090 lt_cv_prog_compiler_rtti_exceptions=yes
9091 fi
9092 fi
9093 $RM -r conftest*
9c60689e 9094
a243b558
JF
9095fi
9096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9097$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9c60689e 9098
a243b558
JF
9099if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9100 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9101else
9102 :
9103fi
9c60689e 9104
a243b558 9105fi
9c60689e
DWT
9106
9107
9108
9109
9110
9111
a243b558
JF
9112 lt_prog_compiler_wl=
9113lt_prog_compiler_pic=
9114lt_prog_compiler_static=
9c60689e
DWT
9115
9116
a243b558
JF
9117 if test "$GCC" = yes; then
9118 lt_prog_compiler_wl='-Wl,'
9119 lt_prog_compiler_static='-static'
9c60689e 9120
a243b558
JF
9121 case $host_os in
9122 aix*)
9123 # All AIX code is PIC.
9124 if test "$host_cpu" = ia64; then
9125 # AIX 5 now supports IA64 processor
9126 lt_prog_compiler_static='-Bstatic'
9127 fi
9128 ;;
9c60689e 9129
a243b558
JF
9130 amigaos*)
9131 case $host_cpu in
9132 powerpc)
9133 # see comment about AmigaOS4 .so support
9134 lt_prog_compiler_pic='-fPIC'
9135 ;;
9136 m68k)
9137 # FIXME: we need at least 68020 code to build shared libraries, but
9138 # adding the `-m68020' flag to GCC prevents building anything better,
9139 # like `-m68040'.
9140 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9141 ;;
9142 esac
9143 ;;
9c60689e 9144
a243b558
JF
9145 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9146 # PIC is the default for these OSes.
9147 ;;
9c60689e 9148
a243b558
JF
9149 mingw* | cygwin* | pw32* | os2* | cegcc*)
9150 # This hack is so that the source file can tell whether it is being
9151 # built for inclusion in a dll (and should export symbols for example).
9152 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9153 # (--disable-auto-import) libraries
9154 lt_prog_compiler_pic='-DDLL_EXPORT'
9155 ;;
9c60689e 9156
a243b558
JF
9157 darwin* | rhapsody*)
9158 # PIC is the default on this platform
9159 # Common symbols not allowed in MH_DYLIB files
9160 lt_prog_compiler_pic='-fno-common'
9161 ;;
9c60689e 9162
a243b558
JF
9163 haiku*)
9164 # PIC is the default for Haiku.
9165 # The "-static" flag exists, but is broken.
9166 lt_prog_compiler_static=
9167 ;;
9c60689e 9168
a243b558
JF
9169 hpux*)
9170 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9171 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9172 # sets the default TLS model and affects inlining.
9173 case $host_cpu in
9174 hppa*64*)
9175 # +Z the default
9176 ;;
9177 *)
9178 lt_prog_compiler_pic='-fPIC'
9179 ;;
9180 esac
9181 ;;
9c60689e 9182
a243b558
JF
9183 interix[3-9]*)
9184 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9185 # Instead, we relocate shared libraries at runtime.
9186 ;;
9c60689e 9187
a243b558
JF
9188 msdosdjgpp*)
9189 # Just because we use GCC doesn't mean we suddenly get shared libraries
9190 # on systems that don't support them.
9191 lt_prog_compiler_can_build_shared=no
9192 enable_shared=no
9193 ;;
9c60689e 9194
a243b558
JF
9195 *nto* | *qnx*)
9196 # QNX uses GNU C++, but need to define -shared option too, otherwise
9197 # it will coredump.
9198 lt_prog_compiler_pic='-fPIC -shared'
9199 ;;
9c60689e 9200
a243b558
JF
9201 sysv4*MP*)
9202 if test -d /usr/nec; then
9203 lt_prog_compiler_pic=-Kconform_pic
9204 fi
9205 ;;
9c60689e 9206
a243b558
JF
9207 *)
9208 lt_prog_compiler_pic='-fPIC'
9209 ;;
9210 esac
9c60689e 9211
a243b558
JF
9212 case $cc_basename in
9213 nvcc*) # Cuda Compiler Driver 2.2
9214 lt_prog_compiler_wl='-Xlinker '
9215 if test -n "$lt_prog_compiler_pic"; then
9216 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9217 fi
9218 ;;
9219 esac
9220 else
9221 # PORTME Check for flag to pass linker flags through the system compiler.
9222 case $host_os in
9223 aix*)
9224 lt_prog_compiler_wl='-Wl,'
9225 if test "$host_cpu" = ia64; then
9226 # AIX 5 now supports IA64 processor
9227 lt_prog_compiler_static='-Bstatic'
9228 else
9229 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9230 fi
9231 ;;
9c60689e 9232
a243b558
JF
9233 mingw* | cygwin* | pw32* | os2* | cegcc*)
9234 # This hack is so that the source file can tell whether it is being
9235 # built for inclusion in a dll (and should export symbols for example).
9236 lt_prog_compiler_pic='-DDLL_EXPORT'
9237 ;;
9c60689e 9238
a243b558
JF
9239 hpux9* | hpux10* | hpux11*)
9240 lt_prog_compiler_wl='-Wl,'
9241 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9242 # not for PA HP-UX.
9243 case $host_cpu in
9244 hppa*64*|ia64*)
9245 # +Z the default
9246 ;;
9247 *)
9248 lt_prog_compiler_pic='+Z'
9249 ;;
9250 esac
9251 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9252 lt_prog_compiler_static='${wl}-a ${wl}archive'
9253 ;;
9c60689e 9254
a243b558
JF
9255 irix5* | irix6* | nonstopux*)
9256 lt_prog_compiler_wl='-Wl,'
9257 # PIC (with -KPIC) is the default.
9258 lt_prog_compiler_static='-non_shared'
9259 ;;
9c60689e 9260
a243b558
JF
9261 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9262 case $cc_basename in
9263 # old Intel for x86_64 which still supported -KPIC.
9264 ecc*)
9265 lt_prog_compiler_wl='-Wl,'
9266 lt_prog_compiler_pic='-KPIC'
9267 lt_prog_compiler_static='-static'
9268 ;;
9269 # icc used to be incompatible with GCC.
9270 # ICC 10 doesn't accept -KPIC any more.
9271 icc* | ifort*)
9272 lt_prog_compiler_wl='-Wl,'
9273 lt_prog_compiler_pic='-fPIC'
9274 lt_prog_compiler_static='-static'
9275 ;;
9276 # Lahey Fortran 8.1.
9277 lf95*)
9278 lt_prog_compiler_wl='-Wl,'
9279 lt_prog_compiler_pic='--shared'
9280 lt_prog_compiler_static='--static'
9281 ;;
9282 nagfor*)
9283 # NAG Fortran compiler
9284 lt_prog_compiler_wl='-Wl,-Wl,,'
9285 lt_prog_compiler_pic='-PIC'
9286 lt_prog_compiler_static='-Bstatic'
9287 ;;
9288 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9289 # Portland Group compilers (*not* the Pentium gcc compiler,
9290 # which looks to be a dead project)
9291 lt_prog_compiler_wl='-Wl,'
9292 lt_prog_compiler_pic='-fpic'
9293 lt_prog_compiler_static='-Bstatic'
9294 ;;
9295 ccc*)
9296 lt_prog_compiler_wl='-Wl,'
9297 # All Alpha code is PIC.
9298 lt_prog_compiler_static='-non_shared'
9299 ;;
9300 xl* | bgxl* | bgf* | mpixl*)
9301 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9302 lt_prog_compiler_wl='-Wl,'
9303 lt_prog_compiler_pic='-qpic'
9304 lt_prog_compiler_static='-qstaticlink'
9305 ;;
9306 *)
9307 case `$CC -V 2>&1 | sed 5q` in
9308 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9309 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9310 lt_prog_compiler_pic='-KPIC'
9311 lt_prog_compiler_static='-Bstatic'
9312 lt_prog_compiler_wl=''
9313 ;;
9314 *Sun\ F* | *Sun*Fortran*)
9315 lt_prog_compiler_pic='-KPIC'
9316 lt_prog_compiler_static='-Bstatic'
9317 lt_prog_compiler_wl='-Qoption ld '
9318 ;;
9319 *Sun\ C*)
9320 # Sun C 5.9
9321 lt_prog_compiler_pic='-KPIC'
9322 lt_prog_compiler_static='-Bstatic'
9323 lt_prog_compiler_wl='-Wl,'
9324 ;;
9325 *Intel*\ [CF]*Compiler*)
9326 lt_prog_compiler_wl='-Wl,'
9327 lt_prog_compiler_pic='-fPIC'
9328 lt_prog_compiler_static='-static'
9329 ;;
9330 *Portland\ Group*)
9331 lt_prog_compiler_wl='-Wl,'
9332 lt_prog_compiler_pic='-fpic'
9333 lt_prog_compiler_static='-Bstatic'
9334 ;;
9335 esac
9336 ;;
9337 esac
9338 ;;
9c60689e 9339
a243b558
JF
9340 newsos6)
9341 lt_prog_compiler_pic='-KPIC'
9342 lt_prog_compiler_static='-Bstatic'
9343 ;;
9c60689e 9344
a243b558
JF
9345 *nto* | *qnx*)
9346 # QNX uses GNU C++, but need to define -shared option too, otherwise
9347 # it will coredump.
9348 lt_prog_compiler_pic='-fPIC -shared'
9349 ;;
9c60689e 9350
a243b558
JF
9351 osf3* | osf4* | osf5*)
9352 lt_prog_compiler_wl='-Wl,'
9353 # All OSF/1 code is PIC.
9354 lt_prog_compiler_static='-non_shared'
9355 ;;
9c60689e 9356
a243b558
JF
9357 rdos*)
9358 lt_prog_compiler_static='-non_shared'
9359 ;;
9c60689e 9360
a243b558
JF
9361 solaris*)
9362 lt_prog_compiler_pic='-KPIC'
9363 lt_prog_compiler_static='-Bstatic'
9364 case $cc_basename in
9365 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9366 lt_prog_compiler_wl='-Qoption ld ';;
9367 *)
9368 lt_prog_compiler_wl='-Wl,';;
9369 esac
9370 ;;
9c60689e 9371
a243b558
JF
9372 sunos4*)
9373 lt_prog_compiler_wl='-Qoption ld '
9374 lt_prog_compiler_pic='-PIC'
9375 lt_prog_compiler_static='-Bstatic'
9376 ;;
9c60689e 9377
a243b558
JF
9378 sysv4 | sysv4.2uw2* | sysv4.3*)
9379 lt_prog_compiler_wl='-Wl,'
9380 lt_prog_compiler_pic='-KPIC'
9381 lt_prog_compiler_static='-Bstatic'
9382 ;;
9c60689e 9383
a243b558
JF
9384 sysv4*MP*)
9385 if test -d /usr/nec ;then
9386 lt_prog_compiler_pic='-Kconform_pic'
9387 lt_prog_compiler_static='-Bstatic'
9388 fi
9389 ;;
9c60689e 9390
a243b558
JF
9391 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9392 lt_prog_compiler_wl='-Wl,'
9393 lt_prog_compiler_pic='-KPIC'
9394 lt_prog_compiler_static='-Bstatic'
9395 ;;
9c60689e 9396
a243b558
JF
9397 unicos*)
9398 lt_prog_compiler_wl='-Wl,'
9399 lt_prog_compiler_can_build_shared=no
9400 ;;
9c60689e 9401
a243b558
JF
9402 uts4*)
9403 lt_prog_compiler_pic='-pic'
9404 lt_prog_compiler_static='-Bstatic'
9405 ;;
9c60689e 9406
a243b558
JF
9407 *)
9408 lt_prog_compiler_can_build_shared=no
9409 ;;
9410 esac
9411 fi
9c60689e 9412
a243b558
JF
9413case $host_os in
9414 # For platforms which do not support PIC, -DPIC is meaningless:
9415 *djgpp*)
9416 lt_prog_compiler_pic=
9417 ;;
9418 *)
9419 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9420 ;;
9421esac
9c60689e 9422
a243b558
JF
9423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9424$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9425if ${lt_cv_prog_compiler_pic+:} false; then :
9426 $as_echo_n "(cached) " >&6
9427else
9428 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9429fi
9430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9431$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9432lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9c60689e 9433
a243b558
JF
9434#
9435# Check to make sure the PIC flag actually works.
9436#
9437if test -n "$lt_prog_compiler_pic"; then
9438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9439$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9440if ${lt_cv_prog_compiler_pic_works+:} false; then :
9441 $as_echo_n "(cached) " >&6
9442else
9443 lt_cv_prog_compiler_pic_works=no
9444 ac_outfile=conftest.$ac_objext
9445 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9446 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9447 # Insert the option either (1) after the last *FLAGS variable, or
9448 # (2) before a word containing "conftest.", or (3) at the end.
9449 # Note that $ac_compile itself does not contain backslashes and begins
9450 # with a dollar sign (not a hyphen), so the echo should work correctly.
9451 # The option is referenced via a variable to avoid confusing sed.
9452 lt_compile=`echo "$ac_compile" | $SED \
9453 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9454 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9455 -e 's:$: $lt_compiler_flag:'`
9456 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9457 (eval "$lt_compile" 2>conftest.err)
9458 ac_status=$?
9459 cat conftest.err >&5
9460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9461 if (exit $ac_status) && test -s "$ac_outfile"; then
9462 # The compiler can only warn and ignore the option if not recognized
9463 # So say no if there are warnings other than the usual output.
9464 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9465 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9466 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9467 lt_cv_prog_compiler_pic_works=yes
9468 fi
9469 fi
9470 $RM -r conftest*
9c60689e 9471
a243b558
JF
9472fi
9473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9474$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9c60689e 9475
a243b558
JF
9476if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9477 case $lt_prog_compiler_pic in
9478 "" | " "*) ;;
9479 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9480 esac
9481else
9482 lt_prog_compiler_pic=
9483 lt_prog_compiler_can_build_shared=no
9484fi
9c60689e 9485
a243b558 9486fi
9c60689e
DWT
9487
9488
9489
9490
9491
9492
9c60689e
DWT
9493
9494
9495
9496
9497
a243b558
JF
9498#
9499# Check to make sure the static flag actually works.
9500#
9501wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9503$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9504if ${lt_cv_prog_compiler_static_works+:} false; then :
9505 $as_echo_n "(cached) " >&6
9506else
9507 lt_cv_prog_compiler_static_works=no
9508 save_LDFLAGS="$LDFLAGS"
9509 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9510 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9511 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9512 # The linker can only warn and ignore the option if not recognized
9513 # So say no if there are warnings
9514 if test -s conftest.err; then
9515 # Append any errors to the config.log.
9516 cat conftest.err 1>&5
9517 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9518 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9519 if diff conftest.exp conftest.er2 >/dev/null; then
9520 lt_cv_prog_compiler_static_works=yes
9521 fi
9522 else
9523 lt_cv_prog_compiler_static_works=yes
9524 fi
9525 fi
9526 $RM -r conftest*
9527 LDFLAGS="$save_LDFLAGS"
9c60689e 9528
a243b558
JF
9529fi
9530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9531$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9c60689e 9532
a243b558
JF
9533if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9534 :
9c60689e 9535else
a243b558 9536 lt_prog_compiler_static=
9c60689e 9537fi
9c60689e 9538
9c60689e 9539
9c60689e 9540
9c60689e 9541
9c60689e 9542
9c60689e 9543
9c60689e 9544
a243b558
JF
9545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9546$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9547if ${lt_cv_prog_compiler_c_o+:} false; then :
9548 $as_echo_n "(cached) " >&6
9549else
9550 lt_cv_prog_compiler_c_o=no
9551 $RM -r conftest 2>/dev/null
9552 mkdir conftest
9553 cd conftest
9554 mkdir out
9555 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9c60689e 9556
a243b558
JF
9557 lt_compiler_flag="-o out/conftest2.$ac_objext"
9558 # Insert the option either (1) after the last *FLAGS variable, or
9559 # (2) before a word containing "conftest.", or (3) at the end.
9560 # Note that $ac_compile itself does not contain backslashes and begins
9561 # with a dollar sign (not a hyphen), so the echo should work correctly.
9562 lt_compile=`echo "$ac_compile" | $SED \
9563 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9564 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9565 -e 's:$: $lt_compiler_flag:'`
9566 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9567 (eval "$lt_compile" 2>out/conftest.err)
9568 ac_status=$?
9569 cat out/conftest.err >&5
9570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9571 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9572 then
9573 # The compiler can only warn and ignore the option if not recognized
9574 # So say no if there are warnings
9575 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9576 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9577 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9578 lt_cv_prog_compiler_c_o=yes
9579 fi
9580 fi
9581 chmod u+w . 2>&5
9582 $RM -r conftest*
9583 # SGI C++ compiler will create directory out/ii_files/ for
9584 # template instantiation
9585 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9586 $RM out/* && rmdir out
9587 cd ..
9588 $RM -r conftest
9589 $RM -r conftest*
9c60689e 9590
a243b558
JF
9591fi
9592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9593$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9c60689e 9594
ee134472 9595
ee134472 9596
ee134472 9597
ee134472 9598
9c60689e 9599
a243b558
JF
9600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9601$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9602if ${lt_cv_prog_compiler_c_o+:} false; then :
9603 $as_echo_n "(cached) " >&6
9604else
9605 lt_cv_prog_compiler_c_o=no
9606 $RM -r conftest 2>/dev/null
9607 mkdir conftest
9608 cd conftest
9609 mkdir out
9610 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9c60689e 9611
a243b558
JF
9612 lt_compiler_flag="-o out/conftest2.$ac_objext"
9613 # Insert the option either (1) after the last *FLAGS variable, or
9614 # (2) before a word containing "conftest.", or (3) at the end.
9615 # Note that $ac_compile itself does not contain backslashes and begins
9616 # with a dollar sign (not a hyphen), so the echo should work correctly.
9617 lt_compile=`echo "$ac_compile" | $SED \
9618 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9619 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9620 -e 's:$: $lt_compiler_flag:'`
9621 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9622 (eval "$lt_compile" 2>out/conftest.err)
9623 ac_status=$?
9624 cat out/conftest.err >&5
9625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9626 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9627 then
9628 # The compiler can only warn and ignore the option if not recognized
9629 # So say no if there are warnings
9630 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9631 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9632 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9633 lt_cv_prog_compiler_c_o=yes
9634 fi
9635 fi
9636 chmod u+w . 2>&5
9637 $RM -r conftest*
9638 # SGI C++ compiler will create directory out/ii_files/ for
9639 # template instantiation
9640 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9641 $RM out/* && rmdir out
9642 cd ..
9643 $RM -r conftest
9644 $RM -r conftest*
9c60689e 9645
a243b558
JF
9646fi
9647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9648$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9c60689e 9649
9c60689e 9650
a243b558
JF
9651
9652
9653hard_links="nottested"
9654if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9655 # do not overwrite the value of need_locks provided by the user
9656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9657$as_echo_n "checking if we can lock with hard links... " >&6; }
9658 hard_links=yes
9659 $RM -r conftest*
9660 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9661 touch conftest.a
9662 ln conftest.a conftest.b 2>&5 || hard_links=no
9663 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9665$as_echo "$hard_links" >&6; }
9666 if test "$hard_links" = no; then
9667 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9668$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9669 need_locks=warn
9c60689e 9670 fi
a243b558
JF
9671else
9672 need_locks=no
9673fi
9c60689e 9674
ee134472 9675
9c60689e 9676
9c60689e 9677
9c60689e 9678
a243b558
JF
9679
9680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9681$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9682
9683 runpath_var=
9684 allow_undefined_flag=
9685 always_export_symbols=no
9686 archive_cmds=
9687 archive_expsym_cmds=
9688 compiler_needs_object=no
9689 enable_shared_with_static_runtimes=no
9690 export_dynamic_flag_spec=
9691 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9692 hardcode_automatic=no
9693 hardcode_direct=no
9694 hardcode_direct_absolute=no
9695 hardcode_libdir_flag_spec=
9696 hardcode_libdir_separator=
9697 hardcode_minus_L=no
9698 hardcode_shlibpath_var=unsupported
9699 inherit_rpath=no
9700 link_all_deplibs=unknown
9701 module_cmds=
9702 module_expsym_cmds=
9703 old_archive_from_new_cmds=
9704 old_archive_from_expsyms_cmds=
9705 thread_safe_flag_spec=
9706 whole_archive_flag_spec=
9707 # include_expsyms should be a list of space-separated symbols to be *always*
9708 # included in the symbol list
9709 include_expsyms=
9710 # exclude_expsyms can be an extended regexp of symbols to exclude
9711 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9712 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9713 # as well as any symbol that contains `d'.
9714 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9715 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9716 # platforms (ab)use it in PIC code, but their linkers get confused if
9717 # the symbol is explicitly referenced. Since portable code cannot
9718 # rely on this symbol name, it's probably fine to never include it in
9719 # preloaded symbol tables.
9720 # Exclude shared library initialization/finalization symbols.
9721 extract_expsyms_cmds=
9722
9c60689e 9723 case $host_os in
a243b558
JF
9724 cygwin* | mingw* | pw32* | cegcc*)
9725 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9726 # When not using gcc, we currently assume that we are using
9727 # Microsoft Visual C++.
9728 if test "$GCC" != yes; then
9729 with_gnu_ld=no
9730 fi
9c60689e 9731 ;;
a243b558
JF
9732 interix*)
9733 # we just hope/assume this is gcc and not c89 (= MSVC++)
9734 with_gnu_ld=yes
9735 ;;
9736 openbsd*)
9737 with_gnu_ld=no
9c60689e
DWT
9738 ;;
9739 esac
9c60689e 9740
a243b558 9741 ld_shlibs=yes
ee134472 9742
a243b558
JF
9743 # On some targets, GNU ld is compatible enough with the native linker
9744 # that we're better off using the native interface for both.
9745 lt_use_gnu_ld_interface=no
9746 if test "$with_gnu_ld" = yes; then
9747 case $host_os in
9748 aix*)
9749 # The AIX port of GNU ld has always aspired to compatibility
9750 # with the native linker. However, as the warning in the GNU ld
9751 # block says, versions before 2.19.5* couldn't really create working
9752 # shared libraries, regardless of the interface used.
9753 case `$LD -v 2>&1` in
9754 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9755 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9756 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9757 *)
9758 lt_use_gnu_ld_interface=yes
9759 ;;
9760 esac
9761 ;;
9762 *)
9763 lt_use_gnu_ld_interface=yes
9764 ;;
9765 esac
9766 fi
9c60689e 9767
a243b558
JF
9768 if test "$lt_use_gnu_ld_interface" = yes; then
9769 # If archive_cmds runs LD, not CC, wlarc should be empty
9770 wlarc='${wl}'
9c60689e 9771
a243b558
JF
9772 # Set some defaults for GNU ld with shared library support. These
9773 # are reset later if shared libraries are not supported. Putting them
9774 # here allows them to be overridden if necessary.
9775 runpath_var=LD_RUN_PATH
9776 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9777 export_dynamic_flag_spec='${wl}--export-dynamic'
9778 # ancient GNU ld didn't support --whole-archive et. al.
9779 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9780 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9781 else
9782 whole_archive_flag_spec=
9783 fi
9784 supports_anon_versioning=no
9785 case `$LD -v 2>&1` in
9786 *GNU\ gold*) supports_anon_versioning=yes ;;
9787 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9788 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9789 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9790 *\ 2.11.*) ;; # other 2.11 versions
9791 *) supports_anon_versioning=yes ;;
9792 esac
ee134472 9793
a243b558
JF
9794 # See if GNU ld supports shared libraries.
9795 case $host_os in
9796 aix[3-9]*)
9797 # On AIX/PPC, the GNU linker is very broken
9798 if test "$host_cpu" != ia64; then
9799 ld_shlibs=no
9800 cat <<_LT_EOF 1>&2
ee134472 9801
a243b558
JF
9802*** Warning: the GNU linker, at least up to release 2.19, is reported
9803*** to be unable to reliably create shared libraries on AIX.
9804*** Therefore, libtool is disabling shared libraries support. If you
9805*** really care for shared libraries, you may want to install binutils
9806*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9807*** You will then need to restart the configuration process.
9c60689e 9808
a243b558
JF
9809_LT_EOF
9810 fi
9811 ;;
9c60689e 9812
a243b558
JF
9813 amigaos*)
9814 case $host_cpu in
9815 powerpc)
9816 # see comment about AmigaOS4 .so support
9817 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9818 archive_expsym_cmds=''
9819 ;;
9820 m68k)
9821 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)'
9822 hardcode_libdir_flag_spec='-L$libdir'
9823 hardcode_minus_L=yes
9824 ;;
9825 esac
9826 ;;
9c60689e 9827
a243b558
JF
9828 beos*)
9829 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9830 allow_undefined_flag=unsupported
9831 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9832 # support --undefined. This deserves some investigation. FIXME
9833 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9834 else
9835 ld_shlibs=no
9836 fi
9837 ;;
9c60689e 9838
a243b558
JF
9839 cygwin* | mingw* | pw32* | cegcc*)
9840 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9841 # as there is no search path for DLLs.
9842 hardcode_libdir_flag_spec='-L$libdir'
9843 export_dynamic_flag_spec='${wl}--export-all-symbols'
9844 allow_undefined_flag=unsupported
9845 always_export_symbols=no
9846 enable_shared_with_static_runtimes=yes
9847 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'
9848 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9c60689e 9849
a243b558
JF
9850 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9851 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9852 # If the export-symbols file already is a .def file (1st line
9853 # is EXPORTS), use it as is; otherwise, prepend...
9854 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9855 cp $export_symbols $output_objdir/$soname.def;
9856 else
9857 echo EXPORTS > $output_objdir/$soname.def;
9858 cat $export_symbols >> $output_objdir/$soname.def;
9859 fi~
9860 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9861 else
9862 ld_shlibs=no
9863 fi
9864 ;;
9c60689e 9865
a243b558
JF
9866 haiku*)
9867 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9868 link_all_deplibs=yes
9869 ;;
9c60689e 9870
a243b558
JF
9871 interix[3-9]*)
9872 hardcode_direct=no
9873 hardcode_shlibpath_var=no
9874 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9875 export_dynamic_flag_spec='${wl}-E'
9876 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9877 # Instead, shared libraries are loaded at an image base (0x10000000 by
9878 # default) and relocated if they conflict, which is a slow very memory
9879 # consuming and fragmenting process. To avoid this, we pick a random,
9880 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9881 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9882 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9883 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'
9884 ;;
9c60689e 9885
a243b558
JF
9886 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9887 tmp_diet=no
9888 if test "$host_os" = linux-dietlibc; then
9889 case $cc_basename in
9890 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9891 esac
9892 fi
9893 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9894 && test "$tmp_diet" = no
9895 then
9896 tmp_addflag=' $pic_flag'
9897 tmp_sharedflag='-shared'
9898 case $cc_basename,$host_cpu in
9899 pgcc*) # Portland Group C compiler
9900 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'
9901 tmp_addflag=' $pic_flag'
9902 ;;
9903 pgf77* | pgf90* | pgf95* | pgfortran*)
9904 # Portland Group f77 and f90 compilers
9905 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'
9906 tmp_addflag=' $pic_flag -Mnomain' ;;
9907 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9908 tmp_addflag=' -i_dynamic' ;;
9909 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9910 tmp_addflag=' -i_dynamic -nofor_main' ;;
9911 ifc* | ifort*) # Intel Fortran compiler
9912 tmp_addflag=' -nofor_main' ;;
9913 lf95*) # Lahey Fortran 8.1
9914 whole_archive_flag_spec=
9915 tmp_sharedflag='--shared' ;;
9916 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9917 tmp_sharedflag='-qmkshrobj'
9918 tmp_addflag= ;;
9919 nvcc*) # Cuda Compiler Driver 2.2
9920 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'
9921 compiler_needs_object=yes
9922 ;;
9923 esac
9924 case `$CC -V 2>&1 | sed 5q` in
9925 *Sun\ C*) # Sun C 5.9
9926 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'
9927 compiler_needs_object=yes
9928 tmp_sharedflag='-G' ;;
9929 *Sun\ F*) # Sun Fortran 8.3
9930 tmp_sharedflag='-G' ;;
9931 esac
9932 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9c60689e 9933
a243b558
JF
9934 if test "x$supports_anon_versioning" = xyes; then
9935 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9936 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9937 echo "local: *; };" >> $output_objdir/$libname.ver~
9938 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9939 fi
9c60689e 9940
a243b558
JF
9941 case $cc_basename in
9942 xlf* | bgf* | bgxlf* | mpixlf*)
9943 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9944 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9945 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9946 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9947 if test "x$supports_anon_versioning" = xyes; then
9948 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9949 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9950 echo "local: *; };" >> $output_objdir/$libname.ver~
9951 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9952 fi
9953 ;;
9954 esac
9955 else
9956 ld_shlibs=no
9957 fi
9958 ;;
9c60689e 9959
a243b558
JF
9960 netbsd*)
9961 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9962 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9963 wlarc=
9964 else
9965 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9966 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9967 fi
9968 ;;
9c60689e 9969
a243b558
JF
9970 solaris*)
9971 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9972 ld_shlibs=no
9973 cat <<_LT_EOF 1>&2
9c60689e 9974
a243b558
JF
9975*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9976*** create shared libraries on Solaris systems. Therefore, libtool
9977*** is disabling shared libraries support. We urge you to upgrade GNU
9978*** binutils to release 2.9.1 or newer. Another option is to modify
9979*** your PATH or compiler configuration so that the native linker is
9980*** used, and then restart.
9c60689e 9981
a243b558
JF
9982_LT_EOF
9983 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9984 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9985 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9986 else
9987 ld_shlibs=no
9988 fi
9989 ;;
9c60689e 9990
a243b558
JF
9991 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9992 case `$LD -v 2>&1` in
9993 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9994 ld_shlibs=no
9995 cat <<_LT_EOF 1>&2
9c60689e 9996
a243b558
JF
9997*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9998*** reliably create shared libraries on SCO systems. Therefore, libtool
9999*** is disabling shared libraries support. We urge you to upgrade GNU
10000*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10001*** your PATH or compiler configuration so that the native linker is
10002*** used, and then restart.
9c60689e 10003
a243b558
JF
10004_LT_EOF
10005 ;;
10006 *)
10007 # For security reasons, it is highly recommended that you always
10008 # use absolute paths for naming shared libraries, and exclude the
10009 # DT_RUNPATH tag from executables and libraries. But doing so
10010 # requires that you compile everything twice, which is a pain.
10011 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10012 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10013 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10014 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10015 else
10016 ld_shlibs=no
10017 fi
10018 ;;
10019 esac
10020 ;;
9c60689e 10021
a243b558
JF
10022 sunos4*)
10023 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10024 wlarc=
10025 hardcode_direct=yes
10026 hardcode_shlibpath_var=no
10027 ;;
9c60689e 10028
a243b558
JF
10029 *)
10030 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10031 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10032 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10033 else
10034 ld_shlibs=no
10035 fi
10036 ;;
10037 esac
9c60689e 10038
a243b558
JF
10039 if test "$ld_shlibs" = no; then
10040 runpath_var=
10041 hardcode_libdir_flag_spec=
10042 export_dynamic_flag_spec=
10043 whole_archive_flag_spec=
10044 fi
10045 else
10046 # PORTME fill in a description of your system's linker (not GNU ld)
10047 case $host_os in
10048 aix3*)
10049 allow_undefined_flag=unsupported
10050 always_export_symbols=yes
10051 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'
10052 # Note: this linker hardcodes the directories in LIBPATH if there
10053 # are no directories specified by -L.
10054 hardcode_minus_L=yes
10055 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10056 # Neither direct hardcoding nor static linking is supported with a
10057 # broken collect2.
10058 hardcode_direct=unsupported
10059 fi
10060 ;;
9c60689e 10061
a243b558
JF
10062 aix[4-9]*)
10063 if test "$host_cpu" = ia64; then
10064 # On IA64, the linker does run time linking by default, so we don't
10065 # have to do anything special.
10066 aix_use_runtimelinking=no
10067 exp_sym_flag='-Bexport'
10068 no_entry_flag=""
10069 else
10070 # If we're using GNU nm, then we don't want the "-C" option.
10071 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10072 # Also, AIX nm treats weak defined symbols like other global
10073 # defined symbols, whereas GNU nm marks them as "W".
10074 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10075 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'
10076 else
10077 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'
10078 fi
10079 aix_use_runtimelinking=no
9c60689e 10080
a243b558
JF
10081 # Test if we are trying to use run time linking or normal
10082 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10083 # need to do runtime linking.
10084 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10085 for ld_flag in $LDFLAGS; do
10086 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10087 aix_use_runtimelinking=yes
10088 break
10089 fi
10090 done
10091 ;;
10092 esac
9c60689e 10093
a243b558
JF
10094 exp_sym_flag='-bexport'
10095 no_entry_flag='-bnoentry'
10096 fi
9c60689e 10097
a243b558
JF
10098 # When large executables or shared objects are built, AIX ld can
10099 # have problems creating the table of contents. If linking a library
10100 # or program results in "error TOC overflow" add -mminimal-toc to
10101 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10102 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9c60689e 10103
a243b558
JF
10104 archive_cmds=''
10105 hardcode_direct=yes
10106 hardcode_direct_absolute=yes
10107 hardcode_libdir_separator=':'
10108 link_all_deplibs=yes
10109 file_list_spec='${wl}-f,'
9c60689e 10110
a243b558
JF
10111 if test "$GCC" = yes; then
10112 case $host_os in aix4.[012]|aix4.[012].*)
10113 # We only want to do this on AIX 4.2 and lower, the check
10114 # below for broken collect2 doesn't work under 4.3+
10115 collect2name=`${CC} -print-prog-name=collect2`
10116 if test -f "$collect2name" &&
10117 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10118 then
10119 # We have reworked collect2
10120 :
10121 else
10122 # We have old collect2
10123 hardcode_direct=unsupported
10124 # It fails to find uninstalled libraries when the uninstalled
10125 # path is not listed in the libpath. Setting hardcode_minus_L
10126 # to unsupported forces relinking
10127 hardcode_minus_L=yes
10128 hardcode_libdir_flag_spec='-L$libdir'
10129 hardcode_libdir_separator=
10130 fi
10131 ;;
10132 esac
10133 shared_flag='-shared'
10134 if test "$aix_use_runtimelinking" = yes; then
10135 shared_flag="$shared_flag "'${wl}-G'
10136 fi
10137 else
10138 # not using gcc
10139 if test "$host_cpu" = ia64; then
10140 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10141 # chokes on -Wl,-G. The following line is correct:
10142 shared_flag='-G'
10143 else
10144 if test "$aix_use_runtimelinking" = yes; then
10145 shared_flag='${wl}-G'
10146 else
10147 shared_flag='${wl}-bM:SRE'
10148 fi
10149 fi
10150 fi
9c60689e 10151
a243b558
JF
10152 export_dynamic_flag_spec='${wl}-bexpall'
10153 # It seems that -bexpall does not export symbols beginning with
10154 # underscore (_), so it is better to generate a list of symbols to export.
10155 always_export_symbols=yes
10156 if test "$aix_use_runtimelinking" = yes; then
10157 # Warning - without using the other runtime loading flags (-brtl),
10158 # -berok will link without error, but may produce a broken library.
10159 allow_undefined_flag='-berok'
10160 # Determine the default libpath from the value encoded in an
10161 # empty executable.
10162 if test "${lt_cv_aix_libpath+set}" = set; then
10163 aix_libpath=$lt_cv_aix_libpath
9c60689e 10164else
a243b558 10165 if ${lt_cv_aix_libpath_+:} false; then :
9c60689e
DWT
10166 $as_echo_n "(cached) " >&6
10167else
a243b558 10168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9c60689e
DWT
10169/* end confdefs.h. */
10170
9c60689e
DWT
10171int
10172main ()
10173{
a243b558 10174
9c60689e
DWT
10175 ;
10176 return 0;
10177}
10178_ACEOF
10179if ac_fn_c_try_link "$LINENO"; then :
a243b558
JF
10180
10181 lt_aix_libpath_sed='
10182 /Import File Strings/,/^$/ {
10183 /^0/ {
10184 s/^0 *\([^ ]*\) *$/\1/
10185 p
10186 }
10187 }'
10188 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10189 # Check for a 64-bit object if we didn't find anything.
10190 if test -z "$lt_cv_aix_libpath_"; then
10191 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10192 fi
9c60689e
DWT
10193fi
10194rm -f core conftest.err conftest.$ac_objext \
10195 conftest$ac_exeext conftest.$ac_ext
a243b558
JF
10196 if test -z "$lt_cv_aix_libpath_"; then
10197 lt_cv_aix_libpath_="/usr/lib:/lib"
10198 fi
9c60689e
DWT
10199
10200fi
10201
a243b558
JF
10202 aix_libpath=$lt_cv_aix_libpath_
10203fi
9c60689e 10204
a243b558
JF
10205 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10206 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"
10207 else
10208 if test "$host_cpu" = ia64; then
10209 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10210 allow_undefined_flag="-z nodefs"
10211 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"
10212 else
10213 # Determine the default libpath from the value encoded in an
10214 # empty executable.
10215 if test "${lt_cv_aix_libpath+set}" = set; then
10216 aix_libpath=$lt_cv_aix_libpath
9c60689e 10217else
a243b558 10218 if ${lt_cv_aix_libpath_+:} false; then :
9c60689e
DWT
10219 $as_echo_n "(cached) " >&6
10220else
a243b558 10221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9c60689e
DWT
10222/* end confdefs.h. */
10223
9c60689e
DWT
10224int
10225main ()
10226{
a243b558 10227
9c60689e
DWT
10228 ;
10229 return 0;
10230}
10231_ACEOF
10232if ac_fn_c_try_link "$LINENO"; then :
9c60689e 10233
a243b558
JF
10234 lt_aix_libpath_sed='
10235 /Import File Strings/,/^$/ {
10236 /^0/ {
10237 s/^0 *\([^ ]*\) *$/\1/
10238 p
10239 }
10240 }'
10241 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10242 # Check for a 64-bit object if we didn't find anything.
10243 if test -z "$lt_cv_aix_libpath_"; then
10244 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10245 fi
9c60689e
DWT
10246fi
10247rm -f core conftest.err conftest.$ac_objext \
10248 conftest$ac_exeext conftest.$ac_ext
a243b558
JF
10249 if test -z "$lt_cv_aix_libpath_"; then
10250 lt_cv_aix_libpath_="/usr/lib:/lib"
10251 fi
10252
9c60689e 10253fi
9c60689e 10254
a243b558
JF
10255 aix_libpath=$lt_cv_aix_libpath_
10256fi
10257
10258 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10259 # Warning - without using the other run time loading flags,
10260 # -berok will link without error, but may produce a broken library.
10261 no_undefined_flag=' ${wl}-bernotok'
10262 allow_undefined_flag=' ${wl}-berok'
10263 if test "$with_gnu_ld" = yes; then
10264 # We only use this code for GNU lds that support --whole-archive.
10265 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10266 else
10267 # Exported symbols can be pulled into shared objects from archives
10268 whole_archive_flag_spec='$convenience'
10269 fi
10270 archive_cmds_need_lc=yes
10271 # This is similar to how AIX traditionally builds its shared libraries.
10272 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'
10273 fi
10274 fi
10275 ;;
10276
10277 amigaos*)
10278 case $host_cpu in
10279 powerpc)
10280 # see comment about AmigaOS4 .so support
10281 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10282 archive_expsym_cmds=''
10283 ;;
10284 m68k)
10285 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)'
10286 hardcode_libdir_flag_spec='-L$libdir'
10287 hardcode_minus_L=yes
10288 ;;
10289 esac
10290 ;;
10291
10292 bsdi[45]*)
10293 export_dynamic_flag_spec=-rdynamic
10294 ;;
10295
10296 cygwin* | mingw* | pw32* | cegcc*)
10297 # When not using gcc, we currently assume that we are using
10298 # Microsoft Visual C++.
10299 # hardcode_libdir_flag_spec is actually meaningless, as there is
10300 # no search path for DLLs.
10301 case $cc_basename in
10302 cl*)
10303 # Native MSVC
10304 hardcode_libdir_flag_spec=' '
10305 allow_undefined_flag=unsupported
10306 always_export_symbols=yes
10307 file_list_spec='@'
10308 # Tell ltmain to make .lib files, not .a files.
10309 libext=lib
10310 # Tell ltmain to make .dll files, not .so files.
10311 shrext_cmds=".dll"
10312 # FIXME: Setting linknames here is a bad hack.
10313 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10314 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10315 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10316 else
10317 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10318 fi~
10319 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10320 linknames='
10321 # The linker will not automatically build a static lib if we build a DLL.
10322 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10323 enable_shared_with_static_runtimes=yes
10324 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10325 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10326 # Don't use ranlib
10327 old_postinstall_cmds='chmod 644 $oldlib'
10328 postlink_cmds='lt_outputfile="@OUTPUT@"~
10329 lt_tool_outputfile="@TOOL_OUTPUT@"~
10330 case $lt_outputfile in
10331 *.exe|*.EXE) ;;
10332 *)
10333 lt_outputfile="$lt_outputfile.exe"
10334 lt_tool_outputfile="$lt_tool_outputfile.exe"
10335 ;;
10336 esac~
10337 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10338 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10339 $RM "$lt_outputfile.manifest";
10340 fi'
10341 ;;
10342 *)
10343 # Assume MSVC wrapper
10344 hardcode_libdir_flag_spec=' '
10345 allow_undefined_flag=unsupported
10346 # Tell ltmain to make .lib files, not .a files.
10347 libext=lib
10348 # Tell ltmain to make .dll files, not .so files.
10349 shrext_cmds=".dll"
10350 # FIXME: Setting linknames here is a bad hack.
10351 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10352 # The linker will automatically build a .lib file if we build a DLL.
10353 old_archive_from_new_cmds='true'
10354 # FIXME: Should let the user specify the lib program.
10355 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10356 enable_shared_with_static_runtimes=yes
10357 ;;
10358 esac
10359 ;;
10360
10361 darwin* | rhapsody*)
10362
10363
10364 archive_cmds_need_lc=no
10365 hardcode_direct=no
10366 hardcode_automatic=yes
10367 hardcode_shlibpath_var=unsupported
10368 if test "$lt_cv_ld_force_load" = "yes"; then
10369 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\"`'
10370
10371 else
10372 whole_archive_flag_spec=''
10373 fi
10374 link_all_deplibs=yes
10375 allow_undefined_flag="$_lt_dar_allow_undefined"
10376 case $cc_basename in
10377 ifort*) _lt_dar_can_shared=yes ;;
10378 *) _lt_dar_can_shared=$GCC ;;
10379 esac
10380 if test "$_lt_dar_can_shared" = "yes"; then
10381 output_verbose_link_cmd=func_echo_all
10382 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10383 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10384 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}"
10385 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}"
10386
10387 else
10388 ld_shlibs=no
10389 fi
10390
10391 ;;
10392
10393 dgux*)
10394 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10395 hardcode_libdir_flag_spec='-L$libdir'
10396 hardcode_shlibpath_var=no
10397 ;;
10398
10399 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10400 # support. Future versions do this automatically, but an explicit c++rt0.o
10401 # does not break anything, and helps significantly (at the cost of a little
10402 # extra space).
10403 freebsd2.2*)
10404 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10405 hardcode_libdir_flag_spec='-R$libdir'
10406 hardcode_direct=yes
10407 hardcode_shlibpath_var=no
10408 ;;
10409
10410 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10411 freebsd2.*)
10412 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10413 hardcode_direct=yes
10414 hardcode_minus_L=yes
10415 hardcode_shlibpath_var=no
10416 ;;
10417
10418 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10419 freebsd* | dragonfly*)
10420 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10421 hardcode_libdir_flag_spec='-R$libdir'
10422 hardcode_direct=yes
10423 hardcode_shlibpath_var=no
10424 ;;
10425
10426 hpux9*)
10427 if test "$GCC" = yes; then
10428 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'
10429 else
10430 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'
10431 fi
10432 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10433 hardcode_libdir_separator=:
10434 hardcode_direct=yes
10435
10436 # hardcode_minus_L: Not really in the search PATH,
10437 # but as the default location of the library.
10438 hardcode_minus_L=yes
10439 export_dynamic_flag_spec='${wl}-E'
10440 ;;
10441
10442 hpux10*)
10443 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10444 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10445 else
10446 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10447 fi
10448 if test "$with_gnu_ld" = no; then
10449 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10450 hardcode_libdir_separator=:
10451 hardcode_direct=yes
10452 hardcode_direct_absolute=yes
10453 export_dynamic_flag_spec='${wl}-E'
10454 # hardcode_minus_L: Not really in the search PATH,
10455 # but as the default location of the library.
10456 hardcode_minus_L=yes
10457 fi
10458 ;;
10459
10460 hpux11*)
10461 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10462 case $host_cpu in
10463 hppa*64*)
10464 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10465 ;;
10466 ia64*)
10467 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10468 ;;
10469 *)
10470 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10471 ;;
10472 esac
10473 else
10474 case $host_cpu in
10475 hppa*64*)
10476 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10477 ;;
10478 ia64*)
10479 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10480 ;;
10481 *)
10482
10483 # Older versions of the 11.00 compiler do not understand -b yet
10484 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10486$as_echo_n "checking if $CC understands -b... " >&6; }
10487if ${lt_cv_prog_compiler__b+:} false; then :
10488 $as_echo_n "(cached) " >&6
10489else
10490 lt_cv_prog_compiler__b=no
10491 save_LDFLAGS="$LDFLAGS"
10492 LDFLAGS="$LDFLAGS -b"
10493 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10494 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10495 # The linker can only warn and ignore the option if not recognized
10496 # So say no if there are warnings
10497 if test -s conftest.err; then
10498 # Append any errors to the config.log.
10499 cat conftest.err 1>&5
10500 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10501 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10502 if diff conftest.exp conftest.er2 >/dev/null; then
10503 lt_cv_prog_compiler__b=yes
10504 fi
10505 else
10506 lt_cv_prog_compiler__b=yes
10507 fi
10508 fi
10509 $RM -r conftest*
10510 LDFLAGS="$save_LDFLAGS"
10511
10512fi
10513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10514$as_echo "$lt_cv_prog_compiler__b" >&6; }
10515
10516if test x"$lt_cv_prog_compiler__b" = xyes; then
10517 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10518else
10519 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10520fi
10521
10522 ;;
10523 esac
10524 fi
10525 if test "$with_gnu_ld" = no; then
10526 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10527 hardcode_libdir_separator=:
10528
10529 case $host_cpu in
10530 hppa*64*|ia64*)
10531 hardcode_direct=no
10532 hardcode_shlibpath_var=no
10533 ;;
10534 *)
10535 hardcode_direct=yes
10536 hardcode_direct_absolute=yes
10537 export_dynamic_flag_spec='${wl}-E'
10538
10539 # hardcode_minus_L: Not really in the search PATH,
10540 # but as the default location of the library.
10541 hardcode_minus_L=yes
10542 ;;
10543 esac
10544 fi
10545 ;;
10546
10547 irix5* | irix6* | nonstopux*)
10548 if test "$GCC" = yes; then
10549 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'
10550 # Try to use the -exported_symbol ld option, if it does not
10551 # work, assume that -exports_file does not work either and
10552 # implicitly export all symbols.
10553 # This should be the same for all languages, so no per-tag cache variable.
10554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10555$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10556if ${lt_cv_irix_exported_symbol+:} false; then :
10557 $as_echo_n "(cached) " >&6
10558else
10559 save_LDFLAGS="$LDFLAGS"
10560 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10562/* end confdefs.h. */
10563int foo (void) { return 0; }
10564_ACEOF
10565if ac_fn_c_try_link "$LINENO"; then :
10566 lt_cv_irix_exported_symbol=yes
10567else
10568 lt_cv_irix_exported_symbol=no
10569fi
10570rm -f core conftest.err conftest.$ac_objext \
10571 conftest$ac_exeext conftest.$ac_ext
10572 LDFLAGS="$save_LDFLAGS"
10573fi
10574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10575$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10576 if test "$lt_cv_irix_exported_symbol" = yes; then
10577 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'
10578 fi
10579 else
10580 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'
10581 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'
10582 fi
10583 archive_cmds_need_lc='no'
10584 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10585 hardcode_libdir_separator=:
10586 inherit_rpath=yes
10587 link_all_deplibs=yes
10588 ;;
10589
10590 netbsd*)
10591 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10592 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10593 else
10594 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10595 fi
10596 hardcode_libdir_flag_spec='-R$libdir'
10597 hardcode_direct=yes
10598 hardcode_shlibpath_var=no
10599 ;;
10600
10601 newsos6)
10602 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10603 hardcode_direct=yes
10604 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10605 hardcode_libdir_separator=:
10606 hardcode_shlibpath_var=no
10607 ;;
10608
10609 *nto* | *qnx*)
10610 ;;
10611
10612 openbsd*)
10613 if test -f /usr/libexec/ld.so; then
10614 hardcode_direct=yes
10615 hardcode_shlibpath_var=no
10616 hardcode_direct_absolute=yes
10617 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10618 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10619 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10620 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10621 export_dynamic_flag_spec='${wl}-E'
10622 else
10623 case $host_os in
10624 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10625 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10626 hardcode_libdir_flag_spec='-R$libdir'
10627 ;;
10628 *)
10629 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10630 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10631 ;;
10632 esac
10633 fi
10634 else
10635 ld_shlibs=no
10636 fi
10637 ;;
10638
10639 os2*)
10640 hardcode_libdir_flag_spec='-L$libdir'
10641 hardcode_minus_L=yes
10642 allow_undefined_flag=unsupported
10643 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'
10644 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10645 ;;
10646
10647 osf3*)
10648 if test "$GCC" = yes; then
10649 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10650 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'
10651 else
10652 allow_undefined_flag=' -expect_unresolved \*'
10653 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'
10654 fi
10655 archive_cmds_need_lc='no'
10656 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10657 hardcode_libdir_separator=:
10658 ;;
10659
10660 osf4* | osf5*) # as osf3* with the addition of -msym flag
10661 if test "$GCC" = yes; then
10662 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10663 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'
10664 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10665 else
10666 allow_undefined_flag=' -expect_unresolved \*'
10667 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'
10668 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~
10669 $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'
10670
10671 # Both c and cxx compiler support -rpath directly
10672 hardcode_libdir_flag_spec='-rpath $libdir'
10673 fi
10674 archive_cmds_need_lc='no'
10675 hardcode_libdir_separator=:
10676 ;;
10677
10678 solaris*)
10679 no_undefined_flag=' -z defs'
10680 if test "$GCC" = yes; then
10681 wlarc='${wl}'
10682 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10683 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10684 $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'
10685 else
10686 case `$CC -V 2>&1` in
10687 *"Compilers 5.0"*)
10688 wlarc=''
10689 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10690 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10691 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10692 ;;
10693 *)
10694 wlarc='${wl}'
10695 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10696 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10697 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10698 ;;
10699 esac
10700 fi
10701 hardcode_libdir_flag_spec='-R$libdir'
10702 hardcode_shlibpath_var=no
10703 case $host_os in
10704 solaris2.[0-5] | solaris2.[0-5].*) ;;
10705 *)
10706 # The compiler driver will combine and reorder linker options,
10707 # but understands `-z linker_flag'. GCC discards it without `$wl',
10708 # but is careful enough not to reorder.
10709 # Supported since Solaris 2.6 (maybe 2.5.1?)
10710 if test "$GCC" = yes; then
10711 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10712 else
10713 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10714 fi
10715 ;;
10716 esac
10717 link_all_deplibs=yes
10718 ;;
10719
10720 sunos4*)
10721 if test "x$host_vendor" = xsequent; then
10722 # Use $CC to link under sequent, because it throws in some extra .o
10723 # files that make .init and .fini sections work.
10724 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10725 else
10726 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10727 fi
10728 hardcode_libdir_flag_spec='-L$libdir'
10729 hardcode_direct=yes
10730 hardcode_minus_L=yes
10731 hardcode_shlibpath_var=no
10732 ;;
10733
10734 sysv4)
10735 case $host_vendor in
10736 sni)
10737 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10738 hardcode_direct=yes # is this really true???
10739 ;;
10740 siemens)
10741 ## LD is ld it makes a PLAMLIB
10742 ## CC just makes a GrossModule.
10743 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10744 reload_cmds='$CC -r -o $output$reload_objs'
10745 hardcode_direct=no
10746 ;;
10747 motorola)
10748 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10749 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10750 ;;
10751 esac
10752 runpath_var='LD_RUN_PATH'
10753 hardcode_shlibpath_var=no
10754 ;;
10755
10756 sysv4.3*)
10757 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10758 hardcode_shlibpath_var=no
10759 export_dynamic_flag_spec='-Bexport'
10760 ;;
10761
10762 sysv4*MP*)
10763 if test -d /usr/nec; then
10764 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10765 hardcode_shlibpath_var=no
10766 runpath_var=LD_RUN_PATH
10767 hardcode_runpath_var=yes
10768 ld_shlibs=yes
10769 fi
10770 ;;
10771
10772 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10773 no_undefined_flag='${wl}-z,text'
10774 archive_cmds_need_lc=no
10775 hardcode_shlibpath_var=no
10776 runpath_var='LD_RUN_PATH'
10777
10778 if test "$GCC" = yes; then
10779 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10780 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10781 else
10782 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10783 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10784 fi
10785 ;;
10786
10787 sysv5* | sco3.2v5* | sco5v6*)
10788 # Note: We can NOT use -z defs as we might desire, because we do not
10789 # link with -lc, and that would cause any symbols used from libc to
10790 # always be unresolved, which means just about no library would
10791 # ever link correctly. If we're not using GNU ld we use -z text
10792 # though, which does catch some bad symbols but isn't as heavy-handed
10793 # as -z defs.
10794 no_undefined_flag='${wl}-z,text'
10795 allow_undefined_flag='${wl}-z,nodefs'
10796 archive_cmds_need_lc=no
10797 hardcode_shlibpath_var=no
10798 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10799 hardcode_libdir_separator=':'
10800 link_all_deplibs=yes
10801 export_dynamic_flag_spec='${wl}-Bexport'
10802 runpath_var='LD_RUN_PATH'
10803
10804 if test "$GCC" = yes; then
10805 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10806 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10807 else
10808 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10809 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10810 fi
10811 ;;
10812
10813 uts4*)
10814 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10815 hardcode_libdir_flag_spec='-L$libdir'
10816 hardcode_shlibpath_var=no
10817 ;;
10818
10819 *)
10820 ld_shlibs=no
10821 ;;
10822 esac
10823
10824 if test x$host_vendor = xsni; then
10825 case $host in
10826 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10827 export_dynamic_flag_spec='${wl}-Blargedynsym'
10828 ;;
10829 esac
10830 fi
10831 fi
10832
10833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10834$as_echo "$ld_shlibs" >&6; }
10835test "$ld_shlibs" = no && can_build_shared=no
10836
10837with_gnu_ld=$with_gnu_ld
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853#
10854# Do we need to explicitly link libc?
10855#
10856case "x$archive_cmds_need_lc" in
10857x|xyes)
10858 # Assume -lc should be added
10859 archive_cmds_need_lc=yes
10860
10861 if test "$enable_shared" = yes && test "$GCC" = yes; then
10862 case $archive_cmds in
10863 *'~'*)
10864 # FIXME: we may have to deal with multi-command sequences.
10865 ;;
10866 '$CC '*)
10867 # Test whether the compiler implicitly links with -lc since on some
10868 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10869 # to ld, don't add -lc before -lgcc.
10870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10871$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10872if ${lt_cv_archive_cmds_need_lc+:} false; then :
10873 $as_echo_n "(cached) " >&6
10874else
10875 $RM -r conftest*
10876 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10877
10878 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10879 (eval $ac_compile) 2>&5
10880 ac_status=$?
10881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10882 test $ac_status = 0; } 2>conftest.err; then
10883 soname=conftest
10884 lib=conftest
10885 libobjs=conftest.$ac_objext
10886 deplibs=
10887 wl=$lt_prog_compiler_wl
10888 pic_flag=$lt_prog_compiler_pic
10889 compiler_flags=-v
10890 linker_flags=-v
10891 verstring=
10892 output_objdir=.
10893 libname=conftest
10894 lt_save_allow_undefined_flag=$allow_undefined_flag
10895 allow_undefined_flag=
10896 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10897 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10898 ac_status=$?
10899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10900 test $ac_status = 0; }
10901 then
10902 lt_cv_archive_cmds_need_lc=no
10903 else
10904 lt_cv_archive_cmds_need_lc=yes
10905 fi
10906 allow_undefined_flag=$lt_save_allow_undefined_flag
10907 else
10908 cat conftest.err 1>&5
10909 fi
10910 $RM -r conftest*
10911
10912fi
10913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10914$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10915 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10916 ;;
10917 esac
10918 fi
10919 ;;
10920esac
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
11071
11072
11073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11074$as_echo_n "checking dynamic linker characteristics... " >&6; }
11075
11076if test "$GCC" = yes; then
11077 case $host_os in
11078 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11079 *) lt_awk_arg="/^libraries:/" ;;
11080 esac
11081 case $host_os in
11082 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11083 *) lt_sed_strip_eq="s,=/,/,g" ;;
11084 esac
11085 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11086 case $lt_search_path_spec in
11087 *\;*)
11088 # if the path contains ";" then we assume it to be the separator
11089 # otherwise default to the standard path separator (i.e. ":") - it is
11090 # assumed that no part of a normal pathname contains ";" but that should
11091 # okay in the real world where ";" in dirpaths is itself problematic.
11092 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11093 ;;
11094 *)
11095 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11096 ;;
11097 esac
11098 # Ok, now we have the path, separated by spaces, we can step through it
11099 # and add multilib dir if necessary.
11100 lt_tmp_lt_search_path_spec=
11101 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11102 for lt_sys_path in $lt_search_path_spec; do
11103 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11104 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11105 else
11106 test -d "$lt_sys_path" && \
11107 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11108 fi
11109 done
11110 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11111BEGIN {RS=" "; FS="/|\n";} {
11112 lt_foo="";
11113 lt_count=0;
11114 for (lt_i = NF; lt_i > 0; lt_i--) {
11115 if ($lt_i != "" && $lt_i != ".") {
11116 if ($lt_i == "..") {
11117 lt_count++;
11118 } else {
11119 if (lt_count == 0) {
11120 lt_foo="/" $lt_i lt_foo;
11121 } else {
11122 lt_count--;
11123 }
11124 }
11125 }
11126 }
11127 if (lt_foo != "") { lt_freq[lt_foo]++; }
11128 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11129}'`
11130 # AWK program above erroneously prepends '/' to C:/dos/paths
11131 # for these hosts.
11132 case $host_os in
11133 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11134 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11135 esac
11136 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11137else
11138 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11139fi
11140library_names_spec=
11141libname_spec='lib$name'
11142soname_spec=
11143shrext_cmds=".so"
11144postinstall_cmds=
11145postuninstall_cmds=
11146finish_cmds=
11147finish_eval=
11148shlibpath_var=
11149shlibpath_overrides_runpath=unknown
11150version_type=none
11151dynamic_linker="$host_os ld.so"
11152sys_lib_dlsearch_path_spec="/lib /usr/lib"
11153need_lib_prefix=unknown
11154hardcode_into_libs=no
11155
11156# when you set need_version to no, make sure it does not cause -set_version
11157# flags to be left without arguments
11158need_version=unknown
11159
11160case $host_os in
11161aix3*)
11162 version_type=linux # correct to gnu/linux during the next big refactor
11163 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11164 shlibpath_var=LIBPATH
11165
11166 # AIX 3 has no versioning support, so we append a major version to the name.
11167 soname_spec='${libname}${release}${shared_ext}$major'
11168 ;;
11169
11170aix[4-9]*)
11171 version_type=linux # correct to gnu/linux during the next big refactor
11172 need_lib_prefix=no
11173 need_version=no
11174 hardcode_into_libs=yes
11175 if test "$host_cpu" = ia64; then
11176 # AIX 5 supports IA64
11177 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11178 shlibpath_var=LD_LIBRARY_PATH
11179 else
11180 # With GCC up to 2.95.x, collect2 would create an import file
11181 # for dependence libraries. The import file would start with
11182 # the line `#! .'. This would cause the generated library to
11183 # depend on `.', always an invalid library. This was fixed in
11184 # development snapshots of GCC prior to 3.0.
11185 case $host_os in
11186 aix4 | aix4.[01] | aix4.[01].*)
11187 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11188 echo ' yes '
11189 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11190 :
11191 else
11192 can_build_shared=no
11193 fi
11194 ;;
11195 esac
11196 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11197 # soname into executable. Probably we can add versioning support to
11198 # collect2, so additional links can be useful in future.
11199 if test "$aix_use_runtimelinking" = yes; then
11200 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11201 # instead of lib<name>.a to let people know that these are not
11202 # typical AIX shared libraries.
11203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11204 else
11205 # We preserve .a as extension for shared libraries through AIX4.2
11206 # and later when we are not doing run time linking.
11207 library_names_spec='${libname}${release}.a $libname.a'
11208 soname_spec='${libname}${release}${shared_ext}$major'
11209 fi
11210 shlibpath_var=LIBPATH
11211 fi
11212 ;;
11213
11214amigaos*)
11215 case $host_cpu in
11216 powerpc)
11217 # Since July 2007 AmigaOS4 officially supports .so libraries.
11218 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11220 ;;
11221 m68k)
11222 library_names_spec='$libname.ixlibrary $libname.a'
11223 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11224 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'
11225 ;;
11226 esac
11227 ;;
11228
11229beos*)
11230 library_names_spec='${libname}${shared_ext}'
11231 dynamic_linker="$host_os ld.so"
11232 shlibpath_var=LIBRARY_PATH
11233 ;;
11234
11235bsdi[45]*)
11236 version_type=linux # correct to gnu/linux during the next big refactor
11237 need_version=no
11238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11239 soname_spec='${libname}${release}${shared_ext}$major'
11240 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11241 shlibpath_var=LD_LIBRARY_PATH
11242 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11243 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11244 # the default ld.so.conf also contains /usr/contrib/lib and
11245 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11246 # libtool to hard-code these into programs
11247 ;;
11248
11249cygwin* | mingw* | pw32* | cegcc*)
11250 version_type=windows
11251 shrext_cmds=".dll"
11252 need_version=no
11253 need_lib_prefix=no
9c60689e 11254
a243b558
JF
11255 case $GCC,$cc_basename in
11256 yes,*)
11257 # gcc
11258 library_names_spec='$libname.dll.a'
11259 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11260 postinstall_cmds='base_file=`basename \${file}`~
11261 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11262 dldir=$destdir/`dirname \$dlpath`~
11263 test -d \$dldir || mkdir -p \$dldir~
11264 $install_prog $dir/$dlname \$dldir/$dlname~
11265 chmod a+x \$dldir/$dlname~
11266 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11267 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11268 fi'
11269 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11270 dlpath=$dir/\$dldll~
11271 $RM \$dlpath'
11272 shlibpath_overrides_runpath=yes
9c60689e 11273
a243b558
JF
11274 case $host_os in
11275 cygwin*)
11276 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11277 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9c60689e 11278
a243b558
JF
11279 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11280 ;;
11281 mingw* | cegcc*)
11282 # MinGW DLLs use traditional 'lib' prefix
11283 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11284 ;;
11285 pw32*)
11286 # pw32 DLLs use 'pw' prefix rather than 'lib'
11287 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11288 ;;
11289 esac
11290 dynamic_linker='Win32 ld.exe'
11291 ;;
9c60689e 11292
a243b558
JF
11293 *,cl*)
11294 # Native MSVC
11295 libname_spec='$name'
11296 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11297 library_names_spec='${libname}.dll.lib'
9c60689e 11298
a243b558
JF
11299 case $build_os in
11300 mingw*)
11301 sys_lib_search_path_spec=
11302 lt_save_ifs=$IFS
11303 IFS=';'
11304 for lt_path in $LIB
11305 do
11306 IFS=$lt_save_ifs
11307 # Let DOS variable expansion print the short 8.3 style file name.
11308 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11309 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11310 done
11311 IFS=$lt_save_ifs
11312 # Convert to MSYS style.
11313 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11314 ;;
11315 cygwin*)
11316 # Convert to unix form, then to dos form, then back to unix form
11317 # but this time dos style (no spaces!) so that the unix form looks
11318 # like /cygdrive/c/PROGRA~1:/cygdr...
11319 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11320 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11321 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11322 ;;
11323 *)
11324 sys_lib_search_path_spec="$LIB"
11325 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11326 # It is most probably a Windows format PATH.
11327 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11328 else
11329 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11330 fi
11331 # FIXME: find the short name or the path components, as spaces are
11332 # common. (e.g. "Program Files" -> "PROGRA~1")
11333 ;;
11334 esac
11335
11336 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11337 postinstall_cmds='base_file=`basename \${file}`~
11338 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11339 dldir=$destdir/`dirname \$dlpath`~
11340 test -d \$dldir || mkdir -p \$dldir~
11341 $install_prog $dir/$dlname \$dldir/$dlname'
11342 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11343 dlpath=$dir/\$dldll~
11344 $RM \$dlpath'
11345 shlibpath_overrides_runpath=yes
11346 dynamic_linker='Win32 link.exe'
11347 ;;
9c60689e 11348
a243b558
JF
11349 *)
11350 # Assume MSVC wrapper
11351 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11352 dynamic_linker='Win32 ld.exe'
11353 ;;
11354 esac
11355 # FIXME: first we should search . and the directory the executable is in
11356 shlibpath_var=PATH
11357 ;;
9c60689e 11358
a243b558
JF
11359darwin* | rhapsody*)
11360 dynamic_linker="$host_os dyld"
11361 version_type=darwin
11362 need_lib_prefix=no
11363 need_version=no
11364 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11365 soname_spec='${libname}${release}${major}$shared_ext'
11366 shlibpath_overrides_runpath=yes
11367 shlibpath_var=DYLD_LIBRARY_PATH
11368 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9c60689e 11369
a243b558
JF
11370 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11371 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11372 ;;
9c60689e 11373
a243b558
JF
11374dgux*)
11375 version_type=linux # correct to gnu/linux during the next big refactor
11376 need_lib_prefix=no
11377 need_version=no
11378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11379 soname_spec='${libname}${release}${shared_ext}$major'
11380 shlibpath_var=LD_LIBRARY_PATH
11381 ;;
11382
11383freebsd* | dragonfly*)
11384 # DragonFly does not have aout. When/if they implement a new
11385 # versioning mechanism, adjust this.
11386 if test -x /usr/bin/objformat; then
11387 objformat=`/usr/bin/objformat`
11388 else
11389 case $host_os in
11390 freebsd[23].*) objformat=aout ;;
11391 *) objformat=elf ;;
11392 esac
11393 fi
11394 version_type=freebsd-$objformat
11395 case $version_type in
11396 freebsd-elf*)
11397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11398 need_version=no
11399 need_lib_prefix=no
11400 ;;
11401 freebsd-*)
11402 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11403 need_version=yes
11404 ;;
11405 esac
11406 shlibpath_var=LD_LIBRARY_PATH
11407 case $host_os in
11408 freebsd2.*)
11409 shlibpath_overrides_runpath=yes
11410 ;;
11411 freebsd3.[01]* | freebsdelf3.[01]*)
11412 shlibpath_overrides_runpath=yes
11413 hardcode_into_libs=yes
11414 ;;
11415 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11416 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11417 shlibpath_overrides_runpath=no
11418 hardcode_into_libs=yes
11419 ;;
11420 *) # from 4.6 on, and DragonFly
11421 shlibpath_overrides_runpath=yes
11422 hardcode_into_libs=yes
11423 ;;
11424 esac
11425 ;;
9c60689e 11426
a243b558
JF
11427gnu*)
11428 version_type=linux # correct to gnu/linux during the next big refactor
11429 need_lib_prefix=no
11430 need_version=no
11431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11432 soname_spec='${libname}${release}${shared_ext}$major'
11433 shlibpath_var=LD_LIBRARY_PATH
11434 shlibpath_overrides_runpath=no
11435 hardcode_into_libs=yes
11436 ;;
9c60689e 11437
a243b558
JF
11438haiku*)
11439 version_type=linux # correct to gnu/linux during the next big refactor
11440 need_lib_prefix=no
11441 need_version=no
11442 dynamic_linker="$host_os runtime_loader"
11443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11444 soname_spec='${libname}${release}${shared_ext}$major'
11445 shlibpath_var=LIBRARY_PATH
11446 shlibpath_overrides_runpath=yes
11447 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11448 hardcode_into_libs=yes
11449 ;;
9c60689e 11450
a243b558
JF
11451hpux9* | hpux10* | hpux11*)
11452 # Give a soname corresponding to the major version so that dld.sl refuses to
11453 # link against other versions.
11454 version_type=sunos
11455 need_lib_prefix=no
11456 need_version=no
11457 case $host_cpu in
11458 ia64*)
11459 shrext_cmds='.so'
11460 hardcode_into_libs=yes
11461 dynamic_linker="$host_os dld.so"
11462 shlibpath_var=LD_LIBRARY_PATH
11463 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11465 soname_spec='${libname}${release}${shared_ext}$major'
11466 if test "X$HPUX_IA64_MODE" = X32; then
11467 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11468 else
11469 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11470 fi
11471 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11472 ;;
11473 hppa*64*)
11474 shrext_cmds='.sl'
11475 hardcode_into_libs=yes
11476 dynamic_linker="$host_os dld.sl"
11477 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11478 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11480 soname_spec='${libname}${release}${shared_ext}$major'
11481 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11482 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11483 ;;
11484 *)
11485 shrext_cmds='.sl'
11486 dynamic_linker="$host_os dld.sl"
11487 shlibpath_var=SHLIB_PATH
11488 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11490 soname_spec='${libname}${release}${shared_ext}$major'
9c60689e
DWT
11491 ;;
11492 esac
a243b558
JF
11493 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11494 postinstall_cmds='chmod 555 $lib'
11495 # or fails outright, so override atomically:
11496 install_override_mode=555
11497 ;;
9c60689e 11498
a243b558
JF
11499interix[3-9]*)
11500 version_type=linux # correct to gnu/linux during the next big refactor
11501 need_lib_prefix=no
11502 need_version=no
11503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11504 soname_spec='${libname}${release}${shared_ext}$major'
11505 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11506 shlibpath_var=LD_LIBRARY_PATH
11507 shlibpath_overrides_runpath=no
11508 hardcode_into_libs=yes
11509 ;;
9c60689e 11510
a243b558
JF
11511irix5* | irix6* | nonstopux*)
11512 case $host_os in
11513 nonstopux*) version_type=nonstopux ;;
11514 *)
11515 if test "$lt_cv_prog_gnu_ld" = yes; then
11516 version_type=linux # correct to gnu/linux during the next big refactor
11517 else
11518 version_type=irix
11519 fi ;;
11520 esac
11521 need_lib_prefix=no
11522 need_version=no
11523 soname_spec='${libname}${release}${shared_ext}$major'
11524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11525 case $host_os in
11526 irix5* | nonstopux*)
11527 libsuff= shlibsuff=
11528 ;;
11529 *)
11530 case $LD in # libtool.m4 will add one of these switches to LD
11531 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11532 libsuff= shlibsuff= libmagic=32-bit;;
11533 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11534 libsuff=32 shlibsuff=N32 libmagic=N32;;
11535 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11536 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11537 *) libsuff= shlibsuff= libmagic=never-match;;
11538 esac
11539 ;;
11540 esac
11541 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11542 shlibpath_overrides_runpath=no
11543 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11544 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11545 hardcode_into_libs=yes
11546 ;;
9c60689e 11547
a243b558
JF
11548# No shared lib support for Linux oldld, aout, or coff.
11549linux*oldld* | linux*aout* | linux*coff*)
11550 dynamic_linker=no
11551 ;;
9c60689e 11552
a243b558
JF
11553# This must be glibc/ELF.
11554linux* | k*bsd*-gnu | kopensolaris*-gnu)
11555 version_type=linux # correct to gnu/linux during the next big refactor
11556 need_lib_prefix=no
11557 need_version=no
11558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11559 soname_spec='${libname}${release}${shared_ext}$major'
11560 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11561 shlibpath_var=LD_LIBRARY_PATH
11562 shlibpath_overrides_runpath=no
9c60689e 11563
a243b558
JF
11564 # Some binutils ld are patched to set DT_RUNPATH
11565 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
9c60689e
DWT
11566 $as_echo_n "(cached) " >&6
11567else
a243b558
JF
11568 lt_cv_shlibpath_overrides_runpath=no
11569 save_LDFLAGS=$LDFLAGS
11570 save_libdir=$libdir
11571 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11572 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11574/* end confdefs.h. */
ee134472 11575
a243b558
JF
11576int
11577main ()
9c60689e 11578{
9c60689e 11579
a243b558
JF
11580 ;
11581 return 0;
11582}
11583_ACEOF
11584if ac_fn_c_try_link "$LINENO"; then :
11585 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11586 lt_cv_shlibpath_overrides_runpath=yes
11587fi
11588fi
11589rm -f core conftest.err conftest.$ac_objext \
11590 conftest$ac_exeext conftest.$ac_ext
11591 LDFLAGS=$save_LDFLAGS
11592 libdir=$save_libdir
9c60689e 11593
a243b558 11594fi
9c60689e 11595
a243b558 11596 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
9c60689e 11597
a243b558
JF
11598 # This implies no fast_install, which is unacceptable.
11599 # Some rework will be needed to allow for fast_install
11600 # before this can be enabled.
11601 hardcode_into_libs=yes
9c60689e 11602
a243b558
JF
11603 # Append ld.so.conf contents to the search path
11604 if test -f /etc/ld.so.conf; then
11605 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' ' '`
11606 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11607 fi
ee134472 11608
a243b558
JF
11609 # We used to test for /lib/ld.so.1 and disable shared libraries on
11610 # powerpc, because MkLinux only supported shared libraries with the
11611 # GNU dynamic linker. Since this was broken with cross compilers,
11612 # most powerpc-linux boxes support dynamic linking these days and
11613 # people can always --disable-shared, the test was removed, and we
11614 # assume the GNU/Linux dynamic linker is in use.
11615 dynamic_linker='GNU/Linux ld.so'
11616 ;;
9c60689e 11617
a243b558
JF
11618netbsd*)
11619 version_type=sunos
11620 need_lib_prefix=no
11621 need_version=no
11622 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11624 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11625 dynamic_linker='NetBSD (a.out) ld.so'
9c60689e 11626 else
a243b558
JF
11627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11628 soname_spec='${libname}${release}${shared_ext}$major'
11629 dynamic_linker='NetBSD ld.elf_so'
9c60689e 11630 fi
a243b558
JF
11631 shlibpath_var=LD_LIBRARY_PATH
11632 shlibpath_overrides_runpath=yes
11633 hardcode_into_libs=yes
11634 ;;
9c60689e 11635
a243b558
JF
11636newsos6)
11637 version_type=linux # correct to gnu/linux during the next big refactor
11638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11639 shlibpath_var=LD_LIBRARY_PATH
11640 shlibpath_overrides_runpath=yes
11641 ;;
9c60689e 11642
a243b558
JF
11643*nto* | *qnx*)
11644 version_type=qnx
11645 need_lib_prefix=no
11646 need_version=no
11647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11648 soname_spec='${libname}${release}${shared_ext}$major'
11649 shlibpath_var=LD_LIBRARY_PATH
11650 shlibpath_overrides_runpath=no
11651 hardcode_into_libs=yes
11652 dynamic_linker='ldqnx.so'
11653 ;;
9c60689e 11654
a243b558
JF
11655openbsd*)
11656 version_type=sunos
11657 sys_lib_dlsearch_path_spec="/usr/lib"
11658 need_lib_prefix=no
11659 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11660 case $host_os in
11661 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11662 *) need_version=no ;;
9c60689e 11663 esac
a243b558
JF
11664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11665 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11666 shlibpath_var=LD_LIBRARY_PATH
11667 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11668 case $host_os in
11669 openbsd2.[89] | openbsd2.[89].*)
11670 shlibpath_overrides_runpath=no
11671 ;;
11672 *)
11673 shlibpath_overrides_runpath=yes
11674 ;;
11675 esac
11676 else
11677 shlibpath_overrides_runpath=yes
11678 fi
11679 ;;
9c60689e 11680
a243b558
JF
11681os2*)
11682 libname_spec='$name'
11683 shrext_cmds=".dll"
11684 need_lib_prefix=no
11685 library_names_spec='$libname${shared_ext} $libname.a'
11686 dynamic_linker='OS/2 ld.exe'
11687 shlibpath_var=LIBPATH
11688 ;;
9c60689e 11689
a243b558
JF
11690osf3* | osf4* | osf5*)
11691 version_type=osf
11692 need_lib_prefix=no
11693 need_version=no
11694 soname_spec='${libname}${release}${shared_ext}$major'
11695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11696 shlibpath_var=LD_LIBRARY_PATH
11697 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11698 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11699 ;;
11700
11701rdos*)
11702 dynamic_linker=no
11703 ;;
11704
11705solaris*)
11706 version_type=linux # correct to gnu/linux during the next big refactor
11707 need_lib_prefix=no
11708 need_version=no
11709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11710 soname_spec='${libname}${release}${shared_ext}$major'
11711 shlibpath_var=LD_LIBRARY_PATH
11712 shlibpath_overrides_runpath=yes
11713 hardcode_into_libs=yes
11714 # ldd complains unless libraries are executable
11715 postinstall_cmds='chmod +x $lib'
11716 ;;
9c60689e 11717
a243b558
JF
11718sunos4*)
11719 version_type=sunos
11720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11721 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11722 shlibpath_var=LD_LIBRARY_PATH
11723 shlibpath_overrides_runpath=yes
11724 if test "$with_gnu_ld" = yes; then
11725 need_lib_prefix=no
11726 fi
11727 need_version=yes
11728 ;;
9c60689e 11729
a243b558
JF
11730sysv4 | sysv4.3*)
11731 version_type=linux # correct to gnu/linux during the next big refactor
11732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11733 soname_spec='${libname}${release}${shared_ext}$major'
11734 shlibpath_var=LD_LIBRARY_PATH
11735 case $host_vendor in
11736 sni)
11737 shlibpath_overrides_runpath=no
11738 need_lib_prefix=no
11739 runpath_var=LD_RUN_PATH
11740 ;;
11741 siemens)
11742 need_lib_prefix=no
11743 ;;
11744 motorola)
11745 need_lib_prefix=no
11746 need_version=no
11747 shlibpath_overrides_runpath=no
11748 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11749 ;;
11750 esac
11751 ;;
9c60689e 11752
a243b558
JF
11753sysv4*MP*)
11754 if test -d /usr/nec ;then
11755 version_type=linux # correct to gnu/linux during the next big refactor
11756 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11757 soname_spec='$libname${shared_ext}.$major'
11758 shlibpath_var=LD_LIBRARY_PATH
11759 fi
11760 ;;
9c60689e 11761
a243b558
JF
11762sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11763 version_type=freebsd-elf
11764 need_lib_prefix=no
11765 need_version=no
11766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11767 soname_spec='${libname}${release}${shared_ext}$major'
11768 shlibpath_var=LD_LIBRARY_PATH
11769 shlibpath_overrides_runpath=yes
11770 hardcode_into_libs=yes
11771 if test "$with_gnu_ld" = yes; then
11772 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11773 else
11774 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11775 case $host_os in
11776 sco3.2v5*)
11777 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11778 ;;
11779 esac
11780 fi
11781 sys_lib_dlsearch_path_spec='/usr/lib'
11782 ;;
9c60689e 11783
a243b558
JF
11784tpf*)
11785 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11786 version_type=linux # correct to gnu/linux during the next big refactor
11787 need_lib_prefix=no
11788 need_version=no
11789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11790 shlibpath_var=LD_LIBRARY_PATH
11791 shlibpath_overrides_runpath=no
11792 hardcode_into_libs=yes
11793 ;;
9c60689e 11794
a243b558
JF
11795uts4*)
11796 version_type=linux # correct to gnu/linux during the next big refactor
11797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11798 soname_spec='${libname}${release}${shared_ext}$major'
11799 shlibpath_var=LD_LIBRARY_PATH
11800 ;;
9c60689e 11801
a243b558
JF
11802*)
11803 dynamic_linker=no
11804 ;;
11805esac
11806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11807$as_echo "$dynamic_linker" >&6; }
11808test "$dynamic_linker" = no && can_build_shared=no
9c60689e 11809
a243b558
JF
11810variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11811if test "$GCC" = yes; then
11812 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11813fi
9c60689e 11814
a243b558
JF
11815if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11816 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11817fi
11818if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11819 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11820fi
9c60689e
DWT
11821
11822
11823
11824
11825
11826
11827
11828
9c60689e
DWT
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
9c60689e 11841
9c60689e 11842
9c60689e 11843
9c60689e 11844
9c60689e
DWT
11845
11846
11847
11848
9c60689e 11849
9c60689e
DWT
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862
53ba6704
JF
11863
11864
9c60689e
DWT
11865
11866
11867
11868
9c60689e
DWT
11869
11870
3fd51f51 11871
66170b30
JF
11872
11873
11874
3fd51f51 11875
12833ad8
JF
11876
11877
11878
11879
3fd51f51 11880
3fd51f51
DWT
11881
11882
3fd51f51 11883
3fd51f51 11884
3fd51f51 11885
66170b30 11886
632b71ea 11887
632b71ea
DWT
11888
11889
790e5246 11890
66170b30 11891
9c60689e 11892
9c60689e
DWT
11893
11894
9c60689e 11895
9c60689e
DWT
11896
11897
66170b30 11898
66170b30 11899
9c60689e 11900
e9c9a47c
DWT
11901
11902
11903
66170b30
JF
11904
11905
66170b30 11906
e9c9a47c 11907
a243b558
JF
11908
11909
11910
11911
11912
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11914$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11915hardcode_action=
11916if test -n "$hardcode_libdir_flag_spec" ||
11917 test -n "$runpath_var" ||
11918 test "X$hardcode_automatic" = "Xyes" ; then
11919
11920 # We can hardcode non-existent directories.
11921 if test "$hardcode_direct" != no &&
11922 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11923 # have to relink, otherwise we might link with an installed library
11924 # when we should be linking with a yet-to-be-installed one
11925 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11926 test "$hardcode_minus_L" != no; then
11927 # Linking always hardcodes the temporary library directory.
11928 hardcode_action=relink
11929 else
11930 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11931 hardcode_action=immediate
9c60689e 11932 fi
e9c9a47c 11933else
a243b558
JF
11934 # We cannot hardcode anything, or else we can only hardcode existing
11935 # directories.
11936 hardcode_action=unsupported
11937fi
11938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11939$as_echo "$hardcode_action" >&6; }
11940
11941if test "$hardcode_action" = relink ||
11942 test "$inherit_rpath" = yes; then
11943 # Fast installation is not supported
11944 enable_fast_install=no
11945elif test "$shlibpath_overrides_runpath" = yes ||
11946 test "$enable_shared" = no; then
11947 # Fast installation is not necessary
11948 enable_fast_install=needless
9c60689e 11949fi
9c60689e 11950
9c60689e 11951
66170b30 11952
66170b30 11953
9c60689e 11954
a243b558
JF
11955
11956 if test "x$enable_dlopen" != xyes; then
11957 enable_dlopen=unknown
11958 enable_dlopen_self=unknown
11959 enable_dlopen_self_static=unknown
66170b30 11960else
a243b558
JF
11961 lt_cv_dlopen=no
11962 lt_cv_dlopen_libs=
66170b30 11963
a243b558
JF
11964 case $host_os in
11965 beos*)
11966 lt_cv_dlopen="load_add_on"
11967 lt_cv_dlopen_libs=
11968 lt_cv_dlopen_self=yes
11969 ;;
66170b30 11970
a243b558
JF
11971 mingw* | pw32* | cegcc*)
11972 lt_cv_dlopen="LoadLibrary"
11973 lt_cv_dlopen_libs=
11974 ;;
66170b30 11975
a243b558
JF
11976 cygwin*)
11977 lt_cv_dlopen="dlopen"
11978 lt_cv_dlopen_libs=
11979 ;;
66170b30 11980
a243b558
JF
11981 darwin*)
11982 # if libdl is installed we need to link against it
11983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11984$as_echo_n "checking for dlopen in -ldl... " >&6; }
11985if ${ac_cv_lib_dl_dlopen+:} false; then :
11986 $as_echo_n "(cached) " >&6
11987else
11988 ac_check_lib_save_LIBS=$LIBS
11989LIBS="-ldl $LIBS"
11990cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11991/* end confdefs.h. */
66170b30 11992
a243b558
JF
11993/* Override any GCC internal prototype to avoid an error.
11994 Use char because int might match the return type of a GCC
11995 builtin and then its argument prototype would still apply. */
11996#ifdef __cplusplus
11997extern "C"
11998#endif
11999char dlopen ();
12000int
12001main ()
12002{
12003return dlopen ();
12004 ;
12005 return 0;
12006}
12007_ACEOF
12008if ac_fn_c_try_link "$LINENO"; then :
12009 ac_cv_lib_dl_dlopen=yes
12010else
12011 ac_cv_lib_dl_dlopen=no
66170b30 12012fi
a243b558
JF
12013rm -f core conftest.err conftest.$ac_objext \
12014 conftest$ac_exeext conftest.$ac_ext
12015LIBS=$ac_check_lib_save_LIBS
66170b30 12016fi
a243b558
JF
12017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12018$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12019if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12020 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12021else
66170b30 12022
a243b558
JF
12023 lt_cv_dlopen="dyld"
12024 lt_cv_dlopen_libs=
12025 lt_cv_dlopen_self=yes
66170b30 12026
a243b558 12027fi
9c60689e 12028
a243b558 12029 ;;
9c60689e 12030
a243b558
JF
12031 *)
12032 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12033if test "x$ac_cv_func_shl_load" = xyes; then :
12034 lt_cv_dlopen="shl_load"
12035else
12036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12037$as_echo_n "checking for shl_load in -ldld... " >&6; }
12038if ${ac_cv_lib_dld_shl_load+:} false; then :
12039 $as_echo_n "(cached) " >&6
12040else
12041 ac_check_lib_save_LIBS=$LIBS
12042LIBS="-ldld $LIBS"
12043cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12044/* end confdefs.h. */
66170b30 12045
a243b558
JF
12046/* Override any GCC internal prototype to avoid an error.
12047 Use char because int might match the return type of a GCC
12048 builtin and then its argument prototype would still apply. */
12049#ifdef __cplusplus
12050extern "C"
12051#endif
12052char shl_load ();
12053int
12054main ()
12055{
12056return shl_load ();
12057 ;
12058 return 0;
12059}
12060_ACEOF
12061if ac_fn_c_try_link "$LINENO"; then :
12062 ac_cv_lib_dld_shl_load=yes
66170b30 12063else
a243b558
JF
12064 ac_cv_lib_dld_shl_load=no
12065fi
12066rm -f core conftest.err conftest.$ac_objext \
12067 conftest$ac_exeext conftest.$ac_ext
12068LIBS=$ac_check_lib_save_LIBS
66170b30 12069fi
a243b558
JF
12070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12071$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12072if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12073 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12074else
12075 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12076if test "x$ac_cv_func_dlopen" = xyes; then :
12077 lt_cv_dlopen="dlopen"
12078else
12079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12080$as_echo_n "checking for dlopen in -ldl... " >&6; }
12081if ${ac_cv_lib_dl_dlopen+:} false; then :
12082 $as_echo_n "(cached) " >&6
12083else
12084 ac_check_lib_save_LIBS=$LIBS
12085LIBS="-ldl $LIBS"
12086cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12087/* end confdefs.h. */
e9c9a47c 12088
a243b558
JF
12089/* Override any GCC internal prototype to avoid an error.
12090 Use char because int might match the return type of a GCC
12091 builtin and then its argument prototype would still apply. */
12092#ifdef __cplusplus
12093extern "C"
12094#endif
12095char dlopen ();
12096int
12097main ()
12098{
12099return dlopen ();
12100 ;
12101 return 0;
12102}
12103_ACEOF
12104if ac_fn_c_try_link "$LINENO"; then :
12105 ac_cv_lib_dl_dlopen=yes
12106else
12107 ac_cv_lib_dl_dlopen=no
12108fi
12109rm -f core conftest.err conftest.$ac_objext \
12110 conftest$ac_exeext conftest.$ac_ext
12111LIBS=$ac_check_lib_save_LIBS
12112fi
12113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12114$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12115if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12116 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12117else
12118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12119$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12120if ${ac_cv_lib_svld_dlopen+:} false; then :
12121 $as_echo_n "(cached) " >&6
12122else
12123 ac_check_lib_save_LIBS=$LIBS
12124LIBS="-lsvld $LIBS"
12125cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12126/* end confdefs.h. */
12127
12128/* Override any GCC internal prototype to avoid an error.
12129 Use char because int might match the return type of a GCC
12130 builtin and then its argument prototype would still apply. */
12131#ifdef __cplusplus
12132extern "C"
12133#endif
12134char dlopen ();
12135int
12136main ()
12137{
12138return dlopen ();
12139 ;
12140 return 0;
12141}
12142_ACEOF
12143if ac_fn_c_try_link "$LINENO"; then :
12144 ac_cv_lib_svld_dlopen=yes
12145else
12146 ac_cv_lib_svld_dlopen=no
12147fi
12148rm -f core conftest.err conftest.$ac_objext \
12149 conftest$ac_exeext conftest.$ac_ext
12150LIBS=$ac_check_lib_save_LIBS
12151fi
12152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12153$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12154if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12155 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12156else
12157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12158$as_echo_n "checking for dld_link in -ldld... " >&6; }
12159if ${ac_cv_lib_dld_dld_link+:} false; then :
12160 $as_echo_n "(cached) " >&6
12161else
12162 ac_check_lib_save_LIBS=$LIBS
12163LIBS="-ldld $LIBS"
12164cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12165/* end confdefs.h. */
12166
12167/* Override any GCC internal prototype to avoid an error.
12168 Use char because int might match the return type of a GCC
12169 builtin and then its argument prototype would still apply. */
12170#ifdef __cplusplus
12171extern "C"
12172#endif
12173char dld_link ();
12174int
12175main ()
12176{
12177return dld_link ();
12178 ;
12179 return 0;
12180}
12181_ACEOF
12182if ac_fn_c_try_link "$LINENO"; then :
12183 ac_cv_lib_dld_dld_link=yes
9c60689e 12184else
a243b558
JF
12185 ac_cv_lib_dld_dld_link=no
12186fi
12187rm -f core conftest.err conftest.$ac_objext \
12188 conftest$ac_exeext conftest.$ac_ext
12189LIBS=$ac_check_lib_save_LIBS
12190fi
12191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12192$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12193if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12194 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
9c60689e
DWT
12195fi
12196
12197
a243b558 12198fi
66170b30 12199
66170b30 12200
a243b558 12201fi
66170b30 12202
66170b30
JF
12203
12204fi
e9c9a47c 12205
66170b30 12206
a243b558 12207fi
66170b30 12208
66170b30 12209
66170b30 12210fi
e9c9a47c 12211
a243b558
JF
12212 ;;
12213 esac
9c60689e 12214
a243b558
JF
12215 if test "x$lt_cv_dlopen" != xno; then
12216 enable_dlopen=yes
12217 else
12218 enable_dlopen=no
12219 fi
9c60689e 12220
a243b558
JF
12221 case $lt_cv_dlopen in
12222 dlopen)
12223 save_CPPFLAGS="$CPPFLAGS"
12224 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
66170b30 12225
a243b558
JF
12226 save_LDFLAGS="$LDFLAGS"
12227 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
66170b30 12228
a243b558
JF
12229 save_LIBS="$LIBS"
12230 LIBS="$lt_cv_dlopen_libs $LIBS"
3fd51f51 12231
a243b558
JF
12232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12233$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12234if ${lt_cv_dlopen_self+:} false; then :
12235 $as_echo_n "(cached) " >&6
e9c9a47c 12236else
a243b558
JF
12237 if test "$cross_compiling" = yes; then :
12238 lt_cv_dlopen_self=cross
12239else
12240 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12241 lt_status=$lt_dlunknown
12242 cat > conftest.$ac_ext <<_LT_EOF
12243#line $LINENO "configure"
12244#include "confdefs.h"
e9c9a47c 12245
a243b558
JF
12246#if HAVE_DLFCN_H
12247#include <dlfcn.h>
12248#endif
e9c9a47c 12249
a243b558 12250#include <stdio.h>
66170b30 12251
a243b558
JF
12252#ifdef RTLD_GLOBAL
12253# define LT_DLGLOBAL RTLD_GLOBAL
12254#else
12255# ifdef DL_GLOBAL
12256# define LT_DLGLOBAL DL_GLOBAL
12257# else
12258# define LT_DLGLOBAL 0
12259# endif
12260#endif
66170b30 12261
a243b558
JF
12262/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12263 find out it does not work in some platform. */
12264#ifndef LT_DLLAZY_OR_NOW
12265# ifdef RTLD_LAZY
12266# define LT_DLLAZY_OR_NOW RTLD_LAZY
12267# else
12268# ifdef DL_LAZY
12269# define LT_DLLAZY_OR_NOW DL_LAZY
12270# else
12271# ifdef RTLD_NOW
12272# define LT_DLLAZY_OR_NOW RTLD_NOW
12273# else
12274# ifdef DL_NOW
12275# define LT_DLLAZY_OR_NOW DL_NOW
12276# else
12277# define LT_DLLAZY_OR_NOW 0
12278# endif
12279# endif
12280# endif
12281# endif
12282#endif
e9c9a47c 12283
a243b558
JF
12284/* When -fvisbility=hidden is used, assume the code has been annotated
12285 correspondingly for the symbols needed. */
12286#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12287int fnord () __attribute__((visibility("default")));
12288#endif
e9c9a47c 12289
a243b558
JF
12290int fnord () { return 42; }
12291int main ()
12292{
12293 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12294 int status = $lt_dlunknown;
e9c9a47c 12295
a243b558
JF
12296 if (self)
12297 {
12298 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12299 else
12300 {
12301 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12302 else puts (dlerror ());
12303 }
12304 /* dlclose (self); */
12305 }
12306 else
12307 puts (dlerror ());
e9c9a47c 12308
a243b558
JF
12309 return status;
12310}
12311_LT_EOF
12312 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12313 (eval $ac_link) 2>&5
12314 ac_status=$?
12315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12316 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12317 (./conftest; exit; ) >&5 2>/dev/null
12318 lt_status=$?
12319 case x$lt_status in
12320 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12321 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12322 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12323 esac
12324 else :
12325 # compilation failed
12326 lt_cv_dlopen_self=no
12327 fi
12328fi
12329rm -fr conftest*
e9c9a47c 12330
e9c9a47c 12331
e9c9a47c 12332fi
a243b558
JF
12333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12334$as_echo "$lt_cv_dlopen_self" >&6; }
e9c9a47c 12335
a243b558
JF
12336 if test "x$lt_cv_dlopen_self" = xyes; then
12337 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12339$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12340if ${lt_cv_dlopen_self_static+:} false; then :
12341 $as_echo_n "(cached) " >&6
e9c9a47c 12342else
a243b558
JF
12343 if test "$cross_compiling" = yes; then :
12344 lt_cv_dlopen_self_static=cross
12345else
12346 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12347 lt_status=$lt_dlunknown
12348 cat > conftest.$ac_ext <<_LT_EOF
12349#line $LINENO "configure"
12350#include "confdefs.h"
12351
12352#if HAVE_DLFCN_H
12353#include <dlfcn.h>
12354#endif
12355
12356#include <stdio.h>
e9c9a47c 12357
a243b558
JF
12358#ifdef RTLD_GLOBAL
12359# define LT_DLGLOBAL RTLD_GLOBAL
12360#else
12361# ifdef DL_GLOBAL
12362# define LT_DLGLOBAL DL_GLOBAL
12363# else
12364# define LT_DLGLOBAL 0
12365# endif
12366#endif
e9c9a47c 12367
a243b558
JF
12368/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12369 find out it does not work in some platform. */
12370#ifndef LT_DLLAZY_OR_NOW
12371# ifdef RTLD_LAZY
12372# define LT_DLLAZY_OR_NOW RTLD_LAZY
12373# else
12374# ifdef DL_LAZY
12375# define LT_DLLAZY_OR_NOW DL_LAZY
12376# else
12377# ifdef RTLD_NOW
12378# define LT_DLLAZY_OR_NOW RTLD_NOW
12379# else
12380# ifdef DL_NOW
12381# define LT_DLLAZY_OR_NOW DL_NOW
12382# else
12383# define LT_DLLAZY_OR_NOW 0
12384# endif
12385# endif
12386# endif
12387# endif
12388#endif
66170b30 12389
a243b558
JF
12390/* When -fvisbility=hidden is used, assume the code has been annotated
12391 correspondingly for the symbols needed. */
12392#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12393int fnord () __attribute__((visibility("default")));
12394#endif
e9c9a47c 12395
a243b558
JF
12396int fnord () { return 42; }
12397int main ()
12398{
12399 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12400 int status = $lt_dlunknown;
e9c9a47c 12401
a243b558
JF
12402 if (self)
12403 {
12404 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12405 else
12406 {
12407 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12408 else puts (dlerror ());
12409 }
12410 /* dlclose (self); */
12411 }
12412 else
12413 puts (dlerror ());
e9c9a47c 12414
a243b558
JF
12415 return status;
12416}
12417_LT_EOF
12418 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12419 (eval $ac_link) 2>&5
12420 ac_status=$?
12421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12422 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12423 (./conftest; exit; ) >&5 2>/dev/null
12424 lt_status=$?
12425 case x$lt_status in
12426 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12427 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12428 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12429 esac
12430 else :
12431 # compilation failed
12432 lt_cv_dlopen_self_static=no
12433 fi
12434fi
12435rm -fr conftest*
e9c9a47c 12436
b65019fe 12437
a243b558
JF
12438fi
12439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12440$as_echo "$lt_cv_dlopen_self_static" >&6; }
12441 fi
66170b30 12442
a243b558
JF
12443 CPPFLAGS="$save_CPPFLAGS"
12444 LDFLAGS="$save_LDFLAGS"
12445 LIBS="$save_LIBS"
12446 ;;
12447 esac
66170b30 12448
a243b558
JF
12449 case $lt_cv_dlopen_self in
12450 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12451 *) enable_dlopen_self=unknown ;;
12452 esac
12453
12454 case $lt_cv_dlopen_self_static in
12455 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12456 *) enable_dlopen_self_static=unknown ;;
12457 esac
b65019fe
DWT
12458fi
12459
12460
66170b30 12461
b65019fe 12462
e9c9a47c 12463
e9c9a47c
DWT
12464
12465
e9c9a47c 12466
e9c9a47c
DWT
12467
12468
e9c9a47c 12469
e9c9a47c 12470
3530897b 12471
47aaa820 12472
47aaa820 12473
a243b558
JF
12474
12475
12476striplib=
12477old_striplib=
12478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12479$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12480if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12481 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12482 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12484$as_echo "yes" >&6; }
47aaa820 12485else
a243b558
JF
12486# FIXME - insert some real tests, host_os isn't really good enough
12487 case $host_os in
12488 darwin*)
12489 if test -n "$STRIP" ; then
12490 striplib="$STRIP -x"
12491 old_striplib="$STRIP -S"
12492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12493$as_echo "yes" >&6; }
12494 else
12495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12496$as_echo "no" >&6; }
12497 fi
12498 ;;
12499 *)
12500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12501$as_echo "no" >&6; }
12502 ;;
12503 esac
3530897b 12504fi
47aaa820 12505
3530897b
DWT
12506
12507
9c60689e 12508
9c60689e 12509
9c60689e 12510
9c60689e 12511
9c60689e 12512
66170b30 12513
66170b30 12514
66170b30 12515
66170b30 12516
a243b558
JF
12517 # Report which library types will actually be built
12518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12519$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12521$as_echo "$can_build_shared" >&6; }
66170b30 12522
a243b558
JF
12523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12524$as_echo_n "checking whether to build shared libraries... " >&6; }
12525 test "$can_build_shared" = "no" && enable_shared=no
66170b30 12526
a243b558
JF
12527 # On AIX, shared libraries and static libraries use the same namespace, and
12528 # are all built from PIC.
12529 case $host_os in
12530 aix3*)
12531 test "$enable_shared" = yes && enable_static=no
12532 if test -n "$RANLIB"; then
12533 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12534 postinstall_cmds='$RANLIB $lib'
12535 fi
12536 ;;
66170b30 12537
a243b558
JF
12538 aix[4-9]*)
12539 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12540 test "$enable_shared" = yes && enable_static=no
12541 fi
12542 ;;
12543 esac
12544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12545$as_echo "$enable_shared" >&6; }
66170b30 12546
a243b558
JF
12547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12548$as_echo_n "checking whether to build static libraries... " >&6; }
12549 # Make sure either enable_shared or enable_static is yes.
12550 test "$enable_shared" = yes || enable_static=yes
12551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12552$as_echo "$enable_static" >&6; }
66170b30 12553
9c60689e 12554
e9c9a47c 12555
9c60689e 12556
a243b558
JF
12557fi
12558ac_ext=c
12559ac_cpp='$CPP $CPPFLAGS'
12560ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12561ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12562ac_compiler_gnu=$ac_cv_c_compiler_gnu
12563
12564CC="$lt_save_CC"
e9c9a47c 12565
ee134472 12566 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
e9c9a47c
DWT
12567 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12568 (test "X$CXX" != "Xg++"))) ; then
12569 ac_ext=cpp
12570ac_cpp='$CXXCPP $CPPFLAGS'
12571ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12572ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12573ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12575$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12576if test -z "$CXXCPP"; then
ee134472 12577 if ${ac_cv_prog_CXXCPP+:} false; then :
e9c9a47c
DWT
12578 $as_echo_n "(cached) " >&6
12579else
12580 # Double quotes because CXXCPP needs to be expanded
12581 for CXXCPP in "$CXX -E" "/lib/cpp"
12582 do
12583 ac_preproc_ok=false
12584for ac_cxx_preproc_warn_flag in '' yes
12585do
12586 # Use a header file that comes with gcc, so configuring glibc
12587 # with a fresh cross-compiler works.
12588 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12589 # <limits.h> exists even on freestanding compilers.
12590 # On the NeXT, cc -E runs the code through the compiler's parser,
12591 # not just through cpp. "Syntax error" is here to catch this case.
12592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12593/* end confdefs.h. */
12594#ifdef __STDC__
12595# include <limits.h>
12596#else
12597# include <assert.h>
12598#endif
12599 Syntax error
12600_ACEOF
12601if ac_fn_cxx_try_cpp "$LINENO"; then :
12602
12603else
12604 # Broken: fails on valid input.
12605continue
12606fi
12833ad8 12607rm -f conftest.err conftest.i conftest.$ac_ext
e9c9a47c
DWT
12608
12609 # OK, works on sane cases. Now check whether nonexistent headers
12610 # can be detected and how.
12611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12612/* end confdefs.h. */
12613#include <ac_nonexistent.h>
12614_ACEOF
12615if ac_fn_cxx_try_cpp "$LINENO"; then :
12616 # Broken: success on invalid input.
12617continue
12618else
12619 # Passes both tests.
12620ac_preproc_ok=:
12621break
12622fi
12833ad8 12623rm -f conftest.err conftest.i conftest.$ac_ext
e9c9a47c
DWT
12624
12625done
12626# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12833ad8 12627rm -f conftest.i conftest.err conftest.$ac_ext
e9c9a47c
DWT
12628if $ac_preproc_ok; then :
12629 break
12630fi
12631
12632 done
12633 ac_cv_prog_CXXCPP=$CXXCPP
12634
12635fi
12636 CXXCPP=$ac_cv_prog_CXXCPP
12637else
12638 ac_cv_prog_CXXCPP=$CXXCPP
12639fi
12640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12641$as_echo "$CXXCPP" >&6; }
12642ac_preproc_ok=false
12643for ac_cxx_preproc_warn_flag in '' yes
12644do
12645 # Use a header file that comes with gcc, so configuring glibc
12646 # with a fresh cross-compiler works.
12647 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12648 # <limits.h> exists even on freestanding compilers.
12649 # On the NeXT, cc -E runs the code through the compiler's parser,
12650 # not just through cpp. "Syntax error" is here to catch this case.
12651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12652/* end confdefs.h. */
12653#ifdef __STDC__
12654# include <limits.h>
12655#else
12656# include <assert.h>
12657#endif
12658 Syntax error
12659_ACEOF
12660if ac_fn_cxx_try_cpp "$LINENO"; then :
12661
12662else
12663 # Broken: fails on valid input.
12664continue
12665fi
12833ad8 12666rm -f conftest.err conftest.i conftest.$ac_ext
e9c9a47c
DWT
12667
12668 # OK, works on sane cases. Now check whether nonexistent headers
12669 # can be detected and how.
12670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12671/* end confdefs.h. */
12672#include <ac_nonexistent.h>
12673_ACEOF
12674if ac_fn_cxx_try_cpp "$LINENO"; then :
12675 # Broken: success on invalid input.
12676continue
12677else
12678 # Passes both tests.
12679ac_preproc_ok=:
12680break
12681fi
12833ad8 12682rm -f conftest.err conftest.i conftest.$ac_ext
e9c9a47c
DWT
12683
12684done
12685# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12833ad8 12686rm -f conftest.i conftest.err conftest.$ac_ext
e9c9a47c
DWT
12687if $ac_preproc_ok; then :
12688
12689else
12690 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12691$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
ee134472
JF
12692as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12693See \`config.log' for more details" "$LINENO" 5; }
e9c9a47c
DWT
12694fi
12695
a243b558
JF
12696ac_ext=c
12697ac_cpp='$CPP $CPPFLAGS'
12698ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12699ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12700ac_compiler_gnu=$ac_cv_c_compiler_gnu
66170b30
JF
12701
12702else
e9c9a47c
DWT
12703 _lt_caught_CXX_error=yes
12704fi
12705
9c60689e
DWT
12706ac_ext=cpp
12707ac_cpp='$CXXCPP $CPPFLAGS'
12708ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12709ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12710ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9c60689e 12711
47aaa820
DWT
12712archive_cmds_need_lc_CXX=no
12713allow_undefined_flag_CXX=
12714always_export_symbols_CXX=no
12715archive_expsym_cmds_CXX=
12716compiler_needs_object_CXX=no
12717export_dynamic_flag_spec_CXX=
12718hardcode_direct_CXX=no
12719hardcode_direct_absolute_CXX=no
12720hardcode_libdir_flag_spec_CXX=
47aaa820
DWT
12721hardcode_libdir_separator_CXX=
12722hardcode_minus_L_CXX=no
12723hardcode_shlibpath_var_CXX=unsupported
12724hardcode_automatic_CXX=no
12725inherit_rpath_CXX=no
12726module_cmds_CXX=
12727module_expsym_cmds_CXX=
12728link_all_deplibs_CXX=unknown
12729old_archive_cmds_CXX=$old_archive_cmds
ee134472
JF
12730reload_flag_CXX=$reload_flag
12731reload_cmds_CXX=$reload_cmds
47aaa820
DWT
12732no_undefined_flag_CXX=
12733whole_archive_flag_spec_CXX=
12734enable_shared_with_static_runtimes_CXX=no
9c60689e 12735
47aaa820
DWT
12736# Source file extension for C++ test sources.
12737ac_ext=cpp
9c60689e 12738
47aaa820
DWT
12739# Object file extension for compiled C++ test sources.
12740objext=o
12741objext_CXX=$objext
9c60689e 12742
47aaa820
DWT
12743# No sense in running all these tests if we already determined that
12744# the CXX compiler isn't working. Some variables (like enable_shared)
12745# are currently assumed to apply to all compilers on this platform,
12746# and will be corrupted by setting them based on a non-working compiler.
12747if test "$_lt_caught_CXX_error" != yes; then
12748 # Code to be used in simple compile tests
12749 lt_simple_compile_test_code="int some_variable = 0;"
9c60689e 12750
47aaa820
DWT
12751 # Code to be used in simple link tests
12752 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
9c60689e 12753
47aaa820 12754 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9c60689e 12755
9c60689e 12756
9c60689e 12757
9c60689e 12758
9c60689e 12759
9c60689e 12760
47aaa820
DWT
12761# If no C compiler was specified, use CC.
12762LTCC=${LTCC-"$CC"}
9c60689e 12763
47aaa820
DWT
12764# If no C compiler flags were specified, use CFLAGS.
12765LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9c60689e 12766
47aaa820
DWT
12767# Allow CC to be a program name with arguments.
12768compiler=$CC
9c60689e 12769
9c60689e 12770
47aaa820
DWT
12771 # save warnings/boilerplate of simple test code
12772 ac_outfile=conftest.$ac_objext
12773echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12774eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12775_lt_compiler_boilerplate=`cat conftest.err`
53ba6704 12776$RM -r conftest*
9c60689e 12777
47aaa820
DWT
12778 ac_outfile=conftest.$ac_objext
12779echo "$lt_simple_link_test_code" >conftest.$ac_ext
12780eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12781_lt_linker_boilerplate=`cat conftest.err`
12782$RM -r conftest*
9c60689e 12783
9c60689e 12784
47aaa820
DWT
12785 # Allow CC to be a program name with arguments.
12786 lt_save_CC=$CC
ee134472 12787 lt_save_CFLAGS=$CFLAGS
47aaa820
DWT
12788 lt_save_LD=$LD
12789 lt_save_GCC=$GCC
12790 GCC=$GXX
12791 lt_save_with_gnu_ld=$with_gnu_ld
12792 lt_save_path_LD=$lt_cv_path_LD
12793 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12794 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9c60689e 12795 else
47aaa820 12796 $as_unset lt_cv_prog_gnu_ld
9c60689e 12797 fi
47aaa820
DWT
12798 if test -n "${lt_cv_path_LDCXX+set}"; then
12799 lt_cv_path_LD=$lt_cv_path_LDCXX
9c60689e 12800 else
47aaa820 12801 $as_unset lt_cv_path_LD
9c60689e 12802 fi
47aaa820
DWT
12803 test -z "${LDCXX+set}" || LD=$LDCXX
12804 CC=${CXX-"c++"}
ee134472 12805 CFLAGS=$CXXFLAGS
47aaa820
DWT
12806 compiler=$CC
12807 compiler_CXX=$CC
12808 for cc_temp in $compiler""; do
12809 case $cc_temp in
12810 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12811 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12812 \-*) ;;
12813 *) break;;
12814 esac
12815done
ee134472 12816cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9c60689e
DWT
12817
12818
47aaa820
DWT
12819 if test -n "$compiler"; then
12820 # We don't want -fno-exception when compiling C++ code, so set the
12821 # no_builtin_flag separately
12822 if test "$GXX" = yes; then
12823 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12824 else
12825 lt_prog_compiler_no_builtin_flag_CXX=
12826 fi
9c60689e 12827
47aaa820
DWT
12828 if test "$GXX" = yes; then
12829 # Set up default GNU C++ configuration
12830
12831
12832
12833# Check whether --with-gnu-ld was given.
12834if test "${with_gnu_ld+set}" = set; then :
12835 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9c60689e 12836else
47aaa820 12837 with_gnu_ld=no
9c60689e
DWT
12838fi
12839
47aaa820
DWT
12840ac_prog=ld
12841if test "$GCC" = yes; then
12842 # Check if gcc -print-prog-name=ld gives a path.
12843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12844$as_echo_n "checking for ld used by $CC... " >&6; }
12845 case $host in
12846 *-*-mingw*)
12847 # gcc leaves a trailing carriage return which upsets mingw
12848 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12849 *)
12850 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12851 esac
12852 case $ac_prog in
12853 # Accept absolute paths.
12854 [\\/]* | ?:[\\/]*)
12855 re_direlt='/[^/][^/]*/\.\./'
12856 # Canonicalize the pathname of ld
12857 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12858 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12859 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12860 done
12861 test -z "$LD" && LD="$ac_prog"
12862 ;;
12863 "")
12864 # If it fails, then pretend we aren't using GCC.
12865 ac_prog=ld
12866 ;;
12867 *)
12868 # If it is relative, then search for the first ld in PATH.
12869 with_gnu_ld=unknown
12870 ;;
12871 esac
12872elif test "$with_gnu_ld" = yes; then
12873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12874$as_echo_n "checking for GNU ld... " >&6; }
12875else
12876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12877$as_echo_n "checking for non-GNU ld... " >&6; }
9c60689e 12878fi
ee134472 12879if ${lt_cv_path_LD+:} false; then :
9c60689e
DWT
12880 $as_echo_n "(cached) " >&6
12881else
47aaa820
DWT
12882 if test -z "$LD"; then
12883 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12884 for ac_dir in $PATH; do
12885 IFS="$lt_save_ifs"
12886 test -z "$ac_dir" && ac_dir=.
12887 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12888 lt_cv_path_LD="$ac_dir/$ac_prog"
12889 # Check to see if the program is GNU ld. I'd rather use --version,
12890 # but apparently some variants of GNU ld only accept -v.
12891 # Break only if it was the GNU/non-GNU ld that we prefer.
12892 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12893 *GNU* | *'with BFD'*)
12894 test "$with_gnu_ld" != no && break
12895 ;;
12896 *)
12897 test "$with_gnu_ld" != yes && break
12898 ;;
12899 esac
12900 fi
9c60689e 12901 done
47aaa820
DWT
12902 IFS="$lt_save_ifs"
12903else
12904 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9c60689e
DWT
12905fi
12906fi
47aaa820
DWT
12907
12908LD="$lt_cv_path_LD"
12909if test -n "$LD"; then
12910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12911$as_echo "$LD" >&6; }
9c60689e
DWT
12912else
12913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12914$as_echo "no" >&6; }
12915fi
12833ad8 12916test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
47aaa820
DWT
12917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12918$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
ee134472 12919if ${lt_cv_prog_gnu_ld+:} false; then :
47aaa820
DWT
12920 $as_echo_n "(cached) " >&6
12921else
12922 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12923case `$LD -v 2>&1 </dev/null` in
12924*GNU* | *'with BFD'*)
12925 lt_cv_prog_gnu_ld=yes
12926 ;;
12927*)
12928 lt_cv_prog_gnu_ld=no
12929 ;;
12930esac
12931fi
12932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12933$as_echo "$lt_cv_prog_gnu_ld" >&6; }
12934with_gnu_ld=$lt_cv_prog_gnu_ld
9c60689e
DWT
12935
12936
9c60689e 12937
9c60689e 12938
9c60689e 12939
9c60689e 12940
9c60689e 12941
47aaa820
DWT
12942 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12943 # archiving commands below assume that GNU ld is being used.
12944 if test "$with_gnu_ld" = yes; then
ee134472
JF
12945 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12946 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 12947
47aaa820
DWT
12948 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12949 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9c60689e 12950
47aaa820
DWT
12951 # If archive_cmds runs LD, not CC, wlarc should be empty
12952 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12953 # investigate it a little bit more. (MM)
12954 wlarc='${wl}'
9c60689e 12955
47aaa820
DWT
12956 # ancient GNU ld didn't support --whole-archive et. al.
12957 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12958 $GREP 'no-whole-archive' > /dev/null; then
12959 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12960 else
12961 whole_archive_flag_spec_CXX=
12962 fi
12963 else
12964 with_gnu_ld=no
12965 wlarc=
12966
12967 # A generic and very simple default shared library creation
12968 # command for GNU C++ for the case where it uses the native
12969 # linker, instead of GNU ld. If possible, this setting should
12970 # overridden to take advantage of the native linker features on
12971 # the platform it is being used on.
12972 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12973 fi
12974
12975 # Commands to make compiler produce verbose output that lists
12976 # what "hidden" libraries, object files and flags are used when
12977 # linking a shared library.
ee134472 12978 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
47aaa820
DWT
12979
12980 else
12981 GXX=no
12982 with_gnu_ld=no
12983 wlarc=
12984 fi
12985
12986 # PORTME: fill in a description of your system's C++ link characteristics
12987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12988$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12989 ld_shlibs_CXX=yes
12990 case $host_os in
12991 aix3*)
12992 # FIXME: insert proper C++ library support
12993 ld_shlibs_CXX=no
12994 ;;
12995 aix[4-9]*)
12996 if test "$host_cpu" = ia64; then
12997 # On IA64, the linker does run time linking by default, so we don't
12998 # have to do anything special.
12999 aix_use_runtimelinking=no
13000 exp_sym_flag='-Bexport'
13001 no_entry_flag=""
13002 else
13003 aix_use_runtimelinking=no
13004
13005 # Test if we are trying to use run time linking or normal
13006 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13007 # need to do runtime linking.
13008 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13009 for ld_flag in $LDFLAGS; do
13010 case $ld_flag in
13011 *-brtl*)
13012 aix_use_runtimelinking=yes
13013 break
13014 ;;
13015 esac
13016 done
13017 ;;
13018 esac
13019
13020 exp_sym_flag='-bexport'
13021 no_entry_flag='-bnoentry'
13022 fi
13023
13024 # When large executables or shared objects are built, AIX ld can
13025 # have problems creating the table of contents. If linking a library
13026 # or program results in "error TOC overflow" add -mminimal-toc to
13027 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13028 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13029
13030 archive_cmds_CXX=''
13031 hardcode_direct_CXX=yes
13032 hardcode_direct_absolute_CXX=yes
13033 hardcode_libdir_separator_CXX=':'
13034 link_all_deplibs_CXX=yes
13035 file_list_spec_CXX='${wl}-f,'
13036
13037 if test "$GXX" = yes; then
13038 case $host_os in aix4.[012]|aix4.[012].*)
13039 # We only want to do this on AIX 4.2 and lower, the check
13040 # below for broken collect2 doesn't work under 4.3+
13041 collect2name=`${CC} -print-prog-name=collect2`
13042 if test -f "$collect2name" &&
13043 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13044 then
13045 # We have reworked collect2
13046 :
13047 else
13048 # We have old collect2
13049 hardcode_direct_CXX=unsupported
13050 # It fails to find uninstalled libraries when the uninstalled
13051 # path is not listed in the libpath. Setting hardcode_minus_L
13052 # to unsupported forces relinking
13053 hardcode_minus_L_CXX=yes
13054 hardcode_libdir_flag_spec_CXX='-L$libdir'
13055 hardcode_libdir_separator_CXX=
13056 fi
13057 esac
13058 shared_flag='-shared'
13059 if test "$aix_use_runtimelinking" = yes; then
13060 shared_flag="$shared_flag "'${wl}-G'
13061 fi
13062 else
13063 # not using gcc
13064 if test "$host_cpu" = ia64; then
13065 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13066 # chokes on -Wl,-G. The following line is correct:
13067 shared_flag='-G'
13068 else
13069 if test "$aix_use_runtimelinking" = yes; then
13070 shared_flag='${wl}-G'
13071 else
13072 shared_flag='${wl}-bM:SRE'
13073 fi
13074 fi
13075 fi
13076
13077 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13078 # It seems that -bexpall does not export symbols beginning with
13079 # underscore (_), so it is better to generate a list of symbols to
13080 # export.
13081 always_export_symbols_CXX=yes
13082 if test "$aix_use_runtimelinking" = yes; then
13083 # Warning - without using the other runtime loading flags (-brtl),
13084 # -berok will link without error, but may produce a broken library.
13085 allow_undefined_flag_CXX='-berok'
13086 # Determine the default libpath from the value encoded in an empty
13087 # executable.
ee134472
JF
13088 if test "${lt_cv_aix_libpath+set}" = set; then
13089 aix_libpath=$lt_cv_aix_libpath
13090else
13091 if ${lt_cv_aix_libpath__CXX+:} false; then :
13092 $as_echo_n "(cached) " >&6
13093else
13094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9c60689e
DWT
13095/* end confdefs.h. */
13096
13097int
13098main ()
13099{
13100
13101 ;
13102 return 0;
13103}
13104_ACEOF
47aaa820 13105if ac_fn_cxx_try_link "$LINENO"; then :
9c60689e 13106
ee134472
JF
13107 lt_aix_libpath_sed='
13108 /Import File Strings/,/^$/ {
13109 /^0/ {
13110 s/^0 *\([^ ]*\) *$/\1/
13111 p
13112 }
13113 }'
13114 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13115 # Check for a 64-bit object if we didn't find anything.
13116 if test -z "$lt_cv_aix_libpath__CXX"; then
13117 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13118 fi
47aaa820
DWT
13119fi
13120rm -f core conftest.err conftest.$ac_objext \
13121 conftest$ac_exeext conftest.$ac_ext
ee134472
JF
13122 if test -z "$lt_cv_aix_libpath__CXX"; then
13123 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13124 fi
13125
13126fi
13127
13128 aix_libpath=$lt_cv_aix_libpath__CXX
13129fi
47aaa820
DWT
13130
13131 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13132
ee134472 13133 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
13134 else
13135 if test "$host_cpu" = ia64; then
13136 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13137 allow_undefined_flag_CXX="-z nodefs"
13138 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"
13139 else
13140 # Determine the default libpath from the value encoded in an
13141 # empty executable.
ee134472
JF
13142 if test "${lt_cv_aix_libpath+set}" = set; then
13143 aix_libpath=$lt_cv_aix_libpath
13144else
13145 if ${lt_cv_aix_libpath__CXX+:} false; then :
13146 $as_echo_n "(cached) " >&6
13147else
13148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9c60689e
DWT
13149/* end confdefs.h. */
13150
13151int
13152main ()
13153{
13154
13155 ;
13156 return 0;
13157}
13158_ACEOF
47aaa820 13159if ac_fn_cxx_try_link "$LINENO"; then :
9c60689e 13160
ee134472
JF
13161 lt_aix_libpath_sed='
13162 /Import File Strings/,/^$/ {
13163 /^0/ {
13164 s/^0 *\([^ ]*\) *$/\1/
13165 p
13166 }
13167 }'
13168 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13169 # Check for a 64-bit object if we didn't find anything.
13170 if test -z "$lt_cv_aix_libpath__CXX"; then
13171 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13172 fi
9c60689e 13173fi
47aaa820
DWT
13174rm -f core conftest.err conftest.$ac_objext \
13175 conftest$ac_exeext conftest.$ac_ext
ee134472
JF
13176 if test -z "$lt_cv_aix_libpath__CXX"; then
13177 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13178 fi
13179
13180fi
13181
13182 aix_libpath=$lt_cv_aix_libpath__CXX
13183fi
9c60689e 13184
47aaa820
DWT
13185 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13186 # Warning - without using the other run time loading flags,
13187 # -berok will link without error, but may produce a broken library.
13188 no_undefined_flag_CXX=' ${wl}-bernotok'
13189 allow_undefined_flag_CXX=' ${wl}-berok'
ee134472
JF
13190 if test "$with_gnu_ld" = yes; then
13191 # We only use this code for GNU lds that support --whole-archive.
13192 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13193 else
13194 # Exported symbols can be pulled into shared objects from archives
13195 whole_archive_flag_spec_CXX='$convenience'
13196 fi
47aaa820
DWT
13197 archive_cmds_need_lc_CXX=yes
13198 # This is similar to how AIX traditionally builds its shared
13199 # libraries.
13200 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'
13201 fi
13202 fi
13203 ;;
9c60689e 13204
47aaa820
DWT
13205 beos*)
13206 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13207 allow_undefined_flag_CXX=unsupported
13208 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13209 # support --undefined. This deserves some investigation. FIXME
13210 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13211 else
13212 ld_shlibs_CXX=no
13213 fi
13214 ;;
9c60689e 13215
47aaa820
DWT
13216 chorus*)
13217 case $cc_basename in
13218 *)
13219 # FIXME: insert proper C++ library support
13220 ld_shlibs_CXX=no
13221 ;;
13222 esac
13223 ;;
9c60689e 13224
47aaa820 13225 cygwin* | mingw* | pw32* | cegcc*)
ee134472
JF
13226 case $GXX,$cc_basename in
13227 ,cl* | no,cl*)
13228 # Native MSVC
13229 # hardcode_libdir_flag_spec is actually meaningless, as there is
13230 # no search path for DLLs.
13231 hardcode_libdir_flag_spec_CXX=' '
13232 allow_undefined_flag_CXX=unsupported
13233 always_export_symbols_CXX=yes
13234 file_list_spec_CXX='@'
13235 # Tell ltmain to make .lib files, not .a files.
13236 libext=lib
13237 # Tell ltmain to make .dll files, not .so files.
13238 shrext_cmds=".dll"
13239 # FIXME: Setting linknames here is a bad hack.
13240 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13241 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13242 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13243 else
13244 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13245 fi~
13246 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13247 linknames='
13248 # The linker will not automatically build a static lib if we build a DLL.
13249 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13250 enable_shared_with_static_runtimes_CXX=yes
13251 # Don't use ranlib
13252 old_postinstall_cmds_CXX='chmod 644 $oldlib'
13253 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13254 lt_tool_outputfile="@TOOL_OUTPUT@"~
13255 case $lt_outputfile in
13256 *.exe|*.EXE) ;;
13257 *)
13258 lt_outputfile="$lt_outputfile.exe"
13259 lt_tool_outputfile="$lt_tool_outputfile.exe"
13260 ;;
13261 esac~
13262 func_to_tool_file "$lt_outputfile"~
13263 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13264 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13265 $RM "$lt_outputfile.manifest";
13266 fi'
13267 ;;
13268 *)
13269 # g++
13270 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13271 # as there is no search path for DLLs.
13272 hardcode_libdir_flag_spec_CXX='-L$libdir'
13273 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13274 allow_undefined_flag_CXX=unsupported
13275 always_export_symbols_CXX=no
13276 enable_shared_with_static_runtimes_CXX=yes
13277
13278 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13279 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'
13280 # If the export-symbols file already is a .def file (1st line
13281 # is EXPORTS), use it as is; otherwise, prepend...
13282 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13283 cp $export_symbols $output_objdir/$soname.def;
13284 else
13285 echo EXPORTS > $output_objdir/$soname.def;
13286 cat $export_symbols >> $output_objdir/$soname.def;
13287 fi~
13288 $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'
13289 else
13290 ld_shlibs_CXX=no
13291 fi
13292 ;;
13293 esac
13294 ;;
47aaa820 13295 darwin* | rhapsody*)
9c60689e 13296
9c60689e 13297
47aaa820
DWT
13298 archive_cmds_need_lc_CXX=no
13299 hardcode_direct_CXX=no
13300 hardcode_automatic_CXX=yes
13301 hardcode_shlibpath_var_CXX=unsupported
ee134472
JF
13302 if test "$lt_cv_ld_force_load" = "yes"; then
13303 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 13304
ee134472
JF
13305 else
13306 whole_archive_flag_spec_CXX=''
13307 fi
47aaa820
DWT
13308 link_all_deplibs_CXX=yes
13309 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13310 case $cc_basename in
13311 ifort*) _lt_dar_can_shared=yes ;;
13312 *) _lt_dar_can_shared=$GCC ;;
13313 esac
13314 if test "$_lt_dar_can_shared" = "yes"; then
ee134472 13315 output_verbose_link_cmd=func_echo_all
47aaa820
DWT
13316 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}"
13317 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13318 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}"
13319 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}"
13320 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13321 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}"
13322 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}"
13323 fi
9c60689e 13324
47aaa820
DWT
13325 else
13326 ld_shlibs_CXX=no
13327 fi
9c60689e 13328
47aaa820 13329 ;;
9c60689e 13330
47aaa820
DWT
13331 dgux*)
13332 case $cc_basename in
13333 ec++*)
13334 # FIXME: insert proper C++ library support
13335 ld_shlibs_CXX=no
13336 ;;
13337 ghcx*)
13338 # Green Hills C++ Compiler
13339 # FIXME: insert proper C++ library support
13340 ld_shlibs_CXX=no
13341 ;;
13342 *)
13343 # FIXME: insert proper C++ library support
13344 ld_shlibs_CXX=no
13345 ;;
13346 esac
13347 ;;
9c60689e 13348
53ba6704 13349 freebsd2.*)
47aaa820
DWT
13350 # C++ shared libraries reported to be fairly broken before
13351 # switch to ELF
13352 ld_shlibs_CXX=no
13353 ;;
9c60689e 13354
47aaa820
DWT
13355 freebsd-elf*)
13356 archive_cmds_need_lc_CXX=no
13357 ;;
9c60689e 13358
47aaa820
DWT
13359 freebsd* | dragonfly*)
13360 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13361 # conventions
13362 ld_shlibs_CXX=yes
13363 ;;
9c60689e 13364
47aaa820
DWT
13365 gnu*)
13366 ;;
9c60689e 13367
ee134472
JF
13368 haiku*)
13369 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13370 link_all_deplibs_CXX=yes
13371 ;;
13372
47aaa820
DWT
13373 hpux9*)
13374 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13375 hardcode_libdir_separator_CXX=:
13376 export_dynamic_flag_spec_CXX='${wl}-E'
13377 hardcode_direct_CXX=yes
13378 hardcode_minus_L_CXX=yes # Not in the search PATH,
13379 # but as the default
13380 # location of the library.
9c60689e 13381
47aaa820
DWT
13382 case $cc_basename in
13383 CC*)
13384 # FIXME: insert proper C++ library support
13385 ld_shlibs_CXX=no
13386 ;;
13387 aCC*)
13388 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'
13389 # Commands to make compiler produce verbose output that lists
13390 # what "hidden" libraries, object files and flags are used when
13391 # linking a shared library.
13392 #
13393 # There doesn't appear to be a way to prevent this compiler from
13394 # explicitly linking system object files so we need to strip them
13395 # from the output so that they don't get included in the library
13396 # dependencies.
ee134472 13397 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
13398 ;;
13399 *)
13400 if test "$GXX" = yes; then
ee134472 13401 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
13402 else
13403 # FIXME: insert proper C++ library support
13404 ld_shlibs_CXX=no
13405 fi
13406 ;;
13407 esac
13408 ;;
9c60689e 13409
47aaa820
DWT
13410 hpux10*|hpux11*)
13411 if test $with_gnu_ld = no; then
13412 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13413 hardcode_libdir_separator_CXX=:
9c60689e 13414
47aaa820
DWT
13415 case $host_cpu in
13416 hppa*64*|ia64*)
13417 ;;
13418 *)
13419 export_dynamic_flag_spec_CXX='${wl}-E'
13420 ;;
13421 esac
13422 fi
13423 case $host_cpu in
13424 hppa*64*|ia64*)
13425 hardcode_direct_CXX=no
13426 hardcode_shlibpath_var_CXX=no
13427 ;;
13428 *)
13429 hardcode_direct_CXX=yes
13430 hardcode_direct_absolute_CXX=yes
13431 hardcode_minus_L_CXX=yes # Not in the search PATH,
13432 # but as the default
13433 # location of the library.
13434 ;;
13435 esac
9c60689e 13436
47aaa820
DWT
13437 case $cc_basename in
13438 CC*)
13439 # FIXME: insert proper C++ library support
13440 ld_shlibs_CXX=no
13441 ;;
13442 aCC*)
13443 case $host_cpu in
13444 hppa*64*)
13445 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13446 ;;
13447 ia64*)
13448 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13449 ;;
13450 *)
13451 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13452 ;;
13453 esac
13454 # Commands to make compiler produce verbose output that lists
13455 # what "hidden" libraries, object files and flags are used when
13456 # linking a shared library.
13457 #
13458 # There doesn't appear to be a way to prevent this compiler from
13459 # explicitly linking system object files so we need to strip them
13460 # from the output so that they don't get included in the library
13461 # dependencies.
ee134472 13462 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
13463 ;;
13464 *)
13465 if test "$GXX" = yes; then
13466 if test $with_gnu_ld = no; then
13467 case $host_cpu in
13468 hppa*64*)
13469 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13470 ;;
13471 ia64*)
ee134472 13472 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
13473 ;;
13474 *)
ee134472 13475 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
13476 ;;
13477 esac
13478 fi
13479 else
13480 # FIXME: insert proper C++ library support
13481 ld_shlibs_CXX=no
13482 fi
13483 ;;
13484 esac
13485 ;;
9c60689e 13486
47aaa820
DWT
13487 interix[3-9]*)
13488 hardcode_direct_CXX=no
13489 hardcode_shlibpath_var_CXX=no
13490 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13491 export_dynamic_flag_spec_CXX='${wl}-E'
13492 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13493 # Instead, shared libraries are loaded at an image base (0x10000000 by
13494 # default) and relocated if they conflict, which is a slow very memory
13495 # consuming and fragmenting process. To avoid this, we pick a random,
13496 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13497 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13498 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'
13499 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'
13500 ;;
13501 irix5* | irix6*)
13502 case $cc_basename in
13503 CC*)
13504 # SGI C++
ee134472 13505 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 13506
47aaa820
DWT
13507 # Archives containing C++ object files must be created using
13508 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13509 # necessary to make sure instantiated templates are included
13510 # in the archive.
13511 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13512 ;;
13513 *)
13514 if test "$GXX" = yes; then
13515 if test "$with_gnu_ld" = no; then
ee134472 13516 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 13517 else
ee134472 13518 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
13519 fi
13520 fi
13521 link_all_deplibs_CXX=yes
13522 ;;
13523 esac
13524 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13525 hardcode_libdir_separator_CXX=:
13526 inherit_rpath_CXX=yes
13527 ;;
9c60689e 13528
1504c9b8 13529 linux* | k*bsd*-gnu | kopensolaris*-gnu)
47aaa820
DWT
13530 case $cc_basename in
13531 KCC*)
13532 # Kuck and Associates, Inc. (KAI) C++ Compiler
9c60689e 13533
47aaa820
DWT
13534 # KCC will only create a shared library if the output file
13535 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13536 # to its proper name (with version) after linking.
13537 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'
13538 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'
13539 # Commands to make compiler produce verbose output that lists
13540 # what "hidden" libraries, object files and flags are used when
13541 # linking a shared library.
13542 #
13543 # There doesn't appear to be a way to prevent this compiler from
13544 # explicitly linking system object files so we need to strip them
13545 # from the output so that they don't get included in the library
13546 # dependencies.
ee134472 13547 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 13548
47aaa820
DWT
13549 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13550 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9c60689e 13551
47aaa820
DWT
13552 # Archives containing C++ object files must be created using
13553 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13554 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13555 ;;
13556 icpc* | ecpc* )
13557 # Intel C++
13558 with_gnu_ld=yes
13559 # version 8.0 and above of icpc choke on multiply defined symbols
13560 # if we add $predep_objects and $postdep_objects, however 7.1 and
13561 # earlier do not add the objects themselves.
13562 case `$CC -V 2>&1` in
13563 *"Version 7."*)
13564 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13565 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'
13566 ;;
13567 *) # Version 8.0 or newer
13568 tmp_idyn=
13569 case $host_cpu in
13570 ia64*) tmp_idyn=' -i_dynamic';;
13571 esac
13572 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13573 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'
13574 ;;
13575 esac
13576 archive_cmds_need_lc_CXX=no
13577 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13578 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13579 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13580 ;;
13581 pgCC* | pgcpp*)
13582 # Portland Group C++ compiler
13583 case `$CC -V` in
ee134472 13584 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
47aaa820
DWT
13585 prelink_cmds_CXX='tpldir=Template.dir~
13586 rm -rf $tpldir~
13587 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
ee134472 13588 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
47aaa820
DWT
13589 old_archive_cmds_CXX='tpldir=Template.dir~
13590 rm -rf $tpldir~
13591 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
ee134472 13592 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
47aaa820
DWT
13593 $RANLIB $oldlib'
13594 archive_cmds_CXX='tpldir=Template.dir~
13595 rm -rf $tpldir~
13596 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
ee134472 13597 $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
13598 archive_expsym_cmds_CXX='tpldir=Template.dir~
13599 rm -rf $tpldir~
13600 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
ee134472 13601 $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 13602 ;;
ee134472 13603 *) # Version 6 and above use weak symbols
47aaa820
DWT
13604 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13605 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'
13606 ;;
13607 esac
9c60689e 13608
47aaa820
DWT
13609 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13610 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
ee134472 13611 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
13612 ;;
13613 cxx*)
13614 # Compaq C++
13615 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13616 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 13617
47aaa820
DWT
13618 runpath_var=LD_RUN_PATH
13619 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13620 hardcode_libdir_separator_CXX=:
9c60689e 13621
47aaa820
DWT
13622 # Commands to make compiler produce verbose output that lists
13623 # what "hidden" libraries, object files and flags are used when
13624 # linking a shared library.
13625 #
13626 # There doesn't appear to be a way to prevent this compiler from
13627 # explicitly linking system object files so we need to strip them
13628 # from the output so that they don't get included in the library
13629 # dependencies.
ee134472 13630 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 13631 ;;
ee134472 13632 xl* | mpixl* | bgxl*)
47aaa820
DWT
13633 # IBM XL 8.0 on PPC, with GNU ld
13634 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13635 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13636 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13637 if test "x$supports_anon_versioning" = xyes; then
13638 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13639 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13640 echo "local: *; };" >> $output_objdir/$libname.ver~
13641 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13642 fi
13643 ;;
13644 *)
13645 case `$CC -V 2>&1 | sed 5q` in
13646 *Sun\ C*)
13647 # Sun C++ 5.9
13648 no_undefined_flag_CXX=' -zdefs'
13649 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13650 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'
13651 hardcode_libdir_flag_spec_CXX='-R$libdir'
ee134472 13652 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 13653 compiler_needs_object_CXX=yes
9c60689e 13654
47aaa820
DWT
13655 # Not sure whether something based on
13656 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13657 # would be better.
ee134472 13658 output_verbose_link_cmd='func_echo_all'
9c60689e 13659
47aaa820
DWT
13660 # Archives containing C++ object files must be created using
13661 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13662 # necessary to make sure instantiated templates are included
13663 # in the archive.
13664 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13665 ;;
13666 esac
13667 ;;
13668 esac
13669 ;;
9c60689e 13670
47aaa820
DWT
13671 lynxos*)
13672 # FIXME: insert proper C++ library support
13673 ld_shlibs_CXX=no
13674 ;;
9c60689e 13675
47aaa820
DWT
13676 m88k*)
13677 # FIXME: insert proper C++ library support
13678 ld_shlibs_CXX=no
13679 ;;
9c60689e 13680
47aaa820
DWT
13681 mvs*)
13682 case $cc_basename in
13683 cxx*)
13684 # FIXME: insert proper C++ library support
13685 ld_shlibs_CXX=no
13686 ;;
13687 *)
13688 # FIXME: insert proper C++ library support
13689 ld_shlibs_CXX=no
13690 ;;
13691 esac
13692 ;;
9c60689e 13693
47aaa820
DWT
13694 netbsd*)
13695 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13696 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13697 wlarc=
13698 hardcode_libdir_flag_spec_CXX='-R$libdir'
13699 hardcode_direct_CXX=yes
13700 hardcode_shlibpath_var_CXX=no
13701 fi
13702 # Workaround some broken pre-1.5 toolchains
13703 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
9c60689e 13704 ;;
47aaa820
DWT
13705
13706 *nto* | *qnx*)
13707 ld_shlibs_CXX=yes
9c60689e 13708 ;;
9c60689e 13709
47aaa820
DWT
13710 openbsd2*)
13711 # C++ shared libraries are fairly broken
13712 ld_shlibs_CXX=no
13713 ;;
9c60689e 13714
47aaa820
DWT
13715 openbsd*)
13716 if test -f /usr/libexec/ld.so; then
13717 hardcode_direct_CXX=yes
13718 hardcode_shlibpath_var_CXX=no
13719 hardcode_direct_absolute_CXX=yes
13720 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13721 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13722 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13723 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13724 export_dynamic_flag_spec_CXX='${wl}-E'
13725 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13726 fi
ee134472 13727 output_verbose_link_cmd=func_echo_all
47aaa820
DWT
13728 else
13729 ld_shlibs_CXX=no
13730 fi
13731 ;;
9c60689e 13732
47aaa820
DWT
13733 osf3* | osf4* | osf5*)
13734 case $cc_basename in
13735 KCC*)
13736 # Kuck and Associates, Inc. (KAI) C++ Compiler
9c60689e 13737
47aaa820
DWT
13738 # KCC will only create a shared library if the output file
13739 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13740 # to its proper name (with version) after linking.
13741 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 13742
47aaa820
DWT
13743 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13744 hardcode_libdir_separator_CXX=:
9c60689e 13745
47aaa820
DWT
13746 # Archives containing C++ object files must be created using
13747 # the KAI C++ compiler.
13748 case $host in
13749 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13750 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13751 esac
13752 ;;
13753 RCC*)
13754 # Rational C++ 2.4.1
13755 # FIXME: insert proper C++ library support
13756 ld_shlibs_CXX=no
13757 ;;
13758 cxx*)
13759 case $host in
13760 osf3*)
13761 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
ee134472 13762 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
13763 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13764 ;;
13765 *)
13766 allow_undefined_flag_CXX=' -expect_unresolved \*'
ee134472 13767 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
13768 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13769 echo "-hidden">> $lib.exp~
ee134472 13770 $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
13771 $RM $lib.exp'
13772 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13773 ;;
13774 esac
9c60689e 13775
47aaa820 13776 hardcode_libdir_separator_CXX=:
9c60689e 13777
47aaa820
DWT
13778 # Commands to make compiler produce verbose output that lists
13779 # what "hidden" libraries, object files and flags are used when
13780 # linking a shared library.
13781 #
13782 # There doesn't appear to be a way to prevent this compiler from
13783 # explicitly linking system object files so we need to strip them
13784 # from the output so that they don't get included in the library
13785 # dependencies.
ee134472 13786 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
13787 ;;
13788 *)
13789 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13790 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13791 case $host in
13792 osf3*)
ee134472 13793 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
13794 ;;
13795 *)
ee134472 13796 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
13797 ;;
13798 esac
9c60689e 13799
47aaa820
DWT
13800 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13801 hardcode_libdir_separator_CXX=:
9c60689e 13802
47aaa820
DWT
13803 # Commands to make compiler produce verbose output that lists
13804 # what "hidden" libraries, object files and flags are used when
13805 # linking a shared library.
ee134472 13806 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
9c60689e 13807
47aaa820
DWT
13808 else
13809 # FIXME: insert proper C++ library support
13810 ld_shlibs_CXX=no
13811 fi
13812 ;;
13813 esac
13814 ;;
9c60689e 13815
47aaa820 13816 psos*)
9c60689e
DWT
13817 # FIXME: insert proper C++ library support
13818 ld_shlibs_CXX=no
13819 ;;
9c60689e 13820
47aaa820
DWT
13821 sunos4*)
13822 case $cc_basename in
13823 CC*)
13824 # Sun C++ 4.x
13825 # FIXME: insert proper C++ library support
13826 ld_shlibs_CXX=no
9c60689e 13827 ;;
47aaa820
DWT
13828 lcc*)
13829 # Lucid
13830 # FIXME: insert proper C++ library support
13831 ld_shlibs_CXX=no
13832 ;;
13833 *)
13834 # FIXME: insert proper C++ library support
13835 ld_shlibs_CXX=no
13836 ;;
13837 esac
13838 ;;
9c60689e 13839
47aaa820
DWT
13840 solaris*)
13841 case $cc_basename in
ee134472 13842 CC* | sunCC*)
47aaa820
DWT
13843 # Sun C++ 4.2, 5.x and Centerline C++
13844 archive_cmds_need_lc_CXX=yes
13845 no_undefined_flag_CXX=' -zdefs'
13846 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13847 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13848 $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 13849
47aaa820
DWT
13850 hardcode_libdir_flag_spec_CXX='-R$libdir'
13851 hardcode_shlibpath_var_CXX=no
13852 case $host_os in
13853 solaris2.[0-5] | solaris2.[0-5].*) ;;
13854 *)
13855 # The compiler driver will combine and reorder linker options,
13856 # but understands `-z linker_flag'.
13857 # Supported since Solaris 2.6 (maybe 2.5.1?)
13858 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13859 ;;
13860 esac
13861 link_all_deplibs_CXX=yes
9c60689e 13862
ee134472 13863 output_verbose_link_cmd='func_echo_all'
9c60689e 13864
47aaa820
DWT
13865 # Archives containing C++ object files must be created using
13866 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13867 # necessary to make sure instantiated templates are included
13868 # in the archive.
13869 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13870 ;;
13871 gcx*)
13872 # Green Hills C++ Compiler
13873 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9c60689e 13874
47aaa820
DWT
13875 # The C++ compiler must be used to create the archive.
13876 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13877 ;;
13878 *)
13879 # GNU C++ compiler with Solaris linker
13880 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13881 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13882 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
ee134472 13883 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
47aaa820 13884 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
ee134472 13885 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
9c60689e 13886
47aaa820
DWT
13887 # Commands to make compiler produce verbose output that lists
13888 # what "hidden" libraries, object files and flags are used when
13889 # linking a shared library.
ee134472 13890 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
47aaa820
DWT
13891 else
13892 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13893 # platform.
13894 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13895 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13896 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
9c60689e 13897
47aaa820
DWT
13898 # Commands to make compiler produce verbose output that lists
13899 # what "hidden" libraries, object files and flags are used when
13900 # linking a shared library.
ee134472 13901 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
47aaa820 13902 fi
9c60689e 13903
47aaa820
DWT
13904 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13905 case $host_os in
13906 solaris2.[0-5] | solaris2.[0-5].*) ;;
13907 *)
13908 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13909 ;;
13910 esac
13911 fi
13912 ;;
13913 esac
13914 ;;
9c60689e 13915
47aaa820
DWT
13916 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13917 no_undefined_flag_CXX='${wl}-z,text'
13918 archive_cmds_need_lc_CXX=no
13919 hardcode_shlibpath_var_CXX=no
13920 runpath_var='LD_RUN_PATH'
9c60689e 13921
47aaa820
DWT
13922 case $cc_basename in
13923 CC*)
13924 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13925 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13926 ;;
13927 *)
13928 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13929 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13930 ;;
13931 esac
13932 ;;
9c60689e 13933
47aaa820
DWT
13934 sysv5* | sco3.2v5* | sco5v6*)
13935 # Note: We can NOT use -z defs as we might desire, because we do not
13936 # link with -lc, and that would cause any symbols used from libc to
13937 # always be unresolved, which means just about no library would
13938 # ever link correctly. If we're not using GNU ld we use -z text
13939 # though, which does catch some bad symbols but isn't as heavy-handed
13940 # as -z defs.
13941 no_undefined_flag_CXX='${wl}-z,text'
13942 allow_undefined_flag_CXX='${wl}-z,nodefs'
13943 archive_cmds_need_lc_CXX=no
13944 hardcode_shlibpath_var_CXX=no
13945 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13946 hardcode_libdir_separator_CXX=':'
13947 link_all_deplibs_CXX=yes
13948 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13949 runpath_var='LD_RUN_PATH'
9c60689e 13950
47aaa820
DWT
13951 case $cc_basename in
13952 CC*)
13953 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13954 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
ee134472
JF
13955 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13956 '"$old_archive_cmds_CXX"
13957 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13958 '"$reload_cmds_CXX"
47aaa820
DWT
13959 ;;
13960 *)
13961 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13962 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13963 ;;
13964 esac
13965 ;;
9c60689e 13966
47aaa820 13967 tandem*)
9c60689e 13968 case $cc_basename in
47aaa820
DWT
13969 NCC*)
13970 # NonStop-UX NCC 3.20
13971 # FIXME: insert proper C++ library support
13972 ld_shlibs_CXX=no
13973 ;;
9c60689e 13974 *)
47aaa820
DWT
13975 # FIXME: insert proper C++ library support
13976 ld_shlibs_CXX=no
13977 ;;
9c60689e
DWT
13978 esac
13979 ;;
13980
47aaa820
DWT
13981 vxworks*)
13982 # FIXME: insert proper C++ library support
13983 ld_shlibs_CXX=no
13984 ;;
9c60689e 13985
47aaa820
DWT
13986 *)
13987 # FIXME: insert proper C++ library support
13988 ld_shlibs_CXX=no
9c60689e 13989 ;;
47aaa820 13990 esac
9c60689e 13991
47aaa820
DWT
13992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13993$as_echo "$ld_shlibs_CXX" >&6; }
13994 test "$ld_shlibs_CXX" = no && can_build_shared=no
9c60689e 13995
47aaa820
DWT
13996 GCC_CXX="$GXX"
13997 LD_CXX="$LD"
9c60689e 13998
47aaa820
DWT
13999 ## CAVEAT EMPTOR:
14000 ## There is no encapsulation within the following macros, do not change
14001 ## the running order or otherwise move them around unless you know exactly
14002 ## what you are doing...
14003 # Dependencies to place before and after the object being linked:
14004predep_objects_CXX=
14005postdep_objects_CXX=
14006predeps_CXX=
14007postdeps_CXX=
14008compiler_lib_search_path_CXX=
9c60689e 14009
47aaa820
DWT
14010cat > conftest.$ac_ext <<_LT_EOF
14011class Foo
14012{
14013public:
14014 Foo (void) { a = 0; }
14015private:
14016 int a;
14017};
14018_LT_EOF
9c60689e 14019
ee134472
JF
14020
14021_lt_libdeps_save_CFLAGS=$CFLAGS
14022case "$CC $CFLAGS " in #(
14023*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14024*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
53ba6704 14025*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
ee134472
JF
14026esac
14027
47aaa820
DWT
14028if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14029 (eval $ac_compile) 2>&5
14030 ac_status=$?
14031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14032 test $ac_status = 0; }; then
14033 # Parse the compiler output and extract the necessary
14034 # objects, libraries and library flags.
9c60689e 14035
47aaa820
DWT
14036 # Sentinel used to keep track of whether or not we are before
14037 # the conftest object file.
14038 pre_test_object_deps_done=no
9c60689e 14039
47aaa820 14040 for p in `eval "$output_verbose_link_cmd"`; do
ee134472 14041 case ${prev}${p} in
9c60689e 14042
47aaa820
DWT
14043 -L* | -R* | -l*)
14044 # Some compilers place space between "-{L,R}" and the path.
14045 # Remove the space.
14046 if test $p = "-L" ||
14047 test $p = "-R"; then
14048 prev=$p
14049 continue
47aaa820 14050 fi
9c60689e 14051
ee134472
JF
14052 # Expand the sysroot to ease extracting the directories later.
14053 if test -z "$prev"; then
14054 case $p in
14055 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14056 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14057 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14058 esac
14059 fi
14060 case $p in
14061 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14062 esac
47aaa820 14063 if test "$pre_test_object_deps_done" = no; then
ee134472
JF
14064 case ${prev} in
14065 -L | -R)
47aaa820
DWT
14066 # Internal compiler library paths should come after those
14067 # provided the user. The postdeps already come after the
14068 # user supplied libs so there is no need to process them.
14069 if test -z "$compiler_lib_search_path_CXX"; then
14070 compiler_lib_search_path_CXX="${prev}${p}"
14071 else
14072 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14073 fi
14074 ;;
14075 # The "-l" case would never come before the object being
14076 # linked, so don't bother handling this case.
14077 esac
14078 else
14079 if test -z "$postdeps_CXX"; then
14080 postdeps_CXX="${prev}${p}"
14081 else
14082 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14083 fi
14084 fi
ee134472 14085 prev=
47aaa820 14086 ;;
9c60689e 14087
ee134472 14088 *.lto.$objext) ;; # Ignore GCC LTO objects
47aaa820
DWT
14089 *.$objext)
14090 # This assumes that the test object file only shows up
14091 # once in the compiler output.
14092 if test "$p" = "conftest.$objext"; then
14093 pre_test_object_deps_done=yes
14094 continue
14095 fi
9c60689e 14096
47aaa820
DWT
14097 if test "$pre_test_object_deps_done" = no; then
14098 if test -z "$predep_objects_CXX"; then
14099 predep_objects_CXX="$p"
14100 else
14101 predep_objects_CXX="$predep_objects_CXX $p"
14102 fi
14103 else
14104 if test -z "$postdep_objects_CXX"; then
14105 postdep_objects_CXX="$p"
14106 else
14107 postdep_objects_CXX="$postdep_objects_CXX $p"
14108 fi
14109 fi
14110 ;;
9c60689e 14111
47aaa820 14112 *) ;; # Ignore the rest.
9c60689e 14113
47aaa820
DWT
14114 esac
14115 done
9c60689e 14116
47aaa820
DWT
14117 # Clean up.
14118 rm -f a.out a.exe
14119else
14120 echo "libtool.m4: error: problem compiling CXX test program"
14121fi
9c60689e 14122
47aaa820 14123$RM -f confest.$objext
ee134472 14124CFLAGS=$_lt_libdeps_save_CFLAGS
9c60689e 14125
47aaa820
DWT
14126# PORTME: override above test on systems where it is broken
14127case $host_os in
14128interix[3-9]*)
14129 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14130 # hack all around it, let's just trust "g++" to DTRT.
14131 predep_objects_CXX=
14132 postdep_objects_CXX=
14133 postdeps_CXX=
14134 ;;
9c60689e 14135
47aaa820
DWT
14136linux*)
14137 case `$CC -V 2>&1 | sed 5q` in
14138 *Sun\ C*)
14139 # Sun C++ 5.9
9c60689e 14140
47aaa820
DWT
14141 # The more standards-conforming stlport4 library is
14142 # incompatible with the Cstd library. Avoid specifying
14143 # it if it's in CXXFLAGS. Ignore libCrun as
14144 # -library=stlport4 depends on it.
14145 case " $CXX $CXXFLAGS " in
14146 *" -library=stlport4 "*)
14147 solaris_use_stlport4=yes
14148 ;;
14149 esac
9c60689e 14150
47aaa820
DWT
14151 if test "$solaris_use_stlport4" != yes; then
14152 postdeps_CXX='-library=Cstd -library=Crun'
14153 fi
14154 ;;
14155 esac
14156 ;;
9c60689e 14157
47aaa820
DWT
14158solaris*)
14159 case $cc_basename in
ee134472 14160 CC* | sunCC*)
47aaa820
DWT
14161 # The more standards-conforming stlport4 library is
14162 # incompatible with the Cstd library. Avoid specifying
14163 # it if it's in CXXFLAGS. Ignore libCrun as
14164 # -library=stlport4 depends on it.
14165 case " $CXX $CXXFLAGS " in
14166 *" -library=stlport4 "*)
14167 solaris_use_stlport4=yes
14168 ;;
14169 esac
9c60689e 14170
47aaa820
DWT
14171 # Adding this requires a known-good setup of shared libraries for
14172 # Sun compiler versions before 5.6, else PIC objects from an old
14173 # archive will be linked into the output, leading to subtle bugs.
14174 if test "$solaris_use_stlport4" != yes; then
14175 postdeps_CXX='-library=Cstd -library=Crun'
14176 fi
14177 ;;
14178 esac
14179 ;;
14180esac
9c60689e 14181
9c60689e 14182
47aaa820
DWT
14183case " $postdeps_CXX " in
14184*" -lc "*) archive_cmds_need_lc_CXX=no ;;
14185esac
14186 compiler_lib_search_dirs_CXX=
14187if test -n "${compiler_lib_search_path_CXX}"; then
14188 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14189fi
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
9c60689e 14218
9c60689e 14219
9c60689e 14220
47aaa820
DWT
14221 lt_prog_compiler_wl_CXX=
14222lt_prog_compiler_pic_CXX=
14223lt_prog_compiler_static_CXX=
9c60689e 14224
9c60689e
DWT
14225
14226 # C++ specific cases for pic, static, wl, etc.
14227 if test "$GXX" = yes; then
14228 lt_prog_compiler_wl_CXX='-Wl,'
14229 lt_prog_compiler_static_CXX='-static'
14230
14231 case $host_os in
14232 aix*)
14233 # All AIX code is PIC.
14234 if test "$host_cpu" = ia64; then
14235 # AIX 5 now supports IA64 processor
14236 lt_prog_compiler_static_CXX='-Bstatic'
14237 fi
14238 ;;
14239
14240 amigaos*)
14241 case $host_cpu in
14242 powerpc)
14243 # see comment about AmigaOS4 .so support
14244 lt_prog_compiler_pic_CXX='-fPIC'
14245 ;;
14246 m68k)
14247 # FIXME: we need at least 68020 code to build shared libraries, but
14248 # adding the `-m68020' flag to GCC prevents building anything better,
14249 # like `-m68040'.
14250 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14251 ;;
14252 esac
14253 ;;
14254
14255 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14256 # PIC is the default for these OSes.
14257 ;;
14258 mingw* | cygwin* | os2* | pw32* | cegcc*)
14259 # This hack is so that the source file can tell whether it is being
14260 # built for inclusion in a dll (and should export symbols for example).
14261 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14262 # (--disable-auto-import) libraries
14263 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14264 ;;
14265 darwin* | rhapsody*)
14266 # PIC is the default on this platform
14267 # Common symbols not allowed in MH_DYLIB files
14268 lt_prog_compiler_pic_CXX='-fno-common'
14269 ;;
14270 *djgpp*)
14271 # DJGPP does not support shared libraries at all
14272 lt_prog_compiler_pic_CXX=
14273 ;;
ee134472
JF
14274 haiku*)
14275 # PIC is the default for Haiku.
14276 # The "-static" flag exists, but is broken.
14277 lt_prog_compiler_static_CXX=
14278 ;;
9c60689e
DWT
14279 interix[3-9]*)
14280 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14281 # Instead, we relocate shared libraries at runtime.
14282 ;;
14283 sysv4*MP*)
14284 if test -d /usr/nec; then
14285 lt_prog_compiler_pic_CXX=-Kconform_pic
14286 fi
14287 ;;
14288 hpux*)
14289 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14290 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14291 # sets the default TLS model and affects inlining.
14292 case $host_cpu in
14293 hppa*64*)
14294 ;;
14295 *)
14296 lt_prog_compiler_pic_CXX='-fPIC'
14297 ;;
14298 esac
14299 ;;
14300 *qnx* | *nto*)
14301 # QNX uses GNU C++, but need to define -shared option too, otherwise
14302 # it will coredump.
14303 lt_prog_compiler_pic_CXX='-fPIC -shared'
14304 ;;
14305 *)
14306 lt_prog_compiler_pic_CXX='-fPIC'
14307 ;;
14308 esac
14309 else
14310 case $host_os in
14311 aix[4-9]*)
14312 # All AIX code is PIC.
14313 if test "$host_cpu" = ia64; then
14314 # AIX 5 now supports IA64 processor
14315 lt_prog_compiler_static_CXX='-Bstatic'
14316 else
14317 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14318 fi
14319 ;;
14320 chorus*)
14321 case $cc_basename in
14322 cxch68*)
14323 # Green Hills C++ Compiler
14324 # _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"
14325 ;;
14326 esac
14327 ;;
ee134472
JF
14328 mingw* | cygwin* | os2* | pw32* | cegcc*)
14329 # This hack is so that the source file can tell whether it is being
14330 # built for inclusion in a dll (and should export symbols for example).
14331 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14332 ;;
9c60689e
DWT
14333 dgux*)
14334 case $cc_basename in
14335 ec++*)
14336 lt_prog_compiler_pic_CXX='-KPIC'
14337 ;;
14338 ghcx*)
14339 # Green Hills C++ Compiler
14340 lt_prog_compiler_pic_CXX='-pic'
14341 ;;
14342 *)
14343 ;;
14344 esac
14345 ;;
14346 freebsd* | dragonfly*)
14347 # FreeBSD uses GNU C++
14348 ;;
14349 hpux9* | hpux10* | hpux11*)
14350 case $cc_basename in
14351 CC*)
14352 lt_prog_compiler_wl_CXX='-Wl,'
14353 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14354 if test "$host_cpu" != ia64; then
14355 lt_prog_compiler_pic_CXX='+Z'
14356 fi
14357 ;;
14358 aCC*)
14359 lt_prog_compiler_wl_CXX='-Wl,'
14360 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14361 case $host_cpu in
14362 hppa*64*|ia64*)
14363 # +Z the default
14364 ;;
14365 *)
14366 lt_prog_compiler_pic_CXX='+Z'
14367 ;;
14368 esac
14369 ;;
14370 *)
14371 ;;
14372 esac
14373 ;;
14374 interix*)
14375 # This is c89, which is MS Visual C++ (no shared libs)
14376 # Anyone wants to do a port?
14377 ;;
14378 irix5* | irix6* | nonstopux*)
14379 case $cc_basename in
14380 CC*)
14381 lt_prog_compiler_wl_CXX='-Wl,'
14382 lt_prog_compiler_static_CXX='-non_shared'
14383 # CC pic flag -KPIC is the default.
14384 ;;
14385 *)
14386 ;;
14387 esac
14388 ;;
1504c9b8 14389 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9c60689e
DWT
14390 case $cc_basename in
14391 KCC*)
14392 # KAI C++ Compiler
14393 lt_prog_compiler_wl_CXX='--backend -Wl,'
14394 lt_prog_compiler_pic_CXX='-fPIC'
14395 ;;
14396 ecpc* )
14397 # old Intel C++ for x86_64 which still supported -KPIC.
14398 lt_prog_compiler_wl_CXX='-Wl,'
14399 lt_prog_compiler_pic_CXX='-KPIC'
14400 lt_prog_compiler_static_CXX='-static'
14401 ;;
14402 icpc* )
14403 # Intel C++, used to be incompatible with GCC.
14404 # ICC 10 doesn't accept -KPIC any more.
14405 lt_prog_compiler_wl_CXX='-Wl,'
14406 lt_prog_compiler_pic_CXX='-fPIC'
14407 lt_prog_compiler_static_CXX='-static'
14408 ;;
14409 pgCC* | pgcpp*)
14410 # Portland Group C++ compiler
14411 lt_prog_compiler_wl_CXX='-Wl,'
14412 lt_prog_compiler_pic_CXX='-fpic'
14413 lt_prog_compiler_static_CXX='-Bstatic'
14414 ;;
14415 cxx*)
14416 # Compaq C++
14417 # Make sure the PIC flag is empty. It appears that all Alpha
14418 # Linux and Compaq Tru64 Unix objects are PIC.
14419 lt_prog_compiler_pic_CXX=
14420 lt_prog_compiler_static_CXX='-non_shared'
14421 ;;
ee134472
JF
14422 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14423 # IBM XL 8.0, 9.0 on PPC and BlueGene
9c60689e
DWT
14424 lt_prog_compiler_wl_CXX='-Wl,'
14425 lt_prog_compiler_pic_CXX='-qpic'
14426 lt_prog_compiler_static_CXX='-qstaticlink'
14427 ;;
14428 *)
14429 case `$CC -V 2>&1 | sed 5q` in
14430 *Sun\ C*)
14431 # Sun C++ 5.9
14432 lt_prog_compiler_pic_CXX='-KPIC'
14433 lt_prog_compiler_static_CXX='-Bstatic'
14434 lt_prog_compiler_wl_CXX='-Qoption ld '
14435 ;;
14436 esac
14437 ;;
14438 esac
14439 ;;
14440 lynxos*)
14441 ;;
14442 m88k*)
14443 ;;
14444 mvs*)
14445 case $cc_basename in
14446 cxx*)
14447 lt_prog_compiler_pic_CXX='-W c,exportall'
14448 ;;
14449 *)
14450 ;;
14451 esac
14452 ;;
53ba6704 14453 netbsd*)
9c60689e
DWT
14454 ;;
14455 *qnx* | *nto*)
14456 # QNX uses GNU C++, but need to define -shared option too, otherwise
14457 # it will coredump.
14458 lt_prog_compiler_pic_CXX='-fPIC -shared'
14459 ;;
14460 osf3* | osf4* | osf5*)
14461 case $cc_basename in
14462 KCC*)
14463 lt_prog_compiler_wl_CXX='--backend -Wl,'
14464 ;;
14465 RCC*)
14466 # Rational C++ 2.4.1
14467 lt_prog_compiler_pic_CXX='-pic'
14468 ;;
14469 cxx*)
14470 # Digital/Compaq C++
14471 lt_prog_compiler_wl_CXX='-Wl,'
14472 # Make sure the PIC flag is empty. It appears that all Alpha
14473 # Linux and Compaq Tru64 Unix objects are PIC.
14474 lt_prog_compiler_pic_CXX=
14475 lt_prog_compiler_static_CXX='-non_shared'
14476 ;;
14477 *)
14478 ;;
14479 esac
14480 ;;
14481 psos*)
14482 ;;
14483 solaris*)
14484 case $cc_basename in
ee134472 14485 CC* | sunCC*)
9c60689e
DWT
14486 # Sun C++ 4.2, 5.x and Centerline C++
14487 lt_prog_compiler_pic_CXX='-KPIC'
14488 lt_prog_compiler_static_CXX='-Bstatic'
14489 lt_prog_compiler_wl_CXX='-Qoption ld '
14490 ;;
14491 gcx*)
14492 # Green Hills C++ Compiler
14493 lt_prog_compiler_pic_CXX='-PIC'
14494 ;;
14495 *)
14496 ;;
14497 esac
14498 ;;
14499 sunos4*)
14500 case $cc_basename in
14501 CC*)
14502 # Sun C++ 4.x
14503 lt_prog_compiler_pic_CXX='-pic'
14504 lt_prog_compiler_static_CXX='-Bstatic'
14505 ;;
14506 lcc*)
14507 # Lucid
14508 lt_prog_compiler_pic_CXX='-pic'
14509 ;;
14510 *)
14511 ;;
14512 esac
14513 ;;
14514 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14515 case $cc_basename in
14516 CC*)
14517 lt_prog_compiler_wl_CXX='-Wl,'
14518 lt_prog_compiler_pic_CXX='-KPIC'
14519 lt_prog_compiler_static_CXX='-Bstatic'
14520 ;;
14521 esac
14522 ;;
14523 tandem*)
14524 case $cc_basename in
14525 NCC*)
14526 # NonStop-UX NCC 3.20
14527 lt_prog_compiler_pic_CXX='-KPIC'
14528 ;;
14529 *)
14530 ;;
14531 esac
14532 ;;
14533 vxworks*)
14534 ;;
14535 *)
14536 lt_prog_compiler_can_build_shared_CXX=no
14537 ;;
14538 esac
14539 fi
14540
14541case $host_os in
14542 # For platforms which do not support PIC, -DPIC is meaningless:
14543 *djgpp*)
14544 lt_prog_compiler_pic_CXX=
14545 ;;
14546 *)
14547 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14548 ;;
14549esac
9c60689e 14550
ee134472
JF
14551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14552$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14553if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14554 $as_echo_n "(cached) " >&6
14555else
14556 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14557fi
14558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14559$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14560lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
9c60689e
DWT
14561
14562#
14563# Check to make sure the PIC flag actually works.
14564#
14565if test -n "$lt_prog_compiler_pic_CXX"; then
14566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14567$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
ee134472 14568if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
9c60689e
DWT
14569 $as_echo_n "(cached) " >&6
14570else
14571 lt_cv_prog_compiler_pic_works_CXX=no
14572 ac_outfile=conftest.$ac_objext
14573 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14574 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14575 # Insert the option either (1) after the last *FLAGS variable, or
14576 # (2) before a word containing "conftest.", or (3) at the end.
14577 # Note that $ac_compile itself does not contain backslashes and begins
14578 # with a dollar sign (not a hyphen), so the echo should work correctly.
14579 # The option is referenced via a variable to avoid confusing sed.
14580 lt_compile=`echo "$ac_compile" | $SED \
14581 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14582 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14583 -e 's:$: $lt_compiler_flag:'`
ee134472 14584 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9c60689e
DWT
14585 (eval "$lt_compile" 2>conftest.err)
14586 ac_status=$?
14587 cat conftest.err >&5
ee134472 14588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9c60689e
DWT
14589 if (exit $ac_status) && test -s "$ac_outfile"; then
14590 # The compiler can only warn and ignore the option if not recognized
14591 # So say no if there are warnings other than the usual output.
ee134472 14592 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9c60689e
DWT
14593 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14594 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14595 lt_cv_prog_compiler_pic_works_CXX=yes
14596 fi
14597 fi
53ba6704 14598 $RM -r conftest*
9c60689e
DWT
14599
14600fi
14601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14602$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14603
14604if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14605 case $lt_prog_compiler_pic_CXX in
14606 "" | " "*) ;;
14607 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14608 esac
14609else
14610 lt_prog_compiler_pic_CXX=
14611 lt_prog_compiler_can_build_shared_CXX=no
14612fi
14613
14614fi
14615
14616
14617
ee134472
JF
14618
14619
47aaa820
DWT
14620#
14621# Check to make sure the static flag actually works.
14622#
14623wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14625$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
ee134472 14626if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
47aaa820
DWT
14627 $as_echo_n "(cached) " >&6
14628else
14629 lt_cv_prog_compiler_static_works_CXX=no
14630 save_LDFLAGS="$LDFLAGS"
14631 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14632 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14633 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14634 # The linker can only warn and ignore the option if not recognized
14635 # So say no if there are warnings
14636 if test -s conftest.err; then
14637 # Append any errors to the config.log.
14638 cat conftest.err 1>&5
ee134472 14639 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
47aaa820
DWT
14640 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14641 if diff conftest.exp conftest.er2 >/dev/null; then
14642 lt_cv_prog_compiler_static_works_CXX=yes
14643 fi
14644 else
14645 lt_cv_prog_compiler_static_works_CXX=yes
14646 fi
14647 fi
14648 $RM -r conftest*
14649 LDFLAGS="$save_LDFLAGS"
14650
14651fi
14652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14653$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14654
14655if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14656 :
14657else
14658 lt_prog_compiler_static_CXX=
14659fi
14660
14661
14662
14663
14664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14665$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
ee134472 14666if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
47aaa820
DWT
14667 $as_echo_n "(cached) " >&6
14668else
14669 lt_cv_prog_compiler_c_o_CXX=no
14670 $RM -r conftest 2>/dev/null
14671 mkdir conftest
14672 cd conftest
14673 mkdir out
14674 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14675
14676 lt_compiler_flag="-o out/conftest2.$ac_objext"
14677 # Insert the option either (1) after the last *FLAGS variable, or
14678 # (2) before a word containing "conftest.", or (3) at the end.
14679 # Note that $ac_compile itself does not contain backslashes and begins
14680 # with a dollar sign (not a hyphen), so the echo should work correctly.
14681 lt_compile=`echo "$ac_compile" | $SED \
14682 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14683 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14684 -e 's:$: $lt_compiler_flag:'`
ee134472 14685 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
47aaa820
DWT
14686 (eval "$lt_compile" 2>out/conftest.err)
14687 ac_status=$?
14688 cat out/conftest.err >&5
ee134472 14689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47aaa820
DWT
14690 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14691 then
14692 # The compiler can only warn and ignore the option if not recognized
14693 # So say no if there are warnings
ee134472 14694 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
47aaa820
DWT
14695 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14696 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14697 lt_cv_prog_compiler_c_o_CXX=yes
14698 fi
14699 fi
14700 chmod u+w . 2>&5
53ba6704 14701 $RM -r conftest*
47aaa820
DWT
14702 # SGI C++ compiler will create directory out/ii_files/ for
14703 # template instantiation
14704 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14705 $RM out/* && rmdir out
14706 cd ..
14707 $RM -r conftest
53ba6704 14708 $RM -r conftest*
47aaa820
DWT
14709
14710fi
14711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14712$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14713
14714
14715
14716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14717$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
ee134472 14718if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
47aaa820
DWT
14719 $as_echo_n "(cached) " >&6
14720else
14721 lt_cv_prog_compiler_c_o_CXX=no
14722 $RM -r conftest 2>/dev/null
14723 mkdir conftest
14724 cd conftest
14725 mkdir out
14726 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14727
14728 lt_compiler_flag="-o out/conftest2.$ac_objext"
14729 # Insert the option either (1) after the last *FLAGS variable, or
14730 # (2) before a word containing "conftest.", or (3) at the end.
14731 # Note that $ac_compile itself does not contain backslashes and begins
14732 # with a dollar sign (not a hyphen), so the echo should work correctly.
14733 lt_compile=`echo "$ac_compile" | $SED \
14734 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14735 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14736 -e 's:$: $lt_compiler_flag:'`
ee134472 14737 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
47aaa820
DWT
14738 (eval "$lt_compile" 2>out/conftest.err)
14739 ac_status=$?
14740 cat out/conftest.err >&5
ee134472 14741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47aaa820
DWT
14742 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14743 then
14744 # The compiler can only warn and ignore the option if not recognized
14745 # So say no if there are warnings
ee134472 14746 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
47aaa820
DWT
14747 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14748 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14749 lt_cv_prog_compiler_c_o_CXX=yes
14750 fi
14751 fi
14752 chmod u+w . 2>&5
53ba6704 14753 $RM -r conftest*
47aaa820
DWT
14754 # SGI C++ compiler will create directory out/ii_files/ for
14755 # template instantiation
14756 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14757 $RM out/* && rmdir out
14758 cd ..
14759 $RM -r conftest
53ba6704 14760 $RM -r conftest*
47aaa820
DWT
14761
14762fi
14763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14764$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14765
14766
14767
14768
14769hard_links="nottested"
14770if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14771 # do not overwrite the value of need_locks provided by the user
14772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14773$as_echo_n "checking if we can lock with hard links... " >&6; }
14774 hard_links=yes
53ba6704 14775 $RM -r conftest*
47aaa820
DWT
14776 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14777 touch conftest.a
14778 ln conftest.a conftest.b 2>&5 || hard_links=no
14779 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14781$as_echo "$hard_links" >&6; }
14782 if test "$hard_links" = no; then
14783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14784$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14785 need_locks=warn
14786 fi
14787else
14788 need_locks=no
14789fi
14790
14791
14792
14793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14794$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14795
14796 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
ee134472 14797 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
47aaa820
DWT
14798 case $host_os in
14799 aix[4-9]*)
14800 # If we're using GNU nm, then we don't want the "-C" option.
14801 # -C means demangle to AIX nm, but means don't demangle with GNU nm
ee134472
JF
14802 # Also, AIX nm treats weak defined symbols like other global defined
14803 # symbols, whereas GNU nm marks them as "W".
47aaa820 14804 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
ee134472 14805 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
14806 else
14807 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'
14808 fi
14809 ;;
14810 pw32*)
14811 export_symbols_cmds_CXX="$ltdll_cmds"
ee134472 14812 ;;
47aaa820 14813 cygwin* | mingw* | cegcc*)
ee134472 14814 case $cc_basename in
53ba6704
JF
14815 cl*)
14816 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14817 ;;
ee134472
JF
14818 *)
14819 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'
14820 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14821 ;;
14822 esac
14823 ;;
47aaa820
DWT
14824 *)
14825 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
ee134472 14826 ;;
47aaa820 14827 esac
47aaa820
DWT
14828
14829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14830$as_echo "$ld_shlibs_CXX" >&6; }
14831test "$ld_shlibs_CXX" = no && can_build_shared=no
14832
14833with_gnu_ld_CXX=$with_gnu_ld
14834
14835
14836
14837
14838
14839
14840#
14841# Do we need to explicitly link libc?
14842#
14843case "x$archive_cmds_need_lc_CXX" in
14844x|xyes)
14845 # Assume -lc should be added
14846 archive_cmds_need_lc_CXX=yes
14847
14848 if test "$enable_shared" = yes && test "$GCC" = yes; then
14849 case $archive_cmds_CXX in
14850 *'~'*)
14851 # FIXME: we may have to deal with multi-command sequences.
14852 ;;
14853 '$CC '*)
14854 # Test whether the compiler implicitly links with -lc since on some
14855 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14856 # to ld, don't add -lc before -lgcc.
14857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14858$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
ee134472
JF
14859if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14860 $as_echo_n "(cached) " >&6
14861else
53ba6704 14862 $RM -r conftest*
ee134472 14863 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
47aaa820 14864
ee134472 14865 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
47aaa820
DWT
14866 (eval $ac_compile) 2>&5
14867 ac_status=$?
14868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14869 test $ac_status = 0; } 2>conftest.err; then
ee134472
JF
14870 soname=conftest
14871 lib=conftest
14872 libobjs=conftest.$ac_objext
14873 deplibs=
14874 wl=$lt_prog_compiler_wl_CXX
14875 pic_flag=$lt_prog_compiler_pic_CXX
14876 compiler_flags=-v
14877 linker_flags=-v
14878 verstring=
14879 output_objdir=.
14880 libname=conftest
14881 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14882 allow_undefined_flag_CXX=
14883 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
47aaa820
DWT
14884 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14885 ac_status=$?
14886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14887 test $ac_status = 0; }
ee134472
JF
14888 then
14889 lt_cv_archive_cmds_need_lc_CXX=no
14890 else
14891 lt_cv_archive_cmds_need_lc_CXX=yes
14892 fi
14893 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14894 else
14895 cat conftest.err 1>&5
14896 fi
53ba6704 14897 $RM -r conftest*
ee134472
JF
14898
14899fi
14900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14901$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14902 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
47aaa820
DWT
14903 ;;
14904 esac
14905 fi
14906 ;;
14907esac
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
14964
14965
14966
47aaa820
DWT
14967
14968
14969
14970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14971$as_echo_n "checking dynamic linker characteristics... " >&6; }
14972
14973library_names_spec=
14974libname_spec='lib$name'
14975soname_spec=
14976shrext_cmds=".so"
14977postinstall_cmds=
14978postuninstall_cmds=
14979finish_cmds=
14980finish_eval=
14981shlibpath_var=
14982shlibpath_overrides_runpath=unknown
14983version_type=none
14984dynamic_linker="$host_os ld.so"
14985sys_lib_dlsearch_path_spec="/lib /usr/lib"
14986need_lib_prefix=unknown
14987hardcode_into_libs=no
14988
14989# when you set need_version to no, make sure it does not cause -set_version
14990# flags to be left without arguments
14991need_version=unknown
14992
14993case $host_os in
14994aix3*)
53ba6704 14995 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
14996 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14997 shlibpath_var=LIBPATH
14998
14999 # AIX 3 has no versioning support, so we append a major version to the name.
15000 soname_spec='${libname}${release}${shared_ext}$major'
15001 ;;
15002
15003aix[4-9]*)
53ba6704 15004 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15005 need_lib_prefix=no
15006 need_version=no
15007 hardcode_into_libs=yes
15008 if test "$host_cpu" = ia64; then
15009 # AIX 5 supports IA64
15010 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15011 shlibpath_var=LD_LIBRARY_PATH
15012 else
15013 # With GCC up to 2.95.x, collect2 would create an import file
15014 # for dependence libraries. The import file would start with
15015 # the line `#! .'. This would cause the generated library to
15016 # depend on `.', always an invalid library. This was fixed in
15017 # development snapshots of GCC prior to 3.0.
15018 case $host_os in
15019 aix4 | aix4.[01] | aix4.[01].*)
15020 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15021 echo ' yes '
15022 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15023 :
15024 else
15025 can_build_shared=no
15026 fi
15027 ;;
15028 esac
15029 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15030 # soname into executable. Probably we can add versioning support to
15031 # collect2, so additional links can be useful in future.
15032 if test "$aix_use_runtimelinking" = yes; then
15033 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15034 # instead of lib<name>.a to let people know that these are not
15035 # typical AIX shared libraries.
15036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15037 else
15038 # We preserve .a as extension for shared libraries through AIX4.2
15039 # and later when we are not doing run time linking.
15040 library_names_spec='${libname}${release}.a $libname.a'
15041 soname_spec='${libname}${release}${shared_ext}$major'
15042 fi
15043 shlibpath_var=LIBPATH
15044 fi
15045 ;;
15046
15047amigaos*)
15048 case $host_cpu in
15049 powerpc)
15050 # Since July 2007 AmigaOS4 officially supports .so libraries.
15051 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15053 ;;
15054 m68k)
15055 library_names_spec='$libname.ixlibrary $libname.a'
15056 # Create ${libname}_ixlibrary.a entries in /sys/libs.
ee134472 15057 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
15058 ;;
15059 esac
15060 ;;
15061
15062beos*)
15063 library_names_spec='${libname}${shared_ext}'
15064 dynamic_linker="$host_os ld.so"
15065 shlibpath_var=LIBRARY_PATH
15066 ;;
15067
15068bsdi[45]*)
53ba6704 15069 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15070 need_version=no
15071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15072 soname_spec='${libname}${release}${shared_ext}$major'
15073 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15074 shlibpath_var=LD_LIBRARY_PATH
15075 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15076 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15077 # the default ld.so.conf also contains /usr/contrib/lib and
15078 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15079 # libtool to hard-code these into programs
15080 ;;
9c60689e 15081
47aaa820
DWT
15082cygwin* | mingw* | pw32* | cegcc*)
15083 version_type=windows
15084 shrext_cmds=".dll"
15085 need_version=no
15086 need_lib_prefix=no
9c60689e 15087
ee134472
JF
15088 case $GCC,$cc_basename in
15089 yes,*)
15090 # gcc
47aaa820
DWT
15091 library_names_spec='$libname.dll.a'
15092 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15093 postinstall_cmds='base_file=`basename \${file}`~
15094 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15095 dldir=$destdir/`dirname \$dlpath`~
15096 test -d \$dldir || mkdir -p \$dldir~
15097 $install_prog $dir/$dlname \$dldir/$dlname~
15098 chmod a+x \$dldir/$dlname~
15099 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15100 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15101 fi'
15102 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15103 dlpath=$dir/\$dldll~
15104 $RM \$dlpath'
15105 shlibpath_overrides_runpath=yes
9c60689e 15106
47aaa820
DWT
15107 case $host_os in
15108 cygwin*)
15109 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15110 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
ee134472 15111
47aaa820
DWT
15112 ;;
15113 mingw* | cegcc*)
15114 # MinGW DLLs use traditional 'lib' prefix
15115 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
47aaa820
DWT
15116 ;;
15117 pw32*)
15118 # pw32 DLLs use 'pw' prefix rather than 'lib'
15119 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15120 ;;
15121 esac
ee134472
JF
15122 dynamic_linker='Win32 ld.exe'
15123 ;;
15124
15125 *,cl*)
15126 # Native MSVC
15127 libname_spec='$name'
15128 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15129 library_names_spec='${libname}.dll.lib'
15130
15131 case $build_os in
15132 mingw*)
15133 sys_lib_search_path_spec=
15134 lt_save_ifs=$IFS
15135 IFS=';'
15136 for lt_path in $LIB
15137 do
15138 IFS=$lt_save_ifs
15139 # Let DOS variable expansion print the short 8.3 style file name.
15140 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15141 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15142 done
15143 IFS=$lt_save_ifs
15144 # Convert to MSYS style.
15145 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15146 ;;
15147 cygwin*)
15148 # Convert to unix form, then to dos form, then back to unix form
15149 # but this time dos style (no spaces!) so that the unix form looks
15150 # like /cygdrive/c/PROGRA~1:/cygdr...
15151 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15152 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15153 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15154 ;;
15155 *)
15156 sys_lib_search_path_spec="$LIB"
15157 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15158 # It is most probably a Windows format PATH.
15159 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15160 else
15161 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15162 fi
15163 # FIXME: find the short name or the path components, as spaces are
15164 # common. (e.g. "Program Files" -> "PROGRA~1")
15165 ;;
15166 esac
15167
15168 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15169 postinstall_cmds='base_file=`basename \${file}`~
15170 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15171 dldir=$destdir/`dirname \$dlpath`~
15172 test -d \$dldir || mkdir -p \$dldir~
15173 $install_prog $dir/$dlname \$dldir/$dlname'
15174 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15175 dlpath=$dir/\$dldll~
15176 $RM \$dlpath'
15177 shlibpath_overrides_runpath=yes
15178 dynamic_linker='Win32 link.exe'
47aaa820 15179 ;;
9c60689e 15180
47aaa820 15181 *)
ee134472 15182 # Assume MSVC wrapper
47aaa820 15183 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
ee134472 15184 dynamic_linker='Win32 ld.exe'
47aaa820
DWT
15185 ;;
15186 esac
47aaa820
DWT
15187 # FIXME: first we should search . and the directory the executable is in
15188 shlibpath_var=PATH
15189 ;;
9c60689e 15190
47aaa820
DWT
15191darwin* | rhapsody*)
15192 dynamic_linker="$host_os dyld"
15193 version_type=darwin
15194 need_lib_prefix=no
15195 need_version=no
15196 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15197 soname_spec='${libname}${release}${major}$shared_ext'
15198 shlibpath_overrides_runpath=yes
15199 shlibpath_var=DYLD_LIBRARY_PATH
15200 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9c60689e 15201
47aaa820
DWT
15202 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15203 ;;
9c60689e 15204
47aaa820 15205dgux*)
53ba6704 15206 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15207 need_lib_prefix=no
15208 need_version=no
15209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15210 soname_spec='${libname}${release}${shared_ext}$major'
15211 shlibpath_var=LD_LIBRARY_PATH
15212 ;;
9c60689e 15213
47aaa820
DWT
15214freebsd* | dragonfly*)
15215 # DragonFly does not have aout. When/if they implement a new
15216 # versioning mechanism, adjust this.
15217 if test -x /usr/bin/objformat; then
15218 objformat=`/usr/bin/objformat`
15219 else
15220 case $host_os in
53ba6704 15221 freebsd[23].*) objformat=aout ;;
47aaa820
DWT
15222 *) objformat=elf ;;
15223 esac
15224 fi
15225 version_type=freebsd-$objformat
15226 case $version_type in
15227 freebsd-elf*)
15228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15229 need_version=no
15230 need_lib_prefix=no
15231 ;;
15232 freebsd-*)
15233 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15234 need_version=yes
15235 ;;
15236 esac
15237 shlibpath_var=LD_LIBRARY_PATH
15238 case $host_os in
53ba6704 15239 freebsd2.*)
47aaa820
DWT
15240 shlibpath_overrides_runpath=yes
15241 ;;
15242 freebsd3.[01]* | freebsdelf3.[01]*)
15243 shlibpath_overrides_runpath=yes
15244 hardcode_into_libs=yes
15245 ;;
15246 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15247 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15248 shlibpath_overrides_runpath=no
15249 hardcode_into_libs=yes
15250 ;;
15251 *) # from 4.6 on, and DragonFly
15252 shlibpath_overrides_runpath=yes
15253 hardcode_into_libs=yes
15254 ;;
15255 esac
15256 ;;
9c60689e 15257
47aaa820 15258gnu*)
53ba6704 15259 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15260 need_lib_prefix=no
15261 need_version=no
15262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15263 soname_spec='${libname}${release}${shared_ext}$major'
15264 shlibpath_var=LD_LIBRARY_PATH
ee134472
JF
15265 shlibpath_overrides_runpath=no
15266 hardcode_into_libs=yes
15267 ;;
15268
15269haiku*)
53ba6704 15270 version_type=linux # correct to gnu/linux during the next big refactor
ee134472
JF
15271 need_lib_prefix=no
15272 need_version=no
15273 dynamic_linker="$host_os runtime_loader"
15274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15275 soname_spec='${libname}${release}${shared_ext}$major'
15276 shlibpath_var=LIBRARY_PATH
15277 shlibpath_overrides_runpath=yes
15278 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
47aaa820
DWT
15279 hardcode_into_libs=yes
15280 ;;
9c60689e 15281
47aaa820
DWT
15282hpux9* | hpux10* | hpux11*)
15283 # Give a soname corresponding to the major version so that dld.sl refuses to
15284 # link against other versions.
15285 version_type=sunos
15286 need_lib_prefix=no
15287 need_version=no
15288 case $host_cpu in
15289 ia64*)
15290 shrext_cmds='.so'
15291 hardcode_into_libs=yes
15292 dynamic_linker="$host_os dld.so"
15293 shlibpath_var=LD_LIBRARY_PATH
15294 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15296 soname_spec='${libname}${release}${shared_ext}$major'
15297 if test "X$HPUX_IA64_MODE" = X32; then
15298 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15299 else
15300 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15301 fi
15302 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15303 ;;
15304 hppa*64*)
15305 shrext_cmds='.sl'
15306 hardcode_into_libs=yes
15307 dynamic_linker="$host_os dld.sl"
15308 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15309 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15311 soname_spec='${libname}${release}${shared_ext}$major'
15312 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15313 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15314 ;;
15315 *)
15316 shrext_cmds='.sl'
15317 dynamic_linker="$host_os dld.sl"
15318 shlibpath_var=SHLIB_PATH
15319 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15321 soname_spec='${libname}${release}${shared_ext}$major'
15322 ;;
15323 esac
ee134472 15324 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
47aaa820 15325 postinstall_cmds='chmod 555 $lib'
ee134472
JF
15326 # or fails outright, so override atomically:
15327 install_override_mode=555
47aaa820 15328 ;;
9c60689e 15329
47aaa820 15330interix[3-9]*)
53ba6704 15331 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15332 need_lib_prefix=no
15333 need_version=no
15334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15335 soname_spec='${libname}${release}${shared_ext}$major'
15336 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15337 shlibpath_var=LD_LIBRARY_PATH
15338 shlibpath_overrides_runpath=no
15339 hardcode_into_libs=yes
15340 ;;
9c60689e 15341
47aaa820
DWT
15342irix5* | irix6* | nonstopux*)
15343 case $host_os in
15344 nonstopux*) version_type=nonstopux ;;
15345 *)
15346 if test "$lt_cv_prog_gnu_ld" = yes; then
53ba6704 15347 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15348 else
15349 version_type=irix
15350 fi ;;
15351 esac
15352 need_lib_prefix=no
15353 need_version=no
15354 soname_spec='${libname}${release}${shared_ext}$major'
15355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15356 case $host_os in
15357 irix5* | nonstopux*)
15358 libsuff= shlibsuff=
15359 ;;
15360 *)
15361 case $LD in # libtool.m4 will add one of these switches to LD
15362 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15363 libsuff= shlibsuff= libmagic=32-bit;;
15364 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15365 libsuff=32 shlibsuff=N32 libmagic=N32;;
15366 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15367 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15368 *) libsuff= shlibsuff= libmagic=never-match;;
15369 esac
15370 ;;
15371 esac
15372 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15373 shlibpath_overrides_runpath=no
15374 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15375 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15376 hardcode_into_libs=yes
15377 ;;
9c60689e 15378
47aaa820
DWT
15379# No shared lib support for Linux oldld, aout, or coff.
15380linux*oldld* | linux*aout* | linux*coff*)
15381 dynamic_linker=no
15382 ;;
9c60689e 15383
53ba6704 15384# This must be glibc/ELF.
1504c9b8 15385linux* | k*bsd*-gnu | kopensolaris*-gnu)
53ba6704 15386 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15387 need_lib_prefix=no
15388 need_version=no
15389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15390 soname_spec='${libname}${release}${shared_ext}$major'
15391 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15392 shlibpath_var=LD_LIBRARY_PATH
15393 shlibpath_overrides_runpath=no
ee134472 15394
47aaa820 15395 # Some binutils ld are patched to set DT_RUNPATH
ee134472
JF
15396 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15397 $as_echo_n "(cached) " >&6
15398else
15399 lt_cv_shlibpath_overrides_runpath=no
15400 save_LDFLAGS=$LDFLAGS
15401 save_libdir=$libdir
15402 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15403 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47aaa820 15405/* end confdefs.h. */
9c60689e 15406
47aaa820
DWT
15407int
15408main ()
15409{
9c60689e 15410
47aaa820
DWT
15411 ;
15412 return 0;
15413}
15414_ACEOF
15415if ac_fn_cxx_try_link "$LINENO"; then :
15416 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
ee134472 15417 lt_cv_shlibpath_overrides_runpath=yes
9c60689e 15418fi
47aaa820
DWT
15419fi
15420rm -f core conftest.err conftest.$ac_objext \
15421 conftest$ac_exeext conftest.$ac_ext
ee134472
JF
15422 LDFLAGS=$save_LDFLAGS
15423 libdir=$save_libdir
15424
15425fi
15426
15427 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
9c60689e 15428
47aaa820
DWT
15429 # This implies no fast_install, which is unacceptable.
15430 # Some rework will be needed to allow for fast_install
15431 # before this can be enabled.
15432 hardcode_into_libs=yes
9c60689e 15433
47aaa820
DWT
15434 # Append ld.so.conf contents to the search path
15435 if test -f /etc/ld.so.conf; then
ee134472 15436 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
15437 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15438 fi
9c60689e 15439
47aaa820
DWT
15440 # We used to test for /lib/ld.so.1 and disable shared libraries on
15441 # powerpc, because MkLinux only supported shared libraries with the
15442 # GNU dynamic linker. Since this was broken with cross compilers,
15443 # most powerpc-linux boxes support dynamic linking these days and
15444 # people can always --disable-shared, the test was removed, and we
15445 # assume the GNU/Linux dynamic linker is in use.
15446 dynamic_linker='GNU/Linux ld.so'
9c60689e 15447 ;;
47aaa820 15448
47aaa820
DWT
15449netbsd*)
15450 version_type=sunos
15451 need_lib_prefix=no
15452 need_version=no
15453 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15455 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15456 dynamic_linker='NetBSD (a.out) ld.so'
15457 else
15458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15459 soname_spec='${libname}${release}${shared_ext}$major'
15460 dynamic_linker='NetBSD ld.elf_so'
15461 fi
15462 shlibpath_var=LD_LIBRARY_PATH
15463 shlibpath_overrides_runpath=yes
15464 hardcode_into_libs=yes
9c60689e 15465 ;;
9c60689e 15466
47aaa820 15467newsos6)
53ba6704 15468 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15470 shlibpath_var=LD_LIBRARY_PATH
15471 shlibpath_overrides_runpath=yes
15472 ;;
9c60689e 15473
47aaa820
DWT
15474*nto* | *qnx*)
15475 version_type=qnx
15476 need_lib_prefix=no
15477 need_version=no
15478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15479 soname_spec='${libname}${release}${shared_ext}$major'
15480 shlibpath_var=LD_LIBRARY_PATH
15481 shlibpath_overrides_runpath=no
15482 hardcode_into_libs=yes
15483 dynamic_linker='ldqnx.so'
15484 ;;
9c60689e 15485
47aaa820
DWT
15486openbsd*)
15487 version_type=sunos
15488 sys_lib_dlsearch_path_spec="/usr/lib"
15489 need_lib_prefix=no
15490 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15491 case $host_os in
15492 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15493 *) need_version=no ;;
15494 esac
15495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15496 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15497 shlibpath_var=LD_LIBRARY_PATH
15498 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15499 case $host_os in
15500 openbsd2.[89] | openbsd2.[89].*)
15501 shlibpath_overrides_runpath=no
15502 ;;
15503 *)
15504 shlibpath_overrides_runpath=yes
15505 ;;
15506 esac
15507 else
15508 shlibpath_overrides_runpath=yes
15509 fi
15510 ;;
9c60689e 15511
47aaa820
DWT
15512os2*)
15513 libname_spec='$name'
15514 shrext_cmds=".dll"
15515 need_lib_prefix=no
15516 library_names_spec='$libname${shared_ext} $libname.a'
15517 dynamic_linker='OS/2 ld.exe'
15518 shlibpath_var=LIBPATH
15519 ;;
9c60689e 15520
47aaa820
DWT
15521osf3* | osf4* | osf5*)
15522 version_type=osf
15523 need_lib_prefix=no
15524 need_version=no
15525 soname_spec='${libname}${release}${shared_ext}$major'
15526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15527 shlibpath_var=LD_LIBRARY_PATH
15528 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15529 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15530 ;;
9c60689e 15531
47aaa820
DWT
15532rdos*)
15533 dynamic_linker=no
15534 ;;
9c60689e 15535
47aaa820 15536solaris*)
53ba6704 15537 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15538 need_lib_prefix=no
15539 need_version=no
15540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15541 soname_spec='${libname}${release}${shared_ext}$major'
15542 shlibpath_var=LD_LIBRARY_PATH
15543 shlibpath_overrides_runpath=yes
15544 hardcode_into_libs=yes
15545 # ldd complains unless libraries are executable
15546 postinstall_cmds='chmod +x $lib'
15547 ;;
9c60689e 15548
47aaa820
DWT
15549sunos4*)
15550 version_type=sunos
15551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15552 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15553 shlibpath_var=LD_LIBRARY_PATH
15554 shlibpath_overrides_runpath=yes
15555 if test "$with_gnu_ld" = yes; then
15556 need_lib_prefix=no
15557 fi
15558 need_version=yes
15559 ;;
9c60689e 15560
47aaa820 15561sysv4 | sysv4.3*)
53ba6704 15562 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15564 soname_spec='${libname}${release}${shared_ext}$major'
15565 shlibpath_var=LD_LIBRARY_PATH
15566 case $host_vendor in
15567 sni)
15568 shlibpath_overrides_runpath=no
15569 need_lib_prefix=no
15570 runpath_var=LD_RUN_PATH
9c60689e 15571 ;;
47aaa820
DWT
15572 siemens)
15573 need_lib_prefix=no
9c60689e 15574 ;;
47aaa820
DWT
15575 motorola)
15576 need_lib_prefix=no
15577 need_version=no
15578 shlibpath_overrides_runpath=no
15579 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15580 ;;
15581 esac
9c60689e 15582 ;;
9c60689e 15583
47aaa820
DWT
15584sysv4*MP*)
15585 if test -d /usr/nec ;then
53ba6704 15586 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15587 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15588 soname_spec='$libname${shared_ext}.$major'
15589 shlibpath_var=LD_LIBRARY_PATH
15590 fi
15591 ;;
9c60689e 15592
47aaa820
DWT
15593sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15594 version_type=freebsd-elf
15595 need_lib_prefix=no
15596 need_version=no
15597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15598 soname_spec='${libname}${release}${shared_ext}$major'
15599 shlibpath_var=LD_LIBRARY_PATH
15600 shlibpath_overrides_runpath=yes
15601 hardcode_into_libs=yes
15602 if test "$with_gnu_ld" = yes; then
15603 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15604 else
15605 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15606 case $host_os in
15607 sco3.2v5*)
15608 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15609 ;;
15610 esac
15611 fi
15612 sys_lib_dlsearch_path_spec='/usr/lib'
15613 ;;
9c60689e 15614
47aaa820
DWT
15615tpf*)
15616 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
53ba6704 15617 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15618 need_lib_prefix=no
15619 need_version=no
15620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15621 shlibpath_var=LD_LIBRARY_PATH
15622 shlibpath_overrides_runpath=no
15623 hardcode_into_libs=yes
15624 ;;
9c60689e 15625
47aaa820 15626uts4*)
53ba6704 15627 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15629 soname_spec='${libname}${release}${shared_ext}$major'
15630 shlibpath_var=LD_LIBRARY_PATH
15631 ;;
9c60689e 15632
47aaa820
DWT
15633*)
15634 dynamic_linker=no
e9c9a47c
DWT
15635 ;;
15636esac
15637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15638$as_echo "$dynamic_linker" >&6; }
15639test "$dynamic_linker" = no && can_build_shared=no
15640
15641variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15642if test "$GCC" = yes; then
15643 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
47aaa820 15644fi
9c60689e 15645
e9c9a47c
DWT
15646if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15647 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
47aaa820 15648fi
e9c9a47c
DWT
15649if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15650 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
47aaa820 15651fi
9c60689e 15652
9c60689e 15653
9c60689e 15654
9c60689e 15655
47aaa820 15656
47aaa820 15657
47aaa820 15658
9c60689e 15659
9c60689e 15660
47aaa820 15661
47aaa820 15662
47aaa820 15663
47aaa820 15664
47aaa820 15665
47aaa820 15666
47aaa820 15667
47aaa820 15668
9c60689e 15669
9c60689e 15670
9c60689e 15671
9c60689e 15672
9c60689e 15673
e9c9a47c
DWT
15674
15675
15676
15677
15678
15679
15680
15681
15682
15683
15684
ee134472
JF
15685
15686
e9c9a47c
DWT
15687
15688
15689
15690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15691$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15692hardcode_action_CXX=
15693if test -n "$hardcode_libdir_flag_spec_CXX" ||
15694 test -n "$runpath_var_CXX" ||
15695 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15696
15697 # We can hardcode non-existent directories.
15698 if test "$hardcode_direct_CXX" != no &&
15699 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15700 # have to relink, otherwise we might link with an installed library
15701 # when we should be linking with a yet-to-be-installed one
15702 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15703 test "$hardcode_minus_L_CXX" != no; then
15704 # Linking always hardcodes the temporary library directory.
15705 hardcode_action_CXX=relink
15706 else
15707 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15708 hardcode_action_CXX=immediate
15709 fi
15710else
15711 # We cannot hardcode anything, or else we can only hardcode existing
15712 # directories.
15713 hardcode_action_CXX=unsupported
15714fi
15715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15716$as_echo "$hardcode_action_CXX" >&6; }
15717
15718if test "$hardcode_action_CXX" = relink ||
15719 test "$inherit_rpath_CXX" = yes; then
15720 # Fast installation is not supported
15721 enable_fast_install=no
15722elif test "$shlibpath_overrides_runpath" = yes ||
15723 test "$enable_shared" = no; then
15724 # Fast installation is not necessary
15725 enable_fast_install=needless
47aaa820 15726fi
9c60689e 15727
47aaa820 15728
47aaa820 15729
e9c9a47c
DWT
15730
15731
15732
15733
a243b558
JF
15734 fi # test -n "$compiler"
15735
15736 CC=$lt_save_CC
15737 CFLAGS=$lt_save_CFLAGS
15738 LDCXX=$LD
15739 LD=$lt_save_LD
15740 GCC=$lt_save_GCC
15741 with_gnu_ld=$lt_save_with_gnu_ld
15742 lt_cv_path_LDCXX=$lt_cv_path_LD
15743 lt_cv_path_LD=$lt_save_path_LD
15744 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15745 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15746fi # test "$_lt_caught_CXX_error" != yes
15747
15748ac_ext=c
15749ac_cpp='$CPP $CPPFLAGS'
15750ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15751ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15752ac_compiler_gnu=$ac_cv_c_compiler_gnu
15753
15754
15755
15756
15757
15758
15759
15760
15761
15762
15763
15764
15765
15766
15767
15768 ac_config_commands="$ac_config_commands libtool"
15769
15770
15771
15772
15773# Only expand once:
15774
15775
15776
15777ac_ext=cpp
15778ac_cpp='$CXXCPP $CPPFLAGS'
15779ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15780ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15781ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15782
15783
15784
15785
15786
15787
15788
15789
15790if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
15791 if test -n "$ac_tool_prefix"; then
15792 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
15793set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
15794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15795$as_echo_n "checking for $ac_word... " >&6; }
15796if ${ac_cv_path_PKG_CONFIG+:} false; then :
15797 $as_echo_n "(cached) " >&6
15798else
15799 case $PKG_CONFIG in
15800 [\\/]* | ?:[\\/]*)
15801 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
15802 ;;
15803 *)
15804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15805for as_dir in $PATH
15806do
15807 IFS=$as_save_IFS
15808 test -z "$as_dir" && as_dir=.
15809 for ac_exec_ext in '' $ac_executable_extensions; do
15810 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15811 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15813 break 2
15814 fi
15815done
15816 done
15817IFS=$as_save_IFS
15818
15819 ;;
15820esac
15821fi
15822PKG_CONFIG=$ac_cv_path_PKG_CONFIG
15823if test -n "$PKG_CONFIG"; then
15824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
15825$as_echo "$PKG_CONFIG" >&6; }
15826else
15827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15828$as_echo "no" >&6; }
15829fi
15830
15831
15832fi
15833if test -z "$ac_cv_path_PKG_CONFIG"; then
15834 ac_pt_PKG_CONFIG=$PKG_CONFIG
15835 # Extract the first word of "pkg-config", so it can be a program name with args.
15836set dummy pkg-config; ac_word=$2
15837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15838$as_echo_n "checking for $ac_word... " >&6; }
15839if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
15840 $as_echo_n "(cached) " >&6
15841else
15842 case $ac_pt_PKG_CONFIG in
15843 [\\/]* | ?:[\\/]*)
15844 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
15845 ;;
15846 *)
15847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15848for as_dir in $PATH
15849do
15850 IFS=$as_save_IFS
15851 test -z "$as_dir" && as_dir=.
15852 for ac_exec_ext in '' $ac_executable_extensions; do
15853 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15854 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15856 break 2
15857 fi
15858done
15859 done
15860IFS=$as_save_IFS
15861
15862 ;;
15863esac
15864fi
15865ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
15866if test -n "$ac_pt_PKG_CONFIG"; then
15867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
15868$as_echo "$ac_pt_PKG_CONFIG" >&6; }
15869else
15870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15871$as_echo "no" >&6; }
15872fi
15873
15874 if test "x$ac_pt_PKG_CONFIG" = x; then
15875 PKG_CONFIG=""
15876 else
15877 case $cross_compiling:$ac_tool_warned in
15878yes:)
15879{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15880$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15881ac_tool_warned=yes ;;
15882esac
15883 PKG_CONFIG=$ac_pt_PKG_CONFIG
15884 fi
15885else
15886 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
15887fi
15888
15889fi
15890if test -n "$PKG_CONFIG"; then
15891 _pkg_min_version=0.22
15892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
15893$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
15894 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
15895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15896$as_echo "yes" >&6; }
15897 else
15898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15899$as_echo "no" >&6; }
15900 PKG_CONFIG=""
15901 fi
15902fi
15903
a243b558
JF
15904# Extract the first word of "bash", so it can be a program name with args.
15905set dummy bash; ac_word=$2
15906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15907$as_echo_n "checking for $ac_word... " >&6; }
15908if ${ac_cv_path__BASH+:} false; then :
15909 $as_echo_n "(cached) " >&6
15910else
15911 case $_BASH in
15912 [\\/]* | ?:[\\/]*)
15913 ac_cv_path__BASH="$_BASH" # Let the user override the test with a path.
15914 ;;
15915 *)
15916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15917for as_dir in $PATH
15918do
15919 IFS=$as_save_IFS
15920 test -z "$as_dir" && as_dir=.
15921 for ac_exec_ext in '' $ac_executable_extensions; do
15922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15923 ac_cv_path__BASH="$as_dir/$ac_word$ac_exec_ext"
15924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15925 break 2
15926 fi
15927done
15928 done
15929IFS=$as_save_IFS
15930
15931 test -z "$ac_cv_path__BASH" && ac_cv_path__BASH="as_fn_error $? "missing \"bash\"" "$LINENO" 5"
15932 ;;
15933esac
15934fi
15935_BASH=$ac_cv_path__BASH
15936if test -n "$_BASH"; then
15937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_BASH" >&5
15938$as_echo "$_BASH" >&6; }
15939else
15940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15941$as_echo "no" >&6; }
15942fi
15943
e9c9a47c 15944
a243b558
JF
15945# Extract the first word of "git", so it can be a program name with args.
15946set dummy git; ac_word=$2
15947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15948$as_echo_n "checking for $ac_word... " >&6; }
15949if ${ac_cv_path_GIT+:} false; then :
15950 $as_echo_n "(cached) " >&6
15951else
15952 case $GIT in
15953 [\\/]* | ?:[\\/]*)
15954 ac_cv_path_GIT="$GIT" # Let the user override the test with a path.
15955 ;;
15956 *)
15957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15958for as_dir in $PATH
15959do
15960 IFS=$as_save_IFS
15961 test -z "$as_dir" && as_dir=.
15962 for ac_exec_ext in '' $ac_executable_extensions; do
15963 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15964 ac_cv_path_GIT="$as_dir/$ac_word$ac_exec_ext"
15965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15966 break 2
15967 fi
15968done
15969 done
15970IFS=$as_save_IFS
e9c9a47c 15971
a243b558
JF
15972 ;;
15973esac
15974fi
15975GIT=$ac_cv_path_GIT
15976if test -n "$GIT"; then
15977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
15978$as_echo "$GIT" >&6; }
15979else
15980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15981$as_echo "no" >&6; }
15982fi
e9c9a47c
DWT
15983
15984
a243b558
JF
15985# Extract the first word of "time", so it can be a program name with args.
15986set dummy time; ac_word=$2
632b71ea
DWT
15987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15988$as_echo_n "checking for $ac_word... " >&6; }
a243b558 15989if ${ac_cv_path_TIME+:} false; then :
632b71ea
DWT
15990 $as_echo_n "(cached) " >&6
15991else
a243b558
JF
15992 case $TIME in
15993 [\\/]* | ?:[\\/]*)
15994 ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
15995 ;;
15996 *)
15997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
632b71ea
DWT
15998for as_dir in $PATH
15999do
16000 IFS=$as_save_IFS
16001 test -z "$as_dir" && as_dir=.
16002 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 16003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 16004 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
632b71ea
DWT
16005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16006 break 2
16007 fi
16008done
16009 done
16010IFS=$as_save_IFS
16011
a243b558
JF
16012 ;;
16013esac
632b71ea 16014fi
a243b558
JF
16015TIME=$ac_cv_path_TIME
16016if test -n "$TIME"; then
16017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
16018$as_echo "$TIME" >&6; }
632b71ea
DWT
16019else
16020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16021$as_echo "no" >&6; }
16022fi
16023
16024
a243b558
JF
16025
16026
16027
16028
16029
16030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bison >= 2.3" >&5
16031$as_echo_n "checking for bison >= 2.3... " >&6; }
16032 if test -z "$BISON"; then
16033 ac_path_BISON_found=false
16034 # Loop through the user's path and test for each of PROGNAME-LIST
16035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16036for as_dir in $PATH
16037do
16038 IFS=$as_save_IFS
16039 test -z "$as_dir" && as_dir=.
16040 for ac_prog in bison; do
16041 for ac_exec_ext in '' $ac_executable_extensions; do
16042 ac_path_BISON="$as_dir/$ac_prog$ac_exec_ext"
16043 as_fn_executable_p "$ac_path_BISON" || continue
16044version=`$ac_path_BISON -V | $SED -e '1 s/^bison (GNU Bison) \(.*\)$/\1/p;d'`
16045 if ${version:+false} :; then :
16046
16047else
16048 as_awk_strverscmp='
16049 # Use only awk features that work with 7th edition Unix awk (1978).
16050 # My, what an old awk you have, Mr. Solaris!
16051 END {
16052 while (length(v1) && length(v2)) {
16053 # Set d1 to be the next thing to compare from v1, and likewise for d2.
16054 # Normally this is a single character, but if v1 and v2 contain digits,
16055 # compare them as integers and fractions as strverscmp does.
16056 if (v1 ~ /^0-9/ && v2 ~ /^0-9/) {
16057 # Split v1 and v2 into their leading digit string components d1 and d2,
16058 # and advance v1 and v2 past the leading digit strings.
16059 for (len1 = 1; substr(v1, len1 + 1) ~ /^0-9/; len1++) continue
16060 for (len2 = 1; substr(v2, len2 + 1) ~ /^0-9/; len2++) continue
16061 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
16062 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
16063 if (d1 ~ /^0/) {
16064 if (d2 ~ /^0/) {
16065 # Compare two fractions.
16066 while (d1 ~ /^0/ && d2 ~ /^0/) {
16067 d1 = substr(d1, 2); len1--
16068 d2 = substr(d2, 2); len2--
16069 }
16070 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
16071 # The two components differ in length, and the common prefix
16072 # contains only leading zeros. Consider the longer to be less.
16073 d1 = -len1
16074 d2 = -len2
16075 } else {
16076 # Otherwise, compare as strings.
16077 d1 = "x" d1
16078 d2 = "x" d2
16079 }
16080 } else {
16081 # A fraction is less than an integer.
16082 exit 1
16083 }
16084 } else {
16085 if (d2 ~ /^0/) {
16086 # An integer is greater than a fraction.
16087 exit 2
16088 } else {
16089 # Compare two integers.
16090 d1 += 0
16091 d2 += 0
16092 }
16093 }
16094 } else {
16095 # The normal case, without worrying about digits.
16096 d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
16097 d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
16098 }
16099 if (d1 < d2) exit 1
16100 if (d1 > d2) exit 2
16101 }
16102 # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
16103 # which mishandles some comparisons of empty strings to integers.
16104 if (length(v2)) exit 1
16105 if (length(v1)) exit 2
16106 }
16107'
16108as_arg_v1=$version
16109as_arg_v2=2.3
16110awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
16111case $? in #(
16112 1) :
16113 ;; #(
16114 0) :
16115 ac_cv_path_BISON=$ac_path_BISON ;; #(
16116 2) :
16117 ac_cv_path_BISON=$ac_path_BISON ;; #(
16118 *) :
16119 ;;
16120esac
16121fi
16122
16123 $ac_path_BISON_found && break 3
16124 done
16125 done
e9c9a47c 16126 done
a243b558
JF
16127IFS=$as_save_IFS
16128 if test -z "$ac_cv_path_BISON"; then
16129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16130$as_echo "no" >&6; }
16131 fi
16132else
16133 ac_cv_path_BISON=$BISON
632b71ea 16134fi
a243b558
JF
16135
16136
16137 if true; then :
16138
16139 BISON=$ac_cv_path_BISON
16140
16141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
16142$as_echo "$BISON" >&6; }
16143
47aaa820 16144else
a243b558
JF
16145 if true; then :
16146
16147 as_fn_error $? "You need bison 2.3 or greater" "$LINENO" 5
16148
47aaa820 16149else
a243b558
JF
16150
16151 BISON=:
16152
16153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16154$as_echo "no" >&6; }
16155
16156fi
16157fi
16158
16159
16160
16161
16162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flex >= 2.5.33" >&5
16163$as_echo_n "checking for flex >= 2.5.33... " >&6; }
16164 if test -z "$FLEX"; then
16165 ac_path_FLEX_found=false
16166 # Loop through the user's path and test for each of PROGNAME-LIST
16167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47aaa820
DWT
16168for as_dir in $PATH
16169do
16170 IFS=$as_save_IFS
16171 test -z "$as_dir" && as_dir=.
a243b558 16172 for ac_prog in flex; do
47aaa820 16173 for ac_exec_ext in '' $ac_executable_extensions; do
a243b558
JF
16174 ac_path_FLEX="$as_dir/$ac_prog$ac_exec_ext"
16175 as_fn_executable_p "$ac_path_FLEX" || continue
16176version=`$ac_path_FLEX --version | $SED -e '1 s/^[^0-9.]* \([0-9.]*\).*$/\1/p;d'`
16177 if ${version:+false} :; then :
9c60689e 16178
47aaa820 16179else
a243b558
JF
16180 as_arg_v1=$version
16181as_arg_v2=2.5.33
16182awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
16183case $? in #(
16184 1) :
16185 ;; #(
16186 0) :
16187 ac_cv_path_FLEX=$ac_path_FLEX ;; #(
16188 2) :
16189 ac_cv_path_FLEX=$ac_path_FLEX ;; #(
16190 *) :
16191 ;;
16192esac
16193fi
16194
16195 $ac_path_FLEX_found && break 3
16196 done
16197 done
16198 done
16199IFS=$as_save_IFS
16200 if test -z "$ac_cv_path_FLEX"; then
16201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47aaa820 16202$as_echo "no" >&6; }
a243b558
JF
16203 fi
16204else
16205 ac_cv_path_FLEX=$FLEX
9c60689e
DWT
16206fi
16207
16208
a243b558 16209 if true; then :
e9c9a47c 16210
a243b558 16211 FLEX=$ac_cv_path_FLEX
e9c9a47c 16212
a243b558
JF
16213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
16214$as_echo "$FLEX" >&6; }
9c60689e 16215
632b71ea 16216else
a243b558 16217 if true; then :
e9c9a47c 16218
a243b558 16219 as_fn_error $? "You need flex 2.5.33 or greater" "$LINENO" 5
e9c9a47c 16220
e9c9a47c 16221else
a243b558
JF
16222
16223 FLEX=:
16224
16225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16226$as_echo "no" >&6; }
9c60689e 16227
632b71ea 16228fi
a243b558
JF
16229fi
16230
16231
16232
16233
16234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gperf >= 3.0.3" >&5
16235$as_echo_n "checking for gperf >= 3.0.3... " >&6; }
16236 if test -z "$GPERF"; then
16237 ac_path_GPERF_found=false
16238 # Loop through the user's path and test for each of PROGNAME-LIST
16239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16240for as_dir in $PATH
16241do
16242 IFS=$as_save_IFS
16243 test -z "$as_dir" && as_dir=.
16244 for ac_prog in gperf; do
16245 for ac_exec_ext in '' $ac_executable_extensions; do
16246 ac_path_GPERF="$as_dir/$ac_prog$ac_exec_ext"
16247 as_fn_executable_p "$ac_path_GPERF" || continue
16248version=`$ac_path_GPERF --version | $SED -e '1 s/^.* \([0-9.]*\)$/\1/p;d'`
16249 if ${version:+false} :; then :
16250
e9c9a47c 16251else
a243b558
JF
16252 as_arg_v1=$version
16253as_arg_v2=3.0.3
16254awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
16255case $? in #(
16256 1) :
16257 ;; #(
16258 0) :
16259 ac_cv_path_GPERF=$ac_path_GPERF ;; #(
16260 2) :
16261 ac_cv_path_GPERF=$ac_path_GPERF ;; #(
16262 *) :
16263 ;;
16264esac
632b71ea 16265fi
a243b558
JF
16266
16267 $ac_path_GPERF_found && break 3
16268 done
16269 done
16270 done
16271IFS=$as_save_IFS
16272 if test -z "$ac_cv_path_GPERF"; then
16273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16274$as_echo "no" >&6; }
16275 fi
47aaa820 16276else
a243b558
JF
16277 ac_cv_path_GPERF=$GPERF
16278fi
9c60689e
DWT
16279
16280
a243b558 16281 if true; then :
9c60689e 16282
a243b558 16283 GPERF=$ac_cv_path_GPERF
9c60689e 16284
a243b558
JF
16285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPERF" >&5
16286$as_echo "$GPERF" >&6; }
9c60689e 16287
47aaa820 16288else
a243b558 16289 if true; then :
9c60689e 16290
a243b558
JF
16291 as_fn_error $? "You need gperf 3.0.3 or greater" "$LINENO" 5
16292
16293else
16294
16295 GPERF=:
16296
16297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16298$as_echo "no" >&6; }
9c60689e 16299
47aaa820 16300fi
47aaa820 16301fi
a243b558
JF
16302
16303
16304
16305
16306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tar gtar gnutar >= 1.19" >&5
16307$as_echo_n "checking for tar gtar gnutar >= 1.19... " >&6; }
16308 if test -z "$GNUTAR"; then
16309 ac_path_GNUTAR_found=false
16310 # Loop through the user's path and test for each of PROGNAME-LIST
16311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16312for as_dir in $PATH
16313do
16314 IFS=$as_save_IFS
16315 test -z "$as_dir" && as_dir=.
16316 for ac_prog in tar gtar gnutar; do
16317 for ac_exec_ext in '' $ac_executable_extensions; do
16318 ac_path_GNUTAR="$as_dir/$ac_prog$ac_exec_ext"
16319 as_fn_executable_p "$ac_path_GNUTAR" || continue
16320version=`$ac_path_GNUTAR --version | $SED -e '1 s/^tar (GNU tar) \(.*\)$/\1/p;d'`
16321 if ${version:+false} :; then :
16322
16323else
16324 as_arg_v1=$version
16325as_arg_v2=1.19
16326awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
16327case $? in #(
16328 1) :
16329 ;; #(
16330 0) :
16331 ac_cv_path_GNUTAR=$ac_path_GNUTAR ;; #(
16332 2) :
16333 ac_cv_path_GNUTAR=$ac_path_GNUTAR ;; #(
16334 *) :
16335 ;;
16336esac
790e5246 16337fi
a243b558
JF
16338
16339 $ac_path_GNUTAR_found && break 3
16340 done
16341 done
16342 done
16343IFS=$as_save_IFS
16344 if test -z "$ac_cv_path_GNUTAR"; then
16345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16346$as_echo "no" >&6; }
632b71ea 16347 fi
632b71ea 16348else
a243b558 16349 ac_cv_path_GNUTAR=$GNUTAR
632b71ea 16350fi
66170b30 16351
66170b30 16352
a243b558 16353 if true; then :
66170b30 16354
a243b558 16355 GNUTAR=$ac_cv_path_GNUTAR
66170b30 16356
a243b558
JF
16357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUTAR" >&5
16358$as_echo "$GNUTAR" >&6; }
66170b30 16359
a243b558
JF
16360else
16361 if true; then :
66170b30 16362
a243b558 16363 as_fn_error $? "You need tar gtar gnutar 1.19 or greater" "$LINENO" 5
66170b30 16364
66170b30 16365else
66170b30 16366
a243b558 16367 GNUTAR=:
66170b30 16368
a243b558
JF
16369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16370$as_echo "no" >&6; }
66170b30 16371
a243b558
JF
16372fi
16373fi
66170b30
JF
16374
16375
9228a43a
JF
16376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking bison for %code{}" >&5
16377$as_echo_n "checking bison for %code{}... " >&6; }
16378echo '%code{}%%_:' >conftest.y
16379if $BISON conftest.y -o/dev/null 2>/dev/null; then
16380
16381 for element in Bison24; do
16382 haveit=
16383 for x in $CY_FILTERS; do
16384
16385 acl_save_prefix="$prefix"
16386 prefix="$acl_final_prefix"
16387 acl_save_exec_prefix="$exec_prefix"
16388 exec_prefix="$acl_final_exec_prefix"
16389 eval x=\"$x\"
16390 exec_prefix="$acl_save_exec_prefix"
16391 prefix="$acl_save_prefix"
16392
16393 if test "X$x" = "X$element"; then
16394 haveit=yes
16395 break
16396 fi
16397 done
16398 if test -z "$haveit"; then
16399 CY_FILTERS="${CY_FILTERS}${CY_FILTERS:+ }$element"
16400 fi
16401 done
16402
16403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16404$as_echo "yes" >&6; }
16405else
16406
16407 for element in Bison23; do
16408 haveit=
16409 for x in $CY_FILTERS; do
16410
16411 acl_save_prefix="$prefix"
16412 prefix="$acl_final_prefix"
16413 acl_save_exec_prefix="$exec_prefix"
16414 exec_prefix="$acl_final_exec_prefix"
16415 eval x=\"$x\"
16416 exec_prefix="$acl_save_exec_prefix"
16417 prefix="$acl_save_prefix"
16418
16419 if test "X$x" = "X$element"; then
16420 haveit=yes
16421 break
16422 fi
16423 done
16424 if test -z "$haveit"; then
16425 CY_FILTERS="${CY_FILTERS}${CY_FILTERS:+ }$element"
16426 fi
16427 done
16428
16429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16430$as_echo "no" >&6; }
16431fi
16432
16433rm -f conftest.y
16434
16435
66170b30
JF
16436
16437
16438
16439
16440
16441
16442
16443
16444if ${CFLAGS+:} false; then :
16445 case " $CFLAGS " in
16446 *" "*)
16447 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains "; } >&5
16448 (: CFLAGS already contains ) 2>&5
16449 ac_status=$?
16450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16451 test $ac_status = 0; }
16452 ;;
16453 *)
16454 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \""; } >&5
16455 (: CFLAGS="$CFLAGS ") 2>&5
16456 ac_status=$?
16457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16458 test $ac_status = 0; }
16459 CFLAGS="$CFLAGS "
16460 ;;
16461 esac
16462else
16463 CFLAGS=""
16464fi
16465
e9c9a47c
DWT
16466ac_ext=c
16467ac_cpp='$CPP $CPPFLAGS'
16468ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16469ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16470ac_compiler_gnu=$ac_cv_c_compiler_gnu
632b71ea 16471
66170b30
JF
16472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
16473$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
16474if ${ac_cv_cflags_warn_all+:} false; then :
16475 $as_echo_n "(cached) " >&6
16476else
16477 ac_cv_cflags_warn_all="no, unknown"
16478ac_save_CFLAGS="$CFLAGS"
16479for 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" #
16480do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
16481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16482/* end confdefs.h. */
16483
16484int
16485main ()
16486{
16487
16488 ;
16489 return 0;
16490}
16491_ACEOF
16492if ac_fn_c_try_compile "$LINENO"; then :
16493 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
16494fi
16495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16496done
16497CFLAGS="$ac_save_CFLAGS"
16498
16499fi
16500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
16501$as_echo "$ac_cv_cflags_warn_all" >&6; }
16502
16503case ".$ac_cv_cflags_warn_all" in
16504 .ok|.ok,*) ;;
16505 .|.no|.no,*) ;;
16506 *) if ${CFLAGS+:} false; then :
16507 case " $CFLAGS " in
16508 *" $ac_cv_cflags_warn_all "*)
16509 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5
16510 (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5
16511 ac_status=$?
16512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16513 test $ac_status = 0; }
16514 ;;
16515 *)
16516 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
16517 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
16518 ac_status=$?
16519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16520 test $ac_status = 0; }
16521 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
16522 ;;
16523 esac
16524else
16525 CFLAGS="$ac_cv_cflags_warn_all"
16526fi
16527 ;;
16528esac
16529
b816329d
JF
16530ac_ext=cpp
16531ac_cpp='$CXXCPP $CPPFLAGS'
16532ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16533ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16534ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16535
9c60689e 16536
66170b30
JF
16537ac_ext=cpp
16538ac_cpp='$CXXCPP $CPPFLAGS'
16539ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16540ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16541ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1504c9b8 16542
66170b30
JF
16543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for maximum warnings" >&5
16544$as_echo_n "checking CXXFLAGS for maximum warnings... " >&6; }
16545if ${ac_cv_cxxflags_warn_all+:} false; then :
16546 $as_echo_n "(cached) " >&6
16547else
16548 ac_cv_cxxflags_warn_all="no, unknown"
16549ac_save_CXXFLAGS="$CXXFLAGS"
16550for 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" #
16551do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
16552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16553/* end confdefs.h. */
1504c9b8 16554
66170b30
JF
16555int
16556main ()
16557{
1504c9b8 16558
66170b30
JF
16559 ;
16560 return 0;
16561}
16562_ACEOF
16563if ac_fn_cxx_try_compile "$LINENO"; then :
16564 ac_cv_cxxflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
16565fi
16566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16567done
16568CXXFLAGS="$ac_save_CXXFLAGS"
1504c9b8 16569
66170b30
JF
16570fi
16571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxxflags_warn_all" >&5
16572$as_echo "$ac_cv_cxxflags_warn_all" >&6; }
16573
16574case ".$ac_cv_cxxflags_warn_all" in
16575 .ok|.ok,*) ;;
16576 .|.no|.no,*) ;;
16577 *) if ${CXXFLAGS+:} false; then :
16578 case " $CXXFLAGS " in
16579 *" $ac_cv_cxxflags_warn_all "*)
16580 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$ac_cv_cxxflags_warn_all"; } >&5
16581 (: CXXFLAGS already contains $ac_cv_cxxflags_warn_all) 2>&5
16582 ac_status=$?
16583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16584 test $ac_status = 0; }
16585 ;;
16586 *)
16587 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$ac_cv_cxxflags_warn_all\""; } >&5
16588 (: CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all") 2>&5
16589 ac_status=$?
16590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16591 test $ac_status = 0; }
16592 CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all"
16593 ;;
16594 esac
16595else
16596 CXXFLAGS="$ac_cv_cxxflags_warn_all"
16597fi
16598 ;;
16599esac
16600
16601ac_ext=cpp
16602ac_cpp='$CXXCPP $CPPFLAGS'
16603ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16604ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16605ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16606
16607
16608
16609
16610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wno-overloaded-virtual" >&5
16611$as_echo_n "checking for -Wno-overloaded-virtual... " >&6; }
16612
16613 cy_save=$CXXFLAGS
16614
16615 for element in -Wno-overloaded-virtual; do
1504c9b8
DWT
16616 haveit=
16617 for x in $CXXFLAGS; do
16618
16619 acl_save_prefix="$prefix"
16620 prefix="$acl_final_prefix"
16621 acl_save_exec_prefix="$exec_prefix"
16622 exec_prefix="$acl_final_exec_prefix"
16623 eval x=\"$x\"
16624 exec_prefix="$acl_save_exec_prefix"
16625 prefix="$acl_save_prefix"
16626
16627 if test "X$x" = "X$element"; then
16628 haveit=yes
16629 break
16630 fi
16631 done
16632 if test -z "$haveit"; then
16633 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
16634 fi
16635 done
16636
66170b30
JF
16637
16638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1504c9b8
DWT
16639/* end confdefs.h. */
16640
66170b30
JF
16641_ACEOF
16642if ac_fn_cxx_try_compile "$LINENO"; then :
16643 cy_good=1
16644else
16645 cy_good=0
16646fi
16647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16648
16649 CXXFLAGS=$cy_save
16650 if test "x$cy_good" = x1; then :
16651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16652$as_echo "yes" >&6; }
16653
16654
16655 for element in -Wno-overloaded-virtual; do
16656 haveit=
16657 for x in $CFLAGS; do
16658
16659 acl_save_prefix="$prefix"
16660 prefix="$acl_final_prefix"
16661 acl_save_exec_prefix="$exec_prefix"
16662 exec_prefix="$acl_final_exec_prefix"
16663 eval x=\"$x\"
16664 exec_prefix="$acl_save_exec_prefix"
16665 prefix="$acl_save_prefix"
16666
16667 if test "X$x" = "X$element"; then
16668 haveit=yes
16669 break
16670 fi
16671 done
16672 if test -z "$haveit"; then
16673 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
16674 fi
16675 done
16676
16677
16678 for element in -Wno-overloaded-virtual; do
16679 haveit=
16680 for x in $CXXFLAGS; do
16681
16682 acl_save_prefix="$prefix"
16683 prefix="$acl_final_prefix"
16684 acl_save_exec_prefix="$exec_prefix"
16685 exec_prefix="$acl_final_exec_prefix"
16686 eval x=\"$x\"
16687 exec_prefix="$acl_save_exec_prefix"
16688 prefix="$acl_save_prefix"
16689
16690 if test "X$x" = "X$element"; then
16691 haveit=yes
16692 break
16693 fi
16694 done
16695 if test -z "$haveit"; then
16696 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
16697 fi
16698 done
16699
16700
16701 for element in -Wno-overloaded-virtual; do
16702 haveit=
16703 for x in $OBJCCXXFLAGS; do
16704
16705 acl_save_prefix="$prefix"
16706 prefix="$acl_final_prefix"
16707 acl_save_exec_prefix="$exec_prefix"
16708 exec_prefix="$acl_final_exec_prefix"
16709 eval x=\"$x\"
16710 exec_prefix="$acl_save_exec_prefix"
16711 prefix="$acl_save_prefix"
16712
16713 if test "X$x" = "X$element"; then
16714 haveit=yes
16715 break
16716 fi
16717 done
16718 if test -z "$haveit"; then
16719 OBJCCXXFLAGS="${OBJCCXXFLAGS}${OBJCCXXFLAGS:+ }$element"
16720 fi
16721 done
16722
16723
16724
16725else
16726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16727$as_echo "no" >&6; }
16728fi
16729
16730
16731
16732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wno-parentheses" >&5
16733$as_echo_n "checking for -Wno-parentheses... " >&6; }
16734
16735 cy_save=$CXXFLAGS
16736
16737 for element in -Wno-parentheses; do
16738 haveit=
16739 for x in $CXXFLAGS; do
16740
16741 acl_save_prefix="$prefix"
16742 prefix="$acl_final_prefix"
16743 acl_save_exec_prefix="$exec_prefix"
16744 exec_prefix="$acl_final_exec_prefix"
16745 eval x=\"$x\"
16746 exec_prefix="$acl_save_exec_prefix"
16747 prefix="$acl_save_prefix"
16748
16749 if test "X$x" = "X$element"; then
16750 haveit=yes
16751 break
16752 fi
16753 done
16754 if test -z "$haveit"; then
16755 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
16756 fi
16757 done
16758
16759
16760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16761/* end confdefs.h. */
1504c9b8 16762
1504c9b8 16763_ACEOF
66170b30
JF
16764if ac_fn_cxx_try_compile "$LINENO"; then :
16765 cy_good=1
16766else
16767 cy_good=0
16768fi
16769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16770
16771 CXXFLAGS=$cy_save
16772 if test "x$cy_good" = x1; then :
16773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16774$as_echo "yes" >&6; }
1504c9b8
DWT
16775
16776
66170b30 16777 for element in -Wno-parentheses; do
1504c9b8 16778 haveit=
66170b30 16779 for x in $CFLAGS; do
1504c9b8
DWT
16780
16781 acl_save_prefix="$prefix"
16782 prefix="$acl_final_prefix"
16783 acl_save_exec_prefix="$exec_prefix"
16784 exec_prefix="$acl_final_exec_prefix"
16785 eval x=\"$x\"
16786 exec_prefix="$acl_save_exec_prefix"
16787 prefix="$acl_save_prefix"
16788
16789 if test "X$x" = "X$element"; then
16790 haveit=yes
16791 break
16792 fi
16793 done
16794 if test -z "$haveit"; then
66170b30 16795 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
1504c9b8
DWT
16796 fi
16797 done
16798
16799
66170b30
JF
16800 for element in -Wno-parentheses; do
16801 haveit=
16802 for x in $CXXFLAGS; do
16803
16804 acl_save_prefix="$prefix"
16805 prefix="$acl_final_prefix"
16806 acl_save_exec_prefix="$exec_prefix"
16807 exec_prefix="$acl_final_exec_prefix"
16808 eval x=\"$x\"
16809 exec_prefix="$acl_save_exec_prefix"
16810 prefix="$acl_save_prefix"
16811
16812 if test "X$x" = "X$element"; then
16813 haveit=yes
16814 break
16815 fi
16816 done
16817 if test -z "$haveit"; then
16818 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
16819 fi
16820 done
16821
16822
16823 for element in -Wno-parentheses; do
16824 haveit=
16825 for x in $OBJCCXXFLAGS; do
16826
16827 acl_save_prefix="$prefix"
16828 prefix="$acl_final_prefix"
16829 acl_save_exec_prefix="$exec_prefix"
16830 exec_prefix="$acl_final_exec_prefix"
16831 eval x=\"$x\"
16832 exec_prefix="$acl_save_exec_prefix"
16833 prefix="$acl_save_prefix"
16834
16835 if test "X$x" = "X$element"; then
16836 haveit=yes
16837 break
16838 fi
16839 done
16840 if test -z "$haveit"; then
16841 OBJCCXXFLAGS="${OBJCCXXFLAGS}${OBJCCXXFLAGS:+ }$element"
16842 fi
16843 done
16844
16845
16846
16847else
16848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16849$as_echo "no" >&6; }
16850fi
16851
16852
16853
16854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wno-unneeded-internal-declaration" >&5
16855$as_echo_n "checking for -Wno-unneeded-internal-declaration... " >&6; }
16856
16857 cy_save=$CXXFLAGS
16858
16859 for element in -Wno-unneeded-internal-declaration; do
16860 haveit=
16861 for x in $CXXFLAGS; do
16862
16863 acl_save_prefix="$prefix"
16864 prefix="$acl_final_prefix"
16865 acl_save_exec_prefix="$exec_prefix"
16866 exec_prefix="$acl_final_exec_prefix"
16867 eval x=\"$x\"
16868 exec_prefix="$acl_save_exec_prefix"
16869 prefix="$acl_save_prefix"
16870
16871 if test "X$x" = "X$element"; then
16872 haveit=yes
16873 break
16874 fi
16875 done
16876 if test -z "$haveit"; then
16877 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
16878 fi
16879 done
16880
16881
16882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16883/* end confdefs.h. */
16884
16885_ACEOF
16886if ac_fn_cxx_try_compile "$LINENO"; then :
16887 cy_good=1
16888else
16889 cy_good=0
16890fi
16891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16892
16893 CXXFLAGS=$cy_save
16894 if test "x$cy_good" = x1; then :
16895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16896$as_echo "yes" >&6; }
16897
16898
16899 for element in -Wno-unneeded-internal-declaration; do
1504c9b8
DWT
16900 haveit=
16901 for x in $CFLAGS; do
16902
16903 acl_save_prefix="$prefix"
16904 prefix="$acl_final_prefix"
16905 acl_save_exec_prefix="$exec_prefix"
16906 exec_prefix="$acl_final_exec_prefix"
16907 eval x=\"$x\"
16908 exec_prefix="$acl_save_exec_prefix"
16909 prefix="$acl_save_prefix"
16910
16911 if test "X$x" = "X$element"; then
16912 haveit=yes
16913 break
16914 fi
16915 done
16916 if test -z "$haveit"; then
16917 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
16918 fi
16919 done
16920
16921
66170b30 16922 for element in -Wno-unneeded-internal-declaration; do
1504c9b8 16923 haveit=
66170b30 16924 for x in $CXXFLAGS; do
1504c9b8
DWT
16925
16926 acl_save_prefix="$prefix"
16927 prefix="$acl_final_prefix"
16928 acl_save_exec_prefix="$exec_prefix"
16929 exec_prefix="$acl_final_exec_prefix"
16930 eval x=\"$x\"
16931 exec_prefix="$acl_save_exec_prefix"
16932 prefix="$acl_save_prefix"
16933
16934 if test "X$x" = "X$element"; then
16935 haveit=yes
16936 break
16937 fi
16938 done
16939 if test -z "$haveit"; then
66170b30 16940 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
1504c9b8
DWT
16941 fi
16942 done
16943
16944
66170b30 16945 for element in -Wno-unneeded-internal-declaration; do
1504c9b8 16946 haveit=
66170b30 16947 for x in $OBJCCXXFLAGS; do
1504c9b8
DWT
16948
16949 acl_save_prefix="$prefix"
16950 prefix="$acl_final_prefix"
16951 acl_save_exec_prefix="$exec_prefix"
16952 exec_prefix="$acl_final_exec_prefix"
16953 eval x=\"$x\"
16954 exec_prefix="$acl_save_exec_prefix"
16955 prefix="$acl_save_prefix"
16956
16957 if test "X$x" = "X$element"; then
16958 haveit=yes
16959 break
16960 fi
16961 done
16962 if test -z "$haveit"; then
66170b30 16963 OBJCCXXFLAGS="${OBJCCXXFLAGS}${OBJCCXXFLAGS:+ }$element"
1504c9b8
DWT
16964 fi
16965 done
16966
16967
1504c9b8 16968
66170b30
JF
16969else
16970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16971$as_echo "no" >&6; }
1504c9b8 16972fi
1504c9b8 16973
1504c9b8 16974
1504c9b8 16975
66170b30
JF
16976for cy_arch in ppc ppc64 i386 x86_64 armv6; do
16977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -arch $cy_arch" >&5
16978$as_echo_n "checking for -arch $cy_arch... " >&6; }
1504c9b8 16979
66170b30 16980 cy_save=$CXXFLAGS
1504c9b8
DWT
16981
16982 for element in "-arch $cy_arch"; do
16983 haveit=
16984 for x in $CXXFLAGS; do
16985
16986 acl_save_prefix="$prefix"
16987 prefix="$acl_final_prefix"
16988 acl_save_exec_prefix="$exec_prefix"
16989 exec_prefix="$acl_final_exec_prefix"
16990 eval x=\"$x\"
16991 exec_prefix="$acl_save_exec_prefix"
16992 prefix="$acl_save_prefix"
16993
16994 if test "X$x" = "X$element"; then
16995 haveit=yes
16996 break
16997 fi
16998 done
16999 if test -z "$haveit"; then
17000 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17001 fi
17002 done
17003
66170b30
JF
17004
17005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1504c9b8
DWT
17006/* end confdefs.h. */
17007
17008int
17009main ()
17010{
17011
17012 ;
17013 return 0;
a243b558
JF
17014}
17015_ACEOF
17016if ac_fn_cxx_try_link "$LINENO"; then :
17017 cy_good=1
17018else
17019 cy_good=0
17020fi
17021rm -f core conftest.err conftest.$ac_objext \
17022 conftest$ac_exeext conftest.$ac_ext
1504c9b8 17023
a243b558
JF
17024 CXXFLAGS=$cy_save
17025 if test "x$cy_good" = x1; then :
17026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17027$as_echo "yes" >&6; }
66170b30 17028
1504c9b8
DWT
17029 for element in "-arch $cy_arch"; do
17030 haveit=
a243b558 17031 for x in $CY_ARCH; do
1504c9b8
DWT
17032
17033 acl_save_prefix="$prefix"
17034 prefix="$acl_final_prefix"
17035 acl_save_exec_prefix="$exec_prefix"
17036 exec_prefix="$acl_final_exec_prefix"
17037 eval x=\"$x\"
17038 exec_prefix="$acl_save_exec_prefix"
17039 prefix="$acl_save_prefix"
17040
17041 if test "X$x" = "X$element"; then
17042 haveit=yes
17043 break
17044 fi
17045 done
17046 if test -z "$haveit"; then
a243b558 17047 CY_ARCH="${CY_ARCH}${CY_ARCH:+ }$element"
1504c9b8
DWT
17048 fi
17049 done
17050
17051
17052else
66170b30
JF
17053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17054$as_echo "no" >&6; }
1504c9b8
DWT
17055fi
17056
66170b30 17057done
1504c9b8 17058
a243b558
JF
17059
17060
296ee9a6
JF
17061
17062
e9c9a47c
DWT
17063# Check whether --with-frameworks was given.
17064if test "${with_frameworks+set}" = set; then :
17065 withval=$with_frameworks;
66170b30
JF
17066 for cy_framework in $withval; do
17067
9c60689e 17068
1504c9b8 17069 for element in -F$cy_framework; do
e9c9a47c
DWT
17070 haveit=
17071 for x in $CFLAGS; do
9c60689e 17072
e9c9a47c
DWT
17073 acl_save_prefix="$prefix"
17074 prefix="$acl_final_prefix"
17075 acl_save_exec_prefix="$exec_prefix"
17076 exec_prefix="$acl_final_exec_prefix"
17077 eval x=\"$x\"
17078 exec_prefix="$acl_save_exec_prefix"
17079 prefix="$acl_save_prefix"
17080
17081 if test "X$x" = "X$element"; then
17082 haveit=yes
17083 break
17084 fi
17085 done
17086 if test -z "$haveit"; then
17087 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
17088 fi
9c60689e 17089 done
9c60689e 17090
94690cff 17091
1504c9b8 17092 for element in -F$cy_framework; do
e9c9a47c
DWT
17093 haveit=
17094 for x in $CXXFLAGS; do
9c60689e 17095
e9c9a47c
DWT
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"
9c60689e 17103
e9c9a47c
DWT
17104 if test "X$x" = "X$element"; then
17105 haveit=yes
17106 break
17107 fi
17108 done
17109 if test -z "$haveit"; then
17110 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17111 fi
17112 done
9c60689e 17113
e9c9a47c 17114
1504c9b8 17115 for element in -F$cy_framework; do
e9c9a47c
DWT
17116 haveit=
17117 for x in $OBJCCXXFLAGS; do
17118
17119 acl_save_prefix="$prefix"
17120 prefix="$acl_final_prefix"
17121 acl_save_exec_prefix="$exec_prefix"
17122 exec_prefix="$acl_final_exec_prefix"
17123 eval x=\"$x\"
17124 exec_prefix="$acl_save_exec_prefix"
17125 prefix="$acl_save_prefix"
17126
17127 if test "X$x" = "X$element"; then
17128 haveit=yes
17129 break
17130 fi
17131 done
17132 if test -z "$haveit"; then
17133 OBJCCXXFLAGS="${OBJCCXXFLAGS}${OBJCCXXFLAGS:+ }$element"
17134 fi
9c60689e 17135 done
632b71ea 17136
9c60689e 17137
632b71ea 17138 done
9c60689e 17139
632b71ea 17140fi
9c60689e 17141
9c60689e 17142
632b71ea
DWT
17143
17144
5053a6d1
DWT
17145# Check whether --enable-javascript was given.
17146if test "${enable_javascript+set}" = set; then :
17147 enableval=$enable_javascript;
66170b30 17148 case $enableval in #(
5053a6d1 17149 yes) :
9c60689e
DWT
17150
17151
9c60689e 17152
66170b30 17153
7eda51e0
JF
17154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
17155$as_echo_n "checking for framework JavaScriptCore... " >&6; }
17156if ${ac_cv_framework_JavaScriptCore+:} false; then :
17157 $as_echo_n "(cached) " >&6
9c60689e 17158else
7eda51e0
JF
17159
17160 ac_check_framework_save_LIBS=$LIBS
17161 LIBS="-framework JavaScriptCore $LIBS"
17162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17163/* end confdefs.h. */
17164
17165 #include <JavaScriptCore/JSBase.h>
17166
17167int
17168main ()
17169{
17170
17171 JSEvaluateScript(0, 0, 0, 0, 0, 0);
17172
17173 ;
17174 return 0;
17175}
17176_ACEOF
17177if ac_fn_cxx_try_link "$LINENO"; then :
17178
17179 ac_cv_framework_JavaScriptCore=yes
17180
9c60689e 17181else
7eda51e0 17182 ac_cv_framework_JavaScriptCore=no
9c60689e 17183fi
7eda51e0
JF
17184rm -f core conftest.err conftest.$ac_objext \
17185 conftest$ac_exeext conftest.$ac_ext
17186 LIBS=$ac_check_framework_save_LIBS
17187
9c60689e 17188fi
7eda51e0
JF
17189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
17190$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
17191 if test $ac_cv_framework_JavaScriptCore = yes; then :
17192
17193
17194 for element in "-framework JavaScriptCore"; do
17195 haveit=
17196 for x in $LIBS; do
9c60689e 17197
7eda51e0
JF
17198 acl_save_prefix="$prefix"
17199 prefix="$acl_final_prefix"
17200 acl_save_exec_prefix="$exec_prefix"
17201 exec_prefix="$acl_final_exec_prefix"
17202 eval x=\"$x\"
17203 exec_prefix="$acl_save_exec_prefix"
17204 prefix="$acl_save_prefix"
9c60689e 17205
7eda51e0
JF
17206 if test "X$x" = "X$element"; then
17207 haveit=yes
17208 break
17209 fi
17210 done
17211 if test -z "$haveit"; then
17212 LIBS="${LIBS}${LIBS:+ }$element"
17213 fi
17214 done
9c60689e 17215
9c60689e 17216
7eda51e0 17217 CY_EXECUTE=1
632b71ea 17218
5053a6d1
DWT
17219
17220
7eda51e0
JF
17221else
17222
17223 for cy_webkit_pkg in "webkit-1.0" "WebKitGtk"; do
17224
5053a6d1
DWT
17225pkg_failed=no
17226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
17227$as_echo_n "checking for WEBKIT... " >&6; }
632b71ea 17228
12833ad8
JF
17229if test -n "$WEBKIT_CFLAGS"; then
17230 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
17231 elif test -n "$PKG_CONFIG"; then
17232 if test -n "$PKG_CONFIG" && \
7eda51e0
JF
17233 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
17234 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
5053a6d1
DWT
17235 ac_status=$?
17236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17237 test $ac_status = 0; }; then
7eda51e0 17238 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "$cy_webkit_pkg" 2>/dev/null`
5053a6d1
DWT
17239else
17240 pkg_failed=yes
9c60689e 17241fi
12833ad8
JF
17242 else
17243 pkg_failed=untried
5053a6d1 17244fi
12833ad8
JF
17245if test -n "$WEBKIT_LIBS"; then
17246 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
17247 elif test -n "$PKG_CONFIG"; then
17248 if test -n "$PKG_CONFIG" && \
7eda51e0
JF
17249 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
17250 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
5053a6d1
DWT
17251 ac_status=$?
17252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17253 test $ac_status = 0; }; then
7eda51e0 17254 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "$cy_webkit_pkg" 2>/dev/null`
5053a6d1
DWT
17255else
17256 pkg_failed=yes
17257fi
12833ad8
JF
17258 else
17259 pkg_failed=untried
632b71ea
DWT
17260fi
17261
17262
17263
5053a6d1 17264if test $pkg_failed = yes; then
12833ad8
JF
17265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17266$as_echo "no" >&6; }
5053a6d1
DWT
17267
17268if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17269 _pkg_short_errors_supported=yes
17270else
17271 _pkg_short_errors_supported=no
17272fi
17273 if test $_pkg_short_errors_supported = yes; then
7eda51e0 17274 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$cy_webkit_pkg" 2>&1`
5053a6d1 17275 else
7eda51e0 17276 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "$cy_webkit_pkg" 2>&1`
5053a6d1
DWT
17277 fi
17278 # Put the nasty error message in config.log where it belongs
17279 echo "$WEBKIT_PKG_ERRORS" >&5
17280
7eda51e0
JF
17281 :
17282elif test $pkg_failed = untried; then
17283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17284$as_echo "no" >&6; }
17285 :
17286else
17287 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
17288 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
17289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17290$as_echo "yes" >&6; }
5053a6d1 17291
7eda51e0 17292 CY_EXECUTE=1
632b71ea
DWT
17293
17294
17295
7eda51e0
JF
17296 for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do
17297 haveit=
17298 for x in $CFLAGS; do
632b71ea 17299
7eda51e0
JF
17300 acl_save_prefix="$prefix"
17301 prefix="$acl_final_prefix"
17302 acl_save_exec_prefix="$exec_prefix"
17303 exec_prefix="$acl_final_exec_prefix"
17304 eval x=\"$x\"
17305 exec_prefix="$acl_save_exec_prefix"
17306 prefix="$acl_save_prefix"
66170b30 17307
7eda51e0
JF
17308 if test "X$x" = "X$element"; then
17309 haveit=yes
17310 break
17311 fi
17312 done
17313 if test -z "$haveit"; then
17314 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
17315 fi
17316 done
66170b30 17317
632b71ea 17318
7eda51e0
JF
17319 for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do
17320 haveit=
17321 for x in $CXXFLAGS; do
632b71ea 17322
7eda51e0
JF
17323 acl_save_prefix="$prefix"
17324 prefix="$acl_final_prefix"
17325 acl_save_exec_prefix="$exec_prefix"
17326 exec_prefix="$acl_final_exec_prefix"
17327 eval x=\"$x\"
17328 exec_prefix="$acl_save_exec_prefix"
17329 prefix="$acl_save_prefix"
632b71ea 17330
7eda51e0
JF
17331 if test "X$x" = "X$element"; then
17332 haveit=yes
17333 break
17334 fi
17335 done
17336 if test -z "$haveit"; then
17337 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17338 fi
17339 done
632b71ea
DWT
17340
17341
7eda51e0 17342 for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do
5053a6d1 17343 haveit=
7eda51e0 17344 for x in $OBJCCXXFLAGS; do
632b71ea
DWT
17345
17346 acl_save_prefix="$prefix"
17347 prefix="$acl_final_prefix"
17348 acl_save_exec_prefix="$exec_prefix"
17349 exec_prefix="$acl_final_exec_prefix"
5053a6d1 17350 eval x=\"$x\"
632b71ea
DWT
17351 exec_prefix="$acl_save_exec_prefix"
17352 prefix="$acl_save_prefix"
17353
5053a6d1
DWT
17354 if test "X$x" = "X$element"; then
17355 haveit=yes
17356 break
17357 fi
17358 done
17359 if test -z "$haveit"; then
7eda51e0 17360 OBJCCXXFLAGS="${OBJCCXXFLAGS}${OBJCCXXFLAGS:+ }$element"
5053a6d1
DWT
17361 fi
17362 done
17363
66170b30 17364
7eda51e0
JF
17365
17366 for element in `$PKG_CONFIG --libs $cy_webkit_pkg`; do
17367 haveit=
17368 for x in $LIBS; do
17369
17370 acl_save_prefix="$prefix"
17371 prefix="$acl_final_prefix"
17372 acl_save_exec_prefix="$exec_prefix"
17373 exec_prefix="$acl_final_exec_prefix"
17374 eval x=\"$x\"
17375 exec_prefix="$acl_save_exec_prefix"
17376 prefix="$acl_save_prefix"
17377
17378 if test "X$x" = "X$element"; then
17379 haveit=yes
17380 break
17381 fi
17382 done
17383 if test -z "$haveit"; then
17384 LIBS="${LIBS}${LIBS:+ }$element"
17385 fi
17386 done
66170b30
JF
17387
17388
7eda51e0
JF
17389fi; if test "x$CY_EXECUTE" = x1; then break; fi
17390 done
632b71ea 17391
5053a6d1 17392fi
7eda51e0
JF
17393 ;; #(
17394 no) :
17395
17396 CY_EXECUTE=0
17397 ;; #(
17398 JavaScriptCore) :
5053a6d1 17399
5053a6d1
DWT
17400
17401
17402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
17403$as_echo_n "checking for framework JavaScriptCore... " >&6; }
ee134472 17404if ${ac_cv_framework_JavaScriptCore+:} false; then :
5053a6d1
DWT
17405 $as_echo_n "(cached) " >&6
17406else
17407
17408 ac_check_framework_save_LIBS=$LIBS
17409 LIBS="-framework JavaScriptCore $LIBS"
17410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17411/* end confdefs.h. */
17412
7eda51e0 17413 #include <JavaScriptCore/JSBase.h>
5053a6d1
DWT
17414
17415int
17416main ()
17417{
66170b30 17418
7eda51e0 17419 JSEvaluateScript(0, 0, 0, 0, 0, 0);
66170b30 17420
5053a6d1
DWT
17421 ;
17422 return 0;
17423}
17424_ACEOF
17425if ac_fn_cxx_try_link "$LINENO"; then :
17426
17427 ac_cv_framework_JavaScriptCore=yes
17428
17429else
17430 ac_cv_framework_JavaScriptCore=no
17431fi
17432rm -f core conftest.err conftest.$ac_objext \
17433 conftest$ac_exeext conftest.$ac_ext
17434 LIBS=$ac_check_framework_save_LIBS
17435
17436fi
17437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
17438$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
17439 if test $ac_cv_framework_JavaScriptCore = yes; then :
17440
17441
7eda51e0 17442 for element in "-framework JavaScriptCore"; do
5053a6d1
DWT
17443 haveit=
17444 for x in $LIBS; do
632b71ea
DWT
17445
17446 acl_save_prefix="$prefix"
17447 prefix="$acl_final_prefix"
17448 acl_save_exec_prefix="$exec_prefix"
17449 exec_prefix="$acl_final_exec_prefix"
5053a6d1
DWT
17450 eval x=\"$x\"
17451 exec_prefix="$acl_save_exec_prefix"
17452 prefix="$acl_save_prefix"
632b71ea 17453
5053a6d1
DWT
17454 if test "X$x" = "X$element"; then
17455 haveit=yes
17456 break
17457 fi
17458 done
17459 if test -z "$haveit"; then
17460 LIBS="${LIBS}${LIBS:+ }$element"
17461 fi
17462 done
17463
66170b30 17464
7eda51e0 17465 CY_EXECUTE=1
66170b30 17466
5053a6d1 17467
5053a6d1
DWT
17468
17469else
5053a6d1 17470
7eda51e0 17471 for cy_webkit_pkg in "webkit-1.0" "WebKitGtk"; do
66170b30 17472
7eda51e0
JF
17473pkg_failed=no
17474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
17475$as_echo_n "checking for WEBKIT... " >&6; }
5053a6d1 17476
7eda51e0
JF
17477if test -n "$WEBKIT_CFLAGS"; then
17478 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
17479 elif test -n "$PKG_CONFIG"; then
17480 if test -n "$PKG_CONFIG" && \
17481 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
17482 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
17483 ac_status=$?
17484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17485 test $ac_status = 0; }; then
17486 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "$cy_webkit_pkg" 2>/dev/null`
17487else
17488 pkg_failed=yes
17489fi
17490 else
17491 pkg_failed=untried
17492fi
17493if test -n "$WEBKIT_LIBS"; then
17494 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
17495 elif test -n "$PKG_CONFIG"; then
17496 if test -n "$PKG_CONFIG" && \
17497 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
17498 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
17499 ac_status=$?
17500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17501 test $ac_status = 0; }; then
17502 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "$cy_webkit_pkg" 2>/dev/null`
17503else
17504 pkg_failed=yes
17505fi
17506 else
17507 pkg_failed=untried
17508fi
632b71ea 17509
7eda51e0
JF
17510
17511
17512if test $pkg_failed = yes; then
17513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17514$as_echo "no" >&6; }
17515
17516if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17517 _pkg_short_errors_supported=yes
17518else
17519 _pkg_short_errors_supported=no
17520fi
17521 if test $_pkg_short_errors_supported = yes; then
17522 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$cy_webkit_pkg" 2>&1`
17523 else
17524 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "$cy_webkit_pkg" 2>&1`
17525 fi
17526 # Put the nasty error message in config.log where it belongs
17527 echo "$WEBKIT_PKG_ERRORS" >&5
17528
17529 :
17530elif test $pkg_failed = untried; then
17531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17532$as_echo "no" >&6; }
17533 :
17534else
17535 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
17536 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
17537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17538$as_echo "yes" >&6; }
17539
17540 CY_EXECUTE=1
17541
17542
17543
17544 for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do
17545 haveit=
17546 for x in $CFLAGS; do
17547
17548 acl_save_prefix="$prefix"
17549 prefix="$acl_final_prefix"
17550 acl_save_exec_prefix="$exec_prefix"
17551 exec_prefix="$acl_final_exec_prefix"
17552 eval x=\"$x\"
17553 exec_prefix="$acl_save_exec_prefix"
17554 prefix="$acl_save_prefix"
632b71ea 17555
5053a6d1
DWT
17556 if test "X$x" = "X$element"; then
17557 haveit=yes
17558 break
632b71ea 17559 fi
5053a6d1
DWT
17560 done
17561 if test -z "$haveit"; then
7eda51e0 17562 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
632b71ea 17563 fi
5053a6d1 17564 done
632b71ea 17565
632b71ea 17566
7eda51e0 17567 for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do
5053a6d1 17568 haveit=
7eda51e0 17569 for x in $CXXFLAGS; do
632b71ea
DWT
17570
17571 acl_save_prefix="$prefix"
17572 prefix="$acl_final_prefix"
17573 acl_save_exec_prefix="$exec_prefix"
17574 exec_prefix="$acl_final_exec_prefix"
17575 eval x=\"$x\"
17576 exec_prefix="$acl_save_exec_prefix"
17577 prefix="$acl_save_prefix"
17578
5053a6d1
DWT
17579 if test "X$x" = "X$element"; then
17580 haveit=yes
17581 break
17582 fi
17583 done
17584 if test -z "$haveit"; then
7eda51e0 17585 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
5053a6d1
DWT
17586 fi
17587 done
632b71ea 17588
632b71ea 17589
7eda51e0
JF
17590 for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do
17591 haveit=
17592 for x in $OBJCCXXFLAGS; do
5053a6d1 17593
7eda51e0
JF
17594 acl_save_prefix="$prefix"
17595 prefix="$acl_final_prefix"
17596 acl_save_exec_prefix="$exec_prefix"
17597 exec_prefix="$acl_final_exec_prefix"
17598 eval x=\"$x\"
17599 exec_prefix="$acl_save_exec_prefix"
17600 prefix="$acl_save_prefix"
5053a6d1 17601
7eda51e0
JF
17602 if test "X$x" = "X$element"; then
17603 haveit=yes
17604 break
17605 fi
17606 done
17607 if test -z "$haveit"; then
17608 OBJCCXXFLAGS="${OBJCCXXFLAGS}${OBJCCXXFLAGS:+ }$element"
17609 fi
17610 done
5053a6d1 17611
5053a6d1
DWT
17612
17613
7eda51e0 17614 for element in `$PKG_CONFIG --libs $cy_webkit_pkg`; do
632b71ea 17615 haveit=
5053a6d1 17616 for x in $LIBS; do
9c60689e 17617
632b71ea
DWT
17618 acl_save_prefix="$prefix"
17619 prefix="$acl_final_prefix"
17620 acl_save_exec_prefix="$exec_prefix"
17621 exec_prefix="$acl_final_exec_prefix"
17622 eval x=\"$x\"
17623 exec_prefix="$acl_save_exec_prefix"
17624 prefix="$acl_save_prefix"
17625
17626 if test "X$x" = "X$element"; then
17627 haveit=yes
17628 break
17629 fi
17630 done
17631 if test -z "$haveit"; then
5053a6d1 17632 LIBS="${LIBS}${LIBS:+ }$element"
632b71ea
DWT
17633 fi
17634 done
b128dfee 17635
66170b30 17636
7eda51e0
JF
17637fi; if test "x$CY_EXECUTE" = x1; then break; fi
17638 done
5053a6d1
DWT
17639
17640fi
7eda51e0
JF
17641 ;; #(
17642 *) :
17643 as_fn_error $? "Unknown JavaScript engine: $enableval" "$LINENO" 5 ;;
17644esac
17645
17646else
c823f118 17647
5053a6d1
DWT
17648
17649
17650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
17651$as_echo_n "checking for framework JavaScriptCore... " >&6; }
ee134472 17652if ${ac_cv_framework_JavaScriptCore+:} false; then :
c823f118
DWT
17653 $as_echo_n "(cached) " >&6
17654else
17655
5053a6d1
DWT
17656 ac_check_framework_save_LIBS=$LIBS
17657 LIBS="-framework JavaScriptCore $LIBS"
17658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
632b71ea 17659/* end confdefs.h. */
5053a6d1 17660
7eda51e0 17661 #include <JavaScriptCore/JSBase.h>
5053a6d1 17662
632b71ea
DWT
17663int
17664main ()
17665{
66170b30 17666
7eda51e0 17667 JSEvaluateScript(0, 0, 0, 0, 0, 0);
66170b30 17668
632b71ea
DWT
17669 ;
17670 return 0;
17671}
17672_ACEOF
5053a6d1
DWT
17673if ac_fn_cxx_try_link "$LINENO"; then :
17674
17675 ac_cv_framework_JavaScriptCore=yes
17676
17677else
17678 ac_cv_framework_JavaScriptCore=no
632b71ea
DWT
17679fi
17680rm -f core conftest.err conftest.$ac_objext \
17681 conftest$ac_exeext conftest.$ac_ext
5053a6d1 17682 LIBS=$ac_check_framework_save_LIBS
b128dfee 17683
c823f118 17684fi
5053a6d1
DWT
17685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
17686$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
17687 if test $ac_cv_framework_JavaScriptCore = yes; then :
c823f118
DWT
17688
17689
7eda51e0 17690 for element in "-framework JavaScriptCore"; do
5053a6d1
DWT
17691 haveit=
17692 for x in $LIBS; do
17693
17694 acl_save_prefix="$prefix"
17695 prefix="$acl_final_prefix"
17696 acl_save_exec_prefix="$exec_prefix"
17697 exec_prefix="$acl_final_exec_prefix"
17698 eval x=\"$x\"
17699 exec_prefix="$acl_save_exec_prefix"
17700 prefix="$acl_save_prefix"
17701
17702 if test "X$x" = "X$element"; then
17703 haveit=yes
17704 break
17705 fi
17706 done
17707 if test -z "$haveit"; then
17708 LIBS="${LIBS}${LIBS:+ }$element"
17709 fi
17710 done
c823f118 17711
66170b30 17712
7eda51e0
JF
17713 CY_EXECUTE=1
17714
17715
17716
17717else
17718
17719 for cy_webkit_pkg in "webkit-1.0" "WebKitGtk"; do
17720
17721pkg_failed=no
17722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
17723$as_echo_n "checking for WEBKIT... " >&6; }
17724
17725if test -n "$WEBKIT_CFLAGS"; then
17726 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
17727 elif test -n "$PKG_CONFIG"; then
17728 if test -n "$PKG_CONFIG" && \
17729 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
17730 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
17731 ac_status=$?
17732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17733 test $ac_status = 0; }; then
17734 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "$cy_webkit_pkg" 2>/dev/null`
17735else
17736 pkg_failed=yes
17737fi
17738 else
17739 pkg_failed=untried
17740fi
17741if test -n "$WEBKIT_LIBS"; then
17742 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
17743 elif test -n "$PKG_CONFIG"; then
17744 if test -n "$PKG_CONFIG" && \
17745 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
17746 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
17747 ac_status=$?
17748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17749 test $ac_status = 0; }; then
17750 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "$cy_webkit_pkg" 2>/dev/null`
17751else
17752 pkg_failed=yes
17753fi
17754 else
17755 pkg_failed=untried
17756fi
17757
66170b30
JF
17758
17759
7eda51e0
JF
17760if test $pkg_failed = yes; then
17761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17762$as_echo "no" >&6; }
b128dfee 17763
7eda51e0
JF
17764if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17765 _pkg_short_errors_supported=yes
17766else
17767 _pkg_short_errors_supported=no
632b71ea 17768fi
7eda51e0
JF
17769 if test $_pkg_short_errors_supported = yes; then
17770 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$cy_webkit_pkg" 2>&1`
17771 else
17772 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "$cy_webkit_pkg" 2>&1`
17773 fi
17774 # Put the nasty error message in config.log where it belongs
17775 echo "$WEBKIT_PKG_ERRORS" >&5
c823f118 17776
7eda51e0
JF
17777 :
17778elif test $pkg_failed = untried; then
17779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17780$as_echo "no" >&6; }
17781 :
5053a6d1
DWT
17782else
17783 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
17784 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
17785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17786$as_echo "yes" >&6; }
c823f118 17787
7eda51e0
JF
17788 CY_EXECUTE=1
17789
66170b30 17790
b128dfee 17791
7eda51e0 17792 for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do
5053a6d1 17793 haveit=
7eda51e0 17794 for x in $CFLAGS; do
b128dfee 17795
5053a6d1
DWT
17796 acl_save_prefix="$prefix"
17797 prefix="$acl_final_prefix"
17798 acl_save_exec_prefix="$exec_prefix"
17799 exec_prefix="$acl_final_exec_prefix"
17800 eval x=\"$x\"
17801 exec_prefix="$acl_save_exec_prefix"
17802 prefix="$acl_save_prefix"
c823f118 17803
5053a6d1
DWT
17804 if test "X$x" = "X$element"; then
17805 haveit=yes
17806 break
17807 fi
17808 done
17809 if test -z "$haveit"; then
7eda51e0 17810 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
5053a6d1
DWT
17811 fi
17812 done
c823f118 17813
c823f118 17814
7eda51e0 17815 for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do
5053a6d1 17816 haveit=
7eda51e0 17817 for x in $CXXFLAGS; do
5053a6d1
DWT
17818
17819 acl_save_prefix="$prefix"
17820 prefix="$acl_final_prefix"
17821 acl_save_exec_prefix="$exec_prefix"
17822 exec_prefix="$acl_final_exec_prefix"
17823 eval x=\"$x\"
17824 exec_prefix="$acl_save_exec_prefix"
17825 prefix="$acl_save_prefix"
17826
17827 if test "X$x" = "X$element"; then
17828 haveit=yes
17829 break
17830 fi
17831 done
17832 if test -z "$haveit"; then
7eda51e0 17833 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
5053a6d1
DWT
17834 fi
17835 done
c823f118 17836
632b71ea 17837
7eda51e0 17838 for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do
5053a6d1 17839 haveit=
7eda51e0 17840 for x in $OBJCCXXFLAGS; do
c823f118 17841
5053a6d1
DWT
17842 acl_save_prefix="$prefix"
17843 prefix="$acl_final_prefix"
17844 acl_save_exec_prefix="$exec_prefix"
17845 exec_prefix="$acl_final_exec_prefix"
17846 eval x=\"$x\"
17847 exec_prefix="$acl_save_exec_prefix"
17848 prefix="$acl_save_prefix"
c823f118 17849
5053a6d1
DWT
17850 if test "X$x" = "X$element"; then
17851 haveit=yes
17852 break
17853 fi
17854 done
17855 if test -z "$haveit"; then
7eda51e0 17856 OBJCCXXFLAGS="${OBJCCXXFLAGS}${OBJCCXXFLAGS:+ }$element"
5053a6d1
DWT
17857 fi
17858 done
c823f118 17859
b66977f1 17860
7eda51e0
JF
17861
17862 for element in `$PKG_CONFIG --libs $cy_webkit_pkg`; do
5053a6d1
DWT
17863 haveit=
17864 for x in $LIBS; do
17865
17866 acl_save_prefix="$prefix"
17867 prefix="$acl_final_prefix"
17868 acl_save_exec_prefix="$exec_prefix"
17869 exec_prefix="$acl_final_exec_prefix"
17870 eval x=\"$x\"
17871 exec_prefix="$acl_save_exec_prefix"
17872 prefix="$acl_save_prefix"
17873
17874 if test "X$x" = "X$element"; then
17875 haveit=yes
17876 break
17877 fi
17878 done
17879 if test -z "$haveit"; then
17880 LIBS="${LIBS}${LIBS:+ }$element"
17881 fi
17882 done
17883
17884
7eda51e0
JF
17885fi; if test "x$CY_EXECUTE" = x1; then break; fi
17886 done
17887
5053a6d1 17888fi
5053a6d1 17889
7eda51e0 17890fi
b66977f1
DWT
17891
17892
17893
7eda51e0
JF
17894 apr_found="no"
17895
17896 if test "$target_os" = "os2-emx"; then
17897 # Scripts don't pass test -x on OS/2
17898 TEST_X="test -f"
17899 else
17900 TEST_X="test -x"
17901 fi
17902
17903 acceptable_majors="1"
17904
17905 apr_temp_acceptable_apr_config=""
17906 for apr_temp_major in $acceptable_majors
17907 do
17908 case $apr_temp_major in
17909 0)
17910 apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-config"
17911 ;;
17912 *)
17913 apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-$apr_temp_major-config"
17914 ;;
17915 esac
17916 done
17917
17918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APR" >&5
17919$as_echo_n "checking for APR... " >&6; }
17920
17921# Check whether --with-apr was given.
17922if test "${with_apr+set}" = set; then :
17923 withval=$with_apr;
17924 if test "$withval" = "no" || test "$withval" = "yes"; then
17925 as_fn_error $? "--with-apr requires a directory or file to be provided" "$LINENO" 5
17926 fi
17927
17928 for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config
17929 do
17930 for lookdir in "$withval/bin" "$withval"
17931 do
17932 if $TEST_X "$lookdir/$apr_temp_apr_config_file"; then
17933 apr_config="$lookdir/$apr_temp_apr_config_file"
17934
17935 apr_found="yes"
17936 break 2
17937 fi
17938 done
17939 done
17940
17941 if test "$apr_found" != "yes" && $TEST_X "$withval" && $withval --help > /dev/null 2>&1 ; then
17942 apr_config="$withval"
17943 apr_found="yes"
17944 fi
17945
17946 if test "$apr_found" != "yes"; then
17947 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
17948 fi
b66977f1 17949
b66977f1 17950else
7eda51e0
JF
17951
17952 if test -n "1" && test "1" = "1"; then
17953 for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config
17954 do
17955 if $apr_temp_apr_config_file --help > /dev/null 2>&1 ; then
17956 apr_config="$apr_temp_apr_config_file"
17957
17958 apr_found="yes"
17959 break
17960 else
17961 for lookdir in /usr /usr/local /usr/local/apr /opt/apr; do
17962 if $TEST_X "$lookdir/bin/$apr_temp_apr_config_file"; then
17963 apr_config="$lookdir/bin/$apr_temp_apr_config_file"
17964
17965 apr_found="yes"
17966 break 2
17967 fi
17968 done
17969 fi
17970 done
17971 fi
17972 if test "$apr_found" = "no" && test -d ""; then
17973 apr_temp_abs_srcdir="`cd && pwd`"
17974 apr_found="reconfig"
17975 apr_bundled_major="`sed -n '/#define.*APR_MAJOR_VERSION/s/^[^0-9]*\([0-9]*\).*$/\1/p' \"/include/apr_version.h\"`"
17976 case $apr_bundled_major in
17977 "")
17978 as_fn_error $? "failed to find major version of bundled APR" "$LINENO" 5
17979 ;;
17980 0)
17981 apr_temp_apr_config_file="apr-config"
17982 ;;
17983 *)
17984 apr_temp_apr_config_file="apr-$apr_bundled_major-config"
17985 ;;
17986 esac
17987 if test -n ""; then
17988 apr_config="/$apr_temp_apr_config_file"
17989 else
17990 apr_config="/$apr_temp_apr_config_file"
17991 fi
17992 fi
17993
b66977f1 17994fi
7eda51e0
JF
17995
17996
17997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_found" >&5
17998$as_echo "$apr_found" >&6; }
17999
18000case $apr_found in #(
18001 yes) :
18002
18003
18004 for element in `$apr_config --includes`; do
18005 haveit=
18006 for x in $CPPFLAGS; do
18007
18008 acl_save_prefix="$prefix"
18009 prefix="$acl_final_prefix"
18010 acl_save_exec_prefix="$exec_prefix"
18011 exec_prefix="$acl_final_exec_prefix"
18012 eval x=\"$x\"
18013 exec_prefix="$acl_save_exec_prefix"
18014 prefix="$acl_save_prefix"
18015
18016 if test "X$x" = "X$element"; then
18017 haveit=yes
18018 break
18019 fi
18020 done
18021 if test -z "$haveit"; then
18022 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18023 fi
18024 done
18025
18026
18027 for element in `$apr_config --link-libtool`; do
18028 haveit=
18029 for x in $LTLIBAPR; do
18030
18031 acl_save_prefix="$prefix"
18032 prefix="$acl_final_prefix"
18033 acl_save_exec_prefix="$exec_prefix"
18034 exec_prefix="$acl_final_exec_prefix"
18035 eval x=\"$x\"
18036 exec_prefix="$acl_save_exec_prefix"
18037 prefix="$acl_save_prefix"
18038
18039 if test "X$x" = "X$element"; then
18040 haveit=yes
18041 break
18042 fi
18043 done
18044 if test -z "$haveit"; then
18045 LTLIBAPR="${LTLIBAPR}${LTLIBAPR:+ }$element"
18046 fi
18047 done
18048
18049
18050 ;; #(
18051 *) :
18052 as_fn_error $? "missing \"libapr\"" "$LINENO" 5 ;;
18053esac
18054
18055
18056
18057 if test "x$CY_EXECUTE" = x1; then
18058 CY_EXECUTE_TRUE=
18059 CY_EXECUTE_FALSE='#'
b66977f1 18060else
7eda51e0
JF
18061 CY_EXECUTE_TRUE='#'
18062 CY_EXECUTE_FALSE=
b66977f1
DWT
18063fi
18064
18065
18066
b66977f1 18067
7eda51e0
JF
18068case $CY_EXECUTE in #(
18069 1) :
18070
18071 for ac_header in ffi.h ffi/ffi.h
18072do :
18073 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18074ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18075if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18076 cat >>confdefs.h <<_ACEOF
18077#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18078_ACEOF
18079 break
b66977f1 18080fi
7eda51e0
JF
18081
18082done
18083
296ee9a6
JF
18084
18085
18086 cy_save=$LIBS
18087 LIBS=
7eda51e0 18088 if test "x$ac_cv_header_ffi_h" = xno && test "x$ac_cv_header_ffi_ffi_h" = xno; then :
b66977f1 18089
b66977f1 18090
296ee9a6
JF
18091 LIBFFI_CFLAGS
18092 C compiler flags for LIBFFI, overriding pkg-config
18093 LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config
b66977f1
DWT
18094
18095pkg_failed=no
7eda51e0
JF
18096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5
18097$as_echo_n "checking for LIBFFI... " >&6; }
b66977f1 18098
7eda51e0
JF
18099if test -n "$LIBFFI_CFLAGS"; then
18100 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS"
12833ad8
JF
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 \"libffi\""; } >&5
18104 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
b66977f1
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_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null`
b66977f1
DWT
18109else
18110 pkg_failed=yes
18111fi
12833ad8
JF
18112 else
18113 pkg_failed=untried
b66977f1 18114fi
7eda51e0
JF
18115if test -n "$LIBFFI_LIBS"; then
18116 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS"
12833ad8
JF
18117 elif test -n "$PKG_CONFIG"; then
18118 if test -n "$PKG_CONFIG" && \
7eda51e0
JF
18119 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
18120 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
b66977f1
DWT
18121 ac_status=$?
18122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18123 test $ac_status = 0; }; then
7eda51e0 18124 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null`
b66977f1
DWT
18125else
18126 pkg_failed=yes
18127fi
12833ad8
JF
18128 else
18129 pkg_failed=untried
b66977f1
DWT
18130fi
18131
18132
18133
18134if test $pkg_failed = yes; then
12833ad8
JF
18135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18136$as_echo "no" >&6; }
b66977f1
DWT
18137
18138if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18139 _pkg_short_errors_supported=yes
18140else
18141 _pkg_short_errors_supported=no
18142fi
18143 if test $_pkg_short_errors_supported = yes; then
7eda51e0 18144 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libffi" 2>&1`
b66977f1 18145 else
7eda51e0 18146 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libffi" 2>&1`
b66977f1
DWT
18147 fi
18148 # Put the nasty error message in config.log where it belongs
7eda51e0 18149 echo "$LIBFFI_PKG_ERRORS" >&5
b66977f1 18150
7eda51e0
JF
18151 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
18152elif test $pkg_failed = untried; then
18153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18154$as_echo "no" >&6; }
18155 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
18156else
18157 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS
18158 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS
18159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18160$as_echo "yes" >&6; }
b66977f1
DWT
18161
18162
b66977f1 18163
7eda51e0 18164 for element in `$PKG_CONFIG --cflags libffi`; do
b66977f1 18165 haveit=
7eda51e0 18166 for x in $CFLAGS; do
b66977f1
DWT
18167
18168 acl_save_prefix="$prefix"
18169 prefix="$acl_final_prefix"
18170 acl_save_exec_prefix="$exec_prefix"
18171 exec_prefix="$acl_final_exec_prefix"
18172 eval x=\"$x\"
18173 exec_prefix="$acl_save_exec_prefix"
18174 prefix="$acl_save_prefix"
18175
18176 if test "X$x" = "X$element"; then
18177 haveit=yes
18178 break
18179 fi
18180 done
18181 if test -z "$haveit"; then
7eda51e0 18182 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
b66977f1
DWT
18183 fi
18184 done
18185
66170b30 18186
7eda51e0 18187 for element in `$PKG_CONFIG --cflags libffi`; do
b66977f1 18188 haveit=
7eda51e0 18189 for x in $CXXFLAGS; do
b66977f1
DWT
18190
18191 acl_save_prefix="$prefix"
18192 prefix="$acl_final_prefix"
18193 acl_save_exec_prefix="$exec_prefix"
18194 exec_prefix="$acl_final_exec_prefix"
18195 eval x=\"$x\"
18196 exec_prefix="$acl_save_exec_prefix"
18197 prefix="$acl_save_prefix"
18198
18199 if test "X$x" = "X$element"; then
18200 haveit=yes
18201 break
18202 fi
18203 done
18204 if test -z "$haveit"; then
7eda51e0 18205 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
b66977f1
DWT
18206 fi
18207 done
18208
66170b30 18209
7eda51e0 18210 for element in `$PKG_CONFIG --cflags libffi`; do
b66977f1 18211 haveit=
7eda51e0 18212 for x in $OBJCCXXFLAGS; do
b66977f1
DWT
18213
18214 acl_save_prefix="$prefix"
18215 prefix="$acl_final_prefix"
18216 acl_save_exec_prefix="$exec_prefix"
18217 exec_prefix="$acl_final_exec_prefix"
18218 eval x=\"$x\"
18219 exec_prefix="$acl_save_exec_prefix"
18220 prefix="$acl_save_prefix"
18221
18222 if test "X$x" = "X$element"; then
18223 haveit=yes
18224 break
18225 fi
18226 done
18227 if test -z "$haveit"; then
7eda51e0 18228 OBJCCXXFLAGS="${OBJCCXXFLAGS}${OBJCCXXFLAGS:+ }$element"
b66977f1
DWT
18229 fi
18230 done
18231
18232
7eda51e0
JF
18233
18234 for element in `$PKG_CONFIG --libs libffi`; do
b66977f1
DWT
18235 haveit=
18236 for x in $LIBS; do
18237
18238 acl_save_prefix="$prefix"
18239 prefix="$acl_final_prefix"
18240 acl_save_exec_prefix="$exec_prefix"
18241 exec_prefix="$acl_final_exec_prefix"
18242 eval x=\"$x\"
18243 exec_prefix="$acl_save_exec_prefix"
18244 prefix="$acl_save_prefix"
18245
18246 if test "X$x" = "X$element"; then
18247 haveit=yes
18248 break
18249 fi
18250 done
18251 if test -z "$haveit"; then
18252 LIBS="${LIBS}${LIBS:+ }$element"
18253 fi
18254 done
18255
18256
18257fi
18258
7eda51e0
JF
18259else
18260
18261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ffi_call" >&5
18262$as_echo_n "checking for library containing ffi_call... " >&6; }
18263if ${ac_cv_search_ffi_call+:} false; then :
18264 $as_echo_n "(cached) " >&6
18265else
18266 ac_func_search_save_LIBS=$LIBS
18267cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18268/* end confdefs.h. */
18269
18270/* Override any GCC internal prototype to avoid an error.
18271 Use char because int might match the return type of a GCC
18272 builtin and then its argument prototype would still apply. */
18273#ifdef __cplusplus
18274extern "C"
18275#endif
18276char ffi_call ();
18277int
18278main ()
18279{
18280return ffi_call ();
18281 ;
18282 return 0;
18283}
18284_ACEOF
18285for ac_lib in '' ffi; do
18286 if test -z "$ac_lib"; then
18287 ac_res="none required"
18288 else
18289 ac_res=-l$ac_lib
18290 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18291 fi
18292 if ac_fn_cxx_try_link "$LINENO"; then :
18293 ac_cv_search_ffi_call=$ac_res
18294fi
18295rm -f core conftest.err conftest.$ac_objext \
18296 conftest$ac_exeext
18297 if ${ac_cv_search_ffi_call+:} false; then :
18298 break
18299fi
18300done
18301if ${ac_cv_search_ffi_call+:} false; then :
18302
18303else
18304 ac_cv_search_ffi_call=no
18305fi
18306rm conftest.$ac_ext
18307LIBS=$ac_func_search_save_LIBS
18308fi
18309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ffi_call" >&5
18310$as_echo "$ac_cv_search_ffi_call" >&6; }
18311ac_res=$ac_cv_search_ffi_call
18312if test "$ac_res" != no; then :
18313 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18314
18315fi
18316
18317 case $ac_cv_search_ffi_call in #(
18318 no) :
b66977f1
DWT
18319
18320
18321pkg_failed=no
7eda51e0
JF
18322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5
18323$as_echo_n "checking for LIBFFI... " >&6; }
b66977f1 18324
7eda51e0
JF
18325if test -n "$LIBFFI_CFLAGS"; then
18326 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS"
12833ad8
JF
18327 elif test -n "$PKG_CONFIG"; then
18328 if test -n "$PKG_CONFIG" && \
7eda51e0
JF
18329 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
18330 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
b66977f1
DWT
18331 ac_status=$?
18332 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18333 test $ac_status = 0; }; then
7eda51e0 18334 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null`
b66977f1
DWT
18335else
18336 pkg_failed=yes
18337fi
12833ad8
JF
18338 else
18339 pkg_failed=untried
b66977f1 18340fi
7eda51e0
JF
18341if test -n "$LIBFFI_LIBS"; then
18342 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS"
12833ad8
JF
18343 elif test -n "$PKG_CONFIG"; then
18344 if test -n "$PKG_CONFIG" && \
7eda51e0
JF
18345 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
18346 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
b66977f1
DWT
18347 ac_status=$?
18348 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18349 test $ac_status = 0; }; then
7eda51e0 18350 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null`
b66977f1
DWT
18351else
18352 pkg_failed=yes
18353fi
12833ad8
JF
18354 else
18355 pkg_failed=untried
b66977f1
DWT
18356fi
18357
18358
18359
18360if test $pkg_failed = yes; then
12833ad8
JF
18361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18362$as_echo "no" >&6; }
b66977f1
DWT
18363
18364if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18365 _pkg_short_errors_supported=yes
18366else
18367 _pkg_short_errors_supported=no
18368fi
18369 if test $_pkg_short_errors_supported = yes; then
7eda51e0 18370 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libffi" 2>&1`
b66977f1 18371 else
7eda51e0 18372 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libffi" 2>&1`
b66977f1
DWT
18373 fi
18374 # Put the nasty error message in config.log where it belongs
7eda51e0 18375 echo "$LIBFFI_PKG_ERRORS" >&5
b66977f1 18376
7eda51e0
JF
18377 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
18378elif test $pkg_failed = untried; then
18379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18380$as_echo "no" >&6; }
18381 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
b66977f1 18382else
7eda51e0
JF
18383 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS
18384 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS
18385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18386$as_echo "yes" >&6; }
b66977f1 18387
b66977f1
DWT
18388
18389
7eda51e0 18390 for element in `$PKG_CONFIG --cflags libffi`; do
b66977f1 18391 haveit=
7eda51e0 18392 for x in $CFLAGS; do
b66977f1
DWT
18393
18394 acl_save_prefix="$prefix"
18395 prefix="$acl_final_prefix"
18396 acl_save_exec_prefix="$exec_prefix"
18397 exec_prefix="$acl_final_exec_prefix"
18398 eval x=\"$x\"
18399 exec_prefix="$acl_save_exec_prefix"
18400 prefix="$acl_save_prefix"
18401
18402 if test "X$x" = "X$element"; then
18403 haveit=yes
18404 break
18405 fi
18406 done
18407 if test -z "$haveit"; then
7eda51e0 18408 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
b66977f1
DWT
18409 fi
18410 done
18411
66170b30 18412
7eda51e0
JF
18413 for element in `$PKG_CONFIG --cflags libffi`; do
18414 haveit=
18415 for x in $CXXFLAGS; do
b66977f1 18416
7eda51e0
JF
18417 acl_save_prefix="$prefix"
18418 prefix="$acl_final_prefix"
18419 acl_save_exec_prefix="$exec_prefix"
18420 exec_prefix="$acl_final_exec_prefix"
18421 eval x=\"$x\"
18422 exec_prefix="$acl_save_exec_prefix"
18423 prefix="$acl_save_prefix"
b66977f1 18424
7eda51e0
JF
18425 if test "X$x" = "X$element"; then
18426 haveit=yes
18427 break
18428 fi
18429 done
18430 if test -z "$haveit"; then
18431 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
18432 fi
18433 done
18434
18435
18436 for element in `$PKG_CONFIG --cflags libffi`; do
18437 haveit=
18438 for x in $OBJCCXXFLAGS; do
18439
18440 acl_save_prefix="$prefix"
18441 prefix="$acl_final_prefix"
18442 acl_save_exec_prefix="$exec_prefix"
18443 exec_prefix="$acl_final_exec_prefix"
18444 eval x=\"$x\"
18445 exec_prefix="$acl_save_exec_prefix"
18446 prefix="$acl_save_prefix"
18447
18448 if test "X$x" = "X$element"; then
18449 haveit=yes
18450 break
18451 fi
18452 done
18453 if test -z "$haveit"; then
18454 OBJCCXXFLAGS="${OBJCCXXFLAGS}${OBJCCXXFLAGS:+ }$element"
18455 fi
18456 done
18457
18458
18459
18460 for element in `$PKG_CONFIG --libs libffi`; do
18461 haveit=
18462 for x in $LIBS; do
18463
18464 acl_save_prefix="$prefix"
18465 prefix="$acl_final_prefix"
18466 acl_save_exec_prefix="$exec_prefix"
18467 exec_prefix="$acl_final_exec_prefix"
18468 eval x=\"$x\"
18469 exec_prefix="$acl_save_exec_prefix"
18470 prefix="$acl_save_prefix"
18471
18472 if test "X$x" = "X$element"; then
18473 haveit=yes
18474 break
18475 fi
18476 done
18477 if test -z "$haveit"; then
18478 LIBS="${LIBS}${LIBS:+ }$element"
18479 fi
18480 done
18481
18482
18483fi ;; #(
18484 *) :
18485 ;;
18486esac
18487
18488fi
296ee9a6
JF
18489 LTLIBFFI=$LIBS
18490 LIBS=$cy_save
18491
18492
7eda51e0
JF
18493
18494 ac_ext=mm
18495ac_cpp='$OBJCXXCPP $CPPFLAGS'
18496ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18497ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18498ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
18499
18500
18501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we really have Objective C++" >&5
18502$as_echo_n "checking if we really have Objective C++... " >&6; }
18503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18504/* end confdefs.h. */
18505
18506_ACEOF
18507if ac_fn_objcxx_try_compile "$LINENO"; then :
18508
18509 CY_OBJECTIVEC=1
18510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18511$as_echo "yes" >&6; }
18512
18513else
18514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12833ad8 18515$as_echo "no" >&6; }
7eda51e0
JF
18516fi
18517rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b66977f1 18518
7eda51e0 18519 if test "x$CY_OBJECTIVEC" = x1; then :
b66977f1 18520
7eda51e0
JF
18521
18522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework CoreFoundation" >&5
18523$as_echo_n "checking for framework CoreFoundation... " >&6; }
18524if ${ac_cv_framework_CoreFoundation+:} false; then :
b66977f1
DWT
18525 $as_echo_n "(cached) " >&6
18526else
18527
18528 ac_check_framework_save_LIBS=$LIBS
7eda51e0 18529 LIBS="-framework CoreFoundation $LIBS"
b66977f1
DWT
18530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18531/* end confdefs.h. */
18532
7eda51e0 18533 #include <CoreFoundation/CFBase.h>
b66977f1
DWT
18534
18535int
18536main ()
18537{
7eda51e0 18538CFAllocatorGetDefault();
b66977f1
DWT
18539 ;
18540 return 0;
18541}
18542_ACEOF
7eda51e0 18543if ac_fn_objcxx_try_link "$LINENO"; then :
b66977f1 18544
7eda51e0 18545 ac_cv_framework_CoreFoundation=yes
b66977f1
DWT
18546
18547else
7eda51e0 18548 ac_cv_framework_CoreFoundation=no
b66977f1
DWT
18549fi
18550rm -f core conftest.err conftest.$ac_objext \
18551 conftest$ac_exeext conftest.$ac_ext
18552 LIBS=$ac_check_framework_save_LIBS
18553
18554fi
7eda51e0
JF
18555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_CoreFoundation" >&5
18556$as_echo "$ac_cv_framework_CoreFoundation" >&6; }
18557 if test $ac_cv_framework_CoreFoundation = yes; then :
b66977f1
DWT
18558
18559
7eda51e0 18560 for element in "-framework CoreFoundation"; do
b66977f1
DWT
18561 haveit=
18562 for x in $LIBS; do
18563
18564 acl_save_prefix="$prefix"
18565 prefix="$acl_final_prefix"
18566 acl_save_exec_prefix="$exec_prefix"
18567 exec_prefix="$acl_final_exec_prefix"
18568 eval x=\"$x\"
18569 exec_prefix="$acl_save_exec_prefix"
18570 prefix="$acl_save_prefix"
18571
18572 if test "X$x" = "X$element"; then
18573 haveit=yes
18574 break
18575 fi
18576 done
18577 if test -z "$haveit"; then
18578 LIBS="${LIBS}${LIBS:+ }$element"
18579 fi
18580 done
18581
66170b30 18582
66170b30
JF
18583
18584
b66977f1 18585
b66977f1 18586
7eda51e0
JF
18587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework Foundation" >&5
18588$as_echo_n "checking for framework Foundation... " >&6; }
18589if ${ac_cv_framework_Foundation+:} false; then :
18590 $as_echo_n "(cached) " >&6
b66977f1 18591else
b66977f1 18592
7eda51e0
JF
18593 ac_check_framework_save_LIBS=$LIBS
18594 LIBS="-framework Foundation $LIBS"
18595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18596/* end confdefs.h. */
66170b30 18597
7eda51e0 18598 #include <Foundation/NSObject.h>
b66977f1 18599
7eda51e0
JF
18600int
18601main ()
18602{
18603[[NSObject alloc] init];
18604 ;
18605 return 0;
18606}
18607_ACEOF
18608if ac_fn_objcxx_try_link "$LINENO"; then :
b66977f1 18609
7eda51e0 18610 ac_cv_framework_Foundation=yes
b66977f1 18611
7eda51e0
JF
18612else
18613 ac_cv_framework_Foundation=no
18614fi
18615rm -f core conftest.err conftest.$ac_objext \
18616 conftest$ac_exeext conftest.$ac_ext
18617 LIBS=$ac_check_framework_save_LIBS
18618
18619fi
18620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Foundation" >&5
18621$as_echo "$ac_cv_framework_Foundation" >&6; }
18622 if test $ac_cv_framework_Foundation = yes; then :
b66977f1
DWT
18623
18624
7eda51e0 18625 for element in "-framework Foundation"; do
b66977f1
DWT
18626 haveit=
18627 for x in $LIBS; do
18628
18629 acl_save_prefix="$prefix"
18630 prefix="$acl_final_prefix"
18631 acl_save_exec_prefix="$exec_prefix"
18632 exec_prefix="$acl_final_exec_prefix"
18633 eval x=\"$x\"
18634 exec_prefix="$acl_save_exec_prefix"
18635 prefix="$acl_save_prefix"
18636
18637 if test "X$x" = "X$element"; then
18638 haveit=yes
18639 break
18640 fi
18641 done
18642 if test -z "$haveit"; then
18643 LIBS="${LIBS}${LIBS:+ }$element"
18644 fi
18645 done
18646
7eda51e0
JF
18647 cat >>confdefs.h <<_ACEOF
18648#define HAVE_FRAMEWORK_FOUNDATION 1
18649_ACEOF
18650
b66977f1
DWT
18651
18652fi
18653
7eda51e0
JF
18654
18655
18656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework WebKit" >&5
18657$as_echo_n "checking for framework WebKit... " >&6; }
18658if ${ac_cv_framework_WebKit+:} false; then :
18659 $as_echo_n "(cached) " >&6
b66977f1 18660else
b66977f1 18661
7eda51e0
JF
18662 ac_check_framework_save_LIBS=$LIBS
18663 LIBS="-framework WebKit $LIBS"
18664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18665/* end confdefs.h. */
66170b30 18666
7eda51e0 18667 #include <WebKit/WebScriptObject.h>
b66977f1 18668
7eda51e0
JF
18669int
18670main ()
18671{
18672[[WebScriptObject alloc] init];
18673 ;
18674 return 0;
18675}
18676_ACEOF
18677if ac_fn_objcxx_try_link "$LINENO"; then :
b66977f1 18678
7eda51e0 18679 ac_cv_framework_WebKit=yes
b66977f1 18680
7eda51e0
JF
18681else
18682 ac_cv_framework_WebKit=no
18683fi
18684rm -f core conftest.err conftest.$ac_objext \
18685 conftest$ac_exeext conftest.$ac_ext
18686 LIBS=$ac_check_framework_save_LIBS
18687
18688fi
18689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_WebKit" >&5
18690$as_echo "$ac_cv_framework_WebKit" >&6; }
18691 if test $ac_cv_framework_WebKit = yes; then :
b66977f1
DWT
18692
18693
7eda51e0 18694 for element in "-framework WebKit"; do
b66977f1
DWT
18695 haveit=
18696 for x in $LIBS; do
18697
18698 acl_save_prefix="$prefix"
18699 prefix="$acl_final_prefix"
18700 acl_save_exec_prefix="$exec_prefix"
18701 exec_prefix="$acl_final_exec_prefix"
18702 eval x=\"$x\"
18703 exec_prefix="$acl_save_exec_prefix"
18704 prefix="$acl_save_prefix"
18705
18706 if test "X$x" = "X$element"; then
18707 haveit=yes
18708 break
18709 fi
18710 done
18711 if test -z "$haveit"; then
18712 LIBS="${LIBS}${LIBS:+ }$element"
18713 fi
18714 done
18715
7eda51e0
JF
18716 cat >>confdefs.h <<_ACEOF
18717#define HAVE_FRAMEWORK_WEBKIT 1
18718_ACEOF
b66977f1 18719
5053a6d1 18720
7eda51e0 18721fi
b66977f1
DWT
18722
18723
7eda51e0 18724else
b66977f1 18725
b66977f1 18726
7eda51e0
JF
18727 for ac_prog in gnustep-config
18728do
18729 # Extract the first word of "$ac_prog", so it can be a program name with args.
18730set dummy $ac_prog; ac_word=$2
18731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18732$as_echo_n "checking for $ac_word... " >&6; }
18733if ${ac_cv_prog_GNUSTEP_CONFIG+:} false; then :
18734 $as_echo_n "(cached) " >&6
b66977f1 18735else
7eda51e0
JF
18736 if test -n "$GNUSTEP_CONFIG"; then
18737 ac_cv_prog_GNUSTEP_CONFIG="$GNUSTEP_CONFIG" # Let the user override the test.
b66977f1 18738else
7eda51e0
JF
18739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18740for as_dir in $PATH
18741do
18742 IFS=$as_save_IFS
18743 test -z "$as_dir" && as_dir=.
18744 for ac_exec_ext in '' $ac_executable_extensions; do
18745 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18746 ac_cv_prog_GNUSTEP_CONFIG="$ac_prog"
18747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18748 break 2
18749 fi
18750done
18751 done
18752IFS=$as_save_IFS
b66977f1 18753
b66977f1 18754fi
b66977f1 18755fi
7eda51e0
JF
18756GNUSTEP_CONFIG=$ac_cv_prog_GNUSTEP_CONFIG
18757if test -n "$GNUSTEP_CONFIG"; then
18758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_CONFIG" >&5
18759$as_echo "$GNUSTEP_CONFIG" >&6; }
b66977f1 18760else
7eda51e0 18761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12833ad8 18762$as_echo "no" >&6; }
b66977f1 18763fi
66170b30 18764
66170b30 18765
7eda51e0
JF
18766 test -n "$GNUSTEP_CONFIG" && break
18767done
b66977f1 18768
b66977f1 18769
7eda51e0 18770 if test "x$GNUSTEP_CONFIG" != x; then :
b66977f1 18771
b66977f1
DWT
18772
18773
7eda51e0 18774 for element in `$GNUSTEP_CONFIG --objc-flags`; do
b66977f1 18775 haveit=
7eda51e0 18776 for x in $OBJCXXFLAGS; do
b66977f1
DWT
18777
18778 acl_save_prefix="$prefix"
18779 prefix="$acl_final_prefix"
18780 acl_save_exec_prefix="$exec_prefix"
18781 exec_prefix="$acl_final_exec_prefix"
18782 eval x=\"$x\"
18783 exec_prefix="$acl_save_exec_prefix"
18784 prefix="$acl_save_prefix"
18785
18786 if test "X$x" = "X$element"; then
18787 haveit=yes
18788 break
18789 fi
18790 done
18791 if test -z "$haveit"; then
7eda51e0 18792 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
b66977f1
DWT
18793 fi
18794 done
18795
66170b30 18796
7eda51e0 18797 for element in `$GNUSTEP_CONFIG --base-libs`; do
b66977f1
DWT
18798 haveit=
18799 for x in $LIBS; do
18800
18801 acl_save_prefix="$prefix"
18802 prefix="$acl_final_prefix"
18803 acl_save_exec_prefix="$exec_prefix"
18804 exec_prefix="$acl_final_exec_prefix"
18805 eval x=\"$x\"
18806 exec_prefix="$acl_save_exec_prefix"
18807 prefix="$acl_save_prefix"
18808
18809 if test "X$x" = "X$element"; then
18810 haveit=yes
18811 break
18812 fi
18813 done
18814 if test -z "$haveit"; then
18815 LIBS="${LIBS}${LIBS:+ }$element"
18816 fi
18817 done
18818
66170b30 18819
7eda51e0
JF
18820else
18821 CY_OBJECTIVEC=0
66170b30 18822
7eda51e0 18823fi
b66977f1
DWT
18824
18825fi
18826
7eda51e0 18827fi
b66977f1 18828
7eda51e0
JF
18829 ac_ext=cpp
18830ac_cpp='$CXXCPP $CPPFLAGS'
18831ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18832ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18833ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
66170b30 18834
7eda51e0
JF
18835 ;; #(
18836 *) :
18837 ;;
18838esac
b66977f1 18839
7eda51e0
JF
18840 if test "x$CY_OBJECTIVEC" = x1; then
18841 CY_OBJECTIVEC_TRUE=
18842 CY_OBJECTIVEC_FALSE='#'
18843else
18844 CY_OBJECTIVEC_TRUE='#'
18845 CY_OBJECTIVEC_FALSE=
18846fi
b66977f1 18847
b66977f1 18848
b66977f1 18849
7eda51e0
JF
18850 cy_save=$LIBS
18851 LIBS=
b66977f1 18852
7eda51e0
JF
18853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
18854$as_echo_n "checking for a readline compatible library... " >&6; }
18855if ${ax_cv_lib_readline+:} false; then :
18856 $as_echo_n "(cached) " >&6
b66977f1 18857else
b66977f1 18858
7eda51e0
JF
18859 ORIG_LIBS="$LIBS"
18860 for readline_lib in readline edit editline; do
18861 for termcap_lib in "" termcap curses ncurses; do
18862 if test -z "$termcap_lib"; then
18863 TRY_LIB="-l$readline_lib"
b66977f1 18864 else
7eda51e0 18865 TRY_LIB="-l$readline_lib -l$termcap_lib"
b66977f1 18866 fi
7eda51e0
JF
18867 LIBS="$ORIG_LIBS $TRY_LIB"
18868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b66977f1
DWT
18869/* end confdefs.h. */
18870
7eda51e0
JF
18871/* Override any GCC internal prototype to avoid an error.
18872 Use char because int might match the return type of a GCC
18873 builtin and then its argument prototype would still apply. */
18874#ifdef __cplusplus
18875extern "C"
18876#endif
18877char readline ();
b66977f1
DWT
18878int
18879main ()
18880{
7eda51e0 18881return readline ();
b66977f1
DWT
18882 ;
18883 return 0;
18884}
18885_ACEOF
18886if ac_fn_cxx_try_link "$LINENO"; then :
7eda51e0 18887 ax_cv_lib_readline="$TRY_LIB"
b66977f1
DWT
18888fi
18889rm -f core conftest.err conftest.$ac_objext \
18890 conftest$ac_exeext conftest.$ac_ext
7eda51e0
JF
18891 if test -n "$ax_cv_lib_readline"; then
18892 break
18893 fi
18894 done
18895 if test -n "$ax_cv_lib_readline"; then
b66977f1
DWT
18896 break
18897 fi
18898 done
7eda51e0
JF
18899 if test -z "$ax_cv_lib_readline"; then
18900 ax_cv_lib_readline="no"
b66977f1 18901 fi
7eda51e0 18902 LIBS="$ORIG_LIBS"
b66977f1 18903
7eda51e0
JF
18904fi
18905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lib_readline" >&5
18906$as_echo "$ax_cv_lib_readline" >&6; }
66170b30 18907
7eda51e0
JF
18908 if test "$ax_cv_lib_readline" != "no"; then
18909 LIBS="$LIBS $ax_cv_lib_readline"
66170b30 18910
7eda51e0 18911$as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
66170b30 18912
7eda51e0
JF
18913 for ac_header in readline.h readline/readline.h
18914do :
18915 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18916ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18917if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18918 cat >>confdefs.h <<_ACEOF
18919#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18920_ACEOF
b66977f1
DWT
18921
18922fi
18923
7eda51e0 18924done
b66977f1 18925
7eda51e0
JF
18926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
18927$as_echo_n "checking whether readline supports history... " >&6; }
18928if ${ax_cv_lib_readline_history+:} false; then :
b66977f1
DWT
18929 $as_echo_n "(cached) " >&6
18930else
18931
7eda51e0
JF
18932 ax_cv_lib_readline_history="no"
18933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b66977f1
DWT
18934/* end confdefs.h. */
18935
7eda51e0
JF
18936/* Override any GCC internal prototype to avoid an error.
18937 Use char because int might match the return type of a GCC
18938 builtin and then its argument prototype would still apply. */
18939#ifdef __cplusplus
18940extern "C"
18941#endif
18942char add_history ();
b66977f1
DWT
18943int
18944main ()
18945{
7eda51e0 18946return add_history ();
b66977f1
DWT
18947 ;
18948 return 0;
18949}
18950_ACEOF
18951if ac_fn_cxx_try_link "$LINENO"; then :
7eda51e0 18952 ax_cv_lib_readline_history="yes"
b66977f1
DWT
18953fi
18954rm -f core conftest.err conftest.$ac_objext \
18955 conftest$ac_exeext conftest.$ac_ext
b66977f1
DWT
18956
18957fi
7eda51e0
JF
18958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lib_readline_history" >&5
18959$as_echo "$ax_cv_lib_readline_history" >&6; }
18960 if test "$ax_cv_lib_readline_history" = "yes"; then
b66977f1 18961
7eda51e0 18962$as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
b66977f1 18963
7eda51e0
JF
18964 for ac_header in history.h readline/history.h
18965do :
18966 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18967ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18968if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18969 cat >>confdefs.h <<_ACEOF
18970#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18971_ACEOF
b66977f1 18972
7eda51e0 18973fi
b66977f1 18974
7eda51e0 18975done
b66977f1 18976
7eda51e0
JF
18977 fi
18978 fi
66170b30 18979
7eda51e0
JF
18980 LTLIBREADLINE=$LIBS
18981 LIBS=$cy_save
66170b30
JF
18982
18983
7eda51e0
JF
18984case $ax_cv_lib_readline in #(
18985 no) :
18986 as_fn_error $? "missing \"libreadline\"" "$LINENO" 5 ;; #(
18987 *) :
18988 ;;
18989esac
b66977f1 18990
b66977f1 18991
7eda51e0
JF
18992 cy_save=$LIBS
18993 LIBS=
18994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cur_term" >&5
18995$as_echo_n "checking for library containing cur_term... " >&6; }
18996if ${ac_cv_search_cur_term+:} false; then :
18997 $as_echo_n "(cached) " >&6
b66977f1 18998else
7eda51e0
JF
18999 ac_func_search_save_LIBS=$LIBS
19000cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19001/* end confdefs.h. */
b66977f1 19002
7eda51e0
JF
19003/* Override any GCC internal prototype to avoid an error.
19004 Use char because int might match the return type of a GCC
19005 builtin and then its argument prototype would still apply. */
19006#ifdef __cplusplus
19007extern "C"
19008#endif
19009char cur_term ();
19010int
19011main ()
19012{
19013return cur_term ();
19014 ;
19015 return 0;
19016}
19017_ACEOF
19018for ac_lib in '' termcap; do
19019 if test -z "$ac_lib"; then
19020 ac_res="none required"
19021 else
19022 ac_res=-l$ac_lib
19023 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19024 fi
19025 if ac_fn_cxx_try_link "$LINENO"; then :
19026 ac_cv_search_cur_term=$ac_res
19027fi
19028rm -f core conftest.err conftest.$ac_objext \
19029 conftest$ac_exeext
19030 if ${ac_cv_search_cur_term+:} false; then :
19031 break
19032fi
19033done
19034if ${ac_cv_search_cur_term+:} false; then :
b66977f1 19035
7eda51e0
JF
19036else
19037 ac_cv_search_cur_term=no
19038fi
19039rm conftest.$ac_ext
19040LIBS=$ac_func_search_save_LIBS
19041fi
19042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cur_term" >&5
19043$as_echo "$ac_cv_search_cur_term" >&6; }
19044ac_res=$ac_cv_search_cur_term
19045if test "$ac_res" != no; then :
19046 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
b66977f1
DWT
19047
19048fi
19049
7eda51e0
JF
19050 LTLIBTERMCAP=$LIBS
19051 LIBS=$cy_save
b66977f1 19052
66170b30 19053
b66977f1 19054
7eda51e0
JF
19055ac_ext=c
19056ac_cpp='$CPP $CPPFLAGS'
19057ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19058ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19059ac_compiler_gnu=$ac_cv_c_compiler_gnu
19060
b66977f1 19061
7eda51e0
JF
19062 if test "X$prefix" = "XNONE"; then
19063 acl_final_prefix="$ac_default_prefix"
19064 else
19065 acl_final_prefix="$prefix"
19066 fi
19067 if test "X$exec_prefix" = "XNONE"; then
19068 acl_final_exec_prefix='${prefix}'
19069 else
19070 acl_final_exec_prefix="$exec_prefix"
19071 fi
b66977f1
DWT
19072 acl_save_prefix="$prefix"
19073 prefix="$acl_final_prefix"
7eda51e0 19074 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
b66977f1
DWT
19075 prefix="$acl_save_prefix"
19076
b66977f1
DWT
19077
19078
7eda51e0
JF
19079# Check whether --with-gnu-ld was given.
19080if test "${with_gnu_ld+set}" = set; then :
19081 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
19082else
19083 with_gnu_ld=no
19084fi
b66977f1 19085
7eda51e0
JF
19086# Prepare PATH_SEPARATOR.
19087# The user is always right.
19088if test "${PATH_SEPARATOR+set}" != set; then
19089 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
19090 # contains only /bin. Note that ksh looks also at the FPATH variable,
19091 # so we have to set that as well for the test.
19092 PATH_SEPARATOR=:
19093 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
19094 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
19095 || PATH_SEPARATOR=';'
19096 }
19097fi
b66977f1 19098
7eda51e0
JF
19099ac_prog=ld
19100if test "$GCC" = yes; then
19101 # Check if gcc -print-prog-name=ld gives a path.
19102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
19103$as_echo_n "checking for ld used by $CC... " >&6; }
19104 case $host in
19105 *-*-mingw*)
19106 # gcc leaves a trailing carriage return which upsets mingw
19107 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
19108 *)
19109 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
19110 esac
19111 case $ac_prog in
19112 # Accept absolute paths.
19113 [\\/]* | ?:[\\/]*)
19114 re_direlt='/[^/][^/]*/\.\./'
19115 # Canonicalize the pathname of ld
19116 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
19117 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
19118 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
19119 done
19120 test -z "$LD" && LD="$ac_prog"
19121 ;;
19122 "")
19123 # If it fails, then pretend we aren't using GCC.
19124 ac_prog=ld
19125 ;;
19126 *)
19127 # If it is relative, then search for the first ld in PATH.
19128 with_gnu_ld=unknown
19129 ;;
19130 esac
19131elif test "$with_gnu_ld" = yes; then
19132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
19133$as_echo_n "checking for GNU ld... " >&6; }
19134else
19135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
19136$as_echo_n "checking for non-GNU ld... " >&6; }
19137fi
19138if ${acl_cv_path_LD+:} false; then :
19139 $as_echo_n "(cached) " >&6
19140else
19141 if test -z "$LD"; then
19142 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
19143 for ac_dir in $PATH; do
19144 IFS="$acl_save_ifs"
19145 test -z "$ac_dir" && ac_dir=.
19146 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
19147 acl_cv_path_LD="$ac_dir/$ac_prog"
19148 # Check to see if the program is GNU ld. I'd rather use --version,
19149 # but apparently some variants of GNU ld only accept -v.
19150 # Break only if it was the GNU/non-GNU ld that we prefer.
19151 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
19152 *GNU* | *'with BFD'*)
19153 test "$with_gnu_ld" != no && break
19154 ;;
19155 *)
19156 test "$with_gnu_ld" != yes && break
19157 ;;
19158 esac
b66977f1
DWT
19159 fi
19160 done
7eda51e0
JF
19161 IFS="$acl_save_ifs"
19162else
19163 acl_cv_path_LD="$LD" # Let the user override the test with a path.
b66977f1 19164fi
66170b30
JF
19165fi
19166
7eda51e0
JF
19167LD="$acl_cv_path_LD"
19168if test -n "$LD"; then
19169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
19170$as_echo "$LD" >&6; }
19171else
19172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19173$as_echo "no" >&6; }
19174fi
19175test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
19176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
19177$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
19178if ${acl_cv_prog_gnu_ld+:} false; then :
19179 $as_echo_n "(cached) " >&6
19180else
19181 # I'd rather use --version here, but apparently some GNU lds only accept -v.
19182case `$LD -v 2>&1 </dev/null` in
19183*GNU* | *'with BFD'*)
19184 acl_cv_prog_gnu_ld=yes
19185 ;;
19186*)
19187 acl_cv_prog_gnu_ld=no
19188 ;;
19189esac
19190fi
19191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
19192$as_echo "$acl_cv_prog_gnu_ld" >&6; }
19193with_gnu_ld=$acl_cv_prog_gnu_ld
66170b30
JF
19194
19195
66170b30 19196
66170b30 19197
7eda51e0
JF
19198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
19199$as_echo_n "checking for shared library run path origin... " >&6; }
19200if ${acl_cv_rpath+:} false; then :
19201 $as_echo_n "(cached) " >&6
19202else
66170b30 19203
7eda51e0
JF
19204 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
19205 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
19206 . ./conftest.sh
19207 rm -f ./conftest.sh
19208 acl_cv_rpath=done
66170b30 19209
7eda51e0
JF
19210fi
19211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
19212$as_echo "$acl_cv_rpath" >&6; }
19213 wl="$acl_cv_wl"
19214 acl_libext="$acl_cv_libext"
19215 acl_shlibext="$acl_cv_shlibext"
19216 acl_libname_spec="$acl_cv_libname_spec"
19217 acl_library_names_spec="$acl_cv_library_names_spec"
19218 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
19219 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
19220 acl_hardcode_direct="$acl_cv_hardcode_direct"
19221 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
19222 # Check whether --enable-rpath was given.
19223if test "${enable_rpath+set}" = set; then :
19224 enableval=$enable_rpath; :
19225else
19226 enable_rpath=yes
19227fi
66170b30 19228
66170b30 19229
66170b30 19230
66170b30 19231
7eda51e0
JF
19232 acl_libdirstem=lib
19233 acl_libdirstem2=
19234 case "$host_os" in
19235 solaris*)
19236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
19237$as_echo_n "checking for 64-bit host... " >&6; }
19238if ${gl_cv_solaris_64bit+:} false; then :
19239 $as_echo_n "(cached) " >&6
19240else
19241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19242/* end confdefs.h. */
66170b30 19243
7eda51e0
JF
19244#ifdef _LP64
19245sixtyfour bits
19246#endif
66170b30 19247
7eda51e0
JF
19248_ACEOF
19249if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19250 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
19251 gl_cv_solaris_64bit=yes
66170b30 19252else
7eda51e0
JF
19253 gl_cv_solaris_64bit=no
19254fi
19255rm -f conftest*
66170b30 19256
66170b30 19257
7eda51e0
JF
19258fi
19259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
19260$as_echo "$gl_cv_solaris_64bit" >&6; }
19261 if test $gl_cv_solaris_64bit = yes; then
19262 acl_libdirstem=lib/64
19263 case "$host_cpu" in
19264 sparc*) acl_libdirstem2=lib/sparcv9 ;;
19265 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
19266 esac
66170b30 19267 fi
7eda51e0
JF
19268 ;;
19269 *)
19270 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
19271 if test -n "$searchpath"; then
19272 acl_save_IFS="${IFS= }"; IFS=":"
19273 for searchdir in $searchpath; do
19274 if test -d "$searchdir"; then
19275 case "$searchdir" in
19276 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
19277 */../ | */.. )
19278 # Better ignore directories of this form. They are misleading.
19279 ;;
19280 *) searchdir=`cd "$searchdir" && pwd`
19281 case "$searchdir" in
19282 */lib64 ) acl_libdirstem=lib64 ;;
19283 esac ;;
19284 esac
19285 fi
19286 done
19287 IFS="$acl_save_IFS"
19288 fi
19289 ;;
19290 esac
19291 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
5053a6d1 19292
9c60689e 19293
5053a6d1 19294
66170b30 19295
66170b30
JF
19296
19297
7eda51e0
JF
19298
19299
19300
19301
19302
19303
19304 use_additional=yes
66170b30
JF
19305
19306 acl_save_prefix="$prefix"
19307 prefix="$acl_final_prefix"
19308 acl_save_exec_prefix="$exec_prefix"
19309 exec_prefix="$acl_final_exec_prefix"
7eda51e0
JF
19310
19311 eval additional_includedir=\"$includedir\"
19312 eval additional_libdir=\"$libdir\"
19313
66170b30
JF
19314 exec_prefix="$acl_save_exec_prefix"
19315 prefix="$acl_save_prefix"
19316
a243b558 19317
7eda51e0
JF
19318# Check whether --with-libiconv-prefix was given.
19319if test "${with_libiconv_prefix+set}" = set; then :
19320 withval=$with_libiconv_prefix;
19321 if test "X$withval" = "Xno"; then
19322 use_additional=no
19323 else
19324 if test "X$withval" = "X"; then
a243b558
JF
19325
19326 acl_save_prefix="$prefix"
19327 prefix="$acl_final_prefix"
19328 acl_save_exec_prefix="$exec_prefix"
19329 exec_prefix="$acl_final_exec_prefix"
7eda51e0
JF
19330
19331 eval additional_includedir=\"$includedir\"
19332 eval additional_libdir=\"$libdir\"
19333
a243b558
JF
19334 exec_prefix="$acl_save_exec_prefix"
19335 prefix="$acl_save_prefix"
19336
7eda51e0
JF
19337 else
19338 additional_includedir="$withval/include"
19339 additional_libdir="$withval/$acl_libdirstem"
19340 if test "$acl_libdirstem2" != "$acl_libdirstem" \
19341 && ! test -d "$withval/$acl_libdirstem"; then
19342 additional_libdir="$withval/$acl_libdirstem2"
19343 fi
a243b558 19344 fi
a243b558 19345 fi
5053a6d1 19346
e5cca37d
DWT
19347fi
19348
7eda51e0
JF
19349 LIBICONV=
19350 LTLIBICONV=
19351 INCICONV=
19352 LIBICONV_PREFIX=
19353 HAVE_LIBICONV=
19354 rpathdirs=
19355 ltrpathdirs=
19356 names_already_handled=
19357 names_next_round='iconv '
19358 while test -n "$names_next_round"; do
19359 names_this_round="$names_next_round"
19360 names_next_round=
19361 for name in $names_this_round; do
19362 already_handled=
19363 for n in $names_already_handled; do
19364 if test "$n" = "$name"; then
19365 already_handled=yes
19366 break
9c60689e 19367 fi
7eda51e0
JF
19368 done
19369 if test -z "$already_handled"; then
19370 names_already_handled="$names_already_handled $name"
19371 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
19372 eval value=\"\$HAVE_LIB$uppername\"
19373 if test -n "$value"; then
19374 if test "$value" = yes; then
19375 eval value=\"\$LIB$uppername\"
19376 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
19377 eval value=\"\$LTLIB$uppername\"
19378 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
19379 else
19380 :
19381 fi
19382 else
19383 found_dir=
19384 found_la=
19385 found_so=
19386 found_a=
19387 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
19388 if test -n "$acl_shlibext"; then
19389 shrext=".$acl_shlibext" # typically: shrext=.so
19390 else
19391 shrext=
19392 fi
19393 if test $use_additional = yes; then
19394 dir="$additional_libdir"
19395 if test -n "$acl_shlibext"; then
19396 if test -f "$dir/$libname$shrext"; then
19397 found_dir="$dir"
19398 found_so="$dir/$libname$shrext"
19399 else
19400 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
19401 ver=`(cd "$dir" && \
19402 for f in "$libname$shrext".*; do echo "$f"; done \
19403 | sed -e "s,^$libname$shrext\\\\.,," \
19404 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
19405 | sed 1q ) 2>/dev/null`
19406 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
19407 found_dir="$dir"
19408 found_so="$dir/$libname$shrext.$ver"
19409 fi
19410 else
19411 eval library_names=\"$acl_library_names_spec\"
19412 for f in $library_names; do
19413 if test -f "$dir/$f"; then
19414 found_dir="$dir"
19415 found_so="$dir/$f"
19416 break
19417 fi
19418 done
19419 fi
19420 fi
19421 fi
19422 if test "X$found_dir" = "X"; then
19423 if test -f "$dir/$libname.$acl_libext"; then
19424 found_dir="$dir"
19425 found_a="$dir/$libname.$acl_libext"
19426 fi
19427 fi
19428 if test "X$found_dir" != "X"; then
19429 if test -f "$dir/$libname.la"; then
19430 found_la="$dir/$libname.la"
19431 fi
19432 fi
19433 fi
19434 if test "X$found_dir" = "X"; then
19435 for x in $LDFLAGS $LTLIBICONV; do
e5cca37d
DWT
19436
19437 acl_save_prefix="$prefix"
19438 prefix="$acl_final_prefix"
19439 acl_save_exec_prefix="$exec_prefix"
19440 exec_prefix="$acl_final_exec_prefix"
19441 eval x=\"$x\"
19442 exec_prefix="$acl_save_exec_prefix"
19443 prefix="$acl_save_prefix"
19444
7eda51e0
JF
19445 case "$x" in
19446 -L*)
19447 dir=`echo "X$x" | sed -e 's/^X-L//'`
19448 if test -n "$acl_shlibext"; then
19449 if test -f "$dir/$libname$shrext"; then
19450 found_dir="$dir"
19451 found_so="$dir/$libname$shrext"
19452 else
19453 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
19454 ver=`(cd "$dir" && \
19455 for f in "$libname$shrext".*; do echo "$f"; done \
19456 | sed -e "s,^$libname$shrext\\\\.,," \
19457 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
19458 | sed 1q ) 2>/dev/null`
19459 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
19460 found_dir="$dir"
19461 found_so="$dir/$libname$shrext.$ver"
19462 fi
19463 else
19464 eval library_names=\"$acl_library_names_spec\"
19465 for f in $library_names; do
19466 if test -f "$dir/$f"; then
19467 found_dir="$dir"
19468 found_so="$dir/$f"
19469 break
19470 fi
19471 done
19472 fi
19473 fi
19474 fi
19475 if test "X$found_dir" = "X"; then
19476 if test -f "$dir/$libname.$acl_libext"; then
19477 found_dir="$dir"
19478 found_a="$dir/$libname.$acl_libext"
19479 fi
19480 fi
19481 if test "X$found_dir" != "X"; then
19482 if test -f "$dir/$libname.la"; then
19483 found_la="$dir/$libname.la"
19484 fi
19485 fi
19486 ;;
19487 esac
19488 if test "X$found_dir" != "X"; then
19489 break
19490 fi
19491 done
19492 fi
19493 if test "X$found_dir" != "X"; then
19494 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
19495 if test "X$found_so" != "X"; then
19496 if test "$enable_rpath" = no \
19497 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
19498 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
19499 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
19500 else
19501 haveit=
19502 for x in $ltrpathdirs; do
19503 if test "X$x" = "X$found_dir"; then
19504 haveit=yes
19505 break
19506 fi
19507 done
19508 if test -z "$haveit"; then
19509 ltrpathdirs="$ltrpathdirs $found_dir"
19510 fi
19511 if test "$acl_hardcode_direct" = yes; then
19512 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
19513 else
19514 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
19515 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
19516 haveit=
19517 for x in $rpathdirs; do
19518 if test "X$x" = "X$found_dir"; then
19519 haveit=yes
19520 break
19521 fi
19522 done
19523 if test -z "$haveit"; then
19524 rpathdirs="$rpathdirs $found_dir"
19525 fi
19526 else
19527 haveit=
19528 for x in $LDFLAGS $LIBICONV; do
e5cca37d
DWT
19529
19530 acl_save_prefix="$prefix"
19531 prefix="$acl_final_prefix"
19532 acl_save_exec_prefix="$exec_prefix"
19533 exec_prefix="$acl_final_exec_prefix"
19534 eval x=\"$x\"
19535 exec_prefix="$acl_save_exec_prefix"
19536 prefix="$acl_save_prefix"
19537
7eda51e0
JF
19538 if test "X$x" = "X-L$found_dir"; then
19539 haveit=yes
19540 break
19541 fi
19542 done
19543 if test -z "$haveit"; then
19544 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
19545 fi
19546 if test "$acl_hardcode_minus_L" != no; then
19547 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
19548 else
19549 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
19550 fi
19551 fi
19552 fi
19553 fi
19554 else
19555 if test "X$found_a" != "X"; then
19556 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
19557 else
19558 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
19559 fi
19560 fi
19561 additional_includedir=
19562 case "$found_dir" in
19563 */$acl_libdirstem | */$acl_libdirstem/)
19564 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
19565 if test "$name" = 'iconv'; then
19566 LIBICONV_PREFIX="$basedir"
19567 fi
19568 additional_includedir="$basedir/include"
19569 ;;
19570 */$acl_libdirstem2 | */$acl_libdirstem2/)
19571 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
19572 if test "$name" = 'iconv'; then
19573 LIBICONV_PREFIX="$basedir"
19574 fi
19575 additional_includedir="$basedir/include"
19576 ;;
19577 esac
19578 if test "X$additional_includedir" != "X"; then
19579 if test "X$additional_includedir" != "X/usr/include"; then
19580 haveit=
19581 if test "X$additional_includedir" = "X/usr/local/include"; then
19582 if test -n "$GCC"; then
19583 case $host_os in
19584 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
19585 esac
19586 fi
19587 fi
19588 if test -z "$haveit"; then
19589 for x in $CPPFLAGS $INCICONV; do
3fd51f51
DWT
19590
19591 acl_save_prefix="$prefix"
19592 prefix="$acl_final_prefix"
19593 acl_save_exec_prefix="$exec_prefix"
19594 exec_prefix="$acl_final_exec_prefix"
19595 eval x=\"$x\"
19596 exec_prefix="$acl_save_exec_prefix"
19597 prefix="$acl_save_prefix"
19598
7eda51e0
JF
19599 if test "X$x" = "X-I$additional_includedir"; then
19600 haveit=yes
19601 break
19602 fi
19603 done
19604 if test -z "$haveit"; then
19605 if test -d "$additional_includedir"; then
19606 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
19607 fi
19608 fi
19609 fi
19610 fi
19611 fi
19612 if test -n "$found_la"; then
19613 save_libdir="$libdir"
19614 case "$found_la" in
19615 */* | *\\*) . "$found_la" ;;
19616 *) . "./$found_la" ;;
19617 esac
19618 libdir="$save_libdir"
19619 for dep in $dependency_libs; do
19620 case "$dep" in
19621 -L*)
19622 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
19623 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
19624 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
19625 haveit=
19626 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
19627 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
19628 if test -n "$GCC"; then
19629 case $host_os in
19630 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
19631 esac
19632 fi
19633 fi
19634 if test -z "$haveit"; then
19635 haveit=
19636 for x in $LDFLAGS $LIBICONV; do
3fd51f51
DWT
19637
19638 acl_save_prefix="$prefix"
19639 prefix="$acl_final_prefix"
19640 acl_save_exec_prefix="$exec_prefix"
19641 exec_prefix="$acl_final_exec_prefix"
19642 eval x=\"$x\"
19643 exec_prefix="$acl_save_exec_prefix"
19644 prefix="$acl_save_prefix"
19645
7eda51e0
JF
19646 if test "X$x" = "X-L$additional_libdir"; then
19647 haveit=yes
19648 break
19649 fi
19650 done
19651 if test -z "$haveit"; then
19652 if test -d "$additional_libdir"; then
19653 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
19654 fi
19655 fi
19656 haveit=
19657 for x in $LDFLAGS $LTLIBICONV; do
632b71ea
DWT
19658
19659 acl_save_prefix="$prefix"
19660 prefix="$acl_final_prefix"
19661 acl_save_exec_prefix="$exec_prefix"
19662 exec_prefix="$acl_final_exec_prefix"
19663 eval x=\"$x\"
19664 exec_prefix="$acl_save_exec_prefix"
19665 prefix="$acl_save_prefix"
19666
7eda51e0
JF
19667 if test "X$x" = "X-L$additional_libdir"; then
19668 haveit=yes
19669 break
19670 fi
19671 done
19672 if test -z "$haveit"; then
19673 if test -d "$additional_libdir"; then
19674 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
19675 fi
19676 fi
19677 fi
19678 fi
19679 ;;
19680 -R*)
19681 dir=`echo "X$dep" | sed -e 's/^X-R//'`
19682 if test "$enable_rpath" != no; then
19683 haveit=
19684 for x in $rpathdirs; do
19685 if test "X$x" = "X$dir"; then
19686 haveit=yes
19687 break
19688 fi
19689 done
19690 if test -z "$haveit"; then
19691 rpathdirs="$rpathdirs $dir"
19692 fi
19693 haveit=
19694 for x in $ltrpathdirs; do
19695 if test "X$x" = "X$dir"; then
19696 haveit=yes
19697 break
19698 fi
19699 done
19700 if test -z "$haveit"; then
19701 ltrpathdirs="$ltrpathdirs $dir"
19702 fi
19703 fi
19704 ;;
19705 -l*)
19706 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
19707 ;;
19708 *.la)
19709 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
19710 ;;
19711 *)
19712 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
19713 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
19714 ;;
19715 esac
19716 done
19717 fi
19718 else
19719 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
19720 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
19721 fi
19722 fi
632b71ea
DWT
19723 fi
19724 done
632b71ea 19725 done
7eda51e0
JF
19726 if test "X$rpathdirs" != "X"; then
19727 if test -n "$acl_hardcode_libdir_separator"; then
19728 alldirs=
19729 for found_dir in $rpathdirs; do
19730 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
19731 done
19732 acl_save_libdir="$libdir"
19733 libdir="$alldirs"
19734 eval flag=\"$acl_hardcode_libdir_flag_spec\"
19735 libdir="$acl_save_libdir"
19736 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
19737 else
19738 for found_dir in $rpathdirs; do
19739 acl_save_libdir="$libdir"
19740 libdir="$found_dir"
19741 eval flag=\"$acl_hardcode_libdir_flag_spec\"
19742 libdir="$acl_save_libdir"
19743 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
19744 done
19745 fi
19746 fi
19747 if test "X$ltrpathdirs" != "X"; then
19748 for found_dir in $ltrpathdirs; do
19749 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
19750 done
19751 fi
632b71ea 19752
632b71ea 19753
632b71ea 19754
632b71ea
DWT
19755
19756
66170b30 19757
a667869d 19758
632b71ea 19759
632b71ea 19760
632b71ea 19761
a667869d 19762
a667869d 19763
7eda51e0 19764 am_save_CPPFLAGS="$CPPFLAGS"
a667869d 19765
7eda51e0 19766 for element in $INCICONV; do
632b71ea 19767 haveit=
7eda51e0 19768 for x in $CPPFLAGS; do
a667869d 19769
632b71ea
DWT
19770 acl_save_prefix="$prefix"
19771 prefix="$acl_final_prefix"
19772 acl_save_exec_prefix="$exec_prefix"
19773 exec_prefix="$acl_final_exec_prefix"
19774 eval x=\"$x\"
19775 exec_prefix="$acl_save_exec_prefix"
19776 prefix="$acl_save_prefix"
19777
19778 if test "X$x" = "X$element"; then
19779 haveit=yes
19780 break
19781 fi
19782 done
19783 if test -z "$haveit"; then
7eda51e0 19784 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
632b71ea
DWT
19785 fi
19786 done
19787
5053a6d1 19788
7eda51e0
JF
19789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
19790$as_echo_n "checking for iconv... " >&6; }
19791if ${am_cv_func_iconv+:} false; then :
5053a6d1 19792 $as_echo_n "(cached) " >&6
a667869d 19793else
632b71ea 19794
7eda51e0
JF
19795 am_cv_func_iconv="no, consider installing GNU libiconv"
19796 am_cv_lib_iconv=no
19797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5053a6d1 19798/* end confdefs.h. */
632b71ea 19799
7eda51e0
JF
19800#include <stdlib.h>
19801#include <iconv.h>
632b71ea 19802
5053a6d1
DWT
19803int
19804main ()
19805{
7eda51e0
JF
19806iconv_t cd = iconv_open("","");
19807 iconv(cd,NULL,NULL,NULL,NULL);
19808 iconv_close(cd);
5053a6d1
DWT
19809 ;
19810 return 0;
19811}
19812_ACEOF
7eda51e0
JF
19813if ac_fn_c_try_link "$LINENO"; then :
19814 am_cv_func_iconv=yes
5053a6d1
DWT
19815fi
19816rm -f core conftest.err conftest.$ac_objext \
19817 conftest$ac_exeext conftest.$ac_ext
7eda51e0
JF
19818 if test "$am_cv_func_iconv" != yes; then
19819 am_save_LIBS="$LIBS"
19820 LIBS="$LIBS $LIBICONV"
19821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19822/* end confdefs.h. */
5053a6d1 19823
7eda51e0
JF
19824#include <stdlib.h>
19825#include <iconv.h>
5053a6d1 19826
058f1bc8
DWT
19827int
19828main ()
19829{
7eda51e0
JF
19830iconv_t cd = iconv_open("","");
19831 iconv(cd,NULL,NULL,NULL,NULL);
19832 iconv_close(cd);
058f1bc8
DWT
19833 ;
19834 return 0;
19835}
19836_ACEOF
7eda51e0
JF
19837if ac_fn_c_try_link "$LINENO"; then :
19838 am_cv_lib_iconv=yes
19839 am_cv_func_iconv=yes
058f1bc8
DWT
19840fi
19841rm -f core conftest.err conftest.$ac_objext \
19842 conftest$ac_exeext conftest.$ac_ext
7eda51e0 19843 LIBS="$am_save_LIBS"
058f1bc8 19844 fi
a667869d 19845
a667869d 19846fi
7eda51e0
JF
19847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
19848$as_echo "$am_cv_func_iconv" >&6; }
19849 if test "$am_cv_func_iconv" = yes; then
19850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
19851$as_echo_n "checking for working iconv... " >&6; }
19852if ${am_cv_func_iconv_works+:} false; then :
19853 $as_echo_n "(cached) " >&6
19854else
5053a6d1 19855
7eda51e0
JF
19856 am_save_LIBS="$LIBS"
19857 if test $am_cv_lib_iconv = yes; then
19858 LIBS="$LIBS $LIBICONV"
19859 fi
19860 if test "$cross_compiling" = yes; then :
058f1bc8 19861
7eda51e0
JF
19862 case "$host_os" in
19863 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
19864 *) am_cv_func_iconv_works="guessing yes" ;;
19865 esac
058f1bc8 19866
058f1bc8 19867else
7eda51e0 19868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
058f1bc8
DWT
19869/* end confdefs.h. */
19870
7eda51e0
JF
19871#include <iconv.h>
19872#include <string.h>
19873int main ()
a243b558 19874{
7eda51e0
JF
19875 int result = 0;
19876 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
19877 returns. */
19878 {
19879 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
19880 if (cd_utf8_to_88591 != (iconv_t)(-1))
19881 {
19882 static const char input[] = "\342\202\254"; /* EURO SIGN */
19883 char buf[10];
19884 const char *inptr = input;
19885 size_t inbytesleft = strlen (input);
19886 char *outptr = buf;
19887 size_t outbytesleft = sizeof (buf);
19888 size_t res = iconv (cd_utf8_to_88591,
19889 (char **) &inptr, &inbytesleft,
19890 &outptr, &outbytesleft);
19891 if (res == 0)
19892 result |= 1;
19893 iconv_close (cd_utf8_to_88591);
19894 }
19895 }
19896 /* Test against Solaris 10 bug: Failures are not distinguishable from
19897 successful returns. */
19898 {
19899 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
19900 if (cd_ascii_to_88591 != (iconv_t)(-1))
19901 {
19902 static const char input[] = "\263";
19903 char buf[10];
19904 const char *inptr = input;
19905 size_t inbytesleft = strlen (input);
19906 char *outptr = buf;
19907 size_t outbytesleft = sizeof (buf);
19908 size_t res = iconv (cd_ascii_to_88591,
19909 (char **) &inptr, &inbytesleft,
19910 &outptr, &outbytesleft);
19911 if (res == 0)
19912 result |= 2;
19913 iconv_close (cd_ascii_to_88591);
19914 }
19915 }
19916 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
19917 {
19918 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
19919 if (cd_88591_to_utf8 != (iconv_t)(-1))
19920 {
19921 static const char input[] = "\304";
19922 static char buf[2] = { (char)0xDE, (char)0xAD };
19923 const char *inptr = input;
19924 size_t inbytesleft = 1;
19925 char *outptr = buf;
19926 size_t outbytesleft = 1;
19927 size_t res = iconv (cd_88591_to_utf8,
19928 (char **) &inptr, &inbytesleft,
19929 &outptr, &outbytesleft);
19930 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
19931 result |= 4;
19932 iconv_close (cd_88591_to_utf8);
19933 }
19934 }
19935#if 0 /* This bug could be worked around by the caller. */
19936 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
19937 {
19938 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
19939 if (cd_88591_to_utf8 != (iconv_t)(-1))
19940 {
19941 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
19942 char buf[50];
19943 const char *inptr = input;
19944 size_t inbytesleft = strlen (input);
19945 char *outptr = buf;
19946 size_t outbytesleft = sizeof (buf);
19947 size_t res = iconv (cd_88591_to_utf8,
19948 (char **) &inptr, &inbytesleft,
19949 &outptr, &outbytesleft);
19950 if ((int)res > 0)
19951 result |= 8;
19952 iconv_close (cd_88591_to_utf8);
19953 }
19954 }
19955#endif
19956 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
19957 provided. */
19958 if (/* Try standardized names. */
19959 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
19960 /* Try IRIX, OSF/1 names. */
19961 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
19962 /* Try AIX names. */
19963 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
19964 /* Try HP-UX names. */
19965 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
19966 result |= 16;
19967 return result;
19968}
19969_ACEOF
19970if ac_fn_c_try_run "$LINENO"; then :
19971 am_cv_func_iconv_works=yes
19972else
19973 am_cv_func_iconv_works=no
19974fi
19975rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19976 conftest.$ac_objext conftest.beam conftest.$ac_ext
19977fi
058f1bc8 19978
7eda51e0 19979 LIBS="$am_save_LIBS"
058f1bc8 19980
7eda51e0
JF
19981fi
19982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
19983$as_echo "$am_cv_func_iconv_works" >&6; }
19984 case "$am_cv_func_iconv_works" in
19985 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
19986 *) am_func_iconv=yes ;;
19987 esac
19988 else
19989 am_func_iconv=no am_cv_lib_iconv=no
19990 fi
19991 if test "$am_func_iconv" = yes; then
058f1bc8 19992
7eda51e0 19993$as_echo "#define HAVE_ICONV 1" >>confdefs.h
058f1bc8 19994
058f1bc8 19995 fi
7eda51e0
JF
19996 if test "$am_cv_lib_iconv" = yes; then
19997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
19998$as_echo_n "checking how to link with libiconv... " >&6; }
19999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
20000$as_echo "$LIBICONV" >&6; }
20001 else
20002 CPPFLAGS="$am_save_CPPFLAGS"
20003 LIBICONV=
20004 LTLIBICONV=
058f1bc8
DWT
20005 fi
20006
20007
20008
7eda51e0
JF
20009 if test "$am_cv_func_iconv" = yes; then
20010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
20011$as_echo_n "checking for iconv declaration... " >&6; }
20012 if ${am_cv_proto_iconv+:} false; then :
20013 $as_echo_n "(cached) " >&6
20014else
20015
20016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20017/* end confdefs.h. */
20018
20019#include <stdlib.h>
20020#include <iconv.h>
20021extern
20022#ifdef __cplusplus
20023"C"
20024#endif
20025#if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
20026size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
20027#else
20028size_t iconv();
20029#endif
20030
20031int
20032main ()
20033{
20034
20035 ;
20036 return 0;
20037}
20038_ACEOF
20039if ac_fn_c_try_compile "$LINENO"; then :
20040 am_cv_proto_iconv_arg1=""
20041else
20042 am_cv_proto_iconv_arg1="const"
20043fi
20044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20045 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);"
20046fi
058f1bc8 20047
7eda51e0
JF
20048 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
20049 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
20050 $am_cv_proto_iconv" >&5
20051$as_echo "
20052 $am_cv_proto_iconv" >&6; }
058f1bc8 20053
7eda51e0
JF
20054cat >>confdefs.h <<_ACEOF
20055#define ICONV_CONST $am_cv_proto_iconv_arg1
20056_ACEOF
058f1bc8
DWT
20057
20058
7eda51e0 20059 fi
058f1bc8 20060
058f1bc8
DWT
20061case $am_cv_func_iconv in #(
20062 yes) :
20063 ;; #(
20064 *) :
66170b30 20065 as_fn_error $? "missing \"libiconv\"" "$LINENO" 5 ;;
058f1bc8
DWT
20066esac
20067ac_ext=cpp
20068ac_cpp='$CXXCPP $CPPFLAGS'
20069ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20070ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20071ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20072
66170b30
JF
20073
20074
9777bd50
JF
20075SO=$acl_shlibext
20076
e1cce270 20077
7eda51e0
JF
20078if test "x$CY_EXECUTE" = x1; then :
20079
20080 ac_fn_cxx_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
ee134472 20081if test "x$ac_cv_header_mach_mach_h" = xyes; then :
e1cce270 20082
7eda51e0 20083 if test -n "$ac_tool_prefix"; then
a243b558 20084 for ac_prog in lipo
794e88e7
DWT
20085 do
20086 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20087set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20089$as_echo_n "checking for $ac_word... " >&6; }
a243b558 20090if ${ac_cv_prog__LIPO+:} false; then :
794e88e7
DWT
20091 $as_echo_n "(cached) " >&6
20092else
a243b558
JF
20093 if test -n "$_LIPO"; then
20094 ac_cv_prog__LIPO="$_LIPO" # Let the user override the test.
794e88e7
DWT
20095else
20096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20097for as_dir in $PATH
20098do
20099 IFS=$as_save_IFS
20100 test -z "$as_dir" && as_dir=.
20101 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 20102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 20103 ac_cv_prog__LIPO="$ac_tool_prefix$ac_prog"
794e88e7
DWT
20104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20105 break 2
20106 fi
20107done
20108 done
20109IFS=$as_save_IFS
20110
20111fi
20112fi
a243b558
JF
20113_LIPO=$ac_cv_prog__LIPO
20114if test -n "$_LIPO"; then
20115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_LIPO" >&5
20116$as_echo "$_LIPO" >&6; }
794e88e7
DWT
20117else
20118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20119$as_echo "no" >&6; }
20120fi
20121
20122
a243b558 20123 test -n "$_LIPO" && break
794e88e7
DWT
20124 done
20125fi
a243b558
JF
20126if test -z "$_LIPO"; then
20127 ac_ct__LIPO=$_LIPO
20128 for ac_prog in lipo
794e88e7
DWT
20129do
20130 # Extract the first word of "$ac_prog", so it can be a program name with args.
20131set dummy $ac_prog; ac_word=$2
20132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20133$as_echo_n "checking for $ac_word... " >&6; }
a243b558 20134if ${ac_cv_prog_ac_ct__LIPO+:} false; then :
794e88e7
DWT
20135 $as_echo_n "(cached) " >&6
20136else
a243b558
JF
20137 if test -n "$ac_ct__LIPO"; then
20138 ac_cv_prog_ac_ct__LIPO="$ac_ct__LIPO" # Let the user override the test.
794e88e7
DWT
20139else
20140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20141for as_dir in $PATH
20142do
20143 IFS=$as_save_IFS
20144 test -z "$as_dir" && as_dir=.
20145 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 20146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 20147 ac_cv_prog_ac_ct__LIPO="$ac_prog"
794e88e7
DWT
20148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20149 break 2
20150 fi
20151done
20152 done
20153IFS=$as_save_IFS
20154
20155fi
20156fi
a243b558
JF
20157ac_ct__LIPO=$ac_cv_prog_ac_ct__LIPO
20158if test -n "$ac_ct__LIPO"; then
20159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct__LIPO" >&5
20160$as_echo "$ac_ct__LIPO" >&6; }
794e88e7
DWT
20161else
20162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20163$as_echo "no" >&6; }
20164fi
20165
20166
a243b558 20167 test -n "$ac_ct__LIPO" && break
794e88e7
DWT
20168done
20169
a243b558
JF
20170 if test "x$ac_ct__LIPO" = x; then
20171 _LIPO="as_fn_error $? "missing \"lipo\"" "$LINENO" 5"
794e88e7
DWT
20172 else
20173 case $cross_compiling:$ac_tool_warned in
20174yes:)
20175{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20176$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20177ac_tool_warned=yes ;;
e1cce270 20178esac
a243b558 20179 _LIPO=$ac_ct__LIPO
794e88e7
DWT
20180 fi
20181fi
20182
7eda51e0 20183 if test -n "$ac_tool_prefix"; then
a243b558 20184 for ac_prog in nm
794e88e7
DWT
20185 do
20186 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20187set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20189$as_echo_n "checking for $ac_word... " >&6; }
a243b558 20190if ${ac_cv_prog__NM+:} false; then :
794e88e7
DWT
20191 $as_echo_n "(cached) " >&6
20192else
a243b558
JF
20193 if test -n "$_NM"; then
20194 ac_cv_prog__NM="$_NM" # Let the user override the test.
794e88e7
DWT
20195else
20196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20197for as_dir in $PATH
20198do
20199 IFS=$as_save_IFS
20200 test -z "$as_dir" && as_dir=.
20201 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 20202 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 20203 ac_cv_prog__NM="$ac_tool_prefix$ac_prog"
794e88e7
DWT
20204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20205 break 2
20206 fi
20207done
20208 done
20209IFS=$as_save_IFS
20210
20211fi
20212fi
a243b558
JF
20213_NM=$ac_cv_prog__NM
20214if test -n "$_NM"; then
20215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_NM" >&5
20216$as_echo "$_NM" >&6; }
794e88e7
DWT
20217else
20218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20219$as_echo "no" >&6; }
20220fi
20221
20222
a243b558 20223 test -n "$_NM" && break
794e88e7
DWT
20224 done
20225fi
a243b558
JF
20226if test -z "$_NM"; then
20227 ac_ct__NM=$_NM
20228 for ac_prog in nm
794e88e7
DWT
20229do
20230 # Extract the first word of "$ac_prog", so it can be a program name with args.
20231set dummy $ac_prog; ac_word=$2
20232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20233$as_echo_n "checking for $ac_word... " >&6; }
a243b558 20234if ${ac_cv_prog_ac_ct__NM+:} false; then :
794e88e7
DWT
20235 $as_echo_n "(cached) " >&6
20236else
a243b558
JF
20237 if test -n "$ac_ct__NM"; then
20238 ac_cv_prog_ac_ct__NM="$ac_ct__NM" # Let the user override the test.
794e88e7
DWT
20239else
20240as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20241for as_dir in $PATH
20242do
20243 IFS=$as_save_IFS
20244 test -z "$as_dir" && as_dir=.
20245 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 20246 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 20247 ac_cv_prog_ac_ct__NM="$ac_prog"
794e88e7
DWT
20248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20249 break 2
20250 fi
20251done
20252 done
20253IFS=$as_save_IFS
20254
20255fi
20256fi
a243b558
JF
20257ac_ct__NM=$ac_cv_prog_ac_ct__NM
20258if test -n "$ac_ct__NM"; then
20259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct__NM" >&5
20260$as_echo "$ac_ct__NM" >&6; }
794e88e7
DWT
20261else
20262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20263$as_echo "no" >&6; }
20264fi
20265
20266
a243b558 20267 test -n "$ac_ct__NM" && break
794e88e7
DWT
20268done
20269
a243b558
JF
20270 if test "x$ac_ct__NM" = x; then
20271 _NM="as_fn_error $? "missing \"nm\"" "$LINENO" 5"
794e88e7
DWT
20272 else
20273 case $cross_compiling:$ac_tool_warned in
20274yes:)
20275{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20276$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20277ac_tool_warned=yes ;;
20278esac
a243b558 20279 _NM=$ac_ct__NM
794e88e7
DWT
20280 fi
20281fi
20282
7eda51e0 20283 if test -n "$ac_tool_prefix"; then
a243b558 20284 for ac_prog in otool
794e88e7
DWT
20285 do
20286 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20287set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20289$as_echo_n "checking for $ac_word... " >&6; }
a243b558 20290if ${ac_cv_prog__OTOOL+:} false; then :
794e88e7
DWT
20291 $as_echo_n "(cached) " >&6
20292else
a243b558
JF
20293 if test -n "$_OTOOL"; then
20294 ac_cv_prog__OTOOL="$_OTOOL" # Let the user override the test.
794e88e7
DWT
20295else
20296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20297for as_dir in $PATH
20298do
20299 IFS=$as_save_IFS
20300 test -z "$as_dir" && as_dir=.
20301 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 20302 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 20303 ac_cv_prog__OTOOL="$ac_tool_prefix$ac_prog"
794e88e7
DWT
20304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20305 break 2
20306 fi
20307done
20308 done
20309IFS=$as_save_IFS
20310
20311fi
20312fi
a243b558
JF
20313_OTOOL=$ac_cv_prog__OTOOL
20314if test -n "$_OTOOL"; then
20315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_OTOOL" >&5
20316$as_echo "$_OTOOL" >&6; }
794e88e7
DWT
20317else
20318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20319$as_echo "no" >&6; }
20320fi
20321
20322
a243b558 20323 test -n "$_OTOOL" && break
794e88e7
DWT
20324 done
20325fi
a243b558
JF
20326if test -z "$_OTOOL"; then
20327 ac_ct__OTOOL=$_OTOOL
20328 for ac_prog in otool
794e88e7
DWT
20329do
20330 # Extract the first word of "$ac_prog", so it can be a program name with args.
20331set dummy $ac_prog; ac_word=$2
20332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20333$as_echo_n "checking for $ac_word... " >&6; }
a243b558 20334if ${ac_cv_prog_ac_ct__OTOOL+:} false; then :
794e88e7
DWT
20335 $as_echo_n "(cached) " >&6
20336else
a243b558
JF
20337 if test -n "$ac_ct__OTOOL"; then
20338 ac_cv_prog_ac_ct__OTOOL="$ac_ct__OTOOL" # Let the user override the test.
794e88e7
DWT
20339else
20340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20341for as_dir in $PATH
20342do
20343 IFS=$as_save_IFS
20344 test -z "$as_dir" && as_dir=.
20345 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 20346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 20347 ac_cv_prog_ac_ct__OTOOL="$ac_prog"
794e88e7
DWT
20348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20349 break 2
20350 fi
20351done
20352 done
20353IFS=$as_save_IFS
20354
20355fi
20356fi
a243b558
JF
20357ac_ct__OTOOL=$ac_cv_prog_ac_ct__OTOOL
20358if test -n "$ac_ct__OTOOL"; then
20359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct__OTOOL" >&5
20360$as_echo "$ac_ct__OTOOL" >&6; }
794e88e7
DWT
20361else
20362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20363$as_echo "no" >&6; }
20364fi
20365
20366
a243b558 20367 test -n "$ac_ct__OTOOL" && break
794e88e7
DWT
20368done
20369
a243b558
JF
20370 if test "x$ac_ct__OTOOL" = x; then
20371 _OTOOL="as_fn_error $? "missing \"otool\"" "$LINENO" 5"
794e88e7
DWT
20372 else
20373 case $cross_compiling:$ac_tool_warned in
20374yes:)
20375{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20376$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20377ac_tool_warned=yes ;;
20378esac
a243b558 20379 _OTOOL=$ac_ct__OTOOL
794e88e7
DWT
20380 fi
20381fi
20382
7eda51e0 20383 CY_ATTACH_GROUP=procmod
794e88e7 20384
7eda51e0 20385 CY_MACH=1
e1cce270
DWT
20386
20387fi
20388
20389
7eda51e0 20390fi
a243b558
JF
20391 if test "x$CY_MACH" = x1; then
20392 CY_MACH_TRUE=
20393 CY_MACH_FALSE='#'
20394else
20395 CY_MACH_TRUE='#'
20396 CY_MACH_FALSE=
47aaa820 20397fi
9c60689e 20398
66170b30 20399
a243b558
JF
20400ac_config_files="$ac_config_files Makefile"
20401
9c60689e
DWT
20402cat >confcache <<\_ACEOF
20403# This file is a shell script that caches the results of configure
20404# tests run on this system so they can be shared between configure
20405# scripts and configure runs, see configure's option --config-cache.
20406# It is not useful on other systems. If it contains results you don't
20407# want to keep, you may remove or edit it.
20408#
20409# config.status only pays attention to the cache file if you give it
20410# the --recheck option to rerun configure.
20411#
20412# `ac_cv_env_foo' variables (set or unset) will be overridden when
20413# loading this file, other *unset* `ac_cv_foo' will be assigned the
20414# following values.
20415
20416_ACEOF
20417
20418# The following way of writing the cache mishandles newlines in values,
20419# but we know of no workaround that is simple, portable, and efficient.
20420# So, we kill variables containing newlines.
20421# Ultrix sh set writes to stderr and can't be redirected directly,
20422# and sets the high bit in the cache file unless we assign to the vars.
20423(
20424 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20425 eval ac_val=\$$ac_var
20426 case $ac_val in #(
20427 *${as_nl}*)
20428 case $ac_var in #(
20429 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20430$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20431 esac
20432 case $ac_var in #(
20433 _ | IFS | as_nl) ;; #(
20434 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20435 *) { eval $ac_var=; unset $ac_var;} ;;
20436 esac ;;
20437 esac
20438 done
20439
20440 (set) 2>&1 |
20441 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20442 *${as_nl}ac_space=\ *)
20443 # `set' does not quote correctly, so add quotes: double-quote
20444 # substitution turns \\\\ into \\, and sed turns \\ into \.
20445 sed -n \
20446 "s/'/'\\\\''/g;
20447 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20448 ;; #(
20449 *)
20450 # `set' quotes correctly as required by POSIX, so do not add quotes.
20451 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20452 ;;
20453 esac |
20454 sort
20455) |
20456 sed '
20457 /^ac_cv_env_/b end
20458 t clear
20459 :clear
20460 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20461 t end
20462 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20463 :end' >>confcache
20464if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20465 if test -w "$cache_file"; then
ee134472 20466 if test "x$cache_file" != "x/dev/null"; then
9c60689e
DWT
20467 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20468$as_echo "$as_me: updating cache $cache_file" >&6;}
ee134472
JF
20469 if test ! -f "$cache_file" || test -h "$cache_file"; then
20470 cat confcache >"$cache_file"
20471 else
20472 case $cache_file in #(
20473 */* | ?:*)
20474 mv -f confcache "$cache_file"$$ &&
20475 mv -f "$cache_file"$$ "$cache_file" ;; #(
20476 *)
20477 mv -f confcache "$cache_file" ;;
20478 esac
20479 fi
20480 fi
9c60689e
DWT
20481 else
20482 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20483$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20484 fi
20485fi
20486rm -f confcache
20487
20488test "x$prefix" = xNONE && prefix=$ac_default_prefix
20489# Let make expand exec_prefix.
20490test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20491
296ee9a6 20492DEFS=-DHAVE_CONFIG_H
9c60689e
DWT
20493
20494ac_libobjs=
20495ac_ltlibobjs=
12833ad8 20496U=
9c60689e
DWT
20497for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20498 # 1. Remove the extension, and $U if already installed.
20499 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20500 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20501 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20502 # will be set to the directory where LIBOBJS objects are built.
20503 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20504 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20505done
20506LIBOBJS=$ac_libobjs
20507
20508LTLIBOBJS=$ac_ltlibobjs
20509
20510
66170b30
JF
20511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
20512$as_echo_n "checking that generated files are newer than configure... " >&6; }
20513 if test -n "$am_sleep_pid"; then
20514 # Hide warnings about reused PIDs.
20515 wait $am_sleep_pid 2>/dev/null
20516 fi
20517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
20518$as_echo "done" >&6; }
20519 if test -n "$EXEEXT"; then
20520 am__EXEEXT_TRUE=
20521 am__EXEEXT_FALSE='#'
20522else
20523 am__EXEEXT_TRUE='#'
20524 am__EXEEXT_FALSE=
20525fi
20526
20527if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20528 as_fn_error $? "conditional \"AMDEP\" was never defined.
20529Usually this means the macro was only invoked conditionally." "$LINENO" 5
20530fi
66170b30
JF
20531if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20532 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
20533Usually this means the macro was only invoked conditionally." "$LINENO" 5
20534fi
20535if test -z "${am__fastdepOBJCXX_TRUE}" && test -z "${am__fastdepOBJCXX_FALSE}"; then
20536 as_fn_error $? "conditional \"am__fastdepOBJCXX\" was never defined.
20537Usually this means the macro was only invoked conditionally." "$LINENO" 5
20538fi
a243b558
JF
20539if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20540 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20541Usually this means the macro was only invoked conditionally." "$LINENO" 5
20542fi
20543if test -z "${CY_EXECUTE_TRUE}" && test -z "${CY_EXECUTE_FALSE}"; then
20544 as_fn_error $? "conditional \"CY_EXECUTE\" was never defined.
20545Usually this means the macro was only invoked conditionally." "$LINENO" 5
20546fi
20547if test -z "${CY_OBJECTIVEC_TRUE}" && test -z "${CY_OBJECTIVEC_FALSE}"; then
20548 as_fn_error $? "conditional \"CY_OBJECTIVEC\" was never defined.
20549Usually this means the macro was only invoked conditionally." "$LINENO" 5
20550fi
20551if test -z "${CY_MACH_TRUE}" && test -z "${CY_MACH_FALSE}"; then
20552 as_fn_error $? "conditional \"CY_MACH\" was never defined.
20553Usually this means the macro was only invoked conditionally." "$LINENO" 5
20554fi
9c60689e 20555
ee134472 20556: "${CONFIG_STATUS=./config.status}"
9c60689e
DWT
20557ac_write_fail=0
20558ac_clean_files_save=$ac_clean_files
20559ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20560{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20561$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20562as_write_fail=0
20563cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20564#! $SHELL
20565# Generated by $as_me.
20566# Run this file to recreate the current configuration.
20567# Compiler output produced by configure, useful for debugging
20568# configure, is in config.log if it exists.
20569
20570debug=false
20571ac_cs_recheck=false
20572ac_cs_silent=false
20573
20574SHELL=\${CONFIG_SHELL-$SHELL}
20575export SHELL
20576_ASEOF
20577cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20578## -------------------- ##
20579## M4sh Initialization. ##
20580## -------------------- ##
20581
20582# Be more Bourne compatible
20583DUALCASE=1; export DUALCASE # for MKS sh
20584if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20585 emulate sh
20586 NULLCMD=:
20587 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20588 # is contrary to our usage. Disable this feature.
20589 alias -g '${1+"$@"}'='"$@"'
20590 setopt NO_GLOB_SUBST
20591else
20592 case `(set -o) 2>/dev/null` in #(
20593 *posix*) :
20594 set -o posix ;; #(
20595 *) :
20596 ;;
20597esac
20598fi
20599
20600
20601as_nl='
20602'
20603export as_nl
20604# Printing a long string crashes Solaris 7 /usr/bin/printf.
20605as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20606as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20607as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20608# Prefer a ksh shell builtin over an external printf program on Solaris,
20609# but without wasting forks for bash or zsh.
20610if test -z "$BASH_VERSION$ZSH_VERSION" \
20611 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20612 as_echo='print -r --'
20613 as_echo_n='print -rn --'
20614elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20615 as_echo='printf %s\n'
20616 as_echo_n='printf %s'
20617else
20618 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20619 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20620 as_echo_n='/usr/ucb/echo -n'
20621 else
20622 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20623 as_echo_n_body='eval
20624 arg=$1;
20625 case $arg in #(
20626 *"$as_nl"*)
20627 expr "X$arg" : "X\\(.*\\)$as_nl";
20628 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20629 esac;
20630 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20631 '
20632 export as_echo_n_body
20633 as_echo_n='sh -c $as_echo_n_body as_echo'
20634 fi
20635 export as_echo_body
20636 as_echo='sh -c $as_echo_body as_echo'
20637fi
20638
20639# The user is always right.
20640if test "${PATH_SEPARATOR+set}" != set; then
20641 PATH_SEPARATOR=:
20642 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20643 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20644 PATH_SEPARATOR=';'
20645 }
20646fi
20647
20648
20649# IFS
20650# We need space, tab and new line, in precisely that order. Quoting is
20651# there to prevent editors from complaining about space-tab.
20652# (If _AS_PATH_WALK were called with IFS unset, it would disable word
20653# splitting by setting IFS to empty value.)
20654IFS=" "" $as_nl"
20655
20656# Find who we are. Look in the path if we contain no directory separator.
ee134472 20657as_myself=
9c60689e
DWT
20658case $0 in #((
20659 *[\\/]* ) as_myself=$0 ;;
20660 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20661for as_dir in $PATH
20662do
20663 IFS=$as_save_IFS
20664 test -z "$as_dir" && as_dir=.
20665 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20666 done
20667IFS=$as_save_IFS
20668
20669 ;;
20670esac
20671# We did not find ourselves, most probably we were run as `sh COMMAND'
20672# in which case we are not to be found in the path.
20673if test "x$as_myself" = x; then
20674 as_myself=$0
20675fi
20676if test ! -f "$as_myself"; then
20677 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20678 exit 1
20679fi
20680
20681# Unset variables that we do not need and which cause bugs (e.g. in
20682# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
20683# suppresses any "Segmentation fault" message there. '((' could
20684# trigger a bug in pdksh 5.2.14.
20685for as_var in BASH_ENV ENV MAIL MAILPATH
20686do eval test x\${$as_var+set} = xset \
20687 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20688done
20689PS1='$ '
20690PS2='> '
20691PS4='+ '
20692
20693# NLS nuisances.
20694LC_ALL=C
20695export LC_ALL
20696LANGUAGE=C
20697export LANGUAGE
20698
20699# CDPATH.
20700(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20701
20702
12833ad8
JF
20703# as_fn_error STATUS ERROR [LINENO LOG_FD]
20704# ----------------------------------------
9c60689e
DWT
20705# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20706# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12833ad8 20707# script with STATUS, using 1 if that was 0.
9c60689e
DWT
20708as_fn_error ()
20709{
12833ad8
JF
20710 as_status=$1; test $as_status -eq 0 && as_status=1
20711 if test "$4"; then
20712 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20713 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
9c60689e 20714 fi
12833ad8 20715 $as_echo "$as_me: error: $2" >&2
9c60689e
DWT
20716 as_fn_exit $as_status
20717} # as_fn_error
20718
20719
20720# as_fn_set_status STATUS
20721# -----------------------
20722# Set $? to STATUS, without forking.
20723as_fn_set_status ()
20724{
20725 return $1
20726} # as_fn_set_status
20727
20728# as_fn_exit STATUS
20729# -----------------
20730# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20731as_fn_exit ()
20732{
20733 set +e
20734 as_fn_set_status $1
20735 exit $1
20736} # as_fn_exit
20737
20738# as_fn_unset VAR
20739# ---------------
20740# Portably unset VAR.
20741as_fn_unset ()
20742{
20743 { eval $1=; unset $1;}
20744}
20745as_unset=as_fn_unset
20746# as_fn_append VAR VALUE
20747# ----------------------
20748# Append the text in VALUE to the end of the definition contained in VAR. Take
20749# advantage of any shell optimizations that allow amortized linear growth over
20750# repeated appends, instead of the typical quadratic growth present in naive
20751# implementations.
20752if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20753 eval 'as_fn_append ()
20754 {
20755 eval $1+=\$2
20756 }'
20757else
20758 as_fn_append ()
20759 {
20760 eval $1=\$$1\$2
20761 }
20762fi # as_fn_append
20763
20764# as_fn_arith ARG...
20765# ------------------
20766# Perform arithmetic evaluation on the ARGs, and store the result in the
20767# global $as_val. Take advantage of shells that can avoid forks. The arguments
20768# must be portable across $(()) and expr.
20769if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20770 eval 'as_fn_arith ()
20771 {
20772 as_val=$(( $* ))
20773 }'
20774else
20775 as_fn_arith ()
20776 {
20777 as_val=`expr "$@" || test $? -eq 1`
20778 }
20779fi # as_fn_arith
20780
20781
20782if expr a : '\(a\)' >/dev/null 2>&1 &&
20783 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20784 as_expr=expr
20785else
20786 as_expr=false
20787fi
20788
20789if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20790 as_basename=basename
20791else
20792 as_basename=false
20793fi
20794
20795if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20796 as_dirname=dirname
20797else
20798 as_dirname=false
20799fi
20800
20801as_me=`$as_basename -- "$0" ||
20802$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20803 X"$0" : 'X\(//\)$' \| \
20804 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20805$as_echo X/"$0" |
20806 sed '/^.*\/\([^/][^/]*\)\/*$/{
20807 s//\1/
20808 q
20809 }
20810 /^X\/\(\/\/\)$/{
20811 s//\1/
20812 q
20813 }
20814 /^X\/\(\/\).*/{
20815 s//\1/
20816 q
20817 }
20818 s/.*/./; q'`
20819
20820# Avoid depending upon Character Ranges.
20821as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20822as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20823as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20824as_cr_digits='0123456789'
20825as_cr_alnum=$as_cr_Letters$as_cr_digits
20826
20827ECHO_C= ECHO_N= ECHO_T=
20828case `echo -n x` in #(((((
20829-n*)
20830 case `echo 'xy\c'` in
20831 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20832 xy) ECHO_C='\c';;
20833 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20834 ECHO_T=' ';;
20835 esac;;
20836*)
20837 ECHO_N='-n';;
20838esac
20839
20840rm -f conf$$ conf$$.exe conf$$.file
20841if test -d conf$$.dir; then
20842 rm -f conf$$.dir/conf$$.file
20843else
20844 rm -f conf$$.dir
20845 mkdir conf$$.dir 2>/dev/null
20846fi
20847if (echo >conf$$.file) 2>/dev/null; then
20848 if ln -s conf$$.file conf$$ 2>/dev/null; then
20849 as_ln_s='ln -s'
20850 # ... but there are two gotchas:
20851 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20852 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
53ba6704 20853 # In both cases, we have to default to `cp -pR'.
9c60689e 20854 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
53ba6704 20855 as_ln_s='cp -pR'
9c60689e
DWT
20856 elif ln conf$$.file conf$$ 2>/dev/null; then
20857 as_ln_s=ln
20858 else
53ba6704 20859 as_ln_s='cp -pR'
9c60689e
DWT
20860 fi
20861else
53ba6704 20862 as_ln_s='cp -pR'
9c60689e
DWT
20863fi
20864rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20865rmdir conf$$.dir 2>/dev/null
20866
20867
20868# as_fn_mkdir_p
20869# -------------
20870# Create "$as_dir" as a directory, including parents if necessary.
20871as_fn_mkdir_p ()
20872{
20873
20874 case $as_dir in #(
20875 -*) as_dir=./$as_dir;;
20876 esac
20877 test -d "$as_dir" || eval $as_mkdir_p || {
20878 as_dirs=
20879 while :; do
20880 case $as_dir in #(
20881 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20882 *) as_qdir=$as_dir;;
20883 esac
20884 as_dirs="'$as_qdir' $as_dirs"
20885 as_dir=`$as_dirname -- "$as_dir" ||
20886$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20887 X"$as_dir" : 'X\(//\)[^/]' \| \
20888 X"$as_dir" : 'X\(//\)$' \| \
20889 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20890$as_echo X"$as_dir" |
20891 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20892 s//\1/
20893 q
20894 }
20895 /^X\(\/\/\)[^/].*/{
20896 s//\1/
20897 q
20898 }
20899 /^X\(\/\/\)$/{
20900 s//\1/
20901 q
20902 }
20903 /^X\(\/\).*/{
20904 s//\1/
20905 q
20906 }
20907 s/.*/./; q'`
20908 test -d "$as_dir" && break
20909 done
20910 test -z "$as_dirs" || eval "mkdir $as_dirs"
12833ad8 20911 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
9c60689e
DWT
20912
20913
20914} # as_fn_mkdir_p
20915if mkdir -p . 2>/dev/null; then
20916 as_mkdir_p='mkdir -p "$as_dir"'
20917else
20918 test -d ./-p && rmdir ./-p
20919 as_mkdir_p=false
20920fi
20921
53ba6704
JF
20922
20923# as_fn_executable_p FILE
20924# -----------------------
20925# Test if FILE is an executable regular file.
20926as_fn_executable_p ()
20927{
20928 test -f "$1" && test -x "$1"
20929} # as_fn_executable_p
20930as_test_x='test -x'
20931as_executable_p=as_fn_executable_p
9c60689e
DWT
20932
20933# Sed expression to map a string onto a valid CPP name.
20934as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20935
20936# Sed expression to map a string onto a valid variable name.
20937as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20938
20939
20940exec 6>&1
20941## ----------------------------------- ##
20942## Main body of $CONFIG_STATUS script. ##
20943## ----------------------------------- ##
20944_ASEOF
20945test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20946
20947cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20948# Save the log message, to keep $0 and so on meaningful, and to
20949# report actual input values of CONFIG_FILES etc. instead of their
20950# values after options handling.
20951ac_log="
20952This file was extended by Cycript $as_me 0.9, which was
53ba6704 20953generated by GNU Autoconf 2.69. Invocation command line was
9c60689e
DWT
20954
20955 CONFIG_FILES = $CONFIG_FILES
20956 CONFIG_HEADERS = $CONFIG_HEADERS
20957 CONFIG_LINKS = $CONFIG_LINKS
20958 CONFIG_COMMANDS = $CONFIG_COMMANDS
20959 $ $0 $@
20960
20961on `(hostname || uname -n) 2>/dev/null | sed 1q`
20962"
20963
20964_ACEOF
20965
20966case $ac_config_files in *"
20967"*) set x $ac_config_files; shift; ac_config_files=$*;;
20968esac
20969
296ee9a6
JF
20970case $ac_config_headers in *"
20971"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20972esac
9c60689e
DWT
20973
20974
20975cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20976# Files that config.status was made for.
20977config_files="$ac_config_files"
296ee9a6 20978config_headers="$ac_config_headers"
9c60689e
DWT
20979config_commands="$ac_config_commands"
20980
20981_ACEOF
20982
20983cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20984ac_cs_usage="\
20985\`$as_me' instantiates files and other configuration actions
20986from templates according to the current configuration. Unless the files
20987and actions are specified as TAGs, all are instantiated by default.
20988
20989Usage: $0 [OPTION]... [TAG]...
20990
20991 -h, --help print this help, then exit
20992 -V, --version print version number and configuration settings, then exit
20993 --config print configuration, then exit
20994 -q, --quiet, --silent
20995 do not print progress messages
20996 -d, --debug don't remove temporary files
20997 --recheck update $as_me by reconfiguring in the same conditions
20998 --file=FILE[:TEMPLATE]
20999 instantiate the configuration file FILE
296ee9a6
JF
21000 --header=FILE[:TEMPLATE]
21001 instantiate the configuration header FILE
9c60689e
DWT
21002
21003Configuration files:
21004$config_files
21005
296ee9a6
JF
21006Configuration headers:
21007$config_headers
21008
9c60689e
DWT
21009Configuration commands:
21010$config_commands
21011
21012Report bugs to <saurik@saurik.com>.
21013Cycript home page: <http://www.cycript.org/>."
21014
21015_ACEOF
21016cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21017ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
21018ac_cs_version="\\
21019Cycript config.status 0.9
53ba6704 21020configured by $0, generated by GNU Autoconf 2.69,
9c60689e
DWT
21021 with options \\"\$ac_cs_config\\"
21022
53ba6704 21023Copyright (C) 2012 Free Software Foundation, Inc.
9c60689e
DWT
21024This config.status script is free software; the Free Software Foundation
21025gives unlimited permission to copy, distribute and modify it."
21026
21027ac_pwd='$ac_pwd'
21028srcdir='$srcdir'
21029INSTALL='$INSTALL'
66170b30
JF
21030MKDIR_P='$MKDIR_P'
21031AWK='$AWK'
9c60689e
DWT
21032test -n "\$AWK" || AWK=awk
21033_ACEOF
21034
21035cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21036# The default lists apply if the user does not specify any file.
21037ac_need_defaults=:
21038while test $# != 0
21039do
21040 case $1 in
12833ad8 21041 --*=?*)
9c60689e
DWT
21042 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21043 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21044 ac_shift=:
21045 ;;
12833ad8
JF
21046 --*=)
21047 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21048 ac_optarg=
21049 ac_shift=:
21050 ;;
9c60689e
DWT
21051 *)
21052 ac_option=$1
21053 ac_optarg=$2
21054 ac_shift=shift
21055 ;;
21056 esac
21057
21058 case $ac_option in
21059 # Handling of the options.
21060 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21061 ac_cs_recheck=: ;;
21062 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21063 $as_echo "$ac_cs_version"; exit ;;
21064 --config | --confi | --conf | --con | --co | --c )
21065 $as_echo "$ac_cs_config"; exit ;;
21066 --debug | --debu | --deb | --de | --d | -d )
21067 debug=: ;;
21068 --file | --fil | --fi | --f )
21069 $ac_shift
21070 case $ac_optarg in
21071 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12833ad8 21072 '') as_fn_error $? "missing file argument" ;;
9c60689e
DWT
21073 esac
21074 as_fn_append CONFIG_FILES " '$ac_optarg'"
21075 ac_need_defaults=false;;
296ee9a6
JF
21076 --header | --heade | --head | --hea )
21077 $ac_shift
21078 case $ac_optarg in
21079 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21080 esac
21081 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21082 ac_need_defaults=false;;
21083 --he | --h)
21084 # Conflict between --help and --header
21085 as_fn_error $? "ambiguous option: \`$1'
21086Try \`$0 --help' for more information.";;
21087 --help | --hel | -h )
9c60689e
DWT
21088 $as_echo "$ac_cs_usage"; exit ;;
21089 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21090 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21091 ac_cs_silent=: ;;
21092
21093 # This is an error.
12833ad8 21094 -*) as_fn_error $? "unrecognized option: \`$1'
9c60689e
DWT
21095Try \`$0 --help' for more information." ;;
21096
21097 *) as_fn_append ac_config_targets " $1"
21098 ac_need_defaults=false ;;
21099
21100 esac
21101 shift
21102done
21103
21104ac_configure_extra_args=
21105
21106if $ac_cs_silent; then
21107 exec 6>/dev/null
21108 ac_configure_extra_args="$ac_configure_extra_args --silent"
21109fi
21110
21111_ACEOF
21112cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21113if \$ac_cs_recheck; then
53ba6704 21114 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9c60689e
DWT
21115 shift
21116 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
21117 CONFIG_SHELL='$SHELL'
21118 export CONFIG_SHELL
21119 exec "\$@"
21120fi
21121
21122_ACEOF
21123cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21124exec 5>>config.log
21125{
21126 echo
21127 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21128## Running $as_me. ##
21129_ASBOX
21130 $as_echo "$ac_log"
21131} >&5
21132
21133_ACEOF
21134cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21135#
21136# INIT-COMMANDS
21137#
66170b30 21138AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
9c60689e
DWT
21139
21140
21141# The HP-UX ksh and POSIX shell print the target directory to stdout
21142# if CDPATH is set.
21143(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21144
21145sed_quote_subst='$sed_quote_subst'
21146double_quote_subst='$double_quote_subst'
21147delay_variable_subst='$delay_variable_subst'
ee134472
JF
21148macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
21149macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
21150enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
21151enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
21152pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
21153enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
21154SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
21155ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
53ba6704 21156PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
ee134472
JF
21157host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
21158host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
21159host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
21160build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
21161build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
21162build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
21163SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
21164Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
21165GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
21166EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
21167FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
21168LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
21169NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
21170LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
21171max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
21172ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
21173exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
21174lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
21175lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
21176lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
21177lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
21178lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
21179reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
21180reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
21181OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
21182deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
21183file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
21184file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
21185want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
21186DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
21187sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
21188AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
21189AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
21190archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
21191STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
21192RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
21193old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21194old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21195old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
21196lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
21197CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
21198CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
21199compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
21200GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
21201lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
21202lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
21203lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
21204lt_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"`'
21205nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
21206lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
21207objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
21208MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
21209lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
21210lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
21211lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
21212lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
21213lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
21214need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
21215MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
21216DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
21217NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
21218LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
21219OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
21220OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
21221libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
21222shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
21223extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21224archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
21225enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
21226export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
21227whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
21228compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
21229old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
21230old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21231archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
21232archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21233module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
21234module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21235with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
21236allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
21237no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
21238hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
ee134472
JF
21239hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
21240hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
21241hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
21242hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
21243hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
21244hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
21245inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
21246link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
21247always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
21248export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
21249exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
21250include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
21251prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
21252postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
21253file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
21254variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
21255need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
21256need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
21257version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
21258runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
21259shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
21260shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
21261libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
21262library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
21263soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
21264install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
21265postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21266postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21267finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
21268finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
21269hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
21270sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
21271sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
21272hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
21273enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
21274enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
21275enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
21276old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
21277striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
21278compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
21279predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
21280postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
21281predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
21282postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
21283compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
21284LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
21285reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
21286reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21287old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21288compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
21289GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
21290lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
21291lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
21292lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
21293lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
21294lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
21295archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
21296enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
21297export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21298whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21299compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
21300old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21301old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21302archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21303archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21304module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21305module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21306with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
21307allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
21308no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
21309hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
ee134472
JF
21310hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
21311hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
21312hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
21313hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
21314hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
21315hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
21316inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
21317link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
21318always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
21319export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21320exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
21321include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
21322prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21323postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21324file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
21325hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
21326compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
21327predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
21328postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
21329predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
21330postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
21331compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
9c60689e
DWT
21332
21333LTCC='$LTCC'
21334LTCFLAGS='$LTCFLAGS'
21335compiler='$compiler_DEFAULT'
21336
ee134472
JF
21337# A function that is used when there is no print builtin or printf.
21338func_fallback_echo ()
21339{
21340 eval 'cat <<_LTECHO_EOF
21341\$1
21342_LTECHO_EOF'
21343}
21344
9c60689e 21345# Quote evaled strings.
ee134472
JF
21346for var in SHELL \
21347ECHO \
53ba6704 21348PATH_SEPARATOR \
ee134472 21349SED \
9c60689e
DWT
21350GREP \
21351EGREP \
21352FGREP \
21353LD \
21354NM \
21355LN_S \
21356lt_SP2NL \
21357lt_NL2SP \
21358reload_flag \
21359OBJDUMP \
21360deplibs_check_method \
21361file_magic_cmd \
ee134472
JF
21362file_magic_glob \
21363want_nocaseglob \
21364DLLTOOL \
21365sharedlib_from_linklib_cmd \
9c60689e
DWT
21366AR \
21367AR_FLAGS \
ee134472 21368archiver_list_spec \
9c60689e
DWT
21369STRIP \
21370RANLIB \
21371CC \
21372CFLAGS \
21373compiler \
21374lt_cv_sys_global_symbol_pipe \
21375lt_cv_sys_global_symbol_to_cdecl \
21376lt_cv_sys_global_symbol_to_c_name_address \
21377lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
ee134472 21378nm_file_list_spec \
9c60689e 21379lt_prog_compiler_no_builtin_flag \
9c60689e 21380lt_prog_compiler_pic \
ee134472 21381lt_prog_compiler_wl \
9c60689e
DWT
21382lt_prog_compiler_static \
21383lt_cv_prog_compiler_c_o \
21384need_locks \
ee134472 21385MANIFEST_TOOL \
9c60689e
DWT
21386DSYMUTIL \
21387NMEDIT \
21388LIPO \
21389OTOOL \
21390OTOOL64 \
21391shrext_cmds \
21392export_dynamic_flag_spec \
21393whole_archive_flag_spec \
21394compiler_needs_object \
21395with_gnu_ld \
21396allow_undefined_flag \
21397no_undefined_flag \
21398hardcode_libdir_flag_spec \
9c60689e 21399hardcode_libdir_separator \
9c60689e
DWT
21400exclude_expsyms \
21401include_expsyms \
21402file_list_spec \
21403variables_saved_for_relink \
21404libname_spec \
21405library_names_spec \
21406soname_spec \
ee134472 21407install_override_mode \
9c60689e
DWT
21408finish_eval \
21409old_striplib \
21410striplib \
21411compiler_lib_search_dirs \
21412predep_objects \
21413postdep_objects \
21414predeps \
21415postdeps \
21416compiler_lib_search_path \
21417LD_CXX \
ee134472 21418reload_flag_CXX \
9c60689e
DWT
21419compiler_CXX \
21420lt_prog_compiler_no_builtin_flag_CXX \
9c60689e 21421lt_prog_compiler_pic_CXX \
ee134472 21422lt_prog_compiler_wl_CXX \
9c60689e
DWT
21423lt_prog_compiler_static_CXX \
21424lt_cv_prog_compiler_c_o_CXX \
21425export_dynamic_flag_spec_CXX \
21426whole_archive_flag_spec_CXX \
21427compiler_needs_object_CXX \
21428with_gnu_ld_CXX \
21429allow_undefined_flag_CXX \
21430no_undefined_flag_CXX \
21431hardcode_libdir_flag_spec_CXX \
9c60689e 21432hardcode_libdir_separator_CXX \
9c60689e
DWT
21433exclude_expsyms_CXX \
21434include_expsyms_CXX \
21435file_list_spec_CXX \
21436compiler_lib_search_dirs_CXX \
21437predep_objects_CXX \
21438postdep_objects_CXX \
21439predeps_CXX \
21440postdeps_CXX \
21441compiler_lib_search_path_CXX; do
ee134472 21442 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
9c60689e 21443 *[\\\\\\\`\\"\\\$]*)
ee134472 21444 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
9c60689e
DWT
21445 ;;
21446 *)
21447 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21448 ;;
21449 esac
21450done
21451
21452# Double-quote double-evaled strings.
21453for var in reload_cmds \
21454old_postinstall_cmds \
21455old_postuninstall_cmds \
21456old_archive_cmds \
21457extract_expsyms_cmds \
21458old_archive_from_new_cmds \
21459old_archive_from_expsyms_cmds \
21460archive_cmds \
21461archive_expsym_cmds \
21462module_cmds \
21463module_expsym_cmds \
21464export_symbols_cmds \
21465prelink_cmds \
ee134472 21466postlink_cmds \
9c60689e
DWT
21467postinstall_cmds \
21468postuninstall_cmds \
21469finish_cmds \
21470sys_lib_search_path_spec \
21471sys_lib_dlsearch_path_spec \
ee134472 21472reload_cmds_CXX \
9c60689e
DWT
21473old_archive_cmds_CXX \
21474old_archive_from_new_cmds_CXX \
21475old_archive_from_expsyms_cmds_CXX \
21476archive_cmds_CXX \
21477archive_expsym_cmds_CXX \
21478module_cmds_CXX \
21479module_expsym_cmds_CXX \
21480export_symbols_cmds_CXX \
ee134472
JF
21481prelink_cmds_CXX \
21482postlink_cmds_CXX; do
21483 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
9c60689e 21484 *[\\\\\\\`\\"\\\$]*)
ee134472 21485 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
9c60689e
DWT
21486 ;;
21487 *)
21488 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21489 ;;
21490 esac
21491done
21492
9c60689e
DWT
21493ac_aux_dir='$ac_aux_dir'
21494xsi_shell='$xsi_shell'
21495lt_shell_append='$lt_shell_append'
21496
21497# See if we are running on zsh, and set the options which allow our
21498# commands through without removal of \ escapes INIT.
21499if test -n "\${ZSH_VERSION+set}" ; then
21500 setopt NO_GLOB_SUBST
21501fi
21502
21503
21504 PACKAGE='$PACKAGE'
21505 VERSION='$VERSION'
21506 TIMESTAMP='$TIMESTAMP'
21507 RM='$RM'
21508 ofile='$ofile'
21509
21510
21511
21512
21513
21514
21515_ACEOF
21516
21517cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21518
21519# Handling of arguments.
21520for ac_config_target in $ac_config_targets
21521do
21522 case $ac_config_target in
296ee9a6 21523 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
66170b30 21524 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
9c60689e 21525 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
790e5246 21526 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9c60689e 21527
ee134472 21528 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
9c60689e
DWT
21529 esac
21530done
21531
21532
21533# If the user did not use the arguments to specify the items to instantiate,
21534# then the envvar interface is used. Set only those that are not.
21535# We use the long form for the default assignment because of an extremely
21536# bizarre bug on SunOS 4.1.3.
21537if $ac_need_defaults; then
21538 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
296ee9a6 21539 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9c60689e
DWT
21540 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21541fi
21542
21543# Have a temporary directory for convenience. Make it in the build tree
21544# simply because there is no reason against having it here, and in addition,
21545# creating and moving files from /tmp can sometimes cause problems.
21546# Hook for its removal unless debugging.
21547# Note that there is a small window in which the directory will not be cleaned:
21548# after its creation but before its name has been assigned to `$tmp'.
21549$debug ||
21550{
ee134472 21551 tmp= ac_tmp=
9c60689e 21552 trap 'exit_status=$?
ee134472
JF
21553 : "${ac_tmp:=$tmp}"
21554 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
9c60689e
DWT
21555' 0
21556 trap 'as_fn_exit 1' 1 2 13 15
21557}
21558# Create a (secure) tmp directory for tmp files.
21559
21560{
21561 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
ee134472 21562 test -d "$tmp"
9c60689e
DWT
21563} ||
21564{
21565 tmp=./conf$$-$RANDOM
21566 (umask 077 && mkdir "$tmp")
12833ad8 21567} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
ee134472 21568ac_tmp=$tmp
9c60689e
DWT
21569
21570# Set up the scripts for CONFIG_FILES section.
21571# No need to generate them if there are no CONFIG_FILES.
21572# This happens for instance with `./config.status config.h'.
21573if test -n "$CONFIG_FILES"; then
21574
21575
21576ac_cr=`echo X | tr X '\015'`
21577# On cygwin, bash can eat \r inside `` if the user requested igncr.
21578# But we know of no other shell where ac_cr would be empty at this
21579# point, so we can use a bashism as a fallback.
21580if test "x$ac_cr" = x; then
21581 eval ac_cr=\$\'\\r\'
21582fi
21583ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21584if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12833ad8 21585 ac_cs_awk_cr='\\r'
9c60689e
DWT
21586else
21587 ac_cs_awk_cr=$ac_cr
21588fi
21589
ee134472 21590echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
9c60689e
DWT
21591_ACEOF
21592
21593
21594{
21595 echo "cat >conf$$subs.awk <<_ACEOF" &&
21596 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21597 echo "_ACEOF"
21598} >conf$$subs.sh ||
12833ad8
JF
21599 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21600ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
9c60689e
DWT
21601ac_delim='%!_!# '
21602for ac_last_try in false false false false false :; do
21603 . ./conf$$subs.sh ||
12833ad8 21604 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9c60689e
DWT
21605
21606 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21607 if test $ac_delim_n = $ac_delim_num; then
21608 break
21609 elif $ac_last_try; then
12833ad8 21610 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9c60689e
DWT
21611 else
21612 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21613 fi
21614done
21615rm -f conf$$subs.sh
21616
21617cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ee134472 21618cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
9c60689e
DWT
21619_ACEOF
21620sed -n '
21621h
21622s/^/S["/; s/!.*/"]=/
21623p
21624g
21625s/^[^!]*!//
21626:repl
21627t repl
21628s/'"$ac_delim"'$//
21629t delim
21630:nl
21631h
21632s/\(.\{148\}\)..*/\1/
21633t more1
21634s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21635p
21636n
21637b repl
21638:more1
21639s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21640p
21641g
21642s/.\{148\}//
21643t nl
21644:delim
21645h
21646s/\(.\{148\}\)..*/\1/
21647t more2
21648s/["\\]/\\&/g; s/^/"/; s/$/"/
21649p
21650b
21651:more2
21652s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21653p
21654g
21655s/.\{148\}//
21656t delim
21657' <conf$$subs.awk | sed '
21658/^[^""]/{
21659 N
21660 s/\n//
21661}
21662' >>$CONFIG_STATUS || ac_write_fail=1
21663rm -f conf$$subs.awk
21664cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21665_ACAWK
ee134472 21666cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
9c60689e
DWT
21667 for (key in S) S_is_set[key] = 1
21668 FS = "\a"
21669
21670}
21671{
21672 line = $ 0
21673 nfields = split(line, field, "@")
21674 substed = 0
21675 len = length(field[1])
21676 for (i = 2; i < nfields; i++) {
21677 key = field[i]
21678 keylen = length(key)
21679 if (S_is_set[key]) {
21680 value = S[key]
21681 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21682 len += length(value) + length(field[++i])
21683 substed = 1
21684 } else
21685 len += 1 + keylen
21686 }
21687
21688 print line
21689}
21690
21691_ACAWK
21692_ACEOF
21693cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21694if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21695 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21696else
21697 cat
ee134472 21698fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12833ad8 21699 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
9c60689e
DWT
21700_ACEOF
21701
12833ad8
JF
21702# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21703# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
9c60689e
DWT
21704# trailing colons and then remove the whole line if VPATH becomes empty
21705# (actually we leave an empty line to preserve line numbers).
21706if test "x$srcdir" = x.; then
12833ad8
JF
21707 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
21708h
21709s///
21710s/^/:/
21711s/[ ]*$/:/
21712s/:\$(srcdir):/:/g
21713s/:\${srcdir}:/:/g
21714s/:@srcdir@:/:/g
21715s/^:*//
9c60689e 21716s/:*$//
12833ad8
JF
21717x
21718s/\(=[ ]*\).*/\1/
21719G
21720s/\n//
9c60689e
DWT
21721s/^[^=]*=[ ]*$//
21722}'
21723fi
21724
21725cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21726fi # test -n "$CONFIG_FILES"
21727
296ee9a6
JF
21728# Set up the scripts for CONFIG_HEADERS section.
21729# No need to generate them if there are no CONFIG_HEADERS.
21730# This happens for instance with `./config.status Makefile'.
21731if test -n "$CONFIG_HEADERS"; then
21732cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21733BEGIN {
21734_ACEOF
21735
21736# Transform confdefs.h into an awk script `defines.awk', embedded as
21737# here-document in config.status, that substitutes the proper values into
21738# config.h.in to produce config.h.
21739
21740# Create a delimiter string that does not exist in confdefs.h, to ease
21741# handling of long lines.
21742ac_delim='%!_!# '
21743for ac_last_try in false false :; do
21744 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21745 if test -z "$ac_tt"; then
21746 break
21747 elif $ac_last_try; then
21748 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21749 else
21750 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21751 fi
21752done
21753
21754# For the awk script, D is an array of macro values keyed by name,
21755# likewise P contains macro parameters if any. Preserve backslash
21756# newline sequences.
21757
21758ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21759sed -n '
21760s/.\{148\}/&'"$ac_delim"'/g
21761t rset
21762:rset
21763s/^[ ]*#[ ]*define[ ][ ]*/ /
21764t def
21765d
21766:def
21767s/\\$//
21768t bsnl
21769s/["\\]/\\&/g
21770s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21771D["\1"]=" \3"/p
21772s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
21773d
21774:bsnl
21775s/["\\]/\\&/g
21776s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21777D["\1"]=" \3\\\\\\n"\\/p
21778t cont
21779s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21780t cont
21781d
21782:cont
21783n
21784s/.\{148\}/&'"$ac_delim"'/g
21785t clear
21786:clear
21787s/\\$//
21788t bsnlc
21789s/["\\]/\\&/g; s/^/"/; s/$/"/p
21790d
21791:bsnlc
21792s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21793b cont
21794' <confdefs.h | sed '
21795s/'"$ac_delim"'/"\\\
21796"/g' >>$CONFIG_STATUS || ac_write_fail=1
21797
21798cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21799 for (key in D) D_is_set[key] = 1
21800 FS = "\a"
21801}
21802/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21803 line = \$ 0
21804 split(line, arg, " ")
21805 if (arg[1] == "#") {
21806 defundef = arg[2]
21807 mac1 = arg[3]
21808 } else {
21809 defundef = substr(arg[1], 2)
21810 mac1 = arg[2]
21811 }
21812 split(mac1, mac2, "(") #)
21813 macro = mac2[1]
21814 prefix = substr(line, 1, index(line, defundef) - 1)
21815 if (D_is_set[macro]) {
21816 # Preserve the white space surrounding the "#".
21817 print prefix "define", macro P[macro] D[macro]
21818 next
21819 } else {
21820 # Replace #undef with comments. This is necessary, for example,
21821 # in the case of _POSIX_SOURCE, which is predefined and required
21822 # on some systems where configure will not decide to define it.
21823 if (defundef == "undef") {
21824 print "/*", prefix defundef, macro, "*/"
21825 next
21826 }
21827 }
21828}
21829{ print }
21830_ACAWK
21831_ACEOF
21832cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21833 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21834fi # test -n "$CONFIG_HEADERS"
21835
9c60689e 21836
296ee9a6 21837eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
9c60689e
DWT
21838shift
21839for ac_tag
21840do
21841 case $ac_tag in
21842 :[FHLC]) ac_mode=$ac_tag; continue;;
21843 esac
21844 case $ac_mode$ac_tag in
21845 :[FHL]*:*);;
ee134472 21846 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
9c60689e
DWT
21847 :[FH]-) ac_tag=-:-;;
21848 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21849 esac
21850 ac_save_IFS=$IFS
21851 IFS=:
21852 set x $ac_tag
21853 IFS=$ac_save_IFS
21854 shift
21855 ac_file=$1
21856 shift
21857
21858 case $ac_mode in
21859 :L) ac_source=$1;;
21860 :[FH])
21861 ac_file_inputs=
21862 for ac_f
21863 do
21864 case $ac_f in
ee134472 21865 -) ac_f="$ac_tmp/stdin";;
9c60689e
DWT
21866 *) # Look for the file first in the build tree, then in the source tree
21867 # (if the path is not absolute). The absolute path cannot be DOS-style,
21868 # because $ac_f cannot contain `:'.
21869 test -f "$ac_f" ||
21870 case $ac_f in
21871 [\\/$]*) false;;
21872 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21873 esac ||
ee134472 21874 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
9c60689e
DWT
21875 esac
21876 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21877 as_fn_append ac_file_inputs " '$ac_f'"
21878 done
21879
21880 # Let's still pretend it is `configure' which instantiates (i.e., don't
21881 # use $as_me), people would be surprised to read:
21882 # /* config.h. Generated by config.status. */
21883 configure_input='Generated from '`
21884 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21885 `' by configure.'
21886 if test x"$ac_file" != x-; then
21887 configure_input="$ac_file. $configure_input"
21888 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21889$as_echo "$as_me: creating $ac_file" >&6;}
21890 fi
21891 # Neutralize special characters interpreted by sed in replacement strings.
21892 case $configure_input in #(
21893 *\&* | *\|* | *\\* )
21894 ac_sed_conf_input=`$as_echo "$configure_input" |
21895 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21896 *) ac_sed_conf_input=$configure_input;;
21897 esac
21898
21899 case $ac_tag in
ee134472
JF
21900 *:-:* | *:-) cat >"$ac_tmp/stdin" \
21901 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
9c60689e
DWT
21902 esac
21903 ;;
21904 esac
21905
21906 ac_dir=`$as_dirname -- "$ac_file" ||
21907$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21908 X"$ac_file" : 'X\(//\)[^/]' \| \
21909 X"$ac_file" : 'X\(//\)$' \| \
21910 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21911$as_echo X"$ac_file" |
21912 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21913 s//\1/
21914 q
21915 }
21916 /^X\(\/\/\)[^/].*/{
21917 s//\1/
21918 q
21919 }
21920 /^X\(\/\/\)$/{
21921 s//\1/
21922 q
21923 }
21924 /^X\(\/\).*/{
21925 s//\1/
21926 q
21927 }
21928 s/.*/./; q'`
21929 as_dir="$ac_dir"; as_fn_mkdir_p
21930 ac_builddir=.
21931
21932case "$ac_dir" in
21933.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21934*)
21935 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21936 # A ".." for each directory in $ac_dir_suffix.
21937 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21938 case $ac_top_builddir_sub in
21939 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21940 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21941 esac ;;
21942esac
21943ac_abs_top_builddir=$ac_pwd
21944ac_abs_builddir=$ac_pwd$ac_dir_suffix
21945# for backward compatibility:
21946ac_top_builddir=$ac_top_build_prefix
35fa52c0 21947
9c60689e
DWT
21948case $srcdir in
21949 .) # We are building in place.
21950 ac_srcdir=.
21951 ac_top_srcdir=$ac_top_builddir_sub
21952 ac_abs_top_srcdir=$ac_pwd ;;
21953 [\\/]* | ?:[\\/]* ) # Absolute name.
21954 ac_srcdir=$srcdir$ac_dir_suffix;
21955 ac_top_srcdir=$srcdir
21956 ac_abs_top_srcdir=$srcdir ;;
21957 *) # Relative name.
21958 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21959 ac_top_srcdir=$ac_top_build_prefix$srcdir
21960 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21961esac
21962ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35fa52c0
DWT
21963
21964
9c60689e
DWT
21965 case $ac_mode in
21966 :F)
21967 #
21968 # CONFIG_FILE
21969 #
35fa52c0 21970
9c60689e
DWT
21971 case $INSTALL in
21972 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21973 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21974 esac
66170b30
JF
21975 ac_MKDIR_P=$MKDIR_P
21976 case $MKDIR_P in
21977 [\\/$]* | ?:[\\/]* ) ;;
21978 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21979 esac
9c60689e 21980_ACEOF
35fa52c0 21981
9c60689e
DWT
21982cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21983# If the template does not know about datarootdir, expand it.
21984# FIXME: This hack should be removed a few years after 2.60.
21985ac_datarootdir_hack=; ac_datarootdir_seen=
21986ac_sed_dataroot='
21987/datarootdir/ {
21988 p
21989 q
21990}
21991/@datadir@/p
21992/@docdir@/p
21993/@infodir@/p
21994/@localedir@/p
21995/@mandir@/p'
21996case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21997*datarootdir*) ac_datarootdir_seen=yes;;
21998*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22000$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22001_ACEOF
22002cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22003 ac_datarootdir_hack='
22004 s&@datadir@&$datadir&g
22005 s&@docdir@&$docdir&g
22006 s&@infodir@&$infodir&g
22007 s&@localedir@&$localedir&g
22008 s&@mandir@&$mandir&g
22009 s&\\\${datarootdir}&$datarootdir&g' ;;
22010esac
22011_ACEOF
35fa52c0 22012
9c60689e
DWT
22013# Neutralize VPATH when `$srcdir' = `.'.
22014# Shell code in configure.ac might set extrasub.
22015# FIXME: do we really want to maintain this feature?
22016cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22017ac_sed_extra="$ac_vpsub
22018$extrasub
22019_ACEOF
22020cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22021:t
22022/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22023s|@configure_input@|$ac_sed_conf_input|;t t
22024s&@top_builddir@&$ac_top_builddir_sub&;t t
22025s&@top_build_prefix@&$ac_top_build_prefix&;t t
22026s&@srcdir@&$ac_srcdir&;t t
22027s&@abs_srcdir@&$ac_abs_srcdir&;t t
22028s&@top_srcdir@&$ac_top_srcdir&;t t
22029s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22030s&@builddir@&$ac_builddir&;t t
22031s&@abs_builddir@&$ac_abs_builddir&;t t
22032s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22033s&@INSTALL@&$ac_INSTALL&;t t
66170b30 22034s&@MKDIR_P@&$ac_MKDIR_P&;t t
9c60689e
DWT
22035$ac_datarootdir_hack
22036"
ee134472
JF
22037eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
22038 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9c60689e
DWT
22039
22040test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
ee134472
JF
22041 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
22042 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
22043 "$ac_tmp/out"`; test -z "$ac_out"; } &&
9c60689e 22044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12833ad8 22045which seems to be undefined. Please make sure it is defined" >&5
9c60689e 22046$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12833ad8 22047which seems to be undefined. Please make sure it is defined" >&2;}
9c60689e 22048
ee134472 22049 rm -f "$ac_tmp/stdin"
9c60689e 22050 case $ac_file in
ee134472
JF
22051 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
22052 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
9c60689e 22053 esac \
12833ad8 22054 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9c60689e 22055 ;;
296ee9a6
JF
22056 :H)
22057 #
22058 # CONFIG_HEADER
22059 #
22060 if test x"$ac_file" != x-; then
22061 {
22062 $as_echo "/* $configure_input */" \
22063 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
22064 } >"$ac_tmp/config.h" \
22065 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22066 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
22067 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22068$as_echo "$as_me: $ac_file is unchanged" >&6;}
22069 else
22070 rm -f "$ac_file"
22071 mv "$ac_tmp/config.h" "$ac_file" \
22072 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22073 fi
22074 else
22075 $as_echo "/* $configure_input */" \
22076 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
22077 || as_fn_error $? "could not create -" "$LINENO" 5
22078 fi
22079# Compute "$ac_file"'s index in $config_headers.
22080_am_arg="$ac_file"
22081_am_stamp_count=1
22082for _am_header in $config_headers :; do
22083 case $_am_header in
22084 $_am_arg | $_am_arg:* )
22085 break ;;
22086 * )
22087 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22088 esac
22089done
22090echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22091$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22092 X"$_am_arg" : 'X\(//\)[^/]' \| \
22093 X"$_am_arg" : 'X\(//\)$' \| \
22094 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22095$as_echo X"$_am_arg" |
22096 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22097 s//\1/
22098 q
22099 }
22100 /^X\(\/\/\)[^/].*/{
22101 s//\1/
22102 q
22103 }
22104 /^X\(\/\/\)$/{
22105 s//\1/
22106 q
22107 }
22108 /^X\(\/\).*/{
22109 s//\1/
22110 q
22111 }
22112 s/.*/./; q'`/stamp-h$_am_stamp_count
22113 ;;
35fa52c0 22114
9c60689e
DWT
22115 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22116$as_echo "$as_me: executing $ac_file commands" >&6;}
22117 ;;
22118 esac
35fa52c0 22119
35fa52c0 22120
9c60689e 22121 case $ac_file$ac_mode in
66170b30
JF
22122 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22123 # Older Autoconf quotes --file arguments for eval, but not when files
22124 # are listed without --file. Let's play safe and only enable the eval
22125 # if we detect the quoting.
22126 case $CONFIG_FILES in
22127 *\'*) eval set x "$CONFIG_FILES" ;;
22128 *) set x $CONFIG_FILES ;;
22129 esac
22130 shift
22131 for mf
22132 do
22133 # Strip MF so we end up with the name of the file.
22134 mf=`echo "$mf" | sed -e 's/:.*$//'`
22135 # Check whether this is an Automake generated Makefile or not.
22136 # We used to match only the files named 'Makefile.in', but
22137 # some people rename them; so instead we look at the file content.
22138 # Grep'ing the first line is not enough: some people post-process
22139 # each Makefile.in and add a new line on top of each file to say so.
22140 # Grep'ing the whole file is not good either: AIX grep has a line
22141 # limit of 2048, but all sed's we know have understand at least 4000.
22142 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
22143 dirpart=`$as_dirname -- "$mf" ||
22144$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22145 X"$mf" : 'X\(//\)[^/]' \| \
22146 X"$mf" : 'X\(//\)$' \| \
22147 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22148$as_echo X"$mf" |
22149 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22150 s//\1/
22151 q
22152 }
22153 /^X\(\/\/\)[^/].*/{
22154 s//\1/
22155 q
22156 }
22157 /^X\(\/\/\)$/{
22158 s//\1/
22159 q
22160 }
22161 /^X\(\/\).*/{
22162 s//\1/
22163 q
22164 }
22165 s/.*/./; q'`
22166 else
22167 continue
22168 fi
22169 # Extract the definition of DEPDIR, am__include, and am__quote
22170 # from the Makefile without running 'make'.
22171 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22172 test -z "$DEPDIR" && continue
22173 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22174 test -z "am__include" && continue
22175 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22176 # Find all dependency output files, they are included files with
22177 # $(DEPDIR) in their names. We invoke sed twice because it is the
22178 # simplest approach to changing $(DEPDIR) to its actual value in the
22179 # expansion.
22180 for file in `sed -n "
22181 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22182 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
22183 # Make sure the directory exists.
22184 test -f "$dirpart/$file" && continue
22185 fdir=`$as_dirname -- "$file" ||
22186$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22187 X"$file" : 'X\(//\)[^/]' \| \
22188 X"$file" : 'X\(//\)$' \| \
22189 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22190$as_echo X"$file" |
22191 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22192 s//\1/
22193 q
22194 }
22195 /^X\(\/\/\)[^/].*/{
22196 s//\1/
22197 q
22198 }
22199 /^X\(\/\/\)$/{
22200 s//\1/
22201 q
22202 }
22203 /^X\(\/\).*/{
22204 s//\1/
22205 q
22206 }
22207 s/.*/./; q'`
22208 as_dir=$dirpart/$fdir; as_fn_mkdir_p
22209 # echo "creating $dirpart/$file"
22210 echo '# dummy' > "$dirpart/$file"
22211 done
22212 done
22213}
22214 ;;
9c60689e
DWT
22215 "libtool":C)
22216
22217 # See if we are running on zsh, and set the options which allow our
22218 # commands through without removal of \ escapes.
22219 if test -n "${ZSH_VERSION+set}" ; then
22220 setopt NO_GLOB_SUBST
35fa52c0 22221 fi
35fa52c0 22222
9c60689e
DWT
22223 cfgfile="${ofile}T"
22224 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22225 $RM "$cfgfile"
35fa52c0 22226
9c60689e
DWT
22227 cat <<_LT_EOF >> "$cfgfile"
22228#! $SHELL
35fa52c0 22229
9c60689e
DWT
22230# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
22231# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
22232# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22233# NOTE: Changes made to this file will be lost: look at ltmain.sh.
22234#
22235# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
53ba6704
JF
22236# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
22237# Foundation, Inc.
9c60689e
DWT
22238# Written by Gordon Matzigkeit, 1996
22239#
22240# This file is part of GNU Libtool.
22241#
22242# GNU Libtool is free software; you can redistribute it and/or
22243# modify it under the terms of the GNU General Public License as
22244# published by the Free Software Foundation; either version 2 of
22245# the License, or (at your option) any later version.
22246#
22247# As a special exception to the GNU General Public License,
22248# if you distribute this file as part of a program or library that
22249# is built using GNU Libtool, you may include this file under the
22250# same distribution terms that you use for the rest of that program.
22251#
22252# GNU Libtool is distributed in the hope that it will be useful,
22253# but WITHOUT ANY WARRANTY; without even the implied warranty of
22254# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22255# GNU General Public License for more details.
22256#
22257# You should have received a copy of the GNU General Public License
22258# along with GNU Libtool; see the file COPYING. If not, a copy
22259# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
22260# obtained by writing to the Free Software Foundation, Inc.,
22261# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
35fa52c0 22262
35fa52c0 22263
9c60689e
DWT
22264# The names of the tagged configurations supported by this script.
22265available_tags="CXX "
35fa52c0 22266
9c60689e 22267# ### BEGIN LIBTOOL CONFIG
35fa52c0 22268
9c60689e
DWT
22269# Which release of libtool.m4 was used?
22270macro_version=$macro_version
22271macro_revision=$macro_revision
35fa52c0 22272
9c60689e
DWT
22273# Whether or not to build static libraries.
22274build_old_libs=$enable_static
35fa52c0 22275
549f29b5
DWT
22276# Whether or not to build shared libraries.
22277build_libtool_libs=$enable_shared
22278
9c60689e
DWT
22279# What type of objects to build.
22280pic_mode=$pic_mode
35fa52c0 22281
9c60689e
DWT
22282# Whether or not to optimize for fast installation.
22283fast_install=$enable_fast_install
35fa52c0 22284
ee134472
JF
22285# Shell to use when invoking shell scripts.
22286SHELL=$lt_SHELL
22287
22288# An echo program that protects backslashes.
22289ECHO=$lt_ECHO
22290
53ba6704
JF
22291# The PATH separator for the build system.
22292PATH_SEPARATOR=$lt_PATH_SEPARATOR
22293
9c60689e
DWT
22294# The host system.
22295host_alias=$host_alias
22296host=$host
22297host_os=$host_os
35fa52c0 22298
9c60689e
DWT
22299# The build system.
22300build_alias=$build_alias
22301build=$build
22302build_os=$build_os
22303
22304# A sed program that does not truncate output.
22305SED=$lt_SED
22306
22307# Sed that helps us avoid accidentally triggering echo(1) options like -n.
22308Xsed="\$SED -e 1s/^X//"
22309
22310# A grep program that handles long lines.
22311GREP=$lt_GREP
22312
22313# An ERE matcher.
22314EGREP=$lt_EGREP
22315
22316# A literal string matcher.
22317FGREP=$lt_FGREP
22318
22319# A BSD- or MS-compatible name lister.
22320NM=$lt_NM
22321
22322# Whether we need soft or hard links.
22323LN_S=$lt_LN_S
22324
22325# What is the maximum length of a command?
22326max_cmd_len=$max_cmd_len
22327
22328# Object file suffix (normally "o").
22329objext=$ac_objext
22330
22331# Executable file suffix (normally "").
22332exeext=$exeext
22333
22334# whether the shell understands "unset".
22335lt_unset=$lt_unset
22336
22337# turn spaces into newlines.
22338SP2NL=$lt_lt_SP2NL
22339
22340# turn newlines into spaces.
22341NL2SP=$lt_lt_NL2SP
22342
ee134472
JF
22343# convert \$build file names to \$host format.
22344to_host_file_cmd=$lt_cv_to_host_file_cmd
22345
22346# convert \$build files to toolchain format.
22347to_tool_file_cmd=$lt_cv_to_tool_file_cmd
9c60689e
DWT
22348
22349# An object symbol dumper.
22350OBJDUMP=$lt_OBJDUMP
22351
22352# Method to check whether dependent libraries are shared objects.
22353deplibs_check_method=$lt_deplibs_check_method
22354
ee134472 22355# Command to use when deplibs_check_method = "file_magic".
9c60689e
DWT
22356file_magic_cmd=$lt_file_magic_cmd
22357
ee134472
JF
22358# How to find potential files when deplibs_check_method = "file_magic".
22359file_magic_glob=$lt_file_magic_glob
22360
22361# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
22362want_nocaseglob=$lt_want_nocaseglob
22363
22364# DLL creation program.
22365DLLTOOL=$lt_DLLTOOL
22366
22367# Command to associate shared and link libraries.
22368sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
22369
9c60689e
DWT
22370# The archiver.
22371AR=$lt_AR
ee134472
JF
22372
22373# Flags to create an archive.
9c60689e
DWT
22374AR_FLAGS=$lt_AR_FLAGS
22375
ee134472
JF
22376# How to feed a file listing to the archiver.
22377archiver_list_spec=$lt_archiver_list_spec
22378
9c60689e
DWT
22379# A symbol stripping program.
22380STRIP=$lt_STRIP
22381
22382# Commands used to install an old-style archive.
22383RANLIB=$lt_RANLIB
22384old_postinstall_cmds=$lt_old_postinstall_cmds
22385old_postuninstall_cmds=$lt_old_postuninstall_cmds
22386
ee134472
JF
22387# Whether to use a lock for old archive extraction.
22388lock_old_archive_extraction=$lock_old_archive_extraction
22389
9c60689e
DWT
22390# A C compiler.
22391LTCC=$lt_CC
22392
22393# LTCC compiler flags.
22394LTCFLAGS=$lt_CFLAGS
22395
22396# Take the output of nm and produce a listing of raw symbols and C names.
22397global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22398
22399# Transform the output of nm in a proper C declaration.
22400global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22401
22402# Transform the output of nm in a C name address pair.
22403global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22404
22405# Transform the output of nm in a C name address pair when lib prefix is needed.
22406global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22407
ee134472
JF
22408# Specify filename containing input files for \$NM.
22409nm_file_list_spec=$lt_nm_file_list_spec
9c60689e 22410
ee134472
JF
22411# The root where to search for dependent libraries,and in which our libraries should be installed.
22412lt_sysroot=$lt_sysroot
9c60689e 22413
ee134472
JF
22414# The name of the directory that contains temporary libtool files.
22415objdir=$objdir
9c60689e
DWT
22416
22417# Used to examine libraries when file_magic_cmd begins with "file".
22418MAGIC_CMD=$MAGIC_CMD
22419
22420# Must we lock files when doing compilation?
22421need_locks=$lt_need_locks
22422
ee134472
JF
22423# Manifest tool.
22424MANIFEST_TOOL=$lt_MANIFEST_TOOL
22425
9c60689e
DWT
22426# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22427DSYMUTIL=$lt_DSYMUTIL
22428
22429# Tool to change global to local symbols on Mac OS X.
22430NMEDIT=$lt_NMEDIT
22431
22432# Tool to manipulate fat objects and archives on Mac OS X.
22433LIPO=$lt_LIPO
22434
22435# ldd/readelf like tool for Mach-O binaries on Mac OS X.
22436OTOOL=$lt_OTOOL
22437
22438# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22439OTOOL64=$lt_OTOOL64
22440
22441# Old archive suffix (normally "a").
22442libext=$libext
22443
22444# Shared library suffix (normally ".so").
22445shrext_cmds=$lt_shrext_cmds
35fa52c0 22446
9c60689e
DWT
22447# The commands to extract the exported symbol list from a shared archive.
22448extract_expsyms_cmds=$lt_extract_expsyms_cmds
35fa52c0 22449
9c60689e
DWT
22450# Variables whose values should be saved in libtool wrapper scripts and
22451# restored at link time.
22452variables_saved_for_relink=$lt_variables_saved_for_relink
35fa52c0 22453
9c60689e
DWT
22454# Do we need the "lib" prefix for modules?
22455need_lib_prefix=$need_lib_prefix
35fa52c0 22456
9c60689e
DWT
22457# Do we need a version for libraries?
22458need_version=$need_version
35fa52c0 22459
9c60689e
DWT
22460# Library versioning type.
22461version_type=$version_type
35fa52c0 22462
9c60689e
DWT
22463# Shared library runtime path variable.
22464runpath_var=$runpath_var
35fa52c0 22465
9c60689e
DWT
22466# Shared library path variable.
22467shlibpath_var=$shlibpath_var
35fa52c0 22468
9c60689e
DWT
22469# Is shlibpath searched before the hard-coded library search path?
22470shlibpath_overrides_runpath=$shlibpath_overrides_runpath
35fa52c0 22471
9c60689e
DWT
22472# Format of library name prefix.
22473libname_spec=$lt_libname_spec
35fa52c0 22474
9c60689e
DWT
22475# List of archive names. First name is the real one, the rest are links.
22476# The last name is the one that the linker finds with -lNAME
22477library_names_spec=$lt_library_names_spec
dbadc56a 22478
9c60689e
DWT
22479# The coded name of the library, if different from the real name.
22480soname_spec=$lt_soname_spec
dbadc56a 22481
ee134472
JF
22482# Permission mode override for installation of shared libraries.
22483install_override_mode=$lt_install_override_mode
22484
9c60689e
DWT
22485# Command to use after installation of a shared archive.
22486postinstall_cmds=$lt_postinstall_cmds
35fa52c0 22487
9c60689e
DWT
22488# Command to use after uninstallation of a shared archive.
22489postuninstall_cmds=$lt_postuninstall_cmds
dbadc56a 22490
9c60689e
DWT
22491# Commands used to finish a libtool library installation in a directory.
22492finish_cmds=$lt_finish_cmds
35fa52c0 22493
9c60689e
DWT
22494# As "finish_cmds", except a single script fragment to be evaled but
22495# not shown.
22496finish_eval=$lt_finish_eval
35fa52c0 22497
9c60689e
DWT
22498# Whether we should hardcode library paths into libraries.
22499hardcode_into_libs=$hardcode_into_libs
dbadc56a 22500
9c60689e
DWT
22501# Compile-time system search path for libraries.
22502sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
35fa52c0 22503
9c60689e
DWT
22504# Run-time system search path for libraries.
22505sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
dbadc56a 22506
9c60689e
DWT
22507# Whether dlopen is supported.
22508dlopen_support=$enable_dlopen
dbadc56a 22509
9c60689e
DWT
22510# Whether dlopen of programs is supported.
22511dlopen_self=$enable_dlopen_self
35fa52c0 22512
9c60689e
DWT
22513# Whether dlopen of statically linked programs is supported.
22514dlopen_self_static=$enable_dlopen_self_static
35fa52c0 22515
9c60689e
DWT
22516# Commands to strip libraries.
22517old_striplib=$lt_old_striplib
22518striplib=$lt_striplib
35fa52c0 22519
35fa52c0 22520
9c60689e
DWT
22521# The linker used to build libraries.
22522LD=$lt_LD
dbadc56a 22523
ee134472
JF
22524# How to create reloadable object files.
22525reload_flag=$lt_reload_flag
22526reload_cmds=$lt_reload_cmds
22527
9c60689e
DWT
22528# Commands used to build an old-style archive.
22529old_archive_cmds=$lt_old_archive_cmds
dbadc56a 22530
9c60689e
DWT
22531# A language specific compiler.
22532CC=$lt_compiler
35fa52c0 22533
9c60689e
DWT
22534# Is the compiler the GNU compiler?
22535with_gcc=$GCC
dbadc56a 22536
9c60689e
DWT
22537# Compiler flag to turn off builtin functions.
22538no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
dbadc56a 22539
9c60689e
DWT
22540# Additional compiler flags for building library objects.
22541pic_flag=$lt_lt_prog_compiler_pic
35fa52c0 22542
ee134472
JF
22543# How to pass a linker flag through the compiler.
22544wl=$lt_lt_prog_compiler_wl
22545
9c60689e
DWT
22546# Compiler flag to prevent dynamic linking.
22547link_static_flag=$lt_lt_prog_compiler_static
35fa52c0 22548
9c60689e
DWT
22549# Does compiler simultaneously support -c and -o options?
22550compiler_c_o=$lt_lt_cv_prog_compiler_c_o
dbadc56a 22551
9c60689e
DWT
22552# Whether or not to add -lc for building shared libraries.
22553build_libtool_need_lc=$archive_cmds_need_lc
35fa52c0 22554
9c60689e
DWT
22555# Whether or not to disallow shared libs when runtime libs are static.
22556allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
35fa52c0 22557
9c60689e
DWT
22558# Compiler flag to allow reflexive dlopens.
22559export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
35fa52c0 22560
9c60689e
DWT
22561# Compiler flag to generate shared objects directly from archives.
22562whole_archive_flag_spec=$lt_whole_archive_flag_spec
dbadc56a 22563
9c60689e
DWT
22564# Whether the compiler copes with passing no objects directly.
22565compiler_needs_object=$lt_compiler_needs_object
dbadc56a 22566
9c60689e
DWT
22567# Create an old-style archive from a shared archive.
22568old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
dbadc56a 22569
9c60689e
DWT
22570# Create a temporary old-style archive to link instead of a shared archive.
22571old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
dbadc56a 22572
9c60689e
DWT
22573# Commands used to build a shared archive.
22574archive_cmds=$lt_archive_cmds
22575archive_expsym_cmds=$lt_archive_expsym_cmds
35fa52c0 22576
9c60689e
DWT
22577# Commands used to build a loadable module if different from building
22578# a shared archive.
22579module_cmds=$lt_module_cmds
22580module_expsym_cmds=$lt_module_expsym_cmds
dbadc56a 22581
9c60689e
DWT
22582# Whether we are building with GNU ld or not.
22583with_gnu_ld=$lt_with_gnu_ld
6b66678a 22584
9c60689e
DWT
22585# Flag that allows shared libraries with undefined symbols to be built.
22586allow_undefined_flag=$lt_allow_undefined_flag
6b66678a 22587
9c60689e
DWT
22588# Flag that enforces no undefined symbols.
22589no_undefined_flag=$lt_no_undefined_flag
6b66678a 22590
9c60689e
DWT
22591# Flag to hardcode \$libdir into a binary during linking.
22592# This must work even if \$libdir does not exist
22593hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
6b66678a 22594
9c60689e
DWT
22595# Whether we need a single "-rpath" flag with a separated argument.
22596hardcode_libdir_separator=$lt_hardcode_libdir_separator
6b66678a 22597
9c60689e
DWT
22598# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22599# DIR into the resulting binary.
22600hardcode_direct=$hardcode_direct
6b66678a 22601
9c60689e
DWT
22602# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22603# DIR into the resulting binary and the resulting library dependency is
22604# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22605# library is relocated.
22606hardcode_direct_absolute=$hardcode_direct_absolute
6b66678a 22607
9c60689e
DWT
22608# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22609# into the resulting binary.
22610hardcode_minus_L=$hardcode_minus_L
6b66678a 22611
9c60689e
DWT
22612# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22613# into the resulting binary.
22614hardcode_shlibpath_var=$hardcode_shlibpath_var
6b66678a 22615
9c60689e
DWT
22616# Set to "yes" if building a shared library automatically hardcodes DIR
22617# into the library and all subsequent libraries and executables linked
22618# against it.
22619hardcode_automatic=$hardcode_automatic
6b66678a 22620
9c60689e
DWT
22621# Set to yes if linker adds runtime paths of dependent libraries
22622# to runtime path list.
22623inherit_rpath=$inherit_rpath
6b66678a 22624
9c60689e
DWT
22625# Whether libtool must link a program against all its dependency libraries.
22626link_all_deplibs=$link_all_deplibs
22627
9c60689e
DWT
22628# Set to "yes" if exported symbols are required.
22629always_export_symbols=$always_export_symbols
6b66678a 22630
9c60689e
DWT
22631# The commands to list exported symbols.
22632export_symbols_cmds=$lt_export_symbols_cmds
6b66678a 22633
9c60689e
DWT
22634# Symbols that should not be listed in the preloaded symbols.
22635exclude_expsyms=$lt_exclude_expsyms
6b66678a 22636
9c60689e
DWT
22637# Symbols that must always be exported.
22638include_expsyms=$lt_include_expsyms
6b66678a 22639
9c60689e
DWT
22640# Commands necessary for linking programs (against libraries) with templates.
22641prelink_cmds=$lt_prelink_cmds
6b66678a 22642
ee134472
JF
22643# Commands necessary for finishing linking programs.
22644postlink_cmds=$lt_postlink_cmds
22645
9c60689e
DWT
22646# Specify filename containing input files.
22647file_list_spec=$lt_file_list_spec
6b66678a 22648
9c60689e
DWT
22649# How to hardcode a shared library path into an executable.
22650hardcode_action=$hardcode_action
22651
22652# The directories searched by this compiler when creating a shared library.
22653compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
22654
22655# Dependencies to place before and after the objects being linked to
22656# create a shared library.
22657predep_objects=$lt_predep_objects
22658postdep_objects=$lt_postdep_objects
22659predeps=$lt_predeps
22660postdeps=$lt_postdeps
22661
22662# The library search path used internally by the compiler when linking
22663# a shared library.
22664compiler_lib_search_path=$lt_compiler_lib_search_path
22665
22666# ### END LIBTOOL CONFIG
22667
22668_LT_EOF
22669
22670 case $host_os in
22671 aix3*)
22672 cat <<\_LT_EOF >> "$cfgfile"
22673# AIX sometimes has problems with the GCC collect2 program. For some
22674# reason, if we set the COLLECT_NAMES environment variable, the problems
22675# vanish in a puff of smoke.
22676if test "X${COLLECT_NAMES+set}" != Xset; then
22677 COLLECT_NAMES=
22678 export COLLECT_NAMES
6b66678a 22679fi
9c60689e
DWT
22680_LT_EOF
22681 ;;
22682 esac
6b66678a
DWT
22683
22684
9c60689e 22685ltmain="$ac_aux_dir/ltmain.sh"
6b66678a 22686
9c60689e
DWT
22687
22688 # We use sed instead of cat because bash on DJGPP gets confused if
22689 # if finds mixed CR/LF and LF-only lines. Since sed operates in
22690 # text mode, it properly converts lines to CR/LF. This bash problem
22691 # is reportedly fixed, but why not run on old versions too?
ee134472
JF
22692 sed '$q' "$ltmain" >> "$cfgfile" \
22693 || (rm -f "$cfgfile"; exit 1)
22694
22695 if test x"$xsi_shell" = xyes; then
22696 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
22697func_dirname ()\
22698{\
22699\ case ${1} in\
22700\ */*) func_dirname_result="${1%/*}${2}" ;;\
22701\ * ) func_dirname_result="${3}" ;;\
22702\ esac\
22703} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
22704 && mv -f "$cfgfile.tmp" "$cfgfile" \
22705 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22706test 0 -eq $? || _lt_function_replace_fail=:
22707
22708
22709 sed -e '/^func_basename ()$/,/^} # func_basename /c\
22710func_basename ()\
22711{\
22712\ func_basename_result="${1##*/}"\
22713} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
22714 && mv -f "$cfgfile.tmp" "$cfgfile" \
22715 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22716test 0 -eq $? || _lt_function_replace_fail=:
22717
22718
22719 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
22720func_dirname_and_basename ()\
22721{\
22722\ case ${1} in\
22723\ */*) func_dirname_result="${1%/*}${2}" ;;\
22724\ * ) func_dirname_result="${3}" ;;\
22725\ esac\
22726\ func_basename_result="${1##*/}"\
22727} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
22728 && mv -f "$cfgfile.tmp" "$cfgfile" \
22729 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22730test 0 -eq $? || _lt_function_replace_fail=:
22731
22732
22733 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
22734func_stripname ()\
22735{\
22736\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
22737\ # positional parameters, so assign one to ordinary parameter first.\
22738\ func_stripname_result=${3}\
22739\ func_stripname_result=${func_stripname_result#"${1}"}\
22740\ func_stripname_result=${func_stripname_result%"${2}"}\
22741} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
22742 && mv -f "$cfgfile.tmp" "$cfgfile" \
22743 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22744test 0 -eq $? || _lt_function_replace_fail=:
22745
22746
22747 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
22748func_split_long_opt ()\
22749{\
22750\ func_split_long_opt_name=${1%%=*}\
22751\ func_split_long_opt_arg=${1#*=}\
22752} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
22753 && mv -f "$cfgfile.tmp" "$cfgfile" \
22754 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22755test 0 -eq $? || _lt_function_replace_fail=:
22756
22757
22758 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
22759func_split_short_opt ()\
22760{\
22761\ func_split_short_opt_arg=${1#??}\
22762\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
22763} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
22764 && mv -f "$cfgfile.tmp" "$cfgfile" \
22765 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22766test 0 -eq $? || _lt_function_replace_fail=:
22767
22768
22769 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
22770func_lo2o ()\
22771{\
22772\ case ${1} in\
22773\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
22774\ *) func_lo2o_result=${1} ;;\
22775\ esac\
22776} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
22777 && mv -f "$cfgfile.tmp" "$cfgfile" \
22778 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22779test 0 -eq $? || _lt_function_replace_fail=:
22780
22781
22782 sed -e '/^func_xform ()$/,/^} # func_xform /c\
22783func_xform ()\
22784{\
22785 func_xform_result=${1%.*}.lo\
22786} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
22787 && mv -f "$cfgfile.tmp" "$cfgfile" \
22788 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22789test 0 -eq $? || _lt_function_replace_fail=:
22790
22791
22792 sed -e '/^func_arith ()$/,/^} # func_arith /c\
22793func_arith ()\
22794{\
22795 func_arith_result=$(( $* ))\
22796} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
22797 && mv -f "$cfgfile.tmp" "$cfgfile" \
22798 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22799test 0 -eq $? || _lt_function_replace_fail=:
22800
22801
22802 sed -e '/^func_len ()$/,/^} # func_len /c\
22803func_len ()\
22804{\
22805 func_len_result=${#1}\
22806} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
22807 && mv -f "$cfgfile.tmp" "$cfgfile" \
22808 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22809test 0 -eq $? || _lt_function_replace_fail=:
22810
22811fi
22812
22813if test x"$lt_shell_append" = xyes; then
22814 sed -e '/^func_append ()$/,/^} # func_append /c\
22815func_append ()\
22816{\
22817 eval "${1}+=\\${2}"\
22818} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
22819 && mv -f "$cfgfile.tmp" "$cfgfile" \
22820 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22821test 0 -eq $? || _lt_function_replace_fail=:
22822
22823
22824 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
22825func_append_quoted ()\
22826{\
22827\ func_quote_for_eval "${2}"\
22828\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
22829} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
22830 && mv -f "$cfgfile.tmp" "$cfgfile" \
22831 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22832test 0 -eq $? || _lt_function_replace_fail=:
22833
22834
22835 # Save a `func_append' function call where possible by direct use of '+='
22836 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
22837 && mv -f "$cfgfile.tmp" "$cfgfile" \
22838 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22839 test 0 -eq $? || _lt_function_replace_fail=:
22840else
22841 # Save a `func_append' function call even when '+=' is not available
22842 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
22843 && mv -f "$cfgfile.tmp" "$cfgfile" \
22844 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22845 test 0 -eq $? || _lt_function_replace_fail=:
22846fi
22847
22848if test x"$_lt_function_replace_fail" = x":"; then
22849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
22850$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
22851fi
22852
22853
22854 mv -f "$cfgfile" "$ofile" ||
9c60689e
DWT
22855 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22856 chmod +x "$ofile"
22857
22858
22859 cat <<_LT_EOF >> "$ofile"
22860
22861# ### BEGIN LIBTOOL TAG CONFIG: CXX
22862
22863# The linker used to build libraries.
22864LD=$lt_LD_CXX
22865
ee134472
JF
22866# How to create reloadable object files.
22867reload_flag=$lt_reload_flag_CXX
22868reload_cmds=$lt_reload_cmds_CXX
22869
9c60689e
DWT
22870# Commands used to build an old-style archive.
22871old_archive_cmds=$lt_old_archive_cmds_CXX
22872
22873# A language specific compiler.
22874CC=$lt_compiler_CXX
22875
22876# Is the compiler the GNU compiler?
22877with_gcc=$GCC_CXX
22878
22879# Compiler flag to turn off builtin functions.
22880no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
6b66678a 22881
9c60689e
DWT
22882# Additional compiler flags for building library objects.
22883pic_flag=$lt_lt_prog_compiler_pic_CXX
6b66678a 22884
ee134472
JF
22885# How to pass a linker flag through the compiler.
22886wl=$lt_lt_prog_compiler_wl_CXX
22887
9c60689e
DWT
22888# Compiler flag to prevent dynamic linking.
22889link_static_flag=$lt_lt_prog_compiler_static_CXX
6b66678a 22890
9c60689e
DWT
22891# Does compiler simultaneously support -c and -o options?
22892compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
dbadc56a 22893
9c60689e
DWT
22894# Whether or not to add -lc for building shared libraries.
22895build_libtool_need_lc=$archive_cmds_need_lc_CXX
dbadc56a 22896
9c60689e
DWT
22897# Whether or not to disallow shared libs when runtime libs are static.
22898allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
35fa52c0 22899
9c60689e
DWT
22900# Compiler flag to allow reflexive dlopens.
22901export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
35fa52c0 22902
9c60689e
DWT
22903# Compiler flag to generate shared objects directly from archives.
22904whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
35fa52c0 22905
9c60689e
DWT
22906# Whether the compiler copes with passing no objects directly.
22907compiler_needs_object=$lt_compiler_needs_object_CXX
35fa52c0 22908
9c60689e
DWT
22909# Create an old-style archive from a shared archive.
22910old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
35fa52c0 22911
9c60689e
DWT
22912# Create a temporary old-style archive to link instead of a shared archive.
22913old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
35fa52c0 22914
9c60689e
DWT
22915# Commands used to build a shared archive.
22916archive_cmds=$lt_archive_cmds_CXX
22917archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
6b66678a 22918
9c60689e
DWT
22919# Commands used to build a loadable module if different from building
22920# a shared archive.
22921module_cmds=$lt_module_cmds_CXX
22922module_expsym_cmds=$lt_module_expsym_cmds_CXX
6b66678a 22923
9c60689e
DWT
22924# Whether we are building with GNU ld or not.
22925with_gnu_ld=$lt_with_gnu_ld_CXX
6b66678a 22926
9c60689e
DWT
22927# Flag that allows shared libraries with undefined symbols to be built.
22928allow_undefined_flag=$lt_allow_undefined_flag_CXX
35fa52c0 22929
9c60689e
DWT
22930# Flag that enforces no undefined symbols.
22931no_undefined_flag=$lt_no_undefined_flag_CXX
35fa52c0 22932
9c60689e
DWT
22933# Flag to hardcode \$libdir into a binary during linking.
22934# This must work even if \$libdir does not exist
22935hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
6b66678a 22936
9c60689e
DWT
22937# Whether we need a single "-rpath" flag with a separated argument.
22938hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
6b66678a 22939
9c60689e
DWT
22940# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22941# DIR into the resulting binary.
22942hardcode_direct=$hardcode_direct_CXX
6b66678a 22943
9c60689e
DWT
22944# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22945# DIR into the resulting binary and the resulting library dependency is
22946# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22947# library is relocated.
22948hardcode_direct_absolute=$hardcode_direct_absolute_CXX
6b66678a 22949
9c60689e
DWT
22950# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22951# into the resulting binary.
22952hardcode_minus_L=$hardcode_minus_L_CXX
35fa52c0 22953
9c60689e
DWT
22954# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22955# into the resulting binary.
22956hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
35fa52c0 22957
9c60689e
DWT
22958# Set to "yes" if building a shared library automatically hardcodes DIR
22959# into the library and all subsequent libraries and executables linked
22960# against it.
22961hardcode_automatic=$hardcode_automatic_CXX
6b66678a 22962
9c60689e
DWT
22963# Set to yes if linker adds runtime paths of dependent libraries
22964# to runtime path list.
22965inherit_rpath=$inherit_rpath_CXX
6b66678a 22966
9c60689e
DWT
22967# Whether libtool must link a program against all its dependency libraries.
22968link_all_deplibs=$link_all_deplibs_CXX
6b66678a 22969
9c60689e
DWT
22970# Set to "yes" if exported symbols are required.
22971always_export_symbols=$always_export_symbols_CXX
6b66678a 22972
9c60689e
DWT
22973# The commands to list exported symbols.
22974export_symbols_cmds=$lt_export_symbols_cmds_CXX
6b66678a 22975
9c60689e
DWT
22976# Symbols that should not be listed in the preloaded symbols.
22977exclude_expsyms=$lt_exclude_expsyms_CXX
6b66678a 22978
9c60689e
DWT
22979# Symbols that must always be exported.
22980include_expsyms=$lt_include_expsyms_CXX
6b66678a 22981
9c60689e
DWT
22982# Commands necessary for linking programs (against libraries) with templates.
22983prelink_cmds=$lt_prelink_cmds_CXX
6b66678a 22984
ee134472
JF
22985# Commands necessary for finishing linking programs.
22986postlink_cmds=$lt_postlink_cmds_CXX
22987
9c60689e
DWT
22988# Specify filename containing input files.
22989file_list_spec=$lt_file_list_spec_CXX
dbadc56a 22990
9c60689e
DWT
22991# How to hardcode a shared library path into an executable.
22992hardcode_action=$hardcode_action_CXX
309b0535 22993
9c60689e
DWT
22994# The directories searched by this compiler when creating a shared library.
22995compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
309b0535 22996
9c60689e
DWT
22997# Dependencies to place before and after the objects being linked to
22998# create a shared library.
22999predep_objects=$lt_predep_objects_CXX
23000postdep_objects=$lt_postdep_objects_CXX
23001predeps=$lt_predeps_CXX
23002postdeps=$lt_postdeps_CXX
309b0535 23003
9c60689e
DWT
23004# The library search path used internally by the compiler when linking
23005# a shared library.
23006compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
23007
23008# ### END LIBTOOL TAG CONFIG: CXX
23009_LT_EOF
23010
23011 ;;
23012
23013 esac
23014done # for ac_tag
23015
23016
23017as_fn_exit 0
23018_ACEOF
23019ac_clean_files=$ac_clean_files_save
23020
23021test $ac_write_fail = 0 ||
12833ad8 23022 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
9c60689e
DWT
23023
23024
23025# configure is writing to config.log, and then calls config.status.
23026# config.status does its own redirection, appending to config.log.
23027# Unfortunately, on DOS this fails, as config.log is still kept open
23028# by configure, so config.status won't be able to write to it; its
23029# output is simply discarded. So we exec the FD to /dev/null,
23030# effectively closing config.log, so it can be properly (re)opened and
23031# appended to by config.status. When coming back to configure, we
23032# need to make the FD available again.
23033if test "$no_create" != yes; then
23034 ac_cs_success=:
23035 ac_config_status_args=
23036 test "$silent" = yes &&
23037 ac_config_status_args="$ac_config_status_args --quiet"
23038 exec 5>/dev/null
23039 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23040 exec 5>>config.log
23041 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23042 # would make configure fail if this is the last instruction.
12833ad8 23043 $ac_cs_success || as_fn_exit 1
309b0535 23044fi
9c60689e
DWT
23045if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23047$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23048fi
23049