]> git.saurik.com Git - cycript.git/blame - configure
Remove XXX as cur_term is not part of readline.
[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
794e88e7 643CY_ATTACH_GROUP
66170b30 644CY_MACH
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
309b0535 661LIBFFI_LIBS
35fa52c0 662LIBFFI_CFLAGS
a243b558
JF
663CY_EXECUTE_FALSE
664CY_EXECUTE_TRUE
d4f27204 665LTLIBAPR
3fd51f51 666CY_EXECUTE
35fa52c0
DWT
667WEBKIT_LIBS
668WEBKIT_CFLAGS
a243b558 669CY_ARCH
9228a43a 670CY_FILTERS
e9c9a47c 671GNUTAR
e9c9a47c
DWT
672GPERF
673FLEX
674BISON
675TIME
66170b30 676GIT
e9c9a47c 677_BASH
12833ad8 678GMAKE
632b71ea 679ifGNUmake
12833ad8
JF
680PKG_CONFIG_LIBDIR
681PKG_CONFIG_PATH
3fd51f51 682PKG_CONFIG
a243b558 683CXXCPP
9c60689e
DWT
684CPP
685OTOOL64
686OTOOL
687LIPO
688NMEDIT
689DSYMUTIL
ee134472 690MANIFEST_TOOL
9c60689e 691RANLIB
ee134472 692DLLTOOL
9c60689e
DWT
693OBJDUMP
694LN_S
695NM
696ac_ct_DUMPBIN
697DUMPBIN
698LD
699FGREP
700EGREP
701GREP
702SED
a243b558
JF
703host_os
704host_vendor
705host_cpu
706host
707build_os
708build_vendor
709build_cpu
710build
711LIBTOOL
66170b30
JF
712am__fastdepCC_FALSE
713am__fastdepCC_TRUE
714CCDEPMODE
a243b558
JF
715ac_ct_CC
716CFLAGS
717CC
718ac_ct_AR
719AR
720am__fastdepOBJCXX_FALSE
721am__fastdepOBJCXX_TRUE
722OBJCXXDEPMODE
723ac_ct_OBJCXX
724OBJCXXFLAGS
725OBJCXX
726am__fastdepCXX_FALSE
727am__fastdepCXX_TRUE
728CXXDEPMODE
66170b30
JF
729am__nodep
730AMDEPBACKSLASH
731AMDEP_FALSE
732AMDEP_TRUE
733am__quote
734am__include
735DEPDIR
35fa52c0
DWT
736OBJEXT
737EXEEXT
a243b558 738ac_ct_CXX
35fa52c0
DWT
739CPPFLAGS
740LDFLAGS
a243b558
JF
741CXXFLAGS
742CXX
66170b30
JF
743AM_BACKSLASH
744AM_DEFAULT_VERBOSITY
745AM_DEFAULT_V
746AM_V
747am__untar
748am__tar
749AMTAR
750am__leading_dot
751SET_MAKE
752AWK
753mkdir_p
754MKDIR_P
755INSTALL_STRIP_PROGRAM
756STRIP
757install_sh
758MAKEINFO
759AUTOHEADER
760AUTOMAKE
761AUTOCONF
762ACLOCAL
763VERSION
764PACKAGE
765CYGPATH_W
766am__isrc
767INSTALL_DATA
768INSTALL_SCRIPT
769INSTALL_PROGRAM
dbadc56a 770target_alias
c7aa54aa
DWT
771host_alias
772build_alias
773LIBS
774ECHO_T
775ECHO_N
776ECHO_C
777DEFS
778mandir
779localedir
780libdir
781psdir
782pdfdir
783dvidir
784htmldir
785infodir
786docdir
787oldincludedir
788includedir
789localstatedir
790sharedstatedir
791sysconfdir
792datadir
793datarootdir
794libexecdir
795sbindir
796bindir
797program_transform_name
798prefix
799exec_prefix
800PACKAGE_URL
801PACKAGE_BUGREPORT
802PACKAGE_STRING
803PACKAGE_VERSION
804PACKAGE_TARNAME
805PACKAGE_NAME
806PATH_SEPARATOR
807SHELL'
808ac_subst_files=''
809ac_user_opts='
810enable_option_checking
66170b30 811enable_silent_rules
a243b558 812enable_dependency_tracking
9c60689e 813enable_static
549f29b5 814enable_shared
9c60689e
DWT
815with_pic
816enable_fast_install
35fa52c0 817with_gnu_ld
ee134472 818with_sysroot
9c60689e 819enable_libtool_lock
632b71ea 820with_frameworks
5053a6d1 821enable_javascript
66170b30 822with_apr
35fa52c0
DWT
823enable_rpath
824with_libiconv_prefix
c7aa54aa
DWT
825'
826 ac_precious_vars='build_alias
827host_alias
dbadc56a 828target_alias
a243b558
JF
829CXX
830CXXFLAGS
dbadc56a
DWT
831LDFLAGS
832LIBS
833CPPFLAGS
a243b558
JF
834CCC
835OBJCXX
836OBJCXXFLAGS
837CC
838CFLAGS
9c60689e 839CPP
a243b558 840CXXCPP
3fd51f51 841PKG_CONFIG
12833ad8
JF
842PKG_CONFIG_PATH
843PKG_CONFIG_LIBDIR
e9c9a47c
DWT
844BISON
845FLEX
846GPERF
66170b30 847GNUTAR
35fa52c0
DWT
848WEBKIT_CFLAGS
849WEBKIT_LIBS
a667869d 850LIBFFI_CFLAGS
790e5246
DWT
851LIBFFI_LIBS
852GNUSTEP_CONFIG'
c7aa54aa
DWT
853
854
855# Initialize some variables set by options.
856ac_init_help=
857ac_init_version=false
858ac_unrecognized_opts=
859ac_unrecognized_sep=
860# The variables have the same names as the options, with
861# dashes changed to underlines.
862cache_file=/dev/null
863exec_prefix=NONE
864no_create=
865no_recursion=
866prefix=NONE
867program_prefix=NONE
868program_suffix=NONE
869program_transform_name=s,x,x,
870silent=
871site=
872srcdir=
873verbose=
874x_includes=NONE
875x_libraries=NONE
876
877# Installation directory options.
878# These are left unexpanded so users can "make install exec_prefix=/foo"
879# and all the variables that are supposed to be based on exec_prefix
880# by default will actually change.
881# Use braces instead of parens because sh, perl, etc. also accept them.
882# (The list follows the same order as the GNU Coding Standards.)
883bindir='${exec_prefix}/bin'
884sbindir='${exec_prefix}/sbin'
885libexecdir='${exec_prefix}/libexec'
886datarootdir='${prefix}/share'
887datadir='${datarootdir}'
888sysconfdir='${prefix}/etc'
889sharedstatedir='${prefix}/com'
890localstatedir='${prefix}/var'
891includedir='${prefix}/include'
892oldincludedir='/usr/include'
893docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
894infodir='${datarootdir}/info'
895htmldir='${docdir}'
896dvidir='${docdir}'
897pdfdir='${docdir}'
898psdir='${docdir}'
899libdir='${exec_prefix}/lib'
900localedir='${datarootdir}/locale'
901mandir='${datarootdir}/man'
902
903ac_prev=
904ac_dashdash=
905for ac_option
906do
907 # If the previous option needs an argument, assign it.
908 if test -n "$ac_prev"; then
909 eval $ac_prev=\$ac_option
910 ac_prev=
911 continue
912 fi
913
914 case $ac_option in
12833ad8
JF
915 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
916 *=) ac_optarg= ;;
917 *) ac_optarg=yes ;;
c7aa54aa
DWT
918 esac
919
920 # Accept the important Cygnus configure options, so we can diagnose typos.
921
922 case $ac_dashdash$ac_option in
923 --)
924 ac_dashdash=yes ;;
925
926 -bindir | --bindir | --bindi | --bind | --bin | --bi)
927 ac_prev=bindir ;;
928 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
929 bindir=$ac_optarg ;;
930
931 -build | --build | --buil | --bui | --bu)
932 ac_prev=build_alias ;;
933 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
934 build_alias=$ac_optarg ;;
935
936 -cache-file | --cache-file | --cache-fil | --cache-fi \
937 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
938 ac_prev=cache_file ;;
939 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
940 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
941 cache_file=$ac_optarg ;;
942
943 --config-cache | -C)
944 cache_file=config.cache ;;
945
946 -datadir | --datadir | --datadi | --datad)
947 ac_prev=datadir ;;
948 -datadir=* | --datadir=* | --datadi=* | --datad=*)
949 datadir=$ac_optarg ;;
950
951 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
952 | --dataroo | --dataro | --datar)
953 ac_prev=datarootdir ;;
954 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
955 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
956 datarootdir=$ac_optarg ;;
957
958 -disable-* | --disable-*)
959 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
960 # Reject names that are not valid shell variable names.
961 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
12833ad8 962 as_fn_error $? "invalid feature name: $ac_useropt"
c7aa54aa
DWT
963 ac_useropt_orig=$ac_useropt
964 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
965 case $ac_user_opts in
966 *"
967"enable_$ac_useropt"
968"*) ;;
969 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
970 ac_unrecognized_sep=', ';;
971 esac
972 eval enable_$ac_useropt=no ;;
973
974 -docdir | --docdir | --docdi | --doc | --do)
975 ac_prev=docdir ;;
976 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
977 docdir=$ac_optarg ;;
978
979 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
980 ac_prev=dvidir ;;
981 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
982 dvidir=$ac_optarg ;;
983
984 -enable-* | --enable-*)
985 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
986 # Reject names that are not valid shell variable names.
987 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
12833ad8 988 as_fn_error $? "invalid feature name: $ac_useropt"
c7aa54aa
DWT
989 ac_useropt_orig=$ac_useropt
990 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
991 case $ac_user_opts in
992 *"
993"enable_$ac_useropt"
994"*) ;;
995 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
996 ac_unrecognized_sep=', ';;
997 esac
998 eval enable_$ac_useropt=\$ac_optarg ;;
999
1000 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1001 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1002 | --exec | --exe | --ex)
1003 ac_prev=exec_prefix ;;
1004 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1005 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1006 | --exec=* | --exe=* | --ex=*)
1007 exec_prefix=$ac_optarg ;;
1008
1009 -gas | --gas | --ga | --g)
1010 # Obsolete; use --with-gas.
1011 with_gas=yes ;;
1012
1013 -help | --help | --hel | --he | -h)
1014 ac_init_help=long ;;
1015 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1016 ac_init_help=recursive ;;
1017 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1018 ac_init_help=short ;;
1019
1020 -host | --host | --hos | --ho)
1021 ac_prev=host_alias ;;
1022 -host=* | --host=* | --hos=* | --ho=*)
1023 host_alias=$ac_optarg ;;
1024
1025 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1026 ac_prev=htmldir ;;
1027 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1028 | --ht=*)
1029 htmldir=$ac_optarg ;;
1030
1031 -includedir | --includedir | --includedi | --included | --include \
1032 | --includ | --inclu | --incl | --inc)
1033 ac_prev=includedir ;;
1034 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1035 | --includ=* | --inclu=* | --incl=* | --inc=*)
1036 includedir=$ac_optarg ;;
1037
1038 -infodir | --infodir | --infodi | --infod | --info | --inf)
1039 ac_prev=infodir ;;
1040 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1041 infodir=$ac_optarg ;;
1042
1043 -libdir | --libdir | --libdi | --libd)
1044 ac_prev=libdir ;;
1045 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1046 libdir=$ac_optarg ;;
1047
1048 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1049 | --libexe | --libex | --libe)
1050 ac_prev=libexecdir ;;
1051 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1052 | --libexe=* | --libex=* | --libe=*)
1053 libexecdir=$ac_optarg ;;
1054
1055 -localedir | --localedir | --localedi | --localed | --locale)
1056 ac_prev=localedir ;;
1057 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1058 localedir=$ac_optarg ;;
1059
1060 -localstatedir | --localstatedir | --localstatedi | --localstated \
1061 | --localstate | --localstat | --localsta | --localst | --locals)
1062 ac_prev=localstatedir ;;
1063 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1064 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1065 localstatedir=$ac_optarg ;;
1066
1067 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1068 ac_prev=mandir ;;
1069 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1070 mandir=$ac_optarg ;;
1071
1072 -nfp | --nfp | --nf)
1073 # Obsolete; use --without-fp.
1074 with_fp=no ;;
1075
1076 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1077 | --no-cr | --no-c | -n)
1078 no_create=yes ;;
1079
1080 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1081 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1082 no_recursion=yes ;;
1083
1084 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1085 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1086 | --oldin | --oldi | --old | --ol | --o)
1087 ac_prev=oldincludedir ;;
1088 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1089 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1090 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1091 oldincludedir=$ac_optarg ;;
1092
1093 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1094 ac_prev=prefix ;;
1095 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1096 prefix=$ac_optarg ;;
1097
1098 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1099 | --program-pre | --program-pr | --program-p)
1100 ac_prev=program_prefix ;;
1101 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1102 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1103 program_prefix=$ac_optarg ;;
1104
1105 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1106 | --program-suf | --program-su | --program-s)
1107 ac_prev=program_suffix ;;
1108 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1109 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1110 program_suffix=$ac_optarg ;;
1111
1112 -program-transform-name | --program-transform-name \
1113 | --program-transform-nam | --program-transform-na \
1114 | --program-transform-n | --program-transform- \
1115 | --program-transform | --program-transfor \
1116 | --program-transfo | --program-transf \
1117 | --program-trans | --program-tran \
1118 | --progr-tra | --program-tr | --program-t)
1119 ac_prev=program_transform_name ;;
1120 -program-transform-name=* | --program-transform-name=* \
1121 | --program-transform-nam=* | --program-transform-na=* \
1122 | --program-transform-n=* | --program-transform-=* \
1123 | --program-transform=* | --program-transfor=* \
1124 | --program-transfo=* | --program-transf=* \
1125 | --program-trans=* | --program-tran=* \
1126 | --progr-tra=* | --program-tr=* | --program-t=*)
1127 program_transform_name=$ac_optarg ;;
1128
1129 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1130 ac_prev=pdfdir ;;
1131 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1132 pdfdir=$ac_optarg ;;
1133
1134 -psdir | --psdir | --psdi | --psd | --ps)
1135 ac_prev=psdir ;;
1136 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1137 psdir=$ac_optarg ;;
1138
1139 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1140 | -silent | --silent | --silen | --sile | --sil)
1141 silent=yes ;;
1142
1143 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1144 ac_prev=sbindir ;;
1145 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1146 | --sbi=* | --sb=*)
1147 sbindir=$ac_optarg ;;
1148
1149 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1150 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1151 | --sharedst | --shareds | --shared | --share | --shar \
1152 | --sha | --sh)
1153 ac_prev=sharedstatedir ;;
1154 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1155 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1156 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1157 | --sha=* | --sh=*)
1158 sharedstatedir=$ac_optarg ;;
1159
1160 -site | --site | --sit)
1161 ac_prev=site ;;
1162 -site=* | --site=* | --sit=*)
1163 site=$ac_optarg ;;
1164
1165 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1166 ac_prev=srcdir ;;
1167 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1168 srcdir=$ac_optarg ;;
1169
1170 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1171 | --syscon | --sysco | --sysc | --sys | --sy)
1172 ac_prev=sysconfdir ;;
1173 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1174 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1175 sysconfdir=$ac_optarg ;;
1176
1177 -target | --target | --targe | --targ | --tar | --ta | --t)
1178 ac_prev=target_alias ;;
1179 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1180 target_alias=$ac_optarg ;;
1181
1182 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1183 verbose=yes ;;
1184
1185 -version | --version | --versio | --versi | --vers | -V)
1186 ac_init_version=: ;;
1187
1188 -with-* | --with-*)
1189 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1190 # Reject names that are not valid shell variable names.
1191 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
12833ad8 1192 as_fn_error $? "invalid package name: $ac_useropt"
c7aa54aa
DWT
1193 ac_useropt_orig=$ac_useropt
1194 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1195 case $ac_user_opts in
1196 *"
1197"with_$ac_useropt"
1198"*) ;;
1199 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1200 ac_unrecognized_sep=', ';;
1201 esac
1202 eval with_$ac_useropt=\$ac_optarg ;;
1203
1204 -without-* | --without-*)
1205 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1206 # Reject names that are not valid shell variable names.
1207 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
12833ad8 1208 as_fn_error $? "invalid package name: $ac_useropt"
c7aa54aa
DWT
1209 ac_useropt_orig=$ac_useropt
1210 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1211 case $ac_user_opts in
1212 *"
1213"with_$ac_useropt"
1214"*) ;;
1215 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1216 ac_unrecognized_sep=', ';;
1217 esac
1218 eval with_$ac_useropt=no ;;
1219
1220 --x)
1221 # Obsolete; use --with-x.
1222 with_x=yes ;;
1223
1224 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1225 | --x-incl | --x-inc | --x-in | --x-i)
1226 ac_prev=x_includes ;;
1227 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1228 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1229 x_includes=$ac_optarg ;;
1230
1231 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1232 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1233 ac_prev=x_libraries ;;
1234 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1235 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1236 x_libraries=$ac_optarg ;;
1237
12833ad8
JF
1238 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1239Try \`$0 --help' for more information"
c7aa54aa
DWT
1240 ;;
1241
1242 *=*)
1243 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1244 # Reject names that are not valid shell variable names.
1245 case $ac_envvar in #(
1246 '' | [0-9]* | *[!_$as_cr_alnum]* )
12833ad8 1247 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
c7aa54aa
DWT
1248 esac
1249 eval $ac_envvar=\$ac_optarg
1250 export $ac_envvar ;;
1251
1252 *)
1253 # FIXME: should be removed in autoconf 3.0.
1254 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1255 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1256 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
ee134472 1257 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
c7aa54aa
DWT
1258 ;;
1259
1260 esac
1261done
1262
1263if test -n "$ac_prev"; then
1264 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
12833ad8 1265 as_fn_error $? "missing argument to $ac_option"
c7aa54aa
DWT
1266fi
1267
1268if test -n "$ac_unrecognized_opts"; then
1269 case $enable_option_checking in
1270 no) ;;
12833ad8 1271 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
c7aa54aa
DWT
1272 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1273 esac
1274fi
1275
1276# Check all directory arguments for consistency.
1277for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1278 datadir sysconfdir sharedstatedir localstatedir includedir \
1279 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1280 libdir localedir mandir
1281do
1282 eval ac_val=\$$ac_var
1283 # Remove trailing slashes.
1284 case $ac_val in
1285 */ )
1286 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1287 eval $ac_var=\$ac_val;;
1288 esac
1289 # Be sure to have absolute directory names.
1290 case $ac_val in
1291 [\\/$]* | ?:[\\/]* ) continue;;
1292 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1293 esac
12833ad8 1294 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
c7aa54aa
DWT
1295done
1296
1297# There might be people who depend on the old broken behavior: `$host'
1298# used to hold the argument of --host etc.
1299# FIXME: To remove some day.
1300build=$build_alias
1301host=$host_alias
1302target=$target_alias
1303
1304# FIXME: To remove some day.
1305if test "x$host_alias" != x; then
1306 if test "x$build_alias" = x; then
1307 cross_compiling=maybe
c7aa54aa
DWT
1308 elif test "x$build_alias" != "x$host_alias"; then
1309 cross_compiling=yes
1310 fi
1311fi
1312
1313ac_tool_prefix=
1314test -n "$host_alias" && ac_tool_prefix=$host_alias-
1315
1316test "$silent" = yes && exec 6>/dev/null
1317
1318
1319ac_pwd=`pwd` && test -n "$ac_pwd" &&
1320ac_ls_di=`ls -di .` &&
1321ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
12833ad8 1322 as_fn_error $? "working directory cannot be determined"
c7aa54aa 1323test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
12833ad8 1324 as_fn_error $? "pwd does not report name of working directory"
c7aa54aa
DWT
1325
1326
1327# Find the source files, if location was not specified.
1328if test -z "$srcdir"; then
1329 ac_srcdir_defaulted=yes
1330 # Try the directory containing this script, then the parent directory.
1331 ac_confdir=`$as_dirname -- "$as_myself" ||
1332$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1333 X"$as_myself" : 'X\(//\)[^/]' \| \
1334 X"$as_myself" : 'X\(//\)$' \| \
1335 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1336$as_echo X"$as_myself" |
1337 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1338 s//\1/
1339 q
1340 }
1341 /^X\(\/\/\)[^/].*/{
1342 s//\1/
1343 q
1344 }
1345 /^X\(\/\/\)$/{
1346 s//\1/
1347 q
1348 }
1349 /^X\(\/\).*/{
1350 s//\1/
1351 q
1352 }
1353 s/.*/./; q'`
1354 srcdir=$ac_confdir
1355 if test ! -r "$srcdir/$ac_unique_file"; then
1356 srcdir=..
1357 fi
1358else
1359 ac_srcdir_defaulted=no
1360fi
1361if test ! -r "$srcdir/$ac_unique_file"; then
1362 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
12833ad8 1363 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
c7aa54aa
DWT
1364fi
1365ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1366ac_abs_confdir=`(
12833ad8 1367 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
c7aa54aa
DWT
1368 pwd)`
1369# When building in place, set srcdir=.
1370if test "$ac_abs_confdir" = "$ac_pwd"; then
1371 srcdir=.
1372fi
1373# Remove unnecessary trailing slashes from srcdir.
1374# Double slashes in file names in object file debugging info
1375# mess up M-x gdb in Emacs.
1376case $srcdir in
1377*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1378esac
1379for ac_var in $ac_precious_vars; do
1380 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1381 eval ac_env_${ac_var}_value=\$${ac_var}
1382 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1383 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1384done
1385
1386#
1387# Report the --help message.
1388#
1389if test "$ac_init_help" = "long"; then
1390 # Omit some internal or obsolete options to make the list less imposing.
1391 # This message is too long to be a string in the A/UX 3.1 sh.
1392 cat <<_ACEOF
1393\`configure' configures Cycript 0.9 to adapt to many kinds of systems.
1394
1395Usage: $0 [OPTION]... [VAR=VALUE]...
1396
1397To assign environment variables (e.g., CC, CFLAGS...), specify them as
1398VAR=VALUE. See below for descriptions of some of the useful variables.
1399
1400Defaults for the options are specified in brackets.
1401
1402Configuration:
1403 -h, --help display this help and exit
1404 --help=short display options specific to this package
1405 --help=recursive display the short help of all the included packages
1406 -V, --version display version information and exit
12833ad8 1407 -q, --quiet, --silent do not print \`checking ...' messages
c7aa54aa
DWT
1408 --cache-file=FILE cache test results in FILE [disabled]
1409 -C, --config-cache alias for \`--cache-file=config.cache'
1410 -n, --no-create do not create output files
1411 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1412
1413Installation directories:
1414 --prefix=PREFIX install architecture-independent files in PREFIX
1415 [$ac_default_prefix]
1416 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1417 [PREFIX]
1418
1419By default, \`make install' will install all the files in
1420\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1421an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1422for instance \`--prefix=\$HOME'.
1423
1424For better control, use the options below.
1425
1426Fine tuning of the installation directories:
1427 --bindir=DIR user executables [EPREFIX/bin]
1428 --sbindir=DIR system admin executables [EPREFIX/sbin]
1429 --libexecdir=DIR program executables [EPREFIX/libexec]
1430 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1431 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1432 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1433 --libdir=DIR object code libraries [EPREFIX/lib]
1434 --includedir=DIR C header files [PREFIX/include]
1435 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1436 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1437 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1438 --infodir=DIR info documentation [DATAROOTDIR/info]
1439 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1440 --mandir=DIR man documentation [DATAROOTDIR/man]
1441 --docdir=DIR documentation root [DATAROOTDIR/doc/cycript]
1442 --htmldir=DIR html documentation [DOCDIR]
1443 --dvidir=DIR dvi documentation [DOCDIR]
1444 --pdfdir=DIR pdf documentation [DOCDIR]
1445 --psdir=DIR ps documentation [DOCDIR]
1446_ACEOF
1447
1448 cat <<\_ACEOF
35fa52c0 1449
66170b30
JF
1450Program names:
1451 --program-prefix=PREFIX prepend PREFIX to installed program names
1452 --program-suffix=SUFFIX append SUFFIX to installed program names
1453 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1454
35fa52c0
DWT
1455System types:
1456 --build=BUILD configure for building on BUILD [guessed]
1457 --host=HOST cross-compile to build programs to run on HOST [BUILD]
c7aa54aa
DWT
1458_ACEOF
1459fi
1460
1461if test -n "$ac_init_help"; then
1462 case $ac_init_help in
1463 short | recursive ) echo "Configuration of Cycript 0.9:";;
1464 esac
1465 cat <<\_ACEOF
1466
35fa52c0
DWT
1467Optional Features:
1468 --disable-option-checking ignore unrecognized --enable/--with options
1469 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1470 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
66170b30
JF
1471 --enable-silent-rules less verbose build output (undo: "make V=1")
1472 --disable-silent-rules verbose build output (undo: "make V=0")
66170b30
JF
1473 --enable-dependency-tracking
1474 do not reject slow dependency extractors
1475 --disable-dependency-tracking
1476 speeds up one-time build
a243b558
JF
1477 --enable-static[=PKGS] build static libraries [default=no]
1478 --enable-shared[=PKGS] build shared libraries [default=yes]
1479 --enable-fast-install[=PKGS]
1480 optimize for fast installation [default=yes]
9c60689e 1481 --disable-libtool-lock avoid locking (might break parallel builds)
b66977f1 1482 --enable-javascript[=ENGINE]
790e5246 1483 use a JavaScript runtime (currently the only
b66977f1
DWT
1484 available option for ENGINE is JavaScriptCore)
1485 [default=yes]
5053a6d1 1486 --disable-rpath do not hardcode runtime library paths
35fa52c0
DWT
1487
1488Optional Packages:
1489 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1490 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
53ba6704 1491 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
9c60689e
DWT
1492 both]
1493 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
ee134472
JF
1494 --with-sysroot=DIR Search for dependent libraries within DIR
1495 (or the compiler's sysroot if not specified).
632b71ea
DWT
1496 --with-frameworks=DIRS add to DIRS (space separated) to the Darwin include
1497 path for frameworks with -F
309b0535
DWT
1498 --with-apr=PATH prefix for installed APR or the full path to
1499 apr-config
53ba6704 1500 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
35fa52c0
DWT
1501 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1502 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1503
dbadc56a 1504Some influential environment variables:
a243b558
JF
1505 CXX C++ compiler command
1506 CXXFLAGS C++ compiler flags
dbadc56a
DWT
1507 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1508 nonstandard directory <lib dir>
1509 LIBS libraries to pass to the linker, e.g. -l<library>
9c60689e 1510 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
dbadc56a 1511 you have headers in a nonstandard directory <include dir>
a243b558
JF
1512 OBJCXX Objective C++ compiler command
1513 OBJCXXFLAGS Objective C++ compiler flags
1514 CC C compiler command
1515 CFLAGS C compiler flags
9c60689e 1516 CPP C preprocessor
a243b558 1517 CXXCPP C++ preprocessor
3fd51f51 1518 PKG_CONFIG path to pkg-config utility
12833ad8
JF
1519 PKG_CONFIG_PATH
1520 directories to add to pkg-config's search path
1521 PKG_CONFIG_LIBDIR
1522 path overriding pkg-config's built-in search path
e9c9a47c
DWT
1523 BISON GNU Project parser generator (yacc replacement)
1524 FLEX the fast lexical analyser generator
1525 GPERF perfect hash function generator
66170b30 1526 GNUTAR a very sticky lump of files
35fa52c0
DWT
1527 WEBKIT_CFLAGS
1528 C compiler flags for WEBKIT, overriding pkg-config
1529 WEBKIT_LIBS linker flags for WEBKIT, overriding pkg-config
1530 LIBFFI_CFLAGS
1531 C compiler flags for LIBFFI, overriding pkg-config
1532 LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config
790e5246
DWT
1533 GNUSTEP_CONFIG
1534 prints information about the current gnustep installation
dbadc56a
DWT
1535
1536Use these variables to override the choices made by `configure' or to help
1537it to find libraries and programs with nonstandard names/locations.
1538
c7aa54aa
DWT
1539Report bugs to <saurik@saurik.com>.
1540Cycript home page: <http://www.cycript.org/>.
1541_ACEOF
1542ac_status=$?
1543fi
1544
1545if test "$ac_init_help" = "recursive"; then
1546 # If there are subdirs, report their specific --help.
1547 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1548 test -d "$ac_dir" ||
1549 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1550 continue
1551 ac_builddir=.
1552
1553case "$ac_dir" in
1554.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1555*)
1556 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1557 # A ".." for each directory in $ac_dir_suffix.
1558 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1559 case $ac_top_builddir_sub in
1560 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1561 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1562 esac ;;
1563esac
1564ac_abs_top_builddir=$ac_pwd
1565ac_abs_builddir=$ac_pwd$ac_dir_suffix
1566# for backward compatibility:
1567ac_top_builddir=$ac_top_build_prefix
1568
1569case $srcdir in
1570 .) # We are building in place.
1571 ac_srcdir=.
1572 ac_top_srcdir=$ac_top_builddir_sub
1573 ac_abs_top_srcdir=$ac_pwd ;;
1574 [\\/]* | ?:[\\/]* ) # Absolute name.
1575 ac_srcdir=$srcdir$ac_dir_suffix;
1576 ac_top_srcdir=$srcdir
1577 ac_abs_top_srcdir=$srcdir ;;
1578 *) # Relative name.
1579 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1580 ac_top_srcdir=$ac_top_build_prefix$srcdir
1581 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1582esac
1583ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1584
1585 cd "$ac_dir" || { ac_status=$?; continue; }
1586 # Check for guested configure.
1587 if test -f "$ac_srcdir/configure.gnu"; then
1588 echo &&
1589 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1590 elif test -f "$ac_srcdir/configure"; then
1591 echo &&
1592 $SHELL "$ac_srcdir/configure" --help=recursive
1593 else
1594 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1595 fi || ac_status=$?
1596 cd "$ac_pwd" || { ac_status=$?; break; }
1597 done
1598fi
1599
1600test -n "$ac_init_help" && exit $ac_status
1601if $ac_init_version; then
1602 cat <<\_ACEOF
1603Cycript configure 0.9
53ba6704 1604generated by GNU Autoconf 2.69
c7aa54aa 1605
53ba6704 1606Copyright (C) 2012 Free Software Foundation, Inc.
c7aa54aa
DWT
1607This configure script is free software; the Free Software Foundation
1608gives unlimited permission to copy, distribute and modify it.
66170b30
JF
1609
1610Copyright (C) 2009-2012 Jay Freeman (saurik)
c7aa54aa
DWT
1611_ACEOF
1612 exit
1613fi
1614
1615## ------------------------ ##
1616## Autoconf initialization. ##
1617## ------------------------ ##
dbadc56a 1618
a243b558
JF
1619# ac_fn_cxx_try_compile LINENO
1620# ----------------------------
1621# Try to compile conftest.$ac_ext, and return whether this succeeded.
1622ac_fn_cxx_try_compile ()
1623{
1624 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1625 rm -f conftest.$ac_objext
1626 if { { ac_try="$ac_compile"
1627case "(($ac_try" in
1628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1629 *) ac_try_echo=$ac_try;;
1630esac
1631eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1632$as_echo "$ac_try_echo"; } >&5
1633 (eval "$ac_compile") 2>conftest.err
1634 ac_status=$?
1635 if test -s conftest.err; then
1636 grep -v '^ *+' conftest.err >conftest.er1
1637 cat conftest.er1 >&5
1638 mv -f conftest.er1 conftest.err
1639 fi
1640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1641 test $ac_status = 0; } && {
1642 test -z "$ac_cxx_werror_flag" ||
1643 test ! -s conftest.err
1644 } && test -s conftest.$ac_objext; then :
1645 ac_retval=0
1646else
1647 $as_echo "$as_me: failed program was:" >&5
1648sed 's/^/| /' conftest.$ac_ext >&5
1649
1650 ac_retval=1
1651fi
1652 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1653 as_fn_set_status $ac_retval
1654
1655} # ac_fn_cxx_try_compile
1656
1657# ac_fn_objcxx_try_compile LINENO
1658# -------------------------------
1659# Try to compile conftest.$ac_ext, and return whether this succeeded.
1660ac_fn_objcxx_try_compile ()
1661{
1662 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1663 rm -f conftest.$ac_objext
1664 if { { ac_try="$ac_compile"
1665case "(($ac_try" in
1666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1667 *) ac_try_echo=$ac_try;;
1668esac
1669eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1670$as_echo "$ac_try_echo"; } >&5
1671 (eval "$ac_compile") 2>conftest.err
1672 ac_status=$?
1673 if test -s conftest.err; then
1674 grep -v '^ *+' conftest.err >conftest.er1
1675 cat conftest.er1 >&5
1676 mv -f conftest.er1 conftest.err
1677 fi
1678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1679 test $ac_status = 0; } && {
1680 test -z "$ac_objcxx_werror_flag" ||
1681 test ! -s conftest.err
1682 } && test -s conftest.$ac_objext; then :
1683 ac_retval=0
1684else
1685 $as_echo "$as_me: failed program was:" >&5
1686sed 's/^/| /' conftest.$ac_ext >&5
1687
1688 ac_retval=1
1689fi
1690 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1691 as_fn_set_status $ac_retval
1692
1693} # ac_fn_objcxx_try_compile
1694
35fa52c0
DWT
1695# ac_fn_c_try_compile LINENO
1696# --------------------------
1697# Try to compile conftest.$ac_ext, and return whether this succeeded.
1698ac_fn_c_try_compile ()
1699{
1700 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1701 rm -f conftest.$ac_objext
1702 if { { ac_try="$ac_compile"
1703case "(($ac_try" in
1704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1705 *) ac_try_echo=$ac_try;;
1706esac
1707eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1708$as_echo "$ac_try_echo"; } >&5
1709 (eval "$ac_compile") 2>conftest.err
1710 ac_status=$?
1711 if test -s conftest.err; then
1712 grep -v '^ *+' conftest.err >conftest.er1
1713 cat conftest.er1 >&5
1714 mv -f conftest.er1 conftest.err
1715 fi
1716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1717 test $ac_status = 0; } && {
1718 test -z "$ac_c_werror_flag" ||
1719 test ! -s conftest.err
1720 } && test -s conftest.$ac_objext; then :
1721 ac_retval=0
1722else
1723 $as_echo "$as_me: failed program was:" >&5
1724sed 's/^/| /' conftest.$ac_ext >&5
1725
1726 ac_retval=1
1727fi
ee134472 1728 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9c60689e 1729 as_fn_set_status $ac_retval
35fa52c0
DWT
1730
1731} # ac_fn_c_try_compile
1732
1733# ac_fn_c_try_link LINENO
1734# -----------------------
1735# Try to link conftest.$ac_ext, and return whether this succeeded.
1736ac_fn_c_try_link ()
1737{
1738 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1739 rm -f conftest.$ac_objext conftest$ac_exeext
1740 if { { ac_try="$ac_link"
1741case "(($ac_try" in
1742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1743 *) ac_try_echo=$ac_try;;
1744esac
1745eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1746$as_echo "$ac_try_echo"; } >&5
1747 (eval "$ac_link") 2>conftest.err
1748 ac_status=$?
1749 if test -s conftest.err; then
1750 grep -v '^ *+' conftest.err >conftest.er1
1751 cat conftest.er1 >&5
1752 mv -f conftest.er1 conftest.err
1753 fi
1754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1755 test $ac_status = 0; } && {
1756 test -z "$ac_c_werror_flag" ||
1757 test ! -s conftest.err
1758 } && test -s conftest$ac_exeext && {
1759 test "$cross_compiling" = yes ||
53ba6704 1760 test -x conftest$ac_exeext
35fa52c0
DWT
1761 }; then :
1762 ac_retval=0
1763else
1764 $as_echo "$as_me: failed program was:" >&5
1765sed 's/^/| /' conftest.$ac_ext >&5
1766
1767 ac_retval=1
1768fi
1769 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1770 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1771 # interfere with the next link command; also delete a directory that is
1772 # left behind by Apple's compiler. We do this before executing the actions.
1773 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
ee134472 1774 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9c60689e 1775 as_fn_set_status $ac_retval
35fa52c0
DWT
1776
1777} # ac_fn_c_try_link
1778
9c60689e
DWT
1779# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1780# -------------------------------------------------------
1781# Tests whether HEADER exists and can be compiled using the include files in
1782# INCLUDES, setting the cache variable VAR accordingly.
1783ac_fn_c_check_header_compile ()
dbadc56a
DWT
1784{
1785 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9c60689e
DWT
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1787$as_echo_n "checking for $2... " >&6; }
ee134472 1788if eval \${$3+:} false; then :
9c60689e
DWT
1789 $as_echo_n "(cached) " >&6
1790else
1791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1792/* end confdefs.h. */
1793$4
1794#include <$2>
1795_ACEOF
1796if ac_fn_c_try_compile "$LINENO"; then :
1797 eval "$3=yes"
1798else
1799 eval "$3=no"
1800fi
1801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1802fi
1803eval ac_res=\$$3
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1805$as_echo "$ac_res" >&6; }
ee134472 1806 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9c60689e
DWT
1807
1808} # ac_fn_c_check_header_compile
1809
1810# ac_fn_c_try_cpp LINENO
1811# ----------------------
1812# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1813ac_fn_c_try_cpp ()
1814{
1815 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1816 if { { ac_try="$ac_cpp conftest.$ac_ext"
dbadc56a
DWT
1817case "(($ac_try" in
1818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1819 *) ac_try_echo=$ac_try;;
1820esac
1821eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1822$as_echo "$ac_try_echo"; } >&5
9c60689e 1823 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
dbadc56a
DWT
1824 ac_status=$?
1825 if test -s conftest.err; then
1826 grep -v '^ *+' conftest.err >conftest.er1
1827 cat conftest.er1 >&5
1828 mv -f conftest.er1 conftest.err
1829 fi
1830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12833ad8 1831 test $ac_status = 0; } > conftest.i && {
9c60689e 1832 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
dbadc56a 1833 test ! -s conftest.err
9c60689e 1834 }; then :
dbadc56a
DWT
1835 ac_retval=0
1836else
1837 $as_echo "$as_me: failed program was:" >&5
1838sed 's/^/| /' conftest.$ac_ext >&5
1839
9c60689e 1840 ac_retval=1
dbadc56a 1841fi
ee134472 1842 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9c60689e 1843 as_fn_set_status $ac_retval
dbadc56a 1844
9c60689e 1845} # ac_fn_c_try_cpp
35fa52c0
DWT
1846
1847# ac_fn_c_try_run LINENO
1848# ----------------------
1849# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1850# that executables *can* be run.
1851ac_fn_c_try_run ()
1852{
1853 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1854 if { { ac_try="$ac_link"
1855case "(($ac_try" in
1856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1857 *) ac_try_echo=$ac_try;;
1858esac
1859eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1860$as_echo "$ac_try_echo"; } >&5
1861 (eval "$ac_link") 2>&5
1862 ac_status=$?
1863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1864 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1865 { { case "(($ac_try" in
1866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1867 *) ac_try_echo=$ac_try;;
1868esac
1869eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1870$as_echo "$ac_try_echo"; } >&5
1871 (eval "$ac_try") 2>&5
1872 ac_status=$?
1873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1874 test $ac_status = 0; }; }; then :
1875 ac_retval=0
1876else
1877 $as_echo "$as_me: program exited with status $ac_status" >&5
1878 $as_echo "$as_me: failed program was:" >&5
1879sed 's/^/| /' conftest.$ac_ext >&5
1880
1881 ac_retval=$ac_status
1882fi
1883 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
ee134472 1884 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9c60689e 1885 as_fn_set_status $ac_retval
35fa52c0
DWT
1886
1887} # ac_fn_c_try_run
6b66678a 1888
9c60689e
DWT
1889# ac_fn_c_check_func LINENO FUNC VAR
1890# ----------------------------------
1891# Tests whether FUNC exists, setting the cache variable VAR accordingly
1892ac_fn_c_check_func ()
6b66678a
DWT
1893{
1894 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9c60689e
DWT
1895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1896$as_echo_n "checking for $2... " >&6; }
ee134472 1897if eval \${$3+:} false; then :
9c60689e 1898 $as_echo_n "(cached) " >&6
6b66678a 1899else
9c60689e
DWT
1900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1901/* end confdefs.h. */
1902/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1903 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1904#define $2 innocuous_$2
6b66678a 1905
9c60689e
DWT
1906/* System header to define __stub macros and hopefully few prototypes,
1907 which can conflict with char $2 (); below.
1908 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1909 <limits.h> exists even on freestanding compilers. */
1910
1911#ifdef __STDC__
1912# include <limits.h>
1913#else
1914# include <assert.h>
1915#endif
1916
1917#undef $2
1918
1919/* Override any GCC internal prototype to avoid an error.
1920 Use char because int might match the return type of a GCC
1921 builtin and then its argument prototype would still apply. */
1922#ifdef __cplusplus
1923extern "C"
1924#endif
1925char $2 ();
1926/* The GNU C library defines this for functions which it implements
1927 to always fail with ENOSYS. Some functions are actually named
1928 something starting with __ and the normal name is an alias. */
1929#if defined __stub_$2 || defined __stub___$2
1930choke me
1931#endif
1932
1933int
1934main ()
1935{
1936return $2 ();
1937 ;
1938 return 0;
1939}
1940_ACEOF
1941if ac_fn_c_try_link "$LINENO"; then :
1942 eval "$3=yes"
1943else
1944 eval "$3=no"
1945fi
1946rm -f core conftest.err conftest.$ac_objext \
1947 conftest$ac_exeext conftest.$ac_ext
6b66678a 1948fi
9c60689e
DWT
1949eval ac_res=\$$3
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1951$as_echo "$ac_res" >&6; }
ee134472 1952 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
6b66678a 1953
9c60689e 1954} # ac_fn_c_check_func
6b66678a 1955
9c60689e
DWT
1956# ac_fn_cxx_try_cpp LINENO
1957# ------------------------
1958# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1959ac_fn_cxx_try_cpp ()
1960{
1961 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1962 if { { ac_try="$ac_cpp conftest.$ac_ext"
1963case "(($ac_try" in
1964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1965 *) ac_try_echo=$ac_try;;
1966esac
1967eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1968$as_echo "$ac_try_echo"; } >&5
1969 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1970 ac_status=$?
1971 if test -s conftest.err; then
1972 grep -v '^ *+' conftest.err >conftest.er1
1973 cat conftest.er1 >&5
1974 mv -f conftest.er1 conftest.err
1975 fi
1976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12833ad8 1977 test $ac_status = 0; } > conftest.i && {
9c60689e
DWT
1978 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1979 test ! -s conftest.err
1980 }; then :
1981 ac_retval=0
1982else
1983 $as_echo "$as_me: failed program was:" >&5
1984sed 's/^/| /' conftest.$ac_ext >&5
1985
1986 ac_retval=1
1987fi
ee134472 1988 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9c60689e
DWT
1989 as_fn_set_status $ac_retval
1990
1991} # ac_fn_cxx_try_cpp
1992
1993# ac_fn_cxx_try_link LINENO
1994# -------------------------
1995# Try to link conftest.$ac_ext, and return whether this succeeded.
1996ac_fn_cxx_try_link ()
1997{
1998 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1999 rm -f conftest.$ac_objext conftest$ac_exeext
2000 if { { ac_try="$ac_link"
2001case "(($ac_try" in
2002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2003 *) ac_try_echo=$ac_try;;
2004esac
2005eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2006$as_echo "$ac_try_echo"; } >&5
2007 (eval "$ac_link") 2>conftest.err
2008 ac_status=$?
2009 if test -s conftest.err; then
2010 grep -v '^ *+' conftest.err >conftest.er1
2011 cat conftest.er1 >&5
2012 mv -f conftest.er1 conftest.err
2013 fi
2014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2015 test $ac_status = 0; } && {
2016 test -z "$ac_cxx_werror_flag" ||
2017 test ! -s conftest.err
2018 } && test -s conftest$ac_exeext && {
2019 test "$cross_compiling" = yes ||
53ba6704 2020 test -x conftest$ac_exeext
9c60689e
DWT
2021 }; then :
2022 ac_retval=0
2023else
2024 $as_echo "$as_me: failed program was:" >&5
2025sed 's/^/| /' conftest.$ac_ext >&5
2026
2027 ac_retval=1
2028fi
2029 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2030 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2031 # interfere with the next link command; also delete a directory that is
2032 # left behind by Apple's compiler. We do this before executing the actions.
2033 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
ee134472 2034 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9c60689e
DWT
2035 as_fn_set_status $ac_retval
2036
2037} # ac_fn_cxx_try_link
2038
47aaa820
DWT
2039# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2040# ---------------------------------------------------------
2041# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2042# the include files in INCLUDES and setting the cache variable VAR
2043# accordingly.
2044ac_fn_cxx_check_header_mongrel ()
2045{
2046 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
ee134472 2047 if eval \${$3+:} false; then :
47aaa820
DWT
2048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2049$as_echo_n "checking for $2... " >&6; }
ee134472 2050if eval \${$3+:} false; then :
47aaa820
DWT
2051 $as_echo_n "(cached) " >&6
2052fi
2053eval ac_res=\$$3
2054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2055$as_echo "$ac_res" >&6; }
2056else
2057 # Is the header compilable?
2058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2059$as_echo_n "checking $2 usability... " >&6; }
2060cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2061/* end confdefs.h. */
2062$4
2063#include <$2>
2064_ACEOF
2065if ac_fn_cxx_try_compile "$LINENO"; then :
2066 ac_header_compiler=yes
2067else
2068 ac_header_compiler=no
2069fi
2070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2072$as_echo "$ac_header_compiler" >&6; }
2073
2074# Is the header present?
2075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2076$as_echo_n "checking $2 presence... " >&6; }
2077cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2078/* end confdefs.h. */
2079#include <$2>
2080_ACEOF
2081if ac_fn_cxx_try_cpp "$LINENO"; then :
2082 ac_header_preproc=yes
2083else
2084 ac_header_preproc=no
2085fi
12833ad8 2086rm -f conftest.err conftest.i conftest.$ac_ext
47aaa820
DWT
2087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2088$as_echo "$ac_header_preproc" >&6; }
2089
2090# So? What about this header?
2091case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2092 yes:no: )
2093 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2094$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2096$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2097 ;;
2098 no:yes:* )
2099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2100$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2102$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2103 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2104$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2105 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2106$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2108$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
12833ad8 2109( $as_echo "## -------------------------------- ##
47aaa820 2110## Report this to saurik@saurik.com ##
12833ad8 2111## -------------------------------- ##"
47aaa820
DWT
2112 ) | sed "s/^/$as_me: WARNING: /" >&2
2113 ;;
2114esac
2115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2116$as_echo_n "checking for $2... " >&6; }
ee134472 2117if eval \${$3+:} false; then :
47aaa820
DWT
2118 $as_echo_n "(cached) " >&6
2119else
2120 eval "$3=\$ac_header_compiler"
2121fi
2122eval ac_res=\$$3
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2124$as_echo "$ac_res" >&6; }
2125fi
ee134472 2126 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
47aaa820
DWT
2127
2128} # ac_fn_cxx_check_header_mongrel
2129
c823f118
DWT
2130# ac_fn_objcxx_try_link LINENO
2131# ----------------------------
2132# Try to link conftest.$ac_ext, and return whether this succeeded.
2133ac_fn_objcxx_try_link ()
2134{
2135 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2136 rm -f conftest.$ac_objext conftest$ac_exeext
2137 if { { ac_try="$ac_link"
2138case "(($ac_try" in
2139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2140 *) ac_try_echo=$ac_try;;
2141esac
2142eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2143$as_echo "$ac_try_echo"; } >&5
2144 (eval "$ac_link") 2>conftest.err
2145 ac_status=$?
2146 if test -s conftest.err; then
2147 grep -v '^ *+' conftest.err >conftest.er1
2148 cat conftest.er1 >&5
2149 mv -f conftest.er1 conftest.err
2150 fi
2151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2152 test $ac_status = 0; } && {
2153 test -z "$ac_objcxx_werror_flag" ||
2154 test ! -s conftest.err
2155 } && test -s conftest$ac_exeext && {
2156 test "$cross_compiling" = yes ||
53ba6704 2157 test -x conftest$ac_exeext
c823f118
DWT
2158 }; then :
2159 ac_retval=0
2160else
2161 $as_echo "$as_me: failed program was:" >&5
2162sed 's/^/| /' conftest.$ac_ext >&5
2163
2164 ac_retval=1
2165fi
2166 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2167 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2168 # interfere with the next link command; also delete a directory that is
2169 # left behind by Apple's compiler. We do this before executing the actions.
2170 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
ee134472 2171 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
c823f118
DWT
2172 as_fn_set_status $ac_retval
2173
2174} # ac_fn_objcxx_try_link
c7aa54aa
DWT
2175cat >config.log <<_ACEOF
2176This file contains any messages produced by compilers while
2177running configure, to aid debugging if configure makes a mistake.
2178
2179It was created by Cycript $as_me 0.9, which was
53ba6704 2180generated by GNU Autoconf 2.69. Invocation command line was
c7aa54aa
DWT
2181
2182 $ $0 $@
2183
2184_ACEOF
2185exec 5>>config.log
2186{
2187cat <<_ASUNAME
2188## --------- ##
2189## Platform. ##
2190## --------- ##
2191
2192hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2193uname -m = `(uname -m) 2>/dev/null || echo unknown`
2194uname -r = `(uname -r) 2>/dev/null || echo unknown`
2195uname -s = `(uname -s) 2>/dev/null || echo unknown`
2196uname -v = `(uname -v) 2>/dev/null || echo unknown`
2197
2198/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2199/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2200
2201/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2202/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2203/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2204/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2205/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2206/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2207/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2208
2209_ASUNAME
2210
2211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2212for as_dir in $PATH
2213do
2214 IFS=$as_save_IFS
2215 test -z "$as_dir" && as_dir=.
2216 $as_echo "PATH: $as_dir"
2217 done
2218IFS=$as_save_IFS
2219
2220} >&5
2221
2222cat >&5 <<_ACEOF
2223
2224
2225## ----------- ##
2226## Core tests. ##
2227## ----------- ##
2228
2229_ACEOF
2230
2231
2232# Keep a trace of the command line.
2233# Strip out --no-create and --no-recursion so they do not pile up.
2234# Strip out --silent because we don't want to record it for future runs.
2235# Also quote any args containing shell meta-characters.
2236# Make two passes to allow for proper duplicate-argument suppression.
2237ac_configure_args=
2238ac_configure_args0=
2239ac_configure_args1=
2240ac_must_keep_next=false
2241for ac_pass in 1 2
2242do
2243 for ac_arg
2244 do
2245 case $ac_arg in
2246 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2247 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2248 | -silent | --silent | --silen | --sile | --sil)
2249 continue ;;
2250 *\'*)
2251 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2252 esac
2253 case $ac_pass in
2254 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2255 2)
2256 as_fn_append ac_configure_args1 " '$ac_arg'"
2257 if test $ac_must_keep_next = true; then
2258 ac_must_keep_next=false # Got value, back to normal.
2259 else
2260 case $ac_arg in
2261 *=* | --config-cache | -C | -disable-* | --disable-* \
2262 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2263 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2264 | -with-* | --with-* | -without-* | --without-* | --x)
2265 case "$ac_configure_args0 " in
2266 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2267 esac
2268 ;;
2269 -* ) ac_must_keep_next=true ;;
2270 esac
2271 fi
2272 as_fn_append ac_configure_args " '$ac_arg'"
2273 ;;
2274 esac
2275 done
2276done
2277{ ac_configure_args0=; unset ac_configure_args0;}
2278{ ac_configure_args1=; unset ac_configure_args1;}
2279
2280# When interrupted or exit'd, cleanup temporary files, and complete
2281# config.log. We remove comments because anyway the quotes in there
2282# would cause problems or look ugly.
2283# WARNING: Use '\'' to represent an apostrophe within the trap.
2284# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2285trap 'exit_status=$?
2286 # Save into config.log some information that might help in debugging.
2287 {
2288 echo
2289
12833ad8 2290 $as_echo "## ---------------- ##
c7aa54aa 2291## Cache variables. ##
12833ad8 2292## ---------------- ##"
c7aa54aa
DWT
2293 echo
2294 # The following way of writing the cache mishandles newlines in values,
2295(
2296 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2297 eval ac_val=\$$ac_var
2298 case $ac_val in #(
2299 *${as_nl}*)
2300 case $ac_var in #(
2301 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2302$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2303 esac
2304 case $ac_var in #(
2305 _ | IFS | as_nl) ;; #(
2306 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2307 *) { eval $ac_var=; unset $ac_var;} ;;
2308 esac ;;
2309 esac
2310 done
2311 (set) 2>&1 |
2312 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2313 *${as_nl}ac_space=\ *)
2314 sed -n \
2315 "s/'\''/'\''\\\\'\'''\''/g;
2316 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2317 ;; #(
2318 *)
2319 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2320 ;;
2321 esac |
2322 sort
2323)
2324 echo
2325
12833ad8 2326 $as_echo "## ----------------- ##
c7aa54aa 2327## Output variables. ##
12833ad8 2328## ----------------- ##"
c7aa54aa
DWT
2329 echo
2330 for ac_var in $ac_subst_vars
2331 do
2332 eval ac_val=\$$ac_var
2333 case $ac_val in
2334 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2335 esac
2336 $as_echo "$ac_var='\''$ac_val'\''"
2337 done | sort
2338 echo
2339
2340 if test -n "$ac_subst_files"; then
12833ad8 2341 $as_echo "## ------------------- ##
c7aa54aa 2342## File substitutions. ##
12833ad8 2343## ------------------- ##"
c7aa54aa
DWT
2344 echo
2345 for ac_var in $ac_subst_files
2346 do
2347 eval ac_val=\$$ac_var
2348 case $ac_val in
2349 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2350 esac
2351 $as_echo "$ac_var='\''$ac_val'\''"
2352 done | sort
2353 echo
2354 fi
2355
2356 if test -s confdefs.h; then
12833ad8 2357 $as_echo "## ----------- ##
c7aa54aa 2358## confdefs.h. ##
12833ad8 2359## ----------- ##"
c7aa54aa
DWT
2360 echo
2361 cat confdefs.h
2362 echo
2363 fi
2364 test "$ac_signal" != 0 &&
2365 $as_echo "$as_me: caught signal $ac_signal"
2366 $as_echo "$as_me: exit $exit_status"
2367 } >&5
2368 rm -f core *.core core.conftest.* &&
2369 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2370 exit $exit_status
2371' 0
2372for ac_signal in 1 2 13 15; do
2373 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2374done
2375ac_signal=0
2376
2377# confdefs.h avoids OS command line length limits that DEFS can exceed.
2378rm -f -r conftest* confdefs.h
2379
2380$as_echo "/* confdefs.h */" > confdefs.h
2381
2382# Predefined preprocessor variables.
2383
2384cat >>confdefs.h <<_ACEOF
2385#define PACKAGE_NAME "$PACKAGE_NAME"
2386_ACEOF
2387
2388cat >>confdefs.h <<_ACEOF
2389#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2390_ACEOF
2391
2392cat >>confdefs.h <<_ACEOF
2393#define PACKAGE_VERSION "$PACKAGE_VERSION"
2394_ACEOF
2395
2396cat >>confdefs.h <<_ACEOF
2397#define PACKAGE_STRING "$PACKAGE_STRING"
2398_ACEOF
2399
2400cat >>confdefs.h <<_ACEOF
2401#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2402_ACEOF
2403
2404cat >>confdefs.h <<_ACEOF
2405#define PACKAGE_URL "$PACKAGE_URL"
2406_ACEOF
2407
2408
2409# Let the site file select an alternate cache file if it wants to.
2410# Prefer an explicitly selected file to automatically selected ones.
2411ac_site_file1=NONE
2412ac_site_file2=NONE
2413if test -n "$CONFIG_SITE"; then
12833ad8
JF
2414 # We do not want a PATH search for config.site.
2415 case $CONFIG_SITE in #((
2416 -*) ac_site_file1=./$CONFIG_SITE;;
2417 */*) ac_site_file1=$CONFIG_SITE;;
2418 *) ac_site_file1=./$CONFIG_SITE;;
2419 esac
c7aa54aa
DWT
2420elif test "x$prefix" != xNONE; then
2421 ac_site_file1=$prefix/share/config.site
2422 ac_site_file2=$prefix/etc/config.site
2423else
2424 ac_site_file1=$ac_default_prefix/share/config.site
2425 ac_site_file2=$ac_default_prefix/etc/config.site
2426fi
2427for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2428do
2429 test "x$ac_site_file" = xNONE && continue
9c60689e 2430 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
c7aa54aa
DWT
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2432$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2433 sed 's/^/| /' "$ac_site_file" >&5
12833ad8
JF
2434 . "$ac_site_file" \
2435 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2436$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2437as_fn_error $? "failed to load site script $ac_site_file
ee134472 2438See \`config.log' for more details" "$LINENO" 5; }
c7aa54aa
DWT
2439 fi
2440done
2441
2442if test -r "$cache_file"; then
9c60689e
DWT
2443 # Some versions of bash will fail to source /dev/null (special files
2444 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2445 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
c7aa54aa
DWT
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2447$as_echo "$as_me: loading cache $cache_file" >&6;}
2448 case $cache_file in
2449 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2450 *) . "./$cache_file";;
2451 esac
2452 fi
2453else
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2455$as_echo "$as_me: creating cache $cache_file" >&6;}
2456 >$cache_file
2457fi
2458
2459# Check that the precious variables saved in the cache have kept the same
2460# value.
2461ac_cache_corrupted=false
2462for ac_var in $ac_precious_vars; do
2463 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2464 eval ac_new_set=\$ac_env_${ac_var}_set
2465 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2466 eval ac_new_val=\$ac_env_${ac_var}_value
2467 case $ac_old_set,$ac_new_set in
2468 set,)
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2470$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2471 ac_cache_corrupted=: ;;
2472 ,set)
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2474$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2475 ac_cache_corrupted=: ;;
2476 ,);;
2477 *)
2478 if test "x$ac_old_val" != "x$ac_new_val"; then
2479 # differences in whitespace do not lead to failure.
2480 ac_old_val_w=`echo x $ac_old_val`
2481 ac_new_val_w=`echo x $ac_new_val`
2482 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2484$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2485 ac_cache_corrupted=:
2486 else
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2488$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2489 eval $ac_var=\$ac_old_val
2490 fi
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2492$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2493 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2494$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2495 fi;;
2496 esac
2497 # Pass precious variables to config.status.
2498 if test "$ac_new_set" = set; then
2499 case $ac_new_val in
2500 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2501 *) ac_arg=$ac_var=$ac_new_val ;;
2502 esac
2503 case " $ac_configure_args " in
2504 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2505 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2506 esac
2507 fi
2508done
2509if $ac_cache_corrupted; then
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2511$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2512 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2513$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
12833ad8 2514 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
c7aa54aa
DWT
2515fi
2516## -------------------- ##
2517## Main body of script. ##
2518## -------------------- ##
2519
2520ac_ext=c
2521ac_cpp='$CPP $CPPFLAGS'
2522ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2523ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2524ac_compiler_gnu=$ac_cv_c_compiler_gnu
2525
2526
66170b30
JF
2527
2528
35fa52c0 2529
6b66678a
DWT
2530ac_aux_dir=
2531for ac_dir in . "$srcdir"/.; do
12833ad8
JF
2532 if 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/install.sh"; then
2537 ac_aux_dir=$ac_dir
2538 ac_install_sh="$ac_aux_dir/install.sh -c"
2539 break
2540 elif test -f "$ac_dir/shtool"; then
2541 ac_aux_dir=$ac_dir
2542 ac_install_sh="$ac_aux_dir/shtool install -c"
2543 break
2544 fi
6b66678a
DWT
2545done
2546if test -z "$ac_aux_dir"; then
12833ad8 2547 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
6b66678a
DWT
2548fi
2549
2550# These three variables are undocumented and unsupported,
2551# and are intended to be withdrawn in a future Autoconf release.
2552# They can cause serious problems if a builder's source tree is in a directory
2553# whose full name contains unusual characters.
2554ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2555ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2556ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2557
2558
9c60689e 2559
9c60689e 2560
66170b30 2561am__api_version='1.13'
9c60689e 2562
66170b30
JF
2563# Find a good install program. We prefer a C program (faster),
2564# so one script is as good as another. But avoid the broken or
2565# incompatible versions:
2566# SysV /etc/install, /usr/sbin/install
2567# SunOS /usr/etc/install
2568# IRIX /sbin/install
2569# AIX /bin/install
2570# AmigaOS /C/install, which installs bootblocks on floppy discs
2571# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2572# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2573# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2574# OS/2's system install, which has a completely different semantic
2575# ./install, which can be erroneously created by make from ./install.sh.
2576# Reject install programs that cannot install multiple files.
2577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2578$as_echo_n "checking for a BSD-compatible install... " >&6; }
2579if test -z "$INSTALL"; then
2580if ${ac_cv_path_install+:} false; then :
2581 $as_echo_n "(cached) " >&6
2582else
2583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2584for as_dir in $PATH
2585do
2586 IFS=$as_save_IFS
2587 test -z "$as_dir" && as_dir=.
2588 # Account for people who put trailing slashes in PATH elements.
2589case $as_dir/ in #((
2590 ./ | .// | /[cC]/* | \
2591 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2592 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2593 /usr/ucb/* ) ;;
2594 *)
2595 # OSF1 and SCO ODT 3.0 have their own names for install.
2596 # Don't use installbsd from OSF since it installs stuff as root
2597 # by default.
2598 for ac_prog in ginstall scoinst install; do
2599 for ac_exec_ext in '' $ac_executable_extensions; do
2600 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2601 if test $ac_prog = install &&
2602 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2603 # AIX install. It has an incompatible calling convention.
2604 :
2605 elif test $ac_prog = install &&
2606 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2607 # program-specific install script used by HP pwplus--don't use.
2608 :
2609 else
2610 rm -rf conftest.one conftest.two conftest.dir
2611 echo one > conftest.one
2612 echo two > conftest.two
2613 mkdir conftest.dir
2614 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2615 test -s conftest.one && test -s conftest.two &&
2616 test -s conftest.dir/conftest.one &&
2617 test -s conftest.dir/conftest.two
2618 then
2619 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2620 break 3
2621 fi
2622 fi
2623 fi
2624 done
2625 done
2626 ;;
2627esac
9c60689e 2628
66170b30
JF
2629 done
2630IFS=$as_save_IFS
9c60689e 2631
66170b30 2632rm -rf conftest.one conftest.two conftest.dir
9c60689e 2633
66170b30
JF
2634fi
2635 if test "${ac_cv_path_install+set}" = set; then
2636 INSTALL=$ac_cv_path_install
2637 else
2638 # As a last resort, use the slow shell script. Don't cache a
2639 # value for INSTALL within a source directory, because that will
2640 # break other packages using the cache if that directory is
2641 # removed, or if the value is a relative name.
2642 INSTALL=$ac_install_sh
2643 fi
2644fi
2645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2646$as_echo "$INSTALL" >&6; }
9c60689e 2647
66170b30
JF
2648# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2649# It thinks the first close brace ends the variable substitution.
2650test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9c60689e 2651
66170b30 2652test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
9c60689e 2653
66170b30 2654test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9c60689e 2655
66170b30
JF
2656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2657$as_echo_n "checking whether build environment is sane... " >&6; }
2658# Reject unsafe characters in $srcdir or the absolute working directory
2659# name. Accept space and tab only in the latter.
2660am_lf='
2661'
2662case `pwd` in
2663 *[\\\"\#\$\&\'\`$am_lf]*)
2664 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2665esac
2666case $srcdir in
2667 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2668 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2669esac
9c60689e 2670
66170b30
JF
2671# Do 'set' in a subshell so we don't clobber the current shell's
2672# arguments. Must try -L first in case configure is actually a
2673# symlink; some systems play weird games with the mod time of symlinks
2674# (eg FreeBSD returns the mod time of the symlink's containing
2675# directory).
2676if (
2677 am_has_slept=no
2678 for am_try in 1 2; do
2679 echo "timestamp, slept: $am_has_slept" > conftest.file
2680 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2681 if test "$*" = "X"; then
2682 # -L didn't work.
2683 set X `ls -t "$srcdir/configure" conftest.file`
2684 fi
2685 if test "$*" != "X $srcdir/configure conftest.file" \
2686 && test "$*" != "X conftest.file $srcdir/configure"; then
2687
2688 # If neither matched, then we have a broken ls. This can happen
2689 # if, for instance, CONFIG_SHELL is bash and it inherits a
2690 # broken ls alias from the environment. This has actually
2691 # happened. Such a system could not be considered "sane".
2692 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2693 alias in your environment" "$LINENO" 5
2694 fi
2695 if test "$2" = conftest.file || test $am_try -eq 2; then
2696 break
2697 fi
2698 # Just in case.
2699 sleep 1
2700 am_has_slept=yes
2701 done
2702 test "$2" = conftest.file
2703 )
2704then
2705 # Ok.
2706 :
2707else
2708 as_fn_error $? "newly created file is older than distributed files!
2709Check your system clock" "$LINENO" 5
2710fi
2711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2712$as_echo "yes" >&6; }
2713# If we didn't sleep, we still need to ensure time stamps of config.status and
2714# generated files are strictly newer.
2715am_sleep_pid=
2716if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2717 ( sleep 1 ) &
2718 am_sleep_pid=$!
2719fi
2720
2721rm -f conftest.file
2722
2723test "$program_prefix" != NONE &&
2724 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2725# Use a double $ so make ignores it.
2726test "$program_suffix" != NONE &&
2727 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2728# Double any \ or $.
2729# By default was `s,x,x', remove it if useless.
2730ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2731program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2732
2733# expand $ac_aux_dir to an absolute path
2734am_aux_dir=`cd $ac_aux_dir && pwd`
2735
2736if test x"${MISSING+set}" != xset; then
2737 case $am_aux_dir in
2738 *\ * | *\ *)
2739 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2740 *)
2741 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2742 esac
2743fi
2744# Use eval to expand $SHELL
2745if eval "$MISSING --is-lightweight"; then
2746 am_missing_run="$MISSING "
2747else
2748 am_missing_run=
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2750$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2751fi
9c60689e 2752
66170b30
JF
2753if test x"${install_sh}" != xset; then
2754 case $am_aux_dir in
2755 *\ * | *\ *)
2756 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2757 *)
2758 install_sh="\${SHELL} $am_aux_dir/install-sh"
2759 esac
2760fi
9c60689e 2761
66170b30
JF
2762# Installed binaries are usually stripped using 'strip' when the user
2763# run "make install-strip". However 'strip' might not be the right
2764# tool to use in cross-compilation environments, therefore Automake
2765# will honor the 'STRIP' environment variable to overrule this program.
2766if test "$cross_compiling" != no; then
2767 if test -n "$ac_tool_prefix"; then
2768 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2769set dummy ${ac_tool_prefix}strip; ac_word=$2
2770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2771$as_echo_n "checking for $ac_word... " >&6; }
2772if ${ac_cv_prog_STRIP+:} false; then :
2773 $as_echo_n "(cached) " >&6
2774else
2775 if test -n "$STRIP"; then
2776 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2777else
2778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2779for as_dir in $PATH
2780do
2781 IFS=$as_save_IFS
2782 test -z "$as_dir" && as_dir=.
2783 for ac_exec_ext in '' $ac_executable_extensions; do
2784 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2785 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2787 break 2
2788 fi
2789done
2790 done
2791IFS=$as_save_IFS
9c60689e 2792
66170b30
JF
2793fi
2794fi
2795STRIP=$ac_cv_prog_STRIP
2796if test -n "$STRIP"; then
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2798$as_echo "$STRIP" >&6; }
2799else
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2801$as_echo "no" >&6; }
2802fi
9c60689e 2803
9c60689e 2804
66170b30
JF
2805fi
2806if test -z "$ac_cv_prog_STRIP"; then
2807 ac_ct_STRIP=$STRIP
2808 # Extract the first word of "strip", so it can be a program name with args.
2809set dummy strip; ac_word=$2
2810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2811$as_echo_n "checking for $ac_word... " >&6; }
2812if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
9c60689e
DWT
2813 $as_echo_n "(cached) " >&6
2814else
66170b30
JF
2815 if test -n "$ac_ct_STRIP"; then
2816 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2817else
2818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2819for as_dir in $PATH
2820do
2821 IFS=$as_save_IFS
2822 test -z "$as_dir" && as_dir=.
2823 for ac_exec_ext in '' $ac_executable_extensions; do
2824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2825 ac_cv_prog_ac_ct_STRIP="strip"
2826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2827 break 2
2828 fi
2829done
2830 done
2831IFS=$as_save_IFS
9c60689e
DWT
2832
2833fi
66170b30
JF
2834fi
2835ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2836if test -n "$ac_ct_STRIP"; then
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2838$as_echo "$ac_ct_STRIP" >&6; }
2839else
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2841$as_echo "no" >&6; }
2842fi
2843
2844 if test "x$ac_ct_STRIP" = x; then
2845 STRIP=":"
2846 else
2847 case $cross_compiling:$ac_tool_warned in
2848yes:)
2849{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2850$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2851ac_tool_warned=yes ;;
9c60689e 2852esac
66170b30
JF
2853 STRIP=$ac_ct_STRIP
2854 fi
2855else
2856 STRIP="$ac_cv_prog_STRIP"
2857fi
9c60689e 2858
66170b30
JF
2859fi
2860INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
9c60689e 2861
66170b30
JF
2862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2863$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2864if test -z "$MKDIR_P"; then
2865 if ${ac_cv_path_mkdir+:} false; then :
9c60689e
DWT
2866 $as_echo_n "(cached) " >&6
2867else
66170b30
JF
2868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2869for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2870do
2871 IFS=$as_save_IFS
2872 test -z "$as_dir" && as_dir=.
2873 for ac_prog in mkdir gmkdir; do
2874 for ac_exec_ext in '' $ac_executable_extensions; do
2875 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2876 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2877 'mkdir (GNU coreutils) '* | \
2878 'mkdir (coreutils) '* | \
2879 'mkdir (fileutils) '4.1*)
2880 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2881 break 3;;
2882 esac
2883 done
2884 done
2885 done
2886IFS=$as_save_IFS
2887
2888fi
2889
2890 test -d ./--version && rmdir ./--version
2891 if test "${ac_cv_path_mkdir+set}" = set; then
2892 MKDIR_P="$ac_cv_path_mkdir -p"
2893 else
2894 # As a last resort, use the slow shell script. Don't cache a
2895 # value for MKDIR_P within a source directory, because that will
2896 # break other packages using the cache if that directory is
2897 # removed, or if the value is a relative name.
2898 MKDIR_P="$ac_install_sh -d"
2899 fi
2900fi
2901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2902$as_echo "$MKDIR_P" >&6; }
2903
2904for ac_prog in gawk mawk nawk awk
2905do
2906 # Extract the first word of "$ac_prog", so it can be a program name with args.
2907set dummy $ac_prog; ac_word=$2
2908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2909$as_echo_n "checking for $ac_word... " >&6; }
2910if ${ac_cv_prog_AWK+:} false; then :
2911 $as_echo_n "(cached) " >&6
2912else
2913 if test -n "$AWK"; then
2914 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2915else
2916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2917for as_dir in $PATH
2918do
2919 IFS=$as_save_IFS
2920 test -z "$as_dir" && as_dir=.
2921 for ac_exec_ext in '' $ac_executable_extensions; do
2922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2923 ac_cv_prog_AWK="$ac_prog"
2924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2925 break 2
2926 fi
2927done
2928 done
2929IFS=$as_save_IFS
2930
2931fi
2932fi
2933AWK=$ac_cv_prog_AWK
2934if test -n "$AWK"; then
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2936$as_echo "$AWK" >&6; }
2937else
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2939$as_echo "no" >&6; }
2940fi
2941
2942
2943 test -n "$AWK" && break
2944done
2945
2946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2947$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2948set x ${MAKE-make}
2949ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2950if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2951 $as_echo_n "(cached) " >&6
2952else
2953 cat >conftest.make <<\_ACEOF
2954SHELL = /bin/sh
2955all:
2956 @echo '@@@%%%=$(MAKE)=@@@%%%'
2957_ACEOF
2958# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2959case `${MAKE-make} -f conftest.make 2>/dev/null` in
2960 *@@@%%%=?*=@@@%%%*)
2961 eval ac_cv_prog_make_${ac_make}_set=yes;;
2962 *)
2963 eval ac_cv_prog_make_${ac_make}_set=no;;
2964esac
2965rm -f conftest.make
2966fi
2967if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2969$as_echo "yes" >&6; }
2970 SET_MAKE=
2971else
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2973$as_echo "no" >&6; }
2974 SET_MAKE="MAKE=${MAKE-make}"
2975fi
2976
2977rm -rf .tst 2>/dev/null
2978mkdir .tst 2>/dev/null
2979if test -d .tst; then
2980 am__leading_dot=.
2981else
2982 am__leading_dot=_
2983fi
2984rmdir .tst 2>/dev/null
2985
2986# Check whether --enable-silent-rules was given.
2987if test "${enable_silent_rules+set}" = set; then :
2988 enableval=$enable_silent_rules;
2989fi
2990
2991case $enable_silent_rules in # (((
2992 yes) AM_DEFAULT_VERBOSITY=0;;
2993 no) AM_DEFAULT_VERBOSITY=1;;
2994 *) AM_DEFAULT_VERBOSITY=1;;
2995esac
2996am_make=${MAKE-make}
2997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2998$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2999if ${am_cv_make_support_nested_variables+:} false; then :
3000 $as_echo_n "(cached) " >&6
3001else
3002 if $as_echo 'TRUE=$(BAR$(V))
3003BAR0=false
3004BAR1=true
3005V=1
3006am__doit:
3007 @$(TRUE)
3008.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3009 am_cv_make_support_nested_variables=yes
3010else
3011 am_cv_make_support_nested_variables=no
3012fi
3013fi
3014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3015$as_echo "$am_cv_make_support_nested_variables" >&6; }
3016if test $am_cv_make_support_nested_variables = yes; then
3017 AM_V='$(V)'
3018 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3019else
3020 AM_V=$AM_DEFAULT_VERBOSITY
3021 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3022fi
3023AM_BACKSLASH='\'
3024
3025if test "`cd $srcdir && pwd`" != "`pwd`"; then
3026 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3027 # is not polluted with repeated "-I."
3028 am__isrc=' -I$(srcdir)'
3029 # test to see if srcdir already configured
3030 if test -f $srcdir/config.status; then
3031 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3032 fi
3033fi
3034
3035# test whether we have cygpath
3036if test -z "$CYGPATH_W"; then
3037 if (cygpath --version) >/dev/null 2>/dev/null; then
3038 CYGPATH_W='cygpath -w'
3039 else
3040 CYGPATH_W=echo
3041 fi
3042fi
3043
3044
3045# Define the identity of the package.
3046 PACKAGE='cycript'
3047 VERSION='0.9'
3048
3049
3050cat >>confdefs.h <<_ACEOF
3051#define PACKAGE "$PACKAGE"
3052_ACEOF
3053
3054
3055cat >>confdefs.h <<_ACEOF
3056#define VERSION "$VERSION"
3057_ACEOF
3058
3059# Some tools Automake needs.
3060
3061ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3062
3063
3064AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3065
3066
3067AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3068
3069
3070AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3071
3072
3073MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3074
3075# For better backward compatibility. To be removed once Automake 1.9.x
3076# dies out for good. For more background, see:
3077# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3078# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3079mkdir_p='$(MKDIR_P)'
3080
3081# We need awk for the "check" target. The system "awk" is bad on
3082# some platforms.
3083# Always define AMTAR for backward compatibility. Yes, it's still used
3084# in the wild :-( We should find a proper way to deprecate it ...
3085AMTAR='$${TAR-tar}'
3086
3087am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3088
3089
3090
3091
3092
66170b30 3093
a243b558
JF
3094ac_ext=cpp
3095ac_cpp='$CXXCPP $CPPFLAGS'
3096ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3097ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3098ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3099if test -z "$CXX"; then
3100 if test -n "$CCC"; then
3101 CXX=$CCC
3102 else
3103 if test -n "$ac_tool_prefix"; then
3104 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3105 do
3106 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3107set dummy $ac_tool_prefix$ac_prog; ac_word=$2
dbadc56a
DWT
3108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3109$as_echo_n "checking for $ac_word... " >&6; }
a243b558 3110if ${ac_cv_prog_CXX+:} false; then :
dbadc56a
DWT
3111 $as_echo_n "(cached) " >&6
3112else
a243b558
JF
3113 if test -n "$CXX"; then
3114 ac_cv_prog_CXX="$CXX" # Let the user override the test.
dbadc56a
DWT
3115else
3116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3117for as_dir in $PATH
3118do
3119 IFS=$as_save_IFS
3120 test -z "$as_dir" && as_dir=.
3121 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 3122 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 3123 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
dbadc56a
DWT
3124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3125 break 2
3126 fi
3127done
3128 done
3129IFS=$as_save_IFS
3130
3131fi
3132fi
a243b558
JF
3133CXX=$ac_cv_prog_CXX
3134if test -n "$CXX"; then
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3136$as_echo "$CXX" >&6; }
35fa52c0
DWT
3137else
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3139$as_echo "no" >&6; }
3140fi
3141
3142
a243b558 3143 test -n "$CXX" && break
35fa52c0
DWT
3144 done
3145fi
a243b558
JF
3146if test -z "$CXX"; then
3147 ac_ct_CXX=$CXX
3148 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
35fa52c0
DWT
3149do
3150 # Extract the first word of "$ac_prog", so it can be a program name with args.
3151set dummy $ac_prog; ac_word=$2
3152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3153$as_echo_n "checking for $ac_word... " >&6; }
a243b558 3154if ${ac_cv_prog_ac_ct_CXX+:} false; then :
35fa52c0
DWT
3155 $as_echo_n "(cached) " >&6
3156else
a243b558
JF
3157 if test -n "$ac_ct_CXX"; then
3158 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
35fa52c0
DWT
3159else
3160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3161for as_dir in $PATH
3162do
3163 IFS=$as_save_IFS
3164 test -z "$as_dir" && as_dir=.
3165 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 3166 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 3167 ac_cv_prog_ac_ct_CXX="$ac_prog"
35fa52c0
DWT
3168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3169 break 2
3170 fi
3171done
3172 done
3173IFS=$as_save_IFS
3174
3175fi
3176fi
a243b558
JF
3177ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3178if test -n "$ac_ct_CXX"; then
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3180$as_echo "$ac_ct_CXX" >&6; }
35fa52c0
DWT
3181else
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3183$as_echo "no" >&6; }
3184fi
3185
3186
a243b558 3187 test -n "$ac_ct_CXX" && break
35fa52c0
DWT
3188done
3189
a243b558
JF
3190 if test "x$ac_ct_CXX" = x; then
3191 CXX="g++"
35fa52c0
DWT
3192 else
3193 case $cross_compiling:$ac_tool_warned in
3194yes:)
3195{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3196$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3197ac_tool_warned=yes ;;
3198esac
a243b558 3199 CXX=$ac_ct_CXX
35fa52c0
DWT
3200 fi
3201fi
3202
a243b558 3203 fi
35fa52c0 3204fi
35fa52c0 3205# Provide some information about the compiler.
a243b558 3206$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
35fa52c0
DWT
3207set X $ac_compile
3208ac_compiler=$2
3209for ac_option in --version -v -V -qversion; do
3210 { { ac_try="$ac_compiler $ac_option >&5"
3211case "(($ac_try" in
3212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3213 *) ac_try_echo=$ac_try;;
3214esac
3215eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3216$as_echo "$ac_try_echo"; } >&5
3217 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3218 ac_status=$?
3219 if test -s conftest.err; then
3220 sed '10a\
3221... rest of stderr output deleted ...
3222 10q' conftest.err >conftest.er1
3223 cat conftest.er1 >&5
35fa52c0 3224 fi
9c60689e 3225 rm -f conftest.er1 conftest.err
35fa52c0
DWT
3226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3227 test $ac_status = 0; }
3228done
3229
3230cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3231/* end confdefs.h. */
9c60689e 3232
35fa52c0
DWT
3233int
3234main ()
3235{
35fa52c0
DWT
3236
3237 ;
3238 return 0;
3239}
3240_ACEOF
3241ac_clean_files_save=$ac_clean_files
9c60689e 3242ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
35fa52c0
DWT
3243# Try to create an executable without -o first, disregard a.out.
3244# It will help us diagnose broken compilers, and finding out an intuition
3245# of exeext.
a243b558
JF
3246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3247$as_echo_n "checking whether the C++ compiler works... " >&6; }
35fa52c0
DWT
3248ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3249
3250# The possible output files:
3251ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3252
3253ac_rmfiles=
3254for ac_file in $ac_files
3255do
3256 case $ac_file in
3257 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3258 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3259 esac
3260done
3261rm -f $ac_rmfiles
3262
3263if { { ac_try="$ac_link_default"
3264case "(($ac_try" in
3265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3266 *) ac_try_echo=$ac_try;;
3267esac
3268eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3269$as_echo "$ac_try_echo"; } >&5
3270 (eval "$ac_link_default") 2>&5
3271 ac_status=$?
3272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3273 test $ac_status = 0; }; then :
3274 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3275# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3276# in a Makefile. We should not override ac_cv_exeext if it was cached,
3277# so that the user can short-circuit this test for compilers unknown to
3278# Autoconf.
3279for ac_file in $ac_files ''
3280do
3281 test -f "$ac_file" || continue
3282 case $ac_file in
3283 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3284 ;;
3285 [ab].out )
3286 # We found the default executable, but exeext='' is most
3287 # certainly right.
3288 break;;
3289 *.* )
3290 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3291 then :; else
3292 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3293 fi
3294 # We set ac_cv_exeext here because the later test for it is not
3295 # safe: cross compilers may not add the suffix if given an `-o'
3296 # argument, so we may need to know it at that point already.
3297 # Even if this section looks crufty: it has the advantage of
3298 # actually working.
3299 break;;
3300 * )
3301 break;;
3302 esac
3303done
3304test "$ac_cv_exeext" = no && ac_cv_exeext=
3305
3306else
3307 ac_file=''
3308fi
35fa52c0 3309if test -z "$ac_file"; then :
9c60689e
DWT
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3311$as_echo "no" >&6; }
3312$as_echo "$as_me: failed program was:" >&5
35fa52c0
DWT
3313sed 's/^/| /' conftest.$ac_ext >&5
3314
3315{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3316$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
a243b558 3317as_fn_error 77 "C++ compiler cannot create executables
ee134472 3318See \`config.log' for more details" "$LINENO" 5; }
9c60689e
DWT
3319else
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3321$as_echo "yes" >&6; }
35fa52c0 3322fi
a243b558
JF
3323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3324$as_echo_n "checking for C++ compiler default output file name... " >&6; }
9c60689e
DWT
3325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3326$as_echo "$ac_file" >&6; }
35fa52c0
DWT
3327ac_exeext=$ac_cv_exeext
3328
9c60689e 3329rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
35fa52c0 3330ac_clean_files=$ac_clean_files_save
35fa52c0
DWT
3331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3332$as_echo_n "checking for suffix of executables... " >&6; }
3333if { { ac_try="$ac_link"
3334case "(($ac_try" in
3335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3336 *) ac_try_echo=$ac_try;;
3337esac
3338eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3339$as_echo "$ac_try_echo"; } >&5
3340 (eval "$ac_link") 2>&5
3341 ac_status=$?
3342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3343 test $ac_status = 0; }; then :
3344 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3345# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3346# work properly (i.e., refer to `conftest.exe'), while it won't with
3347# `rm'.
3348for ac_file in conftest.exe conftest conftest.*; do
3349 test -f "$ac_file" || continue
3350 case $ac_file in
3351 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3352 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3353 break;;
3354 * ) break;;
3355 esac
3356done
3357else
3358 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3359$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12833ad8 3360as_fn_error $? "cannot compute suffix of executables: cannot compile and link
ee134472 3361See \`config.log' for more details" "$LINENO" 5; }
35fa52c0 3362fi
9c60689e 3363rm -f conftest conftest$ac_cv_exeext
35fa52c0
DWT
3364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3365$as_echo "$ac_cv_exeext" >&6; }
3366
3367rm -f conftest.$ac_ext
3368EXEEXT=$ac_cv_exeext
3369ac_exeext=$EXEEXT
9c60689e
DWT
3370cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3371/* end confdefs.h. */
3372#include <stdio.h>
3373int
3374main ()
3375{
3376FILE *f = fopen ("conftest.out", "w");
3377 return ferror (f) || fclose (f) != 0;
3378
3379 ;
3380 return 0;
3381}
3382_ACEOF
3383ac_clean_files="$ac_clean_files conftest.out"
3384# Check that the compiler produces executables we can run. If not, either
3385# the compiler is broken, or we cross compile.
3386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3387$as_echo_n "checking whether we are cross compiling... " >&6; }
3388if test "$cross_compiling" != yes; then
3389 { { ac_try="$ac_link"
3390case "(($ac_try" in
3391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3392 *) ac_try_echo=$ac_try;;
3393esac
3394eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3395$as_echo "$ac_try_echo"; } >&5
3396 (eval "$ac_link") 2>&5
3397 ac_status=$?
3398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3399 test $ac_status = 0; }
3400 if { ac_try='./conftest$ac_cv_exeext'
3401 { { case "(($ac_try" in
3402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3403 *) ac_try_echo=$ac_try;;
3404esac
3405eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3406$as_echo "$ac_try_echo"; } >&5
3407 (eval "$ac_try") 2>&5
3408 ac_status=$?
3409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3410 test $ac_status = 0; }; }; then
3411 cross_compiling=no
3412 else
3413 if test "$cross_compiling" = maybe; then
3414 cross_compiling=yes
3415 else
3416 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3417$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
a243b558 3418as_fn_error $? "cannot run C++ compiled programs.
9c60689e 3419If you meant to cross compile, use \`--host'.
ee134472 3420See \`config.log' for more details" "$LINENO" 5; }
9c60689e
DWT
3421 fi
3422 fi
3423fi
3424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3425$as_echo "$cross_compiling" >&6; }
3426
3427rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3428ac_clean_files=$ac_clean_files_save
35fa52c0
DWT
3429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3430$as_echo_n "checking for suffix of object files... " >&6; }
ee134472 3431if ${ac_cv_objext+:} false; then :
35fa52c0
DWT
3432 $as_echo_n "(cached) " >&6
3433else
3434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3435/* end confdefs.h. */
3436
3437int
3438main ()
3439{
3440
3441 ;
3442 return 0;
3443}
3444_ACEOF
3445rm -f conftest.o conftest.obj
3446if { { ac_try="$ac_compile"
3447case "(($ac_try" in
3448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3449 *) ac_try_echo=$ac_try;;
3450esac
3451eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3452$as_echo "$ac_try_echo"; } >&5
3453 (eval "$ac_compile") 2>&5
3454 ac_status=$?
3455 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3456 test $ac_status = 0; }; then :
3457 for ac_file in conftest.o conftest.obj conftest.*; do
3458 test -f "$ac_file" || continue;
3459 case $ac_file in
3460 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3461 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3462 break;;
3463 esac
3464done
3465else
3466 $as_echo "$as_me: failed program was:" >&5
3467sed 's/^/| /' conftest.$ac_ext >&5
3468
3469{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3470$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12833ad8 3471as_fn_error $? "cannot compute suffix of object files: cannot compile
ee134472 3472See \`config.log' for more details" "$LINENO" 5; }
35fa52c0
DWT
3473fi
3474rm -f conftest.$ac_cv_objext conftest.$ac_ext
3475fi
3476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3477$as_echo "$ac_cv_objext" >&6; }
3478OBJEXT=$ac_cv_objext
3479ac_objext=$OBJEXT
a243b558
JF
3480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3481$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3482if ${ac_cv_cxx_compiler_gnu+:} false; then :
35fa52c0
DWT
3483 $as_echo_n "(cached) " >&6
3484else
3485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3486/* end confdefs.h. */
3487
3488int
3489main ()
3490{
3491#ifndef __GNUC__
3492 choke me
3493#endif
3494
3495 ;
3496 return 0;
3497}
3498_ACEOF
a243b558 3499if ac_fn_cxx_try_compile "$LINENO"; then :
35fa52c0
DWT
3500 ac_compiler_gnu=yes
3501else
3502 ac_compiler_gnu=no
3503fi
3504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a243b558 3505ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
35fa52c0
DWT
3506
3507fi
a243b558
JF
3508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3509$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
35fa52c0 3510if test $ac_compiler_gnu = yes; then
a243b558 3511 GXX=yes
35fa52c0 3512else
a243b558 3513 GXX=
35fa52c0 3514fi
a243b558
JF
3515ac_test_CXXFLAGS=${CXXFLAGS+set}
3516ac_save_CXXFLAGS=$CXXFLAGS
3517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3518$as_echo_n "checking whether $CXX accepts -g... " >&6; }
3519if ${ac_cv_prog_cxx_g+:} false; then :
35fa52c0
DWT
3520 $as_echo_n "(cached) " >&6
3521else
a243b558
JF
3522 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3523 ac_cxx_werror_flag=yes
3524 ac_cv_prog_cxx_g=no
3525 CXXFLAGS="-g"
35fa52c0
DWT
3526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3527/* end confdefs.h. */
3528
3529int
3530main ()
3531{
3532
3533 ;
3534 return 0;
3535}
3536_ACEOF
a243b558
JF
3537if ac_fn_cxx_try_compile "$LINENO"; then :
3538 ac_cv_prog_cxx_g=yes
35fa52c0 3539else
a243b558 3540 CXXFLAGS=""
35fa52c0
DWT
3541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3542/* end confdefs.h. */
3543
3544int
3545main ()
3546{
3547
3548 ;
3549 return 0;
3550}
3551_ACEOF
a243b558 3552if ac_fn_cxx_try_compile "$LINENO"; then :
35fa52c0
DWT
3553
3554else
a243b558
JF
3555 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3556 CXXFLAGS="-g"
35fa52c0
DWT
3557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3558/* end confdefs.h. */
3559
3560int
3561main ()
3562{
3563
3564 ;
3565 return 0;
3566}
3567_ACEOF
a243b558
JF
3568if ac_fn_cxx_try_compile "$LINENO"; then :
3569 ac_cv_prog_cxx_g=yes
35fa52c0
DWT
3570fi
3571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3572fi
3573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3574fi
3575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a243b558 3576 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
35fa52c0 3577fi
a243b558
JF
3578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3579$as_echo "$ac_cv_prog_cxx_g" >&6; }
3580if test "$ac_test_CXXFLAGS" = set; then
3581 CXXFLAGS=$ac_save_CXXFLAGS
3582elif test $ac_cv_prog_cxx_g = yes; then
3583 if test "$GXX" = yes; then
3584 CXXFLAGS="-g -O2"
35fa52c0 3585 else
a243b558 3586 CXXFLAGS="-g"
35fa52c0
DWT
3587 fi
3588else
a243b558
JF
3589 if test "$GXX" = yes; then
3590 CXXFLAGS="-O2"
35fa52c0 3591 else
a243b558 3592 CXXFLAGS=
35fa52c0
DWT
3593 fi
3594fi
a243b558
JF
3595ac_ext=c
3596ac_cpp='$CPP $CPPFLAGS'
3597ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3598ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3599ac_compiler_gnu=$ac_cv_c_compiler_gnu
3600DEPDIR="${am__leading_dot}deps"
35fa52c0 3601
a243b558 3602ac_config_commands="$ac_config_commands depfiles"
35fa52c0 3603
35fa52c0 3604
a243b558
JF
3605am_make=${MAKE-make}
3606cat > confinc << 'END'
3607am__doit:
3608 @echo this is the am__doit target
3609.PHONY: am__doit
3610END
3611# If we don't find an include directive, just comment out the code.
3612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3613$as_echo_n "checking for style of include used by $am_make... " >&6; }
3614am__include="#"
3615am__quote=
3616_am_result=none
3617# First try GNU make style include.
3618echo "include confinc" > confmf
3619# Ignore all kinds of additional output from 'make'.
3620case `$am_make -s -f confmf 2> /dev/null` in #(
3621*the\ am__doit\ target*)
3622 am__include=include
3623 am__quote=
3624 _am_result=GNU
3625 ;;
3626esac
3627# Now try BSD make style include.
3628if test "$am__include" = "#"; then
3629 echo '.include "confinc"' > confmf
3630 case `$am_make -s -f confmf 2> /dev/null` in #(
3631 *the\ am__doit\ target*)
3632 am__include=.include
3633 am__quote="\""
3634 _am_result=BSD
3635 ;;
3636 esac
35fa52c0 3637fi
35fa52c0 3638
a243b558
JF
3639
3640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3641$as_echo "$_am_result" >&6; }
3642rm -f confinc confmf
3643
3644# Check whether --enable-dependency-tracking was given.
3645if test "${enable_dependency_tracking+set}" = set; then :
3646 enableval=$enable_dependency_tracking;
35fa52c0 3647fi
35fa52c0 3648
a243b558
JF
3649if test "x$enable_dependency_tracking" != xno; then
3650 am_depcomp="$ac_aux_dir/depcomp"
3651 AMDEPBACKSLASH='\'
3652 am__nodep='_no'
3653fi
3654 if test "x$enable_dependency_tracking" != xno; then
3655 AMDEP_TRUE=
3656 AMDEP_FALSE='#'
3657else
3658 AMDEP_TRUE='#'
3659 AMDEP_FALSE=
35fa52c0
DWT
3660fi
3661
35fa52c0 3662
a243b558
JF
3663
3664depcc="$CXX" am_compiler_list=
66170b30
JF
3665
3666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3667$as_echo_n "checking dependency style of $depcc... " >&6; }
a243b558 3668if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
66170b30
JF
3669 $as_echo_n "(cached) " >&6
3670else
3671 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3672 # We make a subdir and do the tests there. Otherwise we can end up
3673 # making bogus files that we don't know about and never remove. For
3674 # instance it was reported that on HP-UX the gcc test will end up
3675 # making a dummy file named 'D' -- because '-MD' means "put the output
3676 # in D".
3677 rm -rf conftest.dir
3678 mkdir conftest.dir
3679 # Copy depcomp to subdir because otherwise we won't find it if we're
3680 # using a relative directory.
3681 cp "$am_depcomp" conftest.dir
3682 cd conftest.dir
3683 # We will build objects and dependencies in a subdirectory because
3684 # it helps to detect inapplicable dependency modes. For instance
3685 # both Tru64's cc and ICC support -MD to output dependencies as a
3686 # side effect of compilation, but ICC will put the dependencies in
3687 # the current directory while Tru64 will put them in the object
3688 # directory.
3689 mkdir sub
3690
a243b558 3691 am_cv_CXX_dependencies_compiler_type=none
66170b30
JF
3692 if test "$am_compiler_list" = ""; then
3693 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3694 fi
3695 am__universal=false
3696 case " $depcc " in #(
3697 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3698 esac
3699
3700 for depmode in $am_compiler_list; do
3701 # Setup a source with many dependencies, because some compilers
3702 # like to wrap large dependency lists on column 80 (with \), and
3703 # we should not choose a depcomp mode which is confused by this.
3704 #
3705 # We need to recreate these files for each test, as the compiler may
3706 # overwrite some of them when testing with obscure command lines.
3707 # This happens at least with the AIX C compiler.
3708 : > sub/conftest.c
3709 for i in 1 2 3 4 5 6; do
3710 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3711 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3712 # Solaris 10 /bin/sh.
3713 echo '/* dummy */' > sub/conftst$i.h
3714 done
3715 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3716
3717 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3718 # mode. It turns out that the SunPro C++ compiler does not properly
3719 # handle '-M -o', and we need to detect this. Also, some Intel
3720 # versions had trouble with output in subdirs.
3721 am__obj=sub/conftest.${OBJEXT-o}
3722 am__minus_obj="-o $am__obj"
3723 case $depmode in
3724 gcc)
3725 # This depmode causes a compiler race in universal mode.
3726 test "$am__universal" = false || continue
3727 ;;
3728 nosideeffect)
3729 # After this tag, mechanisms are not by side-effect, so they'll
3730 # only be used when explicitly requested.
3731 if test "x$enable_dependency_tracking" = xyes; then
3732 continue
3733 else
3734 break
3735 fi
3736 ;;
3737 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3738 # This compiler won't grok '-c -o', but also, the minuso test has
3739 # not run yet. These depmodes are late enough in the game, and
3740 # so weak that their functioning should not be impacted.
3741 am__obj=conftest.${OBJEXT-o}
3742 am__minus_obj=
3743 ;;
3744 none) break ;;
3745 esac
3746 if depmode=$depmode \
3747 source=sub/conftest.c object=$am__obj \
3748 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3749 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3750 >/dev/null 2>conftest.err &&
3751 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3752 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3753 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3754 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3755 # icc doesn't choke on unknown options, it will just issue warnings
3756 # or remarks (even with -Werror). So we grep stderr for any message
3757 # that says an option was ignored or not supported.
3758 # When given -MP, icc 7.0 and 7.1 complain thusly:
3759 # icc: Command line warning: ignoring option '-M'; no argument required
3760 # The diagnosis changed in icc 8.0:
3761 # icc: Command line remark: option '-MP' not supported
3762 if (grep 'ignoring option' conftest.err ||
3763 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
a243b558 3764 am_cv_CXX_dependencies_compiler_type=$depmode
66170b30
JF
3765 break
3766 fi
3767 fi
3768 done
3769
3770 cd ..
3771 rm -rf conftest.dir
3772else
a243b558 3773 am_cv_CXX_dependencies_compiler_type=none
66170b30
JF
3774fi
3775
3776fi
a243b558
JF
3777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
3778$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
3779CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
66170b30
JF
3780
3781 if
3782 test "x$enable_dependency_tracking" != xno \
a243b558
JF
3783 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3784 am__fastdepCXX_TRUE=
3785 am__fastdepCXX_FALSE='#'
66170b30 3786else
a243b558
JF
3787 am__fastdepCXX_TRUE='#'
3788 am__fastdepCXX_FALSE=
66170b30
JF
3789fi
3790
3791
a243b558
JF
3792ac_ext=mm
3793ac_cpp='$OBJCXXCPP $CPPFLAGS'
3794ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3795ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3796ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
3797if test -n "$ac_tool_prefix"; then
3798 for ac_prog in g++ objc++ objcxx c++ CXX
3799 do
3800 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3801set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3803$as_echo_n "checking for $ac_word... " >&6; }
3804if ${ac_cv_prog_OBJCXX+:} false; then :
35fa52c0
DWT
3805 $as_echo_n "(cached) " >&6
3806else
a243b558
JF
3807 if test -n "$OBJCXX"; then
3808 ac_cv_prog_OBJCXX="$OBJCXX" # Let the user override the test.
3809else
3810as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3811for as_dir in $PATH
3812do
35fa52c0
DWT
3813 IFS=$as_save_IFS
3814 test -z "$as_dir" && as_dir=.
3815 for ac_exec_ext in '' $ac_executable_extensions; do
a243b558
JF
3816 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3817 ac_cv_prog_OBJCXX="$ac_tool_prefix$ac_prog"
3818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3819 break 2
3820 fi
3821done
9c60689e
DWT
3822 done
3823IFS=$as_save_IFS
35fa52c0 3824
9c60689e 3825fi
a243b558
JF
3826fi
3827OBJCXX=$ac_cv_prog_OBJCXX
3828if test -n "$OBJCXX"; then
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCXX" >&5
3830$as_echo "$OBJCXX" >&6; }
3831else
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3833$as_echo "no" >&6; }
3834fi
35fa52c0 3835
35fa52c0 3836
a243b558
JF
3837 test -n "$OBJCXX" && break
3838 done
3839fi
3840if test -z "$OBJCXX"; then
3841 ac_ct_OBJCXX=$OBJCXX
3842 for ac_prog in g++ objc++ objcxx c++ CXX
3843do
3844 # Extract the first word of "$ac_prog", so it can be a program name with args.
3845set dummy $ac_prog; ac_word=$2
3846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3847$as_echo_n "checking for $ac_word... " >&6; }
3848if ${ac_cv_prog_ac_ct_OBJCXX+:} false; then :
9c60689e
DWT
3849 $as_echo_n "(cached) " >&6
3850else
a243b558
JF
3851 if test -n "$ac_ct_OBJCXX"; then
3852 ac_cv_prog_ac_ct_OBJCXX="$ac_ct_OBJCXX" # Let the user override the test.
3853else
3854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3855for as_dir in $PATH
9c60689e
DWT
3856do
3857 IFS=$as_save_IFS
3858 test -z "$as_dir" && as_dir=.
9c60689e 3859 for ac_exec_ext in '' $ac_executable_extensions; do
a243b558
JF
3860 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3861 ac_cv_prog_ac_ct_OBJCXX="$ac_prog"
3862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3863 break 2
3864 fi
3865done
9c60689e
DWT
3866 done
3867IFS=$as_save_IFS
a243b558
JF
3868
3869fi
3870fi
3871ac_ct_OBJCXX=$ac_cv_prog_ac_ct_OBJCXX
3872if test -n "$ac_ct_OBJCXX"; then
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCXX" >&5
3874$as_echo "$ac_ct_OBJCXX" >&6; }
9c60689e 3875else
a243b558
JF
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3877$as_echo "no" >&6; }
9c60689e 3878fi
6b66678a
DWT
3879
3880
a243b558
JF
3881 test -n "$ac_ct_OBJCXX" && break
3882done
6b66678a 3883
a243b558
JF
3884 if test "x$ac_ct_OBJCXX" = x; then
3885 OBJCXX="g++"
3886 else
3887 case $cross_compiling:$ac_tool_warned in
3888yes:)
3889{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3890$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3891ac_tool_warned=yes ;;
9c60689e 3892esac
a243b558 3893 OBJCXX=$ac_ct_OBJCXX
9c60689e 3894 fi
9c60689e 3895fi
6b66678a 3896
a243b558
JF
3897# Provide some information about the compiler.
3898$as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C++ compiler version" >&5
3899set X $ac_compile
3900ac_compiler=$2
3901for ac_option in --version -v -V -qversion; do
3902 { { ac_try="$ac_compiler $ac_option >&5"
3903case "(($ac_try" in
3904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3905 *) ac_try_echo=$ac_try;;
3906esac
3907eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3908$as_echo "$ac_try_echo"; } >&5
3909 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3910 ac_status=$?
3911 if test -s conftest.err; then
3912 sed '10a\
3913... rest of stderr output deleted ...
3914 10q' conftest.err >conftest.er1
3915 cat conftest.er1 >&5
3916 fi
3917 rm -f conftest.er1 conftest.err
3918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3919 test $ac_status = 0; }
3920done
6b66678a 3921
a243b558
JF
3922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C++ compiler" >&5
3923$as_echo_n "checking whether we are using the GNU Objective C++ compiler... " >&6; }
3924if ${ac_cv_objcxx_compiler_gnu+:} false; then :
9c60689e 3925 $as_echo_n "(cached) " >&6
6b66678a 3926else
a243b558
JF
3927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3928/* end confdefs.h. */
6b66678a 3929
a243b558
JF
3930int
3931main ()
3932{
3933#ifndef __GNUC__
3934 choke me
3935#endif
3936
3937 ;
3938 return 0;
3939}
3940_ACEOF
3941if ac_fn_objcxx_try_compile "$LINENO"; then :
3942 ac_compiler_gnu=yes
9c60689e 3943else
a243b558 3944 ac_compiler_gnu=no
6b66678a 3945fi
a243b558
JF
3946rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3947ac_cv_objcxx_compiler_gnu=$ac_compiler_gnu
6b66678a
DWT
3948
3949fi
a243b558
JF
3950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objcxx_compiler_gnu" >&5
3951$as_echo "$ac_cv_objcxx_compiler_gnu" >&6; }
3952if test $ac_compiler_gnu = yes; then
3953 GOBJCXX=yes
3954else
3955 GOBJCXX=
3956fi
3957ac_test_OBJCXXFLAGS=${OBJCXXFLAGS+set}
3958ac_save_OBJCXXFLAGS=$OBJCXXFLAGS
3959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJCXX accepts -g" >&5
3960$as_echo_n "checking whether $OBJCXX accepts -g... " >&6; }
3961if ${ac_cv_prog_objcxx_g+:} false; then :
3962 $as_echo_n "(cached) " >&6
3963else
3964 ac_save_objcxx_werror_flag=$ac_objcxx_werror_flag
3965 ac_objcxx_werror_flag=yes
3966 ac_cv_prog_objcxx_g=no
3967 OBJCXXFLAGS="-g"
3968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3969/* end confdefs.h. */
309b0535 3970
a243b558
JF
3971int
3972main ()
3973{
309b0535 3974
a243b558
JF
3975 ;
3976 return 0;
3977}
3978_ACEOF
3979if ac_fn_objcxx_try_compile "$LINENO"; then :
3980 ac_cv_prog_objcxx_g=yes
3981else
3982 OBJCXXFLAGS=""
3983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3984/* end confdefs.h. */
309b0535 3985
a243b558
JF
3986int
3987main ()
3988{
309b0535 3989
a243b558
JF
3990 ;
3991 return 0;
3992}
3993_ACEOF
3994if ac_fn_objcxx_try_compile "$LINENO"; then :
309b0535 3995
a243b558
JF
3996else
3997 ac_objcxx_werror_flag=$ac_save_objcxx_werror_flag
3998 OBJCXXFLAGS="-g"
3999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4000/* end confdefs.h. */
309b0535 4001
a243b558
JF
4002int
4003main ()
4004{
309b0535 4005
a243b558
JF
4006 ;
4007 return 0;
4008}
4009_ACEOF
4010if ac_fn_objcxx_try_compile "$LINENO"; then :
4011 ac_cv_prog_objcxx_g=yes
9c60689e 4012fi
a243b558 4013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9c60689e 4014fi
a243b558 4015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9c60689e 4016fi
a243b558
JF
4017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4018 ac_objcxx_werror_flag=$ac_save_objcx_werror_flag
9c60689e 4019fi
a243b558
JF
4020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objcxx_g" >&5
4021$as_echo "$ac_cv_prog_objcxx_g" >&6; }
4022if test "$ac_test_OBJCXXFLAGS" = set; then
4023 OBJCXXFLAGS=$ac_save_OBJCXXFLAGS
4024elif test $ac_cv_prog_objcxx_g = yes; then
4025 if test "$GOBJCXX" = yes; then
4026 OBJCXXFLAGS="-g -O2"
4027 else
4028 OBJCXXFLAGS="-g"
4029 fi
9c60689e 4030else
a243b558
JF
4031 if test "$GOBJCXX" = yes; then
4032 OBJCXXFLAGS="-O2"
4033 else
4034 OBJCXXFLAGS=
4035 fi
9c60689e 4036fi
a243b558
JF
4037ac_ext=c
4038ac_cpp='$CPP $CPPFLAGS'
4039ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4040ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4041ac_compiler_gnu=$ac_cv_c_compiler_gnu
309b0535 4042
a243b558 4043depcc="$OBJCXX" am_compiler_list='gcc3 gcc'
309b0535 4044
a243b558
JF
4045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4046$as_echo_n "checking dependency style of $depcc... " >&6; }
4047if ${am_cv_OBJCXX_dependencies_compiler_type+:} false; then :
4048 $as_echo_n "(cached) " >&6
4049else
4050 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4051 # We make a subdir and do the tests there. Otherwise we can end up
4052 # making bogus files that we don't know about and never remove. For
4053 # instance it was reported that on HP-UX the gcc test will end up
4054 # making a dummy file named 'D' -- because '-MD' means "put the output
4055 # in D".
4056 rm -rf conftest.dir
4057 mkdir conftest.dir
4058 # Copy depcomp to subdir because otherwise we won't find it if we're
4059 # using a relative directory.
4060 cp "$am_depcomp" conftest.dir
4061 cd conftest.dir
4062 # We will build objects and dependencies in a subdirectory because
4063 # it helps to detect inapplicable dependency modes. For instance
4064 # both Tru64's cc and ICC support -MD to output dependencies as a
4065 # side effect of compilation, but ICC will put the dependencies in
4066 # the current directory while Tru64 will put them in the object
4067 # directory.
4068 mkdir sub
309b0535 4069
a243b558
JF
4070 am_cv_OBJCXX_dependencies_compiler_type=none
4071 if test "$am_compiler_list" = ""; then
4072 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4073 fi
4074 am__universal=false
309b0535 4075
9c60689e 4076
a243b558
JF
4077 for depmode in $am_compiler_list; do
4078 # Setup a source with many dependencies, because some compilers
4079 # like to wrap large dependency lists on column 80 (with \), and
4080 # we should not choose a depcomp mode which is confused by this.
4081 #
4082 # We need to recreate these files for each test, as the compiler may
4083 # overwrite some of them when testing with obscure command lines.
4084 # This happens at least with the AIX C compiler.
4085 : > sub/conftest.c
4086 for i in 1 2 3 4 5 6; do
4087 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4088 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4089 # Solaris 10 /bin/sh.
4090 echo '/* dummy */' > sub/conftst$i.h
4091 done
4092 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
9c60689e 4093
a243b558
JF
4094 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4095 # mode. It turns out that the SunPro C++ compiler does not properly
4096 # handle '-M -o', and we need to detect this. Also, some Intel
4097 # versions had trouble with output in subdirs.
4098 am__obj=sub/conftest.${OBJEXT-o}
4099 am__minus_obj="-o $am__obj"
4100 case $depmode in
4101 gcc)
4102 # This depmode causes a compiler race in universal mode.
4103 test "$am__universal" = false || continue
4104 ;;
4105 nosideeffect)
4106 # After this tag, mechanisms are not by side-effect, so they'll
4107 # only be used when explicitly requested.
4108 if test "x$enable_dependency_tracking" = xyes; then
4109 continue
4110 else
4111 break
309b0535 4112 fi
a243b558
JF
4113 ;;
4114 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4115 # This compiler won't grok '-c -o', but also, the minuso test has
4116 # not run yet. These depmodes are late enough in the game, and
4117 # so weak that their functioning should not be impacted.
4118 am__obj=conftest.${OBJEXT-o}
4119 am__minus_obj=
4120 ;;
4121 none) break ;;
4122 esac
4123 if depmode=$depmode \
4124 source=sub/conftest.c object=$am__obj \
4125 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4126 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4127 >/dev/null 2>conftest.err &&
4128 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4129 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4130 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4131 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4132 # icc doesn't choke on unknown options, it will just issue warnings
4133 # or remarks (even with -Werror). So we grep stderr for any message
4134 # that says an option was ignored or not supported.
4135 # When given -MP, icc 7.0 and 7.1 complain thusly:
4136 # icc: Command line warning: ignoring option '-M'; no argument required
4137 # The diagnosis changed in icc 8.0:
4138 # icc: Command line remark: option '-MP' not supported
4139 if (grep 'ignoring option' conftest.err ||
4140 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4141 am_cv_OBJCXX_dependencies_compiler_type=$depmode
4142 break
4143 fi
4144 fi
309b0535 4145 done
a243b558
JF
4146
4147 cd ..
4148 rm -rf conftest.dir
4149else
4150 am_cv_OBJCXX_dependencies_compiler_type=none
9c60689e 4151fi
a243b558 4152
9c60689e 4153fi
a243b558
JF
4154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_OBJCXX_dependencies_compiler_type" >&5
4155$as_echo "$am_cv_OBJCXX_dependencies_compiler_type" >&6; }
4156OBJCXXDEPMODE=depmode=$am_cv_OBJCXX_dependencies_compiler_type
4157
4158 if
4159 test "x$enable_dependency_tracking" != xno \
4160 && test "$am_cv_OBJCXX_dependencies_compiler_type" = gcc3; then
4161 am__fastdepOBJCXX_TRUE=
4162 am__fastdepOBJCXX_FALSE='#'
9c60689e 4163else
a243b558
JF
4164 am__fastdepOBJCXX_TRUE='#'
4165 am__fastdepOBJCXX_FALSE=
4166fi
4167
4168
4169ac_ext=c
4170ac_cpp='$CPP $CPPFLAGS'
4171ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4172ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4173ac_compiler_gnu=$ac_cv_c_compiler_gnu
4174if test -n "$ac_tool_prefix"; then
4175 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4176set dummy ${ac_tool_prefix}gcc; ac_word=$2
35fa52c0
DWT
4177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4178$as_echo_n "checking for $ac_word... " >&6; }
a243b558 4179if ${ac_cv_prog_CC+:} false; then :
35fa52c0
DWT
4180 $as_echo_n "(cached) " >&6
4181else
a243b558
JF
4182 if test -n "$CC"; then
4183 ac_cv_prog_CC="$CC" # Let the user override the test.
35fa52c0
DWT
4184else
4185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4186for as_dir in $PATH
4187do
4188 IFS=$as_save_IFS
4189 test -z "$as_dir" && as_dir=.
4190 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 4191 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 4192 ac_cv_prog_CC="${ac_tool_prefix}gcc"
35fa52c0
DWT
4193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4194 break 2
4195 fi
4196done
4197 done
4198IFS=$as_save_IFS
4199
4200fi
4201fi
a243b558
JF
4202CC=$ac_cv_prog_CC
4203if test -n "$CC"; then
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4205$as_echo "$CC" >&6; }
35fa52c0
DWT
4206else
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4208$as_echo "no" >&6; }
4209fi
4210
4211
35fa52c0 4212fi
a243b558
JF
4213if test -z "$ac_cv_prog_CC"; then
4214 ac_ct_CC=$CC
4215 # Extract the first word of "gcc", so it can be a program name with args.
4216set dummy gcc; ac_word=$2
35fa52c0
DWT
4217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4218$as_echo_n "checking for $ac_word... " >&6; }
a243b558 4219if ${ac_cv_prog_ac_ct_CC+:} false; then :
35fa52c0
DWT
4220 $as_echo_n "(cached) " >&6
4221else
a243b558
JF
4222 if test -n "$ac_ct_CC"; then
4223 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
35fa52c0
DWT
4224else
4225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4226for as_dir in $PATH
4227do
4228 IFS=$as_save_IFS
4229 test -z "$as_dir" && as_dir=.
4230 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 4231 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 4232 ac_cv_prog_ac_ct_CC="gcc"
35fa52c0
DWT
4233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4234 break 2
4235 fi
4236done
4237 done
4238IFS=$as_save_IFS
4239
4240fi
4241fi
a243b558
JF
4242ac_ct_CC=$ac_cv_prog_ac_ct_CC
4243if test -n "$ac_ct_CC"; then
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4245$as_echo "$ac_ct_CC" >&6; }
35fa52c0
DWT
4246else
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4248$as_echo "no" >&6; }
4249fi
4250
a243b558
JF
4251 if test "x$ac_ct_CC" = x; then
4252 CC=""
35fa52c0
DWT
4253 else
4254 case $cross_compiling:$ac_tool_warned in
4255yes:)
4256{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4257$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4258ac_tool_warned=yes ;;
4259esac
a243b558 4260 CC=$ac_ct_CC
35fa52c0 4261 fi
a243b558
JF
4262else
4263 CC="$ac_cv_prog_CC"
35fa52c0
DWT
4264fi
4265
a243b558
JF
4266if test -z "$CC"; then
4267 if test -n "$ac_tool_prefix"; then
4268 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4269set dummy ${ac_tool_prefix}cc; ac_word=$2
4270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4271$as_echo_n "checking for $ac_word... " >&6; }
4272if ${ac_cv_prog_CC+:} false; then :
4273 $as_echo_n "(cached) " >&6
4274else
4275 if test -n "$CC"; then
4276 ac_cv_prog_CC="$CC" # Let the user override the test.
4277else
4278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4279for as_dir in $PATH
4280do
4281 IFS=$as_save_IFS
4282 test -z "$as_dir" && as_dir=.
4283 for ac_exec_ext in '' $ac_executable_extensions; do
4284 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4285 ac_cv_prog_CC="${ac_tool_prefix}cc"
4286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4287 break 2
ee134472 4288 fi
a243b558
JF
4289done
4290 done
4291IFS=$as_save_IFS
9c60689e 4292
35fa52c0 4293fi
a243b558
JF
4294fi
4295CC=$ac_cv_prog_CC
4296if test -n "$CC"; then
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4298$as_echo "$CC" >&6; }
4299else
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4301$as_echo "no" >&6; }
4302fi
35fa52c0 4303
35fa52c0 4304
a243b558
JF
4305 fi
4306fi
4307if test -z "$CC"; then
4308 # Extract the first word of "cc", so it can be a program name with args.
4309set dummy cc; ac_word=$2
4310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4311$as_echo_n "checking for $ac_word... " >&6; }
4312if ${ac_cv_prog_CC+:} false; then :
4313 $as_echo_n "(cached) " >&6
4314else
4315 if test -n "$CC"; then
4316 ac_cv_prog_CC="$CC" # Let the user override the test.
4317else
4318 ac_prog_rejected=no
4319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4320for as_dir in $PATH
4321do
4322 IFS=$as_save_IFS
4323 test -z "$as_dir" && as_dir=.
4324 for ac_exec_ext in '' $ac_executable_extensions; do
4325 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4326 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4327 ac_prog_rejected=yes
4328 continue
4329 fi
4330 ac_cv_prog_CC="cc"
4331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4332 break 2
4333 fi
4334done
4335 done
4336IFS=$as_save_IFS
35fa52c0 4337
a243b558
JF
4338if test $ac_prog_rejected = yes; then
4339 # We found a bogon in the path, so make sure we never use it.
4340 set dummy $ac_cv_prog_CC
4341 shift
4342 if test $# != 0; then
4343 # We chose a different compiler from the bogus one.
4344 # However, it has the same basename, so the bogon will be chosen
4345 # first if we set CC to just the basename; use the full file name.
4346 shift
4347 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4348 fi
4349fi
4350fi
4351fi
4352CC=$ac_cv_prog_CC
4353if test -n "$CC"; then
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4355$as_echo "$CC" >&6; }
4356else
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4358$as_echo "no" >&6; }
4359fi
9c60689e
DWT
4360
4361
a243b558
JF
4362fi
4363if test -z "$CC"; then
4364 if test -n "$ac_tool_prefix"; then
4365 for ac_prog in cl.exe
4366 do
4367 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4368set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4370$as_echo_n "checking for $ac_word... " >&6; }
4371if ${ac_cv_prog_CC+:} false; then :
9c60689e
DWT
4372 $as_echo_n "(cached) " >&6
4373else
a243b558
JF
4374 if test -n "$CC"; then
4375 ac_cv_prog_CC="$CC" # Let the user override the test.
4376else
4377as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4378for as_dir in $PATH
4379do
4380 IFS=$as_save_IFS
4381 test -z "$as_dir" && as_dir=.
4382 for ac_exec_ext in '' $ac_executable_extensions; do
4383 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4384 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4386 break 2
9c60689e 4387 fi
a243b558
JF
4388done
4389 done
4390IFS=$as_save_IFS
9c60689e 4391
a243b558
JF
4392fi
4393fi
4394CC=$ac_cv_prog_CC
4395if test -n "$CC"; then
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4397$as_echo "$CC" >&6; }
35fa52c0 4398else
a243b558
JF
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4400$as_echo "no" >&6; }
35fa52c0 4401fi
9c60689e 4402
a243b558
JF
4403
4404 test -n "$CC" && break
4405 done
4406fi
4407if test -z "$CC"; then
4408 ac_ct_CC=$CC
4409 for ac_prog in cl.exe
4410do
4411 # Extract the first word of "$ac_prog", so it can be a program name with args.
4412set dummy $ac_prog; ac_word=$2
4413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4414$as_echo_n "checking for $ac_word... " >&6; }
4415if ${ac_cv_prog_ac_ct_CC+:} false; then :
35fa52c0
DWT
4416 $as_echo_n "(cached) " >&6
4417else
a243b558
JF
4418 if test -n "$ac_ct_CC"; then
4419 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4420else
4421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4422for as_dir in $PATH
4423do
4424 IFS=$as_save_IFS
4425 test -z "$as_dir" && as_dir=.
4426 for ac_exec_ext in '' $ac_executable_extensions; do
4427 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4428 ac_cv_prog_ac_ct_CC="$ac_prog"
4429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4430 break 2
4431 fi
4432done
4433 done
4434IFS=$as_save_IFS
9c60689e 4435
a243b558
JF
4436fi
4437fi
4438ac_ct_CC=$ac_cv_prog_ac_ct_CC
4439if test -n "$ac_ct_CC"; then
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4441$as_echo "$ac_ct_CC" >&6; }
4442else
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4444$as_echo "no" >&6; }
4445fi
35fa52c0 4446
35fa52c0 4447
a243b558
JF
4448 test -n "$ac_ct_CC" && break
4449done
35fa52c0 4450
a243b558
JF
4451 if test "x$ac_ct_CC" = x; then
4452 CC=""
4453 else
4454 case $cross_compiling:$ac_tool_warned in
4455yes:)
4456{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4457$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4458ac_tool_warned=yes ;;
4459esac
4460 CC=$ac_ct_CC
4461 fi
4462fi
ee134472 4463
a243b558 4464fi
35fa52c0 4465
35fa52c0 4466
a243b558
JF
4467test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4468$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4469as_fn_error $? "no acceptable C compiler found in \$PATH
4470See \`config.log' for more details" "$LINENO" 5; }
35fa52c0 4471
a243b558
JF
4472# Provide some information about the compiler.
4473$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4474set X $ac_compile
4475ac_compiler=$2
4476for ac_option in --version -v -V -qversion; do
4477 { { ac_try="$ac_compiler $ac_option >&5"
4478case "(($ac_try" in
4479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4480 *) ac_try_echo=$ac_try;;
4481esac
4482eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4483$as_echo "$ac_try_echo"; } >&5
4484 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4485 ac_status=$?
4486 if test -s conftest.err; then
4487 sed '10a\
4488... rest of stderr output deleted ...
4489 10q' conftest.err >conftest.er1
4490 cat conftest.er1 >&5
4491 fi
4492 rm -f conftest.er1 conftest.err
4493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4494 test $ac_status = 0; }
4495done
53ba6704 4496
a243b558
JF
4497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4498$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4499if ${ac_cv_c_compiler_gnu+:} false; then :
4500 $as_echo_n "(cached) " >&6
4501else
4502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4503/* end confdefs.h. */
35fa52c0 4504
a243b558
JF
4505int
4506main ()
4507{
4508#ifndef __GNUC__
4509 choke me
4510#endif
9c60689e 4511
a243b558
JF
4512 ;
4513 return 0;
4514}
4515_ACEOF
4516if ac_fn_c_try_compile "$LINENO"; then :
4517 ac_compiler_gnu=yes
35fa52c0 4518else
a243b558 4519 ac_compiler_gnu=no
35fa52c0 4520fi
a243b558
JF
4521rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4522ac_cv_c_compiler_gnu=$ac_compiler_gnu
9c60689e 4523
a243b558
JF
4524fi
4525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4526$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4527if test $ac_compiler_gnu = yes; then
4528 GCC=yes
35fa52c0 4529else
a243b558 4530 GCC=
9c60689e 4531fi
a243b558
JF
4532ac_test_CFLAGS=${CFLAGS+set}
4533ac_save_CFLAGS=$CFLAGS
4534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4535$as_echo_n "checking whether $CC accepts -g... " >&6; }
4536if ${ac_cv_prog_cc_g+:} false; then :
4537 $as_echo_n "(cached) " >&6
4538else
4539 ac_save_c_werror_flag=$ac_c_werror_flag
4540 ac_c_werror_flag=yes
4541 ac_cv_prog_cc_g=no
4542 CFLAGS="-g"
4543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4544/* end confdefs.h. */
9c60689e 4545
a243b558
JF
4546int
4547main ()
4548{
9c60689e 4549
a243b558
JF
4550 ;
4551 return 0;
4552}
4553_ACEOF
4554if ac_fn_c_try_compile "$LINENO"; then :
4555 ac_cv_prog_cc_g=yes
4556else
4557 CFLAGS=""
4558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4559/* end confdefs.h. */
9c60689e 4560
a243b558
JF
4561int
4562main ()
4563{
9c60689e 4564
a243b558
JF
4565 ;
4566 return 0;
4567}
4568_ACEOF
4569if ac_fn_c_try_compile "$LINENO"; then :
9c60689e 4570
a243b558
JF
4571else
4572 ac_c_werror_flag=$ac_save_c_werror_flag
4573 CFLAGS="-g"
4574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4575/* end confdefs.h. */
35fa52c0 4576
a243b558
JF
4577int
4578main ()
4579{
9c60689e 4580
a243b558
JF
4581 ;
4582 return 0;
4583}
4584_ACEOF
4585if ac_fn_c_try_compile "$LINENO"; then :
4586 ac_cv_prog_cc_g=yes
ee134472 4587fi
a243b558
JF
4588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4589fi
4590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4591fi
4592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4593 ac_c_werror_flag=$ac_save_c_werror_flag
4594fi
4595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4596$as_echo "$ac_cv_prog_cc_g" >&6; }
4597if test "$ac_test_CFLAGS" = set; then
4598 CFLAGS=$ac_save_CFLAGS
4599elif test $ac_cv_prog_cc_g = yes; then
4600 if test "$GCC" = yes; then
4601 CFLAGS="-g -O2"
4602 else
4603 CFLAGS="-g"
4604 fi
ee134472 4605else
a243b558
JF
4606 if test "$GCC" = yes; then
4607 CFLAGS="-O2"
4608 else
4609 CFLAGS=
4610 fi
ee134472 4611fi
a243b558
JF
4612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4613$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4614if ${ac_cv_prog_cc_c89+:} false; then :
35fa52c0
DWT
4615 $as_echo_n "(cached) " >&6
4616else
a243b558
JF
4617 ac_cv_prog_cc_c89=no
4618ac_save_CC=$CC
4619cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4620/* end confdefs.h. */
4621#include <stdarg.h>
4622#include <stdio.h>
4623struct stat;
4624/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4625struct buf { int x; };
4626FILE * (*rcsopen) (struct buf *, struct stat *, int);
4627static char *e (p, i)
4628 char **p;
4629 int i;
4630{
4631 return p[i];
4632}
4633static char *f (char * (*g) (char **, int), char **p, ...)
4634{
4635 char *s;
4636 va_list v;
4637 va_start (v,p);
4638 s = g (p, va_arg (v,int));
4639 va_end (v);
4640 return s;
4641}
9c60689e 4642
a243b558
JF
4643/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4644 function prototypes and stuff, but not '\xHH' hex character constants.
4645 These don't provoke an error unfortunately, instead are silently treated
4646 as 'x'. The following induces an error, until -std is added to get
4647 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4648 array size at least. It's necessary to write '\x00'==0 to get something
4649 that's true only with -std. */
4650int osf4_cc_array ['\x00' == 0 ? 1 : -1];
9c60689e 4651
a243b558
JF
4652/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4653 inside strings and character constants. */
4654#define FOO(x) 'x'
4655int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
9c60689e 4656
a243b558
JF
4657int test (int i, double x);
4658struct s1 {int (*f) (int a);};
4659struct s2 {int (*f) (double a);};
4660int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4661int argc;
4662char **argv;
4663int
4664main ()
4665{
4666return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4667 ;
4668 return 0;
4669}
4670_ACEOF
4671for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4672 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
9c60689e 4673do
a243b558
JF
4674 CC="$ac_save_CC $ac_arg"
4675 if ac_fn_c_try_compile "$LINENO"; then :
4676 ac_cv_prog_cc_c89=$ac_arg
4677fi
4678rm -f core conftest.err conftest.$ac_objext
4679 test "x$ac_cv_prog_cc_c89" != "xno" && break
9c60689e 4680done
a243b558
JF
4681rm -f conftest.$ac_ext
4682CC=$ac_save_CC
35fa52c0 4683
35fa52c0 4684fi
a243b558
JF
4685# AC_CACHE_VAL
4686case "x$ac_cv_prog_cc_c89" in
4687 x)
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4689$as_echo "none needed" >&6; } ;;
4690 xno)
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4692$as_echo "unsupported" >&6; } ;;
4693 *)
4694 CC="$CC $ac_cv_prog_cc_c89"
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4696$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4697esac
4698if test "x$ac_cv_prog_cc_c89" != xno; then :
4699
35fa52c0 4700fi
9c60689e 4701
a243b558
JF
4702ac_ext=c
4703ac_cpp='$CPP $CPPFLAGS'
4704ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4705ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4706ac_compiler_gnu=$ac_cv_c_compiler_gnu
4707
4708depcc="$CC" am_compiler_list=
9c60689e 4709
a243b558
JF
4710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4711$as_echo_n "checking dependency style of $depcc... " >&6; }
4712if ${am_cv_CC_dependencies_compiler_type+:} false; then :
35fa52c0
DWT
4713 $as_echo_n "(cached) " >&6
4714else
a243b558
JF
4715 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4716 # We make a subdir and do the tests there. Otherwise we can end up
4717 # making bogus files that we don't know about and never remove. For
4718 # instance it was reported that on HP-UX the gcc test will end up
4719 # making a dummy file named 'D' -- because '-MD' means "put the output
4720 # in D".
4721 rm -rf conftest.dir
4722 mkdir conftest.dir
4723 # Copy depcomp to subdir because otherwise we won't find it if we're
4724 # using a relative directory.
4725 cp "$am_depcomp" conftest.dir
4726 cd conftest.dir
4727 # We will build objects and dependencies in a subdirectory because
4728 # it helps to detect inapplicable dependency modes. For instance
4729 # both Tru64's cc and ICC support -MD to output dependencies as a
4730 # side effect of compilation, but ICC will put the dependencies in
4731 # the current directory while Tru64 will put them in the object
4732 # directory.
4733 mkdir sub
4734
4735 am_cv_CC_dependencies_compiler_type=none
4736 if test "$am_compiler_list" = ""; then
4737 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4738 fi
4739 am__universal=false
4740 case " $depcc " in #(
4741 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4742 esac
4743
4744 for depmode in $am_compiler_list; do
4745 # Setup a source with many dependencies, because some compilers
4746 # like to wrap large dependency lists on column 80 (with \), and
4747 # we should not choose a depcomp mode which is confused by this.
4748 #
4749 # We need to recreate these files for each test, as the compiler may
4750 # overwrite some of them when testing with obscure command lines.
4751 # This happens at least with the AIX C compiler.
4752 : > sub/conftest.c
4753 for i in 1 2 3 4 5 6; do
4754 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4755 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4756 # Solaris 10 /bin/sh.
4757 echo '/* dummy */' > sub/conftst$i.h
4758 done
4759 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4760
4761 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4762 # mode. It turns out that the SunPro C++ compiler does not properly
4763 # handle '-M -o', and we need to detect this. Also, some Intel
4764 # versions had trouble with output in subdirs.
4765 am__obj=sub/conftest.${OBJEXT-o}
4766 am__minus_obj="-o $am__obj"
4767 case $depmode in
4768 gcc)
4769 # This depmode causes a compiler race in universal mode.
4770 test "$am__universal" = false || continue
4771 ;;
4772 nosideeffect)
4773 # After this tag, mechanisms are not by side-effect, so they'll
4774 # only be used when explicitly requested.
4775 if test "x$enable_dependency_tracking" = xyes; then
4776 continue
4777 else
4778 break
4779 fi
4780 ;;
4781 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4782 # This compiler won't grok '-c -o', but also, the minuso test has
4783 # not run yet. These depmodes are late enough in the game, and
4784 # so weak that their functioning should not be impacted.
4785 am__obj=conftest.${OBJEXT-o}
4786 am__minus_obj=
4787 ;;
4788 none) break ;;
4789 esac
4790 if depmode=$depmode \
4791 source=sub/conftest.c object=$am__obj \
4792 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4793 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4794 >/dev/null 2>conftest.err &&
4795 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4796 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4797 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4798 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4799 # icc doesn't choke on unknown options, it will just issue warnings
4800 # or remarks (even with -Werror). So we grep stderr for any message
4801 # that says an option was ignored or not supported.
4802 # When given -MP, icc 7.0 and 7.1 complain thusly:
4803 # icc: Command line warning: ignoring option '-M'; no argument required
4804 # The diagnosis changed in icc 8.0:
4805 # icc: Command line remark: option '-MP' not supported
4806 if (grep 'ignoring option' conftest.err ||
4807 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4808 am_cv_CC_dependencies_compiler_type=$depmode
4809 break
4810 fi
4811 fi
4812 done
9c60689e 4813
a243b558
JF
4814 cd ..
4815 rm -rf conftest.dir
4816else
4817 am_cv_CC_dependencies_compiler_type=none
35fa52c0 4818fi
a243b558 4819
35fa52c0 4820fi
a243b558
JF
4821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4822$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4823CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4824
4825 if
4826 test "x$enable_dependency_tracking" != xno \
4827 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4828 am__fastdepCC_TRUE=
4829 am__fastdepCC_FALSE='#'
4830else
4831 am__fastdepCC_TRUE='#'
4832 am__fastdepCC_FALSE=
4833fi
4834
4835
4836
4837if test -n "$ac_tool_prefix"; then
4838 for ac_prog in ar lib "link -lib"
4839 do
4840 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4841set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4843$as_echo_n "checking for $ac_word... " >&6; }
4844if ${ac_cv_prog_AR+:} false; then :
4845 $as_echo_n "(cached) " >&6
4846else
4847 if test -n "$AR"; then
4848 ac_cv_prog_AR="$AR" # Let the user override the test.
4849else
4850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4851for as_dir in $PATH
4852do
4853 IFS=$as_save_IFS
4854 test -z "$as_dir" && as_dir=.
4855 for ac_exec_ext in '' $ac_executable_extensions; do
4856 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4857 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4859 break 2
4860 fi
4861done
4862 done
4863IFS=$as_save_IFS
4864
4865fi
4866fi
4867AR=$ac_cv_prog_AR
4868if test -n "$AR"; then
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4870$as_echo "$AR" >&6; }
35fa52c0
DWT
4871else
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4873$as_echo "no" >&6; }
4874fi
9c60689e 4875
a243b558
JF
4876
4877 test -n "$AR" && break
4878 done
4879fi
4880if test -z "$AR"; then
4881 ac_ct_AR=$AR
4882 for ac_prog in ar lib "link -lib"
4883do
4884 # Extract the first word of "$ac_prog", so it can be a program name with args.
4885set dummy $ac_prog; ac_word=$2
4886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4887$as_echo_n "checking for $ac_word... " >&6; }
4888if ${ac_cv_prog_ac_ct_AR+:} false; then :
4889 $as_echo_n "(cached) " >&6
4890else
4891 if test -n "$ac_ct_AR"; then
4892 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4893else
4894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4895for as_dir in $PATH
4896do
4897 IFS=$as_save_IFS
4898 test -z "$as_dir" && as_dir=.
4899 for ac_exec_ext in '' $ac_executable_extensions; do
4900 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4901 ac_cv_prog_ac_ct_AR="$ac_prog"
4902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4903 break 2
4904 fi
4905done
4906 done
4907IFS=$as_save_IFS
4908
4909fi
4910fi
4911ac_ct_AR=$ac_cv_prog_ac_ct_AR
4912if test -n "$ac_ct_AR"; then
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4914$as_echo "$ac_ct_AR" >&6; }
4915else
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4917$as_echo "no" >&6; }
4918fi
4919
4920
4921 test -n "$ac_ct_AR" && break
4922done
4923
4924 if test "x$ac_ct_AR" = x; then
4925 AR="false"
9c60689e
DWT
4926 else
4927 case $cross_compiling:$ac_tool_warned in
4928yes:)
4929{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4930$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4931ac_tool_warned=yes ;;
35fa52c0 4932esac
a243b558 4933 AR=$ac_ct_AR
9c60689e 4934 fi
a243b558
JF
4935fi
4936
4937: ${AR=ar}
4938
4939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4940$as_echo_n "checking the archiver ($AR) interface... " >&6; }
4941if ${am_cv_ar_interface+:} false; then :
4942 $as_echo_n "(cached) " >&6
9c60689e 4943else
a243b558
JF
4944 am_cv_ar_interface=ar
4945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4946/* end confdefs.h. */
4947int some_variable = 0;
4948_ACEOF
4949if ac_fn_c_try_compile "$LINENO"; then :
4950 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
4951 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4952 (eval $am_ar_try) 2>&5
4953 ac_status=$?
4954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4955 test $ac_status = 0; }
4956 if test "$ac_status" -eq 0; then
4957 am_cv_ar_interface=ar
4958 else
4959 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4960 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4961 (eval $am_ar_try) 2>&5
4962 ac_status=$?
4963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4964 test $ac_status = 0; }
4965 if test "$ac_status" -eq 0; then
4966 am_cv_ar_interface=lib
4967 else
4968 am_cv_ar_interface=unknown
4969 fi
4970 fi
4971 rm -f conftest.lib libconftest.a
4972
35fa52c0 4973fi
a243b558 4974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35fa52c0 4975
a243b558
JF
4976fi
4977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4978$as_echo "$am_cv_ar_interface" >&6; }
35fa52c0 4979
a243b558
JF
4980case $am_cv_ar_interface in
4981ar)
4982 ;;
4983lib)
4984 # Microsoft lib, so override with the ar-lib wrapper script.
4985 # FIXME: It is wrong to rewrite AR.
4986 # But if we don't then we get into trouble of one sort or another.
4987 # A longer-term fix would be to have automake use am__AR in this case,
4988 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4989 # similar.
4990 AR="$am_aux_dir/ar-lib $AR"
4991 ;;
4992unknown)
4993 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
4994 ;;
4995esac
35fa52c0 4996
35fa52c0 4997
35fa52c0 4998
a243b558
JF
4999case `pwd` in
5000 *\ * | *\ *)
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5002$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5003esac
35fa52c0
DWT
5004
5005
5006
a243b558
JF
5007macro_version='2.4.2'
5008macro_revision='1.3337'
35fa52c0
DWT
5009
5010
5011
5012
5013
5014
5015
5016
5017
35fa52c0 5018
35fa52c0 5019
ee134472 5020
35fa52c0 5021
a243b558 5022ltmain="$ac_aux_dir/ltmain.sh"
35fa52c0 5023
a243b558
JF
5024# Make sure we can run config.sub.
5025$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5026 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
35fa52c0 5027
a243b558
JF
5028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5029$as_echo_n "checking build system type... " >&6; }
5030if ${ac_cv_build+:} false; then :
5031 $as_echo_n "(cached) " >&6
5032else
5033 ac_build_alias=$build_alias
5034test "x$ac_build_alias" = x &&
5035 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5036test "x$ac_build_alias" = x &&
5037 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5038ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5039 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
35fa52c0 5040
a243b558
JF
5041fi
5042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5043$as_echo "$ac_cv_build" >&6; }
5044case $ac_cv_build in
5045*-*-*) ;;
5046*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5047esac
5048build=$ac_cv_build
5049ac_save_IFS=$IFS; IFS='-'
5050set x $ac_cv_build
5051shift
5052build_cpu=$1
5053build_vendor=$2
5054shift; shift
5055# Remember, the first character of IFS is used to create $*,
5056# except with old shells:
5057build_os=$*
5058IFS=$ac_save_IFS
5059case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
35fa52c0 5060
35fa52c0 5061
a243b558
JF
5062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5063$as_echo_n "checking host system type... " >&6; }
5064if ${ac_cv_host+:} false; then :
5065 $as_echo_n "(cached) " >&6
5066else
5067 if test "x$host_alias" = x; then
5068 ac_cv_host=$ac_cv_build
5069else
5070 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5071 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5072fi
35fa52c0 5073
a243b558
JF
5074fi
5075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5076$as_echo "$ac_cv_host" >&6; }
5077case $ac_cv_host in
5078*-*-*) ;;
5079*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5080esac
5081host=$ac_cv_host
5082ac_save_IFS=$IFS; IFS='-'
5083set x $ac_cv_host
5084shift
5085host_cpu=$1
5086host_vendor=$2
5087shift; shift
5088# Remember, the first character of IFS is used to create $*,
5089# except with old shells:
5090host_os=$*
5091IFS=$ac_save_IFS
5092case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
9c60689e 5093
9c60689e 5094
a243b558
JF
5095# Backslashify metacharacters that are still active within
5096# double-quoted strings.
5097sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9c60689e 5098
a243b558
JF
5099# Same as above, but do not quote variable references.
5100double_quote_subst='s/\(["`\\]\)/\\\1/g'
9c60689e 5101
a243b558
JF
5102# Sed substitution to delay expansion of an escaped shell variable in a
5103# double_quote_subst'ed string.
5104delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9c60689e 5105
a243b558
JF
5106# Sed substitution to delay expansion of an escaped single quote.
5107delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9c60689e 5108
a243b558
JF
5109# Sed substitution to avoid accidental globbing in evaled expressions
5110no_glob_subst='s/\*/\\\*/g'
35fa52c0 5111
a243b558
JF
5112ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5113ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5114ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
ee134472 5115
a243b558
JF
5116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5117$as_echo_n "checking how to print strings... " >&6; }
5118# Test print first, because it will be a builtin if present.
5119if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5120 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5121 ECHO='print -r --'
5122elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5123 ECHO='printf %s\n'
5124else
5125 # Use this function as a fallback that always works.
5126 func_fallback_echo ()
5127 {
5128 eval 'cat <<_LTECHO_EOF
5129$1
5130_LTECHO_EOF'
5131 }
5132 ECHO='func_fallback_echo'
ee134472
JF
5133fi
5134
a243b558
JF
5135# func_echo_all arg...
5136# Invoke $ECHO with all args, space-separated.
5137func_echo_all ()
5138{
5139 $ECHO ""
5140}
35fa52c0 5141
a243b558
JF
5142case "$ECHO" in
5143 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5144$as_echo "printf" >&6; } ;;
5145 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5146$as_echo "print -r" >&6; } ;;
5147 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5148$as_echo "cat" >&6; } ;;
5149esac
35fa52c0 5150
35fa52c0 5151
ee134472
JF
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
35fa52c0 5162
9c60689e 5163
a243b558
JF
5164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5165$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5166if ${ac_cv_path_SED+:} false; then :
9c60689e
DWT
5167 $as_echo_n "(cached) " >&6
5168else
a243b558
JF
5169 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5170 for ac_i in 1 2 3 4 5 6 7; do
5171 ac_script="$ac_script$as_nl$ac_script"
5172 done
5173 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5174 { ac_script=; unset ac_script;}
5175 if test -z "$SED"; then
5176 ac_path_SED_found=false
5177 # Loop through the user's path and test for each of PROGNAME-LIST
5178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9c60689e
DWT
5179for as_dir in $PATH
5180do
5181 IFS=$as_save_IFS
5182 test -z "$as_dir" && as_dir=.
a243b558 5183 for ac_prog in sed gsed; do
9c60689e 5184 for ac_exec_ext in '' $ac_executable_extensions; do
a243b558
JF
5185 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5186 as_fn_executable_p "$ac_path_SED" || continue
5187# Check for GNU ac_path_SED and select it if it is found.
5188 # Check for GNU $ac_path_SED
5189case `"$ac_path_SED" --version 2>&1` in
5190*GNU*)
5191 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5192*)
5193 ac_count=0
5194 $as_echo_n 0123456789 >"conftest.in"
5195 while :
5196 do
5197 cat "conftest.in" "conftest.in" >"conftest.tmp"
5198 mv "conftest.tmp" "conftest.in"
5199 cp "conftest.in" "conftest.nl"
5200 $as_echo '' >> "conftest.nl"
5201 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5202 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5203 as_fn_arith $ac_count + 1 && ac_count=$as_val
5204 if test $ac_count -gt ${ac_path_SED_max-0}; then
5205 # Best one so far, save it but keep looking for a better one
5206 ac_cv_path_SED="$ac_path_SED"
5207 ac_path_SED_max=$ac_count
5208 fi
5209 # 10*(2^10) chars as input seems more than enough
5210 test $ac_count -gt 10 && break
35fa52c0 5211 done
a243b558
JF
5212 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5213esac
9c60689e 5214
a243b558
JF
5215 $ac_path_SED_found && break 3
5216 done
5217 done
9c60689e
DWT
5218 done
5219IFS=$as_save_IFS
a243b558
JF
5220 if test -z "$ac_cv_path_SED"; then
5221 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
9c60689e
DWT
5222 fi
5223else
a243b558 5224 ac_cv_path_SED=$SED
9c60689e
DWT
5225fi
5226
a243b558
JF
5227fi
5228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5229$as_echo "$ac_cv_path_SED" >&6; }
5230 SED="$ac_cv_path_SED"
5231 rm -f conftest.sed
9c60689e 5232
a243b558
JF
5233test -z "$SED" && SED=sed
5234Xsed="$SED -e 1s/^X//"
9c60689e 5235
ee134472 5236
ee134472 5237
9c60689e
DWT
5238
5239
5240
5241
5242
5243
5244
5245
a243b558
JF
5246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5247$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5248if ${ac_cv_path_GREP+:} false; then :
9c60689e
DWT
5249 $as_echo_n "(cached) " >&6
5250else
a243b558
JF
5251 if test -z "$GREP"; then
5252 ac_path_GREP_found=false
5253 # Loop through the user's path and test for each of PROGNAME-LIST
5254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5255for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9c60689e
DWT
5256do
5257 IFS=$as_save_IFS
5258 test -z "$as_dir" && as_dir=.
a243b558 5259 for ac_prog in grep ggrep; do
9c60689e 5260 for ac_exec_ext in '' $ac_executable_extensions; do
a243b558
JF
5261 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5262 as_fn_executable_p "$ac_path_GREP" || continue
5263# Check for GNU ac_path_GREP and select it if it is found.
5264 # Check for GNU $ac_path_GREP
5265case `"$ac_path_GREP" --version 2>&1` in
5266*GNU*)
5267 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5268*)
5269 ac_count=0
5270 $as_echo_n 0123456789 >"conftest.in"
5271 while :
5272 do
5273 cat "conftest.in" "conftest.in" >"conftest.tmp"
5274 mv "conftest.tmp" "conftest.in"
5275 cp "conftest.in" "conftest.nl"
5276 $as_echo 'GREP' >> "conftest.nl"
5277 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5278 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5279 as_fn_arith $ac_count + 1 && ac_count=$as_val
5280 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5281 # Best one so far, save it but keep looking for a better one
5282 ac_cv_path_GREP="$ac_path_GREP"
5283 ac_path_GREP_max=$ac_count
5284 fi
5285 # 10*(2^10) chars as input seems more than enough
5286 test $ac_count -gt 10 && break
5287 done
5288 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5289esac
9c60689e 5290
a243b558
JF
5291 $ac_path_GREP_found && break 3
5292 done
ee134472 5293 done
a243b558
JF
5294 done
5295IFS=$as_save_IFS
5296 if test -z "$ac_cv_path_GREP"; then
5297 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5298 fi
5299else
5300 ac_cv_path_GREP=$GREP
9c60689e 5301fi
a243b558
JF
5302
5303fi
5304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5305$as_echo "$ac_cv_path_GREP" >&6; }
5306 GREP="$ac_cv_path_GREP"
5307
5308
5309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5310$as_echo_n "checking for egrep... " >&6; }
5311if ${ac_cv_path_EGREP+:} false; then :
9c60689e
DWT
5312 $as_echo_n "(cached) " >&6
5313else
a243b558
JF
5314 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5315 then ac_cv_path_EGREP="$GREP -E"
5316 else
5317 if test -z "$EGREP"; then
5318 ac_path_EGREP_found=false
5319 # Loop through the user's path and test for each of PROGNAME-LIST
5320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5321for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9c60689e
DWT
5322do
5323 IFS=$as_save_IFS
5324 test -z "$as_dir" && as_dir=.
a243b558 5325 for ac_prog in egrep; do
9c60689e 5326 for ac_exec_ext in '' $ac_executable_extensions; do
a243b558
JF
5327 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5328 as_fn_executable_p "$ac_path_EGREP" || continue
5329# Check for GNU ac_path_EGREP and select it if it is found.
5330 # Check for GNU $ac_path_EGREP
5331case `"$ac_path_EGREP" --version 2>&1` in
5332*GNU*)
5333 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5334*)
5335 ac_count=0
5336 $as_echo_n 0123456789 >"conftest.in"
5337 while :
5338 do
5339 cat "conftest.in" "conftest.in" >"conftest.tmp"
5340 mv "conftest.tmp" "conftest.in"
5341 cp "conftest.in" "conftest.nl"
5342 $as_echo 'EGREP' >> "conftest.nl"
5343 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5344 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5345 as_fn_arith $ac_count + 1 && ac_count=$as_val
5346 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5347 # Best one so far, save it but keep looking for a better one
5348 ac_cv_path_EGREP="$ac_path_EGREP"
5349 ac_path_EGREP_max=$ac_count
5350 fi
5351 # 10*(2^10) chars as input seems more than enough
5352 test $ac_count -gt 10 && break
9c60689e 5353 done
a243b558
JF
5354 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5355esac
9c60689e 5356
a243b558
JF
5357 $ac_path_EGREP_found && break 3
5358 done
5359 done
5360 done
5361IFS=$as_save_IFS
5362 if test -z "$ac_cv_path_EGREP"; then
5363 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5364 fi
9c60689e 5365else
a243b558 5366 ac_cv_path_EGREP=$EGREP
9c60689e
DWT
5367fi
5368
a243b558
JF
5369 fi
5370fi
5371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5372$as_echo "$ac_cv_path_EGREP" >&6; }
5373 EGREP="$ac_cv_path_EGREP"
ee134472 5374
ee134472 5375
a243b558
JF
5376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5377$as_echo_n "checking for fgrep... " >&6; }
5378if ${ac_cv_path_FGREP+:} false; then :
5379 $as_echo_n "(cached) " >&6
5380else
5381 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5382 then ac_cv_path_FGREP="$GREP -F"
5383 else
5384 if test -z "$FGREP"; then
5385 ac_path_FGREP_found=false
5386 # Loop through the user's path and test for each of PROGNAME-LIST
5387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5388for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5389do
5390 IFS=$as_save_IFS
5391 test -z "$as_dir" && as_dir=.
5392 for ac_prog in fgrep; do
5393 for ac_exec_ext in '' $ac_executable_extensions; do
5394 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5395 as_fn_executable_p "$ac_path_FGREP" || continue
5396# Check for GNU ac_path_FGREP and select it if it is found.
5397 # Check for GNU $ac_path_FGREP
5398case `"$ac_path_FGREP" --version 2>&1` in
5399*GNU*)
5400 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5401*)
5402 ac_count=0
5403 $as_echo_n 0123456789 >"conftest.in"
5404 while :
5405 do
5406 cat "conftest.in" "conftest.in" >"conftest.tmp"
5407 mv "conftest.tmp" "conftest.in"
5408 cp "conftest.in" "conftest.nl"
5409 $as_echo 'FGREP' >> "conftest.nl"
5410 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5411 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5412 as_fn_arith $ac_count + 1 && ac_count=$as_val
5413 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5414 # Best one so far, save it but keep looking for a better one
5415 ac_cv_path_FGREP="$ac_path_FGREP"
5416 ac_path_FGREP_max=$ac_count
5417 fi
5418 # 10*(2^10) chars as input seems more than enough
5419 test $ac_count -gt 10 && break
5420 done
5421 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9c60689e 5422esac
a243b558
JF
5423
5424 $ac_path_FGREP_found && break 3
5425 done
5426 done
5427 done
5428IFS=$as_save_IFS
5429 if test -z "$ac_cv_path_FGREP"; then
5430 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
ee134472 5431 fi
a243b558
JF
5432else
5433 ac_cv_path_FGREP=$FGREP
ee134472
JF
5434fi
5435
a243b558
JF
5436 fi
5437fi
5438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5439$as_echo "$ac_cv_path_FGREP" >&6; }
5440 FGREP="$ac_cv_path_FGREP"
ee134472
JF
5441
5442
a243b558 5443test -z "$GREP" && GREP=grep
ee134472
JF
5444
5445
5446
5447
5448
5449
5450
ee134472 5451
ee134472 5452
ee134472 5453
ee134472 5454
ee134472 5455
ee134472
JF
5456
5457
5458
5459
5460
5461
5462
a243b558
JF
5463# Check whether --with-gnu-ld was given.
5464if test "${with_gnu_ld+set}" = set; then :
5465 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5466else
5467 with_gnu_ld=no
5468fi
5469
5470ac_prog=ld
5471if test "$GCC" = yes; then
5472 # Check if gcc -print-prog-name=ld gives a path.
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5474$as_echo_n "checking for ld used by $CC... " >&6; }
5475 case $host in
5476 *-*-mingw*)
5477 # gcc leaves a trailing carriage return which upsets mingw
5478 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5479 *)
5480 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5481 esac
5482 case $ac_prog in
5483 # Accept absolute paths.
5484 [\\/]* | ?:[\\/]*)
5485 re_direlt='/[^/][^/]*/\.\./'
5486 # Canonicalize the pathname of ld
5487 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5488 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5489 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5490 done
5491 test -z "$LD" && LD="$ac_prog"
5492 ;;
5493 "")
5494 # If it fails, then pretend we aren't using GCC.
5495 ac_prog=ld
5496 ;;
5497 *)
5498 # If it is relative, then search for the first ld in PATH.
5499 with_gnu_ld=unknown
5500 ;;
5501 esac
5502elif test "$with_gnu_ld" = yes; then
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5504$as_echo_n "checking for GNU ld... " >&6; }
5505else
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5507$as_echo_n "checking for non-GNU ld... " >&6; }
5508fi
5509if ${lt_cv_path_LD+:} false; then :
5510 $as_echo_n "(cached) " >&6
5511else
5512 if test -z "$LD"; then
5513 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5514 for ac_dir in $PATH; do
5515 IFS="$lt_save_ifs"
5516 test -z "$ac_dir" && ac_dir=.
5517 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5518 lt_cv_path_LD="$ac_dir/$ac_prog"
5519 # Check to see if the program is GNU ld. I'd rather use --version,
5520 # but apparently some variants of GNU ld only accept -v.
5521 # Break only if it was the GNU/non-GNU ld that we prefer.
5522 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5523 *GNU* | *'with BFD'*)
5524 test "$with_gnu_ld" != no && break
5525 ;;
5526 *)
5527 test "$with_gnu_ld" != yes && break
5528 ;;
5529 esac
5530 fi
5531 done
5532 IFS="$lt_save_ifs"
5533else
5534 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5535fi
5536fi
5537
5538LD="$lt_cv_path_LD"
5539if test -n "$LD"; then
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5541$as_echo "$LD" >&6; }
5542else
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5544$as_echo "no" >&6; }
5545fi
5546test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5548$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5549if ${lt_cv_prog_gnu_ld+:} false; then :
5550 $as_echo_n "(cached) " >&6
5551else
5552 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5553case `$LD -v 2>&1 </dev/null` in
5554*GNU* | *'with BFD'*)
5555 lt_cv_prog_gnu_ld=yes
5556 ;;
5557*)
5558 lt_cv_prog_gnu_ld=no
5559 ;;
5560esac
5561fi
5562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5563$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5564with_gnu_ld=$lt_cv_prog_gnu_ld
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5575$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5576if ${lt_cv_path_NM+:} false; then :
5577 $as_echo_n "(cached) " >&6
5578else
5579 if test -n "$NM"; then
5580 # Let the user override the test.
5581 lt_cv_path_NM="$NM"
5582else
5583 lt_nm_to_check="${ac_tool_prefix}nm"
5584 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5585 lt_nm_to_check="$lt_nm_to_check nm"
5586 fi
5587 for lt_tmp_nm in $lt_nm_to_check; do
5588 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5589 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5590 IFS="$lt_save_ifs"
5591 test -z "$ac_dir" && ac_dir=.
5592 tmp_nm="$ac_dir/$lt_tmp_nm"
5593 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5594 # Check to see if the nm accepts a BSD-compat flag.
5595 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5596 # nm: unknown option "B" ignored
5597 # Tru64's nm complains that /dev/null is an invalid object file
5598 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5599 */dev/null* | *'Invalid file or object type'*)
5600 lt_cv_path_NM="$tmp_nm -B"
5601 break
5602 ;;
5603 *)
5604 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5605 */dev/null*)
5606 lt_cv_path_NM="$tmp_nm -p"
5607 break
5608 ;;
5609 *)
5610 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5611 continue # so that we can try to find one that supports BSD flags
5612 ;;
5613 esac
5614 ;;
5615 esac
5616 fi
5617 done
5618 IFS="$lt_save_ifs"
5619 done
5620 : ${lt_cv_path_NM=no}
5621fi
5622fi
5623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5624$as_echo "$lt_cv_path_NM" >&6; }
5625if test "$lt_cv_path_NM" != "no"; then
5626 NM="$lt_cv_path_NM"
5627else
5628 # Didn't find any BSD compatible name lister, look for dumpbin.
5629 if test -n "$DUMPBIN"; then :
5630 # Let the user override the test.
5631 else
5632 if test -n "$ac_tool_prefix"; then
5633 for ac_prog in dumpbin "link -dump"
5634 do
5635 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5636set dummy $ac_tool_prefix$ac_prog; ac_word=$2
ee134472
JF
5637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5638$as_echo_n "checking for $ac_word... " >&6; }
a243b558 5639if ${ac_cv_prog_DUMPBIN+:} false; then :
ee134472
JF
5640 $as_echo_n "(cached) " >&6
5641else
a243b558
JF
5642 if test -n "$DUMPBIN"; then
5643 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
ee134472
JF
5644else
5645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5646for as_dir in $PATH
5647do
5648 IFS=$as_save_IFS
5649 test -z "$as_dir" && as_dir=.
5650 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 5651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 5652 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
ee134472
JF
5653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5654 break 2
5655 fi
5656done
5657 done
5658IFS=$as_save_IFS
5659
5660fi
5661fi
a243b558
JF
5662DUMPBIN=$ac_cv_prog_DUMPBIN
5663if test -n "$DUMPBIN"; then
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5665$as_echo "$DUMPBIN" >&6; }
ee134472
JF
5666else
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5668$as_echo "no" >&6; }
5669fi
5670
5671
a243b558
JF
5672 test -n "$DUMPBIN" && break
5673 done
ee134472 5674fi
a243b558
JF
5675if test -z "$DUMPBIN"; then
5676 ac_ct_DUMPBIN=$DUMPBIN
5677 for ac_prog in dumpbin "link -dump"
5678do
5679 # Extract the first word of "$ac_prog", so it can be a program name with args.
5680set dummy $ac_prog; ac_word=$2
ee134472
JF
5681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5682$as_echo_n "checking for $ac_word... " >&6; }
a243b558 5683if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
ee134472
JF
5684 $as_echo_n "(cached) " >&6
5685else
a243b558
JF
5686 if test -n "$ac_ct_DUMPBIN"; then
5687 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
ee134472
JF
5688else
5689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5690for as_dir in $PATH
5691do
5692 IFS=$as_save_IFS
5693 test -z "$as_dir" && as_dir=.
5694 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 5695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 5696 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
ee134472
JF
5697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5698 break 2
5699 fi
5700done
5701 done
5702IFS=$as_save_IFS
5703
5704fi
5705fi
a243b558
JF
5706ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5707if test -n "$ac_ct_DUMPBIN"; then
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5709$as_echo "$ac_ct_DUMPBIN" >&6; }
ee134472
JF
5710else
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5712$as_echo "no" >&6; }
5713fi
5714
a243b558
JF
5715
5716 test -n "$ac_ct_DUMPBIN" && break
5717done
5718
5719 if test "x$ac_ct_DUMPBIN" = x; then
5720 DUMPBIN=":"
ee134472
JF
5721 else
5722 case $cross_compiling:$ac_tool_warned in
5723yes:)
5724{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5725$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5726ac_tool_warned=yes ;;
5727esac
a243b558 5728 DUMPBIN=$ac_ct_DUMPBIN
9c60689e 5729 fi
9c60689e
DWT
5730fi
5731
a243b558
JF
5732 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5733 *COFF*)
5734 DUMPBIN="$DUMPBIN -symbols"
5735 ;;
5736 *)
5737 DUMPBIN=:
5738 ;;
5739 esac
5740 fi
9c60689e 5741
a243b558
JF
5742 if test "$DUMPBIN" != ":"; then
5743 NM="$DUMPBIN"
5744 fi
5745fi
5746test -z "$NM" && NM=nm
9c60689e
DWT
5747
5748
5749
5750
5751
a243b558
JF
5752
5753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5754$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5755if ${lt_cv_nm_interface+:} false; then :
9c60689e
DWT
5756 $as_echo_n "(cached) " >&6
5757else
a243b558
JF
5758 lt_cv_nm_interface="BSD nm"
5759 echo "int some_variable = 0;" > conftest.$ac_ext
5760 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5761 (eval "$ac_compile" 2>conftest.err)
5762 cat conftest.err >&5
5763 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5764 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5765 cat conftest.err >&5
5766 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5767 cat conftest.out >&5
5768 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5769 lt_cv_nm_interface="MS dumpbin"
9c60689e 5770 fi
a243b558 5771 rm -rf conftest*
9c60689e 5772fi
a243b558
JF
5773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5774$as_echo "$lt_cv_nm_interface" >&6; }
5775
5776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5777$as_echo_n "checking whether ln -s works... " >&6; }
5778LN_S=$as_ln_s
5779if test "$LN_S" = "ln -s"; then
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5781$as_echo "yes" >&6; }
9c60689e 5782else
a243b558
JF
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5784$as_echo "no, using $LN_S" >&6; }
9c60689e
DWT
5785fi
5786
a243b558
JF
5787# find the maximum length of command line arguments
5788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5789$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5790if ${lt_cv_sys_max_cmd_len+:} false; then :
9c60689e
DWT
5791 $as_echo_n "(cached) " >&6
5792else
a243b558
JF
5793 i=0
5794 teststring="ABCD"
9c60689e 5795
a243b558
JF
5796 case $build_os in
5797 msdosdjgpp*)
5798 # On DJGPP, this test can blow up pretty badly due to problems in libc
5799 # (any single argument exceeding 2000 bytes causes a buffer overrun
5800 # during glob expansion). Even if it were fixed, the result of this
5801 # check would be larger than it should be.
5802 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5803 ;;
9c60689e 5804
a243b558
JF
5805 gnu*)
5806 # Under GNU Hurd, this test is not required because there is
5807 # no limit to the length of command line arguments.
5808 # Libtool will interpret -1 as no limit whatsoever
5809 lt_cv_sys_max_cmd_len=-1;
5810 ;;
9c60689e 5811
a243b558
JF
5812 cygwin* | mingw* | cegcc*)
5813 # On Win9x/ME, this test blows up -- it succeeds, but takes
5814 # about 5 minutes as the teststring grows exponentially.
5815 # Worse, since 9x/ME are not pre-emptively multitasking,
5816 # you end up with a "frozen" computer, even though with patience
5817 # the test eventually succeeds (with a max line length of 256k).
5818 # Instead, let's just punt: use the minimum linelength reported by
5819 # all of the supported platforms: 8192 (on NT/2K/XP).
5820 lt_cv_sys_max_cmd_len=8192;
5821 ;;
9c60689e 5822
a243b558
JF
5823 mint*)
5824 # On MiNT this can take a long time and run out of memory.
5825 lt_cv_sys_max_cmd_len=8192;
5826 ;;
9c60689e 5827
a243b558
JF
5828 amigaos*)
5829 # On AmigaOS with pdksh, this test takes hours, literally.
5830 # So we just punt and use a minimum line length of 8192.
5831 lt_cv_sys_max_cmd_len=8192;
5832 ;;
9c60689e 5833
a243b558
JF
5834 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5835 # This has been around since 386BSD, at least. Likely further.
5836 if test -x /sbin/sysctl; then
5837 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5838 elif test -x /usr/sbin/sysctl; then
5839 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5840 else
5841 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5842 fi
5843 # And add a safety zone
5844 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5845 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5846 ;;
9c60689e 5847
a243b558
JF
5848 interix*)
5849 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5850 lt_cv_sys_max_cmd_len=196608
5851 ;;
9c60689e 5852
a243b558
JF
5853 os2*)
5854 # The test takes a long time on OS/2.
5855 lt_cv_sys_max_cmd_len=8192
5856 ;;
9c60689e 5857
a243b558
JF
5858 osf*)
5859 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5860 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5861 # nice to cause kernel panics so lets avoid the loop below.
5862 # First set a reasonable default.
5863 lt_cv_sys_max_cmd_len=16384
5864 #
5865 if test -x /sbin/sysconfig; then
5866 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5867 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5868 esac
5869 fi
5870 ;;
5871 sco3.2v5*)
5872 lt_cv_sys_max_cmd_len=102400
5873 ;;
5874 sysv5* | sco5v6* | sysv4.2uw2*)
5875 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5876 if test -n "$kargmax"; then
5877 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5878 else
5879 lt_cv_sys_max_cmd_len=32768
5880 fi
9c60689e
DWT
5881 ;;
5882 *)
a243b558
JF
5883 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5884 if test -n "$lt_cv_sys_max_cmd_len"; then
5885 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5886 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5887 else
5888 # Make teststring a little bigger before we do anything with it.
5889 # a 1K string should be a reasonable start.
5890 for i in 1 2 3 4 5 6 7 8 ; do
5891 teststring=$teststring$teststring
5892 done
5893 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5894 # If test is not a shell built-in, we'll probably end up computing a
5895 # maximum length that is only half of the actual maximum length, but
5896 # we can't tell.
5897 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5898 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5899 test $i != 17 # 1/2 MB should be enough
5900 do
5901 i=`expr $i + 1`
5902 teststring=$teststring$teststring
5903 done
5904 # Only check the string length outside the loop.
5905 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5906 teststring=
5907 # Add a significant safety factor because C++ compilers can tack on
5908 # massive amounts of additional arguments before passing them to the
5909 # linker. It appears as though 1/2 is a usable value.
5910 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5911 fi
9c60689e
DWT
5912 ;;
5913 esac
ee134472 5914
a243b558 5915fi
ee134472 5916
a243b558
JF
5917if test -n $lt_cv_sys_max_cmd_len ; then
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5919$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5920else
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5922$as_echo "none" >&6; }
5923fi
5924max_cmd_len=$lt_cv_sys_max_cmd_len
ee134472
JF
5925
5926
9c60689e
DWT
5927
5928
5929
5930
a243b558
JF
5931: ${CP="cp -f"}
5932: ${MV="mv -f"}
5933: ${RM="rm -f"}
9c60689e 5934
a243b558
JF
5935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5936$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5937# Try some XSI features
5938xsi_shell=no
5939( _lt_dummy="a/b/c"
5940 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5941 = c,a/b,b/c, \
5942 && eval 'test $(( 1 + 1 )) -eq 2 \
5943 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5944 && xsi_shell=yes
5945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5946$as_echo "$xsi_shell" >&6; }
9c60689e
DWT
5947
5948
a243b558
JF
5949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5950$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5951lt_shell_append=no
5952( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5953 >/dev/null 2>&1 \
5954 && lt_shell_append=yes
5955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5956$as_echo "$lt_shell_append" >&6; }
9c60689e
DWT
5957
5958
a243b558
JF
5959if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5960 lt_unset=unset
5961else
5962 lt_unset=false
5963fi
9c60689e
DWT
5964
5965
5966
5967
5968
a243b558
JF
5969# test EBCDIC or ASCII
5970case `echo X|tr X '\101'` in
5971 A) # ASCII based system
5972 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5973 lt_SP2NL='tr \040 \012'
5974 lt_NL2SP='tr \015\012 \040\040'
5975 ;;
5976 *) # EBCDIC based system
5977 lt_SP2NL='tr \100 \n'
5978 lt_NL2SP='tr \r\n \100\100'
5979 ;;
5980esac
9c60689e
DWT
5981
5982
5983
5984
5985
5986
5987
5988
5989
a243b558
JF
5990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5991$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5992if ${lt_cv_to_host_file_cmd+:} false; then :
5993 $as_echo_n "(cached) " >&6
5994else
5995 case $host in
5996 *-*-mingw* )
5997 case $build in
5998 *-*-mingw* ) # actually msys
5999 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6000 ;;
6001 *-*-cygwin* )
6002 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6003 ;;
6004 * ) # otherwise, assume *nix
6005 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6006 ;;
6007 esac
6008 ;;
6009 *-*-cygwin* )
6010 case $build in
6011 *-*-mingw* ) # actually msys
6012 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6013 ;;
6014 *-*-cygwin* )
6015 lt_cv_to_host_file_cmd=func_convert_file_noop
6016 ;;
6017 * ) # otherwise, assume *nix
6018 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6019 ;;
6020 esac
6021 ;;
6022 * ) # unhandled hosts (and "normal" native builds)
6023 lt_cv_to_host_file_cmd=func_convert_file_noop
6024 ;;
6025esac
9c60689e 6026
a243b558 6027fi
9c60689e 6028
a243b558
JF
6029to_host_file_cmd=$lt_cv_to_host_file_cmd
6030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6031$as_echo "$lt_cv_to_host_file_cmd" >&6; }
9c60689e
DWT
6032
6033
6034
6035
6036
a243b558
JF
6037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6038$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6039if ${lt_cv_to_tool_file_cmd+:} false; then :
6040 $as_echo_n "(cached) " >&6
6041else
6042 #assume ordinary cross tools, or native build.
6043lt_cv_to_tool_file_cmd=func_convert_file_noop
6044case $host in
6045 *-*-mingw* )
6046 case $build in
6047 *-*-mingw* ) # actually msys
6048 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6049 ;;
6050 esac
6051 ;;
6052esac
9c60689e 6053
a243b558 6054fi
9c60689e 6055
a243b558
JF
6056to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6058$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
9c60689e 6059
9c60689e 6060
9c60689e 6061
9c60689e
DWT
6062
6063
a243b558
JF
6064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6065$as_echo_n "checking for $LD option to reload object files... " >&6; }
6066if ${lt_cv_ld_reload_flag+:} false; then :
9c60689e
DWT
6067 $as_echo_n "(cached) " >&6
6068else
a243b558
JF
6069 lt_cv_ld_reload_flag='-r'
6070fi
6071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6072$as_echo "$lt_cv_ld_reload_flag" >&6; }
6073reload_flag=$lt_cv_ld_reload_flag
6074case $reload_flag in
6075"" | " "*) ;;
6076*) reload_flag=" $reload_flag" ;;
6077esac
6078reload_cmds='$LD$reload_flag -o $output$reload_objs'
9c60689e 6079case $host_os in
a243b558
JF
6080 cygwin* | mingw* | pw32* | cegcc*)
6081 if test "$GCC" != yes; then
6082 reload_cmds=false
6083 fi
6084 ;;
6085 darwin*)
6086 if test "$GCC" = yes; then
6087 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6088 else
6089 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6090 fi
6091 ;;
9c60689e
DWT
6092esac
6093
9c60689e 6094
9c60689e 6095
9c60689e 6096
9c60689e 6097
9c60689e 6098
9c60689e 6099
9c60689e 6100
9c60689e 6101
a243b558
JF
6102if test -n "$ac_tool_prefix"; then
6103 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6104set dummy ${ac_tool_prefix}objdump; ac_word=$2
6105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6106$as_echo_n "checking for $ac_word... " >&6; }
6107if ${ac_cv_prog_OBJDUMP+:} false; then :
6108 $as_echo_n "(cached) " >&6
6109else
6110 if test -n "$OBJDUMP"; then
6111 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6112else
6113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6114for as_dir in $PATH
6115do
6116 IFS=$as_save_IFS
6117 test -z "$as_dir" && as_dir=.
6118 for ac_exec_ext in '' $ac_executable_extensions; do
6119 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6120 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6122 break 2
6123 fi
6124done
6125 done
6126IFS=$as_save_IFS
9c60689e 6127
a243b558
JF
6128fi
6129fi
6130OBJDUMP=$ac_cv_prog_OBJDUMP
6131if test -n "$OBJDUMP"; then
6132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6133$as_echo "$OBJDUMP" >&6; }
6134else
6135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6136$as_echo "no" >&6; }
6137fi
9c60689e 6138
9c60689e 6139
a243b558
JF
6140fi
6141if test -z "$ac_cv_prog_OBJDUMP"; then
6142 ac_ct_OBJDUMP=$OBJDUMP
6143 # Extract the first word of "objdump", so it can be a program name with args.
6144set dummy objdump; ac_word=$2
6145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6146$as_echo_n "checking for $ac_word... " >&6; }
6147if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6148 $as_echo_n "(cached) " >&6
6149else
6150 if test -n "$ac_ct_OBJDUMP"; then
6151 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6152else
6153as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6154for as_dir in $PATH
6155do
6156 IFS=$as_save_IFS
6157 test -z "$as_dir" && as_dir=.
6158 for ac_exec_ext in '' $ac_executable_extensions; do
6159 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6160 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6162 break 2
9c60689e
DWT
6163 fi
6164done
a243b558
JF
6165 done
6166IFS=$as_save_IFS
9c60689e
DWT
6167
6168fi
9c60689e 6169fi
a243b558
JF
6170ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6171if test -n "$ac_ct_OBJDUMP"; then
6172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6173$as_echo "$ac_ct_OBJDUMP" >&6; }
9c60689e 6174else
a243b558
JF
6175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6176$as_echo "no" >&6; }
9c60689e
DWT
6177fi
6178
a243b558
JF
6179 if test "x$ac_ct_OBJDUMP" = x; then
6180 OBJDUMP="false"
6181 else
6182 case $cross_compiling:$ac_tool_warned in
6183yes:)
6184{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6185$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6186ac_tool_warned=yes ;;
6187esac
6188 OBJDUMP=$ac_ct_OBJDUMP
6189 fi
6190else
6191 OBJDUMP="$ac_cv_prog_OBJDUMP"
ee134472
JF
6192fi
6193
a243b558 6194test -z "$OBJDUMP" && OBJDUMP=objdump
ee134472
JF
6195
6196
6197
6198
6199
6200
6201
6202
6203
a243b558
JF
6204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6205$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6206if ${lt_cv_deplibs_check_method+:} false; then :
6207 $as_echo_n "(cached) " >&6
6208else
6209 lt_cv_file_magic_cmd='$MAGIC_CMD'
6210lt_cv_file_magic_test_file=
6211lt_cv_deplibs_check_method='unknown'
6212# Need to set the preceding variable on all platforms that support
6213# interlibrary dependencies.
6214# 'none' -- dependencies not supported.
6215# `unknown' -- same as none, but documents that we really don't know.
6216# 'pass_all' -- all dependencies passed with no checks.
6217# 'test_compile' -- check by making test program.
6218# 'file_magic [[regex]]' -- check by looking for files in library path
6219# which responds to the $file_magic_cmd with a given extended regex.
6220# If you have `file' or equivalent on your system and you're not sure
6221# whether `pass_all' will *always* work, you probably want this one.
9c60689e 6222
a243b558
JF
6223case $host_os in
6224aix[4-9]*)
6225 lt_cv_deplibs_check_method=pass_all
6226 ;;
9c60689e 6227
a243b558
JF
6228beos*)
6229 lt_cv_deplibs_check_method=pass_all
6230 ;;
9c60689e 6231
a243b558
JF
6232bsdi[45]*)
6233 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6234 lt_cv_file_magic_cmd='/usr/bin/file -L'
6235 lt_cv_file_magic_test_file=/shlib/libc.so
6236 ;;
9c60689e 6237
a243b558
JF
6238cygwin*)
6239 # func_win32_libid is a shell function defined in ltmain.sh
6240 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6241 lt_cv_file_magic_cmd='func_win32_libid'
6242 ;;
9c60689e 6243
a243b558
JF
6244mingw* | pw32*)
6245 # Base MSYS/MinGW do not provide the 'file' command needed by
6246 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6247 # unless we find 'file', for example because we are cross-compiling.
6248 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6249 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6250 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6251 lt_cv_file_magic_cmd='func_win32_libid'
6252 else
6253 # Keep this pattern in sync with the one in func_win32_libid.
6254 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6255 lt_cv_file_magic_cmd='$OBJDUMP -f'
6256 fi
6257 ;;
9c60689e 6258
a243b558
JF
6259cegcc*)
6260 # use the weaker test based on 'objdump'. See mingw*.
6261 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6262 lt_cv_file_magic_cmd='$OBJDUMP -f'
6263 ;;
9c60689e 6264
a243b558
JF
6265darwin* | rhapsody*)
6266 lt_cv_deplibs_check_method=pass_all
6267 ;;
9c60689e 6268
a243b558
JF
6269freebsd* | dragonfly*)
6270 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6271 case $host_cpu in
6272 i*86 )
6273 # Not sure whether the presence of OpenBSD here was a mistake.
6274 # Let's accept both of them until this is cleared up.
6275 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6276 lt_cv_file_magic_cmd=/usr/bin/file
6277 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6278 ;;
6279 esac
6280 else
6281 lt_cv_deplibs_check_method=pass_all
6282 fi
6283 ;;
9c60689e 6284
a243b558
JF
6285gnu*)
6286 lt_cv_deplibs_check_method=pass_all
6287 ;;
9c60689e 6288
a243b558
JF
6289haiku*)
6290 lt_cv_deplibs_check_method=pass_all
6291 ;;
9c60689e 6292
a243b558
JF
6293hpux10.20* | hpux11*)
6294 lt_cv_file_magic_cmd=/usr/bin/file
6295 case $host_cpu in
6296 ia64*)
6297 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6298 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6299 ;;
6300 hppa*64*)
6301 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]'
6302 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6303 ;;
6304 *)
6305 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6306 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6307 ;;
6308 esac
6309 ;;
9c60689e 6310
a243b558
JF
6311interix[3-9]*)
6312 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6313 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6314 ;;
9c60689e 6315
a243b558
JF
6316irix5* | irix6* | nonstopux*)
6317 case $LD in
6318 *-32|*"-32 ") libmagic=32-bit;;
6319 *-n32|*"-n32 ") libmagic=N32;;
6320 *-64|*"-64 ") libmagic=64-bit;;
6321 *) libmagic=never-match;;
6322 esac
6323 lt_cv_deplibs_check_method=pass_all
6324 ;;
9c60689e 6325
a243b558
JF
6326# This must be glibc/ELF.
6327linux* | k*bsd*-gnu | kopensolaris*-gnu)
6328 lt_cv_deplibs_check_method=pass_all
6329 ;;
9c60689e 6330
a243b558
JF
6331netbsd*)
6332 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6333 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6334 else
6335 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6336 fi
6337 ;;
9c60689e 6338
a243b558
JF
6339newos6*)
6340 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6341 lt_cv_file_magic_cmd=/usr/bin/file
6342 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6343 ;;
9c60689e 6344
a243b558
JF
6345*nto* | *qnx*)
6346 lt_cv_deplibs_check_method=pass_all
6347 ;;
9c60689e 6348
a243b558
JF
6349openbsd*)
6350 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6351 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6352 else
6353 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6354 fi
6355 ;;
9c60689e 6356
a243b558
JF
6357osf3* | osf4* | osf5*)
6358 lt_cv_deplibs_check_method=pass_all
6359 ;;
9c60689e 6360
a243b558
JF
6361rdos*)
6362 lt_cv_deplibs_check_method=pass_all
9c60689e 6363 ;;
a243b558
JF
6364
6365solaris*)
6366 lt_cv_deplibs_check_method=pass_all
9c60689e
DWT
6367 ;;
6368
a243b558
JF
6369sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6370 lt_cv_deplibs_check_method=pass_all
9c60689e
DWT
6371 ;;
6372
a243b558
JF
6373sysv4 | sysv4.3*)
6374 case $host_vendor in
6375 motorola)
6376 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]'
6377 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6378 ;;
6379 ncr)
6380 lt_cv_deplibs_check_method=pass_all
6381 ;;
6382 sequent)
6383 lt_cv_file_magic_cmd='/bin/file'
6384 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6385 ;;
6386 sni)
6387 lt_cv_file_magic_cmd='/bin/file'
6388 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6389 lt_cv_file_magic_test_file=/lib/libc.so
6390 ;;
6391 siemens)
6392 lt_cv_deplibs_check_method=pass_all
6393 ;;
6394 pc)
6395 lt_cv_deplibs_check_method=pass_all
6396 ;;
6397 esac
6398 ;;
9c60689e 6399
a243b558
JF
6400tpf*)
6401 lt_cv_deplibs_check_method=pass_all
6402 ;;
6403esac
9c60689e 6404
a243b558
JF
6405fi
6406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6407$as_echo "$lt_cv_deplibs_check_method" >&6; }
9c60689e 6408
a243b558
JF
6409file_magic_glob=
6410want_nocaseglob=no
6411if test "$build" = "$host"; then
6412 case $host_os in
6413 mingw* | pw32*)
6414 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6415 want_nocaseglob=yes
6416 else
6417 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6418 fi
6419 ;;
6420 esac
9c60689e 6421fi
9c60689e 6422
a243b558
JF
6423file_magic_cmd=$lt_cv_file_magic_cmd
6424deplibs_check_method=$lt_cv_deplibs_check_method
6425test -z "$deplibs_check_method" && deplibs_check_method=unknown
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
9c60689e 6446
9c60689e 6447
ee134472 6448if test -n "$ac_tool_prefix"; then
a243b558
JF
6449 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6450set dummy ${ac_tool_prefix}dlltool; ac_word=$2
ee134472
JF
6451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6452$as_echo_n "checking for $ac_word... " >&6; }
a243b558 6453if ${ac_cv_prog_DLLTOOL+:} false; then :
ee134472
JF
6454 $as_echo_n "(cached) " >&6
6455else
a243b558
JF
6456 if test -n "$DLLTOOL"; then
6457 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
ee134472
JF
6458else
6459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6460for as_dir in $PATH
6461do
6462 IFS=$as_save_IFS
6463 test -z "$as_dir" && as_dir=.
6464 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 6465 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 6466 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
ee134472
JF
6467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6468 break 2
6469 fi
6470done
6471 done
6472IFS=$as_save_IFS
6473
6474fi
6475fi
a243b558
JF
6476DLLTOOL=$ac_cv_prog_DLLTOOL
6477if test -n "$DLLTOOL"; then
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6479$as_echo "$DLLTOOL" >&6; }
ee134472
JF
6480else
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6482$as_echo "no" >&6; }
6483fi
6484
6485
6486fi
a243b558
JF
6487if test -z "$ac_cv_prog_DLLTOOL"; then
6488 ac_ct_DLLTOOL=$DLLTOOL
6489 # Extract the first word of "dlltool", so it can be a program name with args.
6490set dummy dlltool; ac_word=$2
ee134472
JF
6491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6492$as_echo_n "checking for $ac_word... " >&6; }
a243b558 6493if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
ee134472
JF
6494 $as_echo_n "(cached) " >&6
6495else
a243b558
JF
6496 if test -n "$ac_ct_DLLTOOL"; then
6497 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
ee134472
JF
6498else
6499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6500for as_dir in $PATH
6501do
6502 IFS=$as_save_IFS
6503 test -z "$as_dir" && as_dir=.
6504 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 6505 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 6506 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
ee134472
JF
6507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6508 break 2
6509 fi
6510done
6511 done
6512IFS=$as_save_IFS
6513
6514fi
6515fi
a243b558
JF
6516ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6517if test -n "$ac_ct_DLLTOOL"; then
6518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6519$as_echo "$ac_ct_DLLTOOL" >&6; }
ee134472
JF
6520else
6521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6522$as_echo "no" >&6; }
6523fi
6524
a243b558
JF
6525 if test "x$ac_ct_DLLTOOL" = x; then
6526 DLLTOOL="false"
ee134472
JF
6527 else
6528 case $cross_compiling:$ac_tool_warned in
6529yes:)
6530{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6531$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6532ac_tool_warned=yes ;;
6533esac
a243b558 6534 DLLTOOL=$ac_ct_DLLTOOL
ee134472
JF
6535 fi
6536else
a243b558 6537 DLLTOOL="$ac_cv_prog_DLLTOOL"
ee134472
JF
6538fi
6539
a243b558
JF
6540test -z "$DLLTOOL" && DLLTOOL=dlltool
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6552$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6553if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
ee134472
JF
6554 $as_echo_n "(cached) " >&6
6555else
a243b558
JF
6556 lt_cv_sharedlib_from_linklib_cmd='unknown'
6557
6558case $host_os in
6559cygwin* | mingw* | pw32* | cegcc*)
6560 # two different shell functions defined in ltmain.sh
6561 # decide which to use based on capabilities of $DLLTOOL
6562 case `$DLLTOOL --help 2>&1` in
6563 *--identify-strict*)
6564 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6565 ;;
6566 *)
6567 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6568 ;;
6569 esac
6570 ;;
6571*)
6572 # fallback: assume linklib IS sharedlib
6573 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6574 ;;
6575esac
6576
ee134472 6577fi
a243b558
JF
6578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6579$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6580sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6581test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
ee134472
JF
6582
6583
6584
6585
6586
9c60689e 6587
a243b558
JF
6588
6589if test -n "$ac_tool_prefix"; then
6590 for ac_prog in ar
6591 do
6592 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6593set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9c60689e
DWT
6594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6595$as_echo_n "checking for $ac_word... " >&6; }
a243b558 6596if ${ac_cv_prog_AR+:} false; then :
9c60689e
DWT
6597 $as_echo_n "(cached) " >&6
6598else
a243b558
JF
6599 if test -n "$AR"; then
6600 ac_cv_prog_AR="$AR" # Let the user override the test.
9c60689e
DWT
6601else
6602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6603for as_dir in $PATH
6604do
6605 IFS=$as_save_IFS
6606 test -z "$as_dir" && as_dir=.
6607 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 6608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 6609 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
9c60689e
DWT
6610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6611 break 2
6612 fi
6613done
6614 done
6615IFS=$as_save_IFS
6616
6617fi
6618fi
a243b558
JF
6619AR=$ac_cv_prog_AR
6620if test -n "$AR"; then
6621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6622$as_echo "$AR" >&6; }
9c60689e
DWT
6623else
6624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6625$as_echo "no" >&6; }
6626fi
6627
6628
a243b558
JF
6629 test -n "$AR" && break
6630 done
9c60689e 6631fi
a243b558
JF
6632if test -z "$AR"; then
6633 ac_ct_AR=$AR
6634 for ac_prog in ar
6635do
6636 # Extract the first word of "$ac_prog", so it can be a program name with args.
6637set dummy $ac_prog; ac_word=$2
9c60689e
DWT
6638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6639$as_echo_n "checking for $ac_word... " >&6; }
a243b558 6640if ${ac_cv_prog_ac_ct_AR+:} false; then :
9c60689e
DWT
6641 $as_echo_n "(cached) " >&6
6642else
a243b558
JF
6643 if test -n "$ac_ct_AR"; then
6644 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9c60689e
DWT
6645else
6646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6647for as_dir in $PATH
6648do
6649 IFS=$as_save_IFS
6650 test -z "$as_dir" && as_dir=.
6651 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 6652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 6653 ac_cv_prog_ac_ct_AR="$ac_prog"
9c60689e
DWT
6654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6655 break 2
6656 fi
6657done
6658 done
6659IFS=$as_save_IFS
6660
6661fi
6662fi
a243b558
JF
6663ac_ct_AR=$ac_cv_prog_ac_ct_AR
6664if test -n "$ac_ct_AR"; then
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6666$as_echo "$ac_ct_AR" >&6; }
9c60689e
DWT
6667else
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6669$as_echo "no" >&6; }
6670fi
6671
a243b558
JF
6672
6673 test -n "$ac_ct_AR" && break
6674done
6675
6676 if test "x$ac_ct_AR" = x; then
6677 AR="false"
9c60689e
DWT
6678 else
6679 case $cross_compiling:$ac_tool_warned in
6680yes:)
6681{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6682$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6683ac_tool_warned=yes ;;
6684esac
a243b558 6685 AR=$ac_ct_AR
9c60689e 6686 fi
a243b558
JF
6687fi
6688
6689: ${AR=ar}
6690: ${AR_FLAGS=cru}
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6703$as_echo_n "checking for archiver @FILE support... " >&6; }
6704if ${lt_cv_ar_at_file+:} false; then :
6705 $as_echo_n "(cached) " >&6
9c60689e 6706else
a243b558
JF
6707 lt_cv_ar_at_file=no
6708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6709/* end confdefs.h. */
6710
6711int
6712main ()
6713{
6714
6715 ;
6716 return 0;
6717}
6718_ACEOF
6719if ac_fn_c_try_compile "$LINENO"; then :
6720 echo conftest.$ac_objext > conftest.lst
6721 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6722 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6723 (eval $lt_ar_try) 2>&5
6724 ac_status=$?
6725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6726 test $ac_status = 0; }
6727 if test "$ac_status" -eq 0; then
6728 # Ensure the archiver fails upon bogus file names.
6729 rm -f conftest.$ac_objext libconftest.a
6730 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6731 (eval $lt_ar_try) 2>&5
6732 ac_status=$?
6733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6734 test $ac_status = 0; }
6735 if test "$ac_status" -ne 0; then
6736 lt_cv_ar_at_file=@
6737 fi
6738 fi
6739 rm -f conftest.* libconftest.a
6740
9c60689e 6741fi
a243b558 6742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9c60689e 6743
a243b558
JF
6744fi
6745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6746$as_echo "$lt_cv_ar_at_file" >&6; }
6747
6748if test "x$lt_cv_ar_at_file" = xno; then
6749 archiver_list_spec=
6750else
6751 archiver_list_spec=$lt_cv_ar_at_file
6752fi
6753
6754
6755
6756
6757
6758
6759
6760if test -n "$ac_tool_prefix"; then
6761 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6762set dummy ${ac_tool_prefix}strip; ac_word=$2
9c60689e
DWT
6763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6764$as_echo_n "checking for $ac_word... " >&6; }
a243b558 6765if ${ac_cv_prog_STRIP+:} false; then :
9c60689e
DWT
6766 $as_echo_n "(cached) " >&6
6767else
a243b558
JF
6768 if test -n "$STRIP"; then
6769 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9c60689e
DWT
6770else
6771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6772for as_dir in $PATH
6773do
6774 IFS=$as_save_IFS
6775 test -z "$as_dir" && as_dir=.
6776 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 6777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 6778 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9c60689e
DWT
6779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6780 break 2
6781 fi
6782done
6783 done
6784IFS=$as_save_IFS
6785
6786fi
6787fi
a243b558
JF
6788STRIP=$ac_cv_prog_STRIP
6789if test -n "$STRIP"; then
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6791$as_echo "$STRIP" >&6; }
9c60689e
DWT
6792else
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6794$as_echo "no" >&6; }
6795fi
6796
6797
6798fi
a243b558
JF
6799if test -z "$ac_cv_prog_STRIP"; then
6800 ac_ct_STRIP=$STRIP
6801 # Extract the first word of "strip", so it can be a program name with args.
6802set dummy strip; ac_word=$2
9c60689e
DWT
6803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6804$as_echo_n "checking for $ac_word... " >&6; }
a243b558 6805if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
9c60689e
DWT
6806 $as_echo_n "(cached) " >&6
6807else
a243b558
JF
6808 if test -n "$ac_ct_STRIP"; then
6809 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9c60689e
DWT
6810else
6811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6812for as_dir in $PATH
6813do
6814 IFS=$as_save_IFS
6815 test -z "$as_dir" && as_dir=.
6816 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 6817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 6818 ac_cv_prog_ac_ct_STRIP="strip"
9c60689e
DWT
6819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6820 break 2
6821 fi
6822done
6823 done
6824IFS=$as_save_IFS
6825
6826fi
6827fi
a243b558
JF
6828ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6829if test -n "$ac_ct_STRIP"; then
6830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6831$as_echo "$ac_ct_STRIP" >&6; }
9c60689e
DWT
6832else
6833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6834$as_echo "no" >&6; }
6835fi
6836
a243b558
JF
6837 if test "x$ac_ct_STRIP" = x; then
6838 STRIP=":"
9c60689e
DWT
6839 else
6840 case $cross_compiling:$ac_tool_warned in
6841yes:)
6842{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6843$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6844ac_tool_warned=yes ;;
6845esac
a243b558 6846 STRIP=$ac_ct_STRIP
9c60689e
DWT
6847 fi
6848else
a243b558 6849 STRIP="$ac_cv_prog_STRIP"
9c60689e
DWT
6850fi
6851
a243b558
JF
6852test -z "$STRIP" && STRIP=:
6853
6854
6855
6856
6857
6858
6859if test -n "$ac_tool_prefix"; then
6860 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6861set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9c60689e
DWT
6862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6863$as_echo_n "checking for $ac_word... " >&6; }
a243b558 6864if ${ac_cv_prog_RANLIB+:} false; then :
9c60689e
DWT
6865 $as_echo_n "(cached) " >&6
6866else
a243b558
JF
6867 if test -n "$RANLIB"; then
6868 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9c60689e
DWT
6869else
6870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6871for as_dir in $PATH
6872do
6873 IFS=$as_save_IFS
6874 test -z "$as_dir" && as_dir=.
6875 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 6876 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 6877 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9c60689e
DWT
6878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6879 break 2
6880 fi
6881done
6882 done
6883IFS=$as_save_IFS
6884
6885fi
6886fi
a243b558
JF
6887RANLIB=$ac_cv_prog_RANLIB
6888if test -n "$RANLIB"; then
6889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6890$as_echo "$RANLIB" >&6; }
9c60689e
DWT
6891else
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6893$as_echo "no" >&6; }
6894fi
6895
6896
6897fi
a243b558
JF
6898if test -z "$ac_cv_prog_RANLIB"; then
6899 ac_ct_RANLIB=$RANLIB
6900 # Extract the first word of "ranlib", so it can be a program name with args.
6901set dummy ranlib; ac_word=$2
9c60689e
DWT
6902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6903$as_echo_n "checking for $ac_word... " >&6; }
a243b558 6904if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
9c60689e
DWT
6905 $as_echo_n "(cached) " >&6
6906else
a243b558
JF
6907 if test -n "$ac_ct_RANLIB"; then
6908 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9c60689e
DWT
6909else
6910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6911for as_dir in $PATH
6912do
6913 IFS=$as_save_IFS
6914 test -z "$as_dir" && as_dir=.
6915 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 6916 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 6917 ac_cv_prog_ac_ct_RANLIB="ranlib"
9c60689e
DWT
6918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6919 break 2
6920 fi
6921done
6922 done
6923IFS=$as_save_IFS
6924
6925fi
6926fi
a243b558
JF
6927ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6928if test -n "$ac_ct_RANLIB"; then
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6930$as_echo "$ac_ct_RANLIB" >&6; }
9c60689e
DWT
6931else
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6933$as_echo "no" >&6; }
6934fi
6935
a243b558
JF
6936 if test "x$ac_ct_RANLIB" = x; then
6937 RANLIB=":"
9c60689e
DWT
6938 else
6939 case $cross_compiling:$ac_tool_warned in
6940yes:)
6941{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6942$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6943ac_tool_warned=yes ;;
6944esac
a243b558 6945 RANLIB=$ac_ct_RANLIB
9c60689e
DWT
6946 fi
6947else
a243b558 6948 RANLIB="$ac_cv_prog_RANLIB"
9c60689e
DWT
6949fi
6950
a243b558
JF
6951test -z "$RANLIB" && RANLIB=:
6952
6953
9c60689e 6954
9c60689e
DWT
6955
6956
a243b558
JF
6957
6958# Determine commands to create old-style static archives.
6959old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6960old_postinstall_cmds='chmod 644 $oldlib'
6961old_postuninstall_cmds=
6962
6963if test -n "$RANLIB"; then
6964 case $host_os in
6965 openbsd*)
6966 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6967 ;;
6968 *)
6969 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6970 ;;
6971 esac
6972 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
9c60689e
DWT
6973fi
6974
a243b558
JF
6975case $host_os in
6976 darwin*)
6977 lock_old_archive_extraction=yes ;;
6978 *)
6979 lock_old_archive_extraction=no ;;
9c60689e 6980esac
9c60689e 6981
9c60689e 6982
9c60689e
DWT
6983
6984
9c60689e 6985
9c60689e 6986
9c60689e
DWT
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
7012
7013
53ba6704 7014
9c60689e 7015
9c60689e 7016
9c60689e 7017
53ba6704 7018
a243b558
JF
7019
7020# If no C compiler was specified, use CC.
7021LTCC=${LTCC-"$CC"}
7022
7023# If no C compiler flags were specified, use CFLAGS.
7024LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7025
7026# Allow CC to be a program name with arguments.
7027compiler=$CC
7028
7029
7030# Check for command to grab the raw symbol name followed by C symbol from nm.
7031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7032$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7033if ${lt_cv_sys_global_symbol_pipe+:} false; then :
ee134472
JF
7034 $as_echo_n "(cached) " >&6
7035else
ee134472 7036
a243b558
JF
7037# These are sane defaults that work on at least a few old systems.
7038# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9c60689e 7039
a243b558
JF
7040# Character class describing NM global symbol codes.
7041symcode='[BCDEGRST]'
9c60689e 7042
a243b558
JF
7043# Regexp to match symbols that can be accessed directly from C.
7044sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9c60689e 7045
a243b558
JF
7046# Define system-specific variables.
7047case $host_os in
7048aix*)
7049 symcode='[BCDT]'
7050 ;;
7051cygwin* | mingw* | pw32* | cegcc*)
7052 symcode='[ABCDGISTW]'
7053 ;;
7054hpux*)
7055 if test "$host_cpu" = ia64; then
7056 symcode='[ABCDEGRST]'
7057 fi
7058 ;;
7059irix* | nonstopux*)
7060 symcode='[BCDEGRST]'
7061 ;;
7062osf*)
7063 symcode='[BCDEGQRST]'
7064 ;;
7065solaris*)
7066 symcode='[BDRT]'
7067 ;;
7068sco3.2v5*)
7069 symcode='[DT]'
7070 ;;
7071sysv4.2uw2*)
7072 symcode='[DT]'
7073 ;;
7074sysv5* | sco5v6* | unixware* | OpenUNIX*)
7075 symcode='[ABDT]'
7076 ;;
7077sysv4)
7078 symcode='[DFNSTU]'
7079 ;;
7080esac
9c60689e 7081
a243b558
JF
7082# If we're using GNU nm, then use its standard symbol codes.
7083case `$NM -V 2>&1` in
7084*GNU* | *'with BFD'*)
7085 symcode='[ABCDGIRSTW]' ;;
7086esac
9c60689e 7087
a243b558
JF
7088# Transform an extracted symbol line into a proper C declaration.
7089# Some systems (esp. on ia64) link data and code symbols differently,
7090# so use this general approach.
7091lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9c60689e 7092
a243b558
JF
7093# Transform an extracted symbol line into symbol name and symbol address
7094lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7095lt_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 7096
a243b558
JF
7097# Handle CRLF in mingw tool chain
7098opt_cr=
7099case $build_os in
7100mingw*)
7101 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7102 ;;
7103esac
9c60689e 7104
a243b558
JF
7105# Try without a prefix underscore, then with it.
7106for ac_symprfx in "" "_"; do
9c60689e 7107
a243b558
JF
7108 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7109 symxfrm="\\1 $ac_symprfx\\2 \\2"
9c60689e 7110
a243b558
JF
7111 # Write the raw and C identifiers.
7112 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7113 # Fake it for dumpbin and say T for any non-static function
7114 # and D for any global variable.
7115 # Also find C++ and __fastcall symbols from MSVC++,
7116 # which start with @ or ?.
7117 lt_cv_sys_global_symbol_pipe="$AWK '"\
7118" {last_section=section; section=\$ 3};"\
7119" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7120" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7121" \$ 0!~/External *\|/{next};"\
7122" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7123" {if(hide[section]) next};"\
7124" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7125" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7126" s[1]~/^[@?]/{print s[1], s[1]; next};"\
7127" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7128" ' prfx=^$ac_symprfx"
7129 else
7130 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7131 fi
7132 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
9c60689e 7133
a243b558
JF
7134 # Check to see that the pipe works correctly.
7135 pipe_works=no
9c60689e 7136
a243b558
JF
7137 rm -rf conftest*
7138 cat > conftest.$ac_ext <<_LT_EOF
7139#ifdef __cplusplus
7140extern "C" {
7141#endif
7142char nm_test_var;
7143void nm_test_func(void);
7144void nm_test_func(void){}
7145#ifdef __cplusplus
7146}
7147#endif
7148int main(){nm_test_var='a';nm_test_func();return(0);}
7149_LT_EOF
9c60689e 7150
a243b558
JF
7151 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7152 (eval $ac_compile) 2>&5
7153 ac_status=$?
7154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7155 test $ac_status = 0; }; then
7156 # Now try to grab the symbols.
7157 nlist=conftest.nm
7158 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7159 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7160 ac_status=$?
7161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7162 test $ac_status = 0; } && test -s "$nlist"; then
7163 # Try sorting and uniquifying the output.
7164 if sort "$nlist" | uniq > "$nlist"T; then
7165 mv -f "$nlist"T "$nlist"
7166 else
7167 rm -f "$nlist"T
7168 fi
9c60689e 7169
a243b558
JF
7170 # Make sure that we snagged all the symbols we need.
7171 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7172 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7173 cat <<_LT_EOF > conftest.$ac_ext
7174/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7175#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7176/* DATA imports from DLLs on WIN32 con't be const, because runtime
7177 relocations are performed -- see ld's documentation on pseudo-relocs. */
7178# define LT_DLSYM_CONST
7179#elif defined(__osf__)
7180/* This system does not cope well with relocations in const data. */
7181# define LT_DLSYM_CONST
7182#else
7183# define LT_DLSYM_CONST const
7184#endif
9c60689e 7185
a243b558
JF
7186#ifdef __cplusplus
7187extern "C" {
7188#endif
9c60689e 7189
a243b558
JF
7190_LT_EOF
7191 # Now generate the symbol file.
7192 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9c60689e 7193
a243b558 7194 cat <<_LT_EOF >> conftest.$ac_ext
9c60689e 7195
a243b558
JF
7196/* The mapping between symbol names and symbols. */
7197LT_DLSYM_CONST struct {
7198 const char *name;
7199 void *address;
7200}
7201lt__PROGRAM__LTX_preloaded_symbols[] =
7202{
7203 { "@PROGRAM@", (void *) 0 },
7204_LT_EOF
7205 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7206 cat <<\_LT_EOF >> conftest.$ac_ext
7207 {0, (void *) 0}
7208};
9c60689e 7209
a243b558
JF
7210/* This works around a problem in FreeBSD linker */
7211#ifdef FREEBSD_WORKAROUND
7212static const void *lt_preloaded_setup() {
7213 return lt__PROGRAM__LTX_preloaded_symbols;
7214}
7215#endif
9c60689e 7216
a243b558
JF
7217#ifdef __cplusplus
7218}
7219#endif
7220_LT_EOF
7221 # Now try linking the two files.
7222 mv conftest.$ac_objext conftstm.$ac_objext
7223 lt_globsym_save_LIBS=$LIBS
7224 lt_globsym_save_CFLAGS=$CFLAGS
7225 LIBS="conftstm.$ac_objext"
7226 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7227 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7228 (eval $ac_link) 2>&5
7229 ac_status=$?
7230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7231 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7232 pipe_works=yes
7233 fi
7234 LIBS=$lt_globsym_save_LIBS
7235 CFLAGS=$lt_globsym_save_CFLAGS
7236 else
7237 echo "cannot find nm_test_func in $nlist" >&5
7238 fi
7239 else
7240 echo "cannot find nm_test_var in $nlist" >&5
7241 fi
7242 else
7243 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7244 fi
7245 else
7246 echo "$progname: failed program was:" >&5
7247 cat conftest.$ac_ext >&5
7248 fi
7249 rm -rf conftest* conftst*
9c60689e 7250
a243b558
JF
7251 # Do not use the global_symbol_pipe unless it works.
7252 if test "$pipe_works" = yes; then
7253 break
7254 else
7255 lt_cv_sys_global_symbol_pipe=
7256 fi
7257done
9c60689e 7258
9c60689e 7259fi
9c60689e 7260
a243b558
JF
7261if test -z "$lt_cv_sys_global_symbol_pipe"; then
7262 lt_cv_sys_global_symbol_to_cdecl=
9c60689e 7263fi
a243b558
JF
7264if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7266$as_echo "failed" >&6; }
9c60689e 7267else
a243b558
JF
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7269$as_echo "ok" >&6; }
9c60689e
DWT
7270fi
7271
a243b558
JF
7272# Response file support.
7273if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7274 nm_file_list_spec='@'
7275elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7276 nm_file_list_spec='@'
9c60689e 7277fi
9c60689e 7278
9c60689e 7279
9c60689e 7280
9c60689e 7281
9c60689e 7282
9c60689e
DWT
7283
7284
9c60689e 7285
9c60689e 7286
9c60689e
DWT
7287
7288
7289
ee134472
JF
7290
7291
9c60689e
DWT
7292
7293
7294
7295
7296
7297
7298
7299
7300
549f29b5 7301
549f29b5
DWT
7302
7303
549f29b5 7304
a243b558
JF
7305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7306$as_echo_n "checking for sysroot... " >&6; }
549f29b5 7307
a243b558
JF
7308# Check whether --with-sysroot was given.
7309if test "${with_sysroot+set}" = set; then :
7310 withval=$with_sysroot;
9c60689e 7311else
a243b558 7312 with_sysroot=no
9c60689e
DWT
7313fi
7314
7315
a243b558
JF
7316lt_sysroot=
7317case ${with_sysroot} in #(
7318 yes)
7319 if test "$GCC" = yes; then
7320 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7321 fi
7322 ;; #(
7323 /*)
7324 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7325 ;; #(
7326 no|'')
7327 ;; #(
7328 *)
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7330$as_echo "${with_sysroot}" >&6; }
7331 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7332 ;;
7333esac
9c60689e 7334
a243b558
JF
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7336$as_echo "${lt_sysroot:-no}" >&6; }
9c60689e
DWT
7337
7338
7339
7340
7341
a243b558
JF
7342# Check whether --enable-libtool-lock was given.
7343if test "${enable_libtool_lock+set}" = set; then :
7344 enableval=$enable_libtool_lock;
9c60689e
DWT
7345fi
7346
a243b558 7347test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9c60689e 7348
a243b558
JF
7349# Some flags need to be propagated to the compiler or linker for good
7350# libtool support.
7351case $host in
7352ia64-*-hpux*)
7353 # Find out which ABI we are using.
7354 echo 'int i;' > conftest.$ac_ext
7355 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7356 (eval $ac_compile) 2>&5
7357 ac_status=$?
7358 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7359 test $ac_status = 0; }; then
7360 case `/usr/bin/file conftest.$ac_objext` in
7361 *ELF-32*)
7362 HPUX_IA64_MODE="32"
7363 ;;
7364 *ELF-64*)
7365 HPUX_IA64_MODE="64"
7366 ;;
7367 esac
7368 fi
7369 rm -rf conftest*
7370 ;;
7371*-*-irix6*)
7372 # Find out which ABI we are using.
7373 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7374 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7375 (eval $ac_compile) 2>&5
7376 ac_status=$?
7377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7378 test $ac_status = 0; }; then
7379 if test "$lt_cv_prog_gnu_ld" = yes; then
7380 case `/usr/bin/file conftest.$ac_objext` in
7381 *32-bit*)
7382 LD="${LD-ld} -melf32bsmip"
7383 ;;
7384 *N32*)
7385 LD="${LD-ld} -melf32bmipn32"
7386 ;;
7387 *64-bit*)
7388 LD="${LD-ld} -melf64bmip"
7389 ;;
7390 esac
7391 else
7392 case `/usr/bin/file conftest.$ac_objext` in
7393 *32-bit*)
7394 LD="${LD-ld} -32"
7395 ;;
7396 *N32*)
7397 LD="${LD-ld} -n32"
7398 ;;
7399 *64-bit*)
7400 LD="${LD-ld} -64"
7401 ;;
7402 esac
7403 fi
7404 fi
7405 rm -rf conftest*
7406 ;;
9c60689e 7407
a243b558
JF
7408x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7409s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7410 # Find out which ABI we are using.
7411 echo 'int i;' > conftest.$ac_ext
7412 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7413 (eval $ac_compile) 2>&5
7414 ac_status=$?
7415 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7416 test $ac_status = 0; }; then
7417 case `/usr/bin/file conftest.o` in
7418 *32-bit*)
7419 case $host in
7420 x86_64-*kfreebsd*-gnu)
7421 LD="${LD-ld} -m elf_i386_fbsd"
7422 ;;
7423 x86_64-*linux*)
7424 LD="${LD-ld} -m elf_i386"
7425 ;;
7426 ppc64-*linux*|powerpc64-*linux*)
7427 LD="${LD-ld} -m elf32ppclinux"
7428 ;;
7429 s390x-*linux*)
7430 LD="${LD-ld} -m elf_s390"
7431 ;;
7432 sparc64-*linux*)
7433 LD="${LD-ld} -m elf32_sparc"
7434 ;;
7435 esac
7436 ;;
7437 *64-bit*)
7438 case $host in
7439 x86_64-*kfreebsd*-gnu)
7440 LD="${LD-ld} -m elf_x86_64_fbsd"
7441 ;;
7442 x86_64-*linux*)
7443 LD="${LD-ld} -m elf_x86_64"
7444 ;;
7445 ppc*-*linux*|powerpc*-*linux*)
7446 LD="${LD-ld} -m elf64ppc"
7447 ;;
7448 s390*-*linux*|s390*-*tpf*)
7449 LD="${LD-ld} -m elf64_s390"
7450 ;;
7451 sparc*-*linux*)
7452 LD="${LD-ld} -m elf64_sparc"
7453 ;;
7454 esac
7455 ;;
7456 esac
7457 fi
7458 rm -rf conftest*
7459 ;;
9c60689e 7460
a243b558
JF
7461*-*-sco3.2v5*)
7462 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7463 SAVE_CFLAGS="$CFLAGS"
7464 CFLAGS="$CFLAGS -belf"
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7466$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7467if ${lt_cv_cc_needs_belf+:} false; then :
7468 $as_echo_n "(cached) " >&6
7469else
7470 ac_ext=c
7471ac_cpp='$CPP $CPPFLAGS'
7472ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7473ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7474ac_compiler_gnu=$ac_cv_c_compiler_gnu
9c60689e 7475
a243b558
JF
7476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7477/* end confdefs.h. */
9c60689e 7478
a243b558
JF
7479int
7480main ()
7481{
9c60689e 7482
a243b558
JF
7483 ;
7484 return 0;
7485}
7486_ACEOF
7487if ac_fn_c_try_link "$LINENO"; then :
7488 lt_cv_cc_needs_belf=yes
9c60689e 7489else
a243b558 7490 lt_cv_cc_needs_belf=no
9c60689e 7491fi
a243b558
JF
7492rm -f core conftest.err conftest.$ac_objext \
7493 conftest$ac_exeext conftest.$ac_ext
7494 ac_ext=c
7495ac_cpp='$CPP $CPPFLAGS'
7496ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7497ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7498ac_compiler_gnu=$ac_cv_c_compiler_gnu
9c60689e 7499
a243b558
JF
7500fi
7501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7502$as_echo "$lt_cv_cc_needs_belf" >&6; }
7503 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7504 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7505 CFLAGS="$SAVE_CFLAGS"
7506 fi
7507 ;;
7508*-*solaris*)
7509 # Find out which ABI we are using.
7510 echo 'int i;' > conftest.$ac_ext
7511 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7512 (eval $ac_compile) 2>&5
7513 ac_status=$?
7514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7515 test $ac_status = 0; }; then
7516 case `/usr/bin/file conftest.o` in
7517 *64-bit*)
7518 case $lt_cv_prog_gnu_ld in
7519 yes*)
7520 case $host in
7521 i?86-*-solaris*)
7522 LD="${LD-ld} -m elf_x86_64"
7523 ;;
7524 sparc*-*-solaris*)
7525 LD="${LD-ld} -m elf64_sparc"
7526 ;;
7527 esac
7528 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7529 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7530 LD="${LD-ld}_sol2"
7531 fi
7532 ;;
7533 *)
7534 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7535 LD="${LD-ld} -64"
7536 fi
7537 ;;
7538 esac
7539 ;;
7540 esac
7541 fi
7542 rm -rf conftest*
7543 ;;
7544esac
9c60689e 7545
a243b558 7546need_locks="$enable_libtool_lock"
9c60689e 7547
a243b558
JF
7548if test -n "$ac_tool_prefix"; then
7549 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7550set dummy ${ac_tool_prefix}mt; ac_word=$2
7551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7552$as_echo_n "checking for $ac_word... " >&6; }
7553if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7554 $as_echo_n "(cached) " >&6
7555else
7556 if test -n "$MANIFEST_TOOL"; then
7557 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7558else
7559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7560for as_dir in $PATH
7561do
7562 IFS=$as_save_IFS
7563 test -z "$as_dir" && as_dir=.
7564 for ac_exec_ext in '' $ac_executable_extensions; do
7565 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7566 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7568 break 2
7569 fi
7570done
7571 done
7572IFS=$as_save_IFS
9c60689e 7573
a243b558
JF
7574fi
7575fi
7576MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7577if test -n "$MANIFEST_TOOL"; then
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7579$as_echo "$MANIFEST_TOOL" >&6; }
7580else
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7582$as_echo "no" >&6; }
7583fi
9c60689e
DWT
7584
7585
a243b558
JF
7586fi
7587if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7588 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7589 # Extract the first word of "mt", so it can be a program name with args.
7590set dummy mt; ac_word=$2
7591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7592$as_echo_n "checking for $ac_word... " >&6; }
7593if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7594 $as_echo_n "(cached) " >&6
7595else
7596 if test -n "$ac_ct_MANIFEST_TOOL"; then
7597 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7598else
7599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7600for as_dir in $PATH
7601do
7602 IFS=$as_save_IFS
7603 test -z "$as_dir" && as_dir=.
7604 for ac_exec_ext in '' $ac_executable_extensions; do
7605 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7606 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7608 break 2
7609 fi
7610done
7611 done
7612IFS=$as_save_IFS
9c60689e 7613
a243b558
JF
7614fi
7615fi
7616ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7617if test -n "$ac_ct_MANIFEST_TOOL"; then
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7619$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7620else
7621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7622$as_echo "no" >&6; }
7623fi
9c60689e 7624
a243b558
JF
7625 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7626 MANIFEST_TOOL=":"
7627 else
7628 case $cross_compiling:$ac_tool_warned in
7629yes:)
7630{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7631$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7632ac_tool_warned=yes ;;
7633esac
7634 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7635 fi
7636else
7637 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7638fi
9c60689e 7639
a243b558
JF
7640test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7642$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7643if ${lt_cv_path_mainfest_tool+:} false; then :
7644 $as_echo_n "(cached) " >&6
7645else
7646 lt_cv_path_mainfest_tool=no
7647 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7648 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7649 cat conftest.err >&5
7650 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7651 lt_cv_path_mainfest_tool=yes
7652 fi
7653 rm -rf conftest*
7654fi
7655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7656$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7657if test "x$lt_cv_path_mainfest_tool" != xyes; then
7658 MANIFEST_TOOL=:
7659fi
9c60689e
DWT
7660
7661
7662
7663
7664
7665
a243b558
JF
7666 case $host_os in
7667 rhapsody* | darwin*)
7668 if test -n "$ac_tool_prefix"; then
7669 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7670set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7672$as_echo_n "checking for $ac_word... " >&6; }
7673if ${ac_cv_prog_DSYMUTIL+:} false; then :
7674 $as_echo_n "(cached) " >&6
7675else
7676 if test -n "$DSYMUTIL"; then
7677 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7678else
7679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7680for as_dir in $PATH
7681do
7682 IFS=$as_save_IFS
7683 test -z "$as_dir" && as_dir=.
7684 for ac_exec_ext in '' $ac_executable_extensions; do
7685 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7686 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7688 break 2
7689 fi
7690done
7691 done
7692IFS=$as_save_IFS
9c60689e 7693
a243b558
JF
7694fi
7695fi
7696DSYMUTIL=$ac_cv_prog_DSYMUTIL
7697if test -n "$DSYMUTIL"; then
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7699$as_echo "$DSYMUTIL" >&6; }
7700else
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7702$as_echo "no" >&6; }
7703fi
9c60689e
DWT
7704
7705
9c60689e 7706fi
a243b558
JF
7707if test -z "$ac_cv_prog_DSYMUTIL"; then
7708 ac_ct_DSYMUTIL=$DSYMUTIL
7709 # Extract the first word of "dsymutil", so it can be a program name with args.
7710set dummy dsymutil; ac_word=$2
7711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7712$as_echo_n "checking for $ac_word... " >&6; }
7713if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9c60689e
DWT
7714 $as_echo_n "(cached) " >&6
7715else
a243b558
JF
7716 if test -n "$ac_ct_DSYMUTIL"; then
7717 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9c60689e 7718else
a243b558
JF
7719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7720for as_dir in $PATH
7721do
7722 IFS=$as_save_IFS
7723 test -z "$as_dir" && as_dir=.
7724 for ac_exec_ext in '' $ac_executable_extensions; do
7725 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7726 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7728 break 2
7729 fi
7730done
7731 done
7732IFS=$as_save_IFS
7733
9c60689e 7734fi
9c60689e 7735fi
a243b558
JF
7736ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7737if test -n "$ac_ct_DSYMUTIL"; then
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7739$as_echo "$ac_ct_DSYMUTIL" >&6; }
7740else
7741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7742$as_echo "no" >&6; }
7743fi
9c60689e 7744
a243b558
JF
7745 if test "x$ac_ct_DSYMUTIL" = x; then
7746 DSYMUTIL=":"
7747 else
7748 case $cross_compiling:$ac_tool_warned in
7749yes:)
7750{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7751$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7752ac_tool_warned=yes ;;
9c60689e 7753esac
a243b558
JF
7754 DSYMUTIL=$ac_ct_DSYMUTIL
7755 fi
7756else
7757 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7758fi
9c60689e 7759
a243b558
JF
7760 if test -n "$ac_tool_prefix"; then
7761 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7762set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7764$as_echo_n "checking for $ac_word... " >&6; }
7765if ${ac_cv_prog_NMEDIT+:} false; then :
9c60689e
DWT
7766 $as_echo_n "(cached) " >&6
7767else
a243b558
JF
7768 if test -n "$NMEDIT"; then
7769 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7770else
7771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7772for as_dir in $PATH
7773do
7774 IFS=$as_save_IFS
7775 test -z "$as_dir" && as_dir=.
7776 for ac_exec_ext in '' $ac_executable_extensions; do
7777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7778 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7780 break 2
7781 fi
7782done
9c60689e 7783 done
a243b558 7784IFS=$as_save_IFS
9c60689e 7785
a243b558
JF
7786fi
7787fi
7788NMEDIT=$ac_cv_prog_NMEDIT
7789if test -n "$NMEDIT"; then
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7791$as_echo "$NMEDIT" >&6; }
9c60689e
DWT
7792else
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7794$as_echo "no" >&6; }
7795fi
7796
7797
a243b558
JF
7798fi
7799if test -z "$ac_cv_prog_NMEDIT"; then
7800 ac_ct_NMEDIT=$NMEDIT
7801 # Extract the first word of "nmedit", so it can be a program name with args.
7802set dummy nmedit; ac_word=$2
7803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7804$as_echo_n "checking for $ac_word... " >&6; }
7805if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9c60689e
DWT
7806 $as_echo_n "(cached) " >&6
7807else
a243b558
JF
7808 if test -n "$ac_ct_NMEDIT"; then
7809 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7810else
7811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7812for as_dir in $PATH
7813do
7814 IFS=$as_save_IFS
7815 test -z "$as_dir" && as_dir=.
7816 for ac_exec_ext in '' $ac_executable_extensions; do
7817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7818 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7820 break 2
7821 fi
7822done
9c60689e 7823 done
a243b558 7824IFS=$as_save_IFS
9c60689e 7825
a243b558
JF
7826fi
7827fi
7828ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7829if test -n "$ac_ct_NMEDIT"; then
7830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7831$as_echo "$ac_ct_NMEDIT" >&6; }
9c60689e
DWT
7832else
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7834$as_echo "no" >&6; }
7835fi
7836
a243b558
JF
7837 if test "x$ac_ct_NMEDIT" = x; then
7838 NMEDIT=":"
9c60689e 7839 else
a243b558
JF
7840 case $cross_compiling:$ac_tool_warned in
7841yes:)
7842{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7843$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7844ac_tool_warned=yes ;;
7845esac
7846 NMEDIT=$ac_ct_NMEDIT
9c60689e 7847 fi
a243b558
JF
7848else
7849 NMEDIT="$ac_cv_prog_NMEDIT"
9c60689e
DWT
7850fi
7851
a243b558
JF
7852 if test -n "$ac_tool_prefix"; then
7853 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7854set dummy ${ac_tool_prefix}lipo; ac_word=$2
7855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7856$as_echo_n "checking for $ac_word... " >&6; }
7857if ${ac_cv_prog_LIPO+:} false; then :
7858 $as_echo_n "(cached) " >&6
7859else
7860 if test -n "$LIPO"; then
7861 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7862else
7863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7864for as_dir in $PATH
7865do
7866 IFS=$as_save_IFS
7867 test -z "$as_dir" && as_dir=.
7868 for ac_exec_ext in '' $ac_executable_extensions; do
7869 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7870 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7872 break 2
7873 fi
7874done
7875 done
7876IFS=$as_save_IFS
9c60689e 7877
a243b558
JF
7878fi
7879fi
7880LIPO=$ac_cv_prog_LIPO
7881if test -n "$LIPO"; then
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7883$as_echo "$LIPO" >&6; }
7884else
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7886$as_echo "no" >&6; }
7887fi
9c60689e 7888
9c60689e 7889
a243b558
JF
7890fi
7891if test -z "$ac_cv_prog_LIPO"; then
7892 ac_ct_LIPO=$LIPO
7893 # Extract the first word of "lipo", so it can be a program name with args.
7894set dummy lipo; ac_word=$2
7895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7896$as_echo_n "checking for $ac_word... " >&6; }
7897if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9c60689e
DWT
7898 $as_echo_n "(cached) " >&6
7899else
a243b558
JF
7900 if test -n "$ac_ct_LIPO"; then
7901 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7902else
7903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7904for as_dir in $PATH
7905do
7906 IFS=$as_save_IFS
7907 test -z "$as_dir" && as_dir=.
7908 for ac_exec_ext in '' $ac_executable_extensions; do
7909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7910 ac_cv_prog_ac_ct_LIPO="lipo"
7911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7912 break 2
7913 fi
7914done
7915 done
7916IFS=$as_save_IFS
9c60689e
DWT
7917
7918fi
a243b558
JF
7919fi
7920ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7921if test -n "$ac_ct_LIPO"; then
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7923$as_echo "$ac_ct_LIPO" >&6; }
9c60689e 7924else
a243b558
JF
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7926$as_echo "no" >&6; }
9c60689e
DWT
7927fi
7928
a243b558
JF
7929 if test "x$ac_ct_LIPO" = x; then
7930 LIPO=":"
7931 else
7932 case $cross_compiling:$ac_tool_warned in
7933yes:)
7934{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7935$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7936ac_tool_warned=yes ;;
7937esac
7938 LIPO=$ac_ct_LIPO
7939 fi
7940else
7941 LIPO="$ac_cv_prog_LIPO"
9c60689e
DWT
7942fi
7943
a243b558
JF
7944 if test -n "$ac_tool_prefix"; then
7945 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7946set dummy ${ac_tool_prefix}otool; ac_word=$2
7947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7948$as_echo_n "checking for $ac_word... " >&6; }
7949if ${ac_cv_prog_OTOOL+:} false; then :
7950 $as_echo_n "(cached) " >&6
7951else
7952 if test -n "$OTOOL"; then
7953 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7954else
7955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7956for as_dir in $PATH
7957do
7958 IFS=$as_save_IFS
7959 test -z "$as_dir" && as_dir=.
7960 for ac_exec_ext in '' $ac_executable_extensions; do
7961 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7962 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7964 break 2
7965 fi
7966done
7967 done
7968IFS=$as_save_IFS
9c60689e 7969
a243b558
JF
7970fi
7971fi
7972OTOOL=$ac_cv_prog_OTOOL
7973if test -n "$OTOOL"; then
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7975$as_echo "$OTOOL" >&6; }
7976else
7977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7978$as_echo "no" >&6; }
7979fi
9c60689e
DWT
7980
7981
a243b558
JF
7982fi
7983if test -z "$ac_cv_prog_OTOOL"; then
7984 ac_ct_OTOOL=$OTOOL
7985 # Extract the first word of "otool", so it can be a program name with args.
7986set dummy otool; ac_word=$2
7987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7988$as_echo_n "checking for $ac_word... " >&6; }
7989if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7990 $as_echo_n "(cached) " >&6
7991else
7992 if test -n "$ac_ct_OTOOL"; then
7993 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7994else
7995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7996for as_dir in $PATH
7997do
7998 IFS=$as_save_IFS
7999 test -z "$as_dir" && as_dir=.
8000 for ac_exec_ext in '' $ac_executable_extensions; do
8001 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8002 ac_cv_prog_ac_ct_OTOOL="otool"
8003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8004 break 2
8005 fi
8006done
8007 done
8008IFS=$as_save_IFS
9c60689e 8009
a243b558
JF
8010fi
8011fi
8012ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8013if test -n "$ac_ct_OTOOL"; then
8014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8015$as_echo "$ac_ct_OTOOL" >&6; }
8016else
8017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8018$as_echo "no" >&6; }
8019fi
9c60689e 8020
a243b558
JF
8021 if test "x$ac_ct_OTOOL" = x; then
8022 OTOOL=":"
8023 else
8024 case $cross_compiling:$ac_tool_warned in
8025yes:)
8026{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8027$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8028ac_tool_warned=yes ;;
8029esac
8030 OTOOL=$ac_ct_OTOOL
8031 fi
8032else
8033 OTOOL="$ac_cv_prog_OTOOL"
8034fi
9c60689e 8035
a243b558
JF
8036 if test -n "$ac_tool_prefix"; then
8037 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8038set dummy ${ac_tool_prefix}otool64; ac_word=$2
8039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8040$as_echo_n "checking for $ac_word... " >&6; }
8041if ${ac_cv_prog_OTOOL64+:} false; then :
8042 $as_echo_n "(cached) " >&6
8043else
8044 if test -n "$OTOOL64"; then
8045 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8046else
8047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8048for as_dir in $PATH
8049do
8050 IFS=$as_save_IFS
8051 test -z "$as_dir" && as_dir=.
8052 for ac_exec_ext in '' $ac_executable_extensions; do
8053 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8054 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8056 break 2
8057 fi
8058done
8059 done
8060IFS=$as_save_IFS
9c60689e 8061
a243b558
JF
8062fi
8063fi
8064OTOOL64=$ac_cv_prog_OTOOL64
8065if test -n "$OTOOL64"; then
8066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8067$as_echo "$OTOOL64" >&6; }
8068else
8069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8070$as_echo "no" >&6; }
8071fi
9c60689e 8072
9c60689e 8073
a243b558
JF
8074fi
8075if test -z "$ac_cv_prog_OTOOL64"; then
8076 ac_ct_OTOOL64=$OTOOL64
8077 # Extract the first word of "otool64", so it can be a program name with args.
8078set dummy otool64; ac_word=$2
8079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8080$as_echo_n "checking for $ac_word... " >&6; }
8081if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8082 $as_echo_n "(cached) " >&6
8083else
8084 if test -n "$ac_ct_OTOOL64"; then
8085 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8086else
8087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8088for as_dir in $PATH
8089do
8090 IFS=$as_save_IFS
8091 test -z "$as_dir" && as_dir=.
8092 for ac_exec_ext in '' $ac_executable_extensions; do
8093 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8094 ac_cv_prog_ac_ct_OTOOL64="otool64"
8095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8096 break 2
8097 fi
8098done
8099 done
8100IFS=$as_save_IFS
9c60689e 8101
a243b558
JF
8102fi
8103fi
8104ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8105if test -n "$ac_ct_OTOOL64"; then
8106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8107$as_echo "$ac_ct_OTOOL64" >&6; }
8108else
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8110$as_echo "no" >&6; }
8111fi
9c60689e 8112
a243b558
JF
8113 if test "x$ac_ct_OTOOL64" = x; then
8114 OTOOL64=":"
8115 else
8116 case $cross_compiling:$ac_tool_warned in
8117yes:)
8118{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8119$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8120ac_tool_warned=yes ;;
8121esac
8122 OTOOL64=$ac_ct_OTOOL64
8123 fi
8124else
8125 OTOOL64="$ac_cv_prog_OTOOL64"
8126fi
ee134472 8127
9c60689e 8128
9c60689e 8129
9c60689e 8130
9c60689e 8131
9c60689e 8132
ee134472 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
9c60689e 8150
9c60689e 8151
a243b558
JF
8152
8153
8154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8155$as_echo_n "checking for -single_module linker flag... " >&6; }
8156if ${lt_cv_apple_cc_single_mod+:} false; then :
ee134472
JF
8157 $as_echo_n "(cached) " >&6
8158else
a243b558
JF
8159 lt_cv_apple_cc_single_mod=no
8160 if test -z "${LT_MULTI_MODULE}"; then
8161 # By default we will add the -single_module flag. You can override
8162 # by either setting the environment variable LT_MULTI_MODULE
8163 # non-empty at configure time, or by adding -multi_module to the
8164 # link flags.
8165 rm -rf libconftest.dylib*
8166 echo "int foo(void){return 1;}" > conftest.c
8167 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8168-dynamiclib -Wl,-single_module conftest.c" >&5
8169 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8170 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8171 _lt_result=$?
8172 # If there is a non-empty error log, and "single_module"
8173 # appears in it, assume the flag caused a linker warning
8174 if test -s conftest.err && $GREP single_module conftest.err; then
8175 cat conftest.err >&5
8176 # Otherwise, if the output was created with a 0 exit code from
8177 # the compiler, it worked.
8178 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8179 lt_cv_apple_cc_single_mod=yes
8180 else
8181 cat conftest.err >&5
8182 fi
8183 rm -rf libconftest.dylib*
8184 rm -f conftest.*
8185 fi
ee134472 8186fi
a243b558
JF
8187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8188$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9c60689e 8189
a243b558
JF
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8191$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8192if ${lt_cv_ld_exported_symbols_list+:} false; then :
9c60689e
DWT
8193 $as_echo_n "(cached) " >&6
8194else
a243b558
JF
8195 lt_cv_ld_exported_symbols_list=no
8196 save_LDFLAGS=$LDFLAGS
8197 echo "_main" > conftest.sym
8198 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8200/* end confdefs.h. */
9c60689e 8201
a243b558
JF
8202int
8203main ()
8204{
9c60689e 8205
a243b558
JF
8206 ;
8207 return 0;
8208}
8209_ACEOF
8210if ac_fn_c_try_link "$LINENO"; then :
8211 lt_cv_ld_exported_symbols_list=yes
9c60689e 8212else
a243b558 8213 lt_cv_ld_exported_symbols_list=no
9c60689e 8214fi
a243b558
JF
8215rm -f core conftest.err conftest.$ac_objext \
8216 conftest$ac_exeext conftest.$ac_ext
8217 LDFLAGS="$save_LDFLAGS"
9c60689e
DWT
8218
8219fi
a243b558
JF
8220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8221$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9c60689e 8222
a243b558
JF
8223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8224$as_echo_n "checking for -force_load linker flag... " >&6; }
8225if ${lt_cv_ld_force_load+:} false; then :
9c60689e
DWT
8226 $as_echo_n "(cached) " >&6
8227else
a243b558
JF
8228 lt_cv_ld_force_load=no
8229 cat > conftest.c << _LT_EOF
8230int forced_loaded() { return 2;}
8231_LT_EOF
8232 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8233 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8234 echo "$AR cru libconftest.a conftest.o" >&5
8235 $AR cru libconftest.a conftest.o 2>&5
8236 echo "$RANLIB libconftest.a" >&5
8237 $RANLIB libconftest.a 2>&5
8238 cat > conftest.c << _LT_EOF
8239int main() { return 0;}
8240_LT_EOF
8241 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8242 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8243 _lt_result=$?
8244 if test -s conftest.err && $GREP force_load conftest.err; then
8245 cat conftest.err >&5
8246 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8247 lt_cv_ld_force_load=yes
8248 else
8249 cat conftest.err >&5
8250 fi
8251 rm -f conftest.err libconftest.a conftest conftest.c
8252 rm -rf conftest.dSYM
9c60689e
DWT
8253
8254fi
a243b558
JF
8255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8256$as_echo "$lt_cv_ld_force_load" >&6; }
8257 case $host_os in
8258 rhapsody* | darwin1.[012])
8259 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8260 darwin1.*)
8261 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8262 darwin*) # darwin 5.x on
8263 # if running on 10.5 or later, the deployment target defaults
8264 # to the OS version, if on x86, and 10.4, the deployment
8265 # target defaults to 10.4. Don't you love it?
8266 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8267 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8268 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8269 10.[012]*)
8270 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8271 10.*)
8272 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8273 esac
8274 ;;
8275 esac
8276 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8277 _lt_dar_single_mod='$single_module'
8278 fi
8279 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8280 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8281 else
8282 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8283 fi
8284 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8285 _lt_dsymutil='~$DSYMUTIL $lib || :'
8286 else
8287 _lt_dsymutil=
8288 fi
8289 ;;
8290 esac
9c60689e 8291
a243b558
JF
8292ac_ext=c
8293ac_cpp='$CPP $CPPFLAGS'
8294ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8295ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8296ac_compiler_gnu=$ac_cv_c_compiler_gnu
8297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8298$as_echo_n "checking how to run the C preprocessor... " >&6; }
8299# On Suns, sometimes $CPP names a directory.
8300if test -n "$CPP" && test -d "$CPP"; then
8301 CPP=
9c60689e 8302fi
a243b558
JF
8303if test -z "$CPP"; then
8304 if ${ac_cv_prog_CPP+:} false; then :
8305 $as_echo_n "(cached) " >&6
8306else
8307 # Double quotes because CPP needs to be expanded
8308 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8309 do
8310 ac_preproc_ok=false
8311for ac_c_preproc_warn_flag in '' yes
8312do
8313 # Use a header file that comes with gcc, so configuring glibc
8314 # with a fresh cross-compiler works.
8315 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8316 # <limits.h> exists even on freestanding compilers.
8317 # On the NeXT, cc -E runs the code through the compiler's parser,
8318 # not just through cpp. "Syntax error" is here to catch this case.
8319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8320/* end confdefs.h. */
8321#ifdef __STDC__
8322# include <limits.h>
8323#else
8324# include <assert.h>
8325#endif
8326 Syntax error
8327_ACEOF
8328if ac_fn_c_try_cpp "$LINENO"; then :
9c60689e 8329
a243b558
JF
8330else
8331 # Broken: fails on valid input.
8332continue
8333fi
8334rm -f conftest.err conftest.i conftest.$ac_ext
9c60689e 8335
a243b558
JF
8336 # OK, works on sane cases. Now check whether nonexistent headers
8337 # can be detected and how.
8338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8339/* end confdefs.h. */
8340#include <ac_nonexistent.h>
8341_ACEOF
8342if ac_fn_c_try_cpp "$LINENO"; then :
8343 # Broken: success on invalid input.
8344continue
8345else
8346 # Passes both tests.
8347ac_preproc_ok=:
8348break
8349fi
8350rm -f conftest.err conftest.i conftest.$ac_ext
9c60689e 8351
a243b558
JF
8352done
8353# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8354rm -f conftest.i conftest.err conftest.$ac_ext
8355if $ac_preproc_ok; then :
8356 break
8357fi
9c60689e 8358
a243b558
JF
8359 done
8360 ac_cv_prog_CPP=$CPP
9c60689e 8361
a243b558
JF
8362fi
8363 CPP=$ac_cv_prog_CPP
9c60689e 8364else
a243b558
JF
8365 ac_cv_prog_CPP=$CPP
8366fi
8367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8368$as_echo "$CPP" >&6; }
8369ac_preproc_ok=false
8370for ac_c_preproc_warn_flag in '' yes
8371do
8372 # Use a header file that comes with gcc, so configuring glibc
8373 # with a fresh cross-compiler works.
8374 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8375 # <limits.h> exists even on freestanding compilers.
8376 # On the NeXT, cc -E runs the code through the compiler's parser,
8377 # not just through cpp. "Syntax error" is here to catch this case.
8378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8379/* end confdefs.h. */
8380#ifdef __STDC__
8381# include <limits.h>
8382#else
8383# include <assert.h>
8384#endif
8385 Syntax error
8386_ACEOF
8387if ac_fn_c_try_cpp "$LINENO"; then :
9c60689e 8388
a243b558
JF
8389else
8390 # Broken: fails on valid input.
8391continue
9c60689e 8392fi
a243b558 8393rm -f conftest.err conftest.i conftest.$ac_ext
9c60689e 8394
a243b558
JF
8395 # OK, works on sane cases. Now check whether nonexistent headers
8396 # can be detected and how.
8397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8398/* end confdefs.h. */
8399#include <ac_nonexistent.h>
8400_ACEOF
8401if ac_fn_c_try_cpp "$LINENO"; then :
8402 # Broken: success on invalid input.
8403continue
8404else
8405 # Passes both tests.
8406ac_preproc_ok=:
8407break
8408fi
8409rm -f conftest.err conftest.i conftest.$ac_ext
9c60689e 8410
a243b558
JF
8411done
8412# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8413rm -f conftest.i conftest.err conftest.$ac_ext
8414if $ac_preproc_ok; then :
9c60689e 8415
a243b558
JF
8416else
8417 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8418$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8419as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8420See \`config.log' for more details" "$LINENO" 5; }
8421fi
9c60689e 8422
a243b558
JF
8423ac_ext=c
8424ac_cpp='$CPP $CPPFLAGS'
8425ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8426ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8427ac_compiler_gnu=$ac_cv_c_compiler_gnu
9c60689e
DWT
8428
8429
a243b558
JF
8430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8431$as_echo_n "checking for ANSI C header files... " >&6; }
8432if ${ac_cv_header_stdc+:} false; then :
9c60689e
DWT
8433 $as_echo_n "(cached) " >&6
8434else
a243b558
JF
8435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8436/* end confdefs.h. */
8437#include <stdlib.h>
8438#include <stdarg.h>
8439#include <string.h>
8440#include <float.h>
9c60689e 8441
a243b558
JF
8442int
8443main ()
8444{
9c60689e 8445
a243b558
JF
8446 ;
8447 return 0;
8448}
8449_ACEOF
8450if ac_fn_c_try_compile "$LINENO"; then :
8451 ac_cv_header_stdc=yes
8452else
8453 ac_cv_header_stdc=no
9c60689e 8454fi
a243b558
JF
8455rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8456
8457if test $ac_cv_header_stdc = yes; then
8458 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8460/* end confdefs.h. */
8461#include <string.h>
9c60689e 8462
a243b558
JF
8463_ACEOF
8464if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8465 $EGREP "memchr" >/dev/null 2>&1; then :
9c60689e 8466
a243b558
JF
8467else
8468 ac_cv_header_stdc=no
8469fi
8470rm -f conftest*
9c60689e 8471
a243b558
JF
8472fi
8473
8474if test $ac_cv_header_stdc = yes; then
8475 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8477/* end confdefs.h. */
8478#include <stdlib.h>
8479
8480_ACEOF
8481if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8482 $EGREP "free" >/dev/null 2>&1; then :
9c60689e 8483
9c60689e 8484else
a243b558 8485 ac_cv_header_stdc=no
9c60689e 8486fi
a243b558 8487rm -f conftest*
9c60689e 8488
a243b558 8489fi
9c60689e 8490
a243b558
JF
8491if test $ac_cv_header_stdc = yes; then
8492 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8493 if test "$cross_compiling" = yes; then :
8494 :
8495else
8496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8497/* end confdefs.h. */
8498#include <ctype.h>
8499#include <stdlib.h>
8500#if ((' ' & 0x0FF) == 0x020)
8501# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8502# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8503#else
8504# define ISLOWER(c) \
8505 (('a' <= (c) && (c) <= 'i') \
8506 || ('j' <= (c) && (c) <= 'r') \
8507 || ('s' <= (c) && (c) <= 'z'))
8508# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8509#endif
9c60689e 8510
a243b558
JF
8511#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8512int
8513main ()
8514{
8515 int i;
8516 for (i = 0; i < 256; i++)
8517 if (XOR (islower (i), ISLOWER (i))
8518 || toupper (i) != TOUPPER (i))
8519 return 2;
8520 return 0;
8521}
8522_ACEOF
8523if ac_fn_c_try_run "$LINENO"; then :
9c60689e 8524
a243b558
JF
8525else
8526 ac_cv_header_stdc=no
8527fi
8528rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8529 conftest.$ac_objext conftest.beam conftest.$ac_ext
8530fi
9c60689e 8531
a243b558
JF
8532fi
8533fi
8534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8535$as_echo "$ac_cv_header_stdc" >&6; }
8536if test $ac_cv_header_stdc = yes; then
9c60689e 8537
a243b558 8538$as_echo "#define STDC_HEADERS 1" >>confdefs.h
9c60689e 8539
a243b558 8540fi
9c60689e 8541
a243b558
JF
8542# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8543for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8544 inttypes.h stdint.h unistd.h
8545do :
8546 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8547ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8548"
8549if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8550 cat >>confdefs.h <<_ACEOF
8551#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8552_ACEOF
9c60689e 8553
a243b558 8554fi
ee134472 8555
a243b558 8556done
ee134472 8557
9c60689e 8558
a243b558
JF
8559for ac_header in dlfcn.h
8560do :
8561 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8562"
8563if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8564 cat >>confdefs.h <<_ACEOF
8565#define HAVE_DLFCN_H 1
8566_ACEOF
9c60689e 8567
a243b558 8568fi
9c60689e 8569
a243b558 8570done
9c60689e 8571
9c60689e 8572
9c60689e 8573
9c60689e 8574
a243b558
JF
8575func_stripname_cnf ()
8576{
8577 case ${2} in
8578 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
8579 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8580 esac
8581} # func_stripname_cnf
9c60689e 8582
9c60689e 8583
ee134472 8584
a243b558
JF
8585
8586
8587# Set options
8588# Check whether --enable-static was given.
8589if test "${enable_static+set}" = set; then :
8590 enableval=$enable_static; p=${PACKAGE-default}
8591 case $enableval in
8592 yes) enable_static=yes ;;
8593 no) enable_static=no ;;
8594 *)
8595 enable_static=no
8596 # Look at the argument we got. We use all the common list separators.
8597 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8598 for pkg in $enableval; do
8599 IFS="$lt_save_ifs"
8600 if test "X$pkg" = "X$p"; then
8601 enable_static=yes
8602 fi
8603 done
8604 IFS="$lt_save_ifs"
9c60689e 8605 ;;
a243b558
JF
8606 esac
8607else
8608 enable_static=no
8609fi
9c60689e 8610
9c60689e 8611
9c60689e 8612
9c60689e 8613
9c60689e 8614
9c60689e 8615
9c60689e 8616
9c60689e 8617
9c60689e 8618
9c60689e 8619
a243b558 8620 enable_dlopen=no
9c60689e 8621
9c60689e 8622
a243b558
JF
8623 enable_win32_dll=no
8624
8625
8626 # Check whether --enable-shared was given.
8627if test "${enable_shared+set}" = set; then :
8628 enableval=$enable_shared; p=${PACKAGE-default}
8629 case $enableval in
8630 yes) enable_shared=yes ;;
8631 no) enable_shared=no ;;
9c60689e 8632 *)
a243b558
JF
8633 enable_shared=no
8634 # Look at the argument we got. We use all the common list separators.
8635 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8636 for pkg in $enableval; do
8637 IFS="$lt_save_ifs"
8638 if test "X$pkg" = "X$p"; then
8639 enable_shared=yes
8640 fi
8641 done
8642 IFS="$lt_save_ifs"
9c60689e
DWT
8643 ;;
8644 esac
a243b558
JF
8645else
8646 enable_shared=yes
8647fi
9c60689e 8648
9c60689e 8649
9c60689e 8650
9c60689e 8651
9c60689e 8652
9c60689e 8653
9c60689e 8654
9c60689e 8655
9c60689e 8656
9c60689e 8657
9c60689e 8658
a243b558
JF
8659# Check whether --with-pic was given.
8660if test "${with_pic+set}" = set; then :
8661 withval=$with_pic; lt_p=${PACKAGE-default}
8662 case $withval in
8663 yes|no) pic_mode=$withval ;;
8664 *)
8665 pic_mode=default
8666 # Look at the argument we got. We use all the common list separators.
8667 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8668 for lt_pkg in $withval; do
8669 IFS="$lt_save_ifs"
8670 if test "X$lt_pkg" = "X$lt_p"; then
8671 pic_mode=yes
8672 fi
8673 done
8674 IFS="$lt_save_ifs"
8675 ;;
8676 esac
8677else
8678 pic_mode=default
9c60689e 8679fi
ee134472 8680
ee134472 8681
a243b558 8682test -z "$pic_mode" && pic_mode=default
9c60689e 8683
9c60689e 8684
9c60689e 8685
9c60689e 8686
ee134472 8687
ee134472 8688
9c60689e 8689
a243b558
JF
8690 # Check whether --enable-fast-install was given.
8691if test "${enable_fast_install+set}" = set; then :
8692 enableval=$enable_fast_install; p=${PACKAGE-default}
8693 case $enableval in
8694 yes) enable_fast_install=yes ;;
8695 no) enable_fast_install=no ;;
8696 *)
8697 enable_fast_install=no
8698 # Look at the argument we got. We use all the common list separators.
8699 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8700 for pkg in $enableval; do
8701 IFS="$lt_save_ifs"
8702 if test "X$pkg" = "X$p"; then
8703 enable_fast_install=yes
9c60689e 8704 fi
a243b558
JF
8705 done
8706 IFS="$lt_save_ifs"
9c60689e 8707 ;;
a243b558
JF
8708 esac
8709else
8710 enable_fast_install=yes
8711fi
9c60689e 8712
9c60689e 8713
9c60689e 8714
9c60689e 8715
9c60689e
DWT
8716
8717
53ba6704 8718
9c60689e 8719
9c60689e 8720
9c60689e 8721
9c60689e 8722
a243b558
JF
8723# This can be used to rebuild libtool when needed
8724LIBTOOL_DEPS="$ltmain"
9c60689e 8725
a243b558
JF
8726# Always use our own libtool.
8727LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9c60689e 8728
9c60689e 8729
9c60689e 8730
9c60689e 8731
9c60689e 8732
ee134472 8733
ee134472 8734
ee134472 8735
ee134472 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
9c60689e 8756
9c60689e 8757
a243b558 8758test -z "$LN_S" && LN_S="ln -s"
9c60689e
DWT
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771
8772
a243b558
JF
8773if test -n "${ZSH_VERSION+set}" ; then
8774 setopt NO_GLOB_SUBST
8775fi
9c60689e 8776
a243b558
JF
8777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8778$as_echo_n "checking for objdir... " >&6; }
8779if ${lt_cv_objdir+:} false; then :
ee134472
JF
8780 $as_echo_n "(cached) " >&6
8781else
a243b558
JF
8782 rm -f .libs 2>/dev/null
8783mkdir .libs 2>/dev/null
8784if test -d .libs; then
8785 lt_cv_objdir=.libs
8786else
8787 # MS-DOS does not allow filenames that begin with a dot.
8788 lt_cv_objdir=_libs
ee134472 8789fi
a243b558
JF
8790rmdir .libs 2>/dev/null
8791fi
8792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8793$as_echo "$lt_cv_objdir" >&6; }
8794objdir=$lt_cv_objdir
9c60689e
DWT
8795
8796
8797
8798
8799
a243b558
JF
8800cat >>confdefs.h <<_ACEOF
8801#define LT_OBJDIR "$lt_cv_objdir/"
8802_ACEOF
9c60689e
DWT
8803
8804
8805
8806
a243b558
JF
8807case $host_os in
8808aix3*)
8809 # AIX sometimes has problems with the GCC collect2 program. For some
8810 # reason, if we set the COLLECT_NAMES environment variable, the problems
8811 # vanish in a puff of smoke.
8812 if test "X${COLLECT_NAMES+set}" != Xset; then
8813 COLLECT_NAMES=
8814 export COLLECT_NAMES
8815 fi
8816 ;;
8817esac
9c60689e 8818
a243b558
JF
8819# Global variables:
8820ofile=libtool
8821can_build_shared=yes
9c60689e 8822
a243b558
JF
8823# All known linkers require a `.a' archive for static linking (except MSVC,
8824# which needs '.lib').
8825libext=a
9c60689e 8826
a243b558 8827with_gnu_ld="$lt_cv_prog_gnu_ld"
9c60689e 8828
a243b558
JF
8829old_CC="$CC"
8830old_CFLAGS="$CFLAGS"
9c60689e 8831
a243b558
JF
8832# Set sane defaults for various variables
8833test -z "$CC" && CC=cc
8834test -z "$LTCC" && LTCC=$CC
8835test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8836test -z "$LD" && LD=ld
8837test -z "$ac_objext" && ac_objext=o
9c60689e 8838
a243b558
JF
8839for cc_temp in $compiler""; do
8840 case $cc_temp in
8841 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8842 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8843 \-*) ;;
8844 *) break;;
8845 esac
8846done
8847cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9c60689e
DWT
8848
8849
a243b558
JF
8850# Only perform the check for file, if the check method requires it
8851test -z "$MAGIC_CMD" && MAGIC_CMD=file
8852case $deplibs_check_method in
8853file_magic*)
8854 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8856$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8857if ${lt_cv_path_MAGIC_CMD+:} false; then :
8858 $as_echo_n "(cached) " >&6
8859else
8860 case $MAGIC_CMD in
8861[\\/*] | ?:[\\/]*)
8862 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8863 ;;
8864*)
8865 lt_save_MAGIC_CMD="$MAGIC_CMD"
8866 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8867 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8868 for ac_dir in $ac_dummy; do
8869 IFS="$lt_save_ifs"
8870 test -z "$ac_dir" && ac_dir=.
8871 if test -f $ac_dir/${ac_tool_prefix}file; then
8872 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8873 if test -n "$file_magic_test_file"; then
8874 case $deplibs_check_method in
8875 "file_magic "*)
8876 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8877 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8878 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8879 $EGREP "$file_magic_regex" > /dev/null; then
8880 :
8881 else
8882 cat <<_LT_EOF 1>&2
9c60689e 8883
a243b558
JF
8884*** Warning: the command libtool uses to detect shared libraries,
8885*** $file_magic_cmd, produces output that libtool cannot recognize.
8886*** The result is that libtool may fail to recognize shared libraries
8887*** as such. This will affect the creation of libtool libraries that
8888*** depend on shared libraries, but programs linked with such libtool
8889*** libraries will work regardless of this problem. Nevertheless, you
8890*** may want to report the problem to your system manager and/or to
8891*** bug-libtool@gnu.org
9c60689e 8892
a243b558
JF
8893_LT_EOF
8894 fi ;;
8895 esac
8896 fi
8897 break
8898 fi
8899 done
8900 IFS="$lt_save_ifs"
8901 MAGIC_CMD="$lt_save_MAGIC_CMD"
8902 ;;
8903esac
8904fi
9c60689e 8905
a243b558
JF
8906MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8907if test -n "$MAGIC_CMD"; then
8908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8909$as_echo "$MAGIC_CMD" >&6; }
8910else
8911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8912$as_echo "no" >&6; }
8913fi
9c60689e
DWT
8914
8915
8916
8917
8918
a243b558
JF
8919if test -z "$lt_cv_path_MAGIC_CMD"; then
8920 if test -n "$ac_tool_prefix"; then
8921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8922$as_echo_n "checking for file... " >&6; }
8923if ${lt_cv_path_MAGIC_CMD+:} false; then :
8924 $as_echo_n "(cached) " >&6
8925else
8926 case $MAGIC_CMD in
8927[\\/*] | ?:[\\/]*)
8928 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8929 ;;
8930*)
8931 lt_save_MAGIC_CMD="$MAGIC_CMD"
8932 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8933 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8934 for ac_dir in $ac_dummy; do
8935 IFS="$lt_save_ifs"
8936 test -z "$ac_dir" && ac_dir=.
8937 if test -f $ac_dir/file; then
8938 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8939 if test -n "$file_magic_test_file"; then
8940 case $deplibs_check_method in
8941 "file_magic "*)
8942 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8943 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8944 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8945 $EGREP "$file_magic_regex" > /dev/null; then
8946 :
8947 else
8948 cat <<_LT_EOF 1>&2
9c60689e 8949
a243b558
JF
8950*** Warning: the command libtool uses to detect shared libraries,
8951*** $file_magic_cmd, produces output that libtool cannot recognize.
8952*** The result is that libtool may fail to recognize shared libraries
8953*** as such. This will affect the creation of libtool libraries that
8954*** depend on shared libraries, but programs linked with such libtool
8955*** libraries will work regardless of this problem. Nevertheless, you
8956*** may want to report the problem to your system manager and/or to
8957*** bug-libtool@gnu.org
9c60689e 8958
a243b558
JF
8959_LT_EOF
8960 fi ;;
8961 esac
8962 fi
8963 break
8964 fi
8965 done
8966 IFS="$lt_save_ifs"
8967 MAGIC_CMD="$lt_save_MAGIC_CMD"
8968 ;;
8969esac
8970fi
9c60689e 8971
a243b558
JF
8972MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8973if test -n "$MAGIC_CMD"; then
8974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8975$as_echo "$MAGIC_CMD" >&6; }
8976else
8977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8978$as_echo "no" >&6; }
8979fi
9c60689e
DWT
8980
8981
a243b558
JF
8982 else
8983 MAGIC_CMD=:
8984 fi
8985fi
9c60689e 8986
a243b558
JF
8987 fi
8988 ;;
8989esac
9c60689e 8990
a243b558 8991# Use C for the default configuration in the libtool script
9c60689e 8992
a243b558
JF
8993lt_save_CC="$CC"
8994ac_ext=c
8995ac_cpp='$CPP $CPPFLAGS'
8996ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8997ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8998ac_compiler_gnu=$ac_cv_c_compiler_gnu
9c60689e
DWT
8999
9000
a243b558
JF
9001# Source file extension for C test sources.
9002ac_ext=c
9c60689e 9003
a243b558
JF
9004# Object file extension for compiled C test sources.
9005objext=o
9006objext=$objext
9c60689e 9007
a243b558
JF
9008# Code to be used in simple compile tests
9009lt_simple_compile_test_code="int some_variable = 0;"
9c60689e 9010
a243b558
JF
9011# Code to be used in simple link tests
9012lt_simple_link_test_code='int main(){return(0);}'
9c60689e
DWT
9013
9014
9015
9016
9017
9018
9019
a243b558
JF
9020# If no C compiler was specified, use CC.
9021LTCC=${LTCC-"$CC"}
9c60689e 9022
a243b558
JF
9023# If no C compiler flags were specified, use CFLAGS.
9024LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9c60689e 9025
a243b558
JF
9026# Allow CC to be a program name with arguments.
9027compiler=$CC
9c60689e 9028
a243b558
JF
9029# Save the default compiler, since it gets overwritten when the other
9030# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9031compiler_DEFAULT=$CC
9c60689e 9032
a243b558
JF
9033# save warnings/boilerplate of simple test code
9034ac_outfile=conftest.$ac_objext
9035echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9036eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9037_lt_compiler_boilerplate=`cat conftest.err`
9038$RM -r conftest*
9c60689e 9039
a243b558
JF
9040ac_outfile=conftest.$ac_objext
9041echo "$lt_simple_link_test_code" >conftest.$ac_ext
9042eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9043_lt_linker_boilerplate=`cat conftest.err`
9044$RM -r conftest*
9c60689e
DWT
9045
9046
a243b558
JF
9047## CAVEAT EMPTOR:
9048## There is no encapsulation within the following macros, do not change
9049## the running order or otherwise move them around unless you know exactly
9050## what you are doing...
9051if test -n "$compiler"; then
9c60689e 9052
a243b558 9053lt_prog_compiler_no_builtin_flag=
9c60689e 9054
a243b558
JF
9055if test "$GCC" = yes; then
9056 case $cc_basename in
9057 nvcc*)
9058 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9059 *)
9060 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9061 esac
9c60689e 9062
a243b558
JF
9063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9064$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9065if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9066 $as_echo_n "(cached) " >&6
9067else
9068 lt_cv_prog_compiler_rtti_exceptions=no
9069 ac_outfile=conftest.$ac_objext
9070 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9071 lt_compiler_flag="-fno-rtti -fno-exceptions"
9072 # Insert the option either (1) after the last *FLAGS variable, or
9073 # (2) before a word containing "conftest.", or (3) at the end.
9074 # Note that $ac_compile itself does not contain backslashes and begins
9075 # with a dollar sign (not a hyphen), so the echo should work correctly.
9076 # The option is referenced via a variable to avoid confusing sed.
9077 lt_compile=`echo "$ac_compile" | $SED \
9078 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9079 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9080 -e 's:$: $lt_compiler_flag:'`
9081 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9082 (eval "$lt_compile" 2>conftest.err)
9083 ac_status=$?
9084 cat conftest.err >&5
9085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9086 if (exit $ac_status) && test -s "$ac_outfile"; then
9087 # The compiler can only warn and ignore the option if not recognized
9088 # So say no if there are warnings other than the usual output.
9089 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9090 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9091 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9092 lt_cv_prog_compiler_rtti_exceptions=yes
9093 fi
9094 fi
9095 $RM -r conftest*
9c60689e 9096
a243b558
JF
9097fi
9098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9099$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9c60689e 9100
a243b558
JF
9101if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9102 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9103else
9104 :
9105fi
9c60689e 9106
a243b558 9107fi
9c60689e
DWT
9108
9109
9110
9111
9112
9113
a243b558
JF
9114 lt_prog_compiler_wl=
9115lt_prog_compiler_pic=
9116lt_prog_compiler_static=
9c60689e
DWT
9117
9118
a243b558
JF
9119 if test "$GCC" = yes; then
9120 lt_prog_compiler_wl='-Wl,'
9121 lt_prog_compiler_static='-static'
9c60689e 9122
a243b558
JF
9123 case $host_os in
9124 aix*)
9125 # All AIX code is PIC.
9126 if test "$host_cpu" = ia64; then
9127 # AIX 5 now supports IA64 processor
9128 lt_prog_compiler_static='-Bstatic'
9129 fi
9130 ;;
9c60689e 9131
a243b558
JF
9132 amigaos*)
9133 case $host_cpu in
9134 powerpc)
9135 # see comment about AmigaOS4 .so support
9136 lt_prog_compiler_pic='-fPIC'
9137 ;;
9138 m68k)
9139 # FIXME: we need at least 68020 code to build shared libraries, but
9140 # adding the `-m68020' flag to GCC prevents building anything better,
9141 # like `-m68040'.
9142 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9143 ;;
9144 esac
9145 ;;
9c60689e 9146
a243b558
JF
9147 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9148 # PIC is the default for these OSes.
9149 ;;
9c60689e 9150
a243b558
JF
9151 mingw* | cygwin* | pw32* | os2* | cegcc*)
9152 # This hack is so that the source file can tell whether it is being
9153 # built for inclusion in a dll (and should export symbols for example).
9154 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9155 # (--disable-auto-import) libraries
9156 lt_prog_compiler_pic='-DDLL_EXPORT'
9157 ;;
9c60689e 9158
a243b558
JF
9159 darwin* | rhapsody*)
9160 # PIC is the default on this platform
9161 # Common symbols not allowed in MH_DYLIB files
9162 lt_prog_compiler_pic='-fno-common'
9163 ;;
9c60689e 9164
a243b558
JF
9165 haiku*)
9166 # PIC is the default for Haiku.
9167 # The "-static" flag exists, but is broken.
9168 lt_prog_compiler_static=
9169 ;;
9c60689e 9170
a243b558
JF
9171 hpux*)
9172 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9173 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9174 # sets the default TLS model and affects inlining.
9175 case $host_cpu in
9176 hppa*64*)
9177 # +Z the default
9178 ;;
9179 *)
9180 lt_prog_compiler_pic='-fPIC'
9181 ;;
9182 esac
9183 ;;
9c60689e 9184
a243b558
JF
9185 interix[3-9]*)
9186 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9187 # Instead, we relocate shared libraries at runtime.
9188 ;;
9c60689e 9189
a243b558
JF
9190 msdosdjgpp*)
9191 # Just because we use GCC doesn't mean we suddenly get shared libraries
9192 # on systems that don't support them.
9193 lt_prog_compiler_can_build_shared=no
9194 enable_shared=no
9195 ;;
9c60689e 9196
a243b558
JF
9197 *nto* | *qnx*)
9198 # QNX uses GNU C++, but need to define -shared option too, otherwise
9199 # it will coredump.
9200 lt_prog_compiler_pic='-fPIC -shared'
9201 ;;
9c60689e 9202
a243b558
JF
9203 sysv4*MP*)
9204 if test -d /usr/nec; then
9205 lt_prog_compiler_pic=-Kconform_pic
9206 fi
9207 ;;
9c60689e 9208
a243b558
JF
9209 *)
9210 lt_prog_compiler_pic='-fPIC'
9211 ;;
9212 esac
9c60689e 9213
a243b558
JF
9214 case $cc_basename in
9215 nvcc*) # Cuda Compiler Driver 2.2
9216 lt_prog_compiler_wl='-Xlinker '
9217 if test -n "$lt_prog_compiler_pic"; then
9218 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9219 fi
9220 ;;
9221 esac
9222 else
9223 # PORTME Check for flag to pass linker flags through the system compiler.
9224 case $host_os in
9225 aix*)
9226 lt_prog_compiler_wl='-Wl,'
9227 if test "$host_cpu" = ia64; then
9228 # AIX 5 now supports IA64 processor
9229 lt_prog_compiler_static='-Bstatic'
9230 else
9231 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9232 fi
9233 ;;
9c60689e 9234
a243b558
JF
9235 mingw* | cygwin* | pw32* | os2* | cegcc*)
9236 # This hack is so that the source file can tell whether it is being
9237 # built for inclusion in a dll (and should export symbols for example).
9238 lt_prog_compiler_pic='-DDLL_EXPORT'
9239 ;;
9c60689e 9240
a243b558
JF
9241 hpux9* | hpux10* | hpux11*)
9242 lt_prog_compiler_wl='-Wl,'
9243 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9244 # not for PA HP-UX.
9245 case $host_cpu in
9246 hppa*64*|ia64*)
9247 # +Z the default
9248 ;;
9249 *)
9250 lt_prog_compiler_pic='+Z'
9251 ;;
9252 esac
9253 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9254 lt_prog_compiler_static='${wl}-a ${wl}archive'
9255 ;;
9c60689e 9256
a243b558
JF
9257 irix5* | irix6* | nonstopux*)
9258 lt_prog_compiler_wl='-Wl,'
9259 # PIC (with -KPIC) is the default.
9260 lt_prog_compiler_static='-non_shared'
9261 ;;
9c60689e 9262
a243b558
JF
9263 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9264 case $cc_basename in
9265 # old Intel for x86_64 which still supported -KPIC.
9266 ecc*)
9267 lt_prog_compiler_wl='-Wl,'
9268 lt_prog_compiler_pic='-KPIC'
9269 lt_prog_compiler_static='-static'
9270 ;;
9271 # icc used to be incompatible with GCC.
9272 # ICC 10 doesn't accept -KPIC any more.
9273 icc* | ifort*)
9274 lt_prog_compiler_wl='-Wl,'
9275 lt_prog_compiler_pic='-fPIC'
9276 lt_prog_compiler_static='-static'
9277 ;;
9278 # Lahey Fortran 8.1.
9279 lf95*)
9280 lt_prog_compiler_wl='-Wl,'
9281 lt_prog_compiler_pic='--shared'
9282 lt_prog_compiler_static='--static'
9283 ;;
9284 nagfor*)
9285 # NAG Fortran compiler
9286 lt_prog_compiler_wl='-Wl,-Wl,,'
9287 lt_prog_compiler_pic='-PIC'
9288 lt_prog_compiler_static='-Bstatic'
9289 ;;
9290 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9291 # Portland Group compilers (*not* the Pentium gcc compiler,
9292 # which looks to be a dead project)
9293 lt_prog_compiler_wl='-Wl,'
9294 lt_prog_compiler_pic='-fpic'
9295 lt_prog_compiler_static='-Bstatic'
9296 ;;
9297 ccc*)
9298 lt_prog_compiler_wl='-Wl,'
9299 # All Alpha code is PIC.
9300 lt_prog_compiler_static='-non_shared'
9301 ;;
9302 xl* | bgxl* | bgf* | mpixl*)
9303 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9304 lt_prog_compiler_wl='-Wl,'
9305 lt_prog_compiler_pic='-qpic'
9306 lt_prog_compiler_static='-qstaticlink'
9307 ;;
9308 *)
9309 case `$CC -V 2>&1 | sed 5q` in
9310 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9311 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9312 lt_prog_compiler_pic='-KPIC'
9313 lt_prog_compiler_static='-Bstatic'
9314 lt_prog_compiler_wl=''
9315 ;;
9316 *Sun\ F* | *Sun*Fortran*)
9317 lt_prog_compiler_pic='-KPIC'
9318 lt_prog_compiler_static='-Bstatic'
9319 lt_prog_compiler_wl='-Qoption ld '
9320 ;;
9321 *Sun\ C*)
9322 # Sun C 5.9
9323 lt_prog_compiler_pic='-KPIC'
9324 lt_prog_compiler_static='-Bstatic'
9325 lt_prog_compiler_wl='-Wl,'
9326 ;;
9327 *Intel*\ [CF]*Compiler*)
9328 lt_prog_compiler_wl='-Wl,'
9329 lt_prog_compiler_pic='-fPIC'
9330 lt_prog_compiler_static='-static'
9331 ;;
9332 *Portland\ Group*)
9333 lt_prog_compiler_wl='-Wl,'
9334 lt_prog_compiler_pic='-fpic'
9335 lt_prog_compiler_static='-Bstatic'
9336 ;;
9337 esac
9338 ;;
9339 esac
9340 ;;
9c60689e 9341
a243b558
JF
9342 newsos6)
9343 lt_prog_compiler_pic='-KPIC'
9344 lt_prog_compiler_static='-Bstatic'
9345 ;;
9c60689e 9346
a243b558
JF
9347 *nto* | *qnx*)
9348 # QNX uses GNU C++, but need to define -shared option too, otherwise
9349 # it will coredump.
9350 lt_prog_compiler_pic='-fPIC -shared'
9351 ;;
9c60689e 9352
a243b558
JF
9353 osf3* | osf4* | osf5*)
9354 lt_prog_compiler_wl='-Wl,'
9355 # All OSF/1 code is PIC.
9356 lt_prog_compiler_static='-non_shared'
9357 ;;
9c60689e 9358
a243b558
JF
9359 rdos*)
9360 lt_prog_compiler_static='-non_shared'
9361 ;;
9c60689e 9362
a243b558
JF
9363 solaris*)
9364 lt_prog_compiler_pic='-KPIC'
9365 lt_prog_compiler_static='-Bstatic'
9366 case $cc_basename in
9367 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9368 lt_prog_compiler_wl='-Qoption ld ';;
9369 *)
9370 lt_prog_compiler_wl='-Wl,';;
9371 esac
9372 ;;
9c60689e 9373
a243b558
JF
9374 sunos4*)
9375 lt_prog_compiler_wl='-Qoption ld '
9376 lt_prog_compiler_pic='-PIC'
9377 lt_prog_compiler_static='-Bstatic'
9378 ;;
9c60689e 9379
a243b558
JF
9380 sysv4 | sysv4.2uw2* | sysv4.3*)
9381 lt_prog_compiler_wl='-Wl,'
9382 lt_prog_compiler_pic='-KPIC'
9383 lt_prog_compiler_static='-Bstatic'
9384 ;;
9c60689e 9385
a243b558
JF
9386 sysv4*MP*)
9387 if test -d /usr/nec ;then
9388 lt_prog_compiler_pic='-Kconform_pic'
9389 lt_prog_compiler_static='-Bstatic'
9390 fi
9391 ;;
9c60689e 9392
a243b558
JF
9393 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9394 lt_prog_compiler_wl='-Wl,'
9395 lt_prog_compiler_pic='-KPIC'
9396 lt_prog_compiler_static='-Bstatic'
9397 ;;
9c60689e 9398
a243b558
JF
9399 unicos*)
9400 lt_prog_compiler_wl='-Wl,'
9401 lt_prog_compiler_can_build_shared=no
9402 ;;
9c60689e 9403
a243b558
JF
9404 uts4*)
9405 lt_prog_compiler_pic='-pic'
9406 lt_prog_compiler_static='-Bstatic'
9407 ;;
9c60689e 9408
a243b558
JF
9409 *)
9410 lt_prog_compiler_can_build_shared=no
9411 ;;
9412 esac
9413 fi
9c60689e 9414
a243b558
JF
9415case $host_os in
9416 # For platforms which do not support PIC, -DPIC is meaningless:
9417 *djgpp*)
9418 lt_prog_compiler_pic=
9419 ;;
9420 *)
9421 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9422 ;;
9423esac
9c60689e 9424
a243b558
JF
9425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9426$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9427if ${lt_cv_prog_compiler_pic+:} false; then :
9428 $as_echo_n "(cached) " >&6
9429else
9430 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9431fi
9432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9433$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9434lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9c60689e 9435
a243b558
JF
9436#
9437# Check to make sure the PIC flag actually works.
9438#
9439if test -n "$lt_prog_compiler_pic"; then
9440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9441$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9442if ${lt_cv_prog_compiler_pic_works+:} false; then :
9443 $as_echo_n "(cached) " >&6
9444else
9445 lt_cv_prog_compiler_pic_works=no
9446 ac_outfile=conftest.$ac_objext
9447 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9448 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9449 # Insert the option either (1) after the last *FLAGS variable, or
9450 # (2) before a word containing "conftest.", or (3) at the end.
9451 # Note that $ac_compile itself does not contain backslashes and begins
9452 # with a dollar sign (not a hyphen), so the echo should work correctly.
9453 # The option is referenced via a variable to avoid confusing sed.
9454 lt_compile=`echo "$ac_compile" | $SED \
9455 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9456 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9457 -e 's:$: $lt_compiler_flag:'`
9458 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9459 (eval "$lt_compile" 2>conftest.err)
9460 ac_status=$?
9461 cat conftest.err >&5
9462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9463 if (exit $ac_status) && test -s "$ac_outfile"; then
9464 # The compiler can only warn and ignore the option if not recognized
9465 # So say no if there are warnings other than the usual output.
9466 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9467 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9468 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9469 lt_cv_prog_compiler_pic_works=yes
9470 fi
9471 fi
9472 $RM -r conftest*
9c60689e 9473
a243b558
JF
9474fi
9475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9476$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9c60689e 9477
a243b558
JF
9478if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9479 case $lt_prog_compiler_pic in
9480 "" | " "*) ;;
9481 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9482 esac
9483else
9484 lt_prog_compiler_pic=
9485 lt_prog_compiler_can_build_shared=no
9486fi
9c60689e 9487
a243b558 9488fi
9c60689e
DWT
9489
9490
9491
9492
9493
9494
9c60689e
DWT
9495
9496
9497
9498
9499
a243b558
JF
9500#
9501# Check to make sure the static flag actually works.
9502#
9503wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9505$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9506if ${lt_cv_prog_compiler_static_works+:} false; then :
9507 $as_echo_n "(cached) " >&6
9508else
9509 lt_cv_prog_compiler_static_works=no
9510 save_LDFLAGS="$LDFLAGS"
9511 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9512 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9513 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9514 # The linker can only warn and ignore the option if not recognized
9515 # So say no if there are warnings
9516 if test -s conftest.err; then
9517 # Append any errors to the config.log.
9518 cat conftest.err 1>&5
9519 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9520 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9521 if diff conftest.exp conftest.er2 >/dev/null; then
9522 lt_cv_prog_compiler_static_works=yes
9523 fi
9524 else
9525 lt_cv_prog_compiler_static_works=yes
9526 fi
9527 fi
9528 $RM -r conftest*
9529 LDFLAGS="$save_LDFLAGS"
9c60689e 9530
a243b558
JF
9531fi
9532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9533$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9c60689e 9534
a243b558
JF
9535if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9536 :
9c60689e 9537else
a243b558 9538 lt_prog_compiler_static=
9c60689e 9539fi
9c60689e 9540
9c60689e 9541
9c60689e 9542
9c60689e 9543
9c60689e 9544
9c60689e 9545
9c60689e 9546
a243b558
JF
9547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9548$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9549if ${lt_cv_prog_compiler_c_o+:} false; then :
9550 $as_echo_n "(cached) " >&6
9551else
9552 lt_cv_prog_compiler_c_o=no
9553 $RM -r conftest 2>/dev/null
9554 mkdir conftest
9555 cd conftest
9556 mkdir out
9557 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9c60689e 9558
a243b558
JF
9559 lt_compiler_flag="-o out/conftest2.$ac_objext"
9560 # Insert the option either (1) after the last *FLAGS variable, or
9561 # (2) before a word containing "conftest.", or (3) at the end.
9562 # Note that $ac_compile itself does not contain backslashes and begins
9563 # with a dollar sign (not a hyphen), so the echo should work correctly.
9564 lt_compile=`echo "$ac_compile" | $SED \
9565 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9566 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9567 -e 's:$: $lt_compiler_flag:'`
9568 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9569 (eval "$lt_compile" 2>out/conftest.err)
9570 ac_status=$?
9571 cat out/conftest.err >&5
9572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9573 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9574 then
9575 # The compiler can only warn and ignore the option if not recognized
9576 # So say no if there are warnings
9577 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9578 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9579 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9580 lt_cv_prog_compiler_c_o=yes
9581 fi
9582 fi
9583 chmod u+w . 2>&5
9584 $RM -r conftest*
9585 # SGI C++ compiler will create directory out/ii_files/ for
9586 # template instantiation
9587 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9588 $RM out/* && rmdir out
9589 cd ..
9590 $RM -r conftest
9591 $RM -r conftest*
9c60689e 9592
a243b558
JF
9593fi
9594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9595$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9c60689e 9596
ee134472 9597
ee134472 9598
ee134472 9599
ee134472 9600
9c60689e 9601
a243b558
JF
9602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9603$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9604if ${lt_cv_prog_compiler_c_o+:} false; then :
9605 $as_echo_n "(cached) " >&6
9606else
9607 lt_cv_prog_compiler_c_o=no
9608 $RM -r conftest 2>/dev/null
9609 mkdir conftest
9610 cd conftest
9611 mkdir out
9612 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9c60689e 9613
a243b558
JF
9614 lt_compiler_flag="-o out/conftest2.$ac_objext"
9615 # Insert the option either (1) after the last *FLAGS variable, or
9616 # (2) before a word containing "conftest.", or (3) at the end.
9617 # Note that $ac_compile itself does not contain backslashes and begins
9618 # with a dollar sign (not a hyphen), so the echo should work correctly.
9619 lt_compile=`echo "$ac_compile" | $SED \
9620 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9621 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9622 -e 's:$: $lt_compiler_flag:'`
9623 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9624 (eval "$lt_compile" 2>out/conftest.err)
9625 ac_status=$?
9626 cat out/conftest.err >&5
9627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9628 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9629 then
9630 # The compiler can only warn and ignore the option if not recognized
9631 # So say no if there are warnings
9632 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9633 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9634 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9635 lt_cv_prog_compiler_c_o=yes
9636 fi
9637 fi
9638 chmod u+w . 2>&5
9639 $RM -r conftest*
9640 # SGI C++ compiler will create directory out/ii_files/ for
9641 # template instantiation
9642 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9643 $RM out/* && rmdir out
9644 cd ..
9645 $RM -r conftest
9646 $RM -r conftest*
9c60689e 9647
a243b558
JF
9648fi
9649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9650$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9c60689e 9651
9c60689e 9652
a243b558
JF
9653
9654
9655hard_links="nottested"
9656if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9657 # do not overwrite the value of need_locks provided by the user
9658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9659$as_echo_n "checking if we can lock with hard links... " >&6; }
9660 hard_links=yes
9661 $RM -r conftest*
9662 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9663 touch conftest.a
9664 ln conftest.a conftest.b 2>&5 || hard_links=no
9665 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9667$as_echo "$hard_links" >&6; }
9668 if test "$hard_links" = no; then
9669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9670$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9671 need_locks=warn
9c60689e 9672 fi
a243b558
JF
9673else
9674 need_locks=no
9675fi
9c60689e 9676
ee134472 9677
9c60689e 9678
9c60689e 9679
9c60689e 9680
a243b558
JF
9681
9682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9683$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9684
9685 runpath_var=
9686 allow_undefined_flag=
9687 always_export_symbols=no
9688 archive_cmds=
9689 archive_expsym_cmds=
9690 compiler_needs_object=no
9691 enable_shared_with_static_runtimes=no
9692 export_dynamic_flag_spec=
9693 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9694 hardcode_automatic=no
9695 hardcode_direct=no
9696 hardcode_direct_absolute=no
9697 hardcode_libdir_flag_spec=
9698 hardcode_libdir_separator=
9699 hardcode_minus_L=no
9700 hardcode_shlibpath_var=unsupported
9701 inherit_rpath=no
9702 link_all_deplibs=unknown
9703 module_cmds=
9704 module_expsym_cmds=
9705 old_archive_from_new_cmds=
9706 old_archive_from_expsyms_cmds=
9707 thread_safe_flag_spec=
9708 whole_archive_flag_spec=
9709 # include_expsyms should be a list of space-separated symbols to be *always*
9710 # included in the symbol list
9711 include_expsyms=
9712 # exclude_expsyms can be an extended regexp of symbols to exclude
9713 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9714 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9715 # as well as any symbol that contains `d'.
9716 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9717 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9718 # platforms (ab)use it in PIC code, but their linkers get confused if
9719 # the symbol is explicitly referenced. Since portable code cannot
9720 # rely on this symbol name, it's probably fine to never include it in
9721 # preloaded symbol tables.
9722 # Exclude shared library initialization/finalization symbols.
9723 extract_expsyms_cmds=
9724
9c60689e 9725 case $host_os in
a243b558
JF
9726 cygwin* | mingw* | pw32* | cegcc*)
9727 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9728 # When not using gcc, we currently assume that we are using
9729 # Microsoft Visual C++.
9730 if test "$GCC" != yes; then
9731 with_gnu_ld=no
9732 fi
9c60689e 9733 ;;
a243b558
JF
9734 interix*)
9735 # we just hope/assume this is gcc and not c89 (= MSVC++)
9736 with_gnu_ld=yes
9737 ;;
9738 openbsd*)
9739 with_gnu_ld=no
9c60689e
DWT
9740 ;;
9741 esac
9c60689e 9742
a243b558 9743 ld_shlibs=yes
ee134472 9744
a243b558
JF
9745 # On some targets, GNU ld is compatible enough with the native linker
9746 # that we're better off using the native interface for both.
9747 lt_use_gnu_ld_interface=no
9748 if test "$with_gnu_ld" = yes; then
9749 case $host_os in
9750 aix*)
9751 # The AIX port of GNU ld has always aspired to compatibility
9752 # with the native linker. However, as the warning in the GNU ld
9753 # block says, versions before 2.19.5* couldn't really create working
9754 # shared libraries, regardless of the interface used.
9755 case `$LD -v 2>&1` in
9756 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9757 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9758 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9759 *)
9760 lt_use_gnu_ld_interface=yes
9761 ;;
9762 esac
9763 ;;
9764 *)
9765 lt_use_gnu_ld_interface=yes
9766 ;;
9767 esac
9768 fi
9c60689e 9769
a243b558
JF
9770 if test "$lt_use_gnu_ld_interface" = yes; then
9771 # If archive_cmds runs LD, not CC, wlarc should be empty
9772 wlarc='${wl}'
9c60689e 9773
a243b558
JF
9774 # Set some defaults for GNU ld with shared library support. These
9775 # are reset later if shared libraries are not supported. Putting them
9776 # here allows them to be overridden if necessary.
9777 runpath_var=LD_RUN_PATH
9778 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9779 export_dynamic_flag_spec='${wl}--export-dynamic'
9780 # ancient GNU ld didn't support --whole-archive et. al.
9781 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9782 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9783 else
9784 whole_archive_flag_spec=
9785 fi
9786 supports_anon_versioning=no
9787 case `$LD -v 2>&1` in
9788 *GNU\ gold*) supports_anon_versioning=yes ;;
9789 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9790 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9791 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9792 *\ 2.11.*) ;; # other 2.11 versions
9793 *) supports_anon_versioning=yes ;;
9794 esac
ee134472 9795
a243b558
JF
9796 # See if GNU ld supports shared libraries.
9797 case $host_os in
9798 aix[3-9]*)
9799 # On AIX/PPC, the GNU linker is very broken
9800 if test "$host_cpu" != ia64; then
9801 ld_shlibs=no
9802 cat <<_LT_EOF 1>&2
ee134472 9803
a243b558
JF
9804*** Warning: the GNU linker, at least up to release 2.19, is reported
9805*** to be unable to reliably create shared libraries on AIX.
9806*** Therefore, libtool is disabling shared libraries support. If you
9807*** really care for shared libraries, you may want to install binutils
9808*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9809*** You will then need to restart the configuration process.
9c60689e 9810
a243b558
JF
9811_LT_EOF
9812 fi
9813 ;;
9c60689e 9814
a243b558
JF
9815 amigaos*)
9816 case $host_cpu in
9817 powerpc)
9818 # see comment about AmigaOS4 .so support
9819 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9820 archive_expsym_cmds=''
9821 ;;
9822 m68k)
9823 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)'
9824 hardcode_libdir_flag_spec='-L$libdir'
9825 hardcode_minus_L=yes
9826 ;;
9827 esac
9828 ;;
9c60689e 9829
a243b558
JF
9830 beos*)
9831 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9832 allow_undefined_flag=unsupported
9833 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9834 # support --undefined. This deserves some investigation. FIXME
9835 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9836 else
9837 ld_shlibs=no
9838 fi
9839 ;;
9c60689e 9840
a243b558
JF
9841 cygwin* | mingw* | pw32* | cegcc*)
9842 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9843 # as there is no search path for DLLs.
9844 hardcode_libdir_flag_spec='-L$libdir'
9845 export_dynamic_flag_spec='${wl}--export-all-symbols'
9846 allow_undefined_flag=unsupported
9847 always_export_symbols=no
9848 enable_shared_with_static_runtimes=yes
9849 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'
9850 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9c60689e 9851
a243b558
JF
9852 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9853 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9854 # If the export-symbols file already is a .def file (1st line
9855 # is EXPORTS), use it as is; otherwise, prepend...
9856 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9857 cp $export_symbols $output_objdir/$soname.def;
9858 else
9859 echo EXPORTS > $output_objdir/$soname.def;
9860 cat $export_symbols >> $output_objdir/$soname.def;
9861 fi~
9862 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9863 else
9864 ld_shlibs=no
9865 fi
9866 ;;
9c60689e 9867
a243b558
JF
9868 haiku*)
9869 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9870 link_all_deplibs=yes
9871 ;;
9c60689e 9872
a243b558
JF
9873 interix[3-9]*)
9874 hardcode_direct=no
9875 hardcode_shlibpath_var=no
9876 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9877 export_dynamic_flag_spec='${wl}-E'
9878 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9879 # Instead, shared libraries are loaded at an image base (0x10000000 by
9880 # default) and relocated if they conflict, which is a slow very memory
9881 # consuming and fragmenting process. To avoid this, we pick a random,
9882 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9883 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9884 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9885 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'
9886 ;;
9c60689e 9887
a243b558
JF
9888 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9889 tmp_diet=no
9890 if test "$host_os" = linux-dietlibc; then
9891 case $cc_basename in
9892 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9893 esac
9894 fi
9895 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9896 && test "$tmp_diet" = no
9897 then
9898 tmp_addflag=' $pic_flag'
9899 tmp_sharedflag='-shared'
9900 case $cc_basename,$host_cpu in
9901 pgcc*) # Portland Group C compiler
9902 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9903 tmp_addflag=' $pic_flag'
9904 ;;
9905 pgf77* | pgf90* | pgf95* | pgfortran*)
9906 # Portland Group f77 and f90 compilers
9907 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'
9908 tmp_addflag=' $pic_flag -Mnomain' ;;
9909 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9910 tmp_addflag=' -i_dynamic' ;;
9911 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9912 tmp_addflag=' -i_dynamic -nofor_main' ;;
9913 ifc* | ifort*) # Intel Fortran compiler
9914 tmp_addflag=' -nofor_main' ;;
9915 lf95*) # Lahey Fortran 8.1
9916 whole_archive_flag_spec=
9917 tmp_sharedflag='--shared' ;;
9918 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9919 tmp_sharedflag='-qmkshrobj'
9920 tmp_addflag= ;;
9921 nvcc*) # Cuda Compiler Driver 2.2
9922 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'
9923 compiler_needs_object=yes
9924 ;;
9925 esac
9926 case `$CC -V 2>&1 | sed 5q` in
9927 *Sun\ C*) # Sun C 5.9
9928 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'
9929 compiler_needs_object=yes
9930 tmp_sharedflag='-G' ;;
9931 *Sun\ F*) # Sun Fortran 8.3
9932 tmp_sharedflag='-G' ;;
9933 esac
9934 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9c60689e 9935
a243b558
JF
9936 if test "x$supports_anon_versioning" = xyes; then
9937 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9938 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9939 echo "local: *; };" >> $output_objdir/$libname.ver~
9940 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9941 fi
9c60689e 9942
a243b558
JF
9943 case $cc_basename in
9944 xlf* | bgf* | bgxlf* | mpixlf*)
9945 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9946 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9947 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9948 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9949 if test "x$supports_anon_versioning" = xyes; then
9950 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9951 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9952 echo "local: *; };" >> $output_objdir/$libname.ver~
9953 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9954 fi
9955 ;;
9956 esac
9957 else
9958 ld_shlibs=no
9959 fi
9960 ;;
9c60689e 9961
a243b558
JF
9962 netbsd*)
9963 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9964 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9965 wlarc=
9966 else
9967 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9968 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9969 fi
9970 ;;
9c60689e 9971
a243b558
JF
9972 solaris*)
9973 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9974 ld_shlibs=no
9975 cat <<_LT_EOF 1>&2
9c60689e 9976
a243b558
JF
9977*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9978*** create shared libraries on Solaris systems. Therefore, libtool
9979*** is disabling shared libraries support. We urge you to upgrade GNU
9980*** binutils to release 2.9.1 or newer. Another option is to modify
9981*** your PATH or compiler configuration so that the native linker is
9982*** used, and then restart.
9c60689e 9983
a243b558
JF
9984_LT_EOF
9985 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9986 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9987 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9988 else
9989 ld_shlibs=no
9990 fi
9991 ;;
9c60689e 9992
a243b558
JF
9993 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9994 case `$LD -v 2>&1` in
9995 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9996 ld_shlibs=no
9997 cat <<_LT_EOF 1>&2
9c60689e 9998
a243b558
JF
9999*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10000*** reliably create shared libraries on SCO systems. Therefore, libtool
10001*** is disabling shared libraries support. We urge you to upgrade GNU
10002*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10003*** your PATH or compiler configuration so that the native linker is
10004*** used, and then restart.
9c60689e 10005
a243b558
JF
10006_LT_EOF
10007 ;;
10008 *)
10009 # For security reasons, it is highly recommended that you always
10010 # use absolute paths for naming shared libraries, and exclude the
10011 # DT_RUNPATH tag from executables and libraries. But doing so
10012 # requires that you compile everything twice, which is a pain.
10013 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10014 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10015 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10016 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10017 else
10018 ld_shlibs=no
10019 fi
10020 ;;
10021 esac
10022 ;;
9c60689e 10023
a243b558
JF
10024 sunos4*)
10025 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10026 wlarc=
10027 hardcode_direct=yes
10028 hardcode_shlibpath_var=no
10029 ;;
9c60689e 10030
a243b558
JF
10031 *)
10032 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10033 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10034 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10035 else
10036 ld_shlibs=no
10037 fi
10038 ;;
10039 esac
9c60689e 10040
a243b558
JF
10041 if test "$ld_shlibs" = no; then
10042 runpath_var=
10043 hardcode_libdir_flag_spec=
10044 export_dynamic_flag_spec=
10045 whole_archive_flag_spec=
10046 fi
10047 else
10048 # PORTME fill in a description of your system's linker (not GNU ld)
10049 case $host_os in
10050 aix3*)
10051 allow_undefined_flag=unsupported
10052 always_export_symbols=yes
10053 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'
10054 # Note: this linker hardcodes the directories in LIBPATH if there
10055 # are no directories specified by -L.
10056 hardcode_minus_L=yes
10057 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10058 # Neither direct hardcoding nor static linking is supported with a
10059 # broken collect2.
10060 hardcode_direct=unsupported
10061 fi
10062 ;;
9c60689e 10063
a243b558
JF
10064 aix[4-9]*)
10065 if test "$host_cpu" = ia64; then
10066 # On IA64, the linker does run time linking by default, so we don't
10067 # have to do anything special.
10068 aix_use_runtimelinking=no
10069 exp_sym_flag='-Bexport'
10070 no_entry_flag=""
10071 else
10072 # If we're using GNU nm, then we don't want the "-C" option.
10073 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10074 # Also, AIX nm treats weak defined symbols like other global
10075 # defined symbols, whereas GNU nm marks them as "W".
10076 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10077 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'
10078 else
10079 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'
10080 fi
10081 aix_use_runtimelinking=no
9c60689e 10082
a243b558
JF
10083 # Test if we are trying to use run time linking or normal
10084 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10085 # need to do runtime linking.
10086 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10087 for ld_flag in $LDFLAGS; do
10088 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10089 aix_use_runtimelinking=yes
10090 break
10091 fi
10092 done
10093 ;;
10094 esac
9c60689e 10095
a243b558
JF
10096 exp_sym_flag='-bexport'
10097 no_entry_flag='-bnoentry'
10098 fi
9c60689e 10099
a243b558
JF
10100 # When large executables or shared objects are built, AIX ld can
10101 # have problems creating the table of contents. If linking a library
10102 # or program results in "error TOC overflow" add -mminimal-toc to
10103 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10104 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9c60689e 10105
a243b558
JF
10106 archive_cmds=''
10107 hardcode_direct=yes
10108 hardcode_direct_absolute=yes
10109 hardcode_libdir_separator=':'
10110 link_all_deplibs=yes
10111 file_list_spec='${wl}-f,'
9c60689e 10112
a243b558
JF
10113 if test "$GCC" = yes; then
10114 case $host_os in aix4.[012]|aix4.[012].*)
10115 # We only want to do this on AIX 4.2 and lower, the check
10116 # below for broken collect2 doesn't work under 4.3+
10117 collect2name=`${CC} -print-prog-name=collect2`
10118 if test -f "$collect2name" &&
10119 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10120 then
10121 # We have reworked collect2
10122 :
10123 else
10124 # We have old collect2
10125 hardcode_direct=unsupported
10126 # It fails to find uninstalled libraries when the uninstalled
10127 # path is not listed in the libpath. Setting hardcode_minus_L
10128 # to unsupported forces relinking
10129 hardcode_minus_L=yes
10130 hardcode_libdir_flag_spec='-L$libdir'
10131 hardcode_libdir_separator=
10132 fi
10133 ;;
10134 esac
10135 shared_flag='-shared'
10136 if test "$aix_use_runtimelinking" = yes; then
10137 shared_flag="$shared_flag "'${wl}-G'
10138 fi
10139 else
10140 # not using gcc
10141 if test "$host_cpu" = ia64; then
10142 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10143 # chokes on -Wl,-G. The following line is correct:
10144 shared_flag='-G'
10145 else
10146 if test "$aix_use_runtimelinking" = yes; then
10147 shared_flag='${wl}-G'
10148 else
10149 shared_flag='${wl}-bM:SRE'
10150 fi
10151 fi
10152 fi
9c60689e 10153
a243b558
JF
10154 export_dynamic_flag_spec='${wl}-bexpall'
10155 # It seems that -bexpall does not export symbols beginning with
10156 # underscore (_), so it is better to generate a list of symbols to export.
10157 always_export_symbols=yes
10158 if test "$aix_use_runtimelinking" = yes; then
10159 # Warning - without using the other runtime loading flags (-brtl),
10160 # -berok will link without error, but may produce a broken library.
10161 allow_undefined_flag='-berok'
10162 # Determine the default libpath from the value encoded in an
10163 # empty executable.
10164 if test "${lt_cv_aix_libpath+set}" = set; then
10165 aix_libpath=$lt_cv_aix_libpath
9c60689e 10166else
a243b558 10167 if ${lt_cv_aix_libpath_+:} false; then :
9c60689e
DWT
10168 $as_echo_n "(cached) " >&6
10169else
a243b558 10170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9c60689e
DWT
10171/* end confdefs.h. */
10172
9c60689e
DWT
10173int
10174main ()
10175{
a243b558 10176
9c60689e
DWT
10177 ;
10178 return 0;
10179}
10180_ACEOF
10181if ac_fn_c_try_link "$LINENO"; then :
a243b558
JF
10182
10183 lt_aix_libpath_sed='
10184 /Import File Strings/,/^$/ {
10185 /^0/ {
10186 s/^0 *\([^ ]*\) *$/\1/
10187 p
10188 }
10189 }'
10190 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10191 # Check for a 64-bit object if we didn't find anything.
10192 if test -z "$lt_cv_aix_libpath_"; then
10193 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10194 fi
9c60689e
DWT
10195fi
10196rm -f core conftest.err conftest.$ac_objext \
10197 conftest$ac_exeext conftest.$ac_ext
a243b558
JF
10198 if test -z "$lt_cv_aix_libpath_"; then
10199 lt_cv_aix_libpath_="/usr/lib:/lib"
10200 fi
9c60689e
DWT
10201
10202fi
10203
a243b558
JF
10204 aix_libpath=$lt_cv_aix_libpath_
10205fi
9c60689e 10206
a243b558
JF
10207 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10208 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"
10209 else
10210 if test "$host_cpu" = ia64; then
10211 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10212 allow_undefined_flag="-z nodefs"
10213 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"
10214 else
10215 # Determine the default libpath from the value encoded in an
10216 # empty executable.
10217 if test "${lt_cv_aix_libpath+set}" = set; then
10218 aix_libpath=$lt_cv_aix_libpath
9c60689e 10219else
a243b558 10220 if ${lt_cv_aix_libpath_+:} false; then :
9c60689e
DWT
10221 $as_echo_n "(cached) " >&6
10222else
a243b558 10223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9c60689e
DWT
10224/* end confdefs.h. */
10225
9c60689e
DWT
10226int
10227main ()
10228{
a243b558 10229
9c60689e
DWT
10230 ;
10231 return 0;
10232}
10233_ACEOF
10234if ac_fn_c_try_link "$LINENO"; then :
9c60689e 10235
a243b558
JF
10236 lt_aix_libpath_sed='
10237 /Import File Strings/,/^$/ {
10238 /^0/ {
10239 s/^0 *\([^ ]*\) *$/\1/
10240 p
10241 }
10242 }'
10243 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10244 # Check for a 64-bit object if we didn't find anything.
10245 if test -z "$lt_cv_aix_libpath_"; then
10246 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10247 fi
9c60689e
DWT
10248fi
10249rm -f core conftest.err conftest.$ac_objext \
10250 conftest$ac_exeext conftest.$ac_ext
a243b558
JF
10251 if test -z "$lt_cv_aix_libpath_"; then
10252 lt_cv_aix_libpath_="/usr/lib:/lib"
10253 fi
10254
9c60689e 10255fi
9c60689e 10256
a243b558
JF
10257 aix_libpath=$lt_cv_aix_libpath_
10258fi
10259
10260 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10261 # Warning - without using the other run time loading flags,
10262 # -berok will link without error, but may produce a broken library.
10263 no_undefined_flag=' ${wl}-bernotok'
10264 allow_undefined_flag=' ${wl}-berok'
10265 if test "$with_gnu_ld" = yes; then
10266 # We only use this code for GNU lds that support --whole-archive.
10267 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10268 else
10269 # Exported symbols can be pulled into shared objects from archives
10270 whole_archive_flag_spec='$convenience'
10271 fi
10272 archive_cmds_need_lc=yes
10273 # This is similar to how AIX traditionally builds its shared libraries.
10274 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'
10275 fi
10276 fi
10277 ;;
10278
10279 amigaos*)
10280 case $host_cpu in
10281 powerpc)
10282 # see comment about AmigaOS4 .so support
10283 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10284 archive_expsym_cmds=''
10285 ;;
10286 m68k)
10287 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)'
10288 hardcode_libdir_flag_spec='-L$libdir'
10289 hardcode_minus_L=yes
10290 ;;
10291 esac
10292 ;;
10293
10294 bsdi[45]*)
10295 export_dynamic_flag_spec=-rdynamic
10296 ;;
10297
10298 cygwin* | mingw* | pw32* | cegcc*)
10299 # When not using gcc, we currently assume that we are using
10300 # Microsoft Visual C++.
10301 # hardcode_libdir_flag_spec is actually meaningless, as there is
10302 # no search path for DLLs.
10303 case $cc_basename in
10304 cl*)
10305 # Native MSVC
10306 hardcode_libdir_flag_spec=' '
10307 allow_undefined_flag=unsupported
10308 always_export_symbols=yes
10309 file_list_spec='@'
10310 # Tell ltmain to make .lib files, not .a files.
10311 libext=lib
10312 # Tell ltmain to make .dll files, not .so files.
10313 shrext_cmds=".dll"
10314 # FIXME: Setting linknames here is a bad hack.
10315 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10316 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10317 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10318 else
10319 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10320 fi~
10321 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10322 linknames='
10323 # The linker will not automatically build a static lib if we build a DLL.
10324 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10325 enable_shared_with_static_runtimes=yes
10326 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10327 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10328 # Don't use ranlib
10329 old_postinstall_cmds='chmod 644 $oldlib'
10330 postlink_cmds='lt_outputfile="@OUTPUT@"~
10331 lt_tool_outputfile="@TOOL_OUTPUT@"~
10332 case $lt_outputfile in
10333 *.exe|*.EXE) ;;
10334 *)
10335 lt_outputfile="$lt_outputfile.exe"
10336 lt_tool_outputfile="$lt_tool_outputfile.exe"
10337 ;;
10338 esac~
10339 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10340 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10341 $RM "$lt_outputfile.manifest";
10342 fi'
10343 ;;
10344 *)
10345 # Assume MSVC wrapper
10346 hardcode_libdir_flag_spec=' '
10347 allow_undefined_flag=unsupported
10348 # Tell ltmain to make .lib files, not .a files.
10349 libext=lib
10350 # Tell ltmain to make .dll files, not .so files.
10351 shrext_cmds=".dll"
10352 # FIXME: Setting linknames here is a bad hack.
10353 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10354 # The linker will automatically build a .lib file if we build a DLL.
10355 old_archive_from_new_cmds='true'
10356 # FIXME: Should let the user specify the lib program.
10357 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10358 enable_shared_with_static_runtimes=yes
10359 ;;
10360 esac
10361 ;;
10362
10363 darwin* | rhapsody*)
10364
10365
10366 archive_cmds_need_lc=no
10367 hardcode_direct=no
10368 hardcode_automatic=yes
10369 hardcode_shlibpath_var=unsupported
10370 if test "$lt_cv_ld_force_load" = "yes"; then
10371 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\"`'
10372
10373 else
10374 whole_archive_flag_spec=''
10375 fi
10376 link_all_deplibs=yes
10377 allow_undefined_flag="$_lt_dar_allow_undefined"
10378 case $cc_basename in
10379 ifort*) _lt_dar_can_shared=yes ;;
10380 *) _lt_dar_can_shared=$GCC ;;
10381 esac
10382 if test "$_lt_dar_can_shared" = "yes"; then
10383 output_verbose_link_cmd=func_echo_all
10384 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10385 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10386 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}"
10387 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}"
10388
10389 else
10390 ld_shlibs=no
10391 fi
10392
10393 ;;
10394
10395 dgux*)
10396 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10397 hardcode_libdir_flag_spec='-L$libdir'
10398 hardcode_shlibpath_var=no
10399 ;;
10400
10401 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10402 # support. Future versions do this automatically, but an explicit c++rt0.o
10403 # does not break anything, and helps significantly (at the cost of a little
10404 # extra space).
10405 freebsd2.2*)
10406 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10407 hardcode_libdir_flag_spec='-R$libdir'
10408 hardcode_direct=yes
10409 hardcode_shlibpath_var=no
10410 ;;
10411
10412 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10413 freebsd2.*)
10414 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10415 hardcode_direct=yes
10416 hardcode_minus_L=yes
10417 hardcode_shlibpath_var=no
10418 ;;
10419
10420 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10421 freebsd* | dragonfly*)
10422 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10423 hardcode_libdir_flag_spec='-R$libdir'
10424 hardcode_direct=yes
10425 hardcode_shlibpath_var=no
10426 ;;
10427
10428 hpux9*)
10429 if test "$GCC" = yes; then
10430 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'
10431 else
10432 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'
10433 fi
10434 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10435 hardcode_libdir_separator=:
10436 hardcode_direct=yes
10437
10438 # hardcode_minus_L: Not really in the search PATH,
10439 # but as the default location of the library.
10440 hardcode_minus_L=yes
10441 export_dynamic_flag_spec='${wl}-E'
10442 ;;
10443
10444 hpux10*)
10445 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10446 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10447 else
10448 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10449 fi
10450 if test "$with_gnu_ld" = no; then
10451 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10452 hardcode_libdir_separator=:
10453 hardcode_direct=yes
10454 hardcode_direct_absolute=yes
10455 export_dynamic_flag_spec='${wl}-E'
10456 # hardcode_minus_L: Not really in the search PATH,
10457 # but as the default location of the library.
10458 hardcode_minus_L=yes
10459 fi
10460 ;;
10461
10462 hpux11*)
10463 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10464 case $host_cpu in
10465 hppa*64*)
10466 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10467 ;;
10468 ia64*)
10469 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10470 ;;
10471 *)
10472 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10473 ;;
10474 esac
10475 else
10476 case $host_cpu in
10477 hppa*64*)
10478 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10479 ;;
10480 ia64*)
10481 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10482 ;;
10483 *)
10484
10485 # Older versions of the 11.00 compiler do not understand -b yet
10486 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10488$as_echo_n "checking if $CC understands -b... " >&6; }
10489if ${lt_cv_prog_compiler__b+:} false; then :
10490 $as_echo_n "(cached) " >&6
10491else
10492 lt_cv_prog_compiler__b=no
10493 save_LDFLAGS="$LDFLAGS"
10494 LDFLAGS="$LDFLAGS -b"
10495 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10496 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10497 # The linker can only warn and ignore the option if not recognized
10498 # So say no if there are warnings
10499 if test -s conftest.err; then
10500 # Append any errors to the config.log.
10501 cat conftest.err 1>&5
10502 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10503 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10504 if diff conftest.exp conftest.er2 >/dev/null; then
10505 lt_cv_prog_compiler__b=yes
10506 fi
10507 else
10508 lt_cv_prog_compiler__b=yes
10509 fi
10510 fi
10511 $RM -r conftest*
10512 LDFLAGS="$save_LDFLAGS"
10513
10514fi
10515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10516$as_echo "$lt_cv_prog_compiler__b" >&6; }
10517
10518if test x"$lt_cv_prog_compiler__b" = xyes; then
10519 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10520else
10521 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10522fi
10523
10524 ;;
10525 esac
10526 fi
10527 if test "$with_gnu_ld" = no; then
10528 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10529 hardcode_libdir_separator=:
10530
10531 case $host_cpu in
10532 hppa*64*|ia64*)
10533 hardcode_direct=no
10534 hardcode_shlibpath_var=no
10535 ;;
10536 *)
10537 hardcode_direct=yes
10538 hardcode_direct_absolute=yes
10539 export_dynamic_flag_spec='${wl}-E'
10540
10541 # hardcode_minus_L: Not really in the search PATH,
10542 # but as the default location of the library.
10543 hardcode_minus_L=yes
10544 ;;
10545 esac
10546 fi
10547 ;;
10548
10549 irix5* | irix6* | nonstopux*)
10550 if test "$GCC" = yes; then
10551 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'
10552 # Try to use the -exported_symbol ld option, if it does not
10553 # work, assume that -exports_file does not work either and
10554 # implicitly export all symbols.
10555 # This should be the same for all languages, so no per-tag cache variable.
10556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10557$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10558if ${lt_cv_irix_exported_symbol+:} false; then :
10559 $as_echo_n "(cached) " >&6
10560else
10561 save_LDFLAGS="$LDFLAGS"
10562 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10564/* end confdefs.h. */
10565int foo (void) { return 0; }
10566_ACEOF
10567if ac_fn_c_try_link "$LINENO"; then :
10568 lt_cv_irix_exported_symbol=yes
10569else
10570 lt_cv_irix_exported_symbol=no
10571fi
10572rm -f core conftest.err conftest.$ac_objext \
10573 conftest$ac_exeext conftest.$ac_ext
10574 LDFLAGS="$save_LDFLAGS"
10575fi
10576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10577$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10578 if test "$lt_cv_irix_exported_symbol" = yes; then
10579 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'
10580 fi
10581 else
10582 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'
10583 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'
10584 fi
10585 archive_cmds_need_lc='no'
10586 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10587 hardcode_libdir_separator=:
10588 inherit_rpath=yes
10589 link_all_deplibs=yes
10590 ;;
10591
10592 netbsd*)
10593 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10594 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10595 else
10596 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10597 fi
10598 hardcode_libdir_flag_spec='-R$libdir'
10599 hardcode_direct=yes
10600 hardcode_shlibpath_var=no
10601 ;;
10602
10603 newsos6)
10604 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10605 hardcode_direct=yes
10606 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10607 hardcode_libdir_separator=:
10608 hardcode_shlibpath_var=no
10609 ;;
10610
10611 *nto* | *qnx*)
10612 ;;
10613
10614 openbsd*)
10615 if test -f /usr/libexec/ld.so; then
10616 hardcode_direct=yes
10617 hardcode_shlibpath_var=no
10618 hardcode_direct_absolute=yes
10619 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10620 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10621 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10622 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10623 export_dynamic_flag_spec='${wl}-E'
10624 else
10625 case $host_os in
10626 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10627 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10628 hardcode_libdir_flag_spec='-R$libdir'
10629 ;;
10630 *)
10631 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10632 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10633 ;;
10634 esac
10635 fi
10636 else
10637 ld_shlibs=no
10638 fi
10639 ;;
10640
10641 os2*)
10642 hardcode_libdir_flag_spec='-L$libdir'
10643 hardcode_minus_L=yes
10644 allow_undefined_flag=unsupported
10645 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'
10646 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10647 ;;
10648
10649 osf3*)
10650 if test "$GCC" = yes; then
10651 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10652 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'
10653 else
10654 allow_undefined_flag=' -expect_unresolved \*'
10655 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'
10656 fi
10657 archive_cmds_need_lc='no'
10658 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10659 hardcode_libdir_separator=:
10660 ;;
10661
10662 osf4* | osf5*) # as osf3* with the addition of -msym flag
10663 if test "$GCC" = yes; then
10664 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10665 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'
10666 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10667 else
10668 allow_undefined_flag=' -expect_unresolved \*'
10669 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'
10670 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~
10671 $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'
10672
10673 # Both c and cxx compiler support -rpath directly
10674 hardcode_libdir_flag_spec='-rpath $libdir'
10675 fi
10676 archive_cmds_need_lc='no'
10677 hardcode_libdir_separator=:
10678 ;;
10679
10680 solaris*)
10681 no_undefined_flag=' -z defs'
10682 if test "$GCC" = yes; then
10683 wlarc='${wl}'
10684 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10685 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10686 $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'
10687 else
10688 case `$CC -V 2>&1` in
10689 *"Compilers 5.0"*)
10690 wlarc=''
10691 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10692 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10693 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10694 ;;
10695 *)
10696 wlarc='${wl}'
10697 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10698 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10699 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10700 ;;
10701 esac
10702 fi
10703 hardcode_libdir_flag_spec='-R$libdir'
10704 hardcode_shlibpath_var=no
10705 case $host_os in
10706 solaris2.[0-5] | solaris2.[0-5].*) ;;
10707 *)
10708 # The compiler driver will combine and reorder linker options,
10709 # but understands `-z linker_flag'. GCC discards it without `$wl',
10710 # but is careful enough not to reorder.
10711 # Supported since Solaris 2.6 (maybe 2.5.1?)
10712 if test "$GCC" = yes; then
10713 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10714 else
10715 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10716 fi
10717 ;;
10718 esac
10719 link_all_deplibs=yes
10720 ;;
10721
10722 sunos4*)
10723 if test "x$host_vendor" = xsequent; then
10724 # Use $CC to link under sequent, because it throws in some extra .o
10725 # files that make .init and .fini sections work.
10726 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10727 else
10728 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10729 fi
10730 hardcode_libdir_flag_spec='-L$libdir'
10731 hardcode_direct=yes
10732 hardcode_minus_L=yes
10733 hardcode_shlibpath_var=no
10734 ;;
10735
10736 sysv4)
10737 case $host_vendor in
10738 sni)
10739 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10740 hardcode_direct=yes # is this really true???
10741 ;;
10742 siemens)
10743 ## LD is ld it makes a PLAMLIB
10744 ## CC just makes a GrossModule.
10745 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10746 reload_cmds='$CC -r -o $output$reload_objs'
10747 hardcode_direct=no
10748 ;;
10749 motorola)
10750 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10751 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10752 ;;
10753 esac
10754 runpath_var='LD_RUN_PATH'
10755 hardcode_shlibpath_var=no
10756 ;;
10757
10758 sysv4.3*)
10759 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10760 hardcode_shlibpath_var=no
10761 export_dynamic_flag_spec='-Bexport'
10762 ;;
10763
10764 sysv4*MP*)
10765 if test -d /usr/nec; then
10766 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10767 hardcode_shlibpath_var=no
10768 runpath_var=LD_RUN_PATH
10769 hardcode_runpath_var=yes
10770 ld_shlibs=yes
10771 fi
10772 ;;
10773
10774 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10775 no_undefined_flag='${wl}-z,text'
10776 archive_cmds_need_lc=no
10777 hardcode_shlibpath_var=no
10778 runpath_var='LD_RUN_PATH'
10779
10780 if test "$GCC" = yes; then
10781 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10782 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10783 else
10784 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10785 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10786 fi
10787 ;;
10788
10789 sysv5* | sco3.2v5* | sco5v6*)
10790 # Note: We can NOT use -z defs as we might desire, because we do not
10791 # link with -lc, and that would cause any symbols used from libc to
10792 # always be unresolved, which means just about no library would
10793 # ever link correctly. If we're not using GNU ld we use -z text
10794 # though, which does catch some bad symbols but isn't as heavy-handed
10795 # as -z defs.
10796 no_undefined_flag='${wl}-z,text'
10797 allow_undefined_flag='${wl}-z,nodefs'
10798 archive_cmds_need_lc=no
10799 hardcode_shlibpath_var=no
10800 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10801 hardcode_libdir_separator=':'
10802 link_all_deplibs=yes
10803 export_dynamic_flag_spec='${wl}-Bexport'
10804 runpath_var='LD_RUN_PATH'
10805
10806 if test "$GCC" = yes; then
10807 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10808 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10809 else
10810 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10811 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10812 fi
10813 ;;
10814
10815 uts4*)
10816 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10817 hardcode_libdir_flag_spec='-L$libdir'
10818 hardcode_shlibpath_var=no
10819 ;;
10820
10821 *)
10822 ld_shlibs=no
10823 ;;
10824 esac
10825
10826 if test x$host_vendor = xsni; then
10827 case $host in
10828 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10829 export_dynamic_flag_spec='${wl}-Blargedynsym'
10830 ;;
10831 esac
10832 fi
10833 fi
10834
10835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10836$as_echo "$ld_shlibs" >&6; }
10837test "$ld_shlibs" = no && can_build_shared=no
10838
10839with_gnu_ld=$with_gnu_ld
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855#
10856# Do we need to explicitly link libc?
10857#
10858case "x$archive_cmds_need_lc" in
10859x|xyes)
10860 # Assume -lc should be added
10861 archive_cmds_need_lc=yes
10862
10863 if test "$enable_shared" = yes && test "$GCC" = yes; then
10864 case $archive_cmds in
10865 *'~'*)
10866 # FIXME: we may have to deal with multi-command sequences.
10867 ;;
10868 '$CC '*)
10869 # Test whether the compiler implicitly links with -lc since on some
10870 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10871 # to ld, don't add -lc before -lgcc.
10872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10873$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10874if ${lt_cv_archive_cmds_need_lc+:} false; then :
10875 $as_echo_n "(cached) " >&6
10876else
10877 $RM -r conftest*
10878 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10879
10880 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10881 (eval $ac_compile) 2>&5
10882 ac_status=$?
10883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10884 test $ac_status = 0; } 2>conftest.err; then
10885 soname=conftest
10886 lib=conftest
10887 libobjs=conftest.$ac_objext
10888 deplibs=
10889 wl=$lt_prog_compiler_wl
10890 pic_flag=$lt_prog_compiler_pic
10891 compiler_flags=-v
10892 linker_flags=-v
10893 verstring=
10894 output_objdir=.
10895 libname=conftest
10896 lt_save_allow_undefined_flag=$allow_undefined_flag
10897 allow_undefined_flag=
10898 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10899 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10900 ac_status=$?
10901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10902 test $ac_status = 0; }
10903 then
10904 lt_cv_archive_cmds_need_lc=no
10905 else
10906 lt_cv_archive_cmds_need_lc=yes
10907 fi
10908 allow_undefined_flag=$lt_save_allow_undefined_flag
10909 else
10910 cat conftest.err 1>&5
10911 fi
10912 $RM -r conftest*
10913
10914fi
10915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10916$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10917 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10918 ;;
10919 esac
10920 fi
10921 ;;
10922esac
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
11074
11075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11076$as_echo_n "checking dynamic linker characteristics... " >&6; }
11077
11078if test "$GCC" = yes; then
11079 case $host_os in
11080 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11081 *) lt_awk_arg="/^libraries:/" ;;
11082 esac
11083 case $host_os in
11084 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11085 *) lt_sed_strip_eq="s,=/,/,g" ;;
11086 esac
11087 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11088 case $lt_search_path_spec in
11089 *\;*)
11090 # if the path contains ";" then we assume it to be the separator
11091 # otherwise default to the standard path separator (i.e. ":") - it is
11092 # assumed that no part of a normal pathname contains ";" but that should
11093 # okay in the real world where ";" in dirpaths is itself problematic.
11094 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11095 ;;
11096 *)
11097 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11098 ;;
11099 esac
11100 # Ok, now we have the path, separated by spaces, we can step through it
11101 # and add multilib dir if necessary.
11102 lt_tmp_lt_search_path_spec=
11103 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11104 for lt_sys_path in $lt_search_path_spec; do
11105 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11106 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11107 else
11108 test -d "$lt_sys_path" && \
11109 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11110 fi
11111 done
11112 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11113BEGIN {RS=" "; FS="/|\n";} {
11114 lt_foo="";
11115 lt_count=0;
11116 for (lt_i = NF; lt_i > 0; lt_i--) {
11117 if ($lt_i != "" && $lt_i != ".") {
11118 if ($lt_i == "..") {
11119 lt_count++;
11120 } else {
11121 if (lt_count == 0) {
11122 lt_foo="/" $lt_i lt_foo;
11123 } else {
11124 lt_count--;
11125 }
11126 }
11127 }
11128 }
11129 if (lt_foo != "") { lt_freq[lt_foo]++; }
11130 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11131}'`
11132 # AWK program above erroneously prepends '/' to C:/dos/paths
11133 # for these hosts.
11134 case $host_os in
11135 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11136 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11137 esac
11138 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11139else
11140 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11141fi
11142library_names_spec=
11143libname_spec='lib$name'
11144soname_spec=
11145shrext_cmds=".so"
11146postinstall_cmds=
11147postuninstall_cmds=
11148finish_cmds=
11149finish_eval=
11150shlibpath_var=
11151shlibpath_overrides_runpath=unknown
11152version_type=none
11153dynamic_linker="$host_os ld.so"
11154sys_lib_dlsearch_path_spec="/lib /usr/lib"
11155need_lib_prefix=unknown
11156hardcode_into_libs=no
11157
11158# when you set need_version to no, make sure it does not cause -set_version
11159# flags to be left without arguments
11160need_version=unknown
11161
11162case $host_os in
11163aix3*)
11164 version_type=linux # correct to gnu/linux during the next big refactor
11165 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11166 shlibpath_var=LIBPATH
11167
11168 # AIX 3 has no versioning support, so we append a major version to the name.
11169 soname_spec='${libname}${release}${shared_ext}$major'
11170 ;;
11171
11172aix[4-9]*)
11173 version_type=linux # correct to gnu/linux during the next big refactor
11174 need_lib_prefix=no
11175 need_version=no
11176 hardcode_into_libs=yes
11177 if test "$host_cpu" = ia64; then
11178 # AIX 5 supports IA64
11179 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11180 shlibpath_var=LD_LIBRARY_PATH
11181 else
11182 # With GCC up to 2.95.x, collect2 would create an import file
11183 # for dependence libraries. The import file would start with
11184 # the line `#! .'. This would cause the generated library to
11185 # depend on `.', always an invalid library. This was fixed in
11186 # development snapshots of GCC prior to 3.0.
11187 case $host_os in
11188 aix4 | aix4.[01] | aix4.[01].*)
11189 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11190 echo ' yes '
11191 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11192 :
11193 else
11194 can_build_shared=no
11195 fi
11196 ;;
11197 esac
11198 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11199 # soname into executable. Probably we can add versioning support to
11200 # collect2, so additional links can be useful in future.
11201 if test "$aix_use_runtimelinking" = yes; then
11202 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11203 # instead of lib<name>.a to let people know that these are not
11204 # typical AIX shared libraries.
11205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11206 else
11207 # We preserve .a as extension for shared libraries through AIX4.2
11208 # and later when we are not doing run time linking.
11209 library_names_spec='${libname}${release}.a $libname.a'
11210 soname_spec='${libname}${release}${shared_ext}$major'
11211 fi
11212 shlibpath_var=LIBPATH
11213 fi
11214 ;;
11215
11216amigaos*)
11217 case $host_cpu in
11218 powerpc)
11219 # Since July 2007 AmigaOS4 officially supports .so libraries.
11220 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11222 ;;
11223 m68k)
11224 library_names_spec='$libname.ixlibrary $libname.a'
11225 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11226 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'
11227 ;;
11228 esac
11229 ;;
11230
11231beos*)
11232 library_names_spec='${libname}${shared_ext}'
11233 dynamic_linker="$host_os ld.so"
11234 shlibpath_var=LIBRARY_PATH
11235 ;;
11236
11237bsdi[45]*)
11238 version_type=linux # correct to gnu/linux during the next big refactor
11239 need_version=no
11240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11241 soname_spec='${libname}${release}${shared_ext}$major'
11242 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11243 shlibpath_var=LD_LIBRARY_PATH
11244 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11245 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11246 # the default ld.so.conf also contains /usr/contrib/lib and
11247 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11248 # libtool to hard-code these into programs
11249 ;;
11250
11251cygwin* | mingw* | pw32* | cegcc*)
11252 version_type=windows
11253 shrext_cmds=".dll"
11254 need_version=no
11255 need_lib_prefix=no
9c60689e 11256
a243b558
JF
11257 case $GCC,$cc_basename in
11258 yes,*)
11259 # gcc
11260 library_names_spec='$libname.dll.a'
11261 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11262 postinstall_cmds='base_file=`basename \${file}`~
11263 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11264 dldir=$destdir/`dirname \$dlpath`~
11265 test -d \$dldir || mkdir -p \$dldir~
11266 $install_prog $dir/$dlname \$dldir/$dlname~
11267 chmod a+x \$dldir/$dlname~
11268 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11269 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11270 fi'
11271 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11272 dlpath=$dir/\$dldll~
11273 $RM \$dlpath'
11274 shlibpath_overrides_runpath=yes
9c60689e 11275
a243b558
JF
11276 case $host_os in
11277 cygwin*)
11278 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11279 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9c60689e 11280
a243b558
JF
11281 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11282 ;;
11283 mingw* | cegcc*)
11284 # MinGW DLLs use traditional 'lib' prefix
11285 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11286 ;;
11287 pw32*)
11288 # pw32 DLLs use 'pw' prefix rather than 'lib'
11289 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11290 ;;
11291 esac
11292 dynamic_linker='Win32 ld.exe'
11293 ;;
9c60689e 11294
a243b558
JF
11295 *,cl*)
11296 # Native MSVC
11297 libname_spec='$name'
11298 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11299 library_names_spec='${libname}.dll.lib'
9c60689e 11300
a243b558
JF
11301 case $build_os in
11302 mingw*)
11303 sys_lib_search_path_spec=
11304 lt_save_ifs=$IFS
11305 IFS=';'
11306 for lt_path in $LIB
11307 do
11308 IFS=$lt_save_ifs
11309 # Let DOS variable expansion print the short 8.3 style file name.
11310 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11311 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11312 done
11313 IFS=$lt_save_ifs
11314 # Convert to MSYS style.
11315 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11316 ;;
11317 cygwin*)
11318 # Convert to unix form, then to dos form, then back to unix form
11319 # but this time dos style (no spaces!) so that the unix form looks
11320 # like /cygdrive/c/PROGRA~1:/cygdr...
11321 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11322 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11323 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11324 ;;
11325 *)
11326 sys_lib_search_path_spec="$LIB"
11327 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11328 # It is most probably a Windows format PATH.
11329 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11330 else
11331 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11332 fi
11333 # FIXME: find the short name or the path components, as spaces are
11334 # common. (e.g. "Program Files" -> "PROGRA~1")
11335 ;;
11336 esac
11337
11338 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11339 postinstall_cmds='base_file=`basename \${file}`~
11340 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11341 dldir=$destdir/`dirname \$dlpath`~
11342 test -d \$dldir || mkdir -p \$dldir~
11343 $install_prog $dir/$dlname \$dldir/$dlname'
11344 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11345 dlpath=$dir/\$dldll~
11346 $RM \$dlpath'
11347 shlibpath_overrides_runpath=yes
11348 dynamic_linker='Win32 link.exe'
11349 ;;
9c60689e 11350
a243b558
JF
11351 *)
11352 # Assume MSVC wrapper
11353 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11354 dynamic_linker='Win32 ld.exe'
11355 ;;
11356 esac
11357 # FIXME: first we should search . and the directory the executable is in
11358 shlibpath_var=PATH
11359 ;;
9c60689e 11360
a243b558
JF
11361darwin* | rhapsody*)
11362 dynamic_linker="$host_os dyld"
11363 version_type=darwin
11364 need_lib_prefix=no
11365 need_version=no
11366 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11367 soname_spec='${libname}${release}${major}$shared_ext'
11368 shlibpath_overrides_runpath=yes
11369 shlibpath_var=DYLD_LIBRARY_PATH
11370 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9c60689e 11371
a243b558
JF
11372 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11373 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11374 ;;
9c60689e 11375
a243b558
JF
11376dgux*)
11377 version_type=linux # correct to gnu/linux during the next big refactor
11378 need_lib_prefix=no
11379 need_version=no
11380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11381 soname_spec='${libname}${release}${shared_ext}$major'
11382 shlibpath_var=LD_LIBRARY_PATH
11383 ;;
11384
11385freebsd* | dragonfly*)
11386 # DragonFly does not have aout. When/if they implement a new
11387 # versioning mechanism, adjust this.
11388 if test -x /usr/bin/objformat; then
11389 objformat=`/usr/bin/objformat`
11390 else
11391 case $host_os in
11392 freebsd[23].*) objformat=aout ;;
11393 *) objformat=elf ;;
11394 esac
11395 fi
11396 version_type=freebsd-$objformat
11397 case $version_type in
11398 freebsd-elf*)
11399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11400 need_version=no
11401 need_lib_prefix=no
11402 ;;
11403 freebsd-*)
11404 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11405 need_version=yes
11406 ;;
11407 esac
11408 shlibpath_var=LD_LIBRARY_PATH
11409 case $host_os in
11410 freebsd2.*)
11411 shlibpath_overrides_runpath=yes
11412 ;;
11413 freebsd3.[01]* | freebsdelf3.[01]*)
11414 shlibpath_overrides_runpath=yes
11415 hardcode_into_libs=yes
11416 ;;
11417 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11418 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11419 shlibpath_overrides_runpath=no
11420 hardcode_into_libs=yes
11421 ;;
11422 *) # from 4.6 on, and DragonFly
11423 shlibpath_overrides_runpath=yes
11424 hardcode_into_libs=yes
11425 ;;
11426 esac
11427 ;;
9c60689e 11428
a243b558
JF
11429gnu*)
11430 version_type=linux # correct to gnu/linux during the next big refactor
11431 need_lib_prefix=no
11432 need_version=no
11433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11434 soname_spec='${libname}${release}${shared_ext}$major'
11435 shlibpath_var=LD_LIBRARY_PATH
11436 shlibpath_overrides_runpath=no
11437 hardcode_into_libs=yes
11438 ;;
9c60689e 11439
a243b558
JF
11440haiku*)
11441 version_type=linux # correct to gnu/linux during the next big refactor
11442 need_lib_prefix=no
11443 need_version=no
11444 dynamic_linker="$host_os runtime_loader"
11445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11446 soname_spec='${libname}${release}${shared_ext}$major'
11447 shlibpath_var=LIBRARY_PATH
11448 shlibpath_overrides_runpath=yes
11449 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11450 hardcode_into_libs=yes
11451 ;;
9c60689e 11452
a243b558
JF
11453hpux9* | hpux10* | hpux11*)
11454 # Give a soname corresponding to the major version so that dld.sl refuses to
11455 # link against other versions.
11456 version_type=sunos
11457 need_lib_prefix=no
11458 need_version=no
11459 case $host_cpu in
11460 ia64*)
11461 shrext_cmds='.so'
11462 hardcode_into_libs=yes
11463 dynamic_linker="$host_os dld.so"
11464 shlibpath_var=LD_LIBRARY_PATH
11465 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11467 soname_spec='${libname}${release}${shared_ext}$major'
11468 if test "X$HPUX_IA64_MODE" = X32; then
11469 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11470 else
11471 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11472 fi
11473 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11474 ;;
11475 hppa*64*)
11476 shrext_cmds='.sl'
11477 hardcode_into_libs=yes
11478 dynamic_linker="$host_os dld.sl"
11479 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11480 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11482 soname_spec='${libname}${release}${shared_ext}$major'
11483 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11484 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11485 ;;
11486 *)
11487 shrext_cmds='.sl'
11488 dynamic_linker="$host_os dld.sl"
11489 shlibpath_var=SHLIB_PATH
11490 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11492 soname_spec='${libname}${release}${shared_ext}$major'
9c60689e
DWT
11493 ;;
11494 esac
a243b558
JF
11495 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11496 postinstall_cmds='chmod 555 $lib'
11497 # or fails outright, so override atomically:
11498 install_override_mode=555
11499 ;;
9c60689e 11500
a243b558
JF
11501interix[3-9]*)
11502 version_type=linux # correct to gnu/linux during the next big refactor
11503 need_lib_prefix=no
11504 need_version=no
11505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11506 soname_spec='${libname}${release}${shared_ext}$major'
11507 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11508 shlibpath_var=LD_LIBRARY_PATH
11509 shlibpath_overrides_runpath=no
11510 hardcode_into_libs=yes
11511 ;;
9c60689e 11512
a243b558
JF
11513irix5* | irix6* | nonstopux*)
11514 case $host_os in
11515 nonstopux*) version_type=nonstopux ;;
11516 *)
11517 if test "$lt_cv_prog_gnu_ld" = yes; then
11518 version_type=linux # correct to gnu/linux during the next big refactor
11519 else
11520 version_type=irix
11521 fi ;;
11522 esac
11523 need_lib_prefix=no
11524 need_version=no
11525 soname_spec='${libname}${release}${shared_ext}$major'
11526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11527 case $host_os in
11528 irix5* | nonstopux*)
11529 libsuff= shlibsuff=
11530 ;;
11531 *)
11532 case $LD in # libtool.m4 will add one of these switches to LD
11533 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11534 libsuff= shlibsuff= libmagic=32-bit;;
11535 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11536 libsuff=32 shlibsuff=N32 libmagic=N32;;
11537 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11538 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11539 *) libsuff= shlibsuff= libmagic=never-match;;
11540 esac
11541 ;;
11542 esac
11543 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11544 shlibpath_overrides_runpath=no
11545 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11546 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11547 hardcode_into_libs=yes
11548 ;;
9c60689e 11549
a243b558
JF
11550# No shared lib support for Linux oldld, aout, or coff.
11551linux*oldld* | linux*aout* | linux*coff*)
11552 dynamic_linker=no
11553 ;;
9c60689e 11554
a243b558
JF
11555# This must be glibc/ELF.
11556linux* | k*bsd*-gnu | kopensolaris*-gnu)
11557 version_type=linux # correct to gnu/linux during the next big refactor
11558 need_lib_prefix=no
11559 need_version=no
11560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11561 soname_spec='${libname}${release}${shared_ext}$major'
11562 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11563 shlibpath_var=LD_LIBRARY_PATH
11564 shlibpath_overrides_runpath=no
9c60689e 11565
a243b558
JF
11566 # Some binutils ld are patched to set DT_RUNPATH
11567 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
9c60689e
DWT
11568 $as_echo_n "(cached) " >&6
11569else
a243b558
JF
11570 lt_cv_shlibpath_overrides_runpath=no
11571 save_LDFLAGS=$LDFLAGS
11572 save_libdir=$libdir
11573 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11574 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11576/* end confdefs.h. */
ee134472 11577
a243b558
JF
11578int
11579main ()
9c60689e 11580{
9c60689e 11581
a243b558
JF
11582 ;
11583 return 0;
11584}
11585_ACEOF
11586if ac_fn_c_try_link "$LINENO"; then :
11587 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11588 lt_cv_shlibpath_overrides_runpath=yes
11589fi
11590fi
11591rm -f core conftest.err conftest.$ac_objext \
11592 conftest$ac_exeext conftest.$ac_ext
11593 LDFLAGS=$save_LDFLAGS
11594 libdir=$save_libdir
9c60689e 11595
a243b558 11596fi
9c60689e 11597
a243b558 11598 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
9c60689e 11599
a243b558
JF
11600 # This implies no fast_install, which is unacceptable.
11601 # Some rework will be needed to allow for fast_install
11602 # before this can be enabled.
11603 hardcode_into_libs=yes
9c60689e 11604
a243b558
JF
11605 # Append ld.so.conf contents to the search path
11606 if test -f /etc/ld.so.conf; then
11607 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' ' '`
11608 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11609 fi
ee134472 11610
a243b558
JF
11611 # We used to test for /lib/ld.so.1 and disable shared libraries on
11612 # powerpc, because MkLinux only supported shared libraries with the
11613 # GNU dynamic linker. Since this was broken with cross compilers,
11614 # most powerpc-linux boxes support dynamic linking these days and
11615 # people can always --disable-shared, the test was removed, and we
11616 # assume the GNU/Linux dynamic linker is in use.
11617 dynamic_linker='GNU/Linux ld.so'
11618 ;;
9c60689e 11619
a243b558
JF
11620netbsd*)
11621 version_type=sunos
11622 need_lib_prefix=no
11623 need_version=no
11624 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11626 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11627 dynamic_linker='NetBSD (a.out) ld.so'
9c60689e 11628 else
a243b558
JF
11629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11630 soname_spec='${libname}${release}${shared_ext}$major'
11631 dynamic_linker='NetBSD ld.elf_so'
9c60689e 11632 fi
a243b558
JF
11633 shlibpath_var=LD_LIBRARY_PATH
11634 shlibpath_overrides_runpath=yes
11635 hardcode_into_libs=yes
11636 ;;
9c60689e 11637
a243b558
JF
11638newsos6)
11639 version_type=linux # correct to gnu/linux during the next big refactor
11640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11641 shlibpath_var=LD_LIBRARY_PATH
11642 shlibpath_overrides_runpath=yes
11643 ;;
9c60689e 11644
a243b558
JF
11645*nto* | *qnx*)
11646 version_type=qnx
11647 need_lib_prefix=no
11648 need_version=no
11649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11650 soname_spec='${libname}${release}${shared_ext}$major'
11651 shlibpath_var=LD_LIBRARY_PATH
11652 shlibpath_overrides_runpath=no
11653 hardcode_into_libs=yes
11654 dynamic_linker='ldqnx.so'
11655 ;;
9c60689e 11656
a243b558
JF
11657openbsd*)
11658 version_type=sunos
11659 sys_lib_dlsearch_path_spec="/usr/lib"
11660 need_lib_prefix=no
11661 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11662 case $host_os in
11663 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11664 *) need_version=no ;;
9c60689e 11665 esac
a243b558
JF
11666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11667 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11668 shlibpath_var=LD_LIBRARY_PATH
11669 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11670 case $host_os in
11671 openbsd2.[89] | openbsd2.[89].*)
11672 shlibpath_overrides_runpath=no
11673 ;;
11674 *)
11675 shlibpath_overrides_runpath=yes
11676 ;;
11677 esac
11678 else
11679 shlibpath_overrides_runpath=yes
11680 fi
11681 ;;
9c60689e 11682
a243b558
JF
11683os2*)
11684 libname_spec='$name'
11685 shrext_cmds=".dll"
11686 need_lib_prefix=no
11687 library_names_spec='$libname${shared_ext} $libname.a'
11688 dynamic_linker='OS/2 ld.exe'
11689 shlibpath_var=LIBPATH
11690 ;;
9c60689e 11691
a243b558
JF
11692osf3* | osf4* | osf5*)
11693 version_type=osf
11694 need_lib_prefix=no
11695 need_version=no
11696 soname_spec='${libname}${release}${shared_ext}$major'
11697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11698 shlibpath_var=LD_LIBRARY_PATH
11699 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11700 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11701 ;;
11702
11703rdos*)
11704 dynamic_linker=no
11705 ;;
11706
11707solaris*)
11708 version_type=linux # correct to gnu/linux during the next big refactor
11709 need_lib_prefix=no
11710 need_version=no
11711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11712 soname_spec='${libname}${release}${shared_ext}$major'
11713 shlibpath_var=LD_LIBRARY_PATH
11714 shlibpath_overrides_runpath=yes
11715 hardcode_into_libs=yes
11716 # ldd complains unless libraries are executable
11717 postinstall_cmds='chmod +x $lib'
11718 ;;
9c60689e 11719
a243b558
JF
11720sunos4*)
11721 version_type=sunos
11722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11723 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11724 shlibpath_var=LD_LIBRARY_PATH
11725 shlibpath_overrides_runpath=yes
11726 if test "$with_gnu_ld" = yes; then
11727 need_lib_prefix=no
11728 fi
11729 need_version=yes
11730 ;;
9c60689e 11731
a243b558
JF
11732sysv4 | sysv4.3*)
11733 version_type=linux # correct to gnu/linux during the next big refactor
11734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11735 soname_spec='${libname}${release}${shared_ext}$major'
11736 shlibpath_var=LD_LIBRARY_PATH
11737 case $host_vendor in
11738 sni)
11739 shlibpath_overrides_runpath=no
11740 need_lib_prefix=no
11741 runpath_var=LD_RUN_PATH
11742 ;;
11743 siemens)
11744 need_lib_prefix=no
11745 ;;
11746 motorola)
11747 need_lib_prefix=no
11748 need_version=no
11749 shlibpath_overrides_runpath=no
11750 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11751 ;;
11752 esac
11753 ;;
9c60689e 11754
a243b558
JF
11755sysv4*MP*)
11756 if test -d /usr/nec ;then
11757 version_type=linux # correct to gnu/linux during the next big refactor
11758 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11759 soname_spec='$libname${shared_ext}.$major'
11760 shlibpath_var=LD_LIBRARY_PATH
11761 fi
11762 ;;
9c60689e 11763
a243b558
JF
11764sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11765 version_type=freebsd-elf
11766 need_lib_prefix=no
11767 need_version=no
11768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11769 soname_spec='${libname}${release}${shared_ext}$major'
11770 shlibpath_var=LD_LIBRARY_PATH
11771 shlibpath_overrides_runpath=yes
11772 hardcode_into_libs=yes
11773 if test "$with_gnu_ld" = yes; then
11774 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11775 else
11776 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11777 case $host_os in
11778 sco3.2v5*)
11779 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11780 ;;
11781 esac
11782 fi
11783 sys_lib_dlsearch_path_spec='/usr/lib'
11784 ;;
9c60689e 11785
a243b558
JF
11786tpf*)
11787 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11788 version_type=linux # correct to gnu/linux during the next big refactor
11789 need_lib_prefix=no
11790 need_version=no
11791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11792 shlibpath_var=LD_LIBRARY_PATH
11793 shlibpath_overrides_runpath=no
11794 hardcode_into_libs=yes
11795 ;;
9c60689e 11796
a243b558
JF
11797uts4*)
11798 version_type=linux # correct to gnu/linux during the next big refactor
11799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11800 soname_spec='${libname}${release}${shared_ext}$major'
11801 shlibpath_var=LD_LIBRARY_PATH
11802 ;;
9c60689e 11803
a243b558
JF
11804*)
11805 dynamic_linker=no
11806 ;;
11807esac
11808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11809$as_echo "$dynamic_linker" >&6; }
11810test "$dynamic_linker" = no && can_build_shared=no
9c60689e 11811
a243b558
JF
11812variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11813if test "$GCC" = yes; then
11814 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11815fi
9c60689e 11816
a243b558
JF
11817if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11818 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11819fi
11820if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11821 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11822fi
9c60689e
DWT
11823
11824
11825
11826
11827
11828
11829
11830
9c60689e
DWT
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
9c60689e 11843
9c60689e 11844
9c60689e 11845
9c60689e 11846
9c60689e
DWT
11847
11848
11849
11850
9c60689e 11851
9c60689e
DWT
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
53ba6704
JF
11865
11866
9c60689e
DWT
11867
11868
11869
11870
9c60689e
DWT
11871
11872
3fd51f51 11873
66170b30
JF
11874
11875
11876
3fd51f51 11877
12833ad8
JF
11878
11879
11880
11881
3fd51f51 11882
3fd51f51
DWT
11883
11884
3fd51f51 11885
3fd51f51 11886
3fd51f51 11887
66170b30 11888
632b71ea 11889
632b71ea
DWT
11890
11891
790e5246 11892
66170b30 11893
9c60689e 11894
9c60689e
DWT
11895
11896
9c60689e 11897
9c60689e
DWT
11898
11899
66170b30 11900
66170b30 11901
9c60689e 11902
e9c9a47c
DWT
11903
11904
11905
66170b30
JF
11906
11907
66170b30 11908
e9c9a47c 11909
a243b558
JF
11910
11911
11912
11913
11914
11915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11916$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11917hardcode_action=
11918if test -n "$hardcode_libdir_flag_spec" ||
11919 test -n "$runpath_var" ||
11920 test "X$hardcode_automatic" = "Xyes" ; then
11921
11922 # We can hardcode non-existent directories.
11923 if test "$hardcode_direct" != no &&
11924 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11925 # have to relink, otherwise we might link with an installed library
11926 # when we should be linking with a yet-to-be-installed one
11927 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11928 test "$hardcode_minus_L" != no; then
11929 # Linking always hardcodes the temporary library directory.
11930 hardcode_action=relink
11931 else
11932 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11933 hardcode_action=immediate
9c60689e 11934 fi
e9c9a47c 11935else
a243b558
JF
11936 # We cannot hardcode anything, or else we can only hardcode existing
11937 # directories.
11938 hardcode_action=unsupported
11939fi
11940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11941$as_echo "$hardcode_action" >&6; }
11942
11943if test "$hardcode_action" = relink ||
11944 test "$inherit_rpath" = yes; then
11945 # Fast installation is not supported
11946 enable_fast_install=no
11947elif test "$shlibpath_overrides_runpath" = yes ||
11948 test "$enable_shared" = no; then
11949 # Fast installation is not necessary
11950 enable_fast_install=needless
9c60689e 11951fi
9c60689e 11952
9c60689e 11953
66170b30 11954
66170b30 11955
9c60689e 11956
a243b558
JF
11957
11958 if test "x$enable_dlopen" != xyes; then
11959 enable_dlopen=unknown
11960 enable_dlopen_self=unknown
11961 enable_dlopen_self_static=unknown
66170b30 11962else
a243b558
JF
11963 lt_cv_dlopen=no
11964 lt_cv_dlopen_libs=
66170b30 11965
a243b558
JF
11966 case $host_os in
11967 beos*)
11968 lt_cv_dlopen="load_add_on"
11969 lt_cv_dlopen_libs=
11970 lt_cv_dlopen_self=yes
11971 ;;
66170b30 11972
a243b558
JF
11973 mingw* | pw32* | cegcc*)
11974 lt_cv_dlopen="LoadLibrary"
11975 lt_cv_dlopen_libs=
11976 ;;
66170b30 11977
a243b558
JF
11978 cygwin*)
11979 lt_cv_dlopen="dlopen"
11980 lt_cv_dlopen_libs=
11981 ;;
66170b30 11982
a243b558
JF
11983 darwin*)
11984 # if libdl is installed we need to link against it
11985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11986$as_echo_n "checking for dlopen in -ldl... " >&6; }
11987if ${ac_cv_lib_dl_dlopen+:} false; then :
11988 $as_echo_n "(cached) " >&6
11989else
11990 ac_check_lib_save_LIBS=$LIBS
11991LIBS="-ldl $LIBS"
11992cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11993/* end confdefs.h. */
66170b30 11994
a243b558
JF
11995/* Override any GCC internal prototype to avoid an error.
11996 Use char because int might match the return type of a GCC
11997 builtin and then its argument prototype would still apply. */
11998#ifdef __cplusplus
11999extern "C"
12000#endif
12001char dlopen ();
12002int
12003main ()
12004{
12005return dlopen ();
12006 ;
12007 return 0;
12008}
12009_ACEOF
12010if ac_fn_c_try_link "$LINENO"; then :
12011 ac_cv_lib_dl_dlopen=yes
12012else
12013 ac_cv_lib_dl_dlopen=no
66170b30 12014fi
a243b558
JF
12015rm -f core conftest.err conftest.$ac_objext \
12016 conftest$ac_exeext conftest.$ac_ext
12017LIBS=$ac_check_lib_save_LIBS
66170b30 12018fi
a243b558
JF
12019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12020$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12021if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12022 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12023else
66170b30 12024
a243b558
JF
12025 lt_cv_dlopen="dyld"
12026 lt_cv_dlopen_libs=
12027 lt_cv_dlopen_self=yes
66170b30 12028
a243b558 12029fi
9c60689e 12030
a243b558 12031 ;;
9c60689e 12032
a243b558
JF
12033 *)
12034 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12035if test "x$ac_cv_func_shl_load" = xyes; then :
12036 lt_cv_dlopen="shl_load"
12037else
12038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12039$as_echo_n "checking for shl_load in -ldld... " >&6; }
12040if ${ac_cv_lib_dld_shl_load+:} false; then :
12041 $as_echo_n "(cached) " >&6
12042else
12043 ac_check_lib_save_LIBS=$LIBS
12044LIBS="-ldld $LIBS"
12045cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12046/* end confdefs.h. */
66170b30 12047
a243b558
JF
12048/* Override any GCC internal prototype to avoid an error.
12049 Use char because int might match the return type of a GCC
12050 builtin and then its argument prototype would still apply. */
12051#ifdef __cplusplus
12052extern "C"
12053#endif
12054char shl_load ();
12055int
12056main ()
12057{
12058return shl_load ();
12059 ;
12060 return 0;
12061}
12062_ACEOF
12063if ac_fn_c_try_link "$LINENO"; then :
12064 ac_cv_lib_dld_shl_load=yes
66170b30 12065else
a243b558
JF
12066 ac_cv_lib_dld_shl_load=no
12067fi
12068rm -f core conftest.err conftest.$ac_objext \
12069 conftest$ac_exeext conftest.$ac_ext
12070LIBS=$ac_check_lib_save_LIBS
66170b30 12071fi
a243b558
JF
12072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12073$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12074if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12075 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12076else
12077 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12078if test "x$ac_cv_func_dlopen" = xyes; then :
12079 lt_cv_dlopen="dlopen"
12080else
12081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12082$as_echo_n "checking for dlopen in -ldl... " >&6; }
12083if ${ac_cv_lib_dl_dlopen+:} false; then :
12084 $as_echo_n "(cached) " >&6
12085else
12086 ac_check_lib_save_LIBS=$LIBS
12087LIBS="-ldl $LIBS"
12088cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12089/* end confdefs.h. */
e9c9a47c 12090
a243b558
JF
12091/* Override any GCC internal prototype to avoid an error.
12092 Use char because int might match the return type of a GCC
12093 builtin and then its argument prototype would still apply. */
12094#ifdef __cplusplus
12095extern "C"
12096#endif
12097char dlopen ();
12098int
12099main ()
12100{
12101return dlopen ();
12102 ;
12103 return 0;
12104}
12105_ACEOF
12106if ac_fn_c_try_link "$LINENO"; then :
12107 ac_cv_lib_dl_dlopen=yes
12108else
12109 ac_cv_lib_dl_dlopen=no
12110fi
12111rm -f core conftest.err conftest.$ac_objext \
12112 conftest$ac_exeext conftest.$ac_ext
12113LIBS=$ac_check_lib_save_LIBS
12114fi
12115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12116$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12117if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12118 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12119else
12120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12121$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12122if ${ac_cv_lib_svld_dlopen+:} false; then :
12123 $as_echo_n "(cached) " >&6
12124else
12125 ac_check_lib_save_LIBS=$LIBS
12126LIBS="-lsvld $LIBS"
12127cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12128/* end confdefs.h. */
12129
12130/* Override any GCC internal prototype to avoid an error.
12131 Use char because int might match the return type of a GCC
12132 builtin and then its argument prototype would still apply. */
12133#ifdef __cplusplus
12134extern "C"
12135#endif
12136char dlopen ();
12137int
12138main ()
12139{
12140return dlopen ();
12141 ;
12142 return 0;
12143}
12144_ACEOF
12145if ac_fn_c_try_link "$LINENO"; then :
12146 ac_cv_lib_svld_dlopen=yes
12147else
12148 ac_cv_lib_svld_dlopen=no
12149fi
12150rm -f core conftest.err conftest.$ac_objext \
12151 conftest$ac_exeext conftest.$ac_ext
12152LIBS=$ac_check_lib_save_LIBS
12153fi
12154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12155$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12156if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12157 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12158else
12159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12160$as_echo_n "checking for dld_link in -ldld... " >&6; }
12161if ${ac_cv_lib_dld_dld_link+:} false; then :
12162 $as_echo_n "(cached) " >&6
12163else
12164 ac_check_lib_save_LIBS=$LIBS
12165LIBS="-ldld $LIBS"
12166cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12167/* end confdefs.h. */
12168
12169/* Override any GCC internal prototype to avoid an error.
12170 Use char because int might match the return type of a GCC
12171 builtin and then its argument prototype would still apply. */
12172#ifdef __cplusplus
12173extern "C"
12174#endif
12175char dld_link ();
12176int
12177main ()
12178{
12179return dld_link ();
12180 ;
12181 return 0;
12182}
12183_ACEOF
12184if ac_fn_c_try_link "$LINENO"; then :
12185 ac_cv_lib_dld_dld_link=yes
9c60689e 12186else
a243b558
JF
12187 ac_cv_lib_dld_dld_link=no
12188fi
12189rm -f core conftest.err conftest.$ac_objext \
12190 conftest$ac_exeext conftest.$ac_ext
12191LIBS=$ac_check_lib_save_LIBS
12192fi
12193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12194$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12195if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12196 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
9c60689e
DWT
12197fi
12198
12199
a243b558 12200fi
66170b30 12201
66170b30 12202
a243b558 12203fi
66170b30 12204
66170b30
JF
12205
12206fi
e9c9a47c 12207
66170b30 12208
a243b558 12209fi
66170b30 12210
66170b30 12211
66170b30 12212fi
e9c9a47c 12213
a243b558
JF
12214 ;;
12215 esac
9c60689e 12216
a243b558
JF
12217 if test "x$lt_cv_dlopen" != xno; then
12218 enable_dlopen=yes
12219 else
12220 enable_dlopen=no
12221 fi
9c60689e 12222
a243b558
JF
12223 case $lt_cv_dlopen in
12224 dlopen)
12225 save_CPPFLAGS="$CPPFLAGS"
12226 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
66170b30 12227
a243b558
JF
12228 save_LDFLAGS="$LDFLAGS"
12229 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
66170b30 12230
a243b558
JF
12231 save_LIBS="$LIBS"
12232 LIBS="$lt_cv_dlopen_libs $LIBS"
3fd51f51 12233
a243b558
JF
12234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12235$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12236if ${lt_cv_dlopen_self+:} false; then :
12237 $as_echo_n "(cached) " >&6
e9c9a47c 12238else
a243b558
JF
12239 if test "$cross_compiling" = yes; then :
12240 lt_cv_dlopen_self=cross
12241else
12242 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12243 lt_status=$lt_dlunknown
12244 cat > conftest.$ac_ext <<_LT_EOF
12245#line $LINENO "configure"
12246#include "confdefs.h"
e9c9a47c 12247
a243b558
JF
12248#if HAVE_DLFCN_H
12249#include <dlfcn.h>
12250#endif
e9c9a47c 12251
a243b558 12252#include <stdio.h>
66170b30 12253
a243b558
JF
12254#ifdef RTLD_GLOBAL
12255# define LT_DLGLOBAL RTLD_GLOBAL
12256#else
12257# ifdef DL_GLOBAL
12258# define LT_DLGLOBAL DL_GLOBAL
12259# else
12260# define LT_DLGLOBAL 0
12261# endif
12262#endif
66170b30 12263
a243b558
JF
12264/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12265 find out it does not work in some platform. */
12266#ifndef LT_DLLAZY_OR_NOW
12267# ifdef RTLD_LAZY
12268# define LT_DLLAZY_OR_NOW RTLD_LAZY
12269# else
12270# ifdef DL_LAZY
12271# define LT_DLLAZY_OR_NOW DL_LAZY
12272# else
12273# ifdef RTLD_NOW
12274# define LT_DLLAZY_OR_NOW RTLD_NOW
12275# else
12276# ifdef DL_NOW
12277# define LT_DLLAZY_OR_NOW DL_NOW
12278# else
12279# define LT_DLLAZY_OR_NOW 0
12280# endif
12281# endif
12282# endif
12283# endif
12284#endif
e9c9a47c 12285
a243b558
JF
12286/* When -fvisbility=hidden is used, assume the code has been annotated
12287 correspondingly for the symbols needed. */
12288#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12289int fnord () __attribute__((visibility("default")));
12290#endif
e9c9a47c 12291
a243b558
JF
12292int fnord () { return 42; }
12293int main ()
12294{
12295 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12296 int status = $lt_dlunknown;
e9c9a47c 12297
a243b558
JF
12298 if (self)
12299 {
12300 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12301 else
12302 {
12303 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12304 else puts (dlerror ());
12305 }
12306 /* dlclose (self); */
12307 }
12308 else
12309 puts (dlerror ());
e9c9a47c 12310
a243b558
JF
12311 return status;
12312}
12313_LT_EOF
12314 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12315 (eval $ac_link) 2>&5
12316 ac_status=$?
12317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12318 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12319 (./conftest; exit; ) >&5 2>/dev/null
12320 lt_status=$?
12321 case x$lt_status in
12322 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12323 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12324 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12325 esac
12326 else :
12327 # compilation failed
12328 lt_cv_dlopen_self=no
12329 fi
12330fi
12331rm -fr conftest*
e9c9a47c 12332
e9c9a47c 12333
e9c9a47c 12334fi
a243b558
JF
12335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12336$as_echo "$lt_cv_dlopen_self" >&6; }
e9c9a47c 12337
a243b558
JF
12338 if test "x$lt_cv_dlopen_self" = xyes; then
12339 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12341$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12342if ${lt_cv_dlopen_self_static+:} false; then :
12343 $as_echo_n "(cached) " >&6
e9c9a47c 12344else
a243b558
JF
12345 if test "$cross_compiling" = yes; then :
12346 lt_cv_dlopen_self_static=cross
12347else
12348 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12349 lt_status=$lt_dlunknown
12350 cat > conftest.$ac_ext <<_LT_EOF
12351#line $LINENO "configure"
12352#include "confdefs.h"
12353
12354#if HAVE_DLFCN_H
12355#include <dlfcn.h>
12356#endif
12357
12358#include <stdio.h>
e9c9a47c 12359
a243b558
JF
12360#ifdef RTLD_GLOBAL
12361# define LT_DLGLOBAL RTLD_GLOBAL
12362#else
12363# ifdef DL_GLOBAL
12364# define LT_DLGLOBAL DL_GLOBAL
12365# else
12366# define LT_DLGLOBAL 0
12367# endif
12368#endif
e9c9a47c 12369
a243b558
JF
12370/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12371 find out it does not work in some platform. */
12372#ifndef LT_DLLAZY_OR_NOW
12373# ifdef RTLD_LAZY
12374# define LT_DLLAZY_OR_NOW RTLD_LAZY
12375# else
12376# ifdef DL_LAZY
12377# define LT_DLLAZY_OR_NOW DL_LAZY
12378# else
12379# ifdef RTLD_NOW
12380# define LT_DLLAZY_OR_NOW RTLD_NOW
12381# else
12382# ifdef DL_NOW
12383# define LT_DLLAZY_OR_NOW DL_NOW
12384# else
12385# define LT_DLLAZY_OR_NOW 0
12386# endif
12387# endif
12388# endif
12389# endif
12390#endif
66170b30 12391
a243b558
JF
12392/* When -fvisbility=hidden is used, assume the code has been annotated
12393 correspondingly for the symbols needed. */
12394#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12395int fnord () __attribute__((visibility("default")));
12396#endif
e9c9a47c 12397
a243b558
JF
12398int fnord () { return 42; }
12399int main ()
12400{
12401 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12402 int status = $lt_dlunknown;
e9c9a47c 12403
a243b558
JF
12404 if (self)
12405 {
12406 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12407 else
12408 {
12409 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12410 else puts (dlerror ());
12411 }
12412 /* dlclose (self); */
12413 }
12414 else
12415 puts (dlerror ());
e9c9a47c 12416
a243b558
JF
12417 return status;
12418}
12419_LT_EOF
12420 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12421 (eval $ac_link) 2>&5
12422 ac_status=$?
12423 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12424 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12425 (./conftest; exit; ) >&5 2>/dev/null
12426 lt_status=$?
12427 case x$lt_status in
12428 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12429 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12430 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12431 esac
12432 else :
12433 # compilation failed
12434 lt_cv_dlopen_self_static=no
12435 fi
12436fi
12437rm -fr conftest*
e9c9a47c 12438
b65019fe 12439
a243b558
JF
12440fi
12441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12442$as_echo "$lt_cv_dlopen_self_static" >&6; }
12443 fi
66170b30 12444
a243b558
JF
12445 CPPFLAGS="$save_CPPFLAGS"
12446 LDFLAGS="$save_LDFLAGS"
12447 LIBS="$save_LIBS"
12448 ;;
12449 esac
66170b30 12450
a243b558
JF
12451 case $lt_cv_dlopen_self in
12452 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12453 *) enable_dlopen_self=unknown ;;
12454 esac
12455
12456 case $lt_cv_dlopen_self_static in
12457 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12458 *) enable_dlopen_self_static=unknown ;;
12459 esac
b65019fe
DWT
12460fi
12461
12462
66170b30 12463
b65019fe 12464
e9c9a47c 12465
e9c9a47c
DWT
12466
12467
e9c9a47c 12468
e9c9a47c
DWT
12469
12470
e9c9a47c 12471
e9c9a47c 12472
3530897b 12473
47aaa820 12474
47aaa820 12475
a243b558
JF
12476
12477
12478striplib=
12479old_striplib=
12480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12481$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12482if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12483 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12484 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12486$as_echo "yes" >&6; }
47aaa820 12487else
a243b558
JF
12488# FIXME - insert some real tests, host_os isn't really good enough
12489 case $host_os in
12490 darwin*)
12491 if test -n "$STRIP" ; then
12492 striplib="$STRIP -x"
12493 old_striplib="$STRIP -S"
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12495$as_echo "yes" >&6; }
12496 else
12497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12498$as_echo "no" >&6; }
12499 fi
12500 ;;
12501 *)
12502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12503$as_echo "no" >&6; }
12504 ;;
12505 esac
3530897b 12506fi
47aaa820 12507
3530897b
DWT
12508
12509
9c60689e 12510
9c60689e 12511
9c60689e 12512
9c60689e 12513
9c60689e 12514
66170b30 12515
66170b30 12516
66170b30 12517
66170b30 12518
a243b558
JF
12519 # Report which library types will actually be built
12520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12521$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12523$as_echo "$can_build_shared" >&6; }
66170b30 12524
a243b558
JF
12525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12526$as_echo_n "checking whether to build shared libraries... " >&6; }
12527 test "$can_build_shared" = "no" && enable_shared=no
66170b30 12528
a243b558
JF
12529 # On AIX, shared libraries and static libraries use the same namespace, and
12530 # are all built from PIC.
12531 case $host_os in
12532 aix3*)
12533 test "$enable_shared" = yes && enable_static=no
12534 if test -n "$RANLIB"; then
12535 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12536 postinstall_cmds='$RANLIB $lib'
12537 fi
12538 ;;
66170b30 12539
a243b558
JF
12540 aix[4-9]*)
12541 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12542 test "$enable_shared" = yes && enable_static=no
12543 fi
12544 ;;
12545 esac
12546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12547$as_echo "$enable_shared" >&6; }
66170b30 12548
a243b558
JF
12549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12550$as_echo_n "checking whether to build static libraries... " >&6; }
12551 # Make sure either enable_shared or enable_static is yes.
12552 test "$enable_shared" = yes || enable_static=yes
12553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12554$as_echo "$enable_static" >&6; }
66170b30 12555
9c60689e 12556
e9c9a47c 12557
9c60689e 12558
a243b558
JF
12559fi
12560ac_ext=c
12561ac_cpp='$CPP $CPPFLAGS'
12562ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12563ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12564ac_compiler_gnu=$ac_cv_c_compiler_gnu
12565
12566CC="$lt_save_CC"
e9c9a47c 12567
ee134472 12568 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
e9c9a47c
DWT
12569 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12570 (test "X$CXX" != "Xg++"))) ; then
12571 ac_ext=cpp
12572ac_cpp='$CXXCPP $CPPFLAGS'
12573ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12574ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12575ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12577$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12578if test -z "$CXXCPP"; then
ee134472 12579 if ${ac_cv_prog_CXXCPP+:} false; then :
e9c9a47c
DWT
12580 $as_echo_n "(cached) " >&6
12581else
12582 # Double quotes because CXXCPP needs to be expanded
12583 for CXXCPP in "$CXX -E" "/lib/cpp"
12584 do
12585 ac_preproc_ok=false
12586for ac_cxx_preproc_warn_flag in '' yes
12587do
12588 # Use a header file that comes with gcc, so configuring glibc
12589 # with a fresh cross-compiler works.
12590 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12591 # <limits.h> exists even on freestanding compilers.
12592 # On the NeXT, cc -E runs the code through the compiler's parser,
12593 # not just through cpp. "Syntax error" is here to catch this case.
12594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12595/* end confdefs.h. */
12596#ifdef __STDC__
12597# include <limits.h>
12598#else
12599# include <assert.h>
12600#endif
12601 Syntax error
12602_ACEOF
12603if ac_fn_cxx_try_cpp "$LINENO"; then :
12604
12605else
12606 # Broken: fails on valid input.
12607continue
12608fi
12833ad8 12609rm -f conftest.err conftest.i conftest.$ac_ext
e9c9a47c
DWT
12610
12611 # OK, works on sane cases. Now check whether nonexistent headers
12612 # can be detected and how.
12613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12614/* end confdefs.h. */
12615#include <ac_nonexistent.h>
12616_ACEOF
12617if ac_fn_cxx_try_cpp "$LINENO"; then :
12618 # Broken: success on invalid input.
12619continue
12620else
12621 # Passes both tests.
12622ac_preproc_ok=:
12623break
12624fi
12833ad8 12625rm -f conftest.err conftest.i conftest.$ac_ext
e9c9a47c
DWT
12626
12627done
12628# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12833ad8 12629rm -f conftest.i conftest.err conftest.$ac_ext
e9c9a47c
DWT
12630if $ac_preproc_ok; then :
12631 break
12632fi
12633
12634 done
12635 ac_cv_prog_CXXCPP=$CXXCPP
12636
12637fi
12638 CXXCPP=$ac_cv_prog_CXXCPP
12639else
12640 ac_cv_prog_CXXCPP=$CXXCPP
12641fi
12642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12643$as_echo "$CXXCPP" >&6; }
12644ac_preproc_ok=false
12645for ac_cxx_preproc_warn_flag in '' yes
12646do
12647 # Use a header file that comes with gcc, so configuring glibc
12648 # with a fresh cross-compiler works.
12649 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12650 # <limits.h> exists even on freestanding compilers.
12651 # On the NeXT, cc -E runs the code through the compiler's parser,
12652 # not just through cpp. "Syntax error" is here to catch this case.
12653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12654/* end confdefs.h. */
12655#ifdef __STDC__
12656# include <limits.h>
12657#else
12658# include <assert.h>
12659#endif
12660 Syntax error
12661_ACEOF
12662if ac_fn_cxx_try_cpp "$LINENO"; then :
12663
12664else
12665 # Broken: fails on valid input.
12666continue
12667fi
12833ad8 12668rm -f conftest.err conftest.i conftest.$ac_ext
e9c9a47c
DWT
12669
12670 # OK, works on sane cases. Now check whether nonexistent headers
12671 # can be detected and how.
12672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12673/* end confdefs.h. */
12674#include <ac_nonexistent.h>
12675_ACEOF
12676if ac_fn_cxx_try_cpp "$LINENO"; then :
12677 # Broken: success on invalid input.
12678continue
12679else
12680 # Passes both tests.
12681ac_preproc_ok=:
12682break
12683fi
12833ad8 12684rm -f conftest.err conftest.i conftest.$ac_ext
e9c9a47c
DWT
12685
12686done
12687# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12833ad8 12688rm -f conftest.i conftest.err conftest.$ac_ext
e9c9a47c
DWT
12689if $ac_preproc_ok; then :
12690
12691else
12692 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12693$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
ee134472
JF
12694as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12695See \`config.log' for more details" "$LINENO" 5; }
e9c9a47c
DWT
12696fi
12697
a243b558
JF
12698ac_ext=c
12699ac_cpp='$CPP $CPPFLAGS'
12700ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12701ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12702ac_compiler_gnu=$ac_cv_c_compiler_gnu
66170b30
JF
12703
12704else
e9c9a47c
DWT
12705 _lt_caught_CXX_error=yes
12706fi
12707
9c60689e
DWT
12708ac_ext=cpp
12709ac_cpp='$CXXCPP $CPPFLAGS'
12710ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12711ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12712ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9c60689e 12713
47aaa820
DWT
12714archive_cmds_need_lc_CXX=no
12715allow_undefined_flag_CXX=
12716always_export_symbols_CXX=no
12717archive_expsym_cmds_CXX=
12718compiler_needs_object_CXX=no
12719export_dynamic_flag_spec_CXX=
12720hardcode_direct_CXX=no
12721hardcode_direct_absolute_CXX=no
12722hardcode_libdir_flag_spec_CXX=
47aaa820
DWT
12723hardcode_libdir_separator_CXX=
12724hardcode_minus_L_CXX=no
12725hardcode_shlibpath_var_CXX=unsupported
12726hardcode_automatic_CXX=no
12727inherit_rpath_CXX=no
12728module_cmds_CXX=
12729module_expsym_cmds_CXX=
12730link_all_deplibs_CXX=unknown
12731old_archive_cmds_CXX=$old_archive_cmds
ee134472
JF
12732reload_flag_CXX=$reload_flag
12733reload_cmds_CXX=$reload_cmds
47aaa820
DWT
12734no_undefined_flag_CXX=
12735whole_archive_flag_spec_CXX=
12736enable_shared_with_static_runtimes_CXX=no
9c60689e 12737
47aaa820
DWT
12738# Source file extension for C++ test sources.
12739ac_ext=cpp
9c60689e 12740
47aaa820
DWT
12741# Object file extension for compiled C++ test sources.
12742objext=o
12743objext_CXX=$objext
9c60689e 12744
47aaa820
DWT
12745# No sense in running all these tests if we already determined that
12746# the CXX compiler isn't working. Some variables (like enable_shared)
12747# are currently assumed to apply to all compilers on this platform,
12748# and will be corrupted by setting them based on a non-working compiler.
12749if test "$_lt_caught_CXX_error" != yes; then
12750 # Code to be used in simple compile tests
12751 lt_simple_compile_test_code="int some_variable = 0;"
9c60689e 12752
47aaa820
DWT
12753 # Code to be used in simple link tests
12754 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
9c60689e 12755
47aaa820 12756 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9c60689e 12757
9c60689e 12758
9c60689e 12759
9c60689e 12760
9c60689e 12761
9c60689e 12762
47aaa820
DWT
12763# If no C compiler was specified, use CC.
12764LTCC=${LTCC-"$CC"}
9c60689e 12765
47aaa820
DWT
12766# If no C compiler flags were specified, use CFLAGS.
12767LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9c60689e 12768
47aaa820
DWT
12769# Allow CC to be a program name with arguments.
12770compiler=$CC
9c60689e 12771
9c60689e 12772
47aaa820
DWT
12773 # save warnings/boilerplate of simple test code
12774 ac_outfile=conftest.$ac_objext
12775echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12776eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12777_lt_compiler_boilerplate=`cat conftest.err`
53ba6704 12778$RM -r conftest*
9c60689e 12779
47aaa820
DWT
12780 ac_outfile=conftest.$ac_objext
12781echo "$lt_simple_link_test_code" >conftest.$ac_ext
12782eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12783_lt_linker_boilerplate=`cat conftest.err`
12784$RM -r conftest*
9c60689e 12785
9c60689e 12786
47aaa820
DWT
12787 # Allow CC to be a program name with arguments.
12788 lt_save_CC=$CC
ee134472 12789 lt_save_CFLAGS=$CFLAGS
47aaa820
DWT
12790 lt_save_LD=$LD
12791 lt_save_GCC=$GCC
12792 GCC=$GXX
12793 lt_save_with_gnu_ld=$with_gnu_ld
12794 lt_save_path_LD=$lt_cv_path_LD
12795 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12796 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9c60689e 12797 else
47aaa820 12798 $as_unset lt_cv_prog_gnu_ld
9c60689e 12799 fi
47aaa820
DWT
12800 if test -n "${lt_cv_path_LDCXX+set}"; then
12801 lt_cv_path_LD=$lt_cv_path_LDCXX
9c60689e 12802 else
47aaa820 12803 $as_unset lt_cv_path_LD
9c60689e 12804 fi
47aaa820
DWT
12805 test -z "${LDCXX+set}" || LD=$LDCXX
12806 CC=${CXX-"c++"}
ee134472 12807 CFLAGS=$CXXFLAGS
47aaa820
DWT
12808 compiler=$CC
12809 compiler_CXX=$CC
12810 for cc_temp in $compiler""; do
12811 case $cc_temp in
12812 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12813 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12814 \-*) ;;
12815 *) break;;
12816 esac
12817done
ee134472 12818cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9c60689e
DWT
12819
12820
47aaa820
DWT
12821 if test -n "$compiler"; then
12822 # We don't want -fno-exception when compiling C++ code, so set the
12823 # no_builtin_flag separately
12824 if test "$GXX" = yes; then
12825 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12826 else
12827 lt_prog_compiler_no_builtin_flag_CXX=
12828 fi
9c60689e 12829
47aaa820
DWT
12830 if test "$GXX" = yes; then
12831 # Set up default GNU C++ configuration
12832
12833
12834
12835# Check whether --with-gnu-ld was given.
12836if test "${with_gnu_ld+set}" = set; then :
12837 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9c60689e 12838else
47aaa820 12839 with_gnu_ld=no
9c60689e
DWT
12840fi
12841
47aaa820
DWT
12842ac_prog=ld
12843if test "$GCC" = yes; then
12844 # Check if gcc -print-prog-name=ld gives a path.
12845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12846$as_echo_n "checking for ld used by $CC... " >&6; }
12847 case $host in
12848 *-*-mingw*)
12849 # gcc leaves a trailing carriage return which upsets mingw
12850 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12851 *)
12852 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12853 esac
12854 case $ac_prog in
12855 # Accept absolute paths.
12856 [\\/]* | ?:[\\/]*)
12857 re_direlt='/[^/][^/]*/\.\./'
12858 # Canonicalize the pathname of ld
12859 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12860 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12861 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12862 done
12863 test -z "$LD" && LD="$ac_prog"
12864 ;;
12865 "")
12866 # If it fails, then pretend we aren't using GCC.
12867 ac_prog=ld
12868 ;;
12869 *)
12870 # If it is relative, then search for the first ld in PATH.
12871 with_gnu_ld=unknown
12872 ;;
12873 esac
12874elif test "$with_gnu_ld" = yes; then
12875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12876$as_echo_n "checking for GNU ld... " >&6; }
12877else
12878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12879$as_echo_n "checking for non-GNU ld... " >&6; }
9c60689e 12880fi
ee134472 12881if ${lt_cv_path_LD+:} false; then :
9c60689e
DWT
12882 $as_echo_n "(cached) " >&6
12883else
47aaa820
DWT
12884 if test -z "$LD"; then
12885 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12886 for ac_dir in $PATH; do
12887 IFS="$lt_save_ifs"
12888 test -z "$ac_dir" && ac_dir=.
12889 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12890 lt_cv_path_LD="$ac_dir/$ac_prog"
12891 # Check to see if the program is GNU ld. I'd rather use --version,
12892 # but apparently some variants of GNU ld only accept -v.
12893 # Break only if it was the GNU/non-GNU ld that we prefer.
12894 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12895 *GNU* | *'with BFD'*)
12896 test "$with_gnu_ld" != no && break
12897 ;;
12898 *)
12899 test "$with_gnu_ld" != yes && break
12900 ;;
12901 esac
12902 fi
9c60689e 12903 done
47aaa820
DWT
12904 IFS="$lt_save_ifs"
12905else
12906 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9c60689e
DWT
12907fi
12908fi
47aaa820
DWT
12909
12910LD="$lt_cv_path_LD"
12911if test -n "$LD"; then
12912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12913$as_echo "$LD" >&6; }
9c60689e
DWT
12914else
12915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12916$as_echo "no" >&6; }
12917fi
12833ad8 12918test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
47aaa820
DWT
12919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12920$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
ee134472 12921if ${lt_cv_prog_gnu_ld+:} false; then :
47aaa820
DWT
12922 $as_echo_n "(cached) " >&6
12923else
12924 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12925case `$LD -v 2>&1 </dev/null` in
12926*GNU* | *'with BFD'*)
12927 lt_cv_prog_gnu_ld=yes
12928 ;;
12929*)
12930 lt_cv_prog_gnu_ld=no
12931 ;;
12932esac
12933fi
12934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12935$as_echo "$lt_cv_prog_gnu_ld" >&6; }
12936with_gnu_ld=$lt_cv_prog_gnu_ld
9c60689e
DWT
12937
12938
9c60689e 12939
9c60689e 12940
9c60689e 12941
9c60689e 12942
9c60689e 12943
47aaa820
DWT
12944 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12945 # archiving commands below assume that GNU ld is being used.
12946 if test "$with_gnu_ld" = yes; then
ee134472
JF
12947 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12948 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 12949
47aaa820
DWT
12950 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12951 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9c60689e 12952
47aaa820
DWT
12953 # If archive_cmds runs LD, not CC, wlarc should be empty
12954 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12955 # investigate it a little bit more. (MM)
12956 wlarc='${wl}'
9c60689e 12957
47aaa820
DWT
12958 # ancient GNU ld didn't support --whole-archive et. al.
12959 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12960 $GREP 'no-whole-archive' > /dev/null; then
12961 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12962 else
12963 whole_archive_flag_spec_CXX=
12964 fi
12965 else
12966 with_gnu_ld=no
12967 wlarc=
12968
12969 # A generic and very simple default shared library creation
12970 # command for GNU C++ for the case where it uses the native
12971 # linker, instead of GNU ld. If possible, this setting should
12972 # overridden to take advantage of the native linker features on
12973 # the platform it is being used on.
12974 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12975 fi
12976
12977 # Commands to make compiler produce verbose output that lists
12978 # what "hidden" libraries, object files and flags are used when
12979 # linking a shared library.
ee134472 12980 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
47aaa820
DWT
12981
12982 else
12983 GXX=no
12984 with_gnu_ld=no
12985 wlarc=
12986 fi
12987
12988 # PORTME: fill in a description of your system's C++ link characteristics
12989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12990$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12991 ld_shlibs_CXX=yes
12992 case $host_os in
12993 aix3*)
12994 # FIXME: insert proper C++ library support
12995 ld_shlibs_CXX=no
12996 ;;
12997 aix[4-9]*)
12998 if test "$host_cpu" = ia64; then
12999 # On IA64, the linker does run time linking by default, so we don't
13000 # have to do anything special.
13001 aix_use_runtimelinking=no
13002 exp_sym_flag='-Bexport'
13003 no_entry_flag=""
13004 else
13005 aix_use_runtimelinking=no
13006
13007 # Test if we are trying to use run time linking or normal
13008 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13009 # need to do runtime linking.
13010 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13011 for ld_flag in $LDFLAGS; do
13012 case $ld_flag in
13013 *-brtl*)
13014 aix_use_runtimelinking=yes
13015 break
13016 ;;
13017 esac
13018 done
13019 ;;
13020 esac
13021
13022 exp_sym_flag='-bexport'
13023 no_entry_flag='-bnoentry'
13024 fi
13025
13026 # When large executables or shared objects are built, AIX ld can
13027 # have problems creating the table of contents. If linking a library
13028 # or program results in "error TOC overflow" add -mminimal-toc to
13029 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13030 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13031
13032 archive_cmds_CXX=''
13033 hardcode_direct_CXX=yes
13034 hardcode_direct_absolute_CXX=yes
13035 hardcode_libdir_separator_CXX=':'
13036 link_all_deplibs_CXX=yes
13037 file_list_spec_CXX='${wl}-f,'
13038
13039 if test "$GXX" = yes; then
13040 case $host_os in aix4.[012]|aix4.[012].*)
13041 # We only want to do this on AIX 4.2 and lower, the check
13042 # below for broken collect2 doesn't work under 4.3+
13043 collect2name=`${CC} -print-prog-name=collect2`
13044 if test -f "$collect2name" &&
13045 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13046 then
13047 # We have reworked collect2
13048 :
13049 else
13050 # We have old collect2
13051 hardcode_direct_CXX=unsupported
13052 # It fails to find uninstalled libraries when the uninstalled
13053 # path is not listed in the libpath. Setting hardcode_minus_L
13054 # to unsupported forces relinking
13055 hardcode_minus_L_CXX=yes
13056 hardcode_libdir_flag_spec_CXX='-L$libdir'
13057 hardcode_libdir_separator_CXX=
13058 fi
13059 esac
13060 shared_flag='-shared'
13061 if test "$aix_use_runtimelinking" = yes; then
13062 shared_flag="$shared_flag "'${wl}-G'
13063 fi
13064 else
13065 # not using gcc
13066 if test "$host_cpu" = ia64; then
13067 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13068 # chokes on -Wl,-G. The following line is correct:
13069 shared_flag='-G'
13070 else
13071 if test "$aix_use_runtimelinking" = yes; then
13072 shared_flag='${wl}-G'
13073 else
13074 shared_flag='${wl}-bM:SRE'
13075 fi
13076 fi
13077 fi
13078
13079 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13080 # It seems that -bexpall does not export symbols beginning with
13081 # underscore (_), so it is better to generate a list of symbols to
13082 # export.
13083 always_export_symbols_CXX=yes
13084 if test "$aix_use_runtimelinking" = yes; then
13085 # Warning - without using the other runtime loading flags (-brtl),
13086 # -berok will link without error, but may produce a broken library.
13087 allow_undefined_flag_CXX='-berok'
13088 # Determine the default libpath from the value encoded in an empty
13089 # executable.
ee134472
JF
13090 if test "${lt_cv_aix_libpath+set}" = set; then
13091 aix_libpath=$lt_cv_aix_libpath
13092else
13093 if ${lt_cv_aix_libpath__CXX+:} false; then :
13094 $as_echo_n "(cached) " >&6
13095else
13096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9c60689e
DWT
13097/* end confdefs.h. */
13098
13099int
13100main ()
13101{
13102
13103 ;
13104 return 0;
13105}
13106_ACEOF
47aaa820 13107if ac_fn_cxx_try_link "$LINENO"; then :
9c60689e 13108
ee134472
JF
13109 lt_aix_libpath_sed='
13110 /Import File Strings/,/^$/ {
13111 /^0/ {
13112 s/^0 *\([^ ]*\) *$/\1/
13113 p
13114 }
13115 }'
13116 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13117 # Check for a 64-bit object if we didn't find anything.
13118 if test -z "$lt_cv_aix_libpath__CXX"; then
13119 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13120 fi
47aaa820
DWT
13121fi
13122rm -f core conftest.err conftest.$ac_objext \
13123 conftest$ac_exeext conftest.$ac_ext
ee134472
JF
13124 if test -z "$lt_cv_aix_libpath__CXX"; then
13125 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13126 fi
13127
13128fi
13129
13130 aix_libpath=$lt_cv_aix_libpath__CXX
13131fi
47aaa820
DWT
13132
13133 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13134
ee134472 13135 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
13136 else
13137 if test "$host_cpu" = ia64; then
13138 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13139 allow_undefined_flag_CXX="-z nodefs"
13140 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"
13141 else
13142 # Determine the default libpath from the value encoded in an
13143 # empty executable.
ee134472
JF
13144 if test "${lt_cv_aix_libpath+set}" = set; then
13145 aix_libpath=$lt_cv_aix_libpath
13146else
13147 if ${lt_cv_aix_libpath__CXX+:} false; then :
13148 $as_echo_n "(cached) " >&6
13149else
13150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9c60689e
DWT
13151/* end confdefs.h. */
13152
13153int
13154main ()
13155{
13156
13157 ;
13158 return 0;
13159}
13160_ACEOF
47aaa820 13161if ac_fn_cxx_try_link "$LINENO"; then :
9c60689e 13162
ee134472
JF
13163 lt_aix_libpath_sed='
13164 /Import File Strings/,/^$/ {
13165 /^0/ {
13166 s/^0 *\([^ ]*\) *$/\1/
13167 p
13168 }
13169 }'
13170 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13171 # Check for a 64-bit object if we didn't find anything.
13172 if test -z "$lt_cv_aix_libpath__CXX"; then
13173 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13174 fi
9c60689e 13175fi
47aaa820
DWT
13176rm -f core conftest.err conftest.$ac_objext \
13177 conftest$ac_exeext conftest.$ac_ext
ee134472
JF
13178 if test -z "$lt_cv_aix_libpath__CXX"; then
13179 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13180 fi
13181
13182fi
13183
13184 aix_libpath=$lt_cv_aix_libpath__CXX
13185fi
9c60689e 13186
47aaa820
DWT
13187 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13188 # Warning - without using the other run time loading flags,
13189 # -berok will link without error, but may produce a broken library.
13190 no_undefined_flag_CXX=' ${wl}-bernotok'
13191 allow_undefined_flag_CXX=' ${wl}-berok'
ee134472
JF
13192 if test "$with_gnu_ld" = yes; then
13193 # We only use this code for GNU lds that support --whole-archive.
13194 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13195 else
13196 # Exported symbols can be pulled into shared objects from archives
13197 whole_archive_flag_spec_CXX='$convenience'
13198 fi
47aaa820
DWT
13199 archive_cmds_need_lc_CXX=yes
13200 # This is similar to how AIX traditionally builds its shared
13201 # libraries.
13202 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'
13203 fi
13204 fi
13205 ;;
9c60689e 13206
47aaa820
DWT
13207 beos*)
13208 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13209 allow_undefined_flag_CXX=unsupported
13210 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13211 # support --undefined. This deserves some investigation. FIXME
13212 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13213 else
13214 ld_shlibs_CXX=no
13215 fi
13216 ;;
9c60689e 13217
47aaa820
DWT
13218 chorus*)
13219 case $cc_basename in
13220 *)
13221 # FIXME: insert proper C++ library support
13222 ld_shlibs_CXX=no
13223 ;;
13224 esac
13225 ;;
9c60689e 13226
47aaa820 13227 cygwin* | mingw* | pw32* | cegcc*)
ee134472
JF
13228 case $GXX,$cc_basename in
13229 ,cl* | no,cl*)
13230 # Native MSVC
13231 # hardcode_libdir_flag_spec is actually meaningless, as there is
13232 # no search path for DLLs.
13233 hardcode_libdir_flag_spec_CXX=' '
13234 allow_undefined_flag_CXX=unsupported
13235 always_export_symbols_CXX=yes
13236 file_list_spec_CXX='@'
13237 # Tell ltmain to make .lib files, not .a files.
13238 libext=lib
13239 # Tell ltmain to make .dll files, not .so files.
13240 shrext_cmds=".dll"
13241 # FIXME: Setting linknames here is a bad hack.
13242 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13243 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13244 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13245 else
13246 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13247 fi~
13248 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13249 linknames='
13250 # The linker will not automatically build a static lib if we build a DLL.
13251 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13252 enable_shared_with_static_runtimes_CXX=yes
13253 # Don't use ranlib
13254 old_postinstall_cmds_CXX='chmod 644 $oldlib'
13255 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13256 lt_tool_outputfile="@TOOL_OUTPUT@"~
13257 case $lt_outputfile in
13258 *.exe|*.EXE) ;;
13259 *)
13260 lt_outputfile="$lt_outputfile.exe"
13261 lt_tool_outputfile="$lt_tool_outputfile.exe"
13262 ;;
13263 esac~
13264 func_to_tool_file "$lt_outputfile"~
13265 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13266 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13267 $RM "$lt_outputfile.manifest";
13268 fi'
13269 ;;
13270 *)
13271 # g++
13272 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13273 # as there is no search path for DLLs.
13274 hardcode_libdir_flag_spec_CXX='-L$libdir'
13275 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13276 allow_undefined_flag_CXX=unsupported
13277 always_export_symbols_CXX=no
13278 enable_shared_with_static_runtimes_CXX=yes
13279
13280 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13281 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'
13282 # If the export-symbols file already is a .def file (1st line
13283 # is EXPORTS), use it as is; otherwise, prepend...
13284 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13285 cp $export_symbols $output_objdir/$soname.def;
13286 else
13287 echo EXPORTS > $output_objdir/$soname.def;
13288 cat $export_symbols >> $output_objdir/$soname.def;
13289 fi~
13290 $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'
13291 else
13292 ld_shlibs_CXX=no
13293 fi
13294 ;;
13295 esac
13296 ;;
47aaa820 13297 darwin* | rhapsody*)
9c60689e 13298
9c60689e 13299
47aaa820
DWT
13300 archive_cmds_need_lc_CXX=no
13301 hardcode_direct_CXX=no
13302 hardcode_automatic_CXX=yes
13303 hardcode_shlibpath_var_CXX=unsupported
ee134472
JF
13304 if test "$lt_cv_ld_force_load" = "yes"; then
13305 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 13306
ee134472
JF
13307 else
13308 whole_archive_flag_spec_CXX=''
13309 fi
47aaa820
DWT
13310 link_all_deplibs_CXX=yes
13311 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13312 case $cc_basename in
13313 ifort*) _lt_dar_can_shared=yes ;;
13314 *) _lt_dar_can_shared=$GCC ;;
13315 esac
13316 if test "$_lt_dar_can_shared" = "yes"; then
ee134472 13317 output_verbose_link_cmd=func_echo_all
47aaa820
DWT
13318 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}"
13319 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13320 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}"
13321 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}"
13322 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13323 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}"
13324 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}"
13325 fi
9c60689e 13326
47aaa820
DWT
13327 else
13328 ld_shlibs_CXX=no
13329 fi
9c60689e 13330
47aaa820 13331 ;;
9c60689e 13332
47aaa820
DWT
13333 dgux*)
13334 case $cc_basename in
13335 ec++*)
13336 # FIXME: insert proper C++ library support
13337 ld_shlibs_CXX=no
13338 ;;
13339 ghcx*)
13340 # Green Hills C++ Compiler
13341 # FIXME: insert proper C++ library support
13342 ld_shlibs_CXX=no
13343 ;;
13344 *)
13345 # FIXME: insert proper C++ library support
13346 ld_shlibs_CXX=no
13347 ;;
13348 esac
13349 ;;
9c60689e 13350
53ba6704 13351 freebsd2.*)
47aaa820
DWT
13352 # C++ shared libraries reported to be fairly broken before
13353 # switch to ELF
13354 ld_shlibs_CXX=no
13355 ;;
9c60689e 13356
47aaa820
DWT
13357 freebsd-elf*)
13358 archive_cmds_need_lc_CXX=no
13359 ;;
9c60689e 13360
47aaa820
DWT
13361 freebsd* | dragonfly*)
13362 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13363 # conventions
13364 ld_shlibs_CXX=yes
13365 ;;
9c60689e 13366
47aaa820
DWT
13367 gnu*)
13368 ;;
9c60689e 13369
ee134472
JF
13370 haiku*)
13371 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13372 link_all_deplibs_CXX=yes
13373 ;;
13374
47aaa820
DWT
13375 hpux9*)
13376 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13377 hardcode_libdir_separator_CXX=:
13378 export_dynamic_flag_spec_CXX='${wl}-E'
13379 hardcode_direct_CXX=yes
13380 hardcode_minus_L_CXX=yes # Not in the search PATH,
13381 # but as the default
13382 # location of the library.
9c60689e 13383
47aaa820
DWT
13384 case $cc_basename in
13385 CC*)
13386 # FIXME: insert proper C++ library support
13387 ld_shlibs_CXX=no
13388 ;;
13389 aCC*)
13390 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'
13391 # Commands to make compiler produce verbose output that lists
13392 # what "hidden" libraries, object files and flags are used when
13393 # linking a shared library.
13394 #
13395 # There doesn't appear to be a way to prevent this compiler from
13396 # explicitly linking system object files so we need to strip them
13397 # from the output so that they don't get included in the library
13398 # dependencies.
ee134472 13399 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
13400 ;;
13401 *)
13402 if test "$GXX" = yes; then
ee134472 13403 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
13404 else
13405 # FIXME: insert proper C++ library support
13406 ld_shlibs_CXX=no
13407 fi
13408 ;;
13409 esac
13410 ;;
9c60689e 13411
47aaa820
DWT
13412 hpux10*|hpux11*)
13413 if test $with_gnu_ld = no; then
13414 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13415 hardcode_libdir_separator_CXX=:
9c60689e 13416
47aaa820
DWT
13417 case $host_cpu in
13418 hppa*64*|ia64*)
13419 ;;
13420 *)
13421 export_dynamic_flag_spec_CXX='${wl}-E'
13422 ;;
13423 esac
13424 fi
13425 case $host_cpu in
13426 hppa*64*|ia64*)
13427 hardcode_direct_CXX=no
13428 hardcode_shlibpath_var_CXX=no
13429 ;;
13430 *)
13431 hardcode_direct_CXX=yes
13432 hardcode_direct_absolute_CXX=yes
13433 hardcode_minus_L_CXX=yes # Not in the search PATH,
13434 # but as the default
13435 # location of the library.
13436 ;;
13437 esac
9c60689e 13438
47aaa820
DWT
13439 case $cc_basename in
13440 CC*)
13441 # FIXME: insert proper C++ library support
13442 ld_shlibs_CXX=no
13443 ;;
13444 aCC*)
13445 case $host_cpu in
13446 hppa*64*)
13447 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13448 ;;
13449 ia64*)
13450 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13451 ;;
13452 *)
13453 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13454 ;;
13455 esac
13456 # Commands to make compiler produce verbose output that lists
13457 # what "hidden" libraries, object files and flags are used when
13458 # linking a shared library.
13459 #
13460 # There doesn't appear to be a way to prevent this compiler from
13461 # explicitly linking system object files so we need to strip them
13462 # from the output so that they don't get included in the library
13463 # dependencies.
ee134472 13464 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
13465 ;;
13466 *)
13467 if test "$GXX" = yes; then
13468 if test $with_gnu_ld = no; then
13469 case $host_cpu in
13470 hppa*64*)
13471 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13472 ;;
13473 ia64*)
ee134472 13474 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
13475 ;;
13476 *)
ee134472 13477 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
13478 ;;
13479 esac
13480 fi
13481 else
13482 # FIXME: insert proper C++ library support
13483 ld_shlibs_CXX=no
13484 fi
13485 ;;
13486 esac
13487 ;;
9c60689e 13488
47aaa820
DWT
13489 interix[3-9]*)
13490 hardcode_direct_CXX=no
13491 hardcode_shlibpath_var_CXX=no
13492 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13493 export_dynamic_flag_spec_CXX='${wl}-E'
13494 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13495 # Instead, shared libraries are loaded at an image base (0x10000000 by
13496 # default) and relocated if they conflict, which is a slow very memory
13497 # consuming and fragmenting process. To avoid this, we pick a random,
13498 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13499 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13500 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'
13501 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'
13502 ;;
13503 irix5* | irix6*)
13504 case $cc_basename in
13505 CC*)
13506 # SGI C++
ee134472 13507 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 13508
47aaa820
DWT
13509 # Archives containing C++ object files must be created using
13510 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13511 # necessary to make sure instantiated templates are included
13512 # in the archive.
13513 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13514 ;;
13515 *)
13516 if test "$GXX" = yes; then
13517 if test "$with_gnu_ld" = no; then
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"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
47aaa820 13519 else
ee134472 13520 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
13521 fi
13522 fi
13523 link_all_deplibs_CXX=yes
13524 ;;
13525 esac
13526 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13527 hardcode_libdir_separator_CXX=:
13528 inherit_rpath_CXX=yes
13529 ;;
9c60689e 13530
1504c9b8 13531 linux* | k*bsd*-gnu | kopensolaris*-gnu)
47aaa820
DWT
13532 case $cc_basename in
13533 KCC*)
13534 # Kuck and Associates, Inc. (KAI) C++ Compiler
9c60689e 13535
47aaa820
DWT
13536 # KCC will only create a shared library if the output file
13537 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13538 # to its proper name (with version) after linking.
13539 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'
13540 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'
13541 # Commands to make compiler produce verbose output that lists
13542 # what "hidden" libraries, object files and flags are used when
13543 # linking a shared library.
13544 #
13545 # There doesn't appear to be a way to prevent this compiler from
13546 # explicitly linking system object files so we need to strip them
13547 # from the output so that they don't get included in the library
13548 # dependencies.
ee134472 13549 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 13550
47aaa820
DWT
13551 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13552 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9c60689e 13553
47aaa820
DWT
13554 # Archives containing C++ object files must be created using
13555 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13556 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13557 ;;
13558 icpc* | ecpc* )
13559 # Intel C++
13560 with_gnu_ld=yes
13561 # version 8.0 and above of icpc choke on multiply defined symbols
13562 # if we add $predep_objects and $postdep_objects, however 7.1 and
13563 # earlier do not add the objects themselves.
13564 case `$CC -V 2>&1` in
13565 *"Version 7."*)
13566 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13567 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'
13568 ;;
13569 *) # Version 8.0 or newer
13570 tmp_idyn=
13571 case $host_cpu in
13572 ia64*) tmp_idyn=' -i_dynamic';;
13573 esac
13574 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13575 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'
13576 ;;
13577 esac
13578 archive_cmds_need_lc_CXX=no
13579 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13580 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13581 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13582 ;;
13583 pgCC* | pgcpp*)
13584 # Portland Group C++ compiler
13585 case `$CC -V` in
ee134472 13586 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
47aaa820
DWT
13587 prelink_cmds_CXX='tpldir=Template.dir~
13588 rm -rf $tpldir~
13589 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
ee134472 13590 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
47aaa820
DWT
13591 old_archive_cmds_CXX='tpldir=Template.dir~
13592 rm -rf $tpldir~
13593 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
ee134472 13594 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
47aaa820
DWT
13595 $RANLIB $oldlib'
13596 archive_cmds_CXX='tpldir=Template.dir~
13597 rm -rf $tpldir~
13598 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
ee134472 13599 $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
13600 archive_expsym_cmds_CXX='tpldir=Template.dir~
13601 rm -rf $tpldir~
13602 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
ee134472 13603 $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 13604 ;;
ee134472 13605 *) # Version 6 and above use weak symbols
47aaa820
DWT
13606 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13607 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'
13608 ;;
13609 esac
9c60689e 13610
47aaa820
DWT
13611 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13612 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
ee134472 13613 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
13614 ;;
13615 cxx*)
13616 # Compaq C++
13617 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13618 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 13619
47aaa820
DWT
13620 runpath_var=LD_RUN_PATH
13621 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13622 hardcode_libdir_separator_CXX=:
9c60689e 13623
47aaa820
DWT
13624 # Commands to make compiler produce verbose output that lists
13625 # what "hidden" libraries, object files and flags are used when
13626 # linking a shared library.
13627 #
13628 # There doesn't appear to be a way to prevent this compiler from
13629 # explicitly linking system object files so we need to strip them
13630 # from the output so that they don't get included in the library
13631 # dependencies.
ee134472 13632 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 13633 ;;
ee134472 13634 xl* | mpixl* | bgxl*)
47aaa820
DWT
13635 # IBM XL 8.0 on PPC, with GNU ld
13636 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13637 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13638 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13639 if test "x$supports_anon_versioning" = xyes; then
13640 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13641 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13642 echo "local: *; };" >> $output_objdir/$libname.ver~
13643 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13644 fi
13645 ;;
13646 *)
13647 case `$CC -V 2>&1 | sed 5q` in
13648 *Sun\ C*)
13649 # Sun C++ 5.9
13650 no_undefined_flag_CXX=' -zdefs'
13651 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13652 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'
13653 hardcode_libdir_flag_spec_CXX='-R$libdir'
ee134472 13654 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 13655 compiler_needs_object_CXX=yes
9c60689e 13656
47aaa820
DWT
13657 # Not sure whether something based on
13658 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13659 # would be better.
ee134472 13660 output_verbose_link_cmd='func_echo_all'
9c60689e 13661
47aaa820
DWT
13662 # Archives containing C++ object files must be created using
13663 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13664 # necessary to make sure instantiated templates are included
13665 # in the archive.
13666 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13667 ;;
13668 esac
13669 ;;
13670 esac
13671 ;;
9c60689e 13672
47aaa820
DWT
13673 lynxos*)
13674 # FIXME: insert proper C++ library support
13675 ld_shlibs_CXX=no
13676 ;;
9c60689e 13677
47aaa820
DWT
13678 m88k*)
13679 # FIXME: insert proper C++ library support
13680 ld_shlibs_CXX=no
13681 ;;
9c60689e 13682
47aaa820
DWT
13683 mvs*)
13684 case $cc_basename in
13685 cxx*)
13686 # FIXME: insert proper C++ library support
13687 ld_shlibs_CXX=no
13688 ;;
13689 *)
13690 # FIXME: insert proper C++ library support
13691 ld_shlibs_CXX=no
13692 ;;
13693 esac
13694 ;;
9c60689e 13695
47aaa820
DWT
13696 netbsd*)
13697 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13698 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13699 wlarc=
13700 hardcode_libdir_flag_spec_CXX='-R$libdir'
13701 hardcode_direct_CXX=yes
13702 hardcode_shlibpath_var_CXX=no
13703 fi
13704 # Workaround some broken pre-1.5 toolchains
13705 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
9c60689e 13706 ;;
47aaa820
DWT
13707
13708 *nto* | *qnx*)
13709 ld_shlibs_CXX=yes
9c60689e 13710 ;;
9c60689e 13711
47aaa820
DWT
13712 openbsd2*)
13713 # C++ shared libraries are fairly broken
13714 ld_shlibs_CXX=no
13715 ;;
9c60689e 13716
47aaa820
DWT
13717 openbsd*)
13718 if test -f /usr/libexec/ld.so; then
13719 hardcode_direct_CXX=yes
13720 hardcode_shlibpath_var_CXX=no
13721 hardcode_direct_absolute_CXX=yes
13722 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13723 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13724 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13725 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13726 export_dynamic_flag_spec_CXX='${wl}-E'
13727 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13728 fi
ee134472 13729 output_verbose_link_cmd=func_echo_all
47aaa820
DWT
13730 else
13731 ld_shlibs_CXX=no
13732 fi
13733 ;;
9c60689e 13734
47aaa820
DWT
13735 osf3* | osf4* | osf5*)
13736 case $cc_basename in
13737 KCC*)
13738 # Kuck and Associates, Inc. (KAI) C++ Compiler
9c60689e 13739
47aaa820
DWT
13740 # KCC will only create a shared library if the output file
13741 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13742 # to its proper name (with version) after linking.
13743 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 13744
47aaa820
DWT
13745 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13746 hardcode_libdir_separator_CXX=:
9c60689e 13747
47aaa820
DWT
13748 # Archives containing C++ object files must be created using
13749 # the KAI C++ compiler.
13750 case $host in
13751 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13752 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13753 esac
13754 ;;
13755 RCC*)
13756 # Rational C++ 2.4.1
13757 # FIXME: insert proper C++ library support
13758 ld_shlibs_CXX=no
13759 ;;
13760 cxx*)
13761 case $host in
13762 osf3*)
13763 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
ee134472 13764 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
13765 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13766 ;;
13767 *)
13768 allow_undefined_flag_CXX=' -expect_unresolved \*'
ee134472 13769 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
13770 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13771 echo "-hidden">> $lib.exp~
ee134472 13772 $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
13773 $RM $lib.exp'
13774 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13775 ;;
13776 esac
9c60689e 13777
47aaa820 13778 hardcode_libdir_separator_CXX=:
9c60689e 13779
47aaa820
DWT
13780 # Commands to make compiler produce verbose output that lists
13781 # what "hidden" libraries, object files and flags are used when
13782 # linking a shared library.
13783 #
13784 # There doesn't appear to be a way to prevent this compiler from
13785 # explicitly linking system object files so we need to strip them
13786 # from the output so that they don't get included in the library
13787 # dependencies.
ee134472 13788 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
13789 ;;
13790 *)
13791 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13792 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13793 case $host in
13794 osf3*)
ee134472 13795 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
13796 ;;
13797 *)
ee134472 13798 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
13799 ;;
13800 esac
9c60689e 13801
47aaa820
DWT
13802 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13803 hardcode_libdir_separator_CXX=:
9c60689e 13804
47aaa820
DWT
13805 # Commands to make compiler produce verbose output that lists
13806 # what "hidden" libraries, object files and flags are used when
13807 # linking a shared library.
ee134472 13808 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
9c60689e 13809
47aaa820
DWT
13810 else
13811 # FIXME: insert proper C++ library support
13812 ld_shlibs_CXX=no
13813 fi
13814 ;;
13815 esac
13816 ;;
9c60689e 13817
47aaa820 13818 psos*)
9c60689e
DWT
13819 # FIXME: insert proper C++ library support
13820 ld_shlibs_CXX=no
13821 ;;
9c60689e 13822
47aaa820
DWT
13823 sunos4*)
13824 case $cc_basename in
13825 CC*)
13826 # Sun C++ 4.x
13827 # FIXME: insert proper C++ library support
13828 ld_shlibs_CXX=no
9c60689e 13829 ;;
47aaa820
DWT
13830 lcc*)
13831 # Lucid
13832 # FIXME: insert proper C++ library support
13833 ld_shlibs_CXX=no
13834 ;;
13835 *)
13836 # FIXME: insert proper C++ library support
13837 ld_shlibs_CXX=no
13838 ;;
13839 esac
13840 ;;
9c60689e 13841
47aaa820
DWT
13842 solaris*)
13843 case $cc_basename in
ee134472 13844 CC* | sunCC*)
47aaa820
DWT
13845 # Sun C++ 4.2, 5.x and Centerline C++
13846 archive_cmds_need_lc_CXX=yes
13847 no_undefined_flag_CXX=' -zdefs'
13848 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13849 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13850 $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 13851
47aaa820
DWT
13852 hardcode_libdir_flag_spec_CXX='-R$libdir'
13853 hardcode_shlibpath_var_CXX=no
13854 case $host_os in
13855 solaris2.[0-5] | solaris2.[0-5].*) ;;
13856 *)
13857 # The compiler driver will combine and reorder linker options,
13858 # but understands `-z linker_flag'.
13859 # Supported since Solaris 2.6 (maybe 2.5.1?)
13860 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13861 ;;
13862 esac
13863 link_all_deplibs_CXX=yes
9c60689e 13864
ee134472 13865 output_verbose_link_cmd='func_echo_all'
9c60689e 13866
47aaa820
DWT
13867 # Archives containing C++ object files must be created using
13868 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13869 # necessary to make sure instantiated templates are included
13870 # in the archive.
13871 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13872 ;;
13873 gcx*)
13874 # Green Hills C++ Compiler
13875 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9c60689e 13876
47aaa820
DWT
13877 # The C++ compiler must be used to create the archive.
13878 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13879 ;;
13880 *)
13881 # GNU C++ compiler with Solaris linker
13882 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13883 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13884 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
ee134472 13885 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
47aaa820 13886 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
ee134472 13887 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
9c60689e 13888
47aaa820
DWT
13889 # Commands to make compiler produce verbose output that lists
13890 # what "hidden" libraries, object files and flags are used when
13891 # linking a shared library.
ee134472 13892 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
47aaa820
DWT
13893 else
13894 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13895 # platform.
13896 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13897 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13898 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
9c60689e 13899
47aaa820
DWT
13900 # Commands to make compiler produce verbose output that lists
13901 # what "hidden" libraries, object files and flags are used when
13902 # linking a shared library.
ee134472 13903 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
47aaa820 13904 fi
9c60689e 13905
47aaa820
DWT
13906 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13907 case $host_os in
13908 solaris2.[0-5] | solaris2.[0-5].*) ;;
13909 *)
13910 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13911 ;;
13912 esac
13913 fi
13914 ;;
13915 esac
13916 ;;
9c60689e 13917
47aaa820
DWT
13918 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13919 no_undefined_flag_CXX='${wl}-z,text'
13920 archive_cmds_need_lc_CXX=no
13921 hardcode_shlibpath_var_CXX=no
13922 runpath_var='LD_RUN_PATH'
9c60689e 13923
47aaa820
DWT
13924 case $cc_basename in
13925 CC*)
13926 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13927 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13928 ;;
13929 *)
13930 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13931 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13932 ;;
13933 esac
13934 ;;
9c60689e 13935
47aaa820
DWT
13936 sysv5* | sco3.2v5* | sco5v6*)
13937 # Note: We can NOT use -z defs as we might desire, because we do not
13938 # link with -lc, and that would cause any symbols used from libc to
13939 # always be unresolved, which means just about no library would
13940 # ever link correctly. If we're not using GNU ld we use -z text
13941 # though, which does catch some bad symbols but isn't as heavy-handed
13942 # as -z defs.
13943 no_undefined_flag_CXX='${wl}-z,text'
13944 allow_undefined_flag_CXX='${wl}-z,nodefs'
13945 archive_cmds_need_lc_CXX=no
13946 hardcode_shlibpath_var_CXX=no
13947 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13948 hardcode_libdir_separator_CXX=':'
13949 link_all_deplibs_CXX=yes
13950 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13951 runpath_var='LD_RUN_PATH'
9c60689e 13952
47aaa820
DWT
13953 case $cc_basename in
13954 CC*)
13955 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13956 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
ee134472
JF
13957 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13958 '"$old_archive_cmds_CXX"
13959 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13960 '"$reload_cmds_CXX"
47aaa820
DWT
13961 ;;
13962 *)
13963 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13964 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13965 ;;
13966 esac
13967 ;;
9c60689e 13968
47aaa820 13969 tandem*)
9c60689e 13970 case $cc_basename in
47aaa820
DWT
13971 NCC*)
13972 # NonStop-UX NCC 3.20
13973 # FIXME: insert proper C++ library support
13974 ld_shlibs_CXX=no
13975 ;;
9c60689e 13976 *)
47aaa820
DWT
13977 # FIXME: insert proper C++ library support
13978 ld_shlibs_CXX=no
13979 ;;
9c60689e
DWT
13980 esac
13981 ;;
13982
47aaa820
DWT
13983 vxworks*)
13984 # FIXME: insert proper C++ library support
13985 ld_shlibs_CXX=no
13986 ;;
9c60689e 13987
47aaa820
DWT
13988 *)
13989 # FIXME: insert proper C++ library support
13990 ld_shlibs_CXX=no
9c60689e 13991 ;;
47aaa820 13992 esac
9c60689e 13993
47aaa820
DWT
13994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13995$as_echo "$ld_shlibs_CXX" >&6; }
13996 test "$ld_shlibs_CXX" = no && can_build_shared=no
9c60689e 13997
47aaa820
DWT
13998 GCC_CXX="$GXX"
13999 LD_CXX="$LD"
9c60689e 14000
47aaa820
DWT
14001 ## CAVEAT EMPTOR:
14002 ## There is no encapsulation within the following macros, do not change
14003 ## the running order or otherwise move them around unless you know exactly
14004 ## what you are doing...
14005 # Dependencies to place before and after the object being linked:
14006predep_objects_CXX=
14007postdep_objects_CXX=
14008predeps_CXX=
14009postdeps_CXX=
14010compiler_lib_search_path_CXX=
9c60689e 14011
47aaa820
DWT
14012cat > conftest.$ac_ext <<_LT_EOF
14013class Foo
14014{
14015public:
14016 Foo (void) { a = 0; }
14017private:
14018 int a;
14019};
14020_LT_EOF
9c60689e 14021
ee134472
JF
14022
14023_lt_libdeps_save_CFLAGS=$CFLAGS
14024case "$CC $CFLAGS " in #(
14025*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14026*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
53ba6704 14027*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
ee134472
JF
14028esac
14029
47aaa820
DWT
14030if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14031 (eval $ac_compile) 2>&5
14032 ac_status=$?
14033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14034 test $ac_status = 0; }; then
14035 # Parse the compiler output and extract the necessary
14036 # objects, libraries and library flags.
9c60689e 14037
47aaa820
DWT
14038 # Sentinel used to keep track of whether or not we are before
14039 # the conftest object file.
14040 pre_test_object_deps_done=no
9c60689e 14041
47aaa820 14042 for p in `eval "$output_verbose_link_cmd"`; do
ee134472 14043 case ${prev}${p} in
9c60689e 14044
47aaa820
DWT
14045 -L* | -R* | -l*)
14046 # Some compilers place space between "-{L,R}" and the path.
14047 # Remove the space.
14048 if test $p = "-L" ||
14049 test $p = "-R"; then
14050 prev=$p
14051 continue
47aaa820 14052 fi
9c60689e 14053
ee134472
JF
14054 # Expand the sysroot to ease extracting the directories later.
14055 if test -z "$prev"; then
14056 case $p in
14057 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14058 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14059 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14060 esac
14061 fi
14062 case $p in
14063 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14064 esac
47aaa820 14065 if test "$pre_test_object_deps_done" = no; then
ee134472
JF
14066 case ${prev} in
14067 -L | -R)
47aaa820
DWT
14068 # Internal compiler library paths should come after those
14069 # provided the user. The postdeps already come after the
14070 # user supplied libs so there is no need to process them.
14071 if test -z "$compiler_lib_search_path_CXX"; then
14072 compiler_lib_search_path_CXX="${prev}${p}"
14073 else
14074 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14075 fi
14076 ;;
14077 # The "-l" case would never come before the object being
14078 # linked, so don't bother handling this case.
14079 esac
14080 else
14081 if test -z "$postdeps_CXX"; then
14082 postdeps_CXX="${prev}${p}"
14083 else
14084 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14085 fi
14086 fi
ee134472 14087 prev=
47aaa820 14088 ;;
9c60689e 14089
ee134472 14090 *.lto.$objext) ;; # Ignore GCC LTO objects
47aaa820
DWT
14091 *.$objext)
14092 # This assumes that the test object file only shows up
14093 # once in the compiler output.
14094 if test "$p" = "conftest.$objext"; then
14095 pre_test_object_deps_done=yes
14096 continue
14097 fi
9c60689e 14098
47aaa820
DWT
14099 if test "$pre_test_object_deps_done" = no; then
14100 if test -z "$predep_objects_CXX"; then
14101 predep_objects_CXX="$p"
14102 else
14103 predep_objects_CXX="$predep_objects_CXX $p"
14104 fi
14105 else
14106 if test -z "$postdep_objects_CXX"; then
14107 postdep_objects_CXX="$p"
14108 else
14109 postdep_objects_CXX="$postdep_objects_CXX $p"
14110 fi
14111 fi
14112 ;;
9c60689e 14113
47aaa820 14114 *) ;; # Ignore the rest.
9c60689e 14115
47aaa820
DWT
14116 esac
14117 done
9c60689e 14118
47aaa820
DWT
14119 # Clean up.
14120 rm -f a.out a.exe
14121else
14122 echo "libtool.m4: error: problem compiling CXX test program"
14123fi
9c60689e 14124
47aaa820 14125$RM -f confest.$objext
ee134472 14126CFLAGS=$_lt_libdeps_save_CFLAGS
9c60689e 14127
47aaa820
DWT
14128# PORTME: override above test on systems where it is broken
14129case $host_os in
14130interix[3-9]*)
14131 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14132 # hack all around it, let's just trust "g++" to DTRT.
14133 predep_objects_CXX=
14134 postdep_objects_CXX=
14135 postdeps_CXX=
14136 ;;
9c60689e 14137
47aaa820
DWT
14138linux*)
14139 case `$CC -V 2>&1 | sed 5q` in
14140 *Sun\ C*)
14141 # Sun C++ 5.9
9c60689e 14142
47aaa820
DWT
14143 # The more standards-conforming stlport4 library is
14144 # incompatible with the Cstd library. Avoid specifying
14145 # it if it's in CXXFLAGS. Ignore libCrun as
14146 # -library=stlport4 depends on it.
14147 case " $CXX $CXXFLAGS " in
14148 *" -library=stlport4 "*)
14149 solaris_use_stlport4=yes
14150 ;;
14151 esac
9c60689e 14152
47aaa820
DWT
14153 if test "$solaris_use_stlport4" != yes; then
14154 postdeps_CXX='-library=Cstd -library=Crun'
14155 fi
14156 ;;
14157 esac
14158 ;;
9c60689e 14159
47aaa820
DWT
14160solaris*)
14161 case $cc_basename in
ee134472 14162 CC* | sunCC*)
47aaa820
DWT
14163 # The more standards-conforming stlport4 library is
14164 # incompatible with the Cstd library. Avoid specifying
14165 # it if it's in CXXFLAGS. Ignore libCrun as
14166 # -library=stlport4 depends on it.
14167 case " $CXX $CXXFLAGS " in
14168 *" -library=stlport4 "*)
14169 solaris_use_stlport4=yes
14170 ;;
14171 esac
9c60689e 14172
47aaa820
DWT
14173 # Adding this requires a known-good setup of shared libraries for
14174 # Sun compiler versions before 5.6, else PIC objects from an old
14175 # archive will be linked into the output, leading to subtle bugs.
14176 if test "$solaris_use_stlport4" != yes; then
14177 postdeps_CXX='-library=Cstd -library=Crun'
14178 fi
14179 ;;
14180 esac
14181 ;;
14182esac
9c60689e 14183
9c60689e 14184
47aaa820
DWT
14185case " $postdeps_CXX " in
14186*" -lc "*) archive_cmds_need_lc_CXX=no ;;
14187esac
14188 compiler_lib_search_dirs_CXX=
14189if test -n "${compiler_lib_search_path_CXX}"; then
14190 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14191fi
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
9c60689e 14221
9c60689e 14222
47aaa820
DWT
14223 lt_prog_compiler_wl_CXX=
14224lt_prog_compiler_pic_CXX=
14225lt_prog_compiler_static_CXX=
9c60689e 14226
9c60689e
DWT
14227
14228 # C++ specific cases for pic, static, wl, etc.
14229 if test "$GXX" = yes; then
14230 lt_prog_compiler_wl_CXX='-Wl,'
14231 lt_prog_compiler_static_CXX='-static'
14232
14233 case $host_os in
14234 aix*)
14235 # All AIX code is PIC.
14236 if test "$host_cpu" = ia64; then
14237 # AIX 5 now supports IA64 processor
14238 lt_prog_compiler_static_CXX='-Bstatic'
14239 fi
14240 ;;
14241
14242 amigaos*)
14243 case $host_cpu in
14244 powerpc)
14245 # see comment about AmigaOS4 .so support
14246 lt_prog_compiler_pic_CXX='-fPIC'
14247 ;;
14248 m68k)
14249 # FIXME: we need at least 68020 code to build shared libraries, but
14250 # adding the `-m68020' flag to GCC prevents building anything better,
14251 # like `-m68040'.
14252 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14253 ;;
14254 esac
14255 ;;
14256
14257 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14258 # PIC is the default for these OSes.
14259 ;;
14260 mingw* | cygwin* | os2* | pw32* | cegcc*)
14261 # This hack is so that the source file can tell whether it is being
14262 # built for inclusion in a dll (and should export symbols for example).
14263 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14264 # (--disable-auto-import) libraries
14265 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14266 ;;
14267 darwin* | rhapsody*)
14268 # PIC is the default on this platform
14269 # Common symbols not allowed in MH_DYLIB files
14270 lt_prog_compiler_pic_CXX='-fno-common'
14271 ;;
14272 *djgpp*)
14273 # DJGPP does not support shared libraries at all
14274 lt_prog_compiler_pic_CXX=
14275 ;;
ee134472
JF
14276 haiku*)
14277 # PIC is the default for Haiku.
14278 # The "-static" flag exists, but is broken.
14279 lt_prog_compiler_static_CXX=
14280 ;;
9c60689e
DWT
14281 interix[3-9]*)
14282 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14283 # Instead, we relocate shared libraries at runtime.
14284 ;;
14285 sysv4*MP*)
14286 if test -d /usr/nec; then
14287 lt_prog_compiler_pic_CXX=-Kconform_pic
14288 fi
14289 ;;
14290 hpux*)
14291 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14292 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14293 # sets the default TLS model and affects inlining.
14294 case $host_cpu in
14295 hppa*64*)
14296 ;;
14297 *)
14298 lt_prog_compiler_pic_CXX='-fPIC'
14299 ;;
14300 esac
14301 ;;
14302 *qnx* | *nto*)
14303 # QNX uses GNU C++, but need to define -shared option too, otherwise
14304 # it will coredump.
14305 lt_prog_compiler_pic_CXX='-fPIC -shared'
14306 ;;
14307 *)
14308 lt_prog_compiler_pic_CXX='-fPIC'
14309 ;;
14310 esac
14311 else
14312 case $host_os in
14313 aix[4-9]*)
14314 # All AIX code is PIC.
14315 if test "$host_cpu" = ia64; then
14316 # AIX 5 now supports IA64 processor
14317 lt_prog_compiler_static_CXX='-Bstatic'
14318 else
14319 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14320 fi
14321 ;;
14322 chorus*)
14323 case $cc_basename in
14324 cxch68*)
14325 # Green Hills C++ Compiler
14326 # _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"
14327 ;;
14328 esac
14329 ;;
ee134472
JF
14330 mingw* | cygwin* | os2* | pw32* | cegcc*)
14331 # This hack is so that the source file can tell whether it is being
14332 # built for inclusion in a dll (and should export symbols for example).
14333 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14334 ;;
9c60689e
DWT
14335 dgux*)
14336 case $cc_basename in
14337 ec++*)
14338 lt_prog_compiler_pic_CXX='-KPIC'
14339 ;;
14340 ghcx*)
14341 # Green Hills C++ Compiler
14342 lt_prog_compiler_pic_CXX='-pic'
14343 ;;
14344 *)
14345 ;;
14346 esac
14347 ;;
14348 freebsd* | dragonfly*)
14349 # FreeBSD uses GNU C++
14350 ;;
14351 hpux9* | hpux10* | hpux11*)
14352 case $cc_basename in
14353 CC*)
14354 lt_prog_compiler_wl_CXX='-Wl,'
14355 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14356 if test "$host_cpu" != ia64; then
14357 lt_prog_compiler_pic_CXX='+Z'
14358 fi
14359 ;;
14360 aCC*)
14361 lt_prog_compiler_wl_CXX='-Wl,'
14362 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14363 case $host_cpu in
14364 hppa*64*|ia64*)
14365 # +Z the default
14366 ;;
14367 *)
14368 lt_prog_compiler_pic_CXX='+Z'
14369 ;;
14370 esac
14371 ;;
14372 *)
14373 ;;
14374 esac
14375 ;;
14376 interix*)
14377 # This is c89, which is MS Visual C++ (no shared libs)
14378 # Anyone wants to do a port?
14379 ;;
14380 irix5* | irix6* | nonstopux*)
14381 case $cc_basename in
14382 CC*)
14383 lt_prog_compiler_wl_CXX='-Wl,'
14384 lt_prog_compiler_static_CXX='-non_shared'
14385 # CC pic flag -KPIC is the default.
14386 ;;
14387 *)
14388 ;;
14389 esac
14390 ;;
1504c9b8 14391 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9c60689e
DWT
14392 case $cc_basename in
14393 KCC*)
14394 # KAI C++ Compiler
14395 lt_prog_compiler_wl_CXX='--backend -Wl,'
14396 lt_prog_compiler_pic_CXX='-fPIC'
14397 ;;
14398 ecpc* )
14399 # old Intel C++ for x86_64 which still supported -KPIC.
14400 lt_prog_compiler_wl_CXX='-Wl,'
14401 lt_prog_compiler_pic_CXX='-KPIC'
14402 lt_prog_compiler_static_CXX='-static'
14403 ;;
14404 icpc* )
14405 # Intel C++, used to be incompatible with GCC.
14406 # ICC 10 doesn't accept -KPIC any more.
14407 lt_prog_compiler_wl_CXX='-Wl,'
14408 lt_prog_compiler_pic_CXX='-fPIC'
14409 lt_prog_compiler_static_CXX='-static'
14410 ;;
14411 pgCC* | pgcpp*)
14412 # Portland Group C++ compiler
14413 lt_prog_compiler_wl_CXX='-Wl,'
14414 lt_prog_compiler_pic_CXX='-fpic'
14415 lt_prog_compiler_static_CXX='-Bstatic'
14416 ;;
14417 cxx*)
14418 # Compaq C++
14419 # Make sure the PIC flag is empty. It appears that all Alpha
14420 # Linux and Compaq Tru64 Unix objects are PIC.
14421 lt_prog_compiler_pic_CXX=
14422 lt_prog_compiler_static_CXX='-non_shared'
14423 ;;
ee134472
JF
14424 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14425 # IBM XL 8.0, 9.0 on PPC and BlueGene
9c60689e
DWT
14426 lt_prog_compiler_wl_CXX='-Wl,'
14427 lt_prog_compiler_pic_CXX='-qpic'
14428 lt_prog_compiler_static_CXX='-qstaticlink'
14429 ;;
14430 *)
14431 case `$CC -V 2>&1 | sed 5q` in
14432 *Sun\ C*)
14433 # Sun C++ 5.9
14434 lt_prog_compiler_pic_CXX='-KPIC'
14435 lt_prog_compiler_static_CXX='-Bstatic'
14436 lt_prog_compiler_wl_CXX='-Qoption ld '
14437 ;;
14438 esac
14439 ;;
14440 esac
14441 ;;
14442 lynxos*)
14443 ;;
14444 m88k*)
14445 ;;
14446 mvs*)
14447 case $cc_basename in
14448 cxx*)
14449 lt_prog_compiler_pic_CXX='-W c,exportall'
14450 ;;
14451 *)
14452 ;;
14453 esac
14454 ;;
53ba6704 14455 netbsd*)
9c60689e
DWT
14456 ;;
14457 *qnx* | *nto*)
14458 # QNX uses GNU C++, but need to define -shared option too, otherwise
14459 # it will coredump.
14460 lt_prog_compiler_pic_CXX='-fPIC -shared'
14461 ;;
14462 osf3* | osf4* | osf5*)
14463 case $cc_basename in
14464 KCC*)
14465 lt_prog_compiler_wl_CXX='--backend -Wl,'
14466 ;;
14467 RCC*)
14468 # Rational C++ 2.4.1
14469 lt_prog_compiler_pic_CXX='-pic'
14470 ;;
14471 cxx*)
14472 # Digital/Compaq C++
14473 lt_prog_compiler_wl_CXX='-Wl,'
14474 # Make sure the PIC flag is empty. It appears that all Alpha
14475 # Linux and Compaq Tru64 Unix objects are PIC.
14476 lt_prog_compiler_pic_CXX=
14477 lt_prog_compiler_static_CXX='-non_shared'
14478 ;;
14479 *)
14480 ;;
14481 esac
14482 ;;
14483 psos*)
14484 ;;
14485 solaris*)
14486 case $cc_basename in
ee134472 14487 CC* | sunCC*)
9c60689e
DWT
14488 # Sun C++ 4.2, 5.x and Centerline C++
14489 lt_prog_compiler_pic_CXX='-KPIC'
14490 lt_prog_compiler_static_CXX='-Bstatic'
14491 lt_prog_compiler_wl_CXX='-Qoption ld '
14492 ;;
14493 gcx*)
14494 # Green Hills C++ Compiler
14495 lt_prog_compiler_pic_CXX='-PIC'
14496 ;;
14497 *)
14498 ;;
14499 esac
14500 ;;
14501 sunos4*)
14502 case $cc_basename in
14503 CC*)
14504 # Sun C++ 4.x
14505 lt_prog_compiler_pic_CXX='-pic'
14506 lt_prog_compiler_static_CXX='-Bstatic'
14507 ;;
14508 lcc*)
14509 # Lucid
14510 lt_prog_compiler_pic_CXX='-pic'
14511 ;;
14512 *)
14513 ;;
14514 esac
14515 ;;
14516 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14517 case $cc_basename in
14518 CC*)
14519 lt_prog_compiler_wl_CXX='-Wl,'
14520 lt_prog_compiler_pic_CXX='-KPIC'
14521 lt_prog_compiler_static_CXX='-Bstatic'
14522 ;;
14523 esac
14524 ;;
14525 tandem*)
14526 case $cc_basename in
14527 NCC*)
14528 # NonStop-UX NCC 3.20
14529 lt_prog_compiler_pic_CXX='-KPIC'
14530 ;;
14531 *)
14532 ;;
14533 esac
14534 ;;
14535 vxworks*)
14536 ;;
14537 *)
14538 lt_prog_compiler_can_build_shared_CXX=no
14539 ;;
14540 esac
14541 fi
14542
14543case $host_os in
14544 # For platforms which do not support PIC, -DPIC is meaningless:
14545 *djgpp*)
14546 lt_prog_compiler_pic_CXX=
14547 ;;
14548 *)
14549 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14550 ;;
14551esac
9c60689e 14552
ee134472
JF
14553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14554$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14555if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14556 $as_echo_n "(cached) " >&6
14557else
14558 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14559fi
14560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14561$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14562lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
9c60689e
DWT
14563
14564#
14565# Check to make sure the PIC flag actually works.
14566#
14567if test -n "$lt_prog_compiler_pic_CXX"; then
14568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14569$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
ee134472 14570if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
9c60689e
DWT
14571 $as_echo_n "(cached) " >&6
14572else
14573 lt_cv_prog_compiler_pic_works_CXX=no
14574 ac_outfile=conftest.$ac_objext
14575 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14576 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14577 # Insert the option either (1) after the last *FLAGS variable, or
14578 # (2) before a word containing "conftest.", or (3) at the end.
14579 # Note that $ac_compile itself does not contain backslashes and begins
14580 # with a dollar sign (not a hyphen), so the echo should work correctly.
14581 # The option is referenced via a variable to avoid confusing sed.
14582 lt_compile=`echo "$ac_compile" | $SED \
14583 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14584 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14585 -e 's:$: $lt_compiler_flag:'`
ee134472 14586 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9c60689e
DWT
14587 (eval "$lt_compile" 2>conftest.err)
14588 ac_status=$?
14589 cat conftest.err >&5
ee134472 14590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9c60689e
DWT
14591 if (exit $ac_status) && test -s "$ac_outfile"; then
14592 # The compiler can only warn and ignore the option if not recognized
14593 # So say no if there are warnings other than the usual output.
ee134472 14594 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9c60689e
DWT
14595 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14596 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14597 lt_cv_prog_compiler_pic_works_CXX=yes
14598 fi
14599 fi
53ba6704 14600 $RM -r conftest*
9c60689e
DWT
14601
14602fi
14603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14604$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14605
14606if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14607 case $lt_prog_compiler_pic_CXX in
14608 "" | " "*) ;;
14609 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14610 esac
14611else
14612 lt_prog_compiler_pic_CXX=
14613 lt_prog_compiler_can_build_shared_CXX=no
14614fi
14615
14616fi
14617
14618
14619
ee134472
JF
14620
14621
47aaa820
DWT
14622#
14623# Check to make sure the static flag actually works.
14624#
14625wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14627$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
ee134472 14628if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
47aaa820
DWT
14629 $as_echo_n "(cached) " >&6
14630else
14631 lt_cv_prog_compiler_static_works_CXX=no
14632 save_LDFLAGS="$LDFLAGS"
14633 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14634 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14635 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14636 # The linker can only warn and ignore the option if not recognized
14637 # So say no if there are warnings
14638 if test -s conftest.err; then
14639 # Append any errors to the config.log.
14640 cat conftest.err 1>&5
ee134472 14641 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
47aaa820
DWT
14642 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14643 if diff conftest.exp conftest.er2 >/dev/null; then
14644 lt_cv_prog_compiler_static_works_CXX=yes
14645 fi
14646 else
14647 lt_cv_prog_compiler_static_works_CXX=yes
14648 fi
14649 fi
14650 $RM -r conftest*
14651 LDFLAGS="$save_LDFLAGS"
14652
14653fi
14654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14655$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14656
14657if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14658 :
14659else
14660 lt_prog_compiler_static_CXX=
14661fi
14662
14663
14664
14665
14666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14667$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
ee134472 14668if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
47aaa820
DWT
14669 $as_echo_n "(cached) " >&6
14670else
14671 lt_cv_prog_compiler_c_o_CXX=no
14672 $RM -r conftest 2>/dev/null
14673 mkdir conftest
14674 cd conftest
14675 mkdir out
14676 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14677
14678 lt_compiler_flag="-o out/conftest2.$ac_objext"
14679 # Insert the option either (1) after the last *FLAGS variable, or
14680 # (2) before a word containing "conftest.", or (3) at the end.
14681 # Note that $ac_compile itself does not contain backslashes and begins
14682 # with a dollar sign (not a hyphen), so the echo should work correctly.
14683 lt_compile=`echo "$ac_compile" | $SED \
14684 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14685 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14686 -e 's:$: $lt_compiler_flag:'`
ee134472 14687 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
47aaa820
DWT
14688 (eval "$lt_compile" 2>out/conftest.err)
14689 ac_status=$?
14690 cat out/conftest.err >&5
ee134472 14691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47aaa820
DWT
14692 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14693 then
14694 # The compiler can only warn and ignore the option if not recognized
14695 # So say no if there are warnings
ee134472 14696 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
47aaa820
DWT
14697 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14698 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14699 lt_cv_prog_compiler_c_o_CXX=yes
14700 fi
14701 fi
14702 chmod u+w . 2>&5
53ba6704 14703 $RM -r conftest*
47aaa820
DWT
14704 # SGI C++ compiler will create directory out/ii_files/ for
14705 # template instantiation
14706 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14707 $RM out/* && rmdir out
14708 cd ..
14709 $RM -r conftest
53ba6704 14710 $RM -r conftest*
47aaa820
DWT
14711
14712fi
14713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14714$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14715
14716
14717
14718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14719$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
ee134472 14720if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
47aaa820
DWT
14721 $as_echo_n "(cached) " >&6
14722else
14723 lt_cv_prog_compiler_c_o_CXX=no
14724 $RM -r conftest 2>/dev/null
14725 mkdir conftest
14726 cd conftest
14727 mkdir out
14728 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14729
14730 lt_compiler_flag="-o out/conftest2.$ac_objext"
14731 # Insert the option either (1) after the last *FLAGS variable, or
14732 # (2) before a word containing "conftest.", or (3) at the end.
14733 # Note that $ac_compile itself does not contain backslashes and begins
14734 # with a dollar sign (not a hyphen), so the echo should work correctly.
14735 lt_compile=`echo "$ac_compile" | $SED \
14736 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14737 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14738 -e 's:$: $lt_compiler_flag:'`
ee134472 14739 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
47aaa820
DWT
14740 (eval "$lt_compile" 2>out/conftest.err)
14741 ac_status=$?
14742 cat out/conftest.err >&5
ee134472 14743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47aaa820
DWT
14744 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14745 then
14746 # The compiler can only warn and ignore the option if not recognized
14747 # So say no if there are warnings
ee134472 14748 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
47aaa820
DWT
14749 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14750 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14751 lt_cv_prog_compiler_c_o_CXX=yes
14752 fi
14753 fi
14754 chmod u+w . 2>&5
53ba6704 14755 $RM -r conftest*
47aaa820
DWT
14756 # SGI C++ compiler will create directory out/ii_files/ for
14757 # template instantiation
14758 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14759 $RM out/* && rmdir out
14760 cd ..
14761 $RM -r conftest
53ba6704 14762 $RM -r conftest*
47aaa820
DWT
14763
14764fi
14765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14766$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14767
14768
14769
14770
14771hard_links="nottested"
14772if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14773 # do not overwrite the value of need_locks provided by the user
14774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14775$as_echo_n "checking if we can lock with hard links... " >&6; }
14776 hard_links=yes
53ba6704 14777 $RM -r conftest*
47aaa820
DWT
14778 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14779 touch conftest.a
14780 ln conftest.a conftest.b 2>&5 || hard_links=no
14781 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14783$as_echo "$hard_links" >&6; }
14784 if test "$hard_links" = no; then
14785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14786$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14787 need_locks=warn
14788 fi
14789else
14790 need_locks=no
14791fi
14792
14793
14794
14795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14796$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14797
14798 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
ee134472 14799 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
47aaa820
DWT
14800 case $host_os in
14801 aix[4-9]*)
14802 # If we're using GNU nm, then we don't want the "-C" option.
14803 # -C means demangle to AIX nm, but means don't demangle with GNU nm
ee134472
JF
14804 # Also, AIX nm treats weak defined symbols like other global defined
14805 # symbols, whereas GNU nm marks them as "W".
47aaa820 14806 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
ee134472 14807 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
14808 else
14809 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'
14810 fi
14811 ;;
14812 pw32*)
14813 export_symbols_cmds_CXX="$ltdll_cmds"
ee134472 14814 ;;
47aaa820 14815 cygwin* | mingw* | cegcc*)
ee134472 14816 case $cc_basename in
53ba6704
JF
14817 cl*)
14818 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14819 ;;
ee134472
JF
14820 *)
14821 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'
14822 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14823 ;;
14824 esac
14825 ;;
47aaa820
DWT
14826 *)
14827 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
ee134472 14828 ;;
47aaa820 14829 esac
47aaa820
DWT
14830
14831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14832$as_echo "$ld_shlibs_CXX" >&6; }
14833test "$ld_shlibs_CXX" = no && can_build_shared=no
14834
14835with_gnu_ld_CXX=$with_gnu_ld
14836
14837
14838
14839
14840
14841
14842#
14843# Do we need to explicitly link libc?
14844#
14845case "x$archive_cmds_need_lc_CXX" in
14846x|xyes)
14847 # Assume -lc should be added
14848 archive_cmds_need_lc_CXX=yes
14849
14850 if test "$enable_shared" = yes && test "$GCC" = yes; then
14851 case $archive_cmds_CXX in
14852 *'~'*)
14853 # FIXME: we may have to deal with multi-command sequences.
14854 ;;
14855 '$CC '*)
14856 # Test whether the compiler implicitly links with -lc since on some
14857 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14858 # to ld, don't add -lc before -lgcc.
14859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14860$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
ee134472
JF
14861if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14862 $as_echo_n "(cached) " >&6
14863else
53ba6704 14864 $RM -r conftest*
ee134472 14865 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
47aaa820 14866
ee134472 14867 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
47aaa820
DWT
14868 (eval $ac_compile) 2>&5
14869 ac_status=$?
14870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14871 test $ac_status = 0; } 2>conftest.err; then
ee134472
JF
14872 soname=conftest
14873 lib=conftest
14874 libobjs=conftest.$ac_objext
14875 deplibs=
14876 wl=$lt_prog_compiler_wl_CXX
14877 pic_flag=$lt_prog_compiler_pic_CXX
14878 compiler_flags=-v
14879 linker_flags=-v
14880 verstring=
14881 output_objdir=.
14882 libname=conftest
14883 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14884 allow_undefined_flag_CXX=
14885 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
47aaa820
DWT
14886 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14887 ac_status=$?
14888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14889 test $ac_status = 0; }
ee134472
JF
14890 then
14891 lt_cv_archive_cmds_need_lc_CXX=no
14892 else
14893 lt_cv_archive_cmds_need_lc_CXX=yes
14894 fi
14895 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14896 else
14897 cat conftest.err 1>&5
14898 fi
53ba6704 14899 $RM -r conftest*
ee134472
JF
14900
14901fi
14902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14903$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14904 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
47aaa820
DWT
14905 ;;
14906 esac
14907 fi
14908 ;;
14909esac
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
14967
14968
47aaa820
DWT
14969
14970
14971
14972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14973$as_echo_n "checking dynamic linker characteristics... " >&6; }
14974
14975library_names_spec=
14976libname_spec='lib$name'
14977soname_spec=
14978shrext_cmds=".so"
14979postinstall_cmds=
14980postuninstall_cmds=
14981finish_cmds=
14982finish_eval=
14983shlibpath_var=
14984shlibpath_overrides_runpath=unknown
14985version_type=none
14986dynamic_linker="$host_os ld.so"
14987sys_lib_dlsearch_path_spec="/lib /usr/lib"
14988need_lib_prefix=unknown
14989hardcode_into_libs=no
14990
14991# when you set need_version to no, make sure it does not cause -set_version
14992# flags to be left without arguments
14993need_version=unknown
14994
14995case $host_os in
14996aix3*)
53ba6704 14997 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
14998 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14999 shlibpath_var=LIBPATH
15000
15001 # AIX 3 has no versioning support, so we append a major version to the name.
15002 soname_spec='${libname}${release}${shared_ext}$major'
15003 ;;
15004
15005aix[4-9]*)
53ba6704 15006 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15007 need_lib_prefix=no
15008 need_version=no
15009 hardcode_into_libs=yes
15010 if test "$host_cpu" = ia64; then
15011 # AIX 5 supports IA64
15012 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15013 shlibpath_var=LD_LIBRARY_PATH
15014 else
15015 # With GCC up to 2.95.x, collect2 would create an import file
15016 # for dependence libraries. The import file would start with
15017 # the line `#! .'. This would cause the generated library to
15018 # depend on `.', always an invalid library. This was fixed in
15019 # development snapshots of GCC prior to 3.0.
15020 case $host_os in
15021 aix4 | aix4.[01] | aix4.[01].*)
15022 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15023 echo ' yes '
15024 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15025 :
15026 else
15027 can_build_shared=no
15028 fi
15029 ;;
15030 esac
15031 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15032 # soname into executable. Probably we can add versioning support to
15033 # collect2, so additional links can be useful in future.
15034 if test "$aix_use_runtimelinking" = yes; then
15035 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15036 # instead of lib<name>.a to let people know that these are not
15037 # typical AIX shared libraries.
15038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15039 else
15040 # We preserve .a as extension for shared libraries through AIX4.2
15041 # and later when we are not doing run time linking.
15042 library_names_spec='${libname}${release}.a $libname.a'
15043 soname_spec='${libname}${release}${shared_ext}$major'
15044 fi
15045 shlibpath_var=LIBPATH
15046 fi
15047 ;;
15048
15049amigaos*)
15050 case $host_cpu in
15051 powerpc)
15052 # Since July 2007 AmigaOS4 officially supports .so libraries.
15053 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15055 ;;
15056 m68k)
15057 library_names_spec='$libname.ixlibrary $libname.a'
15058 # Create ${libname}_ixlibrary.a entries in /sys/libs.
ee134472 15059 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
15060 ;;
15061 esac
15062 ;;
15063
15064beos*)
15065 library_names_spec='${libname}${shared_ext}'
15066 dynamic_linker="$host_os ld.so"
15067 shlibpath_var=LIBRARY_PATH
15068 ;;
15069
15070bsdi[45]*)
53ba6704 15071 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15072 need_version=no
15073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15074 soname_spec='${libname}${release}${shared_ext}$major'
15075 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15076 shlibpath_var=LD_LIBRARY_PATH
15077 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15078 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15079 # the default ld.so.conf also contains /usr/contrib/lib and
15080 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15081 # libtool to hard-code these into programs
15082 ;;
9c60689e 15083
47aaa820
DWT
15084cygwin* | mingw* | pw32* | cegcc*)
15085 version_type=windows
15086 shrext_cmds=".dll"
15087 need_version=no
15088 need_lib_prefix=no
9c60689e 15089
ee134472
JF
15090 case $GCC,$cc_basename in
15091 yes,*)
15092 # gcc
47aaa820
DWT
15093 library_names_spec='$libname.dll.a'
15094 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15095 postinstall_cmds='base_file=`basename \${file}`~
15096 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15097 dldir=$destdir/`dirname \$dlpath`~
15098 test -d \$dldir || mkdir -p \$dldir~
15099 $install_prog $dir/$dlname \$dldir/$dlname~
15100 chmod a+x \$dldir/$dlname~
15101 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15102 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15103 fi'
15104 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15105 dlpath=$dir/\$dldll~
15106 $RM \$dlpath'
15107 shlibpath_overrides_runpath=yes
9c60689e 15108
47aaa820
DWT
15109 case $host_os in
15110 cygwin*)
15111 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15112 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
ee134472 15113
47aaa820
DWT
15114 ;;
15115 mingw* | cegcc*)
15116 # MinGW DLLs use traditional 'lib' prefix
15117 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
47aaa820
DWT
15118 ;;
15119 pw32*)
15120 # pw32 DLLs use 'pw' prefix rather than 'lib'
15121 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15122 ;;
15123 esac
ee134472
JF
15124 dynamic_linker='Win32 ld.exe'
15125 ;;
15126
15127 *,cl*)
15128 # Native MSVC
15129 libname_spec='$name'
15130 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15131 library_names_spec='${libname}.dll.lib'
15132
15133 case $build_os in
15134 mingw*)
15135 sys_lib_search_path_spec=
15136 lt_save_ifs=$IFS
15137 IFS=';'
15138 for lt_path in $LIB
15139 do
15140 IFS=$lt_save_ifs
15141 # Let DOS variable expansion print the short 8.3 style file name.
15142 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15143 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15144 done
15145 IFS=$lt_save_ifs
15146 # Convert to MSYS style.
15147 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15148 ;;
15149 cygwin*)
15150 # Convert to unix form, then to dos form, then back to unix form
15151 # but this time dos style (no spaces!) so that the unix form looks
15152 # like /cygdrive/c/PROGRA~1:/cygdr...
15153 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15154 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15155 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15156 ;;
15157 *)
15158 sys_lib_search_path_spec="$LIB"
15159 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15160 # It is most probably a Windows format PATH.
15161 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15162 else
15163 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15164 fi
15165 # FIXME: find the short name or the path components, as spaces are
15166 # common. (e.g. "Program Files" -> "PROGRA~1")
15167 ;;
15168 esac
15169
15170 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15171 postinstall_cmds='base_file=`basename \${file}`~
15172 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15173 dldir=$destdir/`dirname \$dlpath`~
15174 test -d \$dldir || mkdir -p \$dldir~
15175 $install_prog $dir/$dlname \$dldir/$dlname'
15176 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15177 dlpath=$dir/\$dldll~
15178 $RM \$dlpath'
15179 shlibpath_overrides_runpath=yes
15180 dynamic_linker='Win32 link.exe'
47aaa820 15181 ;;
9c60689e 15182
47aaa820 15183 *)
ee134472 15184 # Assume MSVC wrapper
47aaa820 15185 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
ee134472 15186 dynamic_linker='Win32 ld.exe'
47aaa820
DWT
15187 ;;
15188 esac
47aaa820
DWT
15189 # FIXME: first we should search . and the directory the executable is in
15190 shlibpath_var=PATH
15191 ;;
9c60689e 15192
47aaa820
DWT
15193darwin* | rhapsody*)
15194 dynamic_linker="$host_os dyld"
15195 version_type=darwin
15196 need_lib_prefix=no
15197 need_version=no
15198 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15199 soname_spec='${libname}${release}${major}$shared_ext'
15200 shlibpath_overrides_runpath=yes
15201 shlibpath_var=DYLD_LIBRARY_PATH
15202 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9c60689e 15203
47aaa820
DWT
15204 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15205 ;;
9c60689e 15206
47aaa820 15207dgux*)
53ba6704 15208 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15209 need_lib_prefix=no
15210 need_version=no
15211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15212 soname_spec='${libname}${release}${shared_ext}$major'
15213 shlibpath_var=LD_LIBRARY_PATH
15214 ;;
9c60689e 15215
47aaa820
DWT
15216freebsd* | dragonfly*)
15217 # DragonFly does not have aout. When/if they implement a new
15218 # versioning mechanism, adjust this.
15219 if test -x /usr/bin/objformat; then
15220 objformat=`/usr/bin/objformat`
15221 else
15222 case $host_os in
53ba6704 15223 freebsd[23].*) objformat=aout ;;
47aaa820
DWT
15224 *) objformat=elf ;;
15225 esac
15226 fi
15227 version_type=freebsd-$objformat
15228 case $version_type in
15229 freebsd-elf*)
15230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15231 need_version=no
15232 need_lib_prefix=no
15233 ;;
15234 freebsd-*)
15235 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15236 need_version=yes
15237 ;;
15238 esac
15239 shlibpath_var=LD_LIBRARY_PATH
15240 case $host_os in
53ba6704 15241 freebsd2.*)
47aaa820
DWT
15242 shlibpath_overrides_runpath=yes
15243 ;;
15244 freebsd3.[01]* | freebsdelf3.[01]*)
15245 shlibpath_overrides_runpath=yes
15246 hardcode_into_libs=yes
15247 ;;
15248 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15249 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15250 shlibpath_overrides_runpath=no
15251 hardcode_into_libs=yes
15252 ;;
15253 *) # from 4.6 on, and DragonFly
15254 shlibpath_overrides_runpath=yes
15255 hardcode_into_libs=yes
15256 ;;
15257 esac
15258 ;;
9c60689e 15259
47aaa820 15260gnu*)
53ba6704 15261 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15262 need_lib_prefix=no
15263 need_version=no
15264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15265 soname_spec='${libname}${release}${shared_ext}$major'
15266 shlibpath_var=LD_LIBRARY_PATH
ee134472
JF
15267 shlibpath_overrides_runpath=no
15268 hardcode_into_libs=yes
15269 ;;
15270
15271haiku*)
53ba6704 15272 version_type=linux # correct to gnu/linux during the next big refactor
ee134472
JF
15273 need_lib_prefix=no
15274 need_version=no
15275 dynamic_linker="$host_os runtime_loader"
15276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15277 soname_spec='${libname}${release}${shared_ext}$major'
15278 shlibpath_var=LIBRARY_PATH
15279 shlibpath_overrides_runpath=yes
15280 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
47aaa820
DWT
15281 hardcode_into_libs=yes
15282 ;;
9c60689e 15283
47aaa820
DWT
15284hpux9* | hpux10* | hpux11*)
15285 # Give a soname corresponding to the major version so that dld.sl refuses to
15286 # link against other versions.
15287 version_type=sunos
15288 need_lib_prefix=no
15289 need_version=no
15290 case $host_cpu in
15291 ia64*)
15292 shrext_cmds='.so'
15293 hardcode_into_libs=yes
15294 dynamic_linker="$host_os dld.so"
15295 shlibpath_var=LD_LIBRARY_PATH
15296 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15298 soname_spec='${libname}${release}${shared_ext}$major'
15299 if test "X$HPUX_IA64_MODE" = X32; then
15300 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15301 else
15302 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15303 fi
15304 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15305 ;;
15306 hppa*64*)
15307 shrext_cmds='.sl'
15308 hardcode_into_libs=yes
15309 dynamic_linker="$host_os dld.sl"
15310 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15311 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15313 soname_spec='${libname}${release}${shared_ext}$major'
15314 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15315 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15316 ;;
15317 *)
15318 shrext_cmds='.sl'
15319 dynamic_linker="$host_os dld.sl"
15320 shlibpath_var=SHLIB_PATH
15321 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15323 soname_spec='${libname}${release}${shared_ext}$major'
15324 ;;
15325 esac
ee134472 15326 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
47aaa820 15327 postinstall_cmds='chmod 555 $lib'
ee134472
JF
15328 # or fails outright, so override atomically:
15329 install_override_mode=555
47aaa820 15330 ;;
9c60689e 15331
47aaa820 15332interix[3-9]*)
53ba6704 15333 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15334 need_lib_prefix=no
15335 need_version=no
15336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15337 soname_spec='${libname}${release}${shared_ext}$major'
15338 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15339 shlibpath_var=LD_LIBRARY_PATH
15340 shlibpath_overrides_runpath=no
15341 hardcode_into_libs=yes
15342 ;;
9c60689e 15343
47aaa820
DWT
15344irix5* | irix6* | nonstopux*)
15345 case $host_os in
15346 nonstopux*) version_type=nonstopux ;;
15347 *)
15348 if test "$lt_cv_prog_gnu_ld" = yes; then
53ba6704 15349 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15350 else
15351 version_type=irix
15352 fi ;;
15353 esac
15354 need_lib_prefix=no
15355 need_version=no
15356 soname_spec='${libname}${release}${shared_ext}$major'
15357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15358 case $host_os in
15359 irix5* | nonstopux*)
15360 libsuff= shlibsuff=
15361 ;;
15362 *)
15363 case $LD in # libtool.m4 will add one of these switches to LD
15364 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15365 libsuff= shlibsuff= libmagic=32-bit;;
15366 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15367 libsuff=32 shlibsuff=N32 libmagic=N32;;
15368 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15369 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15370 *) libsuff= shlibsuff= libmagic=never-match;;
15371 esac
15372 ;;
15373 esac
15374 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15375 shlibpath_overrides_runpath=no
15376 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15377 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15378 hardcode_into_libs=yes
15379 ;;
9c60689e 15380
47aaa820
DWT
15381# No shared lib support for Linux oldld, aout, or coff.
15382linux*oldld* | linux*aout* | linux*coff*)
15383 dynamic_linker=no
15384 ;;
9c60689e 15385
53ba6704 15386# This must be glibc/ELF.
1504c9b8 15387linux* | k*bsd*-gnu | kopensolaris*-gnu)
53ba6704 15388 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15389 need_lib_prefix=no
15390 need_version=no
15391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15392 soname_spec='${libname}${release}${shared_ext}$major'
15393 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15394 shlibpath_var=LD_LIBRARY_PATH
15395 shlibpath_overrides_runpath=no
ee134472 15396
47aaa820 15397 # Some binutils ld are patched to set DT_RUNPATH
ee134472
JF
15398 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15399 $as_echo_n "(cached) " >&6
15400else
15401 lt_cv_shlibpath_overrides_runpath=no
15402 save_LDFLAGS=$LDFLAGS
15403 save_libdir=$libdir
15404 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15405 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47aaa820 15407/* end confdefs.h. */
9c60689e 15408
47aaa820
DWT
15409int
15410main ()
15411{
9c60689e 15412
47aaa820
DWT
15413 ;
15414 return 0;
15415}
15416_ACEOF
15417if ac_fn_cxx_try_link "$LINENO"; then :
15418 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
ee134472 15419 lt_cv_shlibpath_overrides_runpath=yes
9c60689e 15420fi
47aaa820
DWT
15421fi
15422rm -f core conftest.err conftest.$ac_objext \
15423 conftest$ac_exeext conftest.$ac_ext
ee134472
JF
15424 LDFLAGS=$save_LDFLAGS
15425 libdir=$save_libdir
15426
15427fi
15428
15429 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
9c60689e 15430
47aaa820
DWT
15431 # This implies no fast_install, which is unacceptable.
15432 # Some rework will be needed to allow for fast_install
15433 # before this can be enabled.
15434 hardcode_into_libs=yes
9c60689e 15435
47aaa820
DWT
15436 # Append ld.so.conf contents to the search path
15437 if test -f /etc/ld.so.conf; then
ee134472 15438 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
15439 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15440 fi
9c60689e 15441
47aaa820
DWT
15442 # We used to test for /lib/ld.so.1 and disable shared libraries on
15443 # powerpc, because MkLinux only supported shared libraries with the
15444 # GNU dynamic linker. Since this was broken with cross compilers,
15445 # most powerpc-linux boxes support dynamic linking these days and
15446 # people can always --disable-shared, the test was removed, and we
15447 # assume the GNU/Linux dynamic linker is in use.
15448 dynamic_linker='GNU/Linux ld.so'
9c60689e 15449 ;;
47aaa820 15450
47aaa820
DWT
15451netbsd*)
15452 version_type=sunos
15453 need_lib_prefix=no
15454 need_version=no
15455 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15457 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15458 dynamic_linker='NetBSD (a.out) ld.so'
15459 else
15460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15461 soname_spec='${libname}${release}${shared_ext}$major'
15462 dynamic_linker='NetBSD ld.elf_so'
15463 fi
15464 shlibpath_var=LD_LIBRARY_PATH
15465 shlibpath_overrides_runpath=yes
15466 hardcode_into_libs=yes
9c60689e 15467 ;;
9c60689e 15468
47aaa820 15469newsos6)
53ba6704 15470 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15472 shlibpath_var=LD_LIBRARY_PATH
15473 shlibpath_overrides_runpath=yes
15474 ;;
9c60689e 15475
47aaa820
DWT
15476*nto* | *qnx*)
15477 version_type=qnx
15478 need_lib_prefix=no
15479 need_version=no
15480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15481 soname_spec='${libname}${release}${shared_ext}$major'
15482 shlibpath_var=LD_LIBRARY_PATH
15483 shlibpath_overrides_runpath=no
15484 hardcode_into_libs=yes
15485 dynamic_linker='ldqnx.so'
15486 ;;
9c60689e 15487
47aaa820
DWT
15488openbsd*)
15489 version_type=sunos
15490 sys_lib_dlsearch_path_spec="/usr/lib"
15491 need_lib_prefix=no
15492 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15493 case $host_os in
15494 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15495 *) need_version=no ;;
15496 esac
15497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15498 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15499 shlibpath_var=LD_LIBRARY_PATH
15500 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15501 case $host_os in
15502 openbsd2.[89] | openbsd2.[89].*)
15503 shlibpath_overrides_runpath=no
15504 ;;
15505 *)
15506 shlibpath_overrides_runpath=yes
15507 ;;
15508 esac
15509 else
15510 shlibpath_overrides_runpath=yes
15511 fi
15512 ;;
9c60689e 15513
47aaa820
DWT
15514os2*)
15515 libname_spec='$name'
15516 shrext_cmds=".dll"
15517 need_lib_prefix=no
15518 library_names_spec='$libname${shared_ext} $libname.a'
15519 dynamic_linker='OS/2 ld.exe'
15520 shlibpath_var=LIBPATH
15521 ;;
9c60689e 15522
47aaa820
DWT
15523osf3* | osf4* | osf5*)
15524 version_type=osf
15525 need_lib_prefix=no
15526 need_version=no
15527 soname_spec='${libname}${release}${shared_ext}$major'
15528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15529 shlibpath_var=LD_LIBRARY_PATH
15530 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15531 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15532 ;;
9c60689e 15533
47aaa820
DWT
15534rdos*)
15535 dynamic_linker=no
15536 ;;
9c60689e 15537
47aaa820 15538solaris*)
53ba6704 15539 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15540 need_lib_prefix=no
15541 need_version=no
15542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15543 soname_spec='${libname}${release}${shared_ext}$major'
15544 shlibpath_var=LD_LIBRARY_PATH
15545 shlibpath_overrides_runpath=yes
15546 hardcode_into_libs=yes
15547 # ldd complains unless libraries are executable
15548 postinstall_cmds='chmod +x $lib'
15549 ;;
9c60689e 15550
47aaa820
DWT
15551sunos4*)
15552 version_type=sunos
15553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15554 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15555 shlibpath_var=LD_LIBRARY_PATH
15556 shlibpath_overrides_runpath=yes
15557 if test "$with_gnu_ld" = yes; then
15558 need_lib_prefix=no
15559 fi
15560 need_version=yes
15561 ;;
9c60689e 15562
47aaa820 15563sysv4 | sysv4.3*)
53ba6704 15564 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15566 soname_spec='${libname}${release}${shared_ext}$major'
15567 shlibpath_var=LD_LIBRARY_PATH
15568 case $host_vendor in
15569 sni)
15570 shlibpath_overrides_runpath=no
15571 need_lib_prefix=no
15572 runpath_var=LD_RUN_PATH
9c60689e 15573 ;;
47aaa820
DWT
15574 siemens)
15575 need_lib_prefix=no
9c60689e 15576 ;;
47aaa820
DWT
15577 motorola)
15578 need_lib_prefix=no
15579 need_version=no
15580 shlibpath_overrides_runpath=no
15581 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15582 ;;
15583 esac
9c60689e 15584 ;;
9c60689e 15585
47aaa820
DWT
15586sysv4*MP*)
15587 if test -d /usr/nec ;then
53ba6704 15588 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15589 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15590 soname_spec='$libname${shared_ext}.$major'
15591 shlibpath_var=LD_LIBRARY_PATH
15592 fi
15593 ;;
9c60689e 15594
47aaa820
DWT
15595sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15596 version_type=freebsd-elf
15597 need_lib_prefix=no
15598 need_version=no
15599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15600 soname_spec='${libname}${release}${shared_ext}$major'
15601 shlibpath_var=LD_LIBRARY_PATH
15602 shlibpath_overrides_runpath=yes
15603 hardcode_into_libs=yes
15604 if test "$with_gnu_ld" = yes; then
15605 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15606 else
15607 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15608 case $host_os in
15609 sco3.2v5*)
15610 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15611 ;;
15612 esac
15613 fi
15614 sys_lib_dlsearch_path_spec='/usr/lib'
15615 ;;
9c60689e 15616
47aaa820
DWT
15617tpf*)
15618 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
53ba6704 15619 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15620 need_lib_prefix=no
15621 need_version=no
15622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15623 shlibpath_var=LD_LIBRARY_PATH
15624 shlibpath_overrides_runpath=no
15625 hardcode_into_libs=yes
15626 ;;
9c60689e 15627
47aaa820 15628uts4*)
53ba6704 15629 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15631 soname_spec='${libname}${release}${shared_ext}$major'
15632 shlibpath_var=LD_LIBRARY_PATH
15633 ;;
9c60689e 15634
47aaa820
DWT
15635*)
15636 dynamic_linker=no
e9c9a47c
DWT
15637 ;;
15638esac
15639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15640$as_echo "$dynamic_linker" >&6; }
15641test "$dynamic_linker" = no && can_build_shared=no
15642
15643variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15644if test "$GCC" = yes; then
15645 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
47aaa820 15646fi
9c60689e 15647
e9c9a47c
DWT
15648if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15649 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
47aaa820 15650fi
e9c9a47c
DWT
15651if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15652 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
47aaa820 15653fi
9c60689e 15654
9c60689e 15655
9c60689e 15656
9c60689e 15657
47aaa820 15658
47aaa820 15659
47aaa820 15660
9c60689e 15661
9c60689e 15662
47aaa820 15663
47aaa820 15664
47aaa820 15665
47aaa820 15666
47aaa820 15667
47aaa820 15668
47aaa820 15669
47aaa820 15670
9c60689e 15671
9c60689e 15672
9c60689e 15673
9c60689e 15674
9c60689e 15675
e9c9a47c
DWT
15676
15677
15678
15679
15680
15681
15682
15683
15684
15685
15686
ee134472
JF
15687
15688
e9c9a47c
DWT
15689
15690
15691
15692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15693$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15694hardcode_action_CXX=
15695if test -n "$hardcode_libdir_flag_spec_CXX" ||
15696 test -n "$runpath_var_CXX" ||
15697 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15698
15699 # We can hardcode non-existent directories.
15700 if test "$hardcode_direct_CXX" != no &&
15701 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15702 # have to relink, otherwise we might link with an installed library
15703 # when we should be linking with a yet-to-be-installed one
15704 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15705 test "$hardcode_minus_L_CXX" != no; then
15706 # Linking always hardcodes the temporary library directory.
15707 hardcode_action_CXX=relink
15708 else
15709 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15710 hardcode_action_CXX=immediate
15711 fi
15712else
15713 # We cannot hardcode anything, or else we can only hardcode existing
15714 # directories.
15715 hardcode_action_CXX=unsupported
15716fi
15717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15718$as_echo "$hardcode_action_CXX" >&6; }
15719
15720if test "$hardcode_action_CXX" = relink ||
15721 test "$inherit_rpath_CXX" = yes; then
15722 # Fast installation is not supported
15723 enable_fast_install=no
15724elif test "$shlibpath_overrides_runpath" = yes ||
15725 test "$enable_shared" = no; then
15726 # Fast installation is not necessary
15727 enable_fast_install=needless
47aaa820 15728fi
9c60689e 15729
47aaa820 15730
47aaa820 15731
e9c9a47c
DWT
15732
15733
15734
15735
a243b558
JF
15736 fi # test -n "$compiler"
15737
15738 CC=$lt_save_CC
15739 CFLAGS=$lt_save_CFLAGS
15740 LDCXX=$LD
15741 LD=$lt_save_LD
15742 GCC=$lt_save_GCC
15743 with_gnu_ld=$lt_save_with_gnu_ld
15744 lt_cv_path_LDCXX=$lt_cv_path_LD
15745 lt_cv_path_LD=$lt_save_path_LD
15746 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15747 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15748fi # test "$_lt_caught_CXX_error" != yes
15749
15750ac_ext=c
15751ac_cpp='$CPP $CPPFLAGS'
15752ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15753ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15754ac_compiler_gnu=$ac_cv_c_compiler_gnu
15755
15756
15757
15758
15759
15760
15761
15762
15763
15764
15765
15766
15767
15768
15769
15770 ac_config_commands="$ac_config_commands libtool"
15771
15772
15773
15774
15775# Only expand once:
15776
15777
15778
15779ac_ext=cpp
15780ac_cpp='$CXXCPP $CPPFLAGS'
15781ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15782ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15783ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15784
15785
15786
15787
15788
15789
15790
15791
15792if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
15793 if test -n "$ac_tool_prefix"; then
15794 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
15795set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
15796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15797$as_echo_n "checking for $ac_word... " >&6; }
15798if ${ac_cv_path_PKG_CONFIG+:} false; then :
15799 $as_echo_n "(cached) " >&6
15800else
15801 case $PKG_CONFIG in
15802 [\\/]* | ?:[\\/]*)
15803 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
15804 ;;
15805 *)
15806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15807for as_dir in $PATH
15808do
15809 IFS=$as_save_IFS
15810 test -z "$as_dir" && as_dir=.
15811 for ac_exec_ext in '' $ac_executable_extensions; do
15812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15813 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15815 break 2
15816 fi
15817done
15818 done
15819IFS=$as_save_IFS
15820
15821 ;;
15822esac
15823fi
15824PKG_CONFIG=$ac_cv_path_PKG_CONFIG
15825if test -n "$PKG_CONFIG"; then
15826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
15827$as_echo "$PKG_CONFIG" >&6; }
15828else
15829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15830$as_echo "no" >&6; }
15831fi
15832
15833
15834fi
15835if test -z "$ac_cv_path_PKG_CONFIG"; then
15836 ac_pt_PKG_CONFIG=$PKG_CONFIG
15837 # Extract the first word of "pkg-config", so it can be a program name with args.
15838set dummy pkg-config; ac_word=$2
15839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15840$as_echo_n "checking for $ac_word... " >&6; }
15841if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
15842 $as_echo_n "(cached) " >&6
15843else
15844 case $ac_pt_PKG_CONFIG in
15845 [\\/]* | ?:[\\/]*)
15846 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
15847 ;;
15848 *)
15849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15850for as_dir in $PATH
15851do
15852 IFS=$as_save_IFS
15853 test -z "$as_dir" && as_dir=.
15854 for ac_exec_ext in '' $ac_executable_extensions; do
15855 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15856 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15858 break 2
15859 fi
15860done
15861 done
15862IFS=$as_save_IFS
15863
15864 ;;
15865esac
15866fi
15867ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
15868if test -n "$ac_pt_PKG_CONFIG"; then
15869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
15870$as_echo "$ac_pt_PKG_CONFIG" >&6; }
15871else
15872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15873$as_echo "no" >&6; }
15874fi
15875
15876 if test "x$ac_pt_PKG_CONFIG" = x; then
15877 PKG_CONFIG=""
15878 else
15879 case $cross_compiling:$ac_tool_warned in
15880yes:)
15881{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15882$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15883ac_tool_warned=yes ;;
15884esac
15885 PKG_CONFIG=$ac_pt_PKG_CONFIG
15886 fi
15887else
15888 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
15889fi
15890
15891fi
15892if test -n "$PKG_CONFIG"; then
15893 _pkg_min_version=0.22
15894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
15895$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
15896 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
15897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15898$as_echo "yes" >&6; }
15899 else
15900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15901$as_echo "no" >&6; }
15902 PKG_CONFIG=""
15903 fi
15904fi
15905
15906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
15907$as_echo_n "checking for GNU make... " >&6; }
15908if ${_cv_gnu_make_command+:} false; then :
15909 $as_echo_n "(cached) " >&6
15910else
15911 _cv_gnu_make_command='' ;
15912 for a in "$MAKE" make gmake gnumake ; do
15913 if test -z "$a" ; then continue ; fi ;
15914 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
15915 _cv_gnu_make_command=$a ;
15916 break;
15917 fi
15918 done ;
15919
15920fi
15921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
15922$as_echo "$_cv_gnu_make_command" >&6; } ;
15923 if test "x$_cv_gnu_make_command" != "x" ; then
15924 ifGNUmake='' ;
15925 else
15926 ifGNUmake='#' ;
15927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
15928$as_echo "\"Not found\"" >&6; };
15929 fi
15930
15931
15932GMAKE=$_cv_gnu_make_command
15933
15934if test "x$GMAKE" = x; then :
15935 as_fn_error $? "You need GNU make" "$LINENO" 5
15936fi
15937
15938# Extract the first word of "bash", so it can be a program name with args.
15939set dummy bash; ac_word=$2
15940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15941$as_echo_n "checking for $ac_word... " >&6; }
15942if ${ac_cv_path__BASH+:} false; then :
15943 $as_echo_n "(cached) " >&6
15944else
15945 case $_BASH in
15946 [\\/]* | ?:[\\/]*)
15947 ac_cv_path__BASH="$_BASH" # Let the user override the test with a path.
15948 ;;
15949 *)
15950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15951for as_dir in $PATH
15952do
15953 IFS=$as_save_IFS
15954 test -z "$as_dir" && as_dir=.
15955 for ac_exec_ext in '' $ac_executable_extensions; do
15956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15957 ac_cv_path__BASH="$as_dir/$ac_word$ac_exec_ext"
15958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15959 break 2
15960 fi
15961done
15962 done
15963IFS=$as_save_IFS
15964
15965 test -z "$ac_cv_path__BASH" && ac_cv_path__BASH="as_fn_error $? "missing \"bash\"" "$LINENO" 5"
15966 ;;
15967esac
15968fi
15969_BASH=$ac_cv_path__BASH
15970if test -n "$_BASH"; then
15971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_BASH" >&5
15972$as_echo "$_BASH" >&6; }
15973else
15974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15975$as_echo "no" >&6; }
15976fi
15977
e9c9a47c 15978
a243b558
JF
15979# Extract the first word of "git", so it can be a program name with args.
15980set dummy git; ac_word=$2
15981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15982$as_echo_n "checking for $ac_word... " >&6; }
15983if ${ac_cv_path_GIT+:} false; then :
15984 $as_echo_n "(cached) " >&6
15985else
15986 case $GIT in
15987 [\\/]* | ?:[\\/]*)
15988 ac_cv_path_GIT="$GIT" # Let the user override the test with a path.
15989 ;;
15990 *)
15991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15992for as_dir in $PATH
15993do
15994 IFS=$as_save_IFS
15995 test -z "$as_dir" && as_dir=.
15996 for ac_exec_ext in '' $ac_executable_extensions; do
15997 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15998 ac_cv_path_GIT="$as_dir/$ac_word$ac_exec_ext"
15999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16000 break 2
16001 fi
16002done
16003 done
16004IFS=$as_save_IFS
e9c9a47c 16005
a243b558
JF
16006 ;;
16007esac
16008fi
16009GIT=$ac_cv_path_GIT
16010if test -n "$GIT"; then
16011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
16012$as_echo "$GIT" >&6; }
16013else
16014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16015$as_echo "no" >&6; }
16016fi
e9c9a47c
DWT
16017
16018
a243b558
JF
16019# Extract the first word of "time", so it can be a program name with args.
16020set dummy time; ac_word=$2
632b71ea
DWT
16021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16022$as_echo_n "checking for $ac_word... " >&6; }
a243b558 16023if ${ac_cv_path_TIME+:} false; then :
632b71ea
DWT
16024 $as_echo_n "(cached) " >&6
16025else
a243b558
JF
16026 case $TIME in
16027 [\\/]* | ?:[\\/]*)
16028 ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
16029 ;;
16030 *)
16031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
632b71ea
DWT
16032for as_dir in $PATH
16033do
16034 IFS=$as_save_IFS
16035 test -z "$as_dir" && as_dir=.
16036 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 16037 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 16038 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
632b71ea
DWT
16039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16040 break 2
16041 fi
16042done
16043 done
16044IFS=$as_save_IFS
16045
a243b558
JF
16046 ;;
16047esac
632b71ea 16048fi
a243b558
JF
16049TIME=$ac_cv_path_TIME
16050if test -n "$TIME"; then
16051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
16052$as_echo "$TIME" >&6; }
632b71ea
DWT
16053else
16054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16055$as_echo "no" >&6; }
16056fi
16057
16058
a243b558
JF
16059
16060
16061
16062
16063
16064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bison >= 2.3" >&5
16065$as_echo_n "checking for bison >= 2.3... " >&6; }
16066 if test -z "$BISON"; then
16067 ac_path_BISON_found=false
16068 # Loop through the user's path and test for each of PROGNAME-LIST
16069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16070for as_dir in $PATH
16071do
16072 IFS=$as_save_IFS
16073 test -z "$as_dir" && as_dir=.
16074 for ac_prog in bison; do
16075 for ac_exec_ext in '' $ac_executable_extensions; do
16076 ac_path_BISON="$as_dir/$ac_prog$ac_exec_ext"
16077 as_fn_executable_p "$ac_path_BISON" || continue
16078version=`$ac_path_BISON -V | $SED -e '1 s/^bison (GNU Bison) \(.*\)$/\1/p;d'`
16079 if ${version:+false} :; then :
16080
16081else
16082 as_awk_strverscmp='
16083 # Use only awk features that work with 7th edition Unix awk (1978).
16084 # My, what an old awk you have, Mr. Solaris!
16085 END {
16086 while (length(v1) && length(v2)) {
16087 # Set d1 to be the next thing to compare from v1, and likewise for d2.
16088 # Normally this is a single character, but if v1 and v2 contain digits,
16089 # compare them as integers and fractions as strverscmp does.
16090 if (v1 ~ /^0-9/ && v2 ~ /^0-9/) {
16091 # Split v1 and v2 into their leading digit string components d1 and d2,
16092 # and advance v1 and v2 past the leading digit strings.
16093 for (len1 = 1; substr(v1, len1 + 1) ~ /^0-9/; len1++) continue
16094 for (len2 = 1; substr(v2, len2 + 1) ~ /^0-9/; len2++) continue
16095 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
16096 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
16097 if (d1 ~ /^0/) {
16098 if (d2 ~ /^0/) {
16099 # Compare two fractions.
16100 while (d1 ~ /^0/ && d2 ~ /^0/) {
16101 d1 = substr(d1, 2); len1--
16102 d2 = substr(d2, 2); len2--
16103 }
16104 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
16105 # The two components differ in length, and the common prefix
16106 # contains only leading zeros. Consider the longer to be less.
16107 d1 = -len1
16108 d2 = -len2
16109 } else {
16110 # Otherwise, compare as strings.
16111 d1 = "x" d1
16112 d2 = "x" d2
16113 }
16114 } else {
16115 # A fraction is less than an integer.
16116 exit 1
16117 }
16118 } else {
16119 if (d2 ~ /^0/) {
16120 # An integer is greater than a fraction.
16121 exit 2
16122 } else {
16123 # Compare two integers.
16124 d1 += 0
16125 d2 += 0
16126 }
16127 }
16128 } else {
16129 # The normal case, without worrying about digits.
16130 d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
16131 d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
16132 }
16133 if (d1 < d2) exit 1
16134 if (d1 > d2) exit 2
16135 }
16136 # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
16137 # which mishandles some comparisons of empty strings to integers.
16138 if (length(v2)) exit 1
16139 if (length(v1)) exit 2
16140 }
16141'
16142as_arg_v1=$version
16143as_arg_v2=2.3
16144awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
16145case $? in #(
16146 1) :
16147 ;; #(
16148 0) :
16149 ac_cv_path_BISON=$ac_path_BISON ;; #(
16150 2) :
16151 ac_cv_path_BISON=$ac_path_BISON ;; #(
16152 *) :
16153 ;;
16154esac
16155fi
16156
16157 $ac_path_BISON_found && break 3
16158 done
16159 done
e9c9a47c 16160 done
a243b558
JF
16161IFS=$as_save_IFS
16162 if test -z "$ac_cv_path_BISON"; then
16163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16164$as_echo "no" >&6; }
16165 fi
16166else
16167 ac_cv_path_BISON=$BISON
632b71ea 16168fi
a243b558
JF
16169
16170
16171 if true; then :
16172
16173 BISON=$ac_cv_path_BISON
16174
16175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
16176$as_echo "$BISON" >&6; }
16177
47aaa820 16178else
a243b558
JF
16179 if true; then :
16180
16181 as_fn_error $? "You need bison 2.3 or greater" "$LINENO" 5
16182
47aaa820 16183else
a243b558
JF
16184
16185 BISON=:
16186
16187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16188$as_echo "no" >&6; }
16189
16190fi
16191fi
16192
16193
16194
16195
16196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flex >= 2.5.33" >&5
16197$as_echo_n "checking for flex >= 2.5.33... " >&6; }
16198 if test -z "$FLEX"; then
16199 ac_path_FLEX_found=false
16200 # Loop through the user's path and test for each of PROGNAME-LIST
16201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47aaa820
DWT
16202for as_dir in $PATH
16203do
16204 IFS=$as_save_IFS
16205 test -z "$as_dir" && as_dir=.
a243b558 16206 for ac_prog in flex; do
47aaa820 16207 for ac_exec_ext in '' $ac_executable_extensions; do
a243b558
JF
16208 ac_path_FLEX="$as_dir/$ac_prog$ac_exec_ext"
16209 as_fn_executable_p "$ac_path_FLEX" || continue
16210version=`$ac_path_FLEX --version | $SED -e '1 s/^[^0-9.]* \([0-9.]*\).*$/\1/p;d'`
16211 if ${version:+false} :; then :
9c60689e 16212
47aaa820 16213else
a243b558
JF
16214 as_arg_v1=$version
16215as_arg_v2=2.5.33
16216awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
16217case $? in #(
16218 1) :
16219 ;; #(
16220 0) :
16221 ac_cv_path_FLEX=$ac_path_FLEX ;; #(
16222 2) :
16223 ac_cv_path_FLEX=$ac_path_FLEX ;; #(
16224 *) :
16225 ;;
16226esac
16227fi
16228
16229 $ac_path_FLEX_found && break 3
16230 done
16231 done
16232 done
16233IFS=$as_save_IFS
16234 if test -z "$ac_cv_path_FLEX"; then
16235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47aaa820 16236$as_echo "no" >&6; }
a243b558
JF
16237 fi
16238else
16239 ac_cv_path_FLEX=$FLEX
9c60689e
DWT
16240fi
16241
16242
a243b558 16243 if true; then :
e9c9a47c 16244
a243b558 16245 FLEX=$ac_cv_path_FLEX
e9c9a47c 16246
a243b558
JF
16247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
16248$as_echo "$FLEX" >&6; }
9c60689e 16249
632b71ea 16250else
a243b558 16251 if true; then :
e9c9a47c 16252
a243b558 16253 as_fn_error $? "You need flex 2.5.33 or greater" "$LINENO" 5
e9c9a47c 16254
e9c9a47c 16255else
a243b558
JF
16256
16257 FLEX=:
16258
16259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16260$as_echo "no" >&6; }
9c60689e 16261
632b71ea 16262fi
a243b558
JF
16263fi
16264
16265
16266
16267
16268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gperf >= 3.0.3" >&5
16269$as_echo_n "checking for gperf >= 3.0.3... " >&6; }
16270 if test -z "$GPERF"; then
16271 ac_path_GPERF_found=false
16272 # Loop through the user's path and test for each of PROGNAME-LIST
16273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16274for as_dir in $PATH
16275do
16276 IFS=$as_save_IFS
16277 test -z "$as_dir" && as_dir=.
16278 for ac_prog in gperf; do
16279 for ac_exec_ext in '' $ac_executable_extensions; do
16280 ac_path_GPERF="$as_dir/$ac_prog$ac_exec_ext"
16281 as_fn_executable_p "$ac_path_GPERF" || continue
16282version=`$ac_path_GPERF --version | $SED -e '1 s/^.* \([0-9.]*\)$/\1/p;d'`
16283 if ${version:+false} :; then :
16284
e9c9a47c 16285else
a243b558
JF
16286 as_arg_v1=$version
16287as_arg_v2=3.0.3
16288awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
16289case $? in #(
16290 1) :
16291 ;; #(
16292 0) :
16293 ac_cv_path_GPERF=$ac_path_GPERF ;; #(
16294 2) :
16295 ac_cv_path_GPERF=$ac_path_GPERF ;; #(
16296 *) :
16297 ;;
16298esac
632b71ea 16299fi
a243b558
JF
16300
16301 $ac_path_GPERF_found && break 3
16302 done
16303 done
16304 done
16305IFS=$as_save_IFS
16306 if test -z "$ac_cv_path_GPERF"; then
16307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16308$as_echo "no" >&6; }
16309 fi
47aaa820 16310else
a243b558
JF
16311 ac_cv_path_GPERF=$GPERF
16312fi
9c60689e
DWT
16313
16314
a243b558 16315 if true; then :
9c60689e 16316
a243b558 16317 GPERF=$ac_cv_path_GPERF
9c60689e 16318
a243b558
JF
16319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPERF" >&5
16320$as_echo "$GPERF" >&6; }
9c60689e 16321
47aaa820 16322else
a243b558 16323 if true; then :
9c60689e 16324
a243b558
JF
16325 as_fn_error $? "You need gperf 3.0.3 or greater" "$LINENO" 5
16326
16327else
16328
16329 GPERF=:
16330
16331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16332$as_echo "no" >&6; }
9c60689e 16333
47aaa820 16334fi
47aaa820 16335fi
a243b558
JF
16336
16337
16338
16339
16340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tar gtar gnutar >= 1.19" >&5
16341$as_echo_n "checking for tar gtar gnutar >= 1.19... " >&6; }
16342 if test -z "$GNUTAR"; then
16343 ac_path_GNUTAR_found=false
16344 # Loop through the user's path and test for each of PROGNAME-LIST
16345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16346for as_dir in $PATH
16347do
16348 IFS=$as_save_IFS
16349 test -z "$as_dir" && as_dir=.
16350 for ac_prog in tar gtar gnutar; do
16351 for ac_exec_ext in '' $ac_executable_extensions; do
16352 ac_path_GNUTAR="$as_dir/$ac_prog$ac_exec_ext"
16353 as_fn_executable_p "$ac_path_GNUTAR" || continue
16354version=`$ac_path_GNUTAR --version | $SED -e '1 s/^tar (GNU tar) \(.*\)$/\1/p;d'`
16355 if ${version:+false} :; then :
16356
16357else
16358 as_arg_v1=$version
16359as_arg_v2=1.19
16360awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
16361case $? in #(
16362 1) :
16363 ;; #(
16364 0) :
16365 ac_cv_path_GNUTAR=$ac_path_GNUTAR ;; #(
16366 2) :
16367 ac_cv_path_GNUTAR=$ac_path_GNUTAR ;; #(
16368 *) :
16369 ;;
16370esac
790e5246 16371fi
a243b558
JF
16372
16373 $ac_path_GNUTAR_found && break 3
16374 done
16375 done
16376 done
16377IFS=$as_save_IFS
16378 if test -z "$ac_cv_path_GNUTAR"; then
16379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16380$as_echo "no" >&6; }
632b71ea 16381 fi
632b71ea 16382else
a243b558 16383 ac_cv_path_GNUTAR=$GNUTAR
632b71ea 16384fi
66170b30 16385
66170b30 16386
a243b558 16387 if true; then :
66170b30 16388
a243b558 16389 GNUTAR=$ac_cv_path_GNUTAR
66170b30 16390
a243b558
JF
16391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUTAR" >&5
16392$as_echo "$GNUTAR" >&6; }
66170b30 16393
a243b558
JF
16394else
16395 if true; then :
66170b30 16396
a243b558 16397 as_fn_error $? "You need tar gtar gnutar 1.19 or greater" "$LINENO" 5
66170b30 16398
66170b30 16399else
66170b30 16400
a243b558 16401 GNUTAR=:
66170b30 16402
a243b558
JF
16403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16404$as_echo "no" >&6; }
66170b30 16405
a243b558
JF
16406fi
16407fi
66170b30
JF
16408
16409
9228a43a
JF
16410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking bison for %code{}" >&5
16411$as_echo_n "checking bison for %code{}... " >&6; }
16412echo '%code{}%%_:' >conftest.y
16413if $BISON conftest.y -o/dev/null 2>/dev/null; then
16414
16415 for element in Bison24; do
16416 haveit=
16417 for x in $CY_FILTERS; do
16418
16419 acl_save_prefix="$prefix"
16420 prefix="$acl_final_prefix"
16421 acl_save_exec_prefix="$exec_prefix"
16422 exec_prefix="$acl_final_exec_prefix"
16423 eval x=\"$x\"
16424 exec_prefix="$acl_save_exec_prefix"
16425 prefix="$acl_save_prefix"
16426
16427 if test "X$x" = "X$element"; then
16428 haveit=yes
16429 break
16430 fi
16431 done
16432 if test -z "$haveit"; then
16433 CY_FILTERS="${CY_FILTERS}${CY_FILTERS:+ }$element"
16434 fi
16435 done
16436
16437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16438$as_echo "yes" >&6; }
16439else
16440
16441 for element in Bison23; do
16442 haveit=
16443 for x in $CY_FILTERS; do
16444
16445 acl_save_prefix="$prefix"
16446 prefix="$acl_final_prefix"
16447 acl_save_exec_prefix="$exec_prefix"
16448 exec_prefix="$acl_final_exec_prefix"
16449 eval x=\"$x\"
16450 exec_prefix="$acl_save_exec_prefix"
16451 prefix="$acl_save_prefix"
16452
16453 if test "X$x" = "X$element"; then
16454 haveit=yes
16455 break
16456 fi
16457 done
16458 if test -z "$haveit"; then
16459 CY_FILTERS="${CY_FILTERS}${CY_FILTERS:+ }$element"
16460 fi
16461 done
16462
16463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16464$as_echo "no" >&6; }
16465fi
16466
16467rm -f conftest.y
16468
16469
66170b30
JF
16470
16471
16472
16473
16474
16475
16476
16477
16478if ${CFLAGS+:} false; then :
16479 case " $CFLAGS " in
16480 *" "*)
16481 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains "; } >&5
16482 (: CFLAGS already contains ) 2>&5
16483 ac_status=$?
16484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16485 test $ac_status = 0; }
16486 ;;
16487 *)
16488 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \""; } >&5
16489 (: CFLAGS="$CFLAGS ") 2>&5
16490 ac_status=$?
16491 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16492 test $ac_status = 0; }
16493 CFLAGS="$CFLAGS "
16494 ;;
16495 esac
16496else
16497 CFLAGS=""
16498fi
16499
e9c9a47c
DWT
16500ac_ext=c
16501ac_cpp='$CPP $CPPFLAGS'
16502ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16503ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16504ac_compiler_gnu=$ac_cv_c_compiler_gnu
632b71ea 16505
66170b30
JF
16506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
16507$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
16508if ${ac_cv_cflags_warn_all+:} false; then :
16509 $as_echo_n "(cached) " >&6
16510else
16511 ac_cv_cflags_warn_all="no, unknown"
16512ac_save_CFLAGS="$CFLAGS"
16513for 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" #
16514do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
16515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16516/* end confdefs.h. */
16517
16518int
16519main ()
16520{
16521
16522 ;
16523 return 0;
16524}
16525_ACEOF
16526if ac_fn_c_try_compile "$LINENO"; then :
16527 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
16528fi
16529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16530done
16531CFLAGS="$ac_save_CFLAGS"
16532
16533fi
16534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
16535$as_echo "$ac_cv_cflags_warn_all" >&6; }
16536
16537case ".$ac_cv_cflags_warn_all" in
16538 .ok|.ok,*) ;;
16539 .|.no|.no,*) ;;
16540 *) if ${CFLAGS+:} false; then :
16541 case " $CFLAGS " in
16542 *" $ac_cv_cflags_warn_all "*)
16543 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5
16544 (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5
16545 ac_status=$?
16546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16547 test $ac_status = 0; }
16548 ;;
16549 *)
16550 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
16551 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
16552 ac_status=$?
16553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16554 test $ac_status = 0; }
16555 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
16556 ;;
16557 esac
16558else
16559 CFLAGS="$ac_cv_cflags_warn_all"
16560fi
16561 ;;
16562esac
16563
b816329d
JF
16564ac_ext=cpp
16565ac_cpp='$CXXCPP $CPPFLAGS'
16566ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16567ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16568ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16569
9c60689e 16570
66170b30
JF
16571ac_ext=cpp
16572ac_cpp='$CXXCPP $CPPFLAGS'
16573ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16574ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16575ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1504c9b8 16576
66170b30
JF
16577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for maximum warnings" >&5
16578$as_echo_n "checking CXXFLAGS for maximum warnings... " >&6; }
16579if ${ac_cv_cxxflags_warn_all+:} false; then :
16580 $as_echo_n "(cached) " >&6
16581else
16582 ac_cv_cxxflags_warn_all="no, unknown"
16583ac_save_CXXFLAGS="$CXXFLAGS"
16584for 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" #
16585do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
16586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16587/* end confdefs.h. */
1504c9b8 16588
66170b30
JF
16589int
16590main ()
16591{
1504c9b8 16592
66170b30
JF
16593 ;
16594 return 0;
16595}
16596_ACEOF
16597if ac_fn_cxx_try_compile "$LINENO"; then :
16598 ac_cv_cxxflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
16599fi
16600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16601done
16602CXXFLAGS="$ac_save_CXXFLAGS"
1504c9b8 16603
66170b30
JF
16604fi
16605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxxflags_warn_all" >&5
16606$as_echo "$ac_cv_cxxflags_warn_all" >&6; }
16607
16608case ".$ac_cv_cxxflags_warn_all" in
16609 .ok|.ok,*) ;;
16610 .|.no|.no,*) ;;
16611 *) if ${CXXFLAGS+:} false; then :
16612 case " $CXXFLAGS " in
16613 *" $ac_cv_cxxflags_warn_all "*)
16614 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$ac_cv_cxxflags_warn_all"; } >&5
16615 (: CXXFLAGS already contains $ac_cv_cxxflags_warn_all) 2>&5
16616 ac_status=$?
16617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16618 test $ac_status = 0; }
16619 ;;
16620 *)
16621 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$ac_cv_cxxflags_warn_all\""; } >&5
16622 (: CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all") 2>&5
16623 ac_status=$?
16624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16625 test $ac_status = 0; }
16626 CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all"
16627 ;;
16628 esac
16629else
16630 CXXFLAGS="$ac_cv_cxxflags_warn_all"
16631fi
16632 ;;
16633esac
16634
16635ac_ext=cpp
16636ac_cpp='$CXXCPP $CPPFLAGS'
16637ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16638ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16639ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16640
16641
16642
16643
16644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wno-overloaded-virtual" >&5
16645$as_echo_n "checking for -Wno-overloaded-virtual... " >&6; }
16646
16647 cy_save=$CXXFLAGS
16648
16649 for element in -Wno-overloaded-virtual; do
1504c9b8
DWT
16650 haveit=
16651 for x in $CXXFLAGS; do
16652
16653 acl_save_prefix="$prefix"
16654 prefix="$acl_final_prefix"
16655 acl_save_exec_prefix="$exec_prefix"
16656 exec_prefix="$acl_final_exec_prefix"
16657 eval x=\"$x\"
16658 exec_prefix="$acl_save_exec_prefix"
16659 prefix="$acl_save_prefix"
16660
16661 if test "X$x" = "X$element"; then
16662 haveit=yes
16663 break
16664 fi
16665 done
16666 if test -z "$haveit"; then
16667 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
16668 fi
16669 done
16670
66170b30
JF
16671
16672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1504c9b8
DWT
16673/* end confdefs.h. */
16674
66170b30
JF
16675_ACEOF
16676if ac_fn_cxx_try_compile "$LINENO"; then :
16677 cy_good=1
16678else
16679 cy_good=0
16680fi
16681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16682
16683 CXXFLAGS=$cy_save
16684 if test "x$cy_good" = x1; then :
16685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16686$as_echo "yes" >&6; }
16687
16688
16689 for element in -Wno-overloaded-virtual; do
16690 haveit=
16691 for x in $CFLAGS; do
16692
16693 acl_save_prefix="$prefix"
16694 prefix="$acl_final_prefix"
16695 acl_save_exec_prefix="$exec_prefix"
16696 exec_prefix="$acl_final_exec_prefix"
16697 eval x=\"$x\"
16698 exec_prefix="$acl_save_exec_prefix"
16699 prefix="$acl_save_prefix"
16700
16701 if test "X$x" = "X$element"; then
16702 haveit=yes
16703 break
16704 fi
16705 done
16706 if test -z "$haveit"; then
16707 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
16708 fi
16709 done
16710
16711
16712 for element in -Wno-overloaded-virtual; do
16713 haveit=
16714 for x in $CXXFLAGS; do
16715
16716 acl_save_prefix="$prefix"
16717 prefix="$acl_final_prefix"
16718 acl_save_exec_prefix="$exec_prefix"
16719 exec_prefix="$acl_final_exec_prefix"
16720 eval x=\"$x\"
16721 exec_prefix="$acl_save_exec_prefix"
16722 prefix="$acl_save_prefix"
16723
16724 if test "X$x" = "X$element"; then
16725 haveit=yes
16726 break
16727 fi
16728 done
16729 if test -z "$haveit"; then
16730 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
16731 fi
16732 done
16733
16734
16735 for element in -Wno-overloaded-virtual; do
16736 haveit=
16737 for x in $OBJCCXXFLAGS; do
16738
16739 acl_save_prefix="$prefix"
16740 prefix="$acl_final_prefix"
16741 acl_save_exec_prefix="$exec_prefix"
16742 exec_prefix="$acl_final_exec_prefix"
16743 eval x=\"$x\"
16744 exec_prefix="$acl_save_exec_prefix"
16745 prefix="$acl_save_prefix"
16746
16747 if test "X$x" = "X$element"; then
16748 haveit=yes
16749 break
16750 fi
16751 done
16752 if test -z "$haveit"; then
16753 OBJCCXXFLAGS="${OBJCCXXFLAGS}${OBJCCXXFLAGS:+ }$element"
16754 fi
16755 done
16756
16757
16758
16759else
16760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16761$as_echo "no" >&6; }
16762fi
16763
16764
16765
16766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wno-parentheses" >&5
16767$as_echo_n "checking for -Wno-parentheses... " >&6; }
16768
16769 cy_save=$CXXFLAGS
16770
16771 for element in -Wno-parentheses; do
16772 haveit=
16773 for x in $CXXFLAGS; do
16774
16775 acl_save_prefix="$prefix"
16776 prefix="$acl_final_prefix"
16777 acl_save_exec_prefix="$exec_prefix"
16778 exec_prefix="$acl_final_exec_prefix"
16779 eval x=\"$x\"
16780 exec_prefix="$acl_save_exec_prefix"
16781 prefix="$acl_save_prefix"
16782
16783 if test "X$x" = "X$element"; then
16784 haveit=yes
16785 break
16786 fi
16787 done
16788 if test -z "$haveit"; then
16789 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
16790 fi
16791 done
16792
16793
16794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16795/* end confdefs.h. */
1504c9b8 16796
1504c9b8 16797_ACEOF
66170b30
JF
16798if ac_fn_cxx_try_compile "$LINENO"; then :
16799 cy_good=1
16800else
16801 cy_good=0
16802fi
16803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16804
16805 CXXFLAGS=$cy_save
16806 if test "x$cy_good" = x1; then :
16807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16808$as_echo "yes" >&6; }
1504c9b8
DWT
16809
16810
66170b30 16811 for element in -Wno-parentheses; do
1504c9b8 16812 haveit=
66170b30 16813 for x in $CFLAGS; do
1504c9b8
DWT
16814
16815 acl_save_prefix="$prefix"
16816 prefix="$acl_final_prefix"
16817 acl_save_exec_prefix="$exec_prefix"
16818 exec_prefix="$acl_final_exec_prefix"
16819 eval x=\"$x\"
16820 exec_prefix="$acl_save_exec_prefix"
16821 prefix="$acl_save_prefix"
16822
16823 if test "X$x" = "X$element"; then
16824 haveit=yes
16825 break
16826 fi
16827 done
16828 if test -z "$haveit"; then
66170b30 16829 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
1504c9b8
DWT
16830 fi
16831 done
16832
16833
66170b30
JF
16834 for element in -Wno-parentheses; do
16835 haveit=
16836 for x in $CXXFLAGS; do
16837
16838 acl_save_prefix="$prefix"
16839 prefix="$acl_final_prefix"
16840 acl_save_exec_prefix="$exec_prefix"
16841 exec_prefix="$acl_final_exec_prefix"
16842 eval x=\"$x\"
16843 exec_prefix="$acl_save_exec_prefix"
16844 prefix="$acl_save_prefix"
16845
16846 if test "X$x" = "X$element"; then
16847 haveit=yes
16848 break
16849 fi
16850 done
16851 if test -z "$haveit"; then
16852 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
16853 fi
16854 done
16855
16856
16857 for element in -Wno-parentheses; do
16858 haveit=
16859 for x in $OBJCCXXFLAGS; do
16860
16861 acl_save_prefix="$prefix"
16862 prefix="$acl_final_prefix"
16863 acl_save_exec_prefix="$exec_prefix"
16864 exec_prefix="$acl_final_exec_prefix"
16865 eval x=\"$x\"
16866 exec_prefix="$acl_save_exec_prefix"
16867 prefix="$acl_save_prefix"
16868
16869 if test "X$x" = "X$element"; then
16870 haveit=yes
16871 break
16872 fi
16873 done
16874 if test -z "$haveit"; then
16875 OBJCCXXFLAGS="${OBJCCXXFLAGS}${OBJCCXXFLAGS:+ }$element"
16876 fi
16877 done
16878
16879
16880
16881else
16882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16883$as_echo "no" >&6; }
16884fi
16885
16886
16887
16888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wno-unneeded-internal-declaration" >&5
16889$as_echo_n "checking for -Wno-unneeded-internal-declaration... " >&6; }
16890
16891 cy_save=$CXXFLAGS
16892
16893 for element in -Wno-unneeded-internal-declaration; do
16894 haveit=
16895 for x in $CXXFLAGS; do
16896
16897 acl_save_prefix="$prefix"
16898 prefix="$acl_final_prefix"
16899 acl_save_exec_prefix="$exec_prefix"
16900 exec_prefix="$acl_final_exec_prefix"
16901 eval x=\"$x\"
16902 exec_prefix="$acl_save_exec_prefix"
16903 prefix="$acl_save_prefix"
16904
16905 if test "X$x" = "X$element"; then
16906 haveit=yes
16907 break
16908 fi
16909 done
16910 if test -z "$haveit"; then
16911 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
16912 fi
16913 done
16914
16915
16916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16917/* end confdefs.h. */
16918
16919_ACEOF
16920if ac_fn_cxx_try_compile "$LINENO"; then :
16921 cy_good=1
16922else
16923 cy_good=0
16924fi
16925rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16926
16927 CXXFLAGS=$cy_save
16928 if test "x$cy_good" = x1; then :
16929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16930$as_echo "yes" >&6; }
16931
16932
16933 for element in -Wno-unneeded-internal-declaration; do
1504c9b8
DWT
16934 haveit=
16935 for x in $CFLAGS; do
16936
16937 acl_save_prefix="$prefix"
16938 prefix="$acl_final_prefix"
16939 acl_save_exec_prefix="$exec_prefix"
16940 exec_prefix="$acl_final_exec_prefix"
16941 eval x=\"$x\"
16942 exec_prefix="$acl_save_exec_prefix"
16943 prefix="$acl_save_prefix"
16944
16945 if test "X$x" = "X$element"; then
16946 haveit=yes
16947 break
16948 fi
16949 done
16950 if test -z "$haveit"; then
16951 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
16952 fi
16953 done
16954
16955
66170b30 16956 for element in -Wno-unneeded-internal-declaration; do
1504c9b8 16957 haveit=
66170b30 16958 for x in $CXXFLAGS; do
1504c9b8
DWT
16959
16960 acl_save_prefix="$prefix"
16961 prefix="$acl_final_prefix"
16962 acl_save_exec_prefix="$exec_prefix"
16963 exec_prefix="$acl_final_exec_prefix"
16964 eval x=\"$x\"
16965 exec_prefix="$acl_save_exec_prefix"
16966 prefix="$acl_save_prefix"
16967
16968 if test "X$x" = "X$element"; then
16969 haveit=yes
16970 break
16971 fi
16972 done
16973 if test -z "$haveit"; then
66170b30 16974 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
1504c9b8
DWT
16975 fi
16976 done
16977
16978
66170b30 16979 for element in -Wno-unneeded-internal-declaration; do
1504c9b8 16980 haveit=
66170b30 16981 for x in $OBJCCXXFLAGS; do
1504c9b8
DWT
16982
16983 acl_save_prefix="$prefix"
16984 prefix="$acl_final_prefix"
16985 acl_save_exec_prefix="$exec_prefix"
16986 exec_prefix="$acl_final_exec_prefix"
16987 eval x=\"$x\"
16988 exec_prefix="$acl_save_exec_prefix"
16989 prefix="$acl_save_prefix"
16990
16991 if test "X$x" = "X$element"; then
16992 haveit=yes
16993 break
16994 fi
16995 done
16996 if test -z "$haveit"; then
66170b30 16997 OBJCCXXFLAGS="${OBJCCXXFLAGS}${OBJCCXXFLAGS:+ }$element"
1504c9b8
DWT
16998 fi
16999 done
17000
17001
1504c9b8 17002
66170b30
JF
17003else
17004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17005$as_echo "no" >&6; }
1504c9b8 17006fi
1504c9b8 17007
1504c9b8 17008
1504c9b8 17009
66170b30
JF
17010for cy_arch in ppc ppc64 i386 x86_64 armv6; do
17011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -arch $cy_arch" >&5
17012$as_echo_n "checking for -arch $cy_arch... " >&6; }
1504c9b8 17013
66170b30 17014 cy_save=$CXXFLAGS
1504c9b8
DWT
17015
17016 for element in "-arch $cy_arch"; do
17017 haveit=
17018 for x in $CXXFLAGS; do
17019
17020 acl_save_prefix="$prefix"
17021 prefix="$acl_final_prefix"
17022 acl_save_exec_prefix="$exec_prefix"
17023 exec_prefix="$acl_final_exec_prefix"
17024 eval x=\"$x\"
17025 exec_prefix="$acl_save_exec_prefix"
17026 prefix="$acl_save_prefix"
17027
17028 if test "X$x" = "X$element"; then
17029 haveit=yes
17030 break
17031 fi
17032 done
17033 if test -z "$haveit"; then
17034 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17035 fi
17036 done
17037
66170b30
JF
17038
17039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1504c9b8
DWT
17040/* end confdefs.h. */
17041
17042int
17043main ()
17044{
17045
17046 ;
17047 return 0;
a243b558
JF
17048}
17049_ACEOF
17050if ac_fn_cxx_try_link "$LINENO"; then :
17051 cy_good=1
17052else
17053 cy_good=0
17054fi
17055rm -f core conftest.err conftest.$ac_objext \
17056 conftest$ac_exeext conftest.$ac_ext
1504c9b8 17057
a243b558
JF
17058 CXXFLAGS=$cy_save
17059 if test "x$cy_good" = x1; then :
17060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17061$as_echo "yes" >&6; }
66170b30 17062
1504c9b8
DWT
17063 for element in "-arch $cy_arch"; do
17064 haveit=
a243b558 17065 for x in $CY_ARCH; do
1504c9b8
DWT
17066
17067 acl_save_prefix="$prefix"
17068 prefix="$acl_final_prefix"
17069 acl_save_exec_prefix="$exec_prefix"
17070 exec_prefix="$acl_final_exec_prefix"
17071 eval x=\"$x\"
17072 exec_prefix="$acl_save_exec_prefix"
17073 prefix="$acl_save_prefix"
17074
17075 if test "X$x" = "X$element"; then
17076 haveit=yes
17077 break
17078 fi
17079 done
17080 if test -z "$haveit"; then
a243b558 17081 CY_ARCH="${CY_ARCH}${CY_ARCH:+ }$element"
1504c9b8
DWT
17082 fi
17083 done
17084
17085
17086else
66170b30
JF
17087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17088$as_echo "no" >&6; }
1504c9b8
DWT
17089fi
17090
66170b30 17091done
1504c9b8 17092
a243b558
JF
17093
17094
e9c9a47c
DWT
17095# Check whether --with-frameworks was given.
17096if test "${with_frameworks+set}" = set; then :
17097 withval=$with_frameworks;
66170b30
JF
17098 for cy_framework in $withval; do
17099
9c60689e 17100
1504c9b8 17101 for element in -F$cy_framework; do
e9c9a47c
DWT
17102 haveit=
17103 for x in $CFLAGS; do
9c60689e 17104
e9c9a47c
DWT
17105 acl_save_prefix="$prefix"
17106 prefix="$acl_final_prefix"
17107 acl_save_exec_prefix="$exec_prefix"
17108 exec_prefix="$acl_final_exec_prefix"
17109 eval x=\"$x\"
17110 exec_prefix="$acl_save_exec_prefix"
17111 prefix="$acl_save_prefix"
17112
17113 if test "X$x" = "X$element"; then
17114 haveit=yes
17115 break
17116 fi
17117 done
17118 if test -z "$haveit"; then
17119 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
17120 fi
9c60689e 17121 done
9c60689e 17122
94690cff 17123
1504c9b8 17124 for element in -F$cy_framework; do
e9c9a47c
DWT
17125 haveit=
17126 for x in $CXXFLAGS; do
9c60689e 17127
e9c9a47c
DWT
17128 acl_save_prefix="$prefix"
17129 prefix="$acl_final_prefix"
17130 acl_save_exec_prefix="$exec_prefix"
17131 exec_prefix="$acl_final_exec_prefix"
17132 eval x=\"$x\"
17133 exec_prefix="$acl_save_exec_prefix"
17134 prefix="$acl_save_prefix"
9c60689e 17135
e9c9a47c
DWT
17136 if test "X$x" = "X$element"; then
17137 haveit=yes
17138 break
17139 fi
17140 done
17141 if test -z "$haveit"; then
17142 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17143 fi
17144 done
9c60689e 17145
e9c9a47c 17146
1504c9b8 17147 for element in -F$cy_framework; do
e9c9a47c
DWT
17148 haveit=
17149 for x in $OBJCCXXFLAGS; do
17150
17151 acl_save_prefix="$prefix"
17152 prefix="$acl_final_prefix"
17153 acl_save_exec_prefix="$exec_prefix"
17154 exec_prefix="$acl_final_exec_prefix"
17155 eval x=\"$x\"
17156 exec_prefix="$acl_save_exec_prefix"
17157 prefix="$acl_save_prefix"
17158
17159 if test "X$x" = "X$element"; then
17160 haveit=yes
17161 break
17162 fi
17163 done
17164 if test -z "$haveit"; then
17165 OBJCCXXFLAGS="${OBJCCXXFLAGS}${OBJCCXXFLAGS:+ }$element"
17166 fi
9c60689e 17167 done
632b71ea 17168
9c60689e 17169
632b71ea 17170 done
9c60689e 17171
632b71ea 17172fi
9c60689e 17173
9c60689e 17174
632b71ea
DWT
17175
17176
5053a6d1
DWT
17177# Check whether --enable-javascript was given.
17178if test "${enable_javascript+set}" = set; then :
17179 enableval=$enable_javascript;
66170b30 17180 case $enableval in #(
5053a6d1 17181 yes) :
9c60689e
DWT
17182
17183
9c60689e 17184
66170b30 17185
5053a6d1
DWT
17186pkg_failed=no
17187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
17188$as_echo_n "checking for WEBKIT... " >&6; }
17189
12833ad8
JF
17190if test -n "$WEBKIT_CFLAGS"; then
17191 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
17192 elif test -n "$PKG_CONFIG"; then
17193 if test -n "$PKG_CONFIG" && \
5053a6d1
DWT
17194 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5
17195 ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5
17196 ac_status=$?
17197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17198 test $ac_status = 0; }; then
17199 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "webkit-1.0" 2>/dev/null`
9c60689e 17200else
5053a6d1 17201 pkg_failed=yes
9c60689e 17202fi
12833ad8
JF
17203 else
17204 pkg_failed=untried
632b71ea 17205fi
12833ad8
JF
17206if test -n "$WEBKIT_LIBS"; then
17207 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
17208 elif test -n "$PKG_CONFIG"; then
17209 if test -n "$PKG_CONFIG" && \
5053a6d1
DWT
17210 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5
17211 ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5
17212 ac_status=$?
17213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17214 test $ac_status = 0; }; then
17215 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "webkit-1.0" 2>/dev/null`
9c60689e 17216else
5053a6d1 17217 pkg_failed=yes
9c60689e 17218fi
12833ad8
JF
17219 else
17220 pkg_failed=untried
9c60689e
DWT
17221fi
17222
17223
17224
5053a6d1 17225if test $pkg_failed = yes; then
12833ad8
JF
17226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17227$as_echo "no" >&6; }
9c60689e 17228
5053a6d1
DWT
17229if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17230 _pkg_short_errors_supported=yes
9c60689e 17231else
5053a6d1
DWT
17232 _pkg_short_errors_supported=no
17233fi
17234 if test $_pkg_short_errors_supported = yes; then
53ba6704 17235 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "webkit-1.0" 2>&1`
5053a6d1 17236 else
53ba6704 17237 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "webkit-1.0" 2>&1`
5053a6d1
DWT
17238 fi
17239 # Put the nasty error message in config.log where it belongs
17240 echo "$WEBKIT_PKG_ERRORS" >&5
632b71ea 17241
5053a6d1
DWT
17242
17243
17244pkg_failed=no
17245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
17246$as_echo_n "checking for WEBKIT... " >&6; }
632b71ea 17247
12833ad8
JF
17248if test -n "$WEBKIT_CFLAGS"; then
17249 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
17250 elif test -n "$PKG_CONFIG"; then
17251 if test -n "$PKG_CONFIG" && \
5053a6d1
DWT
17252 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
17253 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
17254 ac_status=$?
17255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17256 test $ac_status = 0; }; then
17257 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null`
17258else
17259 pkg_failed=yes
9c60689e 17260fi
12833ad8
JF
17261 else
17262 pkg_failed=untried
5053a6d1 17263fi
12833ad8
JF
17264if test -n "$WEBKIT_LIBS"; then
17265 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
17266 elif test -n "$PKG_CONFIG"; then
17267 if test -n "$PKG_CONFIG" && \
5053a6d1
DWT
17268 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
17269 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
17270 ac_status=$?
17271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17272 test $ac_status = 0; }; then
17273 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null`
17274else
17275 pkg_failed=yes
17276fi
12833ad8
JF
17277 else
17278 pkg_failed=untried
632b71ea
DWT
17279fi
17280
17281
17282
5053a6d1 17283if test $pkg_failed = yes; then
12833ad8
JF
17284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17285$as_echo "no" >&6; }
5053a6d1
DWT
17286
17287if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17288 _pkg_short_errors_supported=yes
17289else
17290 _pkg_short_errors_supported=no
17291fi
17292 if test $_pkg_short_errors_supported = yes; then
53ba6704 17293 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "WebKitGtk" 2>&1`
5053a6d1 17294 else
53ba6704 17295 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "WebKitGtk" 2>&1`
5053a6d1
DWT
17296 fi
17297 # Put the nasty error message in config.log where it belongs
17298 echo "$WEBKIT_PKG_ERRORS" >&5
17299
5053a6d1 17300
632b71ea 17301
5053a6d1
DWT
17302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
17303$as_echo_n "checking for framework JavaScriptCore... " >&6; }
ee134472 17304if ${ac_cv_framework_JavaScriptCore+:} false; then :
5053a6d1
DWT
17305 $as_echo_n "(cached) " >&6
17306else
632b71ea 17307
5053a6d1
DWT
17308 ac_check_framework_save_LIBS=$LIBS
17309 LIBS="-framework JavaScriptCore $LIBS"
17310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17311/* end confdefs.h. */
632b71ea 17312
66170b30 17313 #include <JavaScriptCore/JSBase.h>
632b71ea 17314
5053a6d1
DWT
17315int
17316main ()
17317{
66170b30
JF
17318
17319 JSEvaluateScript(0, 0, 0, 0, 0, 0);
17320
5053a6d1
DWT
17321 ;
17322 return 0;
17323}
17324_ACEOF
17325if ac_fn_cxx_try_link "$LINENO"; then :
632b71ea 17326
5053a6d1 17327 ac_cv_framework_JavaScriptCore=yes
632b71ea 17328
5053a6d1
DWT
17329else
17330 ac_cv_framework_JavaScriptCore=no
17331fi
17332rm -f core conftest.err conftest.$ac_objext \
17333 conftest$ac_exeext conftest.$ac_ext
17334 LIBS=$ac_check_framework_save_LIBS
632b71ea 17335
5053a6d1
DWT
17336fi
17337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
17338$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
17339 if test $ac_cv_framework_JavaScriptCore = yes; then :
632b71ea
DWT
17340
17341
5053a6d1
DWT
17342 for element in "-framework JavaScriptCore $LIBS"; do
17343 haveit=
17344 for x in $LIBS; 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
17360 LIBS="${LIBS}${LIBS:+ }$element"
17361 fi
17362 done
17363
66170b30
JF
17364
17365 CY_EXECUTE=1
17366
17367
632b71ea 17368
5053a6d1
DWT
17369fi
17370
17371elif test $pkg_failed = untried; then
12833ad8
JF
17372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17373$as_echo "no" >&6; }
5053a6d1
DWT
17374
17375
17376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
17377$as_echo_n "checking for framework JavaScriptCore... " >&6; }
ee134472 17378if ${ac_cv_framework_JavaScriptCore+:} false; then :
5053a6d1
DWT
17379 $as_echo_n "(cached) " >&6
17380else
17381
17382 ac_check_framework_save_LIBS=$LIBS
17383 LIBS="-framework JavaScriptCore $LIBS"
17384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17385/* end confdefs.h. */
17386
66170b30 17387 #include <JavaScriptCore/JSBase.h>
5053a6d1
DWT
17388
17389int
17390main ()
17391{
66170b30
JF
17392
17393 JSEvaluateScript(0, 0, 0, 0, 0, 0);
17394
5053a6d1
DWT
17395 ;
17396 return 0;
17397}
17398_ACEOF
17399if ac_fn_cxx_try_link "$LINENO"; then :
17400
17401 ac_cv_framework_JavaScriptCore=yes
17402
17403else
17404 ac_cv_framework_JavaScriptCore=no
17405fi
17406rm -f core conftest.err conftest.$ac_objext \
17407 conftest$ac_exeext conftest.$ac_ext
17408 LIBS=$ac_check_framework_save_LIBS
17409
17410fi
17411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
17412$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
17413 if test $ac_cv_framework_JavaScriptCore = yes; then :
17414
17415
17416 for element in "-framework JavaScriptCore $LIBS"; do
17417 haveit=
17418 for x in $LIBS; do
632b71ea
DWT
17419
17420 acl_save_prefix="$prefix"
17421 prefix="$acl_final_prefix"
17422 acl_save_exec_prefix="$exec_prefix"
17423 exec_prefix="$acl_final_exec_prefix"
5053a6d1
DWT
17424 eval x=\"$x\"
17425 exec_prefix="$acl_save_exec_prefix"
17426 prefix="$acl_save_prefix"
632b71ea 17427
5053a6d1
DWT
17428 if test "X$x" = "X$element"; then
17429 haveit=yes
17430 break
17431 fi
17432 done
17433 if test -z "$haveit"; then
17434 LIBS="${LIBS}${LIBS:+ }$element"
17435 fi
17436 done
17437
66170b30
JF
17438
17439 CY_EXECUTE=1
17440
17441
5053a6d1
DWT
17442
17443fi
17444
17445else
17446 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
17447 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
17448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17449$as_echo "yes" >&6; }
17450
66170b30
JF
17451 CY_EXECUTE=1
17452
5053a6d1
DWT
17453
17454 for element in `$PKG_CONFIG --cflags WebKitGtk`; do
17455 haveit=
17456 for x in $CXXFLAGS; do
632b71ea 17457
5053a6d1
DWT
17458 acl_save_prefix="$prefix"
17459 prefix="$acl_final_prefix"
17460 acl_save_exec_prefix="$exec_prefix"
17461 exec_prefix="$acl_final_exec_prefix"
17462 eval x=\"$x\"
632b71ea
DWT
17463 exec_prefix="$acl_save_exec_prefix"
17464 prefix="$acl_save_prefix"
17465
5053a6d1
DWT
17466 if test "X$x" = "X$element"; then
17467 haveit=yes
17468 break
632b71ea 17469 fi
5053a6d1
DWT
17470 done
17471 if test -z "$haveit"; then
17472 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
632b71ea 17473 fi
5053a6d1 17474 done
632b71ea 17475
632b71ea 17476
5053a6d1
DWT
17477 for element in `$PKG_CONFIG --libs WebKitGtk`; do
17478 haveit=
17479 for x in $LIBS; do
632b71ea
DWT
17480
17481 acl_save_prefix="$prefix"
17482 prefix="$acl_final_prefix"
17483 acl_save_exec_prefix="$exec_prefix"
17484 exec_prefix="$acl_final_exec_prefix"
17485 eval x=\"$x\"
17486 exec_prefix="$acl_save_exec_prefix"
17487 prefix="$acl_save_prefix"
17488
5053a6d1
DWT
17489 if test "X$x" = "X$element"; then
17490 haveit=yes
17491 break
17492 fi
17493 done
17494 if test -z "$haveit"; then
17495 LIBS="${LIBS}${LIBS:+ }$element"
17496 fi
17497 done
632b71ea 17498
632b71ea 17499
5053a6d1 17500fi
632b71ea 17501
5053a6d1 17502elif test $pkg_failed = untried; then
12833ad8
JF
17503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17504$as_echo "no" >&6; }
632b71ea 17505
632b71ea 17506
5053a6d1
DWT
17507pkg_failed=no
17508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
17509$as_echo_n "checking for WEBKIT... " >&6; }
632b71ea 17510
12833ad8
JF
17511if test -n "$WEBKIT_CFLAGS"; then
17512 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
17513 elif test -n "$PKG_CONFIG"; then
17514 if test -n "$PKG_CONFIG" && \
5053a6d1
DWT
17515 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
17516 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
17517 ac_status=$?
17518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17519 test $ac_status = 0; }; then
17520 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null`
17521else
17522 pkg_failed=yes
17523fi
12833ad8
JF
17524 else
17525 pkg_failed=untried
5053a6d1 17526fi
12833ad8
JF
17527if test -n "$WEBKIT_LIBS"; then
17528 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
17529 elif test -n "$PKG_CONFIG"; then
17530 if test -n "$PKG_CONFIG" && \
5053a6d1
DWT
17531 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
17532 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
17533 ac_status=$?
17534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17535 test $ac_status = 0; }; then
17536 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null`
17537else
17538 pkg_failed=yes
17539fi
12833ad8
JF
17540 else
17541 pkg_failed=untried
5053a6d1 17542fi
9c60689e 17543
9c60689e
DWT
17544
17545
5053a6d1 17546if test $pkg_failed = yes; then
12833ad8
JF
17547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17548$as_echo "no" >&6; }
5053a6d1
DWT
17549
17550if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17551 _pkg_short_errors_supported=yes
17552else
17553 _pkg_short_errors_supported=no
17554fi
17555 if test $_pkg_short_errors_supported = yes; then
53ba6704 17556 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "WebKitGtk" 2>&1`
5053a6d1 17557 else
53ba6704 17558 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "WebKitGtk" 2>&1`
5053a6d1
DWT
17559 fi
17560 # Put the nasty error message in config.log where it belongs
17561 echo "$WEBKIT_PKG_ERRORS" >&5
17562
9c60689e 17563
9c60689e 17564
5053a6d1
DWT
17565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
17566$as_echo_n "checking for framework JavaScriptCore... " >&6; }
ee134472 17567if ${ac_cv_framework_JavaScriptCore+:} false; then :
5053a6d1
DWT
17568 $as_echo_n "(cached) " >&6
17569else
9c60689e 17570
5053a6d1
DWT
17571 ac_check_framework_save_LIBS=$LIBS
17572 LIBS="-framework JavaScriptCore $LIBS"
17573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17574/* end confdefs.h. */
9c60689e 17575
66170b30 17576 #include <JavaScriptCore/JSBase.h>
9c60689e 17577
5053a6d1
DWT
17578int
17579main ()
17580{
66170b30
JF
17581
17582 JSEvaluateScript(0, 0, 0, 0, 0, 0);
17583
5053a6d1
DWT
17584 ;
17585 return 0;
17586}
17587_ACEOF
17588if ac_fn_cxx_try_link "$LINENO"; then :
17589
17590 ac_cv_framework_JavaScriptCore=yes
17591
17592else
17593 ac_cv_framework_JavaScriptCore=no
17594fi
17595rm -f core conftest.err conftest.$ac_objext \
17596 conftest$ac_exeext conftest.$ac_ext
17597 LIBS=$ac_check_framework_save_LIBS
17598
17599fi
17600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
17601$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
17602 if test $ac_cv_framework_JavaScriptCore = yes; then :
17603
17604
17605 for element in "-framework JavaScriptCore $LIBS"; do
632b71ea 17606 haveit=
5053a6d1 17607 for x in $LIBS; do
9c60689e 17608
632b71ea
DWT
17609 acl_save_prefix="$prefix"
17610 prefix="$acl_final_prefix"
17611 acl_save_exec_prefix="$exec_prefix"
17612 exec_prefix="$acl_final_exec_prefix"
17613 eval x=\"$x\"
17614 exec_prefix="$acl_save_exec_prefix"
17615 prefix="$acl_save_prefix"
17616
17617 if test "X$x" = "X$element"; then
17618 haveit=yes
17619 break
17620 fi
17621 done
17622 if test -z "$haveit"; then
5053a6d1 17623 LIBS="${LIBS}${LIBS:+ }$element"
632b71ea
DWT
17624 fi
17625 done
b128dfee 17626
66170b30
JF
17627
17628 CY_EXECUTE=1
17629
17630
5053a6d1
DWT
17631
17632fi
c823f118 17633
5053a6d1 17634elif test $pkg_failed = untried; then
12833ad8
JF
17635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17636$as_echo "no" >&6; }
5053a6d1
DWT
17637
17638
17639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
17640$as_echo_n "checking for framework JavaScriptCore... " >&6; }
ee134472 17641if ${ac_cv_framework_JavaScriptCore+:} false; then :
c823f118
DWT
17642 $as_echo_n "(cached) " >&6
17643else
17644
5053a6d1
DWT
17645 ac_check_framework_save_LIBS=$LIBS
17646 LIBS="-framework JavaScriptCore $LIBS"
17647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
632b71ea 17648/* end confdefs.h. */
5053a6d1 17649
66170b30 17650 #include <JavaScriptCore/JSBase.h>
5053a6d1 17651
632b71ea
DWT
17652int
17653main ()
17654{
66170b30
JF
17655
17656 JSEvaluateScript(0, 0, 0, 0, 0, 0);
17657
632b71ea
DWT
17658 ;
17659 return 0;
17660}
17661_ACEOF
5053a6d1
DWT
17662if ac_fn_cxx_try_link "$LINENO"; then :
17663
17664 ac_cv_framework_JavaScriptCore=yes
17665
17666else
17667 ac_cv_framework_JavaScriptCore=no
632b71ea
DWT
17668fi
17669rm -f core conftest.err conftest.$ac_objext \
17670 conftest$ac_exeext conftest.$ac_ext
5053a6d1 17671 LIBS=$ac_check_framework_save_LIBS
b128dfee 17672
c823f118 17673fi
5053a6d1
DWT
17674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
17675$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
17676 if test $ac_cv_framework_JavaScriptCore = yes; then :
c823f118
DWT
17677
17678
5053a6d1
DWT
17679 for element in "-framework JavaScriptCore $LIBS"; do
17680 haveit=
17681 for x in $LIBS; do
17682
17683 acl_save_prefix="$prefix"
17684 prefix="$acl_final_prefix"
17685 acl_save_exec_prefix="$exec_prefix"
17686 exec_prefix="$acl_final_exec_prefix"
17687 eval x=\"$x\"
17688 exec_prefix="$acl_save_exec_prefix"
17689 prefix="$acl_save_prefix"
17690
17691 if test "X$x" = "X$element"; then
17692 haveit=yes
17693 break
17694 fi
17695 done
17696 if test -z "$haveit"; then
17697 LIBS="${LIBS}${LIBS:+ }$element"
17698 fi
17699 done
c823f118 17700
66170b30
JF
17701
17702 CY_EXECUTE=1
17703
17704
b128dfee 17705
632b71ea 17706fi
c823f118 17707
5053a6d1
DWT
17708else
17709 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
17710 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
17711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17712$as_echo "yes" >&6; }
c823f118 17713
66170b30
JF
17714 CY_EXECUTE=1
17715
b128dfee 17716
5053a6d1
DWT
17717 for element in `$PKG_CONFIG --cflags WebKitGtk`; do
17718 haveit=
17719 for x in $CXXFLAGS; do
b128dfee 17720
5053a6d1
DWT
17721 acl_save_prefix="$prefix"
17722 prefix="$acl_final_prefix"
17723 acl_save_exec_prefix="$exec_prefix"
17724 exec_prefix="$acl_final_exec_prefix"
17725 eval x=\"$x\"
17726 exec_prefix="$acl_save_exec_prefix"
17727 prefix="$acl_save_prefix"
c823f118 17728
5053a6d1
DWT
17729 if test "X$x" = "X$element"; then
17730 haveit=yes
17731 break
17732 fi
17733 done
17734 if test -z "$haveit"; then
17735 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17736 fi
17737 done
c823f118 17738
c823f118 17739
5053a6d1
DWT
17740 for element in `$PKG_CONFIG --libs WebKitGtk`; do
17741 haveit=
17742 for x in $LIBS; do
17743
17744 acl_save_prefix="$prefix"
17745 prefix="$acl_final_prefix"
17746 acl_save_exec_prefix="$exec_prefix"
17747 exec_prefix="$acl_final_exec_prefix"
17748 eval x=\"$x\"
17749 exec_prefix="$acl_save_exec_prefix"
17750 prefix="$acl_save_prefix"
17751
17752 if test "X$x" = "X$element"; then
17753 haveit=yes
17754 break
17755 fi
17756 done
17757 if test -z "$haveit"; then
17758 LIBS="${LIBS}${LIBS:+ }$element"
17759 fi
17760 done
c823f118 17761
632b71ea 17762
b128dfee
DWT
17763fi
17764
5053a6d1
DWT
17765else
17766 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
17767 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
17768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17769$as_echo "yes" >&6; }
b128dfee 17770
66170b30
JF
17771 CY_EXECUTE=1
17772
c823f118 17773
5053a6d1
DWT
17774 for element in `$PKG_CONFIG --cflags webkit-1.0`; do
17775 haveit=
17776 for x in $CXXFLAGS; do
c823f118 17777
5053a6d1
DWT
17778 acl_save_prefix="$prefix"
17779 prefix="$acl_final_prefix"
17780 acl_save_exec_prefix="$exec_prefix"
17781 exec_prefix="$acl_final_exec_prefix"
17782 eval x=\"$x\"
17783 exec_prefix="$acl_save_exec_prefix"
17784 prefix="$acl_save_prefix"
c823f118 17785
5053a6d1
DWT
17786 if test "X$x" = "X$element"; then
17787 haveit=yes
17788 break
17789 fi
17790 done
17791 if test -z "$haveit"; then
17792 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17793 fi
17794 done
c823f118 17795
b66977f1 17796
5053a6d1
DWT
17797 for element in `$PKG_CONFIG --libs webkit-1.0`; do
17798 haveit=
17799 for x in $LIBS; do
17800
17801 acl_save_prefix="$prefix"
17802 prefix="$acl_final_prefix"
17803 acl_save_exec_prefix="$exec_prefix"
17804 exec_prefix="$acl_final_exec_prefix"
17805 eval x=\"$x\"
17806 exec_prefix="$acl_save_exec_prefix"
17807 prefix="$acl_save_prefix"
17808
17809 if test "X$x" = "X$element"; then
17810 haveit=yes
17811 break
17812 fi
17813 done
17814 if test -z "$haveit"; then
17815 LIBS="${LIBS}${LIBS:+ }$element"
17816 fi
17817 done
17818
17819
17820fi
5053a6d1
DWT
17821 ;; #(
17822 no) :
17823
66170b30
JF
17824 CY_EXECUTE=0
17825 ;; #(
5053a6d1 17826 JavaScriptCore) :
b66977f1
DWT
17827
17828
17829
17830pkg_failed=no
17831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
17832$as_echo_n "checking for WEBKIT... " >&6; }
17833
12833ad8
JF
17834if test -n "$WEBKIT_CFLAGS"; then
17835 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
17836 elif test -n "$PKG_CONFIG"; then
17837 if test -n "$PKG_CONFIG" && \
b66977f1
DWT
17838 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5
17839 ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5
17840 ac_status=$?
17841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17842 test $ac_status = 0; }; then
17843 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "webkit-1.0" 2>/dev/null`
17844else
17845 pkg_failed=yes
17846fi
12833ad8
JF
17847 else
17848 pkg_failed=untried
b66977f1 17849fi
12833ad8
JF
17850if test -n "$WEBKIT_LIBS"; then
17851 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
17852 elif test -n "$PKG_CONFIG"; then
17853 if test -n "$PKG_CONFIG" && \
b66977f1
DWT
17854 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5
17855 ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5
17856 ac_status=$?
17857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17858 test $ac_status = 0; }; then
17859 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "webkit-1.0" 2>/dev/null`
17860else
17861 pkg_failed=yes
17862fi
12833ad8
JF
17863 else
17864 pkg_failed=untried
b66977f1
DWT
17865fi
17866
17867
17868
17869if test $pkg_failed = yes; then
12833ad8
JF
17870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17871$as_echo "no" >&6; }
b66977f1
DWT
17872
17873if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17874 _pkg_short_errors_supported=yes
17875else
17876 _pkg_short_errors_supported=no
17877fi
17878 if test $_pkg_short_errors_supported = yes; then
53ba6704 17879 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "webkit-1.0" 2>&1`
b66977f1 17880 else
53ba6704 17881 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "webkit-1.0" 2>&1`
b66977f1
DWT
17882 fi
17883 # Put the nasty error message in config.log where it belongs
17884 echo "$WEBKIT_PKG_ERRORS" >&5
17885
b66977f1
DWT
17886
17887
17888pkg_failed=no
17889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
17890$as_echo_n "checking for WEBKIT... " >&6; }
17891
12833ad8
JF
17892if test -n "$WEBKIT_CFLAGS"; then
17893 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
17894 elif test -n "$PKG_CONFIG"; then
17895 if test -n "$PKG_CONFIG" && \
b66977f1
DWT
17896 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
17897 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
17898 ac_status=$?
17899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17900 test $ac_status = 0; }; then
17901 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null`
17902else
17903 pkg_failed=yes
17904fi
12833ad8
JF
17905 else
17906 pkg_failed=untried
b66977f1 17907fi
12833ad8
JF
17908if test -n "$WEBKIT_LIBS"; then
17909 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
17910 elif test -n "$PKG_CONFIG"; then
17911 if test -n "$PKG_CONFIG" && \
b66977f1
DWT
17912 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
17913 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
17914 ac_status=$?
17915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17916 test $ac_status = 0; }; then
17917 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null`
17918else
17919 pkg_failed=yes
17920fi
12833ad8
JF
17921 else
17922 pkg_failed=untried
b66977f1
DWT
17923fi
17924
17925
17926
17927if test $pkg_failed = yes; then
12833ad8
JF
17928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17929$as_echo "no" >&6; }
b66977f1
DWT
17930
17931if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17932 _pkg_short_errors_supported=yes
17933else
17934 _pkg_short_errors_supported=no
17935fi
17936 if test $_pkg_short_errors_supported = yes; then
53ba6704 17937 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "WebKitGtk" 2>&1`
b66977f1 17938 else
53ba6704 17939 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "WebKitGtk" 2>&1`
b66977f1
DWT
17940 fi
17941 # Put the nasty error message in config.log where it belongs
17942 echo "$WEBKIT_PKG_ERRORS" >&5
17943
b66977f1
DWT
17944
17945
17946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
17947$as_echo_n "checking for framework JavaScriptCore... " >&6; }
ee134472 17948if ${ac_cv_framework_JavaScriptCore+:} false; then :
b66977f1
DWT
17949 $as_echo_n "(cached) " >&6
17950else
17951
17952 ac_check_framework_save_LIBS=$LIBS
17953 LIBS="-framework JavaScriptCore $LIBS"
17954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17955/* end confdefs.h. */
17956
66170b30 17957 #include <JavaScriptCore/JSBase.h>
b66977f1
DWT
17958
17959int
17960main ()
17961{
66170b30
JF
17962
17963 JSEvaluateScript(0, 0, 0, 0, 0, 0);
17964
b66977f1
DWT
17965 ;
17966 return 0;
17967}
17968_ACEOF
17969if ac_fn_cxx_try_link "$LINENO"; then :
17970
17971 ac_cv_framework_JavaScriptCore=yes
17972
17973else
17974 ac_cv_framework_JavaScriptCore=no
17975fi
17976rm -f core conftest.err conftest.$ac_objext \
17977 conftest$ac_exeext conftest.$ac_ext
17978 LIBS=$ac_check_framework_save_LIBS
17979
17980fi
17981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
17982$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
17983 if test $ac_cv_framework_JavaScriptCore = yes; then :
17984
17985
17986 for element in "-framework JavaScriptCore $LIBS"; do
17987 haveit=
17988 for x in $LIBS; do
17989
17990 acl_save_prefix="$prefix"
17991 prefix="$acl_final_prefix"
17992 acl_save_exec_prefix="$exec_prefix"
17993 exec_prefix="$acl_final_exec_prefix"
17994 eval x=\"$x\"
17995 exec_prefix="$acl_save_exec_prefix"
17996 prefix="$acl_save_prefix"
17997
17998 if test "X$x" = "X$element"; then
17999 haveit=yes
18000 break
18001 fi
18002 done
18003 if test -z "$haveit"; then
18004 LIBS="${LIBS}${LIBS:+ }$element"
18005 fi
18006 done
18007
66170b30
JF
18008
18009 CY_EXECUTE=1
18010
18011
b66977f1
DWT
18012
18013fi
18014
18015elif test $pkg_failed = untried; then
12833ad8
JF
18016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18017$as_echo "no" >&6; }
b66977f1
DWT
18018
18019
18020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
18021$as_echo_n "checking for framework JavaScriptCore... " >&6; }
ee134472 18022if ${ac_cv_framework_JavaScriptCore+:} false; then :
b66977f1
DWT
18023 $as_echo_n "(cached) " >&6
18024else
18025
18026 ac_check_framework_save_LIBS=$LIBS
18027 LIBS="-framework JavaScriptCore $LIBS"
18028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18029/* end confdefs.h. */
18030
66170b30 18031 #include <JavaScriptCore/JSBase.h>
b66977f1
DWT
18032
18033int
18034main ()
18035{
66170b30
JF
18036
18037 JSEvaluateScript(0, 0, 0, 0, 0, 0);
18038
b66977f1
DWT
18039 ;
18040 return 0;
18041}
18042_ACEOF
18043if ac_fn_cxx_try_link "$LINENO"; then :
18044
18045 ac_cv_framework_JavaScriptCore=yes
18046
18047else
18048 ac_cv_framework_JavaScriptCore=no
18049fi
18050rm -f core conftest.err conftest.$ac_objext \
18051 conftest$ac_exeext conftest.$ac_ext
18052 LIBS=$ac_check_framework_save_LIBS
18053
18054fi
18055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
18056$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
18057 if test $ac_cv_framework_JavaScriptCore = yes; then :
18058
18059
18060 for element in "-framework JavaScriptCore $LIBS"; do
18061 haveit=
18062 for x in $LIBS; do
18063
18064 acl_save_prefix="$prefix"
18065 prefix="$acl_final_prefix"
18066 acl_save_exec_prefix="$exec_prefix"
18067 exec_prefix="$acl_final_exec_prefix"
18068 eval x=\"$x\"
18069 exec_prefix="$acl_save_exec_prefix"
18070 prefix="$acl_save_prefix"
18071
18072 if test "X$x" = "X$element"; then
18073 haveit=yes
18074 break
18075 fi
18076 done
18077 if test -z "$haveit"; then
18078 LIBS="${LIBS}${LIBS:+ }$element"
18079 fi
18080 done
18081
66170b30
JF
18082
18083 CY_EXECUTE=1
18084
18085
b66977f1
DWT
18086
18087fi
18088
18089else
18090 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
18091 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
18092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18093$as_echo "yes" >&6; }
18094
66170b30
JF
18095 CY_EXECUTE=1
18096
b66977f1
DWT
18097
18098 for element in `$PKG_CONFIG --cflags WebKitGtk`; do
18099 haveit=
18100 for x in $CXXFLAGS; do
18101
18102 acl_save_prefix="$prefix"
18103 prefix="$acl_final_prefix"
18104 acl_save_exec_prefix="$exec_prefix"
18105 exec_prefix="$acl_final_exec_prefix"
18106 eval x=\"$x\"
18107 exec_prefix="$acl_save_exec_prefix"
18108 prefix="$acl_save_prefix"
18109
18110 if test "X$x" = "X$element"; then
18111 haveit=yes
18112 break
18113 fi
18114 done
18115 if test -z "$haveit"; then
18116 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
18117 fi
18118 done
18119
18120
18121 for element in `$PKG_CONFIG --libs WebKitGtk`; do
18122 haveit=
18123 for x in $LIBS; do
18124
18125 acl_save_prefix="$prefix"
18126 prefix="$acl_final_prefix"
18127 acl_save_exec_prefix="$exec_prefix"
18128 exec_prefix="$acl_final_exec_prefix"
18129 eval x=\"$x\"
18130 exec_prefix="$acl_save_exec_prefix"
18131 prefix="$acl_save_prefix"
18132
18133 if test "X$x" = "X$element"; then
18134 haveit=yes
18135 break
18136 fi
18137 done
18138 if test -z "$haveit"; then
18139 LIBS="${LIBS}${LIBS:+ }$element"
18140 fi
18141 done
18142
18143
18144fi
18145
18146elif test $pkg_failed = untried; then
12833ad8
JF
18147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18148$as_echo "no" >&6; }
b66977f1
DWT
18149
18150
18151pkg_failed=no
18152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
18153$as_echo_n "checking for WEBKIT... " >&6; }
18154
12833ad8
JF
18155if test -n "$WEBKIT_CFLAGS"; then
18156 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
18157 elif test -n "$PKG_CONFIG"; then
18158 if test -n "$PKG_CONFIG" && \
b66977f1
DWT
18159 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
18160 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
18161 ac_status=$?
18162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18163 test $ac_status = 0; }; then
18164 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null`
18165else
18166 pkg_failed=yes
18167fi
12833ad8
JF
18168 else
18169 pkg_failed=untried
b66977f1 18170fi
12833ad8
JF
18171if test -n "$WEBKIT_LIBS"; then
18172 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
18173 elif test -n "$PKG_CONFIG"; then
18174 if test -n "$PKG_CONFIG" && \
b66977f1
DWT
18175 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
18176 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
18177 ac_status=$?
18178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18179 test $ac_status = 0; }; then
18180 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null`
18181else
18182 pkg_failed=yes
18183fi
12833ad8
JF
18184 else
18185 pkg_failed=untried
b66977f1
DWT
18186fi
18187
18188
18189
18190if test $pkg_failed = yes; then
12833ad8
JF
18191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18192$as_echo "no" >&6; }
b66977f1
DWT
18193
18194if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18195 _pkg_short_errors_supported=yes
18196else
18197 _pkg_short_errors_supported=no
18198fi
18199 if test $_pkg_short_errors_supported = yes; then
53ba6704 18200 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "WebKitGtk" 2>&1`
b66977f1 18201 else
53ba6704 18202 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "WebKitGtk" 2>&1`
b66977f1
DWT
18203 fi
18204 # Put the nasty error message in config.log where it belongs
18205 echo "$WEBKIT_PKG_ERRORS" >&5
18206
b66977f1
DWT
18207
18208
18209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
18210$as_echo_n "checking for framework JavaScriptCore... " >&6; }
ee134472 18211if ${ac_cv_framework_JavaScriptCore+:} false; then :
b66977f1
DWT
18212 $as_echo_n "(cached) " >&6
18213else
18214
18215 ac_check_framework_save_LIBS=$LIBS
18216 LIBS="-framework JavaScriptCore $LIBS"
18217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18218/* end confdefs.h. */
18219
66170b30 18220 #include <JavaScriptCore/JSBase.h>
b66977f1
DWT
18221
18222int
18223main ()
18224{
66170b30
JF
18225
18226 JSEvaluateScript(0, 0, 0, 0, 0, 0);
18227
b66977f1
DWT
18228 ;
18229 return 0;
18230}
18231_ACEOF
18232if ac_fn_cxx_try_link "$LINENO"; then :
18233
18234 ac_cv_framework_JavaScriptCore=yes
18235
18236else
18237 ac_cv_framework_JavaScriptCore=no
18238fi
18239rm -f core conftest.err conftest.$ac_objext \
18240 conftest$ac_exeext conftest.$ac_ext
18241 LIBS=$ac_check_framework_save_LIBS
18242
18243fi
18244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
18245$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
18246 if test $ac_cv_framework_JavaScriptCore = yes; then :
18247
18248
18249 for element in "-framework JavaScriptCore $LIBS"; do
18250 haveit=
18251 for x in $LIBS; do
18252
18253 acl_save_prefix="$prefix"
18254 prefix="$acl_final_prefix"
18255 acl_save_exec_prefix="$exec_prefix"
18256 exec_prefix="$acl_final_exec_prefix"
18257 eval x=\"$x\"
18258 exec_prefix="$acl_save_exec_prefix"
18259 prefix="$acl_save_prefix"
18260
18261 if test "X$x" = "X$element"; then
18262 haveit=yes
18263 break
18264 fi
18265 done
18266 if test -z "$haveit"; then
18267 LIBS="${LIBS}${LIBS:+ }$element"
18268 fi
18269 done
18270
66170b30
JF
18271
18272 CY_EXECUTE=1
18273
18274
b66977f1
DWT
18275
18276fi
18277
18278elif test $pkg_failed = untried; then
12833ad8
JF
18279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18280$as_echo "no" >&6; }
b66977f1
DWT
18281
18282
18283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
18284$as_echo_n "checking for framework JavaScriptCore... " >&6; }
ee134472 18285if ${ac_cv_framework_JavaScriptCore+:} false; then :
b66977f1
DWT
18286 $as_echo_n "(cached) " >&6
18287else
18288
18289 ac_check_framework_save_LIBS=$LIBS
18290 LIBS="-framework JavaScriptCore $LIBS"
18291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18292/* end confdefs.h. */
18293
66170b30 18294 #include <JavaScriptCore/JSBase.h>
b66977f1
DWT
18295
18296int
18297main ()
18298{
66170b30
JF
18299
18300 JSEvaluateScript(0, 0, 0, 0, 0, 0);
18301
b66977f1
DWT
18302 ;
18303 return 0;
18304}
18305_ACEOF
18306if ac_fn_cxx_try_link "$LINENO"; then :
18307
18308 ac_cv_framework_JavaScriptCore=yes
18309
18310else
18311 ac_cv_framework_JavaScriptCore=no
18312fi
18313rm -f core conftest.err conftest.$ac_objext \
18314 conftest$ac_exeext conftest.$ac_ext
18315 LIBS=$ac_check_framework_save_LIBS
18316
18317fi
18318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
18319$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
18320 if test $ac_cv_framework_JavaScriptCore = yes; then :
18321
18322
18323 for element in "-framework JavaScriptCore $LIBS"; do
18324 haveit=
18325 for x in $LIBS; do
18326
18327 acl_save_prefix="$prefix"
18328 prefix="$acl_final_prefix"
18329 acl_save_exec_prefix="$exec_prefix"
18330 exec_prefix="$acl_final_exec_prefix"
18331 eval x=\"$x\"
18332 exec_prefix="$acl_save_exec_prefix"
18333 prefix="$acl_save_prefix"
18334
18335 if test "X$x" = "X$element"; then
18336 haveit=yes
18337 break
18338 fi
18339 done
18340 if test -z "$haveit"; then
18341 LIBS="${LIBS}${LIBS:+ }$element"
18342 fi
18343 done
18344
66170b30
JF
18345
18346 CY_EXECUTE=1
18347
18348
b66977f1
DWT
18349
18350fi
18351
18352else
18353 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
18354 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
18355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18356$as_echo "yes" >&6; }
18357
66170b30
JF
18358 CY_EXECUTE=1
18359
b66977f1
DWT
18360
18361 for element in `$PKG_CONFIG --cflags WebKitGtk`; do
18362 haveit=
18363 for x in $CXXFLAGS; do
18364
18365 acl_save_prefix="$prefix"
18366 prefix="$acl_final_prefix"
18367 acl_save_exec_prefix="$exec_prefix"
18368 exec_prefix="$acl_final_exec_prefix"
18369 eval x=\"$x\"
18370 exec_prefix="$acl_save_exec_prefix"
18371 prefix="$acl_save_prefix"
18372
18373 if test "X$x" = "X$element"; then
18374 haveit=yes
18375 break
18376 fi
18377 done
18378 if test -z "$haveit"; then
18379 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
18380 fi
18381 done
18382
18383
18384 for element in `$PKG_CONFIG --libs WebKitGtk`; do
18385 haveit=
18386 for x in $LIBS; do
18387
18388 acl_save_prefix="$prefix"
18389 prefix="$acl_final_prefix"
18390 acl_save_exec_prefix="$exec_prefix"
18391 exec_prefix="$acl_final_exec_prefix"
18392 eval x=\"$x\"
18393 exec_prefix="$acl_save_exec_prefix"
18394 prefix="$acl_save_prefix"
18395
18396 if test "X$x" = "X$element"; then
18397 haveit=yes
18398 break
18399 fi
18400 done
18401 if test -z "$haveit"; then
18402 LIBS="${LIBS}${LIBS:+ }$element"
18403 fi
18404 done
18405
18406
18407fi
18408
18409else
18410 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
18411 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
18412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18413$as_echo "yes" >&6; }
18414
66170b30
JF
18415 CY_EXECUTE=1
18416
b66977f1
DWT
18417
18418 for element in `$PKG_CONFIG --cflags webkit-1.0`; do
18419 haveit=
18420 for x in $CXXFLAGS; do
18421
18422 acl_save_prefix="$prefix"
18423 prefix="$acl_final_prefix"
18424 acl_save_exec_prefix="$exec_prefix"
18425 exec_prefix="$acl_final_exec_prefix"
18426 eval x=\"$x\"
18427 exec_prefix="$acl_save_exec_prefix"
18428 prefix="$acl_save_prefix"
18429
18430 if test "X$x" = "X$element"; then
18431 haveit=yes
18432 break
18433 fi
18434 done
18435 if test -z "$haveit"; then
18436 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
18437 fi
18438 done
18439
18440
18441 for element in `$PKG_CONFIG --libs webkit-1.0`; do
18442 haveit=
18443 for x in $LIBS; do
18444
18445 acl_save_prefix="$prefix"
18446 prefix="$acl_final_prefix"
18447 acl_save_exec_prefix="$exec_prefix"
18448 exec_prefix="$acl_final_exec_prefix"
18449 eval x=\"$x\"
18450 exec_prefix="$acl_save_exec_prefix"
18451 prefix="$acl_save_prefix"
18452
18453 if test "X$x" = "X$element"; then
18454 haveit=yes
18455 break
18456 fi
18457 done
18458 if test -z "$haveit"; then
18459 LIBS="${LIBS}${LIBS:+ }$element"
18460 fi
18461 done
18462
18463
18464fi
66170b30 18465 ;; #(
5053a6d1 18466 *) :
ee134472 18467 as_fn_error $? "Unknown JavaScript engine: $enableval" "$LINENO" 5 ;;
5053a6d1
DWT
18468esac
18469
18470else
b66977f1
DWT
18471
18472
18473
18474pkg_failed=no
18475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
18476$as_echo_n "checking for WEBKIT... " >&6; }
18477
12833ad8
JF
18478if test -n "$WEBKIT_CFLAGS"; then
18479 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
18480 elif test -n "$PKG_CONFIG"; then
18481 if test -n "$PKG_CONFIG" && \
b66977f1
DWT
18482 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5
18483 ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5
18484 ac_status=$?
18485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18486 test $ac_status = 0; }; then
18487 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "webkit-1.0" 2>/dev/null`
18488else
18489 pkg_failed=yes
18490fi
12833ad8
JF
18491 else
18492 pkg_failed=untried
b66977f1 18493fi
12833ad8
JF
18494if test -n "$WEBKIT_LIBS"; then
18495 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
18496 elif test -n "$PKG_CONFIG"; then
18497 if test -n "$PKG_CONFIG" && \
b66977f1
DWT
18498 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5
18499 ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5
18500 ac_status=$?
18501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18502 test $ac_status = 0; }; then
18503 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "webkit-1.0" 2>/dev/null`
18504else
18505 pkg_failed=yes
18506fi
12833ad8
JF
18507 else
18508 pkg_failed=untried
b66977f1
DWT
18509fi
18510
18511
18512
18513if test $pkg_failed = yes; then
12833ad8
JF
18514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18515$as_echo "no" >&6; }
b66977f1
DWT
18516
18517if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18518 _pkg_short_errors_supported=yes
18519else
18520 _pkg_short_errors_supported=no
18521fi
18522 if test $_pkg_short_errors_supported = yes; then
53ba6704 18523 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "webkit-1.0" 2>&1`
b66977f1 18524 else
53ba6704 18525 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "webkit-1.0" 2>&1`
b66977f1
DWT
18526 fi
18527 # Put the nasty error message in config.log where it belongs
18528 echo "$WEBKIT_PKG_ERRORS" >&5
18529
b66977f1
DWT
18530
18531
18532pkg_failed=no
18533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
18534$as_echo_n "checking for WEBKIT... " >&6; }
18535
12833ad8
JF
18536if test -n "$WEBKIT_CFLAGS"; then
18537 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
18538 elif test -n "$PKG_CONFIG"; then
18539 if test -n "$PKG_CONFIG" && \
b66977f1
DWT
18540 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
18541 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
18542 ac_status=$?
18543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18544 test $ac_status = 0; }; then
18545 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null`
18546else
18547 pkg_failed=yes
18548fi
12833ad8
JF
18549 else
18550 pkg_failed=untried
b66977f1 18551fi
12833ad8
JF
18552if test -n "$WEBKIT_LIBS"; then
18553 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
18554 elif test -n "$PKG_CONFIG"; then
18555 if test -n "$PKG_CONFIG" && \
b66977f1
DWT
18556 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
18557 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
18558 ac_status=$?
18559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18560 test $ac_status = 0; }; then
18561 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null`
18562else
18563 pkg_failed=yes
18564fi
12833ad8
JF
18565 else
18566 pkg_failed=untried
b66977f1
DWT
18567fi
18568
18569
18570
18571if test $pkg_failed = yes; then
12833ad8
JF
18572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18573$as_echo "no" >&6; }
b66977f1
DWT
18574
18575if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18576 _pkg_short_errors_supported=yes
18577else
18578 _pkg_short_errors_supported=no
18579fi
18580 if test $_pkg_short_errors_supported = yes; then
53ba6704 18581 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "WebKitGtk" 2>&1`
b66977f1 18582 else
53ba6704 18583 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "WebKitGtk" 2>&1`
b66977f1
DWT
18584 fi
18585 # Put the nasty error message in config.log where it belongs
18586 echo "$WEBKIT_PKG_ERRORS" >&5
18587
b66977f1
DWT
18588
18589
18590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
18591$as_echo_n "checking for framework JavaScriptCore... " >&6; }
ee134472 18592if ${ac_cv_framework_JavaScriptCore+:} false; then :
b66977f1
DWT
18593 $as_echo_n "(cached) " >&6
18594else
18595
18596 ac_check_framework_save_LIBS=$LIBS
18597 LIBS="-framework JavaScriptCore $LIBS"
18598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18599/* end confdefs.h. */
18600
66170b30 18601 #include <JavaScriptCore/JSBase.h>
b66977f1
DWT
18602
18603int
18604main ()
18605{
66170b30
JF
18606
18607 JSEvaluateScript(0, 0, 0, 0, 0, 0);
18608
b66977f1
DWT
18609 ;
18610 return 0;
18611}
18612_ACEOF
18613if ac_fn_cxx_try_link "$LINENO"; then :
18614
18615 ac_cv_framework_JavaScriptCore=yes
18616
18617else
18618 ac_cv_framework_JavaScriptCore=no
18619fi
18620rm -f core conftest.err conftest.$ac_objext \
18621 conftest$ac_exeext conftest.$ac_ext
18622 LIBS=$ac_check_framework_save_LIBS
18623
18624fi
18625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
18626$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
18627 if test $ac_cv_framework_JavaScriptCore = yes; then :
18628
18629
18630 for element in "-framework JavaScriptCore $LIBS"; do
18631 haveit=
18632 for x in $LIBS; do
18633
18634 acl_save_prefix="$prefix"
18635 prefix="$acl_final_prefix"
18636 acl_save_exec_prefix="$exec_prefix"
18637 exec_prefix="$acl_final_exec_prefix"
18638 eval x=\"$x\"
18639 exec_prefix="$acl_save_exec_prefix"
18640 prefix="$acl_save_prefix"
18641
18642 if test "X$x" = "X$element"; then
18643 haveit=yes
18644 break
18645 fi
18646 done
18647 if test -z "$haveit"; then
18648 LIBS="${LIBS}${LIBS:+ }$element"
18649 fi
18650 done
18651
66170b30
JF
18652
18653 CY_EXECUTE=1
18654
18655
b66977f1
DWT
18656
18657fi
18658
18659elif test $pkg_failed = untried; then
12833ad8
JF
18660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18661$as_echo "no" >&6; }
b66977f1
DWT
18662
18663
18664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
18665$as_echo_n "checking for framework JavaScriptCore... " >&6; }
ee134472 18666if ${ac_cv_framework_JavaScriptCore+:} false; then :
b66977f1
DWT
18667 $as_echo_n "(cached) " >&6
18668else
18669
18670 ac_check_framework_save_LIBS=$LIBS
18671 LIBS="-framework JavaScriptCore $LIBS"
18672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18673/* end confdefs.h. */
18674
66170b30 18675 #include <JavaScriptCore/JSBase.h>
b66977f1
DWT
18676
18677int
18678main ()
18679{
66170b30
JF
18680
18681 JSEvaluateScript(0, 0, 0, 0, 0, 0);
18682
b66977f1
DWT
18683 ;
18684 return 0;
18685}
18686_ACEOF
18687if ac_fn_cxx_try_link "$LINENO"; then :
18688
18689 ac_cv_framework_JavaScriptCore=yes
18690
18691else
18692 ac_cv_framework_JavaScriptCore=no
18693fi
18694rm -f core conftest.err conftest.$ac_objext \
18695 conftest$ac_exeext conftest.$ac_ext
18696 LIBS=$ac_check_framework_save_LIBS
18697
18698fi
18699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
18700$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
18701 if test $ac_cv_framework_JavaScriptCore = yes; then :
18702
18703
18704 for element in "-framework JavaScriptCore $LIBS"; do
18705 haveit=
18706 for x in $LIBS; do
18707
18708 acl_save_prefix="$prefix"
18709 prefix="$acl_final_prefix"
18710 acl_save_exec_prefix="$exec_prefix"
18711 exec_prefix="$acl_final_exec_prefix"
18712 eval x=\"$x\"
18713 exec_prefix="$acl_save_exec_prefix"
18714 prefix="$acl_save_prefix"
18715
18716 if test "X$x" = "X$element"; then
18717 haveit=yes
18718 break
18719 fi
18720 done
18721 if test -z "$haveit"; then
18722 LIBS="${LIBS}${LIBS:+ }$element"
18723 fi
18724 done
18725
66170b30
JF
18726
18727 CY_EXECUTE=1
18728
18729
b66977f1
DWT
18730
18731fi
18732
18733else
18734 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
18735 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
18736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18737$as_echo "yes" >&6; }
18738
66170b30
JF
18739 CY_EXECUTE=1
18740
b66977f1
DWT
18741
18742 for element in `$PKG_CONFIG --cflags WebKitGtk`; do
18743 haveit=
18744 for x in $CXXFLAGS; do
18745
18746 acl_save_prefix="$prefix"
18747 prefix="$acl_final_prefix"
18748 acl_save_exec_prefix="$exec_prefix"
18749 exec_prefix="$acl_final_exec_prefix"
18750 eval x=\"$x\"
18751 exec_prefix="$acl_save_exec_prefix"
18752 prefix="$acl_save_prefix"
18753
18754 if test "X$x" = "X$element"; then
18755 haveit=yes
18756 break
18757 fi
18758 done
18759 if test -z "$haveit"; then
18760 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
18761 fi
18762 done
18763
18764
18765 for element in `$PKG_CONFIG --libs WebKitGtk`; do
18766 haveit=
18767 for x in $LIBS; do
18768
18769 acl_save_prefix="$prefix"
18770 prefix="$acl_final_prefix"
18771 acl_save_exec_prefix="$exec_prefix"
18772 exec_prefix="$acl_final_exec_prefix"
18773 eval x=\"$x\"
18774 exec_prefix="$acl_save_exec_prefix"
18775 prefix="$acl_save_prefix"
18776
18777 if test "X$x" = "X$element"; then
18778 haveit=yes
18779 break
18780 fi
18781 done
18782 if test -z "$haveit"; then
18783 LIBS="${LIBS}${LIBS:+ }$element"
18784 fi
18785 done
18786
18787
18788fi
18789
18790elif test $pkg_failed = untried; then
12833ad8
JF
18791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18792$as_echo "no" >&6; }
b66977f1
DWT
18793
18794
18795pkg_failed=no
18796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
18797$as_echo_n "checking for WEBKIT... " >&6; }
18798
12833ad8
JF
18799if test -n "$WEBKIT_CFLAGS"; then
18800 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
18801 elif test -n "$PKG_CONFIG"; then
18802 if test -n "$PKG_CONFIG" && \
b66977f1
DWT
18803 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
18804 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
18805 ac_status=$?
18806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18807 test $ac_status = 0; }; then
18808 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null`
18809else
18810 pkg_failed=yes
18811fi
12833ad8
JF
18812 else
18813 pkg_failed=untried
b66977f1 18814fi
12833ad8
JF
18815if test -n "$WEBKIT_LIBS"; then
18816 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
18817 elif test -n "$PKG_CONFIG"; then
18818 if test -n "$PKG_CONFIG" && \
b66977f1
DWT
18819 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
18820 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
18821 ac_status=$?
18822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18823 test $ac_status = 0; }; then
18824 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null`
18825else
18826 pkg_failed=yes
18827fi
12833ad8
JF
18828 else
18829 pkg_failed=untried
b66977f1
DWT
18830fi
18831
18832
18833
18834if test $pkg_failed = yes; then
12833ad8
JF
18835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18836$as_echo "no" >&6; }
b66977f1
DWT
18837
18838if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18839 _pkg_short_errors_supported=yes
18840else
18841 _pkg_short_errors_supported=no
18842fi
18843 if test $_pkg_short_errors_supported = yes; then
53ba6704 18844 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "WebKitGtk" 2>&1`
b66977f1 18845 else
53ba6704 18846 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "WebKitGtk" 2>&1`
b66977f1
DWT
18847 fi
18848 # Put the nasty error message in config.log where it belongs
18849 echo "$WEBKIT_PKG_ERRORS" >&5
18850
b66977f1
DWT
18851
18852
18853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
18854$as_echo_n "checking for framework JavaScriptCore... " >&6; }
ee134472 18855if ${ac_cv_framework_JavaScriptCore+:} false; then :
b66977f1
DWT
18856 $as_echo_n "(cached) " >&6
18857else
18858
18859 ac_check_framework_save_LIBS=$LIBS
18860 LIBS="-framework JavaScriptCore $LIBS"
18861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18862/* end confdefs.h. */
18863
66170b30 18864 #include <JavaScriptCore/JSBase.h>
b66977f1
DWT
18865
18866int
18867main ()
18868{
66170b30
JF
18869
18870 JSEvaluateScript(0, 0, 0, 0, 0, 0);
18871
b66977f1
DWT
18872 ;
18873 return 0;
18874}
18875_ACEOF
18876if ac_fn_cxx_try_link "$LINENO"; then :
18877
18878 ac_cv_framework_JavaScriptCore=yes
18879
18880else
18881 ac_cv_framework_JavaScriptCore=no
18882fi
18883rm -f core conftest.err conftest.$ac_objext \
18884 conftest$ac_exeext conftest.$ac_ext
18885 LIBS=$ac_check_framework_save_LIBS
18886
18887fi
18888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
18889$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
18890 if test $ac_cv_framework_JavaScriptCore = yes; then :
18891
18892
18893 for element in "-framework JavaScriptCore $LIBS"; do
18894 haveit=
18895 for x in $LIBS; do
18896
18897 acl_save_prefix="$prefix"
18898 prefix="$acl_final_prefix"
18899 acl_save_exec_prefix="$exec_prefix"
18900 exec_prefix="$acl_final_exec_prefix"
18901 eval x=\"$x\"
18902 exec_prefix="$acl_save_exec_prefix"
18903 prefix="$acl_save_prefix"
18904
18905 if test "X$x" = "X$element"; then
18906 haveit=yes
18907 break
18908 fi
18909 done
18910 if test -z "$haveit"; then
18911 LIBS="${LIBS}${LIBS:+ }$element"
18912 fi
18913 done
18914
66170b30
JF
18915
18916 CY_EXECUTE=1
18917
18918
b66977f1
DWT
18919
18920fi
18921
18922elif test $pkg_failed = untried; then
12833ad8
JF
18923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18924$as_echo "no" >&6; }
b66977f1
DWT
18925
18926
18927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
18928$as_echo_n "checking for framework JavaScriptCore... " >&6; }
ee134472 18929if ${ac_cv_framework_JavaScriptCore+:} false; then :
b66977f1
DWT
18930 $as_echo_n "(cached) " >&6
18931else
18932
18933 ac_check_framework_save_LIBS=$LIBS
18934 LIBS="-framework JavaScriptCore $LIBS"
18935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18936/* end confdefs.h. */
18937
66170b30 18938 #include <JavaScriptCore/JSBase.h>
b66977f1
DWT
18939
18940int
18941main ()
18942{
66170b30
JF
18943
18944 JSEvaluateScript(0, 0, 0, 0, 0, 0);
18945
b66977f1
DWT
18946 ;
18947 return 0;
18948}
18949_ACEOF
18950if ac_fn_cxx_try_link "$LINENO"; then :
18951
18952 ac_cv_framework_JavaScriptCore=yes
18953
18954else
18955 ac_cv_framework_JavaScriptCore=no
18956fi
18957rm -f core conftest.err conftest.$ac_objext \
18958 conftest$ac_exeext conftest.$ac_ext
18959 LIBS=$ac_check_framework_save_LIBS
18960
18961fi
18962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
18963$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
18964 if test $ac_cv_framework_JavaScriptCore = yes; then :
18965
18966
18967 for element in "-framework JavaScriptCore $LIBS"; do
18968 haveit=
18969 for x in $LIBS; do
18970
18971 acl_save_prefix="$prefix"
18972 prefix="$acl_final_prefix"
18973 acl_save_exec_prefix="$exec_prefix"
18974 exec_prefix="$acl_final_exec_prefix"
18975 eval x=\"$x\"
18976 exec_prefix="$acl_save_exec_prefix"
18977 prefix="$acl_save_prefix"
18978
18979 if test "X$x" = "X$element"; then
18980 haveit=yes
18981 break
18982 fi
18983 done
18984 if test -z "$haveit"; then
18985 LIBS="${LIBS}${LIBS:+ }$element"
18986 fi
18987 done
18988
66170b30
JF
18989
18990 CY_EXECUTE=1
18991
18992
b66977f1
DWT
18993
18994fi
18995
18996else
18997 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
18998 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
18999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19000$as_echo "yes" >&6; }
19001
66170b30
JF
19002 CY_EXECUTE=1
19003
b66977f1
DWT
19004
19005 for element in `$PKG_CONFIG --cflags WebKitGtk`; do
19006 haveit=
19007 for x in $CXXFLAGS; do
19008
19009 acl_save_prefix="$prefix"
19010 prefix="$acl_final_prefix"
19011 acl_save_exec_prefix="$exec_prefix"
19012 exec_prefix="$acl_final_exec_prefix"
19013 eval x=\"$x\"
19014 exec_prefix="$acl_save_exec_prefix"
19015 prefix="$acl_save_prefix"
19016
19017 if test "X$x" = "X$element"; then
19018 haveit=yes
19019 break
19020 fi
19021 done
19022 if test -z "$haveit"; then
19023 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
19024 fi
19025 done
19026
19027
19028 for element in `$PKG_CONFIG --libs WebKitGtk`; do
19029 haveit=
19030 for x in $LIBS; do
19031
19032 acl_save_prefix="$prefix"
19033 prefix="$acl_final_prefix"
19034 acl_save_exec_prefix="$exec_prefix"
19035 exec_prefix="$acl_final_exec_prefix"
19036 eval x=\"$x\"
19037 exec_prefix="$acl_save_exec_prefix"
19038 prefix="$acl_save_prefix"
19039
19040 if test "X$x" = "X$element"; then
19041 haveit=yes
19042 break
19043 fi
19044 done
19045 if test -z "$haveit"; then
19046 LIBS="${LIBS}${LIBS:+ }$element"
19047 fi
19048 done
19049
19050
19051fi
19052
19053else
19054 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
19055 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
19056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19057$as_echo "yes" >&6; }
19058
66170b30
JF
19059 CY_EXECUTE=1
19060
b66977f1
DWT
19061
19062 for element in `$PKG_CONFIG --cflags webkit-1.0`; do
19063 haveit=
19064 for x in $CXXFLAGS; do
19065
19066 acl_save_prefix="$prefix"
19067 prefix="$acl_final_prefix"
19068 acl_save_exec_prefix="$exec_prefix"
19069 exec_prefix="$acl_final_exec_prefix"
19070 eval x=\"$x\"
19071 exec_prefix="$acl_save_exec_prefix"
19072 prefix="$acl_save_prefix"
19073
19074 if test "X$x" = "X$element"; then
19075 haveit=yes
19076 break
19077 fi
19078 done
19079 if test -z "$haveit"; then
19080 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
19081 fi
19082 done
19083
19084
19085 for element in `$PKG_CONFIG --libs webkit-1.0`; do
19086 haveit=
19087 for x in $LIBS; do
19088
19089 acl_save_prefix="$prefix"
19090 prefix="$acl_final_prefix"
19091 acl_save_exec_prefix="$exec_prefix"
19092 exec_prefix="$acl_final_exec_prefix"
19093 eval x=\"$x\"
19094 exec_prefix="$acl_save_exec_prefix"
19095 prefix="$acl_save_prefix"
19096
19097 if test "X$x" = "X$element"; then
19098 haveit=yes
19099 break
19100 fi
19101 done
19102 if test -z "$haveit"; then
19103 LIBS="${LIBS}${LIBS:+ }$element"
19104 fi
19105 done
19106
19107
19108fi
5053a6d1 19109
66170b30
JF
19110fi
19111
19112
19113
19114 apr_found="no"
19115
19116 if test "$target_os" = "os2-emx"; then
19117 # Scripts don't pass test -x on OS/2
19118 TEST_X="test -f"
19119 else
19120 TEST_X="test -x"
19121 fi
19122
19123 acceptable_majors="1"
19124
19125 apr_temp_acceptable_apr_config=""
19126 for apr_temp_major in $acceptable_majors
19127 do
19128 case $apr_temp_major in
19129 0)
19130 apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-config"
19131 ;;
19132 *)
19133 apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-$apr_temp_major-config"
19134 ;;
19135 esac
19136 done
19137
19138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APR" >&5
19139$as_echo_n "checking for APR... " >&6; }
19140
19141# Check whether --with-apr was given.
19142if test "${with_apr+set}" = set; then :
19143 withval=$with_apr;
19144 if test "$withval" = "no" || test "$withval" = "yes"; then
19145 as_fn_error $? "--with-apr requires a directory or file to be provided" "$LINENO" 5
19146 fi
19147
19148 for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config
19149 do
19150 for lookdir in "$withval/bin" "$withval"
19151 do
19152 if $TEST_X "$lookdir/$apr_temp_apr_config_file"; then
19153 apr_config="$lookdir/$apr_temp_apr_config_file"
19154
19155 apr_found="yes"
19156 break 2
19157 fi
19158 done
19159 done
19160
19161 if test "$apr_found" != "yes" && $TEST_X "$withval" && $withval --help > /dev/null 2>&1 ; then
19162 apr_config="$withval"
19163 apr_found="yes"
19164 fi
19165
19166 if test "$apr_found" != "yes"; then
19167 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
19168 fi
19169
19170else
19171
19172 if test -n "1" && test "1" = "1"; then
19173 for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config
19174 do
19175 if $apr_temp_apr_config_file --help > /dev/null 2>&1 ; then
19176 apr_config="$apr_temp_apr_config_file"
19177
19178 apr_found="yes"
19179 break
19180 else
19181 for lookdir in /usr /usr/local /usr/local/apr /opt/apr; do
19182 if $TEST_X "$lookdir/bin/$apr_temp_apr_config_file"; then
19183 apr_config="$lookdir/bin/$apr_temp_apr_config_file"
19184
19185 apr_found="yes"
19186 break 2
19187 fi
19188 done
19189 fi
19190 done
19191 fi
19192 if test "$apr_found" = "no" && test -d ""; then
19193 apr_temp_abs_srcdir="`cd && pwd`"
19194 apr_found="reconfig"
19195 apr_bundled_major="`sed -n '/#define.*APR_MAJOR_VERSION/s/^[^0-9]*\([0-9]*\).*$/\1/p' \"/include/apr_version.h\"`"
19196 case $apr_bundled_major in
19197 "")
19198 as_fn_error $? "failed to find major version of bundled APR" "$LINENO" 5
19199 ;;
19200 0)
19201 apr_temp_apr_config_file="apr-config"
19202 ;;
19203 *)
19204 apr_temp_apr_config_file="apr-$apr_bundled_major-config"
19205 ;;
19206 esac
19207 if test -n ""; then
19208 apr_config="/$apr_temp_apr_config_file"
19209 else
19210 apr_config="/$apr_temp_apr_config_file"
19211 fi
19212 fi
5053a6d1 19213
9c60689e
DWT
19214fi
19215
5053a6d1 19216
66170b30
JF
19217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_found" >&5
19218$as_echo "$apr_found" >&6; }
19219
19220case $apr_found in #(
19221 yes) :
19222
19223
19224 for element in `$apr_config --includes`; do
19225 haveit=
19226 for x in $CPPFLAGS; do
19227
19228 acl_save_prefix="$prefix"
19229 prefix="$acl_final_prefix"
19230 acl_save_exec_prefix="$exec_prefix"
19231 exec_prefix="$acl_final_exec_prefix"
19232 eval x=\"$x\"
19233 exec_prefix="$acl_save_exec_prefix"
19234 prefix="$acl_save_prefix"
19235
19236 if test "X$x" = "X$element"; then
19237 haveit=yes
19238 break
19239 fi
19240 done
19241 if test -z "$haveit"; then
19242 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
19243 fi
19244 done
19245
a243b558
JF
19246
19247 for element in `$apr_config --link-libtool`; do
19248 haveit=
d4f27204 19249 for x in $LTLIBAPR; do
a243b558
JF
19250
19251 acl_save_prefix="$prefix"
19252 prefix="$acl_final_prefix"
19253 acl_save_exec_prefix="$exec_prefix"
19254 exec_prefix="$acl_final_exec_prefix"
19255 eval x=\"$x\"
19256 exec_prefix="$acl_save_exec_prefix"
19257 prefix="$acl_save_prefix"
19258
19259 if test "X$x" = "X$element"; then
19260 haveit=yes
19261 break
19262 fi
19263 done
19264 if test -z "$haveit"; then
d4f27204 19265 LTLIBAPR="${LTLIBAPR}${LTLIBAPR:+ }$element"
a243b558
JF
19266 fi
19267 done
66170b30 19268
d4f27204 19269
66170b30
JF
19270 ;; #(
19271 *) :
19272 as_fn_error $? "missing \"libapr\"" "$LINENO" 5 ;;
19273esac
19274
19275
19276
a243b558
JF
19277 if test "x$CY_EXECUTE" = x1; then
19278 CY_EXECUTE_TRUE=
19279 CY_EXECUTE_FALSE='#'
19280else
19281 CY_EXECUTE_TRUE='#'
19282 CY_EXECUTE_FALSE=
19283fi
19284
19285
058f1bc8 19286
e5cca37d 19287
5053a6d1
DWT
19288case $CY_EXECUTE in #(
19289 1) :
19290
66170b30 19291 for ac_header in ffi.h ffi/ffi.h
e5cca37d
DWT
19292do :
19293 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19294ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12833ad8 19295if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
e5cca37d
DWT
19296 cat >>confdefs.h <<_ACEOF
19297#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19298_ACEOF
19299 break
19300fi
19301
19302done
19303
66170b30 19304 if test "x$ac_cv_header_ffi_h" = xno && test "x$ac_cv_header_ffi_ffi_h" = xno; then :
e5cca37d
DWT
19305
19306
9c60689e
DWT
19307
19308pkg_failed=no
5053a6d1
DWT
19309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5
19310$as_echo_n "checking for LIBFFI... " >&6; }
9c60689e 19311
12833ad8
JF
19312if test -n "$LIBFFI_CFLAGS"; then
19313 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS"
19314 elif test -n "$PKG_CONFIG"; then
19315 if test -n "$PKG_CONFIG" && \
5053a6d1
DWT
19316 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
19317 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
9c60689e
DWT
19318 ac_status=$?
19319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19320 test $ac_status = 0; }; then
5053a6d1 19321 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null`
9c60689e
DWT
19322else
19323 pkg_failed=yes
19324fi
12833ad8
JF
19325 else
19326 pkg_failed=untried
9c60689e 19327fi
12833ad8
JF
19328if test -n "$LIBFFI_LIBS"; then
19329 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS"
19330 elif test -n "$PKG_CONFIG"; then
19331 if test -n "$PKG_CONFIG" && \
5053a6d1
DWT
19332 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
19333 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
9c60689e
DWT
19334 ac_status=$?
19335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19336 test $ac_status = 0; }; then
5053a6d1 19337 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null`
9c60689e
DWT
19338else
19339 pkg_failed=yes
19340fi
12833ad8
JF
19341 else
19342 pkg_failed=untried
9c60689e
DWT
19343fi
19344
19345
19346
19347if test $pkg_failed = yes; then
12833ad8
JF
19348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19349$as_echo "no" >&6; }
9c60689e
DWT
19350
19351if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19352 _pkg_short_errors_supported=yes
19353else
19354 _pkg_short_errors_supported=no
19355fi
19356 if test $_pkg_short_errors_supported = yes; then
53ba6704 19357 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libffi" 2>&1`
9c60689e 19358 else
53ba6704 19359 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libffi" 2>&1`
9c60689e
DWT
19360 fi
19361 # Put the nasty error message in config.log where it belongs
5053a6d1 19362 echo "$LIBFFI_PKG_ERRORS" >&5
9c60689e 19363
66170b30 19364 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
e5cca37d 19365elif test $pkg_failed = untried; then
12833ad8
JF
19366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19367$as_echo "no" >&6; }
66170b30 19368 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
e5cca37d
DWT
19369else
19370 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS
19371 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS
19372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19373$as_echo "yes" >&6; }
19374
19375
19376 for element in `$PKG_CONFIG --cflags libffi`; do
19377 haveit=
19378 for x in $CXXFLAGS; do
19379
19380 acl_save_prefix="$prefix"
19381 prefix="$acl_final_prefix"
19382 acl_save_exec_prefix="$exec_prefix"
19383 exec_prefix="$acl_final_exec_prefix"
19384 eval x=\"$x\"
19385 exec_prefix="$acl_save_exec_prefix"
19386 prefix="$acl_save_prefix"
19387
19388 if test "X$x" = "X$element"; then
19389 haveit=yes
19390 break
19391 fi
19392 done
19393 if test -z "$haveit"; then
19394 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
19395 fi
19396 done
c823f118 19397
5053a6d1 19398
e5cca37d
DWT
19399 for element in `$PKG_CONFIG --libs libffi`; do
19400 haveit=
19401 for x in $LIBS; do
19402
19403 acl_save_prefix="$prefix"
19404 prefix="$acl_final_prefix"
19405 acl_save_exec_prefix="$exec_prefix"
19406 exec_prefix="$acl_final_exec_prefix"
19407 eval x=\"$x\"
19408 exec_prefix="$acl_save_exec_prefix"
19409 prefix="$acl_save_prefix"
19410
19411 if test "X$x" = "X$element"; then
19412 haveit=yes
19413 break
19414 fi
19415 done
19416 if test -z "$haveit"; then
19417 LIBS="${LIBS}${LIBS:+ }$element"
19418 fi
19419 done
19420
5053a6d1
DWT
19421
19422fi
e5cca37d 19423
e5cca37d
DWT
19424else
19425
66170b30 19426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ffi_call" >&5
5053a6d1 19427$as_echo_n "checking for library containing ffi_call... " >&6; }
ee134472 19428if ${ac_cv_search_ffi_call+:} false; then :
c823f118
DWT
19429 $as_echo_n "(cached) " >&6
19430else
5053a6d1
DWT
19431 ac_func_search_save_LIBS=$LIBS
19432cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c823f118
DWT
19433/* end confdefs.h. */
19434
5053a6d1
DWT
19435/* Override any GCC internal prototype to avoid an error.
19436 Use char because int might match the return type of a GCC
19437 builtin and then its argument prototype would still apply. */
19438#ifdef __cplusplus
19439extern "C"
19440#endif
19441char ffi_call ();
c823f118
DWT
19442int
19443main ()
19444{
5053a6d1 19445return ffi_call ();
c823f118
DWT
19446 ;
19447 return 0;
19448}
b128dfee 19449_ACEOF
5053a6d1
DWT
19450for ac_lib in '' ffi; do
19451 if test -z "$ac_lib"; then
19452 ac_res="none required"
19453 else
19454 ac_res=-l$ac_lib
19455 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19456 fi
19457 if ac_fn_cxx_try_link "$LINENO"; then :
19458 ac_cv_search_ffi_call=$ac_res
c823f118
DWT
19459fi
19460rm -f core conftest.err conftest.$ac_objext \
5053a6d1 19461 conftest$ac_exeext
ee134472 19462 if ${ac_cv_search_ffi_call+:} false; then :
5053a6d1 19463 break
b128dfee 19464fi
5053a6d1 19465done
ee134472 19466if ${ac_cv_search_ffi_call+:} false; then :
b128dfee 19467
5053a6d1
DWT
19468else
19469 ac_cv_search_ffi_call=no
19470fi
19471rm conftest.$ac_ext
19472LIBS=$ac_func_search_save_LIBS
19473fi
19474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ffi_call" >&5
19475$as_echo "$ac_cv_search_ffi_call" >&6; }
19476ac_res=$ac_cv_search_ffi_call
19477if test "$ac_res" != no; then :
19478 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
b128dfee 19479
5053a6d1 19480fi
c823f118 19481
66170b30 19482 case $ac_cv_search_ffi_call in #(
5053a6d1 19483 no) :
c823f118 19484
c823f118 19485
e5cca37d
DWT
19486pkg_failed=no
19487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5
19488$as_echo_n "checking for LIBFFI... " >&6; }
c823f118 19489
12833ad8
JF
19490if test -n "$LIBFFI_CFLAGS"; then
19491 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS"
19492 elif test -n "$PKG_CONFIG"; then
19493 if test -n "$PKG_CONFIG" && \
e5cca37d
DWT
19494 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
19495 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
19496 ac_status=$?
19497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19498 test $ac_status = 0; }; then
19499 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null`
19500else
19501 pkg_failed=yes
c823f118 19502fi
12833ad8
JF
19503 else
19504 pkg_failed=untried
5053a6d1 19505fi
12833ad8
JF
19506if test -n "$LIBFFI_LIBS"; then
19507 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS"
19508 elif test -n "$PKG_CONFIG"; then
19509 if test -n "$PKG_CONFIG" && \
e5cca37d
DWT
19510 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
19511 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
19512 ac_status=$?
19513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19514 test $ac_status = 0; }; then
19515 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null`
c823f118 19516else
e5cca37d 19517 pkg_failed=yes
632b71ea 19518fi
12833ad8
JF
19519 else
19520 pkg_failed=untried
632b71ea 19521fi
3fd51f51 19522
e5cca37d
DWT
19523
19524
19525if test $pkg_failed = yes; then
12833ad8
JF
19526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19527$as_echo "no" >&6; }
e5cca37d
DWT
19528
19529if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19530 _pkg_short_errors_supported=yes
5053a6d1 19531else
e5cca37d 19532 _pkg_short_errors_supported=no
5053a6d1 19533fi
e5cca37d 19534 if test $_pkg_short_errors_supported = yes; then
53ba6704 19535 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libffi" 2>&1`
e5cca37d 19536 else
53ba6704 19537 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libffi" 2>&1`
e5cca37d
DWT
19538 fi
19539 # Put the nasty error message in config.log where it belongs
19540 echo "$LIBFFI_PKG_ERRORS" >&5
3fd51f51 19541
66170b30 19542 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
e5cca37d 19543elif test $pkg_failed = untried; then
12833ad8
JF
19544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19545$as_echo "no" >&6; }
66170b30 19546 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
9c60689e 19547else
5053a6d1
DWT
19548 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS
19549 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS
9c60689e
DWT
19550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19551$as_echo "yes" >&6; }
3fd51f51 19552
3fd51f51 19553
5053a6d1 19554 for element in `$PKG_CONFIG --cflags libffi`; do
3fd51f51
DWT
19555 haveit=
19556 for x in $CXXFLAGS; do
19557
19558 acl_save_prefix="$prefix"
19559 prefix="$acl_final_prefix"
19560 acl_save_exec_prefix="$exec_prefix"
19561 exec_prefix="$acl_final_exec_prefix"
19562 eval x=\"$x\"
19563 exec_prefix="$acl_save_exec_prefix"
19564 prefix="$acl_save_prefix"
19565
19566 if test "X$x" = "X$element"; then
19567 haveit=yes
19568 break
19569 fi
19570 done
19571 if test -z "$haveit"; then
19572 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
19573 fi
19574 done
19575
19576
5053a6d1 19577 for element in `$PKG_CONFIG --libs libffi`; do
3fd51f51
DWT
19578 haveit=
19579 for x in $LIBS; do
19580
19581 acl_save_prefix="$prefix"
19582 prefix="$acl_final_prefix"
19583 acl_save_exec_prefix="$exec_prefix"
19584 exec_prefix="$acl_final_exec_prefix"
19585 eval x=\"$x\"
19586 exec_prefix="$acl_save_exec_prefix"
19587 prefix="$acl_save_prefix"
19588
19589 if test "X$x" = "X$element"; then
19590 haveit=yes
19591 break
19592 fi
19593 done
19594 if test -z "$haveit"; then
19595 LIBS="${LIBS}${LIBS:+ }$element"
19596 fi
19597 done
19598
19599
66170b30 19600fi ;; #(
e5cca37d
DWT
19601 *) :
19602 ;;
19603esac
19604
9c60689e 19605fi
66170b30
JF
19606
19607 ac_ext=mm
5053a6d1
DWT
19608ac_cpp='$OBJCXXCPP $CPPFLAGS'
19609ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19610ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19611ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
a667869d 19612
66170b30
JF
19613
19614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we really have Objective C++" >&5
5053a6d1 19615$as_echo_n "checking if we really have Objective C++... " >&6; }
66170b30 19616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5053a6d1 19617/* end confdefs.h. */
9c60689e 19618
5053a6d1
DWT
19619_ACEOF
19620if ac_fn_objcxx_try_compile "$LINENO"; then :
9c60689e 19621
66170b30
JF
19622 CY_OBJECTIVEC=1
19623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5053a6d1 19624$as_echo "yes" >&6; }
632b71ea 19625
632b71ea 19626else
5053a6d1 19627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
632b71ea 19628$as_echo "no" >&6; }
5053a6d1
DWT
19629fi
19630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
66170b30
JF
19631
19632 if test "x$CY_OBJECTIVEC" = x1; then :
9c60689e 19633
632b71ea 19634
5053a6d1
DWT
19635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework CoreFoundation" >&5
19636$as_echo_n "checking for framework CoreFoundation... " >&6; }
ee134472 19637if ${ac_cv_framework_CoreFoundation+:} false; then :
9c60689e
DWT
19638 $as_echo_n "(cached) " >&6
19639else
632b71ea
DWT
19640
19641 ac_check_framework_save_LIBS=$LIBS
5053a6d1 19642 LIBS="-framework CoreFoundation $LIBS"
632b71ea 19643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9c60689e
DWT
19644/* end confdefs.h. */
19645
66170b30 19646 #include <CoreFoundation/CFBase.h>
632b71ea 19647
9c60689e
DWT
19648int
19649main ()
19650{
5053a6d1 19651CFAllocatorGetDefault();
9c60689e
DWT
19652 ;
19653 return 0;
19654}
19655_ACEOF
5053a6d1 19656if ac_fn_objcxx_try_link "$LINENO"; then :
632b71ea 19657
5053a6d1 19658 ac_cv_framework_CoreFoundation=yes
632b71ea 19659
9c60689e 19660else
5053a6d1 19661 ac_cv_framework_CoreFoundation=no
9c60689e 19662fi
632b71ea
DWT
19663rm -f core conftest.err conftest.$ac_objext \
19664 conftest$ac_exeext conftest.$ac_ext
19665 LIBS=$ac_check_framework_save_LIBS
9c60689e
DWT
19666
19667fi
5053a6d1
DWT
19668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_CoreFoundation" >&5
19669$as_echo "$ac_cv_framework_CoreFoundation" >&6; }
19670 if test $ac_cv_framework_CoreFoundation = yes; then :
632b71ea
DWT
19671
19672
5053a6d1 19673 for element in "-framework CoreFoundation $LIBS"; do
632b71ea
DWT
19674 haveit=
19675 for x in $LIBS; do
19676
19677 acl_save_prefix="$prefix"
19678 prefix="$acl_final_prefix"
19679 acl_save_exec_prefix="$exec_prefix"
19680 exec_prefix="$acl_final_exec_prefix"
19681 eval x=\"$x\"
19682 exec_prefix="$acl_save_exec_prefix"
19683 prefix="$acl_save_prefix"
19684
19685 if test "X$x" = "X$element"; then
19686 haveit=yes
19687 break
19688 fi
19689 done
19690 if test -z "$haveit"; then
19691 LIBS="${LIBS}${LIBS:+ }$element"
19692 fi
19693 done
19694
632b71ea 19695
632b71ea 19696
632b71ea
DWT
19697
19698
66170b30 19699
5053a6d1
DWT
19700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework Foundation" >&5
19701$as_echo_n "checking for framework Foundation... " >&6; }
ee134472 19702if ${ac_cv_framework_Foundation+:} false; then :
a667869d
DWT
19703 $as_echo_n "(cached) " >&6
19704else
632b71ea
DWT
19705
19706 ac_check_framework_save_LIBS=$LIBS
5053a6d1 19707 LIBS="-framework Foundation $LIBS"
632b71ea 19708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a667869d
DWT
19709/* end confdefs.h. */
19710
66170b30 19711 #include <Foundation/NSObject.h>
632b71ea 19712
a667869d
DWT
19713int
19714main ()
19715{
5053a6d1 19716[[NSObject alloc] init];
a667869d
DWT
19717 ;
19718 return 0;
19719}
19720_ACEOF
5053a6d1 19721if ac_fn_objcxx_try_link "$LINENO"; then :
632b71ea 19722
5053a6d1 19723 ac_cv_framework_Foundation=yes
632b71ea 19724
a667869d 19725else
5053a6d1 19726 ac_cv_framework_Foundation=no
632b71ea
DWT
19727fi
19728rm -f core conftest.err conftest.$ac_objext \
19729 conftest$ac_exeext conftest.$ac_ext
19730 LIBS=$ac_check_framework_save_LIBS
a667869d 19731
632b71ea 19732fi
5053a6d1
DWT
19733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Foundation" >&5
19734$as_echo "$ac_cv_framework_Foundation" >&6; }
19735 if test $ac_cv_framework_Foundation = yes; then :
a667869d 19736
a667869d 19737
5053a6d1 19738 for element in "-framework Foundation $LIBS"; do
632b71ea
DWT
19739 haveit=
19740 for x in $LIBS; do
a667869d 19741
632b71ea
DWT
19742 acl_save_prefix="$prefix"
19743 prefix="$acl_final_prefix"
19744 acl_save_exec_prefix="$exec_prefix"
19745 exec_prefix="$acl_final_exec_prefix"
19746 eval x=\"$x\"
19747 exec_prefix="$acl_save_exec_prefix"
19748 prefix="$acl_save_prefix"
19749
19750 if test "X$x" = "X$element"; then
19751 haveit=yes
19752 break
19753 fi
19754 done
19755 if test -z "$haveit"; then
19756 LIBS="${LIBS}${LIBS:+ }$element"
19757 fi
19758 done
19759
5053a6d1
DWT
19760 cat >>confdefs.h <<_ACEOF
19761#define HAVE_FRAMEWORK_FOUNDATION 1
19762_ACEOF
19763
a667869d 19764
a667869d 19765fi
632b71ea 19766
5053a6d1 19767
66170b30 19768
5053a6d1
DWT
19769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework WebKit" >&5
19770$as_echo_n "checking for framework WebKit... " >&6; }
ee134472 19771if ${ac_cv_framework_WebKit+:} false; then :
5053a6d1 19772 $as_echo_n "(cached) " >&6
a667869d 19773else
632b71ea 19774
5053a6d1
DWT
19775 ac_check_framework_save_LIBS=$LIBS
19776 LIBS="-framework WebKit $LIBS"
19777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19778/* end confdefs.h. */
632b71ea 19779
66170b30 19780 #include <WebKit/WebScriptObject.h>
632b71ea 19781
5053a6d1
DWT
19782int
19783main ()
19784{
19785[[WebScriptObject alloc] init];
19786 ;
19787 return 0;
19788}
19789_ACEOF
19790if ac_fn_objcxx_try_link "$LINENO"; then :
632b71ea 19791
5053a6d1 19792 ac_cv_framework_WebKit=yes
632b71ea 19793
5053a6d1
DWT
19794else
19795 ac_cv_framework_WebKit=no
19796fi
19797rm -f core conftest.err conftest.$ac_objext \
19798 conftest$ac_exeext conftest.$ac_ext
19799 LIBS=$ac_check_framework_save_LIBS
632b71ea 19800
5053a6d1
DWT
19801fi
19802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_WebKit" >&5
19803$as_echo "$ac_cv_framework_WebKit" >&6; }
19804 if test $ac_cv_framework_WebKit = yes; then :
19805
19806
19807 for element in "-framework WebKit $LIBS"; do
632b71ea
DWT
19808 haveit=
19809 for x in $LIBS; do
19810
19811 acl_save_prefix="$prefix"
19812 prefix="$acl_final_prefix"
19813 acl_save_exec_prefix="$exec_prefix"
19814 exec_prefix="$acl_final_exec_prefix"
19815 eval x=\"$x\"
19816 exec_prefix="$acl_save_exec_prefix"
19817 prefix="$acl_save_prefix"
19818
19819 if test "X$x" = "X$element"; then
19820 haveit=yes
19821 break
19822 fi
19823 done
19824 if test -z "$haveit"; then
19825 LIBS="${LIBS}${LIBS:+ }$element"
19826 fi
19827 done
19828
5053a6d1
DWT
19829 cat >>confdefs.h <<_ACEOF
19830#define HAVE_FRAMEWORK_WEBKIT 1
19831_ACEOF
19832
19833
19834fi
19835
19836
19837else
19838
19839
66170b30 19840 for ac_prog in gnustep-config
5053a6d1
DWT
19841do
19842 # Extract the first word of "$ac_prog", so it can be a program name with args.
19843set dummy $ac_prog; ac_word=$2
19844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19845$as_echo_n "checking for $ac_word... " >&6; }
ee134472 19846if ${ac_cv_prog_GNUSTEP_CONFIG+:} false; then :
5053a6d1
DWT
19847 $as_echo_n "(cached) " >&6
19848else
19849 if test -n "$GNUSTEP_CONFIG"; then
19850 ac_cv_prog_GNUSTEP_CONFIG="$GNUSTEP_CONFIG" # Let the user override the test.
19851else
19852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19853for as_dir in $PATH
19854do
19855 IFS=$as_save_IFS
19856 test -z "$as_dir" && as_dir=.
19857 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 19858 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5053a6d1
DWT
19859 ac_cv_prog_GNUSTEP_CONFIG="$ac_prog"
19860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19861 break 2
19862 fi
19863done
19864 done
19865IFS=$as_save_IFS
19866
19867fi
19868fi
19869GNUSTEP_CONFIG=$ac_cv_prog_GNUSTEP_CONFIG
19870if test -n "$GNUSTEP_CONFIG"; then
19871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_CONFIG" >&5
19872$as_echo "$GNUSTEP_CONFIG" >&6; }
19873else
19874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19875$as_echo "no" >&6; }
19876fi
19877
19878
19879 test -n "$GNUSTEP_CONFIG" && break
19880done
632b71ea 19881
66170b30
JF
19882
19883 if test "x$GNUSTEP_CONFIG" != x; then :
a667869d 19884
632b71ea 19885
632b71ea 19886
5053a6d1 19887 for element in `$GNUSTEP_CONFIG --objc-flags`; do
632b71ea 19888 haveit=
5053a6d1 19889 for x in $OBJCXXFLAGS; do
632b71ea
DWT
19890
19891 acl_save_prefix="$prefix"
19892 prefix="$acl_final_prefix"
19893 acl_save_exec_prefix="$exec_prefix"
19894 exec_prefix="$acl_final_exec_prefix"
19895 eval x=\"$x\"
19896 exec_prefix="$acl_save_exec_prefix"
19897 prefix="$acl_save_prefix"
19898
19899 if test "X$x" = "X$element"; then
19900 haveit=yes
19901 break
19902 fi
19903 done
19904 if test -z "$haveit"; then
5053a6d1 19905 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
632b71ea
DWT
19906 fi
19907 done
19908
19909
5053a6d1 19910 for element in `$GNUSTEP_CONFIG --base-libs`; do
632b71ea
DWT
19911 haveit=
19912 for x in $LIBS; do
19913
19914 acl_save_prefix="$prefix"
19915 prefix="$acl_final_prefix"
19916 acl_save_exec_prefix="$exec_prefix"
19917 exec_prefix="$acl_final_exec_prefix"
19918 eval x=\"$x\"
19919 exec_prefix="$acl_save_exec_prefix"
19920 prefix="$acl_save_prefix"
19921
19922 if test "X$x" = "X$element"; then
19923 haveit=yes
19924 break
19925 fi
19926 done
19927 if test -z "$haveit"; then
19928 LIBS="${LIBS}${LIBS:+ }$element"
19929 fi
19930 done
19931
19932
5053a6d1
DWT
19933else
19934 CY_OBJECTIVEC=0
a667869d 19935
5053a6d1 19936fi
b66977f1
DWT
19937
19938fi
19939
5053a6d1 19940fi
66170b30
JF
19941
19942 ac_ext=cpp
5053a6d1
DWT
19943ac_cpp='$CXXCPP $CPPFLAGS'
19944ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19945ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19946ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
b66977f1 19947
5053a6d1
DWT
19948 ;; #(
19949 *) :
19950 ;;
19951esac
a667869d 19952
a243b558
JF
19953 if test "x$CY_OBJECTIVEC" = x1; then
19954 CY_OBJECTIVEC_TRUE=
19955 CY_OBJECTIVEC_FALSE='#'
19956else
19957 CY_OBJECTIVEC_TRUE='#'
19958 CY_OBJECTIVEC_FALSE=
19959fi
19960
19961
66170b30 19962
6f9aea2b
JF
19963
19964
19965 cy_save=$LIBS
19966 LIBS=
19967
058f1bc8
DWT
19968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
19969$as_echo_n "checking for a readline compatible library... " >&6; }
ee134472 19970if ${ax_cv_lib_readline+:} false; then :
058f1bc8
DWT
19971 $as_echo_n "(cached) " >&6
19972else
a667869d 19973
058f1bc8
DWT
19974 ORIG_LIBS="$LIBS"
19975 for readline_lib in readline edit editline; do
19976 for termcap_lib in "" termcap curses ncurses; do
19977 if test -z "$termcap_lib"; then
19978 TRY_LIB="-l$readline_lib"
19979 else
19980 TRY_LIB="-l$readline_lib -l$termcap_lib"
19981 fi
19982 LIBS="$ORIG_LIBS $TRY_LIB"
19983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19984/* end confdefs.h. */
a667869d 19985
058f1bc8
DWT
19986/* Override any GCC internal prototype to avoid an error.
19987 Use char because int might match the return type of a GCC
19988 builtin and then its argument prototype would still apply. */
19989#ifdef __cplusplus
19990extern "C"
19991#endif
19992char readline ();
19993int
19994main ()
19995{
19996return readline ();
19997 ;
19998 return 0;
19999}
20000_ACEOF
20001if ac_fn_cxx_try_link "$LINENO"; then :
ee134472 20002 ax_cv_lib_readline="$TRY_LIB"
058f1bc8
DWT
20003fi
20004rm -f core conftest.err conftest.$ac_objext \
20005 conftest$ac_exeext conftest.$ac_ext
ee134472 20006 if test -n "$ax_cv_lib_readline"; then
058f1bc8
DWT
20007 break
20008 fi
20009 done
ee134472 20010 if test -n "$ax_cv_lib_readline"; then
058f1bc8
DWT
20011 break
20012 fi
20013 done
ee134472
JF
20014 if test -z "$ax_cv_lib_readline"; then
20015 ax_cv_lib_readline="no"
058f1bc8 20016 fi
ee134472 20017 LIBS="$ORIG_LIBS"
a667869d 20018
a667869d 20019fi
ee134472
JF
20020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lib_readline" >&5
20021$as_echo "$ax_cv_lib_readline" >&6; }
058f1bc8 20022
ee134472
JF
20023 if test "$ax_cv_lib_readline" != "no"; then
20024 LIBS="$LIBS $ax_cv_lib_readline"
058f1bc8
DWT
20025
20026$as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
20027
20028 for ac_header in readline.h readline/readline.h
20029do :
20030 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20031ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12833ad8 20032if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
058f1bc8
DWT
20033 cat >>confdefs.h <<_ACEOF
20034#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20035_ACEOF
5053a6d1 20036
a667869d 20037fi
058f1bc8
DWT
20038
20039done
20040
20041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
20042$as_echo_n "checking whether readline supports history... " >&6; }
ee134472 20043if ${ax_cv_lib_readline_history+:} false; then :
058f1bc8
DWT
20044 $as_echo_n "(cached) " >&6
20045else
20046
ee134472 20047 ax_cv_lib_readline_history="no"
058f1bc8
DWT
20048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20049/* end confdefs.h. */
20050
20051/* Override any GCC internal prototype to avoid an error.
20052 Use char because int might match the return type of a GCC
20053 builtin and then its argument prototype would still apply. */
20054#ifdef __cplusplus
20055extern "C"
20056#endif
20057char add_history ();
20058int
20059main ()
20060{
20061return add_history ();
20062 ;
20063 return 0;
20064}
20065_ACEOF
20066if ac_fn_cxx_try_link "$LINENO"; then :
ee134472 20067 ax_cv_lib_readline_history="yes"
058f1bc8
DWT
20068fi
20069rm -f core conftest.err conftest.$ac_objext \
20070 conftest$ac_exeext conftest.$ac_ext
20071
20072fi
ee134472
JF
20073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lib_readline_history" >&5
20074$as_echo "$ax_cv_lib_readline_history" >&6; }
20075 if test "$ax_cv_lib_readline_history" = "yes"; then
058f1bc8
DWT
20076
20077$as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
20078
20079 for ac_header in history.h readline/history.h
20080do :
20081 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20082ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12833ad8 20083if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
058f1bc8
DWT
20084 cat >>confdefs.h <<_ACEOF
20085#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20086_ACEOF
20087
20088fi
20089
20090done
20091
20092 fi
20093 fi
20094
6f9aea2b
JF
20095 LTLIBREADLINE=$LIBS
20096 LIBS=$cy_save
20097
b5af12b8 20098
6f9aea2b 20099case $ax_cv_lib_readline in #(
058f1bc8 20100 no) :
66170b30 20101 as_fn_error $? "missing \"libreadline\"" "$LINENO" 5 ;; #(
058f1bc8
DWT
20102 *) :
20103 ;;
20104esac
66170b30 20105
6f9aea2b
JF
20106
20107 cy_save=$LIBS
20108 LIBS=
20109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cur_term" >&5
a243b558
JF
20110$as_echo_n "checking for library containing cur_term... " >&6; }
20111if ${ac_cv_search_cur_term+:} false; then :
20112 $as_echo_n "(cached) " >&6
20113else
20114 ac_func_search_save_LIBS=$LIBS
20115cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20116/* end confdefs.h. */
20117
20118/* Override any GCC internal prototype to avoid an error.
20119 Use char because int might match the return type of a GCC
20120 builtin and then its argument prototype would still apply. */
20121#ifdef __cplusplus
20122extern "C"
20123#endif
20124char cur_term ();
20125int
20126main ()
20127{
20128return cur_term ();
20129 ;
20130 return 0;
20131}
20132_ACEOF
20133for ac_lib in '' termcap; do
20134 if test -z "$ac_lib"; then
20135 ac_res="none required"
20136 else
20137 ac_res=-l$ac_lib
20138 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20139 fi
20140 if ac_fn_cxx_try_link "$LINENO"; then :
20141 ac_cv_search_cur_term=$ac_res
20142fi
20143rm -f core conftest.err conftest.$ac_objext \
20144 conftest$ac_exeext
20145 if ${ac_cv_search_cur_term+:} false; then :
20146 break
20147fi
20148done
20149if ${ac_cv_search_cur_term+:} false; then :
20150
20151else
20152 ac_cv_search_cur_term=no
20153fi
20154rm conftest.$ac_ext
20155LIBS=$ac_func_search_save_LIBS
20156fi
20157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cur_term" >&5
20158$as_echo "$ac_cv_search_cur_term" >&6; }
20159ac_res=$ac_cv_search_cur_term
20160if test "$ac_res" != no; then :
20161 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20162
20163fi
20164
6f9aea2b
JF
20165 LTLIBTERMCAP=$LIBS
20166 LIBS=$cy_save
20167
a243b558 20168
b5af12b8 20169
058f1bc8
DWT
20170ac_ext=c
20171ac_cpp='$CPP $CPPFLAGS'
20172ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20173ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20174ac_compiler_gnu=$ac_cv_c_compiler_gnu
20175
20176
20177 if test "X$prefix" = "XNONE"; then
20178 acl_final_prefix="$ac_default_prefix"
20179 else
20180 acl_final_prefix="$prefix"
20181 fi
20182 if test "X$exec_prefix" = "XNONE"; then
20183 acl_final_exec_prefix='${prefix}'
20184 else
20185 acl_final_exec_prefix="$exec_prefix"
20186 fi
20187 acl_save_prefix="$prefix"
20188 prefix="$acl_final_prefix"
20189 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
20190 prefix="$acl_save_prefix"
20191
20192
53ba6704 20193
058f1bc8
DWT
20194# Check whether --with-gnu-ld was given.
20195if test "${with_gnu_ld+set}" = set; then :
20196 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
20197else
20198 with_gnu_ld=no
20199fi
20200
20201# Prepare PATH_SEPARATOR.
20202# The user is always right.
20203if test "${PATH_SEPARATOR+set}" != set; then
53ba6704
JF
20204 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
20205 # contains only /bin. Note that ksh looks also at the FPATH variable,
20206 # so we have to set that as well for the test.
20207 PATH_SEPARATOR=:
20208 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
20209 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
20210 || PATH_SEPARATOR=';'
20211 }
058f1bc8 20212fi
53ba6704 20213
058f1bc8
DWT
20214ac_prog=ld
20215if test "$GCC" = yes; then
20216 # Check if gcc -print-prog-name=ld gives a path.
53ba6704
JF
20217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
20218$as_echo_n "checking for ld used by $CC... " >&6; }
058f1bc8
DWT
20219 case $host in
20220 *-*-mingw*)
20221 # gcc leaves a trailing carriage return which upsets mingw
20222 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
20223 *)
20224 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
20225 esac
20226 case $ac_prog in
20227 # Accept absolute paths.
53ba6704 20228 [\\/]* | ?:[\\/]*)
058f1bc8 20229 re_direlt='/[^/][^/]*/\.\./'
53ba6704
JF
20230 # Canonicalize the pathname of ld
20231 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
20232 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
12833ad8 20233 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5053a6d1
DWT
20234 done
20235 test -z "$LD" && LD="$ac_prog"
20236 ;;
20237 "")
20238 # If it fails, then pretend we aren't using GCC.
20239 ac_prog=ld
20240 ;;
20241 *)
20242 # If it is relative, then search for the first ld in PATH.
20243 with_gnu_ld=unknown
20244 ;;
20245 esac
20246elif test "$with_gnu_ld" = yes; then
20247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
20248$as_echo_n "checking for GNU ld... " >&6; }
a667869d 20249else
5053a6d1
DWT
20250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
20251$as_echo_n "checking for non-GNU ld... " >&6; }
a667869d 20252fi
ee134472 20253if ${acl_cv_path_LD+:} false; then :
5053a6d1
DWT
20254 $as_echo_n "(cached) " >&6
20255else
20256 if test -z "$LD"; then
53ba6704 20257 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5053a6d1 20258 for ac_dir in $PATH; do
53ba6704 20259 IFS="$acl_save_ifs"
5053a6d1
DWT
20260 test -z "$ac_dir" && ac_dir=.
20261 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
20262 acl_cv_path_LD="$ac_dir/$ac_prog"
20263 # Check to see if the program is GNU ld. I'd rather use --version,
53ba6704 20264 # but apparently some variants of GNU ld only accept -v.
5053a6d1 20265 # Break only if it was the GNU/non-GNU ld that we prefer.
53ba6704 20266 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
5053a6d1 20267 *GNU* | *'with BFD'*)
53ba6704
JF
20268 test "$with_gnu_ld" != no && break
20269 ;;
5053a6d1 20270 *)
53ba6704
JF
20271 test "$with_gnu_ld" != yes && break
20272 ;;
5053a6d1 20273 esac
a667869d 20274 fi
5053a6d1 20275 done
53ba6704 20276 IFS="$acl_save_ifs"
a667869d 20277else
5053a6d1 20278 acl_cv_path_LD="$LD" # Let the user override the test with a path.
a667869d 20279fi
a667869d 20280fi
a667869d 20281
5053a6d1
DWT
20282LD="$acl_cv_path_LD"
20283if test -n "$LD"; then
20284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
20285$as_echo "$LD" >&6; }
20286else
20287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
a667869d 20288$as_echo "no" >&6; }
a667869d 20289fi
12833ad8 20290test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5053a6d1
DWT
20291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
20292$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
ee134472 20293if ${acl_cv_prog_gnu_ld+:} false; then :
a667869d
DWT
20294 $as_echo_n "(cached) " >&6
20295else
53ba6704 20296 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5053a6d1
DWT
20297case `$LD -v 2>&1 </dev/null` in
20298*GNU* | *'with BFD'*)
53ba6704
JF
20299 acl_cv_prog_gnu_ld=yes
20300 ;;
5053a6d1 20301*)
53ba6704
JF
20302 acl_cv_prog_gnu_ld=no
20303 ;;
5053a6d1 20304esac
a667869d 20305fi
5053a6d1
DWT
20306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
20307$as_echo "$acl_cv_prog_gnu_ld" >&6; }
20308with_gnu_ld=$acl_cv_prog_gnu_ld
20309
20310
20311
a667869d 20312
5053a6d1
DWT
20313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
20314$as_echo_n "checking for shared library run path origin... " >&6; }
ee134472 20315if ${acl_cv_rpath+:} false; then :
5053a6d1 20316 $as_echo_n "(cached) " >&6
a667869d 20317else
5053a6d1
DWT
20318
20319 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
20320 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
20321 . ./conftest.sh
20322 rm -f ./conftest.sh
20323 acl_cv_rpath=done
20324
a667869d 20325fi
5053a6d1
DWT
20326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
20327$as_echo "$acl_cv_rpath" >&6; }
20328 wl="$acl_cv_wl"
20329 acl_libext="$acl_cv_libext"
20330 acl_shlibext="$acl_cv_shlibext"
20331 acl_libname_spec="$acl_cv_libname_spec"
20332 acl_library_names_spec="$acl_cv_library_names_spec"
20333 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
20334 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
20335 acl_hardcode_direct="$acl_cv_hardcode_direct"
20336 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
20337 # Check whether --enable-rpath was given.
20338if test "${enable_rpath+set}" = set; then :
20339 enableval=$enable_rpath; :
20340else
20341 enable_rpath=yes
a667869d 20342fi
a667869d 20343
a667869d 20344
a667869d 20345
12833ad8
JF
20346
20347 acl_libdirstem=lib
20348 acl_libdirstem2=
20349 case "$host_os" in
20350 solaris*)
20351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
20352$as_echo_n "checking for 64-bit host... " >&6; }
ee134472 20353if ${gl_cv_solaris_64bit+:} false; then :
12833ad8
JF
20354 $as_echo_n "(cached) " >&6
20355else
20356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20357/* end confdefs.h. */
20358
20359#ifdef _LP64
20360sixtyfour bits
20361#endif
20362
20363_ACEOF
20364if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20365 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
20366 gl_cv_solaris_64bit=yes
20367else
20368 gl_cv_solaris_64bit=no
20369fi
20370rm -f conftest*
20371
20372
20373fi
20374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
20375$as_echo "$gl_cv_solaris_64bit" >&6; }
20376 if test $gl_cv_solaris_64bit = yes; then
20377 acl_libdirstem=lib/64
20378 case "$host_cpu" in
20379 sparc*) acl_libdirstem2=lib/sparcv9 ;;
20380 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
5053a6d1
DWT
20381 esac
20382 fi
12833ad8
JF
20383 ;;
20384 *)
20385 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
20386 if test -n "$searchpath"; then
20387 acl_save_IFS="${IFS= }"; IFS=":"
20388 for searchdir in $searchpath; do
20389 if test -d "$searchdir"; then
20390 case "$searchdir" in
20391 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
20392 */../ | */.. )
20393 # Better ignore directories of this form. They are misleading.
20394 ;;
20395 *) searchdir=`cd "$searchdir" && pwd`
20396 case "$searchdir" in
20397 */lib64 ) acl_libdirstem=lib64 ;;
20398 esac ;;
20399 esac
20400 fi
20401 done
20402 IFS="$acl_save_IFS"
20403 fi
20404 ;;
20405 esac
20406 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
20407
20408
20409
9c60689e 20410
9c60689e 20411
9c60689e 20412
9c60689e 20413
9c60689e 20414
9c60689e 20415
9c60689e 20416
9c60689e 20417
9c60689e 20418
5053a6d1 20419 use_additional=yes
9c60689e 20420
5053a6d1
DWT
20421 acl_save_prefix="$prefix"
20422 prefix="$acl_final_prefix"
20423 acl_save_exec_prefix="$exec_prefix"
20424 exec_prefix="$acl_final_exec_prefix"
9c60689e 20425
5053a6d1
DWT
20426 eval additional_includedir=\"$includedir\"
20427 eval additional_libdir=\"$libdir\"
9c60689e 20428
5053a6d1
DWT
20429 exec_prefix="$acl_save_exec_prefix"
20430 prefix="$acl_save_prefix"
3fd51f51
DWT
20431
20432
5053a6d1
DWT
20433# Check whether --with-libiconv-prefix was given.
20434if test "${with_libiconv_prefix+set}" = set; then :
20435 withval=$with_libiconv_prefix;
20436 if test "X$withval" = "Xno"; then
20437 use_additional=no
20438 else
20439 if test "X$withval" = "X"; then
3fd51f51
DWT
20440
20441 acl_save_prefix="$prefix"
20442 prefix="$acl_final_prefix"
20443 acl_save_exec_prefix="$exec_prefix"
20444 exec_prefix="$acl_final_exec_prefix"
5053a6d1
DWT
20445
20446 eval additional_includedir=\"$includedir\"
20447 eval additional_libdir=\"$libdir\"
20448
3fd51f51
DWT
20449 exec_prefix="$acl_save_exec_prefix"
20450 prefix="$acl_save_prefix"
20451
5053a6d1
DWT
20452 else
20453 additional_includedir="$withval/include"
20454 additional_libdir="$withval/$acl_libdirstem"
12833ad8
JF
20455 if test "$acl_libdirstem2" != "$acl_libdirstem" \
20456 && ! test -d "$withval/$acl_libdirstem"; then
20457 additional_libdir="$withval/$acl_libdirstem2"
20458 fi
3fd51f51 20459 fi
3fd51f51 20460 fi
3fd51f51 20461
5053a6d1 20462fi
3fd51f51 20463
5053a6d1
DWT
20464 LIBICONV=
20465 LTLIBICONV=
20466 INCICONV=
20467 LIBICONV_PREFIX=
12833ad8 20468 HAVE_LIBICONV=
5053a6d1
DWT
20469 rpathdirs=
20470 ltrpathdirs=
20471 names_already_handled=
20472 names_next_round='iconv '
20473 while test -n "$names_next_round"; do
20474 names_this_round="$names_next_round"
20475 names_next_round=
20476 for name in $names_this_round; do
20477 already_handled=
20478 for n in $names_already_handled; do
20479 if test "$n" = "$name"; then
20480 already_handled=yes
20481 break
20482 fi
20483 done
20484 if test -z "$already_handled"; then
20485 names_already_handled="$names_already_handled $name"
53ba6704 20486 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
5053a6d1
DWT
20487 eval value=\"\$HAVE_LIB$uppername\"
20488 if test -n "$value"; then
20489 if test "$value" = yes; then
20490 eval value=\"\$LIB$uppername\"
20491 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
20492 eval value=\"\$LTLIB$uppername\"
20493 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
20494 else
20495 :
20496 fi
20497 else
20498 found_dir=
20499 found_la=
20500 found_so=
20501 found_a=
20502 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
20503 if test -n "$acl_shlibext"; then
20504 shrext=".$acl_shlibext" # typically: shrext=.so
20505 else
20506 shrext=
20507 fi
20508 if test $use_additional = yes; then
20509 dir="$additional_libdir"
20510 if test -n "$acl_shlibext"; then
20511 if test -f "$dir/$libname$shrext"; then
20512 found_dir="$dir"
20513 found_so="$dir/$libname$shrext"
20514 else
20515 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
20516 ver=`(cd "$dir" && \
20517 for f in "$libname$shrext".*; do echo "$f"; done \
20518 | sed -e "s,^$libname$shrext\\\\.,," \
20519 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
20520 | sed 1q ) 2>/dev/null`
20521 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
20522 found_dir="$dir"
20523 found_so="$dir/$libname$shrext.$ver"
20524 fi
20525 else
20526 eval library_names=\"$acl_library_names_spec\"
20527 for f in $library_names; do
20528 if test -f "$dir/$f"; then
20529 found_dir="$dir"
20530 found_so="$dir/$f"
20531 break
20532 fi
20533 done
20534 fi
20535 fi
20536 fi
20537 if test "X$found_dir" = "X"; then
20538 if test -f "$dir/$libname.$acl_libext"; then
20539 found_dir="$dir"
20540 found_a="$dir/$libname.$acl_libext"
20541 fi
20542 fi
20543 if test "X$found_dir" != "X"; then
20544 if test -f "$dir/$libname.la"; then
20545 found_la="$dir/$libname.la"
20546 fi
20547 fi
20548 fi
20549 if test "X$found_dir" = "X"; then
20550 for x in $LDFLAGS $LTLIBICONV; do
3fd51f51
DWT
20551
20552 acl_save_prefix="$prefix"
20553 prefix="$acl_final_prefix"
20554 acl_save_exec_prefix="$exec_prefix"
20555 exec_prefix="$acl_final_exec_prefix"
20556 eval x=\"$x\"
20557 exec_prefix="$acl_save_exec_prefix"
20558 prefix="$acl_save_prefix"
20559
5053a6d1
DWT
20560 case "$x" in
20561 -L*)
20562 dir=`echo "X$x" | sed -e 's/^X-L//'`
20563 if test -n "$acl_shlibext"; then
20564 if test -f "$dir/$libname$shrext"; then
20565 found_dir="$dir"
20566 found_so="$dir/$libname$shrext"
20567 else
20568 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
20569 ver=`(cd "$dir" && \
20570 for f in "$libname$shrext".*; do echo "$f"; done \
20571 | sed -e "s,^$libname$shrext\\\\.,," \
20572 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
20573 | sed 1q ) 2>/dev/null`
20574 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
20575 found_dir="$dir"
20576 found_so="$dir/$libname$shrext.$ver"
20577 fi
20578 else
20579 eval library_names=\"$acl_library_names_spec\"
20580 for f in $library_names; do
20581 if test -f "$dir/$f"; then
20582 found_dir="$dir"
20583 found_so="$dir/$f"
20584 break
20585 fi
20586 done
20587 fi
20588 fi
20589 fi
20590 if test "X$found_dir" = "X"; then
20591 if test -f "$dir/$libname.$acl_libext"; then
20592 found_dir="$dir"
20593 found_a="$dir/$libname.$acl_libext"
20594 fi
20595 fi
20596 if test "X$found_dir" != "X"; then
20597 if test -f "$dir/$libname.la"; then
20598 found_la="$dir/$libname.la"
20599 fi
20600 fi
20601 ;;
20602 esac
20603 if test "X$found_dir" != "X"; then
20604 break
20605 fi
20606 done
20607 fi
20608 if test "X$found_dir" != "X"; then
20609 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
20610 if test "X$found_so" != "X"; then
12833ad8
JF
20611 if test "$enable_rpath" = no \
20612 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
20613 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
5053a6d1
DWT
20614 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
20615 else
20616 haveit=
20617 for x in $ltrpathdirs; do
20618 if test "X$x" = "X$found_dir"; then
20619 haveit=yes
20620 break
20621 fi
20622 done
20623 if test -z "$haveit"; then
20624 ltrpathdirs="$ltrpathdirs $found_dir"
20625 fi
20626 if test "$acl_hardcode_direct" = yes; then
20627 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
20628 else
20629 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
20630 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
20631 haveit=
20632 for x in $rpathdirs; do
20633 if test "X$x" = "X$found_dir"; then
20634 haveit=yes
20635 break
20636 fi
20637 done
20638 if test -z "$haveit"; then
20639 rpathdirs="$rpathdirs $found_dir"
20640 fi
20641 else
20642 haveit=
20643 for x in $LDFLAGS $LIBICONV; do
c823f118
DWT
20644
20645 acl_save_prefix="$prefix"
20646 prefix="$acl_final_prefix"
20647 acl_save_exec_prefix="$exec_prefix"
20648 exec_prefix="$acl_final_exec_prefix"
20649 eval x=\"$x\"
20650 exec_prefix="$acl_save_exec_prefix"
20651 prefix="$acl_save_prefix"
20652
5053a6d1
DWT
20653 if test "X$x" = "X-L$found_dir"; then
20654 haveit=yes
20655 break
20656 fi
20657 done
20658 if test -z "$haveit"; then
20659 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
20660 fi
20661 if test "$acl_hardcode_minus_L" != no; then
20662 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
20663 else
20664 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
20665 fi
20666 fi
20667 fi
20668 fi
20669 else
20670 if test "X$found_a" != "X"; then
20671 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
20672 else
20673 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
20674 fi
20675 fi
20676 additional_includedir=
20677 case "$found_dir" in
20678 */$acl_libdirstem | */$acl_libdirstem/)
20679 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
12833ad8
JF
20680 if test "$name" = 'iconv'; then
20681 LIBICONV_PREFIX="$basedir"
20682 fi
20683 additional_includedir="$basedir/include"
20684 ;;
20685 */$acl_libdirstem2 | */$acl_libdirstem2/)
20686 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
20687 if test "$name" = 'iconv'; then
20688 LIBICONV_PREFIX="$basedir"
20689 fi
5053a6d1
DWT
20690 additional_includedir="$basedir/include"
20691 ;;
20692 esac
20693 if test "X$additional_includedir" != "X"; then
20694 if test "X$additional_includedir" != "X/usr/include"; then
20695 haveit=
20696 if test "X$additional_includedir" = "X/usr/local/include"; then
20697 if test -n "$GCC"; then
20698 case $host_os in
20699 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
20700 esac
20701 fi
20702 fi
20703 if test -z "$haveit"; then
20704 for x in $CPPFLAGS $INCICONV; do
c823f118
DWT
20705
20706 acl_save_prefix="$prefix"
20707 prefix="$acl_final_prefix"
20708 acl_save_exec_prefix="$exec_prefix"
20709 exec_prefix="$acl_final_exec_prefix"
20710 eval x=\"$x\"
20711 exec_prefix="$acl_save_exec_prefix"
20712 prefix="$acl_save_prefix"
20713
5053a6d1
DWT
20714 if test "X$x" = "X-I$additional_includedir"; then
20715 haveit=yes
20716 break
20717 fi
20718 done
20719 if test -z "$haveit"; then
20720 if test -d "$additional_includedir"; then
20721 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
20722 fi
20723 fi
20724 fi
20725 fi
20726 fi
20727 if test -n "$found_la"; then
20728 save_libdir="$libdir"
20729 case "$found_la" in
20730 */* | *\\*) . "$found_la" ;;
20731 *) . "./$found_la" ;;
20732 esac
20733 libdir="$save_libdir"
20734 for dep in $dependency_libs; do
20735 case "$dep" in
20736 -L*)
20737 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12833ad8
JF
20738 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
20739 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
5053a6d1 20740 haveit=
12833ad8
JF
20741 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
20742 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
5053a6d1
DWT
20743 if test -n "$GCC"; then
20744 case $host_os in
20745 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
20746 esac
20747 fi
20748 fi
20749 if test -z "$haveit"; then
20750 haveit=
20751 for x in $LDFLAGS $LIBICONV; do
c823f118 20752
5053a6d1
DWT
20753 acl_save_prefix="$prefix"
20754 prefix="$acl_final_prefix"
20755 acl_save_exec_prefix="$exec_prefix"
20756 exec_prefix="$acl_final_exec_prefix"
20757 eval x=\"$x\"
20758 exec_prefix="$acl_save_exec_prefix"
20759 prefix="$acl_save_prefix"
c823f118 20760
5053a6d1
DWT
20761 if test "X$x" = "X-L$additional_libdir"; then
20762 haveit=yes
20763 break
20764 fi
20765 done
20766 if test -z "$haveit"; then
20767 if test -d "$additional_libdir"; then
20768 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
20769 fi
20770 fi
20771 haveit=
20772 for x in $LDFLAGS $LTLIBICONV; do
c823f118
DWT
20773
20774 acl_save_prefix="$prefix"
20775 prefix="$acl_final_prefix"
20776 acl_save_exec_prefix="$exec_prefix"
20777 exec_prefix="$acl_final_exec_prefix"
20778 eval x=\"$x\"
20779 exec_prefix="$acl_save_exec_prefix"
20780 prefix="$acl_save_prefix"
20781
5053a6d1
DWT
20782 if test "X$x" = "X-L$additional_libdir"; then
20783 haveit=yes
20784 break
20785 fi
20786 done
20787 if test -z "$haveit"; then
20788 if test -d "$additional_libdir"; then
20789 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
20790 fi
20791 fi
20792 fi
20793 fi
20794 ;;
20795 -R*)
20796 dir=`echo "X$dep" | sed -e 's/^X-R//'`
20797 if test "$enable_rpath" != no; then
20798 haveit=
20799 for x in $rpathdirs; do
20800 if test "X$x" = "X$dir"; then
20801 haveit=yes
20802 break
20803 fi
20804 done
20805 if test -z "$haveit"; then
20806 rpathdirs="$rpathdirs $dir"
20807 fi
20808 haveit=
20809 for x in $ltrpathdirs; do
20810 if test "X$x" = "X$dir"; then
20811 haveit=yes
20812 break
20813 fi
20814 done
20815 if test -z "$haveit"; then
20816 ltrpathdirs="$ltrpathdirs $dir"
20817 fi
20818 fi
20819 ;;
20820 -l*)
20821 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
20822 ;;
20823 *.la)
20824 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
20825 ;;
20826 *)
20827 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
20828 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
20829 ;;
20830 esac
20831 done
20832 fi
20833 else
20834 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
20835 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
20836 fi
20837 fi
c823f118
DWT
20838 fi
20839 done
c823f118 20840 done
5053a6d1
DWT
20841 if test "X$rpathdirs" != "X"; then
20842 if test -n "$acl_hardcode_libdir_separator"; then
20843 alldirs=
20844 for found_dir in $rpathdirs; do
20845 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
20846 done
20847 acl_save_libdir="$libdir"
20848 libdir="$alldirs"
20849 eval flag=\"$acl_hardcode_libdir_flag_spec\"
20850 libdir="$acl_save_libdir"
20851 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
20852 else
20853 for found_dir in $rpathdirs; do
20854 acl_save_libdir="$libdir"
20855 libdir="$found_dir"
20856 eval flag=\"$acl_hardcode_libdir_flag_spec\"
20857 libdir="$acl_save_libdir"
20858 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
20859 done
20860 fi
20861 fi
20862 if test "X$ltrpathdirs" != "X"; then
20863 for found_dir in $ltrpathdirs; do
20864 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
20865 done
47aaa820 20866 fi
47aaa820
DWT
20867
20868
47aaa820 20869
47aaa820
DWT
20870
20871
20872
5053a6d1 20873
12833ad8
JF
20874
20875
20876
20877
20878
5053a6d1
DWT
20879 am_save_CPPFLAGS="$CPPFLAGS"
20880
20881 for element in $INCICONV; do
47aaa820 20882 haveit=
5053a6d1 20883 for x in $CPPFLAGS; do
47aaa820
DWT
20884
20885 acl_save_prefix="$prefix"
20886 prefix="$acl_final_prefix"
20887 acl_save_exec_prefix="$exec_prefix"
20888 exec_prefix="$acl_final_exec_prefix"
20889 eval x=\"$x\"
20890 exec_prefix="$acl_save_exec_prefix"
20891 prefix="$acl_save_prefix"
9c60689e 20892
47aaa820
DWT
20893 if test "X$x" = "X$element"; then
20894 haveit=yes
20895 break
20896 fi
20897 done
20898 if test -z "$haveit"; then
5053a6d1 20899 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
47aaa820
DWT
20900 fi
20901 done
20902
20903
5053a6d1
DWT
20904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
20905$as_echo_n "checking for iconv... " >&6; }
ee134472 20906if ${am_cv_func_iconv+:} false; then :
5053a6d1
DWT
20907 $as_echo_n "(cached) " >&6
20908else
47aaa820 20909
5053a6d1
DWT
20910 am_cv_func_iconv="no, consider installing GNU libiconv"
20911 am_cv_lib_iconv=no
20912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20913/* end confdefs.h. */
53ba6704 20914
5053a6d1
DWT
20915#include <stdlib.h>
20916#include <iconv.h>
53ba6704 20917
5053a6d1
DWT
20918int
20919main ()
20920{
20921iconv_t cd = iconv_open("","");
53ba6704
JF
20922 iconv(cd,NULL,NULL,NULL,NULL);
20923 iconv_close(cd);
5053a6d1
DWT
20924 ;
20925 return 0;
20926}
20927_ACEOF
20928if ac_fn_c_try_link "$LINENO"; then :
20929 am_cv_func_iconv=yes
20930fi
20931rm -f core conftest.err conftest.$ac_objext \
20932 conftest$ac_exeext conftest.$ac_ext
20933 if test "$am_cv_func_iconv" != yes; then
20934 am_save_LIBS="$LIBS"
20935 LIBS="$LIBS $LIBICONV"
20936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20937/* end confdefs.h. */
53ba6704 20938
5053a6d1
DWT
20939#include <stdlib.h>
20940#include <iconv.h>
53ba6704 20941
5053a6d1
DWT
20942int
20943main ()
20944{
20945iconv_t cd = iconv_open("","");
53ba6704
JF
20946 iconv(cd,NULL,NULL,NULL,NULL);
20947 iconv_close(cd);
5053a6d1
DWT
20948 ;
20949 return 0;
20950}
20951_ACEOF
20952if ac_fn_c_try_link "$LINENO"; then :
20953 am_cv_lib_iconv=yes
20954 am_cv_func_iconv=yes
20955fi
20956rm -f core conftest.err conftest.$ac_objext \
20957 conftest$ac_exeext conftest.$ac_ext
20958 LIBS="$am_save_LIBS"
47aaa820 20959 fi
47aaa820 20960
5053a6d1
DWT
20961fi
20962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
20963$as_echo "$am_cv_func_iconv" >&6; }
20964 if test "$am_cv_func_iconv" = yes; then
20965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
20966$as_echo_n "checking for working iconv... " >&6; }
ee134472 20967if ${am_cv_func_iconv_works+:} false; then :
5053a6d1
DWT
20968 $as_echo_n "(cached) " >&6
20969else
47aaa820 20970
53ba6704 20971 am_save_LIBS="$LIBS"
5053a6d1
DWT
20972 if test $am_cv_lib_iconv = yes; then
20973 LIBS="$LIBS $LIBICONV"
20974 fi
20975 if test "$cross_compiling" = yes; then :
53ba6704
JF
20976
20977 case "$host_os" in
5053a6d1
DWT
20978 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
20979 *) am_cv_func_iconv_works="guessing yes" ;;
20980 esac
53ba6704 20981
c823f118 20982else
5053a6d1
DWT
20983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20984/* end confdefs.h. */
c823f118 20985
5053a6d1
DWT
20986#include <iconv.h>
20987#include <string.h>
20988int main ()
20989{
53ba6704 20990 int result = 0;
5053a6d1
DWT
20991 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
20992 returns. */
20993 {
20994 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
20995 if (cd_utf8_to_88591 != (iconv_t)(-1))
20996 {
20997 static const char input[] = "\342\202\254"; /* EURO SIGN */
20998 char buf[10];
20999 const char *inptr = input;
21000 size_t inbytesleft = strlen (input);
21001 char *outptr = buf;
21002 size_t outbytesleft = sizeof (buf);
21003 size_t res = iconv (cd_utf8_to_88591,
21004 (char **) &inptr, &inbytesleft,
21005 &outptr, &outbytesleft);
21006 if (res == 0)
53ba6704
JF
21007 result |= 1;
21008 iconv_close (cd_utf8_to_88591);
5053a6d1
DWT
21009 }
21010 }
12833ad8
JF
21011 /* Test against Solaris 10 bug: Failures are not distinguishable from
21012 successful returns. */
21013 {
21014 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
21015 if (cd_ascii_to_88591 != (iconv_t)(-1))
21016 {
21017 static const char input[] = "\263";
21018 char buf[10];
21019 const char *inptr = input;
21020 size_t inbytesleft = strlen (input);
21021 char *outptr = buf;
21022 size_t outbytesleft = sizeof (buf);
21023 size_t res = iconv (cd_ascii_to_88591,
21024 (char **) &inptr, &inbytesleft,
21025 &outptr, &outbytesleft);
21026 if (res == 0)
53ba6704
JF
21027 result |= 2;
21028 iconv_close (cd_ascii_to_88591);
21029 }
21030 }
21031 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
21032 {
21033 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
21034 if (cd_88591_to_utf8 != (iconv_t)(-1))
21035 {
21036 static const char input[] = "\304";
21037 static char buf[2] = { (char)0xDE, (char)0xAD };
21038 const char *inptr = input;
21039 size_t inbytesleft = 1;
21040 char *outptr = buf;
21041 size_t outbytesleft = 1;
21042 size_t res = iconv (cd_88591_to_utf8,
21043 (char **) &inptr, &inbytesleft,
21044 &outptr, &outbytesleft);
21045 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
21046 result |= 4;
21047 iconv_close (cd_88591_to_utf8);
12833ad8
JF
21048 }
21049 }
5053a6d1
DWT
21050#if 0 /* This bug could be worked around by the caller. */
21051 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
21052 {
21053 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
21054 if (cd_88591_to_utf8 != (iconv_t)(-1))
21055 {
21056 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
21057 char buf[50];
21058 const char *inptr = input;
21059 size_t inbytesleft = strlen (input);
21060 char *outptr = buf;
21061 size_t outbytesleft = sizeof (buf);
21062 size_t res = iconv (cd_88591_to_utf8,
21063 (char **) &inptr, &inbytesleft,
21064 &outptr, &outbytesleft);
21065 if ((int)res > 0)
53ba6704
JF
21066 result |= 8;
21067 iconv_close (cd_88591_to_utf8);
5053a6d1
DWT
21068 }
21069 }
21070#endif
21071 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
21072 provided. */
21073 if (/* Try standardized names. */
21074 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
21075 /* Try IRIX, OSF/1 names. */
21076 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
21077 /* Try AIX names. */
21078 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
21079 /* Try HP-UX names. */
21080 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
53ba6704
JF
21081 result |= 16;
21082 return result;
5053a6d1
DWT
21083}
21084_ACEOF
21085if ac_fn_c_try_run "$LINENO"; then :
21086 am_cv_func_iconv_works=yes
21087else
21088 am_cv_func_iconv_works=no
21089fi
21090rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21091 conftest.$ac_objext conftest.beam conftest.$ac_ext
c823f118
DWT
21092fi
21093
5053a6d1
DWT
21094 LIBS="$am_save_LIBS"
21095
47aaa820 21096fi
5053a6d1
DWT
21097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
21098$as_echo "$am_cv_func_iconv_works" >&6; }
21099 case "$am_cv_func_iconv_works" in
21100 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
21101 *) am_func_iconv=yes ;;
21102 esac
21103 else
21104 am_func_iconv=no am_cv_lib_iconv=no
21105 fi
21106 if test "$am_func_iconv" = yes; then
21107
21108$as_echo "#define HAVE_ICONV 1" >>confdefs.h
21109
21110 fi
21111 if test "$am_cv_lib_iconv" = yes; then
21112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
21113$as_echo_n "checking how to link with libiconv... " >&6; }
21114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
21115$as_echo "$LIBICONV" >&6; }
21116 else
21117 CPPFLAGS="$am_save_CPPFLAGS"
21118 LIBICONV=
21119 LTLIBICONV=
21120 fi
21121
21122
21123
21124 if test "$am_cv_func_iconv" = yes; then
21125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
21126$as_echo_n "checking for iconv declaration... " >&6; }
ee134472 21127 if ${am_cv_proto_iconv+:} false; then :
5053a6d1
DWT
21128 $as_echo_n "(cached) " >&6
21129else
21130
21131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21132/* end confdefs.h. */
21133
21134#include <stdlib.h>
21135#include <iconv.h>
21136extern
21137#ifdef __cplusplus
21138"C"
21139#endif
53ba6704 21140#if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
5053a6d1
DWT
21141size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
21142#else
21143size_t iconv();
21144#endif
21145
21146int
21147main ()
21148{
47aaa820 21149
5053a6d1
DWT
21150 ;
21151 return 0;
21152}
21153_ACEOF
21154if ac_fn_c_try_compile "$LINENO"; then :
21155 am_cv_proto_iconv_arg1=""
21156else
21157 am_cv_proto_iconv_arg1="const"
47aaa820 21158fi
5053a6d1
DWT
21159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21160 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);"
21161fi
21162
21163 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
12833ad8
JF
21164 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
21165 $am_cv_proto_iconv" >&5
21166$as_echo "
21167 $am_cv_proto_iconv" >&6; }
5053a6d1
DWT
21168
21169cat >>confdefs.h <<_ACEOF
21170#define ICONV_CONST $am_cv_proto_iconv_arg1
21171_ACEOF
21172
53ba6704 21173
5053a6d1
DWT
21174 fi
21175
5053a6d1
DWT
21176case $am_cv_func_iconv in #(
21177 yes) :
21178 ;; #(
a667869d 21179 *) :
058f1bc8 21180
66170b30
JF
21181 for cy_iconv_prefix_arg in $CFLAGS $CXXFLAGS $OBJCXXFLAGS $LDFLAGS $LIBS; do
21182 case $cy_iconv_prefix_arg in #(
058f1bc8
DWT
21183 -I*) :
21184
21185
21186 for element in `echo $cy_iconv_prefix_arg | sed -e 's/^-I//;s|/include$||'`; do
21187 haveit=
21188 for x in $cy_iconv_prefixes; do
21189
21190 acl_save_prefix="$prefix"
21191 prefix="$acl_final_prefix"
21192 acl_save_exec_prefix="$exec_prefix"
21193 exec_prefix="$acl_final_exec_prefix"
21194 eval x=\"$x\"
21195 exec_prefix="$acl_save_exec_prefix"
21196 prefix="$acl_save_prefix"
21197
21198 if test "X$x" = "X$element"; then
21199 haveit=yes
21200 break
21201 fi
21202 done
21203 if test -z "$haveit"; then
21204 cy_iconv_prefixes="${cy_iconv_prefixes}${cy_iconv_prefixes:+ }$element"
21205 fi
21206 done
21207
66170b30 21208 ;; #(
058f1bc8
DWT
21209 -L*) :
21210
21211
21212 for element in `echo $cy_iconv_prefix_arg | sed -e 's/^-L//;s|/lib$||'`; do
21213 haveit=
21214 for x in $cy_iconv_prefixes; do
21215
21216 acl_save_prefix="$prefix"
21217 prefix="$acl_final_prefix"
21218 acl_save_exec_prefix="$exec_prefix"
21219 exec_prefix="$acl_final_exec_prefix"
21220 eval x=\"$x\"
21221 exec_prefix="$acl_save_exec_prefix"
21222 prefix="$acl_save_prefix"
21223
21224 if test "X$x" = "X$element"; then
21225 haveit=yes
21226 break
21227 fi
21228 done
21229 if test -z "$haveit"; then
21230 cy_iconv_prefixes="${cy_iconv_prefixes}${cy_iconv_prefixes:+ }$element"
21231 fi
21232 done
21233
66170b30 21234 ;; #(
058f1bc8
DWT
21235 *) :
21236 ;;
a667869d 21237esac
66170b30
JF
21238 done
21239 for with_libiconv_prefix in $cy_iconv_prefixes; do
21240 { am_cv_func_iconv=; unset am_cv_func_iconv;}
058f1bc8
DWT
21241
21242
21243
21244
21245
21246
21247
21248
12833ad8
JF
21249
21250
21251
058f1bc8
DWT
21252 use_additional=yes
21253
21254 acl_save_prefix="$prefix"
21255 prefix="$acl_final_prefix"
21256 acl_save_exec_prefix="$exec_prefix"
21257 exec_prefix="$acl_final_exec_prefix"
21258
21259 eval additional_includedir=\"$includedir\"
21260 eval additional_libdir=\"$libdir\"
21261
21262 exec_prefix="$acl_save_exec_prefix"
21263 prefix="$acl_save_prefix"
21264
21265
21266# Check whether --with-libiconv-prefix was given.
21267if test "${with_libiconv_prefix+set}" = set; then :
21268 withval=$with_libiconv_prefix;
21269 if test "X$withval" = "Xno"; then
21270 use_additional=no
21271 else
21272 if test "X$withval" = "X"; then
21273
21274 acl_save_prefix="$prefix"
21275 prefix="$acl_final_prefix"
21276 acl_save_exec_prefix="$exec_prefix"
21277 exec_prefix="$acl_final_exec_prefix"
21278
21279 eval additional_includedir=\"$includedir\"
21280 eval additional_libdir=\"$libdir\"
21281
21282 exec_prefix="$acl_save_exec_prefix"
21283 prefix="$acl_save_prefix"
21284
21285 else
21286 additional_includedir="$withval/include"
21287 additional_libdir="$withval/$acl_libdirstem"
12833ad8
JF
21288 if test "$acl_libdirstem2" != "$acl_libdirstem" \
21289 && ! test -d "$withval/$acl_libdirstem"; then
21290 additional_libdir="$withval/$acl_libdirstem2"
21291 fi
058f1bc8
DWT
21292 fi
21293 fi
21294
21295fi
21296
21297 LIBICONV=
21298 LTLIBICONV=
21299 INCICONV=
21300 LIBICONV_PREFIX=
12833ad8 21301 HAVE_LIBICONV=
058f1bc8
DWT
21302 rpathdirs=
21303 ltrpathdirs=
21304 names_already_handled=
21305 names_next_round='iconv '
21306 while test -n "$names_next_round"; do
21307 names_this_round="$names_next_round"
21308 names_next_round=
21309 for name in $names_this_round; do
21310 already_handled=
21311 for n in $names_already_handled; do
21312 if test "$n" = "$name"; then
21313 already_handled=yes
21314 break
21315 fi
21316 done
21317 if test -z "$already_handled"; then
21318 names_already_handled="$names_already_handled $name"
53ba6704 21319 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
058f1bc8
DWT
21320 eval value=\"\$HAVE_LIB$uppername\"
21321 if test -n "$value"; then
21322 if test "$value" = yes; then
21323 eval value=\"\$LIB$uppername\"
21324 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
21325 eval value=\"\$LTLIB$uppername\"
21326 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
21327 else
21328 :
21329 fi
21330 else
21331 found_dir=
21332 found_la=
21333 found_so=
21334 found_a=
21335 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
21336 if test -n "$acl_shlibext"; then
21337 shrext=".$acl_shlibext" # typically: shrext=.so
21338 else
21339 shrext=
21340 fi
21341 if test $use_additional = yes; then
21342 dir="$additional_libdir"
21343 if test -n "$acl_shlibext"; then
21344 if test -f "$dir/$libname$shrext"; then
21345 found_dir="$dir"
21346 found_so="$dir/$libname$shrext"
21347 else
21348 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
21349 ver=`(cd "$dir" && \
21350 for f in "$libname$shrext".*; do echo "$f"; done \
21351 | sed -e "s,^$libname$shrext\\\\.,," \
21352 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
21353 | sed 1q ) 2>/dev/null`
21354 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
21355 found_dir="$dir"
21356 found_so="$dir/$libname$shrext.$ver"
21357 fi
21358 else
21359 eval library_names=\"$acl_library_names_spec\"
21360 for f in $library_names; do
21361 if test -f "$dir/$f"; then
21362 found_dir="$dir"
21363 found_so="$dir/$f"
21364 break
21365 fi
21366 done
21367 fi
21368 fi
21369 fi
21370 if test "X$found_dir" = "X"; then
21371 if test -f "$dir/$libname.$acl_libext"; then
21372 found_dir="$dir"
21373 found_a="$dir/$libname.$acl_libext"
21374 fi
21375 fi
21376 if test "X$found_dir" != "X"; then
21377 if test -f "$dir/$libname.la"; then
21378 found_la="$dir/$libname.la"
21379 fi
21380 fi
21381 fi
21382 if test "X$found_dir" = "X"; then
21383 for x in $LDFLAGS $LTLIBICONV; do
21384
21385 acl_save_prefix="$prefix"
21386 prefix="$acl_final_prefix"
21387 acl_save_exec_prefix="$exec_prefix"
21388 exec_prefix="$acl_final_exec_prefix"
21389 eval x=\"$x\"
21390 exec_prefix="$acl_save_exec_prefix"
21391 prefix="$acl_save_prefix"
21392
21393 case "$x" in
21394 -L*)
21395 dir=`echo "X$x" | sed -e 's/^X-L//'`
21396 if test -n "$acl_shlibext"; then
21397 if test -f "$dir/$libname$shrext"; then
21398 found_dir="$dir"
21399 found_so="$dir/$libname$shrext"
21400 else
21401 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
21402 ver=`(cd "$dir" && \
21403 for f in "$libname$shrext".*; do echo "$f"; done \
21404 | sed -e "s,^$libname$shrext\\\\.,," \
21405 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
21406 | sed 1q ) 2>/dev/null`
21407 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
21408 found_dir="$dir"
21409 found_so="$dir/$libname$shrext.$ver"
21410 fi
21411 else
21412 eval library_names=\"$acl_library_names_spec\"
21413 for f in $library_names; do
21414 if test -f "$dir/$f"; then
21415 found_dir="$dir"
21416 found_so="$dir/$f"
21417 break
21418 fi
21419 done
21420 fi
21421 fi
21422 fi
21423 if test "X$found_dir" = "X"; then
21424 if test -f "$dir/$libname.$acl_libext"; then
21425 found_dir="$dir"
21426 found_a="$dir/$libname.$acl_libext"
21427 fi
21428 fi
21429 if test "X$found_dir" != "X"; then
21430 if test -f "$dir/$libname.la"; then
21431 found_la="$dir/$libname.la"
21432 fi
21433 fi
21434 ;;
21435 esac
21436 if test "X$found_dir" != "X"; then
21437 break
21438 fi
21439 done
21440 fi
21441 if test "X$found_dir" != "X"; then
21442 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
21443 if test "X$found_so" != "X"; then
12833ad8
JF
21444 if test "$enable_rpath" = no \
21445 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
21446 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
058f1bc8
DWT
21447 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21448 else
21449 haveit=
21450 for x in $ltrpathdirs; do
21451 if test "X$x" = "X$found_dir"; then
21452 haveit=yes
21453 break
21454 fi
21455 done
21456 if test -z "$haveit"; then
21457 ltrpathdirs="$ltrpathdirs $found_dir"
21458 fi
21459 if test "$acl_hardcode_direct" = yes; then
21460 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21461 else
21462 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
21463 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21464 haveit=
21465 for x in $rpathdirs; do
21466 if test "X$x" = "X$found_dir"; then
21467 haveit=yes
21468 break
21469 fi
21470 done
21471 if test -z "$haveit"; then
21472 rpathdirs="$rpathdirs $found_dir"
21473 fi
21474 else
21475 haveit=
21476 for x in $LDFLAGS $LIBICONV; do
21477
21478 acl_save_prefix="$prefix"
21479 prefix="$acl_final_prefix"
21480 acl_save_exec_prefix="$exec_prefix"
21481 exec_prefix="$acl_final_exec_prefix"
21482 eval x=\"$x\"
21483 exec_prefix="$acl_save_exec_prefix"
21484 prefix="$acl_save_prefix"
21485
21486 if test "X$x" = "X-L$found_dir"; then
21487 haveit=yes
21488 break
21489 fi
21490 done
21491 if test -z "$haveit"; then
21492 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
21493 fi
21494 if test "$acl_hardcode_minus_L" != no; then
21495 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21496 else
21497 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
21498 fi
21499 fi
21500 fi
21501 fi
21502 else
21503 if test "X$found_a" != "X"; then
21504 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
21505 else
21506 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
21507 fi
21508 fi
21509 additional_includedir=
21510 case "$found_dir" in
21511 */$acl_libdirstem | */$acl_libdirstem/)
21512 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
12833ad8
JF
21513 if test "$name" = 'iconv'; then
21514 LIBICONV_PREFIX="$basedir"
21515 fi
21516 additional_includedir="$basedir/include"
21517 ;;
21518 */$acl_libdirstem2 | */$acl_libdirstem2/)
21519 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
21520 if test "$name" = 'iconv'; then
21521 LIBICONV_PREFIX="$basedir"
21522 fi
058f1bc8
DWT
21523 additional_includedir="$basedir/include"
21524 ;;
21525 esac
21526 if test "X$additional_includedir" != "X"; then
21527 if test "X$additional_includedir" != "X/usr/include"; then
21528 haveit=
21529 if test "X$additional_includedir" = "X/usr/local/include"; then
21530 if test -n "$GCC"; then
21531 case $host_os in
21532 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21533 esac
21534 fi
21535 fi
21536 if test -z "$haveit"; then
21537 for x in $CPPFLAGS $INCICONV; do
21538
21539 acl_save_prefix="$prefix"
21540 prefix="$acl_final_prefix"
21541 acl_save_exec_prefix="$exec_prefix"
21542 exec_prefix="$acl_final_exec_prefix"
21543 eval x=\"$x\"
21544 exec_prefix="$acl_save_exec_prefix"
21545 prefix="$acl_save_prefix"
21546
21547 if test "X$x" = "X-I$additional_includedir"; then
21548 haveit=yes
21549 break
21550 fi
21551 done
21552 if test -z "$haveit"; then
21553 if test -d "$additional_includedir"; then
21554 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
21555 fi
21556 fi
21557 fi
21558 fi
21559 fi
21560 if test -n "$found_la"; then
21561 save_libdir="$libdir"
21562 case "$found_la" in
21563 */* | *\\*) . "$found_la" ;;
21564 *) . "./$found_la" ;;
21565 esac
21566 libdir="$save_libdir"
21567 for dep in $dependency_libs; do
21568 case "$dep" in
21569 -L*)
21570 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12833ad8
JF
21571 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
21572 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
058f1bc8 21573 haveit=
12833ad8
JF
21574 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
21575 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
058f1bc8
DWT
21576 if test -n "$GCC"; then
21577 case $host_os in
21578 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21579 esac
21580 fi
21581 fi
21582 if test -z "$haveit"; then
21583 haveit=
21584 for x in $LDFLAGS $LIBICONV; do
21585
21586 acl_save_prefix="$prefix"
21587 prefix="$acl_final_prefix"
21588 acl_save_exec_prefix="$exec_prefix"
21589 exec_prefix="$acl_final_exec_prefix"
21590 eval x=\"$x\"
21591 exec_prefix="$acl_save_exec_prefix"
21592 prefix="$acl_save_prefix"
21593
21594 if test "X$x" = "X-L$additional_libdir"; then
21595 haveit=yes
21596 break
21597 fi
21598 done
21599 if test -z "$haveit"; then
21600 if test -d "$additional_libdir"; then
21601 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
21602 fi
21603 fi
21604 haveit=
21605 for x in $LDFLAGS $LTLIBICONV; do
21606
21607 acl_save_prefix="$prefix"
21608 prefix="$acl_final_prefix"
21609 acl_save_exec_prefix="$exec_prefix"
21610 exec_prefix="$acl_final_exec_prefix"
21611 eval x=\"$x\"
21612 exec_prefix="$acl_save_exec_prefix"
21613 prefix="$acl_save_prefix"
21614
21615 if test "X$x" = "X-L$additional_libdir"; then
21616 haveit=yes
21617 break
21618 fi
21619 done
21620 if test -z "$haveit"; then
21621 if test -d "$additional_libdir"; then
21622 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
21623 fi
21624 fi
21625 fi
21626 fi
21627 ;;
21628 -R*)
21629 dir=`echo "X$dep" | sed -e 's/^X-R//'`
21630 if test "$enable_rpath" != no; then
21631 haveit=
21632 for x in $rpathdirs; do
21633 if test "X$x" = "X$dir"; then
21634 haveit=yes
21635 break
21636 fi
21637 done
21638 if test -z "$haveit"; then
21639 rpathdirs="$rpathdirs $dir"
21640 fi
21641 haveit=
21642 for x in $ltrpathdirs; do
21643 if test "X$x" = "X$dir"; then
21644 haveit=yes
21645 break
21646 fi
21647 done
21648 if test -z "$haveit"; then
21649 ltrpathdirs="$ltrpathdirs $dir"
21650 fi
21651 fi
21652 ;;
21653 -l*)
21654 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
21655 ;;
21656 *.la)
21657 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
21658 ;;
21659 *)
21660 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
21661 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
21662 ;;
21663 esac
21664 done
21665 fi
21666 else
21667 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
21668 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
21669 fi
21670 fi
21671 fi
21672 done
21673 done
21674 if test "X$rpathdirs" != "X"; then
21675 if test -n "$acl_hardcode_libdir_separator"; then
21676 alldirs=
21677 for found_dir in $rpathdirs; do
21678 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
21679 done
21680 acl_save_libdir="$libdir"
21681 libdir="$alldirs"
21682 eval flag=\"$acl_hardcode_libdir_flag_spec\"
21683 libdir="$acl_save_libdir"
21684 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
21685 else
21686 for found_dir in $rpathdirs; do
21687 acl_save_libdir="$libdir"
21688 libdir="$found_dir"
21689 eval flag=\"$acl_hardcode_libdir_flag_spec\"
21690 libdir="$acl_save_libdir"
21691 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
21692 done
21693 fi
21694 fi
21695 if test "X$ltrpathdirs" != "X"; then
21696 for found_dir in $ltrpathdirs; do
21697 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
21698 done
21699 fi
21700
21701
21702
21703
21704
21705
21706
058f1bc8 21707
66170b30 21708 done
058f1bc8
DWT
21709 ;;
21710esac
21711case $am_cv_func_iconv in #(
21712 yes) :
21713 ;; #(
21714 *) :
66170b30 21715 as_fn_error $? "missing \"libiconv\"" "$LINENO" 5 ;;
058f1bc8
DWT
21716esac
21717ac_ext=cpp
21718ac_cpp='$CXXCPP $CPPFLAGS'
21719ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21720ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21721ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21722
66170b30
JF
21723
21724
9777bd50
JF
21725SO=$acl_shlibext
21726
e1cce270 21727
66170b30 21728ac_fn_cxx_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
ee134472 21729if test "x$ac_cv_header_mach_mach_h" = xyes; then :
e1cce270 21730
66170b30 21731 if test -n "$ac_tool_prefix"; then
a243b558 21732 for ac_prog in lipo
794e88e7
DWT
21733 do
21734 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
21735set dummy $ac_tool_prefix$ac_prog; ac_word=$2
21736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21737$as_echo_n "checking for $ac_word... " >&6; }
a243b558 21738if ${ac_cv_prog__LIPO+:} false; then :
794e88e7
DWT
21739 $as_echo_n "(cached) " >&6
21740else
a243b558
JF
21741 if test -n "$_LIPO"; then
21742 ac_cv_prog__LIPO="$_LIPO" # Let the user override the test.
794e88e7
DWT
21743else
21744as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21745for as_dir in $PATH
21746do
21747 IFS=$as_save_IFS
21748 test -z "$as_dir" && as_dir=.
21749 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 21750 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 21751 ac_cv_prog__LIPO="$ac_tool_prefix$ac_prog"
794e88e7
DWT
21752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21753 break 2
21754 fi
21755done
21756 done
21757IFS=$as_save_IFS
21758
21759fi
21760fi
a243b558
JF
21761_LIPO=$ac_cv_prog__LIPO
21762if test -n "$_LIPO"; then
21763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_LIPO" >&5
21764$as_echo "$_LIPO" >&6; }
794e88e7
DWT
21765else
21766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21767$as_echo "no" >&6; }
21768fi
21769
21770
a243b558 21771 test -n "$_LIPO" && break
794e88e7
DWT
21772 done
21773fi
a243b558
JF
21774if test -z "$_LIPO"; then
21775 ac_ct__LIPO=$_LIPO
21776 for ac_prog in lipo
794e88e7
DWT
21777do
21778 # Extract the first word of "$ac_prog", so it can be a program name with args.
21779set dummy $ac_prog; ac_word=$2
21780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21781$as_echo_n "checking for $ac_word... " >&6; }
a243b558 21782if ${ac_cv_prog_ac_ct__LIPO+:} false; then :
794e88e7
DWT
21783 $as_echo_n "(cached) " >&6
21784else
a243b558
JF
21785 if test -n "$ac_ct__LIPO"; then
21786 ac_cv_prog_ac_ct__LIPO="$ac_ct__LIPO" # Let the user override the test.
794e88e7
DWT
21787else
21788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21789for as_dir in $PATH
21790do
21791 IFS=$as_save_IFS
21792 test -z "$as_dir" && as_dir=.
21793 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 21794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 21795 ac_cv_prog_ac_ct__LIPO="$ac_prog"
794e88e7
DWT
21796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21797 break 2
21798 fi
21799done
21800 done
21801IFS=$as_save_IFS
21802
21803fi
21804fi
a243b558
JF
21805ac_ct__LIPO=$ac_cv_prog_ac_ct__LIPO
21806if test -n "$ac_ct__LIPO"; then
21807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct__LIPO" >&5
21808$as_echo "$ac_ct__LIPO" >&6; }
794e88e7
DWT
21809else
21810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21811$as_echo "no" >&6; }
21812fi
21813
21814
a243b558 21815 test -n "$ac_ct__LIPO" && break
794e88e7
DWT
21816done
21817
a243b558
JF
21818 if test "x$ac_ct__LIPO" = x; then
21819 _LIPO="as_fn_error $? "missing \"lipo\"" "$LINENO" 5"
794e88e7
DWT
21820 else
21821 case $cross_compiling:$ac_tool_warned in
21822yes:)
21823{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21824$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21825ac_tool_warned=yes ;;
e1cce270 21826esac
a243b558 21827 _LIPO=$ac_ct__LIPO
794e88e7
DWT
21828 fi
21829fi
21830
66170b30 21831 if test -n "$ac_tool_prefix"; then
a243b558 21832 for ac_prog in nm
794e88e7
DWT
21833 do
21834 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
21835set dummy $ac_tool_prefix$ac_prog; ac_word=$2
21836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21837$as_echo_n "checking for $ac_word... " >&6; }
a243b558 21838if ${ac_cv_prog__NM+:} false; then :
794e88e7
DWT
21839 $as_echo_n "(cached) " >&6
21840else
a243b558
JF
21841 if test -n "$_NM"; then
21842 ac_cv_prog__NM="$_NM" # Let the user override the test.
794e88e7
DWT
21843else
21844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21845for as_dir in $PATH
21846do
21847 IFS=$as_save_IFS
21848 test -z "$as_dir" && as_dir=.
21849 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 21850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 21851 ac_cv_prog__NM="$ac_tool_prefix$ac_prog"
794e88e7
DWT
21852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21853 break 2
21854 fi
21855done
21856 done
21857IFS=$as_save_IFS
21858
21859fi
21860fi
a243b558
JF
21861_NM=$ac_cv_prog__NM
21862if test -n "$_NM"; then
21863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_NM" >&5
21864$as_echo "$_NM" >&6; }
794e88e7
DWT
21865else
21866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21867$as_echo "no" >&6; }
21868fi
21869
21870
a243b558 21871 test -n "$_NM" && break
794e88e7
DWT
21872 done
21873fi
a243b558
JF
21874if test -z "$_NM"; then
21875 ac_ct__NM=$_NM
21876 for ac_prog in nm
794e88e7
DWT
21877do
21878 # Extract the first word of "$ac_prog", so it can be a program name with args.
21879set dummy $ac_prog; ac_word=$2
21880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21881$as_echo_n "checking for $ac_word... " >&6; }
a243b558 21882if ${ac_cv_prog_ac_ct__NM+:} false; then :
794e88e7
DWT
21883 $as_echo_n "(cached) " >&6
21884else
a243b558
JF
21885 if test -n "$ac_ct__NM"; then
21886 ac_cv_prog_ac_ct__NM="$ac_ct__NM" # Let the user override the test.
794e88e7
DWT
21887else
21888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21889for as_dir in $PATH
21890do
21891 IFS=$as_save_IFS
21892 test -z "$as_dir" && as_dir=.
21893 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 21894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 21895 ac_cv_prog_ac_ct__NM="$ac_prog"
794e88e7
DWT
21896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21897 break 2
21898 fi
21899done
21900 done
21901IFS=$as_save_IFS
21902
21903fi
21904fi
a243b558
JF
21905ac_ct__NM=$ac_cv_prog_ac_ct__NM
21906if test -n "$ac_ct__NM"; then
21907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct__NM" >&5
21908$as_echo "$ac_ct__NM" >&6; }
794e88e7
DWT
21909else
21910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21911$as_echo "no" >&6; }
21912fi
21913
21914
a243b558 21915 test -n "$ac_ct__NM" && break
794e88e7
DWT
21916done
21917
a243b558
JF
21918 if test "x$ac_ct__NM" = x; then
21919 _NM="as_fn_error $? "missing \"nm\"" "$LINENO" 5"
794e88e7
DWT
21920 else
21921 case $cross_compiling:$ac_tool_warned in
21922yes:)
21923{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21924$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21925ac_tool_warned=yes ;;
21926esac
a243b558 21927 _NM=$ac_ct__NM
794e88e7
DWT
21928 fi
21929fi
21930
66170b30 21931 if test -n "$ac_tool_prefix"; then
a243b558 21932 for ac_prog in otool
794e88e7
DWT
21933 do
21934 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
21935set dummy $ac_tool_prefix$ac_prog; ac_word=$2
21936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21937$as_echo_n "checking for $ac_word... " >&6; }
a243b558 21938if ${ac_cv_prog__OTOOL+:} false; then :
794e88e7
DWT
21939 $as_echo_n "(cached) " >&6
21940else
a243b558
JF
21941 if test -n "$_OTOOL"; then
21942 ac_cv_prog__OTOOL="$_OTOOL" # Let the user override the test.
794e88e7
DWT
21943else
21944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21945for as_dir in $PATH
21946do
21947 IFS=$as_save_IFS
21948 test -z "$as_dir" && as_dir=.
21949 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 21950 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 21951 ac_cv_prog__OTOOL="$ac_tool_prefix$ac_prog"
794e88e7
DWT
21952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21953 break 2
21954 fi
21955done
21956 done
21957IFS=$as_save_IFS
21958
21959fi
21960fi
a243b558
JF
21961_OTOOL=$ac_cv_prog__OTOOL
21962if test -n "$_OTOOL"; then
21963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_OTOOL" >&5
21964$as_echo "$_OTOOL" >&6; }
794e88e7
DWT
21965else
21966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21967$as_echo "no" >&6; }
21968fi
21969
21970
a243b558 21971 test -n "$_OTOOL" && break
794e88e7
DWT
21972 done
21973fi
a243b558
JF
21974if test -z "$_OTOOL"; then
21975 ac_ct__OTOOL=$_OTOOL
21976 for ac_prog in otool
794e88e7
DWT
21977do
21978 # Extract the first word of "$ac_prog", so it can be a program name with args.
21979set dummy $ac_prog; ac_word=$2
21980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21981$as_echo_n "checking for $ac_word... " >&6; }
a243b558 21982if ${ac_cv_prog_ac_ct__OTOOL+:} false; then :
794e88e7
DWT
21983 $as_echo_n "(cached) " >&6
21984else
a243b558
JF
21985 if test -n "$ac_ct__OTOOL"; then
21986 ac_cv_prog_ac_ct__OTOOL="$ac_ct__OTOOL" # Let the user override the test.
794e88e7
DWT
21987else
21988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21989for as_dir in $PATH
21990do
21991 IFS=$as_save_IFS
21992 test -z "$as_dir" && as_dir=.
21993 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 21994 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 21995 ac_cv_prog_ac_ct__OTOOL="$ac_prog"
794e88e7
DWT
21996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21997 break 2
21998 fi
21999done
22000 done
22001IFS=$as_save_IFS
22002
22003fi
22004fi
a243b558
JF
22005ac_ct__OTOOL=$ac_cv_prog_ac_ct__OTOOL
22006if test -n "$ac_ct__OTOOL"; then
22007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct__OTOOL" >&5
22008$as_echo "$ac_ct__OTOOL" >&6; }
794e88e7
DWT
22009else
22010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22011$as_echo "no" >&6; }
22012fi
22013
22014
a243b558 22015 test -n "$ac_ct__OTOOL" && break
794e88e7
DWT
22016done
22017
a243b558
JF
22018 if test "x$ac_ct__OTOOL" = x; then
22019 _OTOOL="as_fn_error $? "missing \"otool\"" "$LINENO" 5"
794e88e7
DWT
22020 else
22021 case $cross_compiling:$ac_tool_warned in
22022yes:)
22023{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
22024$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22025ac_tool_warned=yes ;;
22026esac
a243b558 22027 _OTOOL=$ac_ct__OTOOL
794e88e7
DWT
22028 fi
22029fi
22030
66170b30 22031 CY_MACH=1
794e88e7 22032
66170b30 22033 CY_ATTACH_GROUP=procmod
794e88e7 22034
e1cce270
DWT
22035
22036fi
22037
22038
22039
a243b558
JF
22040 if test "x$CY_MACH" = x1; then
22041 CY_MACH_TRUE=
22042 CY_MACH_FALSE='#'
22043else
22044 CY_MACH_TRUE='#'
22045 CY_MACH_FALSE=
47aaa820 22046fi
9c60689e 22047
66170b30 22048
a243b558
JF
22049ac_config_files="$ac_config_files Makefile"
22050
9c60689e
DWT
22051cat >confcache <<\_ACEOF
22052# This file is a shell script that caches the results of configure
22053# tests run on this system so they can be shared between configure
22054# scripts and configure runs, see configure's option --config-cache.
22055# It is not useful on other systems. If it contains results you don't
22056# want to keep, you may remove or edit it.
22057#
22058# config.status only pays attention to the cache file if you give it
22059# the --recheck option to rerun configure.
22060#
22061# `ac_cv_env_foo' variables (set or unset) will be overridden when
22062# loading this file, other *unset* `ac_cv_foo' will be assigned the
22063# following values.
22064
22065_ACEOF
22066
22067# The following way of writing the cache mishandles newlines in values,
22068# but we know of no workaround that is simple, portable, and efficient.
22069# So, we kill variables containing newlines.
22070# Ultrix sh set writes to stderr and can't be redirected directly,
22071# and sets the high bit in the cache file unless we assign to the vars.
22072(
22073 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22074 eval ac_val=\$$ac_var
22075 case $ac_val in #(
22076 *${as_nl}*)
22077 case $ac_var in #(
22078 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
22079$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
22080 esac
22081 case $ac_var in #(
22082 _ | IFS | as_nl) ;; #(
22083 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
22084 *) { eval $ac_var=; unset $ac_var;} ;;
22085 esac ;;
22086 esac
22087 done
22088
22089 (set) 2>&1 |
22090 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22091 *${as_nl}ac_space=\ *)
22092 # `set' does not quote correctly, so add quotes: double-quote
22093 # substitution turns \\\\ into \\, and sed turns \\ into \.
22094 sed -n \
22095 "s/'/'\\\\''/g;
22096 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22097 ;; #(
22098 *)
22099 # `set' quotes correctly as required by POSIX, so do not add quotes.
22100 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22101 ;;
22102 esac |
22103 sort
22104) |
22105 sed '
22106 /^ac_cv_env_/b end
22107 t clear
22108 :clear
22109 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22110 t end
22111 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22112 :end' >>confcache
22113if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22114 if test -w "$cache_file"; then
ee134472 22115 if test "x$cache_file" != "x/dev/null"; then
9c60689e
DWT
22116 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
22117$as_echo "$as_me: updating cache $cache_file" >&6;}
ee134472
JF
22118 if test ! -f "$cache_file" || test -h "$cache_file"; then
22119 cat confcache >"$cache_file"
22120 else
22121 case $cache_file in #(
22122 */* | ?:*)
22123 mv -f confcache "$cache_file"$$ &&
22124 mv -f "$cache_file"$$ "$cache_file" ;; #(
22125 *)
22126 mv -f confcache "$cache_file" ;;
22127 esac
22128 fi
22129 fi
9c60689e
DWT
22130 else
22131 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
22132$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22133 fi
22134fi
22135rm -f confcache
22136
22137test "x$prefix" = xNONE && prefix=$ac_default_prefix
22138# Let make expand exec_prefix.
22139test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22140
22141# Transform confdefs.h into DEFS.
22142# Protect against shell expansion while executing Makefile rules.
22143# Protect against Makefile macro expansion.
22144#
22145# If the first sed substitution is executed (which looks for macros that
22146# take arguments), then branch to the quote section. Otherwise,
22147# look for a macro that doesn't take arguments.
22148ac_script='
22149:mline
22150/\\$/{
22151 N
22152 s,\\\n,,
22153 b mline
22154}
22155t clear
22156:clear
22157s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
22158t quote
22159s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
22160t quote
22161b any
22162:quote
22163s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
22164s/\[/\\&/g
22165s/\]/\\&/g
22166s/\$/$$/g
22167H
22168:any
22169${
22170 g
22171 s/^\n//
22172 s/\n/ /g
22173 p
22174}
22175'
22176DEFS=`sed -n "$ac_script" confdefs.h`
22177
22178
22179ac_libobjs=
22180ac_ltlibobjs=
12833ad8 22181U=
9c60689e
DWT
22182for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22183 # 1. Remove the extension, and $U if already installed.
22184 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22185 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
22186 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22187 # will be set to the directory where LIBOBJS objects are built.
22188 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22189 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
22190done
22191LIBOBJS=$ac_libobjs
22192
22193LTLIBOBJS=$ac_ltlibobjs
22194
22195
66170b30
JF
22196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
22197$as_echo_n "checking that generated files are newer than configure... " >&6; }
22198 if test -n "$am_sleep_pid"; then
22199 # Hide warnings about reused PIDs.
22200 wait $am_sleep_pid 2>/dev/null
22201 fi
22202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
22203$as_echo "done" >&6; }
22204 if test -n "$EXEEXT"; then
22205 am__EXEEXT_TRUE=
22206 am__EXEEXT_FALSE='#'
22207else
22208 am__EXEEXT_TRUE='#'
22209 am__EXEEXT_FALSE=
22210fi
22211
22212if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22213 as_fn_error $? "conditional \"AMDEP\" was never defined.
22214Usually this means the macro was only invoked conditionally." "$LINENO" 5
22215fi
66170b30
JF
22216if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22217 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
22218Usually this means the macro was only invoked conditionally." "$LINENO" 5
22219fi
22220if test -z "${am__fastdepOBJCXX_TRUE}" && test -z "${am__fastdepOBJCXX_FALSE}"; then
22221 as_fn_error $? "conditional \"am__fastdepOBJCXX\" was never defined.
22222Usually this means the macro was only invoked conditionally." "$LINENO" 5
22223fi
a243b558
JF
22224if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22225 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
22226Usually this means the macro was only invoked conditionally." "$LINENO" 5
22227fi
22228if test -z "${CY_EXECUTE_TRUE}" && test -z "${CY_EXECUTE_FALSE}"; then
22229 as_fn_error $? "conditional \"CY_EXECUTE\" was never defined.
22230Usually this means the macro was only invoked conditionally." "$LINENO" 5
22231fi
22232if test -z "${CY_OBJECTIVEC_TRUE}" && test -z "${CY_OBJECTIVEC_FALSE}"; then
22233 as_fn_error $? "conditional \"CY_OBJECTIVEC\" was never defined.
22234Usually this means the macro was only invoked conditionally." "$LINENO" 5
22235fi
22236if test -z "${CY_MACH_TRUE}" && test -z "${CY_MACH_FALSE}"; then
22237 as_fn_error $? "conditional \"CY_MACH\" was never defined.
22238Usually this means the macro was only invoked conditionally." "$LINENO" 5
22239fi
9c60689e 22240
ee134472 22241: "${CONFIG_STATUS=./config.status}"
9c60689e
DWT
22242ac_write_fail=0
22243ac_clean_files_save=$ac_clean_files
22244ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22245{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
22246$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
22247as_write_fail=0
22248cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
22249#! $SHELL
22250# Generated by $as_me.
22251# Run this file to recreate the current configuration.
22252# Compiler output produced by configure, useful for debugging
22253# configure, is in config.log if it exists.
22254
22255debug=false
22256ac_cs_recheck=false
22257ac_cs_silent=false
22258
22259SHELL=\${CONFIG_SHELL-$SHELL}
22260export SHELL
22261_ASEOF
22262cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
22263## -------------------- ##
22264## M4sh Initialization. ##
22265## -------------------- ##
22266
22267# Be more Bourne compatible
22268DUALCASE=1; export DUALCASE # for MKS sh
22269if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22270 emulate sh
22271 NULLCMD=:
22272 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22273 # is contrary to our usage. Disable this feature.
22274 alias -g '${1+"$@"}'='"$@"'
22275 setopt NO_GLOB_SUBST
22276else
22277 case `(set -o) 2>/dev/null` in #(
22278 *posix*) :
22279 set -o posix ;; #(
22280 *) :
22281 ;;
22282esac
22283fi
22284
22285
22286as_nl='
22287'
22288export as_nl
22289# Printing a long string crashes Solaris 7 /usr/bin/printf.
22290as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
22291as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
22292as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
22293# Prefer a ksh shell builtin over an external printf program on Solaris,
22294# but without wasting forks for bash or zsh.
22295if test -z "$BASH_VERSION$ZSH_VERSION" \
22296 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
22297 as_echo='print -r --'
22298 as_echo_n='print -rn --'
22299elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
22300 as_echo='printf %s\n'
22301 as_echo_n='printf %s'
22302else
22303 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
22304 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
22305 as_echo_n='/usr/ucb/echo -n'
22306 else
22307 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
22308 as_echo_n_body='eval
22309 arg=$1;
22310 case $arg in #(
22311 *"$as_nl"*)
22312 expr "X$arg" : "X\\(.*\\)$as_nl";
22313 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
22314 esac;
22315 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
22316 '
22317 export as_echo_n_body
22318 as_echo_n='sh -c $as_echo_n_body as_echo'
22319 fi
22320 export as_echo_body
22321 as_echo='sh -c $as_echo_body as_echo'
22322fi
22323
22324# The user is always right.
22325if test "${PATH_SEPARATOR+set}" != set; then
22326 PATH_SEPARATOR=:
22327 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
22328 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
22329 PATH_SEPARATOR=';'
22330 }
22331fi
22332
22333
22334# IFS
22335# We need space, tab and new line, in precisely that order. Quoting is
22336# there to prevent editors from complaining about space-tab.
22337# (If _AS_PATH_WALK were called with IFS unset, it would disable word
22338# splitting by setting IFS to empty value.)
22339IFS=" "" $as_nl"
22340
22341# Find who we are. Look in the path if we contain no directory separator.
ee134472 22342as_myself=
9c60689e
DWT
22343case $0 in #((
22344 *[\\/]* ) as_myself=$0 ;;
22345 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22346for as_dir in $PATH
22347do
22348 IFS=$as_save_IFS
22349 test -z "$as_dir" && as_dir=.
22350 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22351 done
22352IFS=$as_save_IFS
22353
22354 ;;
22355esac
22356# We did not find ourselves, most probably we were run as `sh COMMAND'
22357# in which case we are not to be found in the path.
22358if test "x$as_myself" = x; then
22359 as_myself=$0
22360fi
22361if test ! -f "$as_myself"; then
22362 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22363 exit 1
22364fi
22365
22366# Unset variables that we do not need and which cause bugs (e.g. in
22367# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
22368# suppresses any "Segmentation fault" message there. '((' could
22369# trigger a bug in pdksh 5.2.14.
22370for as_var in BASH_ENV ENV MAIL MAILPATH
22371do eval test x\${$as_var+set} = xset \
22372 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
22373done
22374PS1='$ '
22375PS2='> '
22376PS4='+ '
22377
22378# NLS nuisances.
22379LC_ALL=C
22380export LC_ALL
22381LANGUAGE=C
22382export LANGUAGE
22383
22384# CDPATH.
22385(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22386
22387
12833ad8
JF
22388# as_fn_error STATUS ERROR [LINENO LOG_FD]
22389# ----------------------------------------
9c60689e
DWT
22390# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
22391# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12833ad8 22392# script with STATUS, using 1 if that was 0.
9c60689e
DWT
22393as_fn_error ()
22394{
12833ad8
JF
22395 as_status=$1; test $as_status -eq 0 && as_status=1
22396 if test "$4"; then
22397 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22398 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
9c60689e 22399 fi
12833ad8 22400 $as_echo "$as_me: error: $2" >&2
9c60689e
DWT
22401 as_fn_exit $as_status
22402} # as_fn_error
22403
22404
22405# as_fn_set_status STATUS
22406# -----------------------
22407# Set $? to STATUS, without forking.
22408as_fn_set_status ()
22409{
22410 return $1
22411} # as_fn_set_status
22412
22413# as_fn_exit STATUS
22414# -----------------
22415# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
22416as_fn_exit ()
22417{
22418 set +e
22419 as_fn_set_status $1
22420 exit $1
22421} # as_fn_exit
22422
22423# as_fn_unset VAR
22424# ---------------
22425# Portably unset VAR.
22426as_fn_unset ()
22427{
22428 { eval $1=; unset $1;}
22429}
22430as_unset=as_fn_unset
22431# as_fn_append VAR VALUE
22432# ----------------------
22433# Append the text in VALUE to the end of the definition contained in VAR. Take
22434# advantage of any shell optimizations that allow amortized linear growth over
22435# repeated appends, instead of the typical quadratic growth present in naive
22436# implementations.
22437if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
22438 eval 'as_fn_append ()
22439 {
22440 eval $1+=\$2
22441 }'
22442else
22443 as_fn_append ()
22444 {
22445 eval $1=\$$1\$2
22446 }
22447fi # as_fn_append
22448
22449# as_fn_arith ARG...
22450# ------------------
22451# Perform arithmetic evaluation on the ARGs, and store the result in the
22452# global $as_val. Take advantage of shells that can avoid forks. The arguments
22453# must be portable across $(()) and expr.
22454if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
22455 eval 'as_fn_arith ()
22456 {
22457 as_val=$(( $* ))
22458 }'
22459else
22460 as_fn_arith ()
22461 {
22462 as_val=`expr "$@" || test $? -eq 1`
22463 }
22464fi # as_fn_arith
22465
22466
22467if expr a : '\(a\)' >/dev/null 2>&1 &&
22468 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22469 as_expr=expr
22470else
22471 as_expr=false
22472fi
22473
22474if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22475 as_basename=basename
22476else
22477 as_basename=false
22478fi
22479
22480if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22481 as_dirname=dirname
22482else
22483 as_dirname=false
22484fi
22485
22486as_me=`$as_basename -- "$0" ||
22487$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22488 X"$0" : 'X\(//\)$' \| \
22489 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22490$as_echo X/"$0" |
22491 sed '/^.*\/\([^/][^/]*\)\/*$/{
22492 s//\1/
22493 q
22494 }
22495 /^X\/\(\/\/\)$/{
22496 s//\1/
22497 q
22498 }
22499 /^X\/\(\/\).*/{
22500 s//\1/
22501 q
22502 }
22503 s/.*/./; q'`
22504
22505# Avoid depending upon Character Ranges.
22506as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22507as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22508as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22509as_cr_digits='0123456789'
22510as_cr_alnum=$as_cr_Letters$as_cr_digits
22511
22512ECHO_C= ECHO_N= ECHO_T=
22513case `echo -n x` in #(((((
22514-n*)
22515 case `echo 'xy\c'` in
22516 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22517 xy) ECHO_C='\c';;
22518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
22519 ECHO_T=' ';;
22520 esac;;
22521*)
22522 ECHO_N='-n';;
22523esac
22524
22525rm -f conf$$ conf$$.exe conf$$.file
22526if test -d conf$$.dir; then
22527 rm -f conf$$.dir/conf$$.file
22528else
22529 rm -f conf$$.dir
22530 mkdir conf$$.dir 2>/dev/null
22531fi
22532if (echo >conf$$.file) 2>/dev/null; then
22533 if ln -s conf$$.file conf$$ 2>/dev/null; then
22534 as_ln_s='ln -s'
22535 # ... but there are two gotchas:
22536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
53ba6704 22538 # In both cases, we have to default to `cp -pR'.
9c60689e 22539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
53ba6704 22540 as_ln_s='cp -pR'
9c60689e
DWT
22541 elif ln conf$$.file conf$$ 2>/dev/null; then
22542 as_ln_s=ln
22543 else
53ba6704 22544 as_ln_s='cp -pR'
9c60689e
DWT
22545 fi
22546else
53ba6704 22547 as_ln_s='cp -pR'
9c60689e
DWT
22548fi
22549rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22550rmdir conf$$.dir 2>/dev/null
22551
22552
22553# as_fn_mkdir_p
22554# -------------
22555# Create "$as_dir" as a directory, including parents if necessary.
22556as_fn_mkdir_p ()
22557{
22558
22559 case $as_dir in #(
22560 -*) as_dir=./$as_dir;;
22561 esac
22562 test -d "$as_dir" || eval $as_mkdir_p || {
22563 as_dirs=
22564 while :; do
22565 case $as_dir in #(
22566 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22567 *) as_qdir=$as_dir;;
22568 esac
22569 as_dirs="'$as_qdir' $as_dirs"
22570 as_dir=`$as_dirname -- "$as_dir" ||
22571$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22572 X"$as_dir" : 'X\(//\)[^/]' \| \
22573 X"$as_dir" : 'X\(//\)$' \| \
22574 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22575$as_echo X"$as_dir" |
22576 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22577 s//\1/
22578 q
22579 }
22580 /^X\(\/\/\)[^/].*/{
22581 s//\1/
22582 q
22583 }
22584 /^X\(\/\/\)$/{
22585 s//\1/
22586 q
22587 }
22588 /^X\(\/\).*/{
22589 s//\1/
22590 q
22591 }
22592 s/.*/./; q'`
22593 test -d "$as_dir" && break
22594 done
22595 test -z "$as_dirs" || eval "mkdir $as_dirs"
12833ad8 22596 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
9c60689e
DWT
22597
22598
22599} # as_fn_mkdir_p
22600if mkdir -p . 2>/dev/null; then
22601 as_mkdir_p='mkdir -p "$as_dir"'
22602else
22603 test -d ./-p && rmdir ./-p
22604 as_mkdir_p=false
22605fi
22606
53ba6704
JF
22607
22608# as_fn_executable_p FILE
22609# -----------------------
22610# Test if FILE is an executable regular file.
22611as_fn_executable_p ()
22612{
22613 test -f "$1" && test -x "$1"
22614} # as_fn_executable_p
22615as_test_x='test -x'
22616as_executable_p=as_fn_executable_p
9c60689e
DWT
22617
22618# Sed expression to map a string onto a valid CPP name.
22619as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22620
22621# Sed expression to map a string onto a valid variable name.
22622as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22623
22624
22625exec 6>&1
22626## ----------------------------------- ##
22627## Main body of $CONFIG_STATUS script. ##
22628## ----------------------------------- ##
22629_ASEOF
22630test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
22631
22632cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22633# Save the log message, to keep $0 and so on meaningful, and to
22634# report actual input values of CONFIG_FILES etc. instead of their
22635# values after options handling.
22636ac_log="
22637This file was extended by Cycript $as_me 0.9, which was
53ba6704 22638generated by GNU Autoconf 2.69. Invocation command line was
9c60689e
DWT
22639
22640 CONFIG_FILES = $CONFIG_FILES
22641 CONFIG_HEADERS = $CONFIG_HEADERS
22642 CONFIG_LINKS = $CONFIG_LINKS
22643 CONFIG_COMMANDS = $CONFIG_COMMANDS
22644 $ $0 $@
22645
22646on `(hostname || uname -n) 2>/dev/null | sed 1q`
22647"
22648
22649_ACEOF
22650
22651case $ac_config_files in *"
22652"*) set x $ac_config_files; shift; ac_config_files=$*;;
22653esac
22654
22655
22656
22657cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22658# Files that config.status was made for.
22659config_files="$ac_config_files"
22660config_commands="$ac_config_commands"
22661
22662_ACEOF
22663
22664cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22665ac_cs_usage="\
22666\`$as_me' instantiates files and other configuration actions
22667from templates according to the current configuration. Unless the files
22668and actions are specified as TAGs, all are instantiated by default.
22669
22670Usage: $0 [OPTION]... [TAG]...
22671
22672 -h, --help print this help, then exit
22673 -V, --version print version number and configuration settings, then exit
22674 --config print configuration, then exit
22675 -q, --quiet, --silent
22676 do not print progress messages
22677 -d, --debug don't remove temporary files
22678 --recheck update $as_me by reconfiguring in the same conditions
22679 --file=FILE[:TEMPLATE]
22680 instantiate the configuration file FILE
22681
22682Configuration files:
22683$config_files
22684
22685Configuration commands:
22686$config_commands
22687
22688Report bugs to <saurik@saurik.com>.
22689Cycript home page: <http://www.cycript.org/>."
22690
22691_ACEOF
22692cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22693ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
22694ac_cs_version="\\
22695Cycript config.status 0.9
53ba6704 22696configured by $0, generated by GNU Autoconf 2.69,
9c60689e
DWT
22697 with options \\"\$ac_cs_config\\"
22698
53ba6704 22699Copyright (C) 2012 Free Software Foundation, Inc.
9c60689e
DWT
22700This config.status script is free software; the Free Software Foundation
22701gives unlimited permission to copy, distribute and modify it."
22702
22703ac_pwd='$ac_pwd'
22704srcdir='$srcdir'
22705INSTALL='$INSTALL'
66170b30
JF
22706MKDIR_P='$MKDIR_P'
22707AWK='$AWK'
9c60689e
DWT
22708test -n "\$AWK" || AWK=awk
22709_ACEOF
22710
22711cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22712# The default lists apply if the user does not specify any file.
22713ac_need_defaults=:
22714while test $# != 0
22715do
22716 case $1 in
12833ad8 22717 --*=?*)
9c60689e
DWT
22718 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22719 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22720 ac_shift=:
22721 ;;
12833ad8
JF
22722 --*=)
22723 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22724 ac_optarg=
22725 ac_shift=:
22726 ;;
9c60689e
DWT
22727 *)
22728 ac_option=$1
22729 ac_optarg=$2
22730 ac_shift=shift
22731 ;;
22732 esac
22733
22734 case $ac_option in
22735 # Handling of the options.
22736 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22737 ac_cs_recheck=: ;;
22738 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22739 $as_echo "$ac_cs_version"; exit ;;
22740 --config | --confi | --conf | --con | --co | --c )
22741 $as_echo "$ac_cs_config"; exit ;;
22742 --debug | --debu | --deb | --de | --d | -d )
22743 debug=: ;;
22744 --file | --fil | --fi | --f )
22745 $ac_shift
22746 case $ac_optarg in
22747 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12833ad8 22748 '') as_fn_error $? "missing file argument" ;;
9c60689e
DWT
22749 esac
22750 as_fn_append CONFIG_FILES " '$ac_optarg'"
22751 ac_need_defaults=false;;
22752 --he | --h | --help | --hel | -h )
22753 $as_echo "$ac_cs_usage"; exit ;;
22754 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22755 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22756 ac_cs_silent=: ;;
22757
22758 # This is an error.
12833ad8 22759 -*) as_fn_error $? "unrecognized option: \`$1'
9c60689e
DWT
22760Try \`$0 --help' for more information." ;;
22761
22762 *) as_fn_append ac_config_targets " $1"
22763 ac_need_defaults=false ;;
22764
22765 esac
22766 shift
22767done
22768
22769ac_configure_extra_args=
22770
22771if $ac_cs_silent; then
22772 exec 6>/dev/null
22773 ac_configure_extra_args="$ac_configure_extra_args --silent"
22774fi
22775
22776_ACEOF
22777cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22778if \$ac_cs_recheck; then
53ba6704 22779 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9c60689e
DWT
22780 shift
22781 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
22782 CONFIG_SHELL='$SHELL'
22783 export CONFIG_SHELL
22784 exec "\$@"
22785fi
22786
22787_ACEOF
22788cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22789exec 5>>config.log
22790{
22791 echo
22792 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22793## Running $as_me. ##
22794_ASBOX
22795 $as_echo "$ac_log"
22796} >&5
22797
22798_ACEOF
22799cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22800#
22801# INIT-COMMANDS
22802#
66170b30 22803AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
9c60689e
DWT
22804
22805
22806# The HP-UX ksh and POSIX shell print the target directory to stdout
22807# if CDPATH is set.
22808(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22809
22810sed_quote_subst='$sed_quote_subst'
22811double_quote_subst='$double_quote_subst'
22812delay_variable_subst='$delay_variable_subst'
ee134472
JF
22813macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
22814macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
22815enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
22816enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
22817pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
22818enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
22819SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
22820ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
53ba6704 22821PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
ee134472
JF
22822host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
22823host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
22824host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
22825build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
22826build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
22827build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
22828SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
22829Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
22830GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
22831EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
22832FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
22833LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
22834NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
22835LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
22836max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
22837ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
22838exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
22839lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
22840lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
22841lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
22842lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
22843lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
22844reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
22845reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
22846OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
22847deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
22848file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
22849file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
22850want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
22851DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
22852sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
22853AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
22854AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
22855archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
22856STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
22857RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
22858old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22859old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22860old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
22861lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
22862CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
22863CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
22864compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
22865GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
22866lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
22867lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
22868lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
22869lt_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"`'
22870nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
22871lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
22872objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
22873MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
22874lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
22875lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
22876lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
22877lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
22878lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
22879need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
22880MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
22881DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
22882NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
22883LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
22884OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
22885OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
22886libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
22887shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
22888extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22889archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
22890enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
22891export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
22892whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
22893compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
22894old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
22895old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22896archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
22897archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22898module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
22899module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22900with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
22901allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
22902no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
22903hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
ee134472
JF
22904hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
22905hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
22906hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
22907hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
22908hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
22909hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
22910inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
22911link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
22912always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
22913export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
22914exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
22915include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
22916prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
22917postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
22918file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
22919variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
22920need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
22921need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
22922version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
22923runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
22924shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
22925shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
22926libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
22927library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
22928soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
22929install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
22930postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22931postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22932finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
22933finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
22934hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
22935sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
22936sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
22937hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
22938enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
22939enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
22940enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
22941old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
22942striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
22943compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
22944predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
22945postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
22946predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
22947postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
22948compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
22949LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
22950reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
22951reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22952old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22953compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
22954GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
22955lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
22956lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
22957lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
22958lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
22959lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
22960archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
22961enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
22962export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22963whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22964compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
22965old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22966old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22967archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22968archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22969module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22970module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22971with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
22972allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
22973no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
22974hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
ee134472
JF
22975hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
22976hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
22977hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
22978hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
22979hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
22980hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
22981inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
22982link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
22983always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
22984export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22985exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
22986include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
22987prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22988postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22989file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
22990hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
22991compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
22992predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
22993postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
22994predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
22995postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
22996compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
9c60689e
DWT
22997
22998LTCC='$LTCC'
22999LTCFLAGS='$LTCFLAGS'
23000compiler='$compiler_DEFAULT'
23001
ee134472
JF
23002# A function that is used when there is no print builtin or printf.
23003func_fallback_echo ()
23004{
23005 eval 'cat <<_LTECHO_EOF
23006\$1
23007_LTECHO_EOF'
23008}
23009
9c60689e 23010# Quote evaled strings.
ee134472
JF
23011for var in SHELL \
23012ECHO \
53ba6704 23013PATH_SEPARATOR \
ee134472 23014SED \
9c60689e
DWT
23015GREP \
23016EGREP \
23017FGREP \
23018LD \
23019NM \
23020LN_S \
23021lt_SP2NL \
23022lt_NL2SP \
23023reload_flag \
23024OBJDUMP \
23025deplibs_check_method \
23026file_magic_cmd \
ee134472
JF
23027file_magic_glob \
23028want_nocaseglob \
23029DLLTOOL \
23030sharedlib_from_linklib_cmd \
9c60689e
DWT
23031AR \
23032AR_FLAGS \
ee134472 23033archiver_list_spec \
9c60689e
DWT
23034STRIP \
23035RANLIB \
23036CC \
23037CFLAGS \
23038compiler \
23039lt_cv_sys_global_symbol_pipe \
23040lt_cv_sys_global_symbol_to_cdecl \
23041lt_cv_sys_global_symbol_to_c_name_address \
23042lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
ee134472 23043nm_file_list_spec \
9c60689e 23044lt_prog_compiler_no_builtin_flag \
9c60689e 23045lt_prog_compiler_pic \
ee134472 23046lt_prog_compiler_wl \
9c60689e
DWT
23047lt_prog_compiler_static \
23048lt_cv_prog_compiler_c_o \
23049need_locks \
ee134472 23050MANIFEST_TOOL \
9c60689e
DWT
23051DSYMUTIL \
23052NMEDIT \
23053LIPO \
23054OTOOL \
23055OTOOL64 \
23056shrext_cmds \
23057export_dynamic_flag_spec \
23058whole_archive_flag_spec \
23059compiler_needs_object \
23060with_gnu_ld \
23061allow_undefined_flag \
23062no_undefined_flag \
23063hardcode_libdir_flag_spec \
9c60689e 23064hardcode_libdir_separator \
9c60689e
DWT
23065exclude_expsyms \
23066include_expsyms \
23067file_list_spec \
23068variables_saved_for_relink \
23069libname_spec \
23070library_names_spec \
23071soname_spec \
ee134472 23072install_override_mode \
9c60689e
DWT
23073finish_eval \
23074old_striplib \
23075striplib \
23076compiler_lib_search_dirs \
23077predep_objects \
23078postdep_objects \
23079predeps \
23080postdeps \
23081compiler_lib_search_path \
23082LD_CXX \
ee134472 23083reload_flag_CXX \
9c60689e
DWT
23084compiler_CXX \
23085lt_prog_compiler_no_builtin_flag_CXX \
9c60689e 23086lt_prog_compiler_pic_CXX \
ee134472 23087lt_prog_compiler_wl_CXX \
9c60689e
DWT
23088lt_prog_compiler_static_CXX \
23089lt_cv_prog_compiler_c_o_CXX \
23090export_dynamic_flag_spec_CXX \
23091whole_archive_flag_spec_CXX \
23092compiler_needs_object_CXX \
23093with_gnu_ld_CXX \
23094allow_undefined_flag_CXX \
23095no_undefined_flag_CXX \
23096hardcode_libdir_flag_spec_CXX \
9c60689e 23097hardcode_libdir_separator_CXX \
9c60689e
DWT
23098exclude_expsyms_CXX \
23099include_expsyms_CXX \
23100file_list_spec_CXX \
23101compiler_lib_search_dirs_CXX \
23102predep_objects_CXX \
23103postdep_objects_CXX \
23104predeps_CXX \
23105postdeps_CXX \
23106compiler_lib_search_path_CXX; do
ee134472 23107 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
9c60689e 23108 *[\\\\\\\`\\"\\\$]*)
ee134472 23109 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
9c60689e
DWT
23110 ;;
23111 *)
23112 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23113 ;;
23114 esac
23115done
23116
23117# Double-quote double-evaled strings.
23118for var in reload_cmds \
23119old_postinstall_cmds \
23120old_postuninstall_cmds \
23121old_archive_cmds \
23122extract_expsyms_cmds \
23123old_archive_from_new_cmds \
23124old_archive_from_expsyms_cmds \
23125archive_cmds \
23126archive_expsym_cmds \
23127module_cmds \
23128module_expsym_cmds \
23129export_symbols_cmds \
23130prelink_cmds \
ee134472 23131postlink_cmds \
9c60689e
DWT
23132postinstall_cmds \
23133postuninstall_cmds \
23134finish_cmds \
23135sys_lib_search_path_spec \
23136sys_lib_dlsearch_path_spec \
ee134472 23137reload_cmds_CXX \
9c60689e
DWT
23138old_archive_cmds_CXX \
23139old_archive_from_new_cmds_CXX \
23140old_archive_from_expsyms_cmds_CXX \
23141archive_cmds_CXX \
23142archive_expsym_cmds_CXX \
23143module_cmds_CXX \
23144module_expsym_cmds_CXX \
23145export_symbols_cmds_CXX \
ee134472
JF
23146prelink_cmds_CXX \
23147postlink_cmds_CXX; do
23148 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
9c60689e 23149 *[\\\\\\\`\\"\\\$]*)
ee134472 23150 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
9c60689e
DWT
23151 ;;
23152 *)
23153 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23154 ;;
23155 esac
23156done
23157
9c60689e
DWT
23158ac_aux_dir='$ac_aux_dir'
23159xsi_shell='$xsi_shell'
23160lt_shell_append='$lt_shell_append'
23161
23162# See if we are running on zsh, and set the options which allow our
23163# commands through without removal of \ escapes INIT.
23164if test -n "\${ZSH_VERSION+set}" ; then
23165 setopt NO_GLOB_SUBST
23166fi
23167
23168
23169 PACKAGE='$PACKAGE'
23170 VERSION='$VERSION'
23171 TIMESTAMP='$TIMESTAMP'
23172 RM='$RM'
23173 ofile='$ofile'
23174
23175
23176
23177
23178
23179
23180_ACEOF
23181
23182cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23183
23184# Handling of arguments.
23185for ac_config_target in $ac_config_targets
23186do
23187 case $ac_config_target in
66170b30 23188 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
9c60689e 23189 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
790e5246 23190 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9c60689e 23191
ee134472 23192 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
9c60689e
DWT
23193 esac
23194done
23195
23196
23197# If the user did not use the arguments to specify the items to instantiate,
23198# then the envvar interface is used. Set only those that are not.
23199# We use the long form for the default assignment because of an extremely
23200# bizarre bug on SunOS 4.1.3.
23201if $ac_need_defaults; then
23202 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23203 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23204fi
23205
23206# Have a temporary directory for convenience. Make it in the build tree
23207# simply because there is no reason against having it here, and in addition,
23208# creating and moving files from /tmp can sometimes cause problems.
23209# Hook for its removal unless debugging.
23210# Note that there is a small window in which the directory will not be cleaned:
23211# after its creation but before its name has been assigned to `$tmp'.
23212$debug ||
23213{
ee134472 23214 tmp= ac_tmp=
9c60689e 23215 trap 'exit_status=$?
ee134472
JF
23216 : "${ac_tmp:=$tmp}"
23217 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
9c60689e
DWT
23218' 0
23219 trap 'as_fn_exit 1' 1 2 13 15
23220}
23221# Create a (secure) tmp directory for tmp files.
23222
23223{
23224 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
ee134472 23225 test -d "$tmp"
9c60689e
DWT
23226} ||
23227{
23228 tmp=./conf$$-$RANDOM
23229 (umask 077 && mkdir "$tmp")
12833ad8 23230} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
ee134472 23231ac_tmp=$tmp
9c60689e
DWT
23232
23233# Set up the scripts for CONFIG_FILES section.
23234# No need to generate them if there are no CONFIG_FILES.
23235# This happens for instance with `./config.status config.h'.
23236if test -n "$CONFIG_FILES"; then
23237
23238
23239ac_cr=`echo X | tr X '\015'`
23240# On cygwin, bash can eat \r inside `` if the user requested igncr.
23241# But we know of no other shell where ac_cr would be empty at this
23242# point, so we can use a bashism as a fallback.
23243if test "x$ac_cr" = x; then
23244 eval ac_cr=\$\'\\r\'
23245fi
23246ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
23247if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12833ad8 23248 ac_cs_awk_cr='\\r'
9c60689e
DWT
23249else
23250 ac_cs_awk_cr=$ac_cr
23251fi
23252
ee134472 23253echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
9c60689e
DWT
23254_ACEOF
23255
23256
23257{
23258 echo "cat >conf$$subs.awk <<_ACEOF" &&
23259 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
23260 echo "_ACEOF"
23261} >conf$$subs.sh ||
12833ad8
JF
23262 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23263ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
9c60689e
DWT
23264ac_delim='%!_!# '
23265for ac_last_try in false false false false false :; do
23266 . ./conf$$subs.sh ||
12833ad8 23267 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9c60689e
DWT
23268
23269 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
23270 if test $ac_delim_n = $ac_delim_num; then
23271 break
23272 elif $ac_last_try; then
12833ad8 23273 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9c60689e
DWT
23274 else
23275 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23276 fi
23277done
23278rm -f conf$$subs.sh
23279
23280cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ee134472 23281cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
9c60689e
DWT
23282_ACEOF
23283sed -n '
23284h
23285s/^/S["/; s/!.*/"]=/
23286p
23287g
23288s/^[^!]*!//
23289:repl
23290t repl
23291s/'"$ac_delim"'$//
23292t delim
23293:nl
23294h
23295s/\(.\{148\}\)..*/\1/
23296t more1
23297s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
23298p
23299n
23300b repl
23301:more1
23302s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23303p
23304g
23305s/.\{148\}//
23306t nl
23307:delim
23308h
23309s/\(.\{148\}\)..*/\1/
23310t more2
23311s/["\\]/\\&/g; s/^/"/; s/$/"/
23312p
23313b
23314:more2
23315s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23316p
23317g
23318s/.\{148\}//
23319t delim
23320' <conf$$subs.awk | sed '
23321/^[^""]/{
23322 N
23323 s/\n//
23324}
23325' >>$CONFIG_STATUS || ac_write_fail=1
23326rm -f conf$$subs.awk
23327cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23328_ACAWK
ee134472 23329cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
9c60689e
DWT
23330 for (key in S) S_is_set[key] = 1
23331 FS = "\a"
23332
23333}
23334{
23335 line = $ 0
23336 nfields = split(line, field, "@")
23337 substed = 0
23338 len = length(field[1])
23339 for (i = 2; i < nfields; i++) {
23340 key = field[i]
23341 keylen = length(key)
23342 if (S_is_set[key]) {
23343 value = S[key]
23344 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
23345 len += length(value) + length(field[++i])
23346 substed = 1
23347 } else
23348 len += 1 + keylen
23349 }
23350
23351 print line
23352}
23353
23354_ACAWK
23355_ACEOF
23356cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23357if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
23358 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
23359else
23360 cat
ee134472 23361fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12833ad8 23362 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
9c60689e
DWT
23363_ACEOF
23364
12833ad8
JF
23365# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
23366# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
9c60689e
DWT
23367# trailing colons and then remove the whole line if VPATH becomes empty
23368# (actually we leave an empty line to preserve line numbers).
23369if test "x$srcdir" = x.; then
12833ad8
JF
23370 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
23371h
23372s///
23373s/^/:/
23374s/[ ]*$/:/
23375s/:\$(srcdir):/:/g
23376s/:\${srcdir}:/:/g
23377s/:@srcdir@:/:/g
23378s/^:*//
9c60689e 23379s/:*$//
12833ad8
JF
23380x
23381s/\(=[ ]*\).*/\1/
23382G
23383s/\n//
9c60689e
DWT
23384s/^[^=]*=[ ]*$//
23385}'
23386fi
23387
23388cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23389fi # test -n "$CONFIG_FILES"
23390
23391
23392eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
23393shift
23394for ac_tag
23395do
23396 case $ac_tag in
23397 :[FHLC]) ac_mode=$ac_tag; continue;;
23398 esac
23399 case $ac_mode$ac_tag in
23400 :[FHL]*:*);;
ee134472 23401 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
9c60689e
DWT
23402 :[FH]-) ac_tag=-:-;;
23403 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23404 esac
23405 ac_save_IFS=$IFS
23406 IFS=:
23407 set x $ac_tag
23408 IFS=$ac_save_IFS
23409 shift
23410 ac_file=$1
23411 shift
23412
23413 case $ac_mode in
23414 :L) ac_source=$1;;
23415 :[FH])
23416 ac_file_inputs=
23417 for ac_f
23418 do
23419 case $ac_f in
ee134472 23420 -) ac_f="$ac_tmp/stdin";;
9c60689e
DWT
23421 *) # Look for the file first in the build tree, then in the source tree
23422 # (if the path is not absolute). The absolute path cannot be DOS-style,
23423 # because $ac_f cannot contain `:'.
23424 test -f "$ac_f" ||
23425 case $ac_f in
23426 [\\/$]*) false;;
23427 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23428 esac ||
ee134472 23429 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
9c60689e
DWT
23430 esac
23431 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23432 as_fn_append ac_file_inputs " '$ac_f'"
23433 done
23434
23435 # Let's still pretend it is `configure' which instantiates (i.e., don't
23436 # use $as_me), people would be surprised to read:
23437 # /* config.h. Generated by config.status. */
23438 configure_input='Generated from '`
23439 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
23440 `' by configure.'
23441 if test x"$ac_file" != x-; then
23442 configure_input="$ac_file. $configure_input"
23443 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
23444$as_echo "$as_me: creating $ac_file" >&6;}
23445 fi
23446 # Neutralize special characters interpreted by sed in replacement strings.
23447 case $configure_input in #(
23448 *\&* | *\|* | *\\* )
23449 ac_sed_conf_input=`$as_echo "$configure_input" |
23450 sed 's/[\\\\&|]/\\\\&/g'`;; #(
23451 *) ac_sed_conf_input=$configure_input;;
23452 esac
23453
23454 case $ac_tag in
ee134472
JF
23455 *:-:* | *:-) cat >"$ac_tmp/stdin" \
23456 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
9c60689e
DWT
23457 esac
23458 ;;
23459 esac
23460
23461 ac_dir=`$as_dirname -- "$ac_file" ||
23462$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23463 X"$ac_file" : 'X\(//\)[^/]' \| \
23464 X"$ac_file" : 'X\(//\)$' \| \
23465 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23466$as_echo X"$ac_file" |
23467 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23468 s//\1/
23469 q
23470 }
23471 /^X\(\/\/\)[^/].*/{
23472 s//\1/
23473 q
23474 }
23475 /^X\(\/\/\)$/{
23476 s//\1/
23477 q
23478 }
23479 /^X\(\/\).*/{
23480 s//\1/
23481 q
23482 }
23483 s/.*/./; q'`
23484 as_dir="$ac_dir"; as_fn_mkdir_p
23485 ac_builddir=.
23486
23487case "$ac_dir" in
23488.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23489*)
23490 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
23491 # A ".." for each directory in $ac_dir_suffix.
23492 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23493 case $ac_top_builddir_sub in
23494 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23495 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23496 esac ;;
23497esac
23498ac_abs_top_builddir=$ac_pwd
23499ac_abs_builddir=$ac_pwd$ac_dir_suffix
23500# for backward compatibility:
23501ac_top_builddir=$ac_top_build_prefix
35fa52c0 23502
9c60689e
DWT
23503case $srcdir in
23504 .) # We are building in place.
23505 ac_srcdir=.
23506 ac_top_srcdir=$ac_top_builddir_sub
23507 ac_abs_top_srcdir=$ac_pwd ;;
23508 [\\/]* | ?:[\\/]* ) # Absolute name.
23509 ac_srcdir=$srcdir$ac_dir_suffix;
23510 ac_top_srcdir=$srcdir
23511 ac_abs_top_srcdir=$srcdir ;;
23512 *) # Relative name.
23513 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23514 ac_top_srcdir=$ac_top_build_prefix$srcdir
23515 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23516esac
23517ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35fa52c0
DWT
23518
23519
9c60689e
DWT
23520 case $ac_mode in
23521 :F)
23522 #
23523 # CONFIG_FILE
23524 #
35fa52c0 23525
9c60689e
DWT
23526 case $INSTALL in
23527 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23528 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23529 esac
66170b30
JF
23530 ac_MKDIR_P=$MKDIR_P
23531 case $MKDIR_P in
23532 [\\/$]* | ?:[\\/]* ) ;;
23533 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
23534 esac
9c60689e 23535_ACEOF
35fa52c0 23536
9c60689e
DWT
23537cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23538# If the template does not know about datarootdir, expand it.
23539# FIXME: This hack should be removed a few years after 2.60.
23540ac_datarootdir_hack=; ac_datarootdir_seen=
23541ac_sed_dataroot='
23542/datarootdir/ {
23543 p
23544 q
23545}
23546/@datadir@/p
23547/@docdir@/p
23548/@infodir@/p
23549/@localedir@/p
23550/@mandir@/p'
23551case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23552*datarootdir*) ac_datarootdir_seen=yes;;
23553*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23554 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23555$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23556_ACEOF
23557cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23558 ac_datarootdir_hack='
23559 s&@datadir@&$datadir&g
23560 s&@docdir@&$docdir&g
23561 s&@infodir@&$infodir&g
23562 s&@localedir@&$localedir&g
23563 s&@mandir@&$mandir&g
23564 s&\\\${datarootdir}&$datarootdir&g' ;;
23565esac
23566_ACEOF
35fa52c0 23567
9c60689e
DWT
23568# Neutralize VPATH when `$srcdir' = `.'.
23569# Shell code in configure.ac might set extrasub.
23570# FIXME: do we really want to maintain this feature?
23571cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23572ac_sed_extra="$ac_vpsub
23573$extrasub
23574_ACEOF
23575cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23576:t
23577/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23578s|@configure_input@|$ac_sed_conf_input|;t t
23579s&@top_builddir@&$ac_top_builddir_sub&;t t
23580s&@top_build_prefix@&$ac_top_build_prefix&;t t
23581s&@srcdir@&$ac_srcdir&;t t
23582s&@abs_srcdir@&$ac_abs_srcdir&;t t
23583s&@top_srcdir@&$ac_top_srcdir&;t t
23584s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23585s&@builddir@&$ac_builddir&;t t
23586s&@abs_builddir@&$ac_abs_builddir&;t t
23587s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23588s&@INSTALL@&$ac_INSTALL&;t t
66170b30 23589s&@MKDIR_P@&$ac_MKDIR_P&;t t
9c60689e
DWT
23590$ac_datarootdir_hack
23591"
ee134472
JF
23592eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
23593 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9c60689e
DWT
23594
23595test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
ee134472
JF
23596 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
23597 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
23598 "$ac_tmp/out"`; test -z "$ac_out"; } &&
9c60689e 23599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12833ad8 23600which seems to be undefined. Please make sure it is defined" >&5
9c60689e 23601$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12833ad8 23602which seems to be undefined. Please make sure it is defined" >&2;}
9c60689e 23603
ee134472 23604 rm -f "$ac_tmp/stdin"
9c60689e 23605 case $ac_file in
ee134472
JF
23606 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
23607 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
9c60689e 23608 esac \
12833ad8 23609 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9c60689e 23610 ;;
35fa52c0 23611
35fa52c0 23612
9c60689e
DWT
23613 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
23614$as_echo "$as_me: executing $ac_file commands" >&6;}
23615 ;;
23616 esac
35fa52c0 23617
35fa52c0 23618
9c60689e 23619 case $ac_file$ac_mode in
66170b30
JF
23620 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
23621 # Older Autoconf quotes --file arguments for eval, but not when files
23622 # are listed without --file. Let's play safe and only enable the eval
23623 # if we detect the quoting.
23624 case $CONFIG_FILES in
23625 *\'*) eval set x "$CONFIG_FILES" ;;
23626 *) set x $CONFIG_FILES ;;
23627 esac
23628 shift
23629 for mf
23630 do
23631 # Strip MF so we end up with the name of the file.
23632 mf=`echo "$mf" | sed -e 's/:.*$//'`
23633 # Check whether this is an Automake generated Makefile or not.
23634 # We used to match only the files named 'Makefile.in', but
23635 # some people rename them; so instead we look at the file content.
23636 # Grep'ing the first line is not enough: some people post-process
23637 # each Makefile.in and add a new line on top of each file to say so.
23638 # Grep'ing the whole file is not good either: AIX grep has a line
23639 # limit of 2048, but all sed's we know have understand at least 4000.
23640 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
23641 dirpart=`$as_dirname -- "$mf" ||
23642$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23643 X"$mf" : 'X\(//\)[^/]' \| \
23644 X"$mf" : 'X\(//\)$' \| \
23645 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23646$as_echo X"$mf" |
23647 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23648 s//\1/
23649 q
23650 }
23651 /^X\(\/\/\)[^/].*/{
23652 s//\1/
23653 q
23654 }
23655 /^X\(\/\/\)$/{
23656 s//\1/
23657 q
23658 }
23659 /^X\(\/\).*/{
23660 s//\1/
23661 q
23662 }
23663 s/.*/./; q'`
23664 else
23665 continue
23666 fi
23667 # Extract the definition of DEPDIR, am__include, and am__quote
23668 # from the Makefile without running 'make'.
23669 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23670 test -z "$DEPDIR" && continue
23671 am__include=`sed -n 's/^am__include = //p' < "$mf"`
23672 test -z "am__include" && continue
23673 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23674 # Find all dependency output files, they are included files with
23675 # $(DEPDIR) in their names. We invoke sed twice because it is the
23676 # simplest approach to changing $(DEPDIR) to its actual value in the
23677 # expansion.
23678 for file in `sed -n "
23679 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23680 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
23681 # Make sure the directory exists.
23682 test -f "$dirpart/$file" && continue
23683 fdir=`$as_dirname -- "$file" ||
23684$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23685 X"$file" : 'X\(//\)[^/]' \| \
23686 X"$file" : 'X\(//\)$' \| \
23687 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23688$as_echo X"$file" |
23689 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23690 s//\1/
23691 q
23692 }
23693 /^X\(\/\/\)[^/].*/{
23694 s//\1/
23695 q
23696 }
23697 /^X\(\/\/\)$/{
23698 s//\1/
23699 q
23700 }
23701 /^X\(\/\).*/{
23702 s//\1/
23703 q
23704 }
23705 s/.*/./; q'`
23706 as_dir=$dirpart/$fdir; as_fn_mkdir_p
23707 # echo "creating $dirpart/$file"
23708 echo '# dummy' > "$dirpart/$file"
23709 done
23710 done
23711}
23712 ;;
9c60689e
DWT
23713 "libtool":C)
23714
23715 # See if we are running on zsh, and set the options which allow our
23716 # commands through without removal of \ escapes.
23717 if test -n "${ZSH_VERSION+set}" ; then
23718 setopt NO_GLOB_SUBST
35fa52c0 23719 fi
35fa52c0 23720
9c60689e
DWT
23721 cfgfile="${ofile}T"
23722 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
23723 $RM "$cfgfile"
35fa52c0 23724
9c60689e
DWT
23725 cat <<_LT_EOF >> "$cfgfile"
23726#! $SHELL
35fa52c0 23727
9c60689e
DWT
23728# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
23729# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
23730# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23731# NOTE: Changes made to this file will be lost: look at ltmain.sh.
23732#
23733# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
53ba6704
JF
23734# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
23735# Foundation, Inc.
9c60689e
DWT
23736# Written by Gordon Matzigkeit, 1996
23737#
23738# This file is part of GNU Libtool.
23739#
23740# GNU Libtool is free software; you can redistribute it and/or
23741# modify it under the terms of the GNU General Public License as
23742# published by the Free Software Foundation; either version 2 of
23743# the License, or (at your option) any later version.
23744#
23745# As a special exception to the GNU General Public License,
23746# if you distribute this file as part of a program or library that
23747# is built using GNU Libtool, you may include this file under the
23748# same distribution terms that you use for the rest of that program.
23749#
23750# GNU Libtool is distributed in the hope that it will be useful,
23751# but WITHOUT ANY WARRANTY; without even the implied warranty of
23752# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23753# GNU General Public License for more details.
23754#
23755# You should have received a copy of the GNU General Public License
23756# along with GNU Libtool; see the file COPYING. If not, a copy
23757# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
23758# obtained by writing to the Free Software Foundation, Inc.,
23759# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
35fa52c0 23760
35fa52c0 23761
9c60689e
DWT
23762# The names of the tagged configurations supported by this script.
23763available_tags="CXX "
35fa52c0 23764
9c60689e 23765# ### BEGIN LIBTOOL CONFIG
35fa52c0 23766
9c60689e
DWT
23767# Which release of libtool.m4 was used?
23768macro_version=$macro_version
23769macro_revision=$macro_revision
35fa52c0 23770
9c60689e
DWT
23771# Whether or not to build static libraries.
23772build_old_libs=$enable_static
35fa52c0 23773
549f29b5
DWT
23774# Whether or not to build shared libraries.
23775build_libtool_libs=$enable_shared
23776
9c60689e
DWT
23777# What type of objects to build.
23778pic_mode=$pic_mode
35fa52c0 23779
9c60689e
DWT
23780# Whether or not to optimize for fast installation.
23781fast_install=$enable_fast_install
35fa52c0 23782
ee134472
JF
23783# Shell to use when invoking shell scripts.
23784SHELL=$lt_SHELL
23785
23786# An echo program that protects backslashes.
23787ECHO=$lt_ECHO
23788
53ba6704
JF
23789# The PATH separator for the build system.
23790PATH_SEPARATOR=$lt_PATH_SEPARATOR
23791
9c60689e
DWT
23792# The host system.
23793host_alias=$host_alias
23794host=$host
23795host_os=$host_os
35fa52c0 23796
9c60689e
DWT
23797# The build system.
23798build_alias=$build_alias
23799build=$build
23800build_os=$build_os
23801
23802# A sed program that does not truncate output.
23803SED=$lt_SED
23804
23805# Sed that helps us avoid accidentally triggering echo(1) options like -n.
23806Xsed="\$SED -e 1s/^X//"
23807
23808# A grep program that handles long lines.
23809GREP=$lt_GREP
23810
23811# An ERE matcher.
23812EGREP=$lt_EGREP
23813
23814# A literal string matcher.
23815FGREP=$lt_FGREP
23816
23817# A BSD- or MS-compatible name lister.
23818NM=$lt_NM
23819
23820# Whether we need soft or hard links.
23821LN_S=$lt_LN_S
23822
23823# What is the maximum length of a command?
23824max_cmd_len=$max_cmd_len
23825
23826# Object file suffix (normally "o").
23827objext=$ac_objext
23828
23829# Executable file suffix (normally "").
23830exeext=$exeext
23831
23832# whether the shell understands "unset".
23833lt_unset=$lt_unset
23834
23835# turn spaces into newlines.
23836SP2NL=$lt_lt_SP2NL
23837
23838# turn newlines into spaces.
23839NL2SP=$lt_lt_NL2SP
23840
ee134472
JF
23841# convert \$build file names to \$host format.
23842to_host_file_cmd=$lt_cv_to_host_file_cmd
23843
23844# convert \$build files to toolchain format.
23845to_tool_file_cmd=$lt_cv_to_tool_file_cmd
9c60689e
DWT
23846
23847# An object symbol dumper.
23848OBJDUMP=$lt_OBJDUMP
23849
23850# Method to check whether dependent libraries are shared objects.
23851deplibs_check_method=$lt_deplibs_check_method
23852
ee134472 23853# Command to use when deplibs_check_method = "file_magic".
9c60689e
DWT
23854file_magic_cmd=$lt_file_magic_cmd
23855
ee134472
JF
23856# How to find potential files when deplibs_check_method = "file_magic".
23857file_magic_glob=$lt_file_magic_glob
23858
23859# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
23860want_nocaseglob=$lt_want_nocaseglob
23861
23862# DLL creation program.
23863DLLTOOL=$lt_DLLTOOL
23864
23865# Command to associate shared and link libraries.
23866sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
23867
9c60689e
DWT
23868# The archiver.
23869AR=$lt_AR
ee134472
JF
23870
23871# Flags to create an archive.
9c60689e
DWT
23872AR_FLAGS=$lt_AR_FLAGS
23873
ee134472
JF
23874# How to feed a file listing to the archiver.
23875archiver_list_spec=$lt_archiver_list_spec
23876
9c60689e
DWT
23877# A symbol stripping program.
23878STRIP=$lt_STRIP
23879
23880# Commands used to install an old-style archive.
23881RANLIB=$lt_RANLIB
23882old_postinstall_cmds=$lt_old_postinstall_cmds
23883old_postuninstall_cmds=$lt_old_postuninstall_cmds
23884
ee134472
JF
23885# Whether to use a lock for old archive extraction.
23886lock_old_archive_extraction=$lock_old_archive_extraction
23887
9c60689e
DWT
23888# A C compiler.
23889LTCC=$lt_CC
23890
23891# LTCC compiler flags.
23892LTCFLAGS=$lt_CFLAGS
23893
23894# Take the output of nm and produce a listing of raw symbols and C names.
23895global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23896
23897# Transform the output of nm in a proper C declaration.
23898global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23899
23900# Transform the output of nm in a C name address pair.
23901global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23902
23903# Transform the output of nm in a C name address pair when lib prefix is needed.
23904global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
23905
ee134472
JF
23906# Specify filename containing input files for \$NM.
23907nm_file_list_spec=$lt_nm_file_list_spec
9c60689e 23908
ee134472
JF
23909# The root where to search for dependent libraries,and in which our libraries should be installed.
23910lt_sysroot=$lt_sysroot
9c60689e 23911
ee134472
JF
23912# The name of the directory that contains temporary libtool files.
23913objdir=$objdir
9c60689e
DWT
23914
23915# Used to examine libraries when file_magic_cmd begins with "file".
23916MAGIC_CMD=$MAGIC_CMD
23917
23918# Must we lock files when doing compilation?
23919need_locks=$lt_need_locks
23920
ee134472
JF
23921# Manifest tool.
23922MANIFEST_TOOL=$lt_MANIFEST_TOOL
23923
9c60689e
DWT
23924# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
23925DSYMUTIL=$lt_DSYMUTIL
23926
23927# Tool to change global to local symbols on Mac OS X.
23928NMEDIT=$lt_NMEDIT
23929
23930# Tool to manipulate fat objects and archives on Mac OS X.
23931LIPO=$lt_LIPO
23932
23933# ldd/readelf like tool for Mach-O binaries on Mac OS X.
23934OTOOL=$lt_OTOOL
23935
23936# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
23937OTOOL64=$lt_OTOOL64
23938
23939# Old archive suffix (normally "a").
23940libext=$libext
23941
23942# Shared library suffix (normally ".so").
23943shrext_cmds=$lt_shrext_cmds
35fa52c0 23944
9c60689e
DWT
23945# The commands to extract the exported symbol list from a shared archive.
23946extract_expsyms_cmds=$lt_extract_expsyms_cmds
35fa52c0 23947
9c60689e
DWT
23948# Variables whose values should be saved in libtool wrapper scripts and
23949# restored at link time.
23950variables_saved_for_relink=$lt_variables_saved_for_relink
35fa52c0 23951
9c60689e
DWT
23952# Do we need the "lib" prefix for modules?
23953need_lib_prefix=$need_lib_prefix
35fa52c0 23954
9c60689e
DWT
23955# Do we need a version for libraries?
23956need_version=$need_version
35fa52c0 23957
9c60689e
DWT
23958# Library versioning type.
23959version_type=$version_type
35fa52c0 23960
9c60689e
DWT
23961# Shared library runtime path variable.
23962runpath_var=$runpath_var
35fa52c0 23963
9c60689e
DWT
23964# Shared library path variable.
23965shlibpath_var=$shlibpath_var
35fa52c0 23966
9c60689e
DWT
23967# Is shlibpath searched before the hard-coded library search path?
23968shlibpath_overrides_runpath=$shlibpath_overrides_runpath
35fa52c0 23969
9c60689e
DWT
23970# Format of library name prefix.
23971libname_spec=$lt_libname_spec
35fa52c0 23972
9c60689e
DWT
23973# List of archive names. First name is the real one, the rest are links.
23974# The last name is the one that the linker finds with -lNAME
23975library_names_spec=$lt_library_names_spec
dbadc56a 23976
9c60689e
DWT
23977# The coded name of the library, if different from the real name.
23978soname_spec=$lt_soname_spec
dbadc56a 23979
ee134472
JF
23980# Permission mode override for installation of shared libraries.
23981install_override_mode=$lt_install_override_mode
23982
9c60689e
DWT
23983# Command to use after installation of a shared archive.
23984postinstall_cmds=$lt_postinstall_cmds
35fa52c0 23985
9c60689e
DWT
23986# Command to use after uninstallation of a shared archive.
23987postuninstall_cmds=$lt_postuninstall_cmds
dbadc56a 23988
9c60689e
DWT
23989# Commands used to finish a libtool library installation in a directory.
23990finish_cmds=$lt_finish_cmds
35fa52c0 23991
9c60689e
DWT
23992# As "finish_cmds", except a single script fragment to be evaled but
23993# not shown.
23994finish_eval=$lt_finish_eval
35fa52c0 23995
9c60689e
DWT
23996# Whether we should hardcode library paths into libraries.
23997hardcode_into_libs=$hardcode_into_libs
dbadc56a 23998
9c60689e
DWT
23999# Compile-time system search path for libraries.
24000sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
35fa52c0 24001
9c60689e
DWT
24002# Run-time system search path for libraries.
24003sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
dbadc56a 24004
9c60689e
DWT
24005# Whether dlopen is supported.
24006dlopen_support=$enable_dlopen
dbadc56a 24007
9c60689e
DWT
24008# Whether dlopen of programs is supported.
24009dlopen_self=$enable_dlopen_self
35fa52c0 24010
9c60689e
DWT
24011# Whether dlopen of statically linked programs is supported.
24012dlopen_self_static=$enable_dlopen_self_static
35fa52c0 24013
9c60689e
DWT
24014# Commands to strip libraries.
24015old_striplib=$lt_old_striplib
24016striplib=$lt_striplib
35fa52c0 24017
35fa52c0 24018
9c60689e
DWT
24019# The linker used to build libraries.
24020LD=$lt_LD
dbadc56a 24021
ee134472
JF
24022# How to create reloadable object files.
24023reload_flag=$lt_reload_flag
24024reload_cmds=$lt_reload_cmds
24025
9c60689e
DWT
24026# Commands used to build an old-style archive.
24027old_archive_cmds=$lt_old_archive_cmds
dbadc56a 24028
9c60689e
DWT
24029# A language specific compiler.
24030CC=$lt_compiler
35fa52c0 24031
9c60689e
DWT
24032# Is the compiler the GNU compiler?
24033with_gcc=$GCC
dbadc56a 24034
9c60689e
DWT
24035# Compiler flag to turn off builtin functions.
24036no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
dbadc56a 24037
9c60689e
DWT
24038# Additional compiler flags for building library objects.
24039pic_flag=$lt_lt_prog_compiler_pic
35fa52c0 24040
ee134472
JF
24041# How to pass a linker flag through the compiler.
24042wl=$lt_lt_prog_compiler_wl
24043
9c60689e
DWT
24044# Compiler flag to prevent dynamic linking.
24045link_static_flag=$lt_lt_prog_compiler_static
35fa52c0 24046
9c60689e
DWT
24047# Does compiler simultaneously support -c and -o options?
24048compiler_c_o=$lt_lt_cv_prog_compiler_c_o
dbadc56a 24049
9c60689e
DWT
24050# Whether or not to add -lc for building shared libraries.
24051build_libtool_need_lc=$archive_cmds_need_lc
35fa52c0 24052
9c60689e
DWT
24053# Whether or not to disallow shared libs when runtime libs are static.
24054allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
35fa52c0 24055
9c60689e
DWT
24056# Compiler flag to allow reflexive dlopens.
24057export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
35fa52c0 24058
9c60689e
DWT
24059# Compiler flag to generate shared objects directly from archives.
24060whole_archive_flag_spec=$lt_whole_archive_flag_spec
dbadc56a 24061
9c60689e
DWT
24062# Whether the compiler copes with passing no objects directly.
24063compiler_needs_object=$lt_compiler_needs_object
dbadc56a 24064
9c60689e
DWT
24065# Create an old-style archive from a shared archive.
24066old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
dbadc56a 24067
9c60689e
DWT
24068# Create a temporary old-style archive to link instead of a shared archive.
24069old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
dbadc56a 24070
9c60689e
DWT
24071# Commands used to build a shared archive.
24072archive_cmds=$lt_archive_cmds
24073archive_expsym_cmds=$lt_archive_expsym_cmds
35fa52c0 24074
9c60689e
DWT
24075# Commands used to build a loadable module if different from building
24076# a shared archive.
24077module_cmds=$lt_module_cmds
24078module_expsym_cmds=$lt_module_expsym_cmds
dbadc56a 24079
9c60689e
DWT
24080# Whether we are building with GNU ld or not.
24081with_gnu_ld=$lt_with_gnu_ld
6b66678a 24082
9c60689e
DWT
24083# Flag that allows shared libraries with undefined symbols to be built.
24084allow_undefined_flag=$lt_allow_undefined_flag
6b66678a 24085
9c60689e
DWT
24086# Flag that enforces no undefined symbols.
24087no_undefined_flag=$lt_no_undefined_flag
6b66678a 24088
9c60689e
DWT
24089# Flag to hardcode \$libdir into a binary during linking.
24090# This must work even if \$libdir does not exist
24091hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
6b66678a 24092
9c60689e
DWT
24093# Whether we need a single "-rpath" flag with a separated argument.
24094hardcode_libdir_separator=$lt_hardcode_libdir_separator
6b66678a 24095
9c60689e
DWT
24096# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
24097# DIR into the resulting binary.
24098hardcode_direct=$hardcode_direct
6b66678a 24099
9c60689e
DWT
24100# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
24101# DIR into the resulting binary and the resulting library dependency is
24102# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
24103# library is relocated.
24104hardcode_direct_absolute=$hardcode_direct_absolute
6b66678a 24105
9c60689e
DWT
24106# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
24107# into the resulting binary.
24108hardcode_minus_L=$hardcode_minus_L
6b66678a 24109
9c60689e
DWT
24110# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
24111# into the resulting binary.
24112hardcode_shlibpath_var=$hardcode_shlibpath_var
6b66678a 24113
9c60689e
DWT
24114# Set to "yes" if building a shared library automatically hardcodes DIR
24115# into the library and all subsequent libraries and executables linked
24116# against it.
24117hardcode_automatic=$hardcode_automatic
6b66678a 24118
9c60689e
DWT
24119# Set to yes if linker adds runtime paths of dependent libraries
24120# to runtime path list.
24121inherit_rpath=$inherit_rpath
6b66678a 24122
9c60689e
DWT
24123# Whether libtool must link a program against all its dependency libraries.
24124link_all_deplibs=$link_all_deplibs
24125
9c60689e
DWT
24126# Set to "yes" if exported symbols are required.
24127always_export_symbols=$always_export_symbols
6b66678a 24128
9c60689e
DWT
24129# The commands to list exported symbols.
24130export_symbols_cmds=$lt_export_symbols_cmds
6b66678a 24131
9c60689e
DWT
24132# Symbols that should not be listed in the preloaded symbols.
24133exclude_expsyms=$lt_exclude_expsyms
6b66678a 24134
9c60689e
DWT
24135# Symbols that must always be exported.
24136include_expsyms=$lt_include_expsyms
6b66678a 24137
9c60689e
DWT
24138# Commands necessary for linking programs (against libraries) with templates.
24139prelink_cmds=$lt_prelink_cmds
6b66678a 24140
ee134472
JF
24141# Commands necessary for finishing linking programs.
24142postlink_cmds=$lt_postlink_cmds
24143
9c60689e
DWT
24144# Specify filename containing input files.
24145file_list_spec=$lt_file_list_spec
6b66678a 24146
9c60689e
DWT
24147# How to hardcode a shared library path into an executable.
24148hardcode_action=$hardcode_action
24149
24150# The directories searched by this compiler when creating a shared library.
24151compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
24152
24153# Dependencies to place before and after the objects being linked to
24154# create a shared library.
24155predep_objects=$lt_predep_objects
24156postdep_objects=$lt_postdep_objects
24157predeps=$lt_predeps
24158postdeps=$lt_postdeps
24159
24160# The library search path used internally by the compiler when linking
24161# a shared library.
24162compiler_lib_search_path=$lt_compiler_lib_search_path
24163
24164# ### END LIBTOOL CONFIG
24165
24166_LT_EOF
24167
24168 case $host_os in
24169 aix3*)
24170 cat <<\_LT_EOF >> "$cfgfile"
24171# AIX sometimes has problems with the GCC collect2 program. For some
24172# reason, if we set the COLLECT_NAMES environment variable, the problems
24173# vanish in a puff of smoke.
24174if test "X${COLLECT_NAMES+set}" != Xset; then
24175 COLLECT_NAMES=
24176 export COLLECT_NAMES
6b66678a 24177fi
9c60689e
DWT
24178_LT_EOF
24179 ;;
24180 esac
6b66678a
DWT
24181
24182
9c60689e 24183ltmain="$ac_aux_dir/ltmain.sh"
6b66678a 24184
9c60689e
DWT
24185
24186 # We use sed instead of cat because bash on DJGPP gets confused if
24187 # if finds mixed CR/LF and LF-only lines. Since sed operates in
24188 # text mode, it properly converts lines to CR/LF. This bash problem
24189 # is reportedly fixed, but why not run on old versions too?
ee134472
JF
24190 sed '$q' "$ltmain" >> "$cfgfile" \
24191 || (rm -f "$cfgfile"; exit 1)
24192
24193 if test x"$xsi_shell" = xyes; then
24194 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
24195func_dirname ()\
24196{\
24197\ case ${1} in\
24198\ */*) func_dirname_result="${1%/*}${2}" ;;\
24199\ * ) func_dirname_result="${3}" ;;\
24200\ esac\
24201} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
24202 && mv -f "$cfgfile.tmp" "$cfgfile" \
24203 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24204test 0 -eq $? || _lt_function_replace_fail=:
24205
24206
24207 sed -e '/^func_basename ()$/,/^} # func_basename /c\
24208func_basename ()\
24209{\
24210\ func_basename_result="${1##*/}"\
24211} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
24212 && mv -f "$cfgfile.tmp" "$cfgfile" \
24213 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24214test 0 -eq $? || _lt_function_replace_fail=:
24215
24216
24217 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
24218func_dirname_and_basename ()\
24219{\
24220\ case ${1} in\
24221\ */*) func_dirname_result="${1%/*}${2}" ;;\
24222\ * ) func_dirname_result="${3}" ;;\
24223\ esac\
24224\ func_basename_result="${1##*/}"\
24225} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
24226 && mv -f "$cfgfile.tmp" "$cfgfile" \
24227 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24228test 0 -eq $? || _lt_function_replace_fail=:
24229
24230
24231 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
24232func_stripname ()\
24233{\
24234\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
24235\ # positional parameters, so assign one to ordinary parameter first.\
24236\ func_stripname_result=${3}\
24237\ func_stripname_result=${func_stripname_result#"${1}"}\
24238\ func_stripname_result=${func_stripname_result%"${2}"}\
24239} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
24240 && mv -f "$cfgfile.tmp" "$cfgfile" \
24241 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24242test 0 -eq $? || _lt_function_replace_fail=:
24243
24244
24245 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
24246func_split_long_opt ()\
24247{\
24248\ func_split_long_opt_name=${1%%=*}\
24249\ func_split_long_opt_arg=${1#*=}\
24250} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
24251 && mv -f "$cfgfile.tmp" "$cfgfile" \
24252 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24253test 0 -eq $? || _lt_function_replace_fail=:
24254
24255
24256 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
24257func_split_short_opt ()\
24258{\
24259\ func_split_short_opt_arg=${1#??}\
24260\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
24261} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
24262 && mv -f "$cfgfile.tmp" "$cfgfile" \
24263 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24264test 0 -eq $? || _lt_function_replace_fail=:
24265
24266
24267 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
24268func_lo2o ()\
24269{\
24270\ case ${1} in\
24271\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
24272\ *) func_lo2o_result=${1} ;;\
24273\ esac\
24274} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
24275 && mv -f "$cfgfile.tmp" "$cfgfile" \
24276 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24277test 0 -eq $? || _lt_function_replace_fail=:
24278
24279
24280 sed -e '/^func_xform ()$/,/^} # func_xform /c\
24281func_xform ()\
24282{\
24283 func_xform_result=${1%.*}.lo\
24284} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
24285 && mv -f "$cfgfile.tmp" "$cfgfile" \
24286 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24287test 0 -eq $? || _lt_function_replace_fail=:
24288
24289
24290 sed -e '/^func_arith ()$/,/^} # func_arith /c\
24291func_arith ()\
24292{\
24293 func_arith_result=$(( $* ))\
24294} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
24295 && mv -f "$cfgfile.tmp" "$cfgfile" \
24296 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24297test 0 -eq $? || _lt_function_replace_fail=:
24298
24299
24300 sed -e '/^func_len ()$/,/^} # func_len /c\
24301func_len ()\
24302{\
24303 func_len_result=${#1}\
24304} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
24305 && mv -f "$cfgfile.tmp" "$cfgfile" \
24306 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24307test 0 -eq $? || _lt_function_replace_fail=:
24308
24309fi
24310
24311if test x"$lt_shell_append" = xyes; then
24312 sed -e '/^func_append ()$/,/^} # func_append /c\
24313func_append ()\
24314{\
24315 eval "${1}+=\\${2}"\
24316} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
24317 && mv -f "$cfgfile.tmp" "$cfgfile" \
24318 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24319test 0 -eq $? || _lt_function_replace_fail=:
24320
24321
24322 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
24323func_append_quoted ()\
24324{\
24325\ func_quote_for_eval "${2}"\
24326\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
24327} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
24328 && mv -f "$cfgfile.tmp" "$cfgfile" \
24329 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24330test 0 -eq $? || _lt_function_replace_fail=:
24331
24332
24333 # Save a `func_append' function call where possible by direct use of '+='
24334 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
24335 && mv -f "$cfgfile.tmp" "$cfgfile" \
24336 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24337 test 0 -eq $? || _lt_function_replace_fail=:
24338else
24339 # Save a `func_append' function call even when '+=' is not available
24340 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
24341 && mv -f "$cfgfile.tmp" "$cfgfile" \
24342 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24343 test 0 -eq $? || _lt_function_replace_fail=:
24344fi
24345
24346if test x"$_lt_function_replace_fail" = x":"; then
24347 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
24348$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
24349fi
24350
24351
24352 mv -f "$cfgfile" "$ofile" ||
9c60689e
DWT
24353 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
24354 chmod +x "$ofile"
24355
24356
24357 cat <<_LT_EOF >> "$ofile"
24358
24359# ### BEGIN LIBTOOL TAG CONFIG: CXX
24360
24361# The linker used to build libraries.
24362LD=$lt_LD_CXX
24363
ee134472
JF
24364# How to create reloadable object files.
24365reload_flag=$lt_reload_flag_CXX
24366reload_cmds=$lt_reload_cmds_CXX
24367
9c60689e
DWT
24368# Commands used to build an old-style archive.
24369old_archive_cmds=$lt_old_archive_cmds_CXX
24370
24371# A language specific compiler.
24372CC=$lt_compiler_CXX
24373
24374# Is the compiler the GNU compiler?
24375with_gcc=$GCC_CXX
24376
24377# Compiler flag to turn off builtin functions.
24378no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
6b66678a 24379
9c60689e
DWT
24380# Additional compiler flags for building library objects.
24381pic_flag=$lt_lt_prog_compiler_pic_CXX
6b66678a 24382
ee134472
JF
24383# How to pass a linker flag through the compiler.
24384wl=$lt_lt_prog_compiler_wl_CXX
24385
9c60689e
DWT
24386# Compiler flag to prevent dynamic linking.
24387link_static_flag=$lt_lt_prog_compiler_static_CXX
6b66678a 24388
9c60689e
DWT
24389# Does compiler simultaneously support -c and -o options?
24390compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
dbadc56a 24391
9c60689e
DWT
24392# Whether or not to add -lc for building shared libraries.
24393build_libtool_need_lc=$archive_cmds_need_lc_CXX
dbadc56a 24394
9c60689e
DWT
24395# Whether or not to disallow shared libs when runtime libs are static.
24396allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
35fa52c0 24397
9c60689e
DWT
24398# Compiler flag to allow reflexive dlopens.
24399export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
35fa52c0 24400
9c60689e
DWT
24401# Compiler flag to generate shared objects directly from archives.
24402whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
35fa52c0 24403
9c60689e
DWT
24404# Whether the compiler copes with passing no objects directly.
24405compiler_needs_object=$lt_compiler_needs_object_CXX
35fa52c0 24406
9c60689e
DWT
24407# Create an old-style archive from a shared archive.
24408old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
35fa52c0 24409
9c60689e
DWT
24410# Create a temporary old-style archive to link instead of a shared archive.
24411old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
35fa52c0 24412
9c60689e
DWT
24413# Commands used to build a shared archive.
24414archive_cmds=$lt_archive_cmds_CXX
24415archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
6b66678a 24416
9c60689e
DWT
24417# Commands used to build a loadable module if different from building
24418# a shared archive.
24419module_cmds=$lt_module_cmds_CXX
24420module_expsym_cmds=$lt_module_expsym_cmds_CXX
6b66678a 24421
9c60689e
DWT
24422# Whether we are building with GNU ld or not.
24423with_gnu_ld=$lt_with_gnu_ld_CXX
6b66678a 24424
9c60689e
DWT
24425# Flag that allows shared libraries with undefined symbols to be built.
24426allow_undefined_flag=$lt_allow_undefined_flag_CXX
35fa52c0 24427
9c60689e
DWT
24428# Flag that enforces no undefined symbols.
24429no_undefined_flag=$lt_no_undefined_flag_CXX
35fa52c0 24430
9c60689e
DWT
24431# Flag to hardcode \$libdir into a binary during linking.
24432# This must work even if \$libdir does not exist
24433hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
6b66678a 24434
9c60689e
DWT
24435# Whether we need a single "-rpath" flag with a separated argument.
24436hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
6b66678a 24437
9c60689e
DWT
24438# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
24439# DIR into the resulting binary.
24440hardcode_direct=$hardcode_direct_CXX
6b66678a 24441
9c60689e
DWT
24442# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
24443# DIR into the resulting binary and the resulting library dependency is
24444# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
24445# library is relocated.
24446hardcode_direct_absolute=$hardcode_direct_absolute_CXX
6b66678a 24447
9c60689e
DWT
24448# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
24449# into the resulting binary.
24450hardcode_minus_L=$hardcode_minus_L_CXX
35fa52c0 24451
9c60689e
DWT
24452# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
24453# into the resulting binary.
24454hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
35fa52c0 24455
9c60689e
DWT
24456# Set to "yes" if building a shared library automatically hardcodes DIR
24457# into the library and all subsequent libraries and executables linked
24458# against it.
24459hardcode_automatic=$hardcode_automatic_CXX
6b66678a 24460
9c60689e
DWT
24461# Set to yes if linker adds runtime paths of dependent libraries
24462# to runtime path list.
24463inherit_rpath=$inherit_rpath_CXX
6b66678a 24464
9c60689e
DWT
24465# Whether libtool must link a program against all its dependency libraries.
24466link_all_deplibs=$link_all_deplibs_CXX
6b66678a 24467
9c60689e
DWT
24468# Set to "yes" if exported symbols are required.
24469always_export_symbols=$always_export_symbols_CXX
6b66678a 24470
9c60689e
DWT
24471# The commands to list exported symbols.
24472export_symbols_cmds=$lt_export_symbols_cmds_CXX
6b66678a 24473
9c60689e
DWT
24474# Symbols that should not be listed in the preloaded symbols.
24475exclude_expsyms=$lt_exclude_expsyms_CXX
6b66678a 24476
9c60689e
DWT
24477# Symbols that must always be exported.
24478include_expsyms=$lt_include_expsyms_CXX
6b66678a 24479
9c60689e
DWT
24480# Commands necessary for linking programs (against libraries) with templates.
24481prelink_cmds=$lt_prelink_cmds_CXX
6b66678a 24482
ee134472
JF
24483# Commands necessary for finishing linking programs.
24484postlink_cmds=$lt_postlink_cmds_CXX
24485
9c60689e
DWT
24486# Specify filename containing input files.
24487file_list_spec=$lt_file_list_spec_CXX
dbadc56a 24488
9c60689e
DWT
24489# How to hardcode a shared library path into an executable.
24490hardcode_action=$hardcode_action_CXX
309b0535 24491
9c60689e
DWT
24492# The directories searched by this compiler when creating a shared library.
24493compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
309b0535 24494
9c60689e
DWT
24495# Dependencies to place before and after the objects being linked to
24496# create a shared library.
24497predep_objects=$lt_predep_objects_CXX
24498postdep_objects=$lt_postdep_objects_CXX
24499predeps=$lt_predeps_CXX
24500postdeps=$lt_postdeps_CXX
309b0535 24501
9c60689e
DWT
24502# The library search path used internally by the compiler when linking
24503# a shared library.
24504compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
24505
24506# ### END LIBTOOL TAG CONFIG: CXX
24507_LT_EOF
24508
24509 ;;
24510
24511 esac
24512done # for ac_tag
24513
24514
24515as_fn_exit 0
24516_ACEOF
24517ac_clean_files=$ac_clean_files_save
24518
24519test $ac_write_fail = 0 ||
12833ad8 24520 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
9c60689e
DWT
24521
24522
24523# configure is writing to config.log, and then calls config.status.
24524# config.status does its own redirection, appending to config.log.
24525# Unfortunately, on DOS this fails, as config.log is still kept open
24526# by configure, so config.status won't be able to write to it; its
24527# output is simply discarded. So we exec the FD to /dev/null,
24528# effectively closing config.log, so it can be properly (re)opened and
24529# appended to by config.status. When coming back to configure, we
24530# need to make the FD available again.
24531if test "$no_create" != yes; then
24532 ac_cs_success=:
24533 ac_config_status_args=
24534 test "$silent" = yes &&
24535 ac_config_status_args="$ac_config_status_args --quiet"
24536 exec 5>/dev/null
24537 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24538 exec 5>>config.log
24539 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24540 # would make configure fail if this is the last instruction.
12833ad8 24541 $ac_cs_success || as_fn_exit 1
309b0535 24542fi
9c60689e
DWT
24543if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
24544 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
24545$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
24546fi
24547