]> git.ipfire.org Git - thirdparty/gcc.git/blame - libsanitizer/configure
[libsanitizer] Fix PR55521 by switching libsanitizer from mach_override to mac interp...
[thirdparty/gcc.git] / libsanitizer / configure
CommitLineData
f35db108
WM
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
a2479b3d 3# Generated by GNU Autoconf 2.64 for package-unused version-unused.
f35db108
WM
4#
5# Report bugs to <libsanitizer>.
6#
f35db108 7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
a2479b3d 8# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
f35db108
WM
9# Foundation, Inc.
10#
f35db108
WM
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order. Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
f35db108
WM
92case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95for as_dir in $PATH
96do
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101IFS=$as_save_IFS
102
103 ;;
104esac
105# We did not find ourselves, most probably we were run as `sh COMMAND'
106# in which case we are not to be found in the path.
107if test "x$as_myself" = x; then
108 as_myself=$0
109fi
110if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
113fi
114
115# Unset variables that we do not need and which cause bugs (e.g. in
116# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117# suppresses any "Segmentation fault" message there. '((' could
118# trigger a bug in pdksh 5.2.14.
119for as_var in BASH_ENV ENV MAIL MAILPATH
120do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122done
123PS1='$ '
124PS2='> '
125PS4='+ '
126
127# NLS nuisances.
128LC_ALL=C
129export LC_ALL
130LANGUAGE=C
131export LANGUAGE
132
133# CDPATH.
134(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
149 ;;
150esac
151fi
152"
153 as_required="as_fn_return () { (exit \$1); }
154as_fn_success () { as_fn_return 0; }
155as_fn_failure () { as_fn_return 1; }
156as_fn_ret_success () { return 0; }
157as_fn_ret_failure () { return 1; }
158
159exitcode=0
160as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166else
167 exitcode=1; echo positional parameters were not saved.
168fi
169test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174
175 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
176 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
179 PATH=/empty FPATH=/empty; export PATH FPATH
180 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
181 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
182test \$(( 1 + 1 )) = 2 || exit 1"
183 if (eval "$as_required") 2>/dev/null; then :
184 as_have_required=yes
185else
186 as_have_required=no
187fi
188 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
189
190else
191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
192as_found=false
193for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
194do
195 IFS=$as_save_IFS
196 test -z "$as_dir" && as_dir=.
197 as_found=:
198 case $as_dir in #(
199 /*)
200 for as_base in sh bash ksh sh5; do
201 # Try only shells that exist, to save several forks.
202 as_shell=$as_dir/$as_base
203 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
204 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 CONFIG_SHELL=$as_shell as_have_required=yes
206 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
207 break 2
208fi
209fi
210 done;;
211 esac
212 as_found=false
213done
214$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
215 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
216 CONFIG_SHELL=$SHELL as_have_required=yes
217fi; }
218IFS=$as_save_IFS
219
220
221 if test "x$CONFIG_SHELL" != x; then :
222 # We cannot yet assume a decent shell, so we have to provide a
223 # neutralization value for shells without unset; and this also
224 # works around shells that cannot unset nonexistent variables.
f35db108
WM
225 BASH_ENV=/dev/null
226 ENV=/dev/null
227 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
228 export CONFIG_SHELL
a2479b3d 229 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
f35db108
WM
230fi
231
232 if test x$as_have_required = xno; then :
233 $as_echo "$0: This script requires a shell more modern than all"
234 $as_echo "$0: the shells that I found on your system."
235 if test x${ZSH_VERSION+set} = xset ; then
236 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
238 else
239 $as_echo "$0: Please tell bug-autoconf@gnu.org and libsanitizer about
240$0: your system, including any error possibly output before
241$0: this message. Then install a modern shell, or manually
242$0: run the script under such a shell if you do have one."
243 fi
244 exit 1
245fi
246fi
247fi
248SHELL=${CONFIG_SHELL-/bin/sh}
249export SHELL
250# Unset more variables known to interfere with behavior of common tools.
251CLICOLOR_FORCE= GREP_OPTIONS=
252unset CLICOLOR_FORCE GREP_OPTIONS
253
254## --------------------- ##
255## M4sh Shell Functions. ##
256## --------------------- ##
257# as_fn_unset VAR
258# ---------------
259# Portably unset VAR.
260as_fn_unset ()
261{
262 { eval $1=; unset $1;}
263}
264as_unset=as_fn_unset
265
266# as_fn_set_status STATUS
267# -----------------------
268# Set $? to STATUS, without forking.
269as_fn_set_status ()
270{
271 return $1
272} # as_fn_set_status
273
274# as_fn_exit STATUS
275# -----------------
276# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
277as_fn_exit ()
278{
279 set +e
280 as_fn_set_status $1
281 exit $1
282} # as_fn_exit
283
284# as_fn_mkdir_p
285# -------------
286# Create "$as_dir" as a directory, including parents if necessary.
287as_fn_mkdir_p ()
288{
289
290 case $as_dir in #(
291 -*) as_dir=./$as_dir;;
292 esac
293 test -d "$as_dir" || eval $as_mkdir_p || {
294 as_dirs=
295 while :; do
296 case $as_dir in #(
297 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
298 *) as_qdir=$as_dir;;
299 esac
300 as_dirs="'$as_qdir' $as_dirs"
301 as_dir=`$as_dirname -- "$as_dir" ||
302$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
303 X"$as_dir" : 'X\(//\)[^/]' \| \
304 X"$as_dir" : 'X\(//\)$' \| \
305 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
306$as_echo X"$as_dir" |
307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
308 s//\1/
309 q
310 }
311 /^X\(\/\/\)[^/].*/{
312 s//\1/
313 q
314 }
315 /^X\(\/\/\)$/{
316 s//\1/
317 q
318 }
319 /^X\(\/\).*/{
320 s//\1/
321 q
322 }
323 s/.*/./; q'`
324 test -d "$as_dir" && break
325 done
326 test -z "$as_dirs" || eval "mkdir $as_dirs"
a2479b3d 327 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
f35db108
WM
328
329
330} # as_fn_mkdir_p
331# as_fn_append VAR VALUE
332# ----------------------
333# Append the text in VALUE to the end of the definition contained in VAR. Take
334# advantage of any shell optimizations that allow amortized linear growth over
335# repeated appends, instead of the typical quadratic growth present in naive
336# implementations.
337if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
338 eval 'as_fn_append ()
339 {
340 eval $1+=\$2
341 }'
342else
343 as_fn_append ()
344 {
345 eval $1=\$$1\$2
346 }
347fi # as_fn_append
348
349# as_fn_arith ARG...
350# ------------------
351# Perform arithmetic evaluation on the ARGs, and store the result in the
352# global $as_val. Take advantage of shells that can avoid forks. The arguments
353# must be portable across $(()) and expr.
354if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
355 eval 'as_fn_arith ()
356 {
357 as_val=$(( $* ))
358 }'
359else
360 as_fn_arith ()
361 {
362 as_val=`expr "$@" || test $? -eq 1`
363 }
364fi # as_fn_arith
365
366
a2479b3d
L
367# as_fn_error ERROR [LINENO LOG_FD]
368# ---------------------------------
f35db108
WM
369# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
370# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
a2479b3d 371# script with status $?, using 1 if that was 0.
f35db108
WM
372as_fn_error ()
373{
a2479b3d
L
374 as_status=$?; test $as_status -eq 0 && as_status=1
375 if test "$3"; then
376 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
377 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
f35db108 378 fi
a2479b3d 379 $as_echo "$as_me: error: $1" >&2
f35db108
WM
380 as_fn_exit $as_status
381} # as_fn_error
382
383if expr a : '\(a\)' >/dev/null 2>&1 &&
384 test "X`expr 00001 : '.*\(...\)'`" = X001; then
385 as_expr=expr
386else
387 as_expr=false
388fi
389
390if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
391 as_basename=basename
392else
393 as_basename=false
394fi
395
396if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
397 as_dirname=dirname
398else
399 as_dirname=false
400fi
401
402as_me=`$as_basename -- "$0" ||
403$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
404 X"$0" : 'X\(//\)$' \| \
405 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
406$as_echo X/"$0" |
407 sed '/^.*\/\([^/][^/]*\)\/*$/{
408 s//\1/
409 q
410 }
411 /^X\/\(\/\/\)$/{
412 s//\1/
413 q
414 }
415 /^X\/\(\/\).*/{
416 s//\1/
417 q
418 }
419 s/.*/./; q'`
420
421# Avoid depending upon Character Ranges.
422as_cr_letters='abcdefghijklmnopqrstuvwxyz'
423as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
424as_cr_Letters=$as_cr_letters$as_cr_LETTERS
425as_cr_digits='0123456789'
426as_cr_alnum=$as_cr_Letters$as_cr_digits
427
428
429 as_lineno_1=$LINENO as_lineno_1a=$LINENO
430 as_lineno_2=$LINENO as_lineno_2a=$LINENO
431 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
432 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
433 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
434 sed -n '
435 p
436 /[$]LINENO/=
437 ' <$as_myself |
438 sed '
439 s/[$]LINENO.*/&-/
440 t lineno
441 b
442 :lineno
443 N
444 :loop
445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
446 t loop
447 s/-\n.*//
448 ' >$as_me.lineno &&
449 chmod +x "$as_me.lineno" ||
450 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
451
452 # Don't try to exec as it changes $[0], causing all sort of problems
453 # (the dirname of $[0] is not the place where we might find the
454 # original and so on. Autoconf is especially sensitive to this).
455 . "./$as_me.lineno"
456 # Exit status is that of the last command.
457 exit
458}
459
460ECHO_C= ECHO_N= ECHO_T=
461case `echo -n x` in #(((((
462-n*)
463 case `echo 'xy\c'` in
464 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
465 xy) ECHO_C='\c';;
466 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
467 ECHO_T=' ';;
468 esac;;
469*)
470 ECHO_N='-n';;
471esac
472
473rm -f conf$$ conf$$.exe conf$$.file
474if test -d conf$$.dir; then
475 rm -f conf$$.dir/conf$$.file
476else
477 rm -f conf$$.dir
478 mkdir conf$$.dir 2>/dev/null
479fi
480if (echo >conf$$.file) 2>/dev/null; then
481 if ln -s conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s='ln -s'
483 # ... but there are two gotchas:
484 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
485 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
486 # In both cases, we have to default to `cp -p'.
487 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
488 as_ln_s='cp -p'
489 elif ln conf$$.file conf$$ 2>/dev/null; then
490 as_ln_s=ln
491 else
492 as_ln_s='cp -p'
493 fi
494else
495 as_ln_s='cp -p'
496fi
497rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
498rmdir conf$$.dir 2>/dev/null
499
500if mkdir -p . 2>/dev/null; then
501 as_mkdir_p='mkdir -p "$as_dir"'
502else
503 test -d ./-p && rmdir ./-p
504 as_mkdir_p=false
505fi
506
507if test -x / >/dev/null 2>&1; then
508 as_test_x='test -x'
509else
510 if ls -dL / >/dev/null 2>&1; then
511 as_ls_L_option=L
512 else
513 as_ls_L_option=
514 fi
515 as_test_x='
516 eval sh -c '\''
517 if test -d "$1"; then
518 test -d "$1/.";
519 else
520 case $1 in #(
521 -*)set "./$1";;
522 esac;
523 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
524 ???[sx]*):;;*)false;;esac;fi
525 '\'' sh
526 '
527fi
528as_executable_p=$as_test_x
529
530# Sed expression to map a string onto a valid CPP name.
531as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
532
533# Sed expression to map a string onto a valid variable name.
534as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
535
536SHELL=${CONFIG_SHELL-/bin/sh}
537
538
a2479b3d 539exec 7<&0 </dev/null 6>&1
f35db108
WM
540
541# Name of the host.
a2479b3d 542# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
f35db108
WM
543# so uname gets run too.
544ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
545
546#
547# Initializations.
548#
549ac_default_prefix=/usr/local
550ac_clean_files=
551ac_config_libobj_dir=.
552LIBOBJS=
553cross_compiling=no
554subdirs=
555MFLAGS=
556MAKEFLAGS=
557
558# Identity of this package.
559PACKAGE_NAME='package-unused'
560PACKAGE_TARNAME='package-unused'
561PACKAGE_VERSION='version-unused'
562PACKAGE_STRING='package-unused version-unused'
563PACKAGE_BUGREPORT='libsanitizer'
564PACKAGE_URL=''
565
566ac_unique_file="include/sanitizer/common_interface_defs.h"
567# Factoring default headers for most tests.
568ac_includes_default="\
569#include <stdio.h>
570#ifdef HAVE_SYS_TYPES_H
571# include <sys/types.h>
572#endif
573#ifdef HAVE_SYS_STAT_H
574# include <sys/stat.h>
575#endif
576#ifdef STDC_HEADERS
577# include <stdlib.h>
578# include <stddef.h>
579#else
580# ifdef HAVE_STDLIB_H
581# include <stdlib.h>
582# endif
583#endif
584#ifdef HAVE_STRING_H
585# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
586# include <memory.h>
587# endif
588# include <string.h>
589#endif
590#ifdef HAVE_STRINGS_H
591# include <strings.h>
592#endif
593#ifdef HAVE_INTTYPES_H
594# include <inttypes.h>
595#endif
596#ifdef HAVE_STDINT_H
597# include <stdint.h>
598#endif
599#ifdef HAVE_UNISTD_H
600# include <unistd.h>
601#endif"
602
603ac_subst_vars='am__EXEEXT_FALSE
604am__EXEEXT_TRUE
605LTLIBOBJS
606LIBOBJS
8c4d267c
KS
607USING_MAC_INTERPOSE_FALSE
608USING_MAC_INTERPOSE_TRUE
64548f3b
JJ
609TSAN_SUPPORTED_FALSE
610TSAN_SUPPORTED_TRUE
f35db108
WM
611enable_static
612enable_shared
613CXXCPP
614CPP
615OTOOL64
616OTOOL
617LIPO
618NMEDIT
619DSYMUTIL
f35db108 620RANLIB
f35db108 621AR
f35db108
WM
622OBJDUMP
623LN_S
624NM
625ac_ct_DUMPBIN
626DUMPBIN
627LD
628FGREP
629EGREP
630GREP
631SED
f35db108
WM
632LIBTOOL
633am__fastdepCCAS_FALSE
634am__fastdepCCAS_TRUE
635CCASDEPMODE
636CCASFLAGS
637CCAS
638am__fastdepCXX_FALSE
639am__fastdepCXX_TRUE
640CXXDEPMODE
641ac_ct_CXX
642CXXFLAGS
643CXX
644am__fastdepCC_FALSE
645am__fastdepCC_TRUE
646CCDEPMODE
f35db108
WM
647AMDEPBACKSLASH
648AMDEP_FALSE
649AMDEP_TRUE
650am__quote
651am__include
652DEPDIR
653OBJEXT
654EXEEXT
655ac_ct_CC
656CPPFLAGS
657LDFLAGS
658CFLAGS
659CC
2a6346c4
L
660toolexeclibdir
661toolexecdir
2b723e21
TT
662MAINT
663MAINTAINER_MODE_FALSE
664MAINTAINER_MODE_TRUE
2a6346c4 665multi_basedir
f35db108
WM
666am__untar
667am__tar
668AMTAR
669am__leading_dot
670SET_MAKE
671AWK
672mkdir_p
673MKDIR_P
674INSTALL_STRIP_PROGRAM
675STRIP
676install_sh
677MAKEINFO
678AUTOHEADER
679AUTOMAKE
680AUTOCONF
681ACLOCAL
682VERSION
683PACKAGE
684CYGPATH_W
685am__isrc
686INSTALL_DATA
687INSTALL_SCRIPT
688INSTALL_PROGRAM
2a6346c4
L
689target_os
690target_vendor
691target_cpu
692target
693host_os
694host_vendor
695host_cpu
696host
697build_os
698build_vendor
699build_cpu
700build
f35db108
WM
701target_alias
702host_alias
703build_alias
704LIBS
705ECHO_T
706ECHO_N
707ECHO_C
708DEFS
709mandir
710localedir
711libdir
712psdir
713pdfdir
714dvidir
715htmldir
716infodir
717docdir
718oldincludedir
719includedir
720localstatedir
721sharedstatedir
722sysconfdir
723datadir
724datarootdir
725libexecdir
726sbindir
727bindir
728program_transform_name
729prefix
730exec_prefix
731PACKAGE_URL
732PACKAGE_BUGREPORT
733PACKAGE_STRING
734PACKAGE_VERSION
735PACKAGE_TARNAME
736PACKAGE_NAME
737PATH_SEPARATOR
738SHELL'
739ac_subst_files=''
740ac_user_opts='
741enable_option_checking
2a6346c4
L
742enable_version_specific_runtime_libs
743enable_multilib
2b723e21 744enable_maintainer_mode
f35db108
WM
745enable_dependency_tracking
746enable_shared
747enable_static
748with_pic
749enable_fast_install
750with_gnu_ld
f35db108
WM
751enable_libtool_lock
752'
753 ac_precious_vars='build_alias
754host_alias
755target_alias
756CC
757CFLAGS
758LDFLAGS
759LIBS
760CPPFLAGS
761CXX
762CXXFLAGS
763CCC
764CCAS
765CCASFLAGS
766CPP
767CXXCPP'
768
769
770# Initialize some variables set by options.
771ac_init_help=
772ac_init_version=false
773ac_unrecognized_opts=
774ac_unrecognized_sep=
775# The variables have the same names as the options, with
776# dashes changed to underlines.
777cache_file=/dev/null
778exec_prefix=NONE
779no_create=
780no_recursion=
781prefix=NONE
782program_prefix=NONE
783program_suffix=NONE
784program_transform_name=s,x,x,
785silent=
786site=
787srcdir=
788verbose=
789x_includes=NONE
790x_libraries=NONE
791
792# Installation directory options.
793# These are left unexpanded so users can "make install exec_prefix=/foo"
794# and all the variables that are supposed to be based on exec_prefix
795# by default will actually change.
796# Use braces instead of parens because sh, perl, etc. also accept them.
797# (The list follows the same order as the GNU Coding Standards.)
798bindir='${exec_prefix}/bin'
799sbindir='${exec_prefix}/sbin'
800libexecdir='${exec_prefix}/libexec'
801datarootdir='${prefix}/share'
802datadir='${datarootdir}'
803sysconfdir='${prefix}/etc'
804sharedstatedir='${prefix}/com'
805localstatedir='${prefix}/var'
806includedir='${prefix}/include'
807oldincludedir='/usr/include'
808docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
809infodir='${datarootdir}/info'
810htmldir='${docdir}'
811dvidir='${docdir}'
812pdfdir='${docdir}'
813psdir='${docdir}'
814libdir='${exec_prefix}/lib'
815localedir='${datarootdir}/locale'
816mandir='${datarootdir}/man'
817
818ac_prev=
819ac_dashdash=
820for ac_option
821do
822 # If the previous option needs an argument, assign it.
823 if test -n "$ac_prev"; then
824 eval $ac_prev=\$ac_option
825 ac_prev=
826 continue
827 fi
828
829 case $ac_option in
a2479b3d
L
830 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
831 *) ac_optarg=yes ;;
f35db108
WM
832 esac
833
834 # Accept the important Cygnus configure options, so we can diagnose typos.
835
836 case $ac_dashdash$ac_option in
837 --)
838 ac_dashdash=yes ;;
839
840 -bindir | --bindir | --bindi | --bind | --bin | --bi)
841 ac_prev=bindir ;;
842 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
843 bindir=$ac_optarg ;;
844
845 -build | --build | --buil | --bui | --bu)
846 ac_prev=build_alias ;;
847 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
848 build_alias=$ac_optarg ;;
849
850 -cache-file | --cache-file | --cache-fil | --cache-fi \
851 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
852 ac_prev=cache_file ;;
853 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
854 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
855 cache_file=$ac_optarg ;;
856
857 --config-cache | -C)
858 cache_file=config.cache ;;
859
860 -datadir | --datadir | --datadi | --datad)
861 ac_prev=datadir ;;
862 -datadir=* | --datadir=* | --datadi=* | --datad=*)
863 datadir=$ac_optarg ;;
864
865 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
866 | --dataroo | --dataro | --datar)
867 ac_prev=datarootdir ;;
868 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
869 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
870 datarootdir=$ac_optarg ;;
871
872 -disable-* | --disable-*)
873 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
874 # Reject names that are not valid shell variable names.
875 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
a2479b3d 876 as_fn_error "invalid feature name: $ac_useropt"
f35db108
WM
877 ac_useropt_orig=$ac_useropt
878 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
879 case $ac_user_opts in
880 *"
881"enable_$ac_useropt"
882"*) ;;
883 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
884 ac_unrecognized_sep=', ';;
885 esac
886 eval enable_$ac_useropt=no ;;
887
888 -docdir | --docdir | --docdi | --doc | --do)
889 ac_prev=docdir ;;
890 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
891 docdir=$ac_optarg ;;
892
893 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
894 ac_prev=dvidir ;;
895 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
896 dvidir=$ac_optarg ;;
897
898 -enable-* | --enable-*)
899 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
900 # Reject names that are not valid shell variable names.
901 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
a2479b3d 902 as_fn_error "invalid feature name: $ac_useropt"
f35db108
WM
903 ac_useropt_orig=$ac_useropt
904 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
905 case $ac_user_opts in
906 *"
907"enable_$ac_useropt"
908"*) ;;
909 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
910 ac_unrecognized_sep=', ';;
911 esac
912 eval enable_$ac_useropt=\$ac_optarg ;;
913
914 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
915 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
916 | --exec | --exe | --ex)
917 ac_prev=exec_prefix ;;
918 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
919 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
920 | --exec=* | --exe=* | --ex=*)
921 exec_prefix=$ac_optarg ;;
922
923 -gas | --gas | --ga | --g)
924 # Obsolete; use --with-gas.
925 with_gas=yes ;;
926
927 -help | --help | --hel | --he | -h)
928 ac_init_help=long ;;
929 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
930 ac_init_help=recursive ;;
931 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
932 ac_init_help=short ;;
933
934 -host | --host | --hos | --ho)
935 ac_prev=host_alias ;;
936 -host=* | --host=* | --hos=* | --ho=*)
937 host_alias=$ac_optarg ;;
938
939 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
940 ac_prev=htmldir ;;
941 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
942 | --ht=*)
943 htmldir=$ac_optarg ;;
944
945 -includedir | --includedir | --includedi | --included | --include \
946 | --includ | --inclu | --incl | --inc)
947 ac_prev=includedir ;;
948 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
949 | --includ=* | --inclu=* | --incl=* | --inc=*)
950 includedir=$ac_optarg ;;
951
952 -infodir | --infodir | --infodi | --infod | --info | --inf)
953 ac_prev=infodir ;;
954 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
955 infodir=$ac_optarg ;;
956
957 -libdir | --libdir | --libdi | --libd)
958 ac_prev=libdir ;;
959 -libdir=* | --libdir=* | --libdi=* | --libd=*)
960 libdir=$ac_optarg ;;
961
962 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
963 | --libexe | --libex | --libe)
964 ac_prev=libexecdir ;;
965 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
966 | --libexe=* | --libex=* | --libe=*)
967 libexecdir=$ac_optarg ;;
968
969 -localedir | --localedir | --localedi | --localed | --locale)
970 ac_prev=localedir ;;
971 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
972 localedir=$ac_optarg ;;
973
974 -localstatedir | --localstatedir | --localstatedi | --localstated \
975 | --localstate | --localstat | --localsta | --localst | --locals)
976 ac_prev=localstatedir ;;
977 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
978 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
979 localstatedir=$ac_optarg ;;
980
981 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
982 ac_prev=mandir ;;
983 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
984 mandir=$ac_optarg ;;
985
986 -nfp | --nfp | --nf)
987 # Obsolete; use --without-fp.
988 with_fp=no ;;
989
990 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
991 | --no-cr | --no-c | -n)
992 no_create=yes ;;
993
994 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
995 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
996 no_recursion=yes ;;
997
998 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
999 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1000 | --oldin | --oldi | --old | --ol | --o)
1001 ac_prev=oldincludedir ;;
1002 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1003 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1004 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1005 oldincludedir=$ac_optarg ;;
1006
1007 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1008 ac_prev=prefix ;;
1009 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1010 prefix=$ac_optarg ;;
1011
1012 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1013 | --program-pre | --program-pr | --program-p)
1014 ac_prev=program_prefix ;;
1015 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1016 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1017 program_prefix=$ac_optarg ;;
1018
1019 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1020 | --program-suf | --program-su | --program-s)
1021 ac_prev=program_suffix ;;
1022 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1023 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1024 program_suffix=$ac_optarg ;;
1025
1026 -program-transform-name | --program-transform-name \
1027 | --program-transform-nam | --program-transform-na \
1028 | --program-transform-n | --program-transform- \
1029 | --program-transform | --program-transfor \
1030 | --program-transfo | --program-transf \
1031 | --program-trans | --program-tran \
1032 | --progr-tra | --program-tr | --program-t)
1033 ac_prev=program_transform_name ;;
1034 -program-transform-name=* | --program-transform-name=* \
1035 | --program-transform-nam=* | --program-transform-na=* \
1036 | --program-transform-n=* | --program-transform-=* \
1037 | --program-transform=* | --program-transfor=* \
1038 | --program-transfo=* | --program-transf=* \
1039 | --program-trans=* | --program-tran=* \
1040 | --progr-tra=* | --program-tr=* | --program-t=*)
1041 program_transform_name=$ac_optarg ;;
1042
1043 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1044 ac_prev=pdfdir ;;
1045 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1046 pdfdir=$ac_optarg ;;
1047
1048 -psdir | --psdir | --psdi | --psd | --ps)
1049 ac_prev=psdir ;;
1050 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1051 psdir=$ac_optarg ;;
1052
1053 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1054 | -silent | --silent | --silen | --sile | --sil)
1055 silent=yes ;;
1056
1057 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1058 ac_prev=sbindir ;;
1059 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1060 | --sbi=* | --sb=*)
1061 sbindir=$ac_optarg ;;
1062
1063 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1064 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1065 | --sharedst | --shareds | --shared | --share | --shar \
1066 | --sha | --sh)
1067 ac_prev=sharedstatedir ;;
1068 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1069 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1070 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1071 | --sha=* | --sh=*)
1072 sharedstatedir=$ac_optarg ;;
1073
1074 -site | --site | --sit)
1075 ac_prev=site ;;
1076 -site=* | --site=* | --sit=*)
1077 site=$ac_optarg ;;
1078
1079 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1080 ac_prev=srcdir ;;
1081 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1082 srcdir=$ac_optarg ;;
1083
1084 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1085 | --syscon | --sysco | --sysc | --sys | --sy)
1086 ac_prev=sysconfdir ;;
1087 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1088 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1089 sysconfdir=$ac_optarg ;;
1090
1091 -target | --target | --targe | --targ | --tar | --ta | --t)
1092 ac_prev=target_alias ;;
1093 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1094 target_alias=$ac_optarg ;;
1095
1096 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1097 verbose=yes ;;
1098
1099 -version | --version | --versio | --versi | --vers | -V)
1100 ac_init_version=: ;;
1101
1102 -with-* | --with-*)
1103 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1104 # Reject names that are not valid shell variable names.
1105 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
a2479b3d 1106 as_fn_error "invalid package name: $ac_useropt"
f35db108
WM
1107 ac_useropt_orig=$ac_useropt
1108 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1109 case $ac_user_opts in
1110 *"
1111"with_$ac_useropt"
1112"*) ;;
1113 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1114 ac_unrecognized_sep=', ';;
1115 esac
1116 eval with_$ac_useropt=\$ac_optarg ;;
1117
1118 -without-* | --without-*)
1119 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1120 # Reject names that are not valid shell variable names.
1121 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
a2479b3d 1122 as_fn_error "invalid package name: $ac_useropt"
f35db108
WM
1123 ac_useropt_orig=$ac_useropt
1124 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1125 case $ac_user_opts in
1126 *"
1127"with_$ac_useropt"
1128"*) ;;
1129 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1130 ac_unrecognized_sep=', ';;
1131 esac
1132 eval with_$ac_useropt=no ;;
1133
1134 --x)
1135 # Obsolete; use --with-x.
1136 with_x=yes ;;
1137
1138 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1139 | --x-incl | --x-inc | --x-in | --x-i)
1140 ac_prev=x_includes ;;
1141 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1142 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1143 x_includes=$ac_optarg ;;
1144
1145 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1146 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1147 ac_prev=x_libraries ;;
1148 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1149 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1150 x_libraries=$ac_optarg ;;
1151
a2479b3d
L
1152 -*) as_fn_error "unrecognized option: \`$ac_option'
1153Try \`$0 --help' for more information."
f35db108
WM
1154 ;;
1155
1156 *=*)
1157 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1158 # Reject names that are not valid shell variable names.
1159 case $ac_envvar in #(
1160 '' | [0-9]* | *[!_$as_cr_alnum]* )
a2479b3d 1161 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
f35db108
WM
1162 esac
1163 eval $ac_envvar=\$ac_optarg
1164 export $ac_envvar ;;
1165
1166 *)
1167 # FIXME: should be removed in autoconf 3.0.
1168 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1169 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1170 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
a2479b3d 1171 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
f35db108
WM
1172 ;;
1173
1174 esac
1175done
1176
1177if test -n "$ac_prev"; then
1178 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
a2479b3d 1179 as_fn_error "missing argument to $ac_option"
f35db108
WM
1180fi
1181
1182if test -n "$ac_unrecognized_opts"; then
1183 case $enable_option_checking in
1184 no) ;;
a2479b3d 1185 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
f35db108
WM
1186 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1187 esac
1188fi
1189
1190# Check all directory arguments for consistency.
1191for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1192 datadir sysconfdir sharedstatedir localstatedir includedir \
1193 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1194 libdir localedir mandir
1195do
1196 eval ac_val=\$$ac_var
1197 # Remove trailing slashes.
1198 case $ac_val in
1199 */ )
1200 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1201 eval $ac_var=\$ac_val;;
1202 esac
1203 # Be sure to have absolute directory names.
1204 case $ac_val in
1205 [\\/$]* | ?:[\\/]* ) continue;;
1206 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1207 esac
a2479b3d 1208 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
f35db108
WM
1209done
1210
1211# There might be people who depend on the old broken behavior: `$host'
1212# used to hold the argument of --host etc.
1213# FIXME: To remove some day.
1214build=$build_alias
1215host=$host_alias
1216target=$target_alias
1217
1218# FIXME: To remove some day.
1219if test "x$host_alias" != x; then
1220 if test "x$build_alias" = x; then
1221 cross_compiling=maybe
a2479b3d
L
1222 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1223 If a cross compiler is detected then cross compile mode will be used." >&2
f35db108
WM
1224 elif test "x$build_alias" != "x$host_alias"; then
1225 cross_compiling=yes
1226 fi
1227fi
1228
1229ac_tool_prefix=
1230test -n "$host_alias" && ac_tool_prefix=$host_alias-
1231
1232test "$silent" = yes && exec 6>/dev/null
1233
1234
1235ac_pwd=`pwd` && test -n "$ac_pwd" &&
1236ac_ls_di=`ls -di .` &&
1237ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
a2479b3d 1238 as_fn_error "working directory cannot be determined"
f35db108 1239test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
a2479b3d 1240 as_fn_error "pwd does not report name of working directory"
f35db108
WM
1241
1242
1243# Find the source files, if location was not specified.
1244if test -z "$srcdir"; then
1245 ac_srcdir_defaulted=yes
1246 # Try the directory containing this script, then the parent directory.
1247 ac_confdir=`$as_dirname -- "$as_myself" ||
1248$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1249 X"$as_myself" : 'X\(//\)[^/]' \| \
1250 X"$as_myself" : 'X\(//\)$' \| \
1251 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1252$as_echo X"$as_myself" |
1253 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1254 s//\1/
1255 q
1256 }
1257 /^X\(\/\/\)[^/].*/{
1258 s//\1/
1259 q
1260 }
1261 /^X\(\/\/\)$/{
1262 s//\1/
1263 q
1264 }
1265 /^X\(\/\).*/{
1266 s//\1/
1267 q
1268 }
1269 s/.*/./; q'`
1270 srcdir=$ac_confdir
1271 if test ! -r "$srcdir/$ac_unique_file"; then
1272 srcdir=..
1273 fi
1274else
1275 ac_srcdir_defaulted=no
1276fi
1277if test ! -r "$srcdir/$ac_unique_file"; then
1278 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
a2479b3d 1279 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
f35db108
WM
1280fi
1281ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1282ac_abs_confdir=`(
a2479b3d 1283 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
f35db108
WM
1284 pwd)`
1285# When building in place, set srcdir=.
1286if test "$ac_abs_confdir" = "$ac_pwd"; then
1287 srcdir=.
1288fi
1289# Remove unnecessary trailing slashes from srcdir.
1290# Double slashes in file names in object file debugging info
1291# mess up M-x gdb in Emacs.
1292case $srcdir in
1293*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1294esac
1295for ac_var in $ac_precious_vars; do
1296 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1297 eval ac_env_${ac_var}_value=\$${ac_var}
1298 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1299 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1300done
1301
1302#
1303# Report the --help message.
1304#
1305if test "$ac_init_help" = "long"; then
1306 # Omit some internal or obsolete options to make the list less imposing.
1307 # This message is too long to be a string in the A/UX 3.1 sh.
1308 cat <<_ACEOF
1309\`configure' configures package-unused version-unused to adapt to many kinds of systems.
1310
1311Usage: $0 [OPTION]... [VAR=VALUE]...
1312
1313To assign environment variables (e.g., CC, CFLAGS...), specify them as
1314VAR=VALUE. See below for descriptions of some of the useful variables.
1315
1316Defaults for the options are specified in brackets.
1317
1318Configuration:
1319 -h, --help display this help and exit
1320 --help=short display options specific to this package
1321 --help=recursive display the short help of all the included packages
1322 -V, --version display version information and exit
a2479b3d 1323 -q, --quiet, --silent do not print \`checking...' messages
f35db108
WM
1324 --cache-file=FILE cache test results in FILE [disabled]
1325 -C, --config-cache alias for \`--cache-file=config.cache'
1326 -n, --no-create do not create output files
1327 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1328
1329Installation directories:
1330 --prefix=PREFIX install architecture-independent files in PREFIX
1331 [$ac_default_prefix]
1332 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1333 [PREFIX]
1334
1335By default, \`make install' will install all the files in
1336\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1337an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1338for instance \`--prefix=\$HOME'.
1339
1340For better control, use the options below.
1341
1342Fine tuning of the installation directories:
1343 --bindir=DIR user executables [EPREFIX/bin]
1344 --sbindir=DIR system admin executables [EPREFIX/sbin]
1345 --libexecdir=DIR program executables [EPREFIX/libexec]
1346 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1347 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1348 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1349 --libdir=DIR object code libraries [EPREFIX/lib]
1350 --includedir=DIR C header files [PREFIX/include]
1351 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1352 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1353 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1354 --infodir=DIR info documentation [DATAROOTDIR/info]
1355 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1356 --mandir=DIR man documentation [DATAROOTDIR/man]
1357 --docdir=DIR documentation root [DATAROOTDIR/doc/package-unused]
1358 --htmldir=DIR html documentation [DOCDIR]
1359 --dvidir=DIR dvi documentation [DOCDIR]
1360 --pdfdir=DIR pdf documentation [DOCDIR]
1361 --psdir=DIR ps documentation [DOCDIR]
1362_ACEOF
1363
1364 cat <<\_ACEOF
1365
1366Program names:
1367 --program-prefix=PREFIX prepend PREFIX to installed program names
1368 --program-suffix=SUFFIX append SUFFIX to installed program names
1369 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1370
1371System types:
1372 --build=BUILD configure for building on BUILD [guessed]
1373 --host=HOST cross-compile to build programs to run on HOST [BUILD]
2a6346c4 1374 --target=TARGET configure for building compilers for TARGET [HOST]
f35db108
WM
1375_ACEOF
1376fi
1377
1378if test -n "$ac_init_help"; then
1379 case $ac_init_help in
1380 short | recursive ) echo "Configuration of package-unused version-unused:";;
1381 esac
1382 cat <<\_ACEOF
1383
1384Optional Features:
1385 --disable-option-checking ignore unrecognized --enable/--with options
1386 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1387 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
2a6346c4
L
1388 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
1389 --enable-multilib build many library versions (default)
2b723e21
TT
1390 --enable-maintainer-mode enable make rules and dependencies not useful
1391 (and sometimes confusing) to the casual installer
f35db108
WM
1392 --disable-dependency-tracking speeds up one-time build
1393 --enable-dependency-tracking do not reject slow dependency extractors
1394 --enable-shared[=PKGS] build shared libraries [default=yes]
1395 --enable-static[=PKGS] build static libraries [default=yes]
1396 --enable-fast-install[=PKGS]
1397 optimize for fast installation [default=yes]
1398 --disable-libtool-lock avoid locking (might break parallel builds)
1399
1400Optional Packages:
1401 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1402 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
a2479b3d 1403 --with-pic try to use only PIC/non-PIC objects [default=use
f35db108
WM
1404 both]
1405 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
f35db108
WM
1406
1407Some influential environment variables:
1408 CC C compiler command
1409 CFLAGS C compiler flags
1410 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1411 nonstandard directory <lib dir>
1412 LIBS libraries to pass to the linker, e.g. -l<library>
a2479b3d 1413 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
f35db108
WM
1414 you have headers in a nonstandard directory <include dir>
1415 CXX C++ compiler command
1416 CXXFLAGS C++ compiler flags
1417 CCAS assembler compiler command (defaults to CC)
1418 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1419 CPP C preprocessor
1420 CXXCPP C++ preprocessor
1421
1422Use these variables to override the choices made by `configure' or to help
1423it to find libraries and programs with nonstandard names/locations.
1424
1425Report bugs to <libsanitizer>.
1426_ACEOF
1427ac_status=$?
1428fi
1429
1430if test "$ac_init_help" = "recursive"; then
1431 # If there are subdirs, report their specific --help.
1432 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1433 test -d "$ac_dir" ||
1434 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1435 continue
1436 ac_builddir=.
1437
1438case "$ac_dir" in
1439.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1440*)
1441 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1442 # A ".." for each directory in $ac_dir_suffix.
1443 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1444 case $ac_top_builddir_sub in
1445 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1446 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1447 esac ;;
1448esac
1449ac_abs_top_builddir=$ac_pwd
1450ac_abs_builddir=$ac_pwd$ac_dir_suffix
1451# for backward compatibility:
1452ac_top_builddir=$ac_top_build_prefix
1453
1454case $srcdir in
1455 .) # We are building in place.
1456 ac_srcdir=.
1457 ac_top_srcdir=$ac_top_builddir_sub
1458 ac_abs_top_srcdir=$ac_pwd ;;
1459 [\\/]* | ?:[\\/]* ) # Absolute name.
1460 ac_srcdir=$srcdir$ac_dir_suffix;
1461 ac_top_srcdir=$srcdir
1462 ac_abs_top_srcdir=$srcdir ;;
1463 *) # Relative name.
1464 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1465 ac_top_srcdir=$ac_top_build_prefix$srcdir
1466 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1467esac
1468ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1469
1470 cd "$ac_dir" || { ac_status=$?; continue; }
1471 # Check for guested configure.
1472 if test -f "$ac_srcdir/configure.gnu"; then
1473 echo &&
1474 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1475 elif test -f "$ac_srcdir/configure"; then
1476 echo &&
1477 $SHELL "$ac_srcdir/configure" --help=recursive
1478 else
1479 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1480 fi || ac_status=$?
1481 cd "$ac_pwd" || { ac_status=$?; break; }
1482 done
1483fi
1484
1485test -n "$ac_init_help" && exit $ac_status
1486if $ac_init_version; then
1487 cat <<\_ACEOF
1488package-unused configure version-unused
a2479b3d 1489generated by GNU Autoconf 2.64
f35db108 1490
a2479b3d 1491Copyright (C) 2009 Free Software Foundation, Inc.
f35db108
WM
1492This configure script is free software; the Free Software Foundation
1493gives unlimited permission to copy, distribute and modify it.
1494_ACEOF
1495 exit
1496fi
1497
1498## ------------------------ ##
1499## Autoconf initialization. ##
1500## ------------------------ ##
1501
1502# ac_fn_c_try_compile LINENO
1503# --------------------------
1504# Try to compile conftest.$ac_ext, and return whether this succeeded.
1505ac_fn_c_try_compile ()
1506{
1507 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1508 rm -f conftest.$ac_objext
1509 if { { ac_try="$ac_compile"
1510case "(($ac_try" in
1511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1512 *) ac_try_echo=$ac_try;;
1513esac
1514eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1515$as_echo "$ac_try_echo"; } >&5
1516 (eval "$ac_compile") 2>conftest.err
1517 ac_status=$?
1518 if test -s conftest.err; then
1519 grep -v '^ *+' conftest.err >conftest.er1
1520 cat conftest.er1 >&5
1521 mv -f conftest.er1 conftest.err
1522 fi
1523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1524 test $ac_status = 0; } && {
1525 test -z "$ac_c_werror_flag" ||
1526 test ! -s conftest.err
1527 } && test -s conftest.$ac_objext; then :
1528 ac_retval=0
1529else
1530 $as_echo "$as_me: failed program was:" >&5
1531sed 's/^/| /' conftest.$ac_ext >&5
1532
1533 ac_retval=1
1534fi
a2479b3d
L
1535 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1536 return $ac_retval
f35db108
WM
1537
1538} # ac_fn_c_try_compile
1539
1540# ac_fn_cxx_try_compile LINENO
1541# ----------------------------
1542# Try to compile conftest.$ac_ext, and return whether this succeeded.
1543ac_fn_cxx_try_compile ()
1544{
1545 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1546 rm -f conftest.$ac_objext
1547 if { { ac_try="$ac_compile"
1548case "(($ac_try" in
1549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1550 *) ac_try_echo=$ac_try;;
1551esac
1552eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1553$as_echo "$ac_try_echo"; } >&5
1554 (eval "$ac_compile") 2>conftest.err
1555 ac_status=$?
1556 if test -s conftest.err; then
1557 grep -v '^ *+' conftest.err >conftest.er1
1558 cat conftest.er1 >&5
1559 mv -f conftest.er1 conftest.err
1560 fi
1561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1562 test $ac_status = 0; } && {
1563 test -z "$ac_cxx_werror_flag" ||
1564 test ! -s conftest.err
1565 } && test -s conftest.$ac_objext; then :
1566 ac_retval=0
1567else
1568 $as_echo "$as_me: failed program was:" >&5
1569sed 's/^/| /' conftest.$ac_ext >&5
1570
1571 ac_retval=1
1572fi
a2479b3d
L
1573 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1574 return $ac_retval
f35db108
WM
1575
1576} # ac_fn_cxx_try_compile
1577
1578# ac_fn_c_try_link LINENO
1579# -----------------------
1580# Try to link conftest.$ac_ext, and return whether this succeeded.
1581ac_fn_c_try_link ()
1582{
1583 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1584 rm -f conftest.$ac_objext conftest$ac_exeext
1585 if { { ac_try="$ac_link"
1586case "(($ac_try" in
1587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1588 *) ac_try_echo=$ac_try;;
1589esac
1590eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1591$as_echo "$ac_try_echo"; } >&5
1592 (eval "$ac_link") 2>conftest.err
1593 ac_status=$?
1594 if test -s conftest.err; then
1595 grep -v '^ *+' conftest.err >conftest.er1
1596 cat conftest.er1 >&5
1597 mv -f conftest.er1 conftest.err
1598 fi
1599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1600 test $ac_status = 0; } && {
1601 test -z "$ac_c_werror_flag" ||
1602 test ! -s conftest.err
1603 } && test -s conftest$ac_exeext && {
1604 test "$cross_compiling" = yes ||
1605 $as_test_x conftest$ac_exeext
1606 }; then :
1607 ac_retval=0
1608else
1609 $as_echo "$as_me: failed program was:" >&5
1610sed 's/^/| /' conftest.$ac_ext >&5
1611
1612 ac_retval=1
1613fi
1614 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1615 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1616 # interfere with the next link command; also delete a directory that is
1617 # left behind by Apple's compiler. We do this before executing the actions.
1618 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
a2479b3d
L
1619 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1620 return $ac_retval
f35db108
WM
1621
1622} # ac_fn_c_try_link
1623
1624# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1625# -------------------------------------------------------
1626# Tests whether HEADER exists and can be compiled using the include files in
1627# INCLUDES, setting the cache variable VAR accordingly.
1628ac_fn_c_check_header_compile ()
1629{
1630 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1632$as_echo_n "checking for $2... " >&6; }
a2479b3d 1633if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
f35db108
WM
1634 $as_echo_n "(cached) " >&6
1635else
1636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1637/* end confdefs.h. */
1638$4
1639#include <$2>
1640_ACEOF
1641if ac_fn_c_try_compile "$LINENO"; then :
1642 eval "$3=yes"
1643else
1644 eval "$3=no"
1645fi
1646rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1647fi
1648eval ac_res=\$$3
1649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1650$as_echo "$ac_res" >&6; }
a2479b3d 1651 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
f35db108
WM
1652
1653} # ac_fn_c_check_header_compile
1654
1655# ac_fn_c_try_cpp LINENO
1656# ----------------------
1657# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1658ac_fn_c_try_cpp ()
1659{
1660 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1661 if { { ac_try="$ac_cpp conftest.$ac_ext"
1662case "(($ac_try" in
1663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1664 *) ac_try_echo=$ac_try;;
1665esac
1666eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1667$as_echo "$ac_try_echo"; } >&5
1668 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1669 ac_status=$?
1670 if test -s conftest.err; then
1671 grep -v '^ *+' conftest.err >conftest.er1
1672 cat conftest.er1 >&5
1673 mv -f conftest.er1 conftest.err
1674 fi
1675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
a2479b3d 1676 test $ac_status = 0; } >/dev/null && {
f35db108
WM
1677 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1678 test ! -s conftest.err
1679 }; then :
1680 ac_retval=0
1681else
1682 $as_echo "$as_me: failed program was:" >&5
1683sed 's/^/| /' conftest.$ac_ext >&5
1684
1685 ac_retval=1
1686fi
a2479b3d
L
1687 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1688 return $ac_retval
f35db108
WM
1689
1690} # ac_fn_c_try_cpp
1691
1692# ac_fn_c_try_run LINENO
1693# ----------------------
1694# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1695# that executables *can* be run.
1696ac_fn_c_try_run ()
1697{
1698 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1699 if { { ac_try="$ac_link"
1700case "(($ac_try" in
1701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1702 *) ac_try_echo=$ac_try;;
1703esac
1704eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1705$as_echo "$ac_try_echo"; } >&5
1706 (eval "$ac_link") 2>&5
1707 ac_status=$?
1708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1709 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1710 { { case "(($ac_try" in
1711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1712 *) ac_try_echo=$ac_try;;
1713esac
1714eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1715$as_echo "$ac_try_echo"; } >&5
1716 (eval "$ac_try") 2>&5
1717 ac_status=$?
1718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1719 test $ac_status = 0; }; }; then :
1720 ac_retval=0
1721else
1722 $as_echo "$as_me: program exited with status $ac_status" >&5
1723 $as_echo "$as_me: failed program was:" >&5
1724sed 's/^/| /' conftest.$ac_ext >&5
1725
1726 ac_retval=$ac_status
1727fi
1728 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
a2479b3d
L
1729 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1730 return $ac_retval
f35db108
WM
1731
1732} # ac_fn_c_try_run
1733
1734# ac_fn_c_check_func LINENO FUNC VAR
1735# ----------------------------------
1736# Tests whether FUNC exists, setting the cache variable VAR accordingly
1737ac_fn_c_check_func ()
1738{
1739 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1741$as_echo_n "checking for $2... " >&6; }
a2479b3d 1742if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
f35db108
WM
1743 $as_echo_n "(cached) " >&6
1744else
1745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1746/* end confdefs.h. */
1747/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1748 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1749#define $2 innocuous_$2
1750
1751/* System header to define __stub macros and hopefully few prototypes,
1752 which can conflict with char $2 (); below.
1753 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1754 <limits.h> exists even on freestanding compilers. */
1755
1756#ifdef __STDC__
1757# include <limits.h>
1758#else
1759# include <assert.h>
1760#endif
1761
1762#undef $2
1763
1764/* Override any GCC internal prototype to avoid an error.
1765 Use char because int might match the return type of a GCC
1766 builtin and then its argument prototype would still apply. */
1767#ifdef __cplusplus
1768extern "C"
1769#endif
1770char $2 ();
1771/* The GNU C library defines this for functions which it implements
1772 to always fail with ENOSYS. Some functions are actually named
1773 something starting with __ and the normal name is an alias. */
1774#if defined __stub_$2 || defined __stub___$2
1775choke me
1776#endif
1777
1778int
1779main ()
1780{
1781return $2 ();
1782 ;
1783 return 0;
1784}
1785_ACEOF
1786if ac_fn_c_try_link "$LINENO"; then :
1787 eval "$3=yes"
1788else
1789 eval "$3=no"
1790fi
1791rm -f core conftest.err conftest.$ac_objext \
1792 conftest$ac_exeext conftest.$ac_ext
1793fi
1794eval ac_res=\$$3
1795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1796$as_echo "$ac_res" >&6; }
a2479b3d 1797 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
f35db108
WM
1798
1799} # ac_fn_c_check_func
1800
1801# ac_fn_cxx_try_cpp LINENO
1802# ------------------------
1803# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1804ac_fn_cxx_try_cpp ()
1805{
1806 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1807 if { { ac_try="$ac_cpp conftest.$ac_ext"
1808case "(($ac_try" in
1809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1810 *) ac_try_echo=$ac_try;;
1811esac
1812eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1813$as_echo "$ac_try_echo"; } >&5
1814 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1815 ac_status=$?
1816 if test -s conftest.err; then
1817 grep -v '^ *+' conftest.err >conftest.er1
1818 cat conftest.er1 >&5
1819 mv -f conftest.er1 conftest.err
1820 fi
1821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
a2479b3d 1822 test $ac_status = 0; } >/dev/null && {
f35db108
WM
1823 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1824 test ! -s conftest.err
1825 }; then :
1826 ac_retval=0
1827else
1828 $as_echo "$as_me: failed program was:" >&5
1829sed 's/^/| /' conftest.$ac_ext >&5
1830
1831 ac_retval=1
1832fi
a2479b3d
L
1833 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1834 return $ac_retval
f35db108
WM
1835
1836} # ac_fn_cxx_try_cpp
1837
1838# ac_fn_cxx_try_link LINENO
1839# -------------------------
1840# Try to link conftest.$ac_ext, and return whether this succeeded.
1841ac_fn_cxx_try_link ()
1842{
1843 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1844 rm -f conftest.$ac_objext conftest$ac_exeext
1845 if { { ac_try="$ac_link"
1846case "(($ac_try" in
1847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1848 *) ac_try_echo=$ac_try;;
1849esac
1850eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1851$as_echo "$ac_try_echo"; } >&5
1852 (eval "$ac_link") 2>conftest.err
1853 ac_status=$?
1854 if test -s conftest.err; then
1855 grep -v '^ *+' conftest.err >conftest.er1
1856 cat conftest.er1 >&5
1857 mv -f conftest.er1 conftest.err
1858 fi
1859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1860 test $ac_status = 0; } && {
1861 test -z "$ac_cxx_werror_flag" ||
1862 test ! -s conftest.err
1863 } && test -s conftest$ac_exeext && {
1864 test "$cross_compiling" = yes ||
1865 $as_test_x conftest$ac_exeext
1866 }; then :
1867 ac_retval=0
1868else
1869 $as_echo "$as_me: failed program was:" >&5
1870sed 's/^/| /' conftest.$ac_ext >&5
1871
1872 ac_retval=1
1873fi
1874 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1875 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1876 # interfere with the next link command; also delete a directory that is
1877 # left behind by Apple's compiler. We do this before executing the actions.
1878 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
a2479b3d
L
1879 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1880 return $ac_retval
f35db108
WM
1881
1882} # ac_fn_cxx_try_link
64548f3b
JJ
1883
1884# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1885# --------------------------------------------
1886# Tries to find the compile-time value of EXPR in a program that includes
1887# INCLUDES, setting VAR accordingly. Returns whether the value could be
1888# computed
1889ac_fn_c_compute_int ()
1890{
1891 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1892 if test "$cross_compiling" = yes; then
1893 # Depending upon the size, compute the lo and hi bounds.
1894cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1895/* end confdefs.h. */
1896$4
1897int
1898main ()
1899{
1900static int test_array [1 - 2 * !(($2) >= 0)];
1901test_array [0] = 0
1902
1903 ;
1904 return 0;
1905}
1906_ACEOF
1907if ac_fn_c_try_compile "$LINENO"; then :
1908 ac_lo=0 ac_mid=0
1909 while :; do
1910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1911/* end confdefs.h. */
1912$4
1913int
1914main ()
1915{
1916static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1917test_array [0] = 0
1918
1919 ;
1920 return 0;
1921}
1922_ACEOF
1923if ac_fn_c_try_compile "$LINENO"; then :
1924 ac_hi=$ac_mid; break
1925else
1926 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1927 if test $ac_lo -le $ac_mid; then
1928 ac_lo= ac_hi=
1929 break
1930 fi
1931 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1932fi
1933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1934 done
1935else
1936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1937/* end confdefs.h. */
1938$4
1939int
1940main ()
1941{
1942static int test_array [1 - 2 * !(($2) < 0)];
1943test_array [0] = 0
1944
1945 ;
1946 return 0;
1947}
1948_ACEOF
1949if ac_fn_c_try_compile "$LINENO"; then :
1950 ac_hi=-1 ac_mid=-1
1951 while :; do
1952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1953/* end confdefs.h. */
1954$4
1955int
1956main ()
1957{
1958static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1959test_array [0] = 0
1960
1961 ;
1962 return 0;
1963}
1964_ACEOF
1965if ac_fn_c_try_compile "$LINENO"; then :
1966 ac_lo=$ac_mid; break
1967else
1968 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1969 if test $ac_mid -le $ac_hi; then
1970 ac_lo= ac_hi=
1971 break
1972 fi
1973 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1974fi
1975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1976 done
1977else
1978 ac_lo= ac_hi=
1979fi
1980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1981fi
1982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1983# Binary search between lo and hi bounds.
1984while test "x$ac_lo" != "x$ac_hi"; do
1985 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1987/* end confdefs.h. */
1988$4
1989int
1990main ()
1991{
1992static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1993test_array [0] = 0
1994
1995 ;
1996 return 0;
1997}
1998_ACEOF
1999if ac_fn_c_try_compile "$LINENO"; then :
2000 ac_hi=$ac_mid
2001else
2002 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2003fi
2004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2005done
2006case $ac_lo in #((
2007?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2008'') ac_retval=1 ;;
2009esac
2010 else
2011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2012/* end confdefs.h. */
2013$4
2014static long int longval () { return $2; }
2015static unsigned long int ulongval () { return $2; }
2016#include <stdio.h>
2017#include <stdlib.h>
2018int
2019main ()
2020{
2021
2022 FILE *f = fopen ("conftest.val", "w");
2023 if (! f)
2024 return 1;
2025 if (($2) < 0)
2026 {
2027 long int i = longval ();
2028 if (i != ($2))
2029 return 1;
2030 fprintf (f, "%ld", i);
2031 }
2032 else
2033 {
2034 unsigned long int i = ulongval ();
2035 if (i != ($2))
2036 return 1;
2037 fprintf (f, "%lu", i);
2038 }
2039 /* Do not output a trailing newline, as this causes \r\n confusion
2040 on some platforms. */
2041 return ferror (f) || fclose (f) != 0;
2042
2043 ;
2044 return 0;
2045}
2046_ACEOF
2047if ac_fn_c_try_run "$LINENO"; then :
2048 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2049else
2050 ac_retval=1
2051fi
2052rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2053 conftest.$ac_objext conftest.beam conftest.$ac_ext
2054rm -f conftest.val
2055
2056 fi
2057 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2058 return $ac_retval
2059
2060} # ac_fn_c_compute_int
f35db108
WM
2061cat >config.log <<_ACEOF
2062This file contains any messages produced by compilers while
2063running configure, to aid debugging if configure makes a mistake.
2064
2065It was created by package-unused $as_me version-unused, which was
a2479b3d 2066generated by GNU Autoconf 2.64. Invocation command line was
f35db108
WM
2067
2068 $ $0 $@
2069
2070_ACEOF
2071exec 5>>config.log
2072{
2073cat <<_ASUNAME
2074## --------- ##
2075## Platform. ##
2076## --------- ##
2077
2078hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2079uname -m = `(uname -m) 2>/dev/null || echo unknown`
2080uname -r = `(uname -r) 2>/dev/null || echo unknown`
2081uname -s = `(uname -s) 2>/dev/null || echo unknown`
2082uname -v = `(uname -v) 2>/dev/null || echo unknown`
2083
2084/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2085/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2086
2087/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2088/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2089/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2090/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2091/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2092/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2093/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2094
2095_ASUNAME
2096
2097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2098for as_dir in $PATH
2099do
2100 IFS=$as_save_IFS
2101 test -z "$as_dir" && as_dir=.
2102 $as_echo "PATH: $as_dir"
2103 done
2104IFS=$as_save_IFS
2105
2106} >&5
2107
2108cat >&5 <<_ACEOF
2109
2110
2111## ----------- ##
2112## Core tests. ##
2113## ----------- ##
2114
2115_ACEOF
2116
2117
2118# Keep a trace of the command line.
2119# Strip out --no-create and --no-recursion so they do not pile up.
2120# Strip out --silent because we don't want to record it for future runs.
2121# Also quote any args containing shell meta-characters.
2122# Make two passes to allow for proper duplicate-argument suppression.
2123ac_configure_args=
2124ac_configure_args0=
2125ac_configure_args1=
2126ac_must_keep_next=false
2127for ac_pass in 1 2
2128do
2129 for ac_arg
2130 do
2131 case $ac_arg in
2132 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2133 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2134 | -silent | --silent | --silen | --sile | --sil)
2135 continue ;;
2136 *\'*)
2137 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2138 esac
2139 case $ac_pass in
2140 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2141 2)
2142 as_fn_append ac_configure_args1 " '$ac_arg'"
2143 if test $ac_must_keep_next = true; then
2144 ac_must_keep_next=false # Got value, back to normal.
2145 else
2146 case $ac_arg in
2147 *=* | --config-cache | -C | -disable-* | --disable-* \
2148 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2149 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2150 | -with-* | --with-* | -without-* | --without-* | --x)
2151 case "$ac_configure_args0 " in
2152 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2153 esac
2154 ;;
2155 -* ) ac_must_keep_next=true ;;
2156 esac
2157 fi
2158 as_fn_append ac_configure_args " '$ac_arg'"
2159 ;;
2160 esac
2161 done
2162done
2163{ ac_configure_args0=; unset ac_configure_args0;}
2164{ ac_configure_args1=; unset ac_configure_args1;}
2165
2166# When interrupted or exit'd, cleanup temporary files, and complete
2167# config.log. We remove comments because anyway the quotes in there
2168# would cause problems or look ugly.
2169# WARNING: Use '\'' to represent an apostrophe within the trap.
2170# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2171trap 'exit_status=$?
2172 # Save into config.log some information that might help in debugging.
2173 {
2174 echo
2175
a2479b3d
L
2176 cat <<\_ASBOX
2177## ---------------- ##
f35db108 2178## Cache variables. ##
a2479b3d
L
2179## ---------------- ##
2180_ASBOX
f35db108
WM
2181 echo
2182 # The following way of writing the cache mishandles newlines in values,
2183(
2184 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2185 eval ac_val=\$$ac_var
2186 case $ac_val in #(
2187 *${as_nl}*)
2188 case $ac_var in #(
2189 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2190$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2191 esac
2192 case $ac_var in #(
2193 _ | IFS | as_nl) ;; #(
2194 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2195 *) { eval $ac_var=; unset $ac_var;} ;;
2196 esac ;;
2197 esac
2198 done
2199 (set) 2>&1 |
2200 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2201 *${as_nl}ac_space=\ *)
2202 sed -n \
2203 "s/'\''/'\''\\\\'\'''\''/g;
2204 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2205 ;; #(
2206 *)
2207 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2208 ;;
2209 esac |
2210 sort
2211)
2212 echo
2213
a2479b3d
L
2214 cat <<\_ASBOX
2215## ----------------- ##
f35db108 2216## Output variables. ##
a2479b3d
L
2217## ----------------- ##
2218_ASBOX
f35db108
WM
2219 echo
2220 for ac_var in $ac_subst_vars
2221 do
2222 eval ac_val=\$$ac_var
2223 case $ac_val in
2224 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2225 esac
2226 $as_echo "$ac_var='\''$ac_val'\''"
2227 done | sort
2228 echo
2229
2230 if test -n "$ac_subst_files"; then
a2479b3d
L
2231 cat <<\_ASBOX
2232## ------------------- ##
f35db108 2233## File substitutions. ##
a2479b3d
L
2234## ------------------- ##
2235_ASBOX
f35db108
WM
2236 echo
2237 for ac_var in $ac_subst_files
2238 do
2239 eval ac_val=\$$ac_var
2240 case $ac_val in
2241 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2242 esac
2243 $as_echo "$ac_var='\''$ac_val'\''"
2244 done | sort
2245 echo
2246 fi
2247
2248 if test -s confdefs.h; then
a2479b3d
L
2249 cat <<\_ASBOX
2250## ----------- ##
f35db108 2251## confdefs.h. ##
a2479b3d
L
2252## ----------- ##
2253_ASBOX
f35db108
WM
2254 echo
2255 cat confdefs.h
2256 echo
2257 fi
2258 test "$ac_signal" != 0 &&
2259 $as_echo "$as_me: caught signal $ac_signal"
2260 $as_echo "$as_me: exit $exit_status"
2261 } >&5
2262 rm -f core *.core core.conftest.* &&
2263 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2264 exit $exit_status
2265' 0
2266for ac_signal in 1 2 13 15; do
2267 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2268done
2269ac_signal=0
2270
2271# confdefs.h avoids OS command line length limits that DEFS can exceed.
2272rm -f -r conftest* confdefs.h
2273
2274$as_echo "/* confdefs.h */" > confdefs.h
2275
2276# Predefined preprocessor variables.
2277
2278cat >>confdefs.h <<_ACEOF
2279#define PACKAGE_NAME "$PACKAGE_NAME"
2280_ACEOF
2281
2282cat >>confdefs.h <<_ACEOF
2283#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2284_ACEOF
2285
2286cat >>confdefs.h <<_ACEOF
2287#define PACKAGE_VERSION "$PACKAGE_VERSION"
2288_ACEOF
2289
2290cat >>confdefs.h <<_ACEOF
2291#define PACKAGE_STRING "$PACKAGE_STRING"
2292_ACEOF
2293
2294cat >>confdefs.h <<_ACEOF
2295#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2296_ACEOF
2297
2298cat >>confdefs.h <<_ACEOF
2299#define PACKAGE_URL "$PACKAGE_URL"
2300_ACEOF
2301
2302
2303# Let the site file select an alternate cache file if it wants to.
2304# Prefer an explicitly selected file to automatically selected ones.
2305ac_site_file1=NONE
2306ac_site_file2=NONE
2307if test -n "$CONFIG_SITE"; then
a2479b3d 2308 ac_site_file1=$CONFIG_SITE
f35db108
WM
2309elif test "x$prefix" != xNONE; then
2310 ac_site_file1=$prefix/share/config.site
2311 ac_site_file2=$prefix/etc/config.site
2312else
2313 ac_site_file1=$ac_default_prefix/share/config.site
2314 ac_site_file2=$ac_default_prefix/etc/config.site
2315fi
2316for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2317do
2318 test "x$ac_site_file" = xNONE && continue
a2479b3d 2319 if test -r "$ac_site_file"; then
f35db108
WM
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2321$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2322 sed 's/^/| /' "$ac_site_file" >&5
a2479b3d 2323 . "$ac_site_file"
f35db108
WM
2324 fi
2325done
2326
2327if test -r "$cache_file"; then
a2479b3d
L
2328 # Some versions of bash will fail to source /dev/null (special
2329 # files actually), so we avoid doing that.
2330 if test -f "$cache_file"; then
f35db108
WM
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2332$as_echo "$as_me: loading cache $cache_file" >&6;}
2333 case $cache_file in
2334 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2335 *) . "./$cache_file";;
2336 esac
2337 fi
2338else
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2340$as_echo "$as_me: creating cache $cache_file" >&6;}
2341 >$cache_file
2342fi
2343
2344# Check that the precious variables saved in the cache have kept the same
2345# value.
2346ac_cache_corrupted=false
2347for ac_var in $ac_precious_vars; do
2348 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2349 eval ac_new_set=\$ac_env_${ac_var}_set
2350 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2351 eval ac_new_val=\$ac_env_${ac_var}_value
2352 case $ac_old_set,$ac_new_set in
2353 set,)
2354 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2355$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2356 ac_cache_corrupted=: ;;
2357 ,set)
2358 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2359$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2360 ac_cache_corrupted=: ;;
2361 ,);;
2362 *)
2363 if test "x$ac_old_val" != "x$ac_new_val"; then
2364 # differences in whitespace do not lead to failure.
2365 ac_old_val_w=`echo x $ac_old_val`
2366 ac_new_val_w=`echo x $ac_new_val`
2367 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2368 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2369$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2370 ac_cache_corrupted=:
2371 else
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2373$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2374 eval $ac_var=\$ac_old_val
2375 fi
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2377$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2379$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2380 fi;;
2381 esac
2382 # Pass precious variables to config.status.
2383 if test "$ac_new_set" = set; then
2384 case $ac_new_val in
2385 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2386 *) ac_arg=$ac_var=$ac_new_val ;;
2387 esac
2388 case " $ac_configure_args " in
2389 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2390 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2391 esac
2392 fi
2393done
2394if $ac_cache_corrupted; then
2395 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2396$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2397 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2398$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
a2479b3d 2399 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
f35db108
WM
2400fi
2401## -------------------- ##
2402## Main body of script. ##
2403## -------------------- ##
2404
2405ac_ext=c
2406ac_cpp='$CPP $CPPFLAGS'
2407ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2408ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2409ac_compiler_gnu=$ac_cv_c_compiler_gnu
2410
2411
2412
a2479b3d
L
2413
2414
2415
4053ca2c 2416
2a6346c4
L
2417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2418$as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2419# Check whether --enable-version-specific-runtime-libs was given.
2420if test "${enable_version_specific_runtime_libs+set}" = set; then :
2421 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
2422 yes) version_specific_libs=yes ;;
2423 no) version_specific_libs=no ;;
2424 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
2425 esac
2426else
2427 version_specific_libs=no
2428fi
2429
2430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2431$as_echo "$version_specific_libs" >&6; }
2432
2433# Do not delete or change the following two lines. For why, see
2434# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
f35db108 2435ac_aux_dir=
4053ca2c 2436for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
a2479b3d
L
2437 for ac_t in install-sh install.sh shtool; do
2438 if test -f "$ac_dir/$ac_t"; then
2439 ac_aux_dir=$ac_dir
2440 ac_install_sh="$ac_aux_dir/$ac_t -c"
2441 break 2
2442 fi
2443 done
f35db108
WM
2444done
2445if test -z "$ac_aux_dir"; then
4053ca2c 2446 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
f35db108
WM
2447fi
2448
2449# These three variables are undocumented and unsupported,
2450# and are intended to be withdrawn in a future Autoconf release.
2451# They can cause serious problems if a builder's source tree is in a directory
2452# whose full name contains unusual characters.
2453ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2454ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2455ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2456
2457
2a6346c4
L
2458# Make sure we can run config.sub.
2459$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2460 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2461
2462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2463$as_echo_n "checking build system type... " >&6; }
2464if test "${ac_cv_build+set}" = set; then :
2465 $as_echo_n "(cached) " >&6
2466else
2467 ac_build_alias=$build_alias
2468test "x$ac_build_alias" = x &&
2469 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2470test "x$ac_build_alias" = x &&
2471 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2472ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2473 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2474
2475fi
2476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2477$as_echo "$ac_cv_build" >&6; }
2478case $ac_cv_build in
2479*-*-*) ;;
2480*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2481esac
2482build=$ac_cv_build
2483ac_save_IFS=$IFS; IFS='-'
2484set x $ac_cv_build
2485shift
2486build_cpu=$1
2487build_vendor=$2
2488shift; shift
2489# Remember, the first character of IFS is used to create $*,
2490# except with old shells:
2491build_os=$*
2492IFS=$ac_save_IFS
2493case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2494
2495
2496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2497$as_echo_n "checking host system type... " >&6; }
2498if test "${ac_cv_host+set}" = set; then :
2499 $as_echo_n "(cached) " >&6
2500else
2501 if test "x$host_alias" = x; then
2502 ac_cv_host=$ac_cv_build
2503else
2504 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2505 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2506fi
2507
2508fi
2509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2510$as_echo "$ac_cv_host" >&6; }
2511case $ac_cv_host in
2512*-*-*) ;;
2513*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2514esac
2515host=$ac_cv_host
2516ac_save_IFS=$IFS; IFS='-'
2517set x $ac_cv_host
2518shift
2519host_cpu=$1
2520host_vendor=$2
2521shift; shift
2522# Remember, the first character of IFS is used to create $*,
2523# except with old shells:
2524host_os=$*
2525IFS=$ac_save_IFS
2526case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2527
2528
2529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2530$as_echo_n "checking target system type... " >&6; }
2531if test "${ac_cv_target+set}" = set; then :
2532 $as_echo_n "(cached) " >&6
2533else
2534 if test "x$target_alias" = x; then
2535 ac_cv_target=$ac_cv_host
2536else
2537 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2538 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2539fi
2540
2541fi
2542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2543$as_echo "$ac_cv_target" >&6; }
2544case $ac_cv_target in
2545*-*-*) ;;
2546*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2547esac
2548target=$ac_cv_target
2549ac_save_IFS=$IFS; IFS='-'
2550set x $ac_cv_target
2551shift
2552target_cpu=$1
2553target_vendor=$2
2554shift; shift
2555# Remember, the first character of IFS is used to create $*,
2556# except with old shells:
2557target_os=$*
2558IFS=$ac_save_IFS
2559case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2560
2561
2562# The aliases save the names the user supplied, while $host etc.
2563# will get canonicalized.
2564test -n "$target_alias" &&
2565 test "$program_prefix$program_suffix$program_transform_name" = \
2566 NONENONEs,x,x, &&
2567 program_prefix=${target_alias}-
2568
2569target_alias=${target_alias-$host_alias}
2570
2571
2572am__api_version='1.11'
2573
f35db108
WM
2574# Find a good install program. We prefer a C program (faster),
2575# so one script is as good as another. But avoid the broken or
2576# incompatible versions:
2577# SysV /etc/install, /usr/sbin/install
2578# SunOS /usr/etc/install
2579# IRIX /sbin/install
2580# AIX /bin/install
2581# AmigaOS /C/install, which installs bootblocks on floppy discs
2582# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2583# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2584# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2585# OS/2's system install, which has a completely different semantic
2586# ./install, which can be erroneously created by make from ./install.sh.
2587# Reject install programs that cannot install multiple files.
2588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2589$as_echo_n "checking for a BSD-compatible install... " >&6; }
2590if test -z "$INSTALL"; then
a2479b3d 2591if test "${ac_cv_path_install+set}" = set; then :
f35db108
WM
2592 $as_echo_n "(cached) " >&6
2593else
2594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2595for as_dir in $PATH
2596do
2597 IFS=$as_save_IFS
2598 test -z "$as_dir" && as_dir=.
2599 # Account for people who put trailing slashes in PATH elements.
2600case $as_dir/ in #((
2601 ./ | .// | /[cC]/* | \
2602 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2603 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2604 /usr/ucb/* ) ;;
2605 *)
2606 # OSF1 and SCO ODT 3.0 have their own names for install.
2607 # Don't use installbsd from OSF since it installs stuff as root
2608 # by default.
2609 for ac_prog in ginstall scoinst install; do
2610 for ac_exec_ext in '' $ac_executable_extensions; do
2611 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2612 if test $ac_prog = install &&
2613 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2614 # AIX install. It has an incompatible calling convention.
2615 :
2616 elif test $ac_prog = install &&
2617 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2618 # program-specific install script used by HP pwplus--don't use.
2619 :
2620 else
2621 rm -rf conftest.one conftest.two conftest.dir
2622 echo one > conftest.one
2623 echo two > conftest.two
2624 mkdir conftest.dir
2625 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2626 test -s conftest.one && test -s conftest.two &&
2627 test -s conftest.dir/conftest.one &&
2628 test -s conftest.dir/conftest.two
2629 then
2630 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2631 break 3
2632 fi
2633 fi
2634 fi
2635 done
2636 done
2637 ;;
2638esac
2639
2640 done
2641IFS=$as_save_IFS
2642
2643rm -rf conftest.one conftest.two conftest.dir
2644
2645fi
2646 if test "${ac_cv_path_install+set}" = set; then
2647 INSTALL=$ac_cv_path_install
2648 else
2649 # As a last resort, use the slow shell script. Don't cache a
2650 # value for INSTALL within a source directory, because that will
2651 # break other packages using the cache if that directory is
2652 # removed, or if the value is a relative name.
2653 INSTALL=$ac_install_sh
2654 fi
2655fi
2656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2657$as_echo "$INSTALL" >&6; }
2658
2659# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2660# It thinks the first close brace ends the variable substitution.
2661test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2662
2663test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2664
2665test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2666
2667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2668$as_echo_n "checking whether build environment is sane... " >&6; }
2669# Just in case
2670sleep 1
2671echo timestamp > conftest.file
2672# Reject unsafe characters in $srcdir or the absolute working directory
2673# name. Accept space and tab only in the latter.
2674am_lf='
2675'
2676case `pwd` in
2677 *[\\\"\#\$\&\'\`$am_lf]*)
a2479b3d 2678 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
f35db108
WM
2679esac
2680case $srcdir in
2681 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
a2479b3d 2682 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
f35db108
WM
2683esac
2684
2685# Do `set' in a subshell so we don't clobber the current shell's
2686# arguments. Must try -L first in case configure is actually a
2687# symlink; some systems play weird games with the mod time of symlinks
2688# (eg FreeBSD returns the mod time of the symlink's containing
2689# directory).
2690if (
2691 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2692 if test "$*" = "X"; then
2693 # -L didn't work.
2694 set X `ls -t "$srcdir/configure" conftest.file`
2695 fi
2696 rm -f conftest.file
2697 if test "$*" != "X $srcdir/configure conftest.file" \
2698 && test "$*" != "X conftest.file $srcdir/configure"; then
2699
2700 # If neither matched, then we have a broken ls. This can happen
2701 # if, for instance, CONFIG_SHELL is bash and it inherits a
2702 # broken ls alias from the environment. This has actually
2703 # happened. Such a system could not be considered "sane".
a2479b3d 2704 as_fn_error "ls -t appears to fail. Make sure there is not a broken
f35db108
WM
2705alias in your environment" "$LINENO" 5
2706 fi
2707
2708 test "$2" = conftest.file
2709 )
2710then
2711 # Ok.
2712 :
2713else
a2479b3d 2714 as_fn_error "newly created file is older than distributed files!
f35db108
WM
2715Check your system clock" "$LINENO" 5
2716fi
2717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2718$as_echo "yes" >&6; }
2719test "$program_prefix" != NONE &&
2720 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2721# Use a double $ so make ignores it.
2722test "$program_suffix" != NONE &&
2723 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2724# Double any \ or $.
2725# By default was `s,x,x', remove it if useless.
2726ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2727program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2728
2729# expand $ac_aux_dir to an absolute path
2730am_aux_dir=`cd $ac_aux_dir && pwd`
2731
2732if test x"${MISSING+set}" != xset; then
2733 case $am_aux_dir in
2734 *\ * | *\ *)
2735 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2736 *)
2737 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2738 esac
2739fi
2740# Use eval to expand $SHELL
2741if eval "$MISSING --run true"; then
2742 am_missing_run="$MISSING --run "
2743else
2744 am_missing_run=
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2746$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2747fi
2748
2749if test x"${install_sh}" != xset; then
2750 case $am_aux_dir in
2751 *\ * | *\ *)
2752 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2753 *)
2754 install_sh="\${SHELL} $am_aux_dir/install-sh"
2755 esac
2756fi
2757
2758# Installed binaries are usually stripped using `strip' when the user
2759# run `make install-strip'. However `strip' might not be the right
2760# tool to use in cross-compilation environments, therefore Automake
2761# will honor the `STRIP' environment variable to overrule this program.
2762if test "$cross_compiling" != no; then
2763 if test -n "$ac_tool_prefix"; then
2764 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2765set dummy ${ac_tool_prefix}strip; ac_word=$2
2766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2767$as_echo_n "checking for $ac_word... " >&6; }
a2479b3d 2768if test "${ac_cv_prog_STRIP+set}" = set; then :
f35db108
WM
2769 $as_echo_n "(cached) " >&6
2770else
2771 if test -n "$STRIP"; then
2772 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2773else
2774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2775for as_dir in $PATH
2776do
2777 IFS=$as_save_IFS
2778 test -z "$as_dir" && as_dir=.
2779 for ac_exec_ext in '' $ac_executable_extensions; do
2780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2781 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2783 break 2
2784 fi
2785done
2786 done
2787IFS=$as_save_IFS
2788
2789fi
2790fi
2791STRIP=$ac_cv_prog_STRIP
2792if test -n "$STRIP"; then
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2794$as_echo "$STRIP" >&6; }
2795else
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2797$as_echo "no" >&6; }
2798fi
2799
2800
2801fi
2802if test -z "$ac_cv_prog_STRIP"; then
2803 ac_ct_STRIP=$STRIP
2804 # Extract the first word of "strip", so it can be a program name with args.
2805set dummy strip; ac_word=$2
2806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2807$as_echo_n "checking for $ac_word... " >&6; }
a2479b3d 2808if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
f35db108
WM
2809 $as_echo_n "(cached) " >&6
2810else
2811 if test -n "$ac_ct_STRIP"; then
2812 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2813else
2814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2815for as_dir in $PATH
2816do
2817 IFS=$as_save_IFS
2818 test -z "$as_dir" && as_dir=.
2819 for ac_exec_ext in '' $ac_executable_extensions; do
2820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2821 ac_cv_prog_ac_ct_STRIP="strip"
2822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2823 break 2
2824 fi
2825done
2826 done
2827IFS=$as_save_IFS
2828
2829fi
2830fi
2831ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2832if test -n "$ac_ct_STRIP"; then
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2834$as_echo "$ac_ct_STRIP" >&6; }
2835else
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2837$as_echo "no" >&6; }
2838fi
2839
2840 if test "x$ac_ct_STRIP" = x; then
2841 STRIP=":"
2842 else
2843 case $cross_compiling:$ac_tool_warned in
2844yes:)
2845{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2846$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2847ac_tool_warned=yes ;;
2848esac
2849 STRIP=$ac_ct_STRIP
2850 fi
2851else
2852 STRIP="$ac_cv_prog_STRIP"
2853fi
2854
2855fi
2856INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2857
2858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2859$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2860if test -z "$MKDIR_P"; then
a2479b3d 2861 if test "${ac_cv_path_mkdir+set}" = set; then :
f35db108
WM
2862 $as_echo_n "(cached) " >&6
2863else
2864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2865for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2866do
2867 IFS=$as_save_IFS
2868 test -z "$as_dir" && as_dir=.
2869 for ac_prog in mkdir gmkdir; do
2870 for ac_exec_ext in '' $ac_executable_extensions; do
2871 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2872 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2873 'mkdir (GNU coreutils) '* | \
2874 'mkdir (coreutils) '* | \
2875 'mkdir (fileutils) '4.1*)
2876 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2877 break 3;;
2878 esac
2879 done
2880 done
2881 done
2882IFS=$as_save_IFS
2883
2884fi
2885
f35db108
WM
2886 if test "${ac_cv_path_mkdir+set}" = set; then
2887 MKDIR_P="$ac_cv_path_mkdir -p"
2888 else
2889 # As a last resort, use the slow shell script. Don't cache a
2890 # value for MKDIR_P within a source directory, because that will
2891 # break other packages using the cache if that directory is
2892 # removed, or if the value is a relative name.
a2479b3d 2893 test -d ./--version && rmdir ./--version
f35db108
WM
2894 MKDIR_P="$ac_install_sh -d"
2895 fi
2896fi
2897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2898$as_echo "$MKDIR_P" >&6; }
2899
2900mkdir_p="$MKDIR_P"
2901case $mkdir_p in
2902 [\\/$]* | ?:[\\/]*) ;;
2903 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2904esac
2905
2906for ac_prog in gawk mawk nawk awk
2907do
2908 # Extract the first word of "$ac_prog", so it can be a program name with args.
2909set dummy $ac_prog; ac_word=$2
2910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2911$as_echo_n "checking for $ac_word... " >&6; }
a2479b3d 2912if test "${ac_cv_prog_AWK+set}" = set; then :
f35db108
WM
2913 $as_echo_n "(cached) " >&6
2914else
2915 if test -n "$AWK"; then
2916 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2917else
2918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2919for as_dir in $PATH
2920do
2921 IFS=$as_save_IFS
2922 test -z "$as_dir" && as_dir=.
2923 for ac_exec_ext in '' $ac_executable_extensions; do
2924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2925 ac_cv_prog_AWK="$ac_prog"
2926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2927 break 2
2928 fi
2929done
2930 done
2931IFS=$as_save_IFS
2932
2933fi
2934fi
2935AWK=$ac_cv_prog_AWK
2936if test -n "$AWK"; then
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2938$as_echo "$AWK" >&6; }
2939else
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2941$as_echo "no" >&6; }
2942fi
2943
2944
2945 test -n "$AWK" && break
2946done
2947
2948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2949$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2950set x ${MAKE-make}
2951ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
a2479b3d 2952if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
f35db108
WM
2953 $as_echo_n "(cached) " >&6
2954else
2955 cat >conftest.make <<\_ACEOF
2956SHELL = /bin/sh
2957all:
2958 @echo '@@@%%%=$(MAKE)=@@@%%%'
2959_ACEOF
a2479b3d 2960# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
f35db108
WM
2961case `${MAKE-make} -f conftest.make 2>/dev/null` in
2962 *@@@%%%=?*=@@@%%%*)
2963 eval ac_cv_prog_make_${ac_make}_set=yes;;
2964 *)
2965 eval ac_cv_prog_make_${ac_make}_set=no;;
2966esac
2967rm -f conftest.make
2968fi
2969if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2971$as_echo "yes" >&6; }
2972 SET_MAKE=
2973else
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2975$as_echo "no" >&6; }
2976 SET_MAKE="MAKE=${MAKE-make}"
2977fi
2978
2979rm -rf .tst 2>/dev/null
2980mkdir .tst 2>/dev/null
2981if test -d .tst; then
2982 am__leading_dot=.
2983else
2984 am__leading_dot=_
2985fi
2986rmdir .tst 2>/dev/null
2987
2988if test "`cd $srcdir && pwd`" != "`pwd`"; then
2989 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2990 # is not polluted with repeated "-I."
2991 am__isrc=' -I$(srcdir)'
2992 # test to see if srcdir already configured
2993 if test -f $srcdir/config.status; then
a2479b3d 2994 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
f35db108
WM
2995 fi
2996fi
2997
2998# test whether we have cygpath
2999if test -z "$CYGPATH_W"; then
3000 if (cygpath --version) >/dev/null 2>/dev/null; then
3001 CYGPATH_W='cygpath -w'
3002 else
3003 CYGPATH_W=echo
3004 fi
3005fi
3006
3007
3008# Define the identity of the package.
3009 PACKAGE='package-unused'
3010 VERSION='version-unused'
3011
3012
3013cat >>confdefs.h <<_ACEOF
3014#define PACKAGE "$PACKAGE"
3015_ACEOF
3016
3017
3018cat >>confdefs.h <<_ACEOF
3019#define VERSION "$VERSION"
3020_ACEOF
3021
3022# Some tools Automake needs.
3023
3024ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3025
3026
3027AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3028
3029
3030AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3031
3032
3033AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3034
3035
3036MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3037
3038# We need awk for the "check" target. The system "awk" is bad on
3039# some platforms.
a2479b3d
L
3040# Always define AMTAR for backward compatibility.
3041
3042AMTAR=${AMTAR-"${am_missing_run}tar"}
f35db108 3043
a2479b3d 3044am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
f35db108
WM
3045
3046
3047
3048
3049
2a6346c4
L
3050# Default to --enable-multilib
3051# Check whether --enable-multilib was given.
3052if test "${enable_multilib+set}" = set; then :
3053 enableval=$enable_multilib; case "$enableval" in
3054 yes) multilib=yes ;;
3055 no) multilib=no ;;
3056 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
3057 esac
3058else
3059 multilib=yes
3060fi
3061
3062
3063# We may get other options which we leave undocumented:
3064# --with-target-subdir, --with-multisrctop, --with-multisubdir
3065# See config-ml.in if you want the gory details.
3066
3067if test "$srcdir" = "."; then
3068 if test "$with_target_subdir" != "."; then
3069 multi_basedir="$srcdir/$with_multisrctop../.."
3070 else
3071 multi_basedir="$srcdir/$with_multisrctop.."
3072 fi
3073else
3074 multi_basedir="$srcdir/.."
3075fi
3076
3077
3078# Even if the default multilib is not a cross compilation,
3079# it may be that some of the other multilibs are.
3080if test $cross_compiling = no && test $multilib = yes \
3081 && test "x${with_multisubdir}" != x ; then
3082 cross_compiling=maybe
3083fi
3084
3085ac_config_commands="$ac_config_commands default-1"
3086
3087
2b723e21
TT
3088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3089$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3090 # Check whether --enable-maintainer-mode was given.
3091if test "${enable_maintainer_mode+set}" = set; then :
3092 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3093else
3094 USE_MAINTAINER_MODE=no
3095fi
3096
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3098$as_echo "$USE_MAINTAINER_MODE" >&6; }
3099 if test $USE_MAINTAINER_MODE = yes; then
3100 MAINTAINER_MODE_TRUE=
3101 MAINTAINER_MODE_FALSE='#'
3102else
3103 MAINTAINER_MODE_TRUE='#'
3104 MAINTAINER_MODE_FALSE=
3105fi
3106
3107 MAINT=$MAINTAINER_MODE_TRUE
3108
3109
3110
2a6346c4
L
3111# Calculate toolexeclibdir
3112# Also toolexecdir, though it's only used in toolexeclibdir
3113case ${version_specific_libs} in
3114 yes)
3115 # Need the gcc compiler version to know where to install libraries
3116 # and header files if --enable-version-specific-runtime-libs option
3117 # is selected.
3118 toolexecdir='$(libdir)/gcc/$(target_alias)'
3119 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
3120 ;;
3121 no)
3122 if test -n "$with_cross_host" &&
3123 test x"$with_cross_host" != x"no"; then
3124 # Install a library built with a cross compiler in tooldir, not libdir.
3125 toolexecdir='$(exec_prefix)/$(target_alias)'
3126 toolexeclibdir='$(toolexecdir)/lib'
3127 else
3128 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
3129 toolexeclibdir='$(libdir)'
3130 fi
3131 multi_os_directory=`$CC -print-multi-os-directory`
3132 case $multi_os_directory in
3133 .) ;; # Avoid trailing /.
3134 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
3135 esac
3136 ;;
3137esac
3138
3139
f35db108
WM
3140
3141# Checks for programs.
3142ac_ext=c
3143ac_cpp='$CPP $CPPFLAGS'
3144ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3145ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3146ac_compiler_gnu=$ac_cv_c_compiler_gnu
3147if test -n "$ac_tool_prefix"; then
3148 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3149set dummy ${ac_tool_prefix}gcc; ac_word=$2
3150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3151$as_echo_n "checking for $ac_word... " >&6; }
a2479b3d 3152if test "${ac_cv_prog_CC+set}" = set; then :
f35db108
WM
3153 $as_echo_n "(cached) " >&6
3154else
3155 if test -n "$CC"; then
3156 ac_cv_prog_CC="$CC" # Let the user override the test.
3157else
3158as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3159for as_dir in $PATH
3160do
3161 IFS=$as_save_IFS
3162 test -z "$as_dir" && as_dir=.
3163 for ac_exec_ext in '' $ac_executable_extensions; do
3164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3165 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3167 break 2
3168 fi
3169done
3170 done
3171IFS=$as_save_IFS
3172
3173fi
3174fi
3175CC=$ac_cv_prog_CC
3176if test -n "$CC"; then
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3178$as_echo "$CC" >&6; }
3179else
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3181$as_echo "no" >&6; }
3182fi
3183
3184
3185fi
3186if test -z "$ac_cv_prog_CC"; then
3187 ac_ct_CC=$CC
3188 # Extract the first word of "gcc", so it can be a program name with args.
3189set dummy gcc; ac_word=$2
3190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3191$as_echo_n "checking for $ac_word... " >&6; }
a2479b3d 3192if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
f35db108
WM
3193 $as_echo_n "(cached) " >&6
3194else
3195 if test -n "$ac_ct_CC"; then
3196 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3197else
3198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3199for as_dir in $PATH
3200do
3201 IFS=$as_save_IFS
3202 test -z "$as_dir" && as_dir=.
3203 for ac_exec_ext in '' $ac_executable_extensions; do
3204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3205 ac_cv_prog_ac_ct_CC="gcc"
3206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3207 break 2
3208 fi
3209done
3210 done
3211IFS=$as_save_IFS
3212
3213fi
3214fi
3215ac_ct_CC=$ac_cv_prog_ac_ct_CC
3216if test -n "$ac_ct_CC"; then
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3218$as_echo "$ac_ct_CC" >&6; }
3219else
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3221$as_echo "no" >&6; }
3222fi
3223
3224 if test "x$ac_ct_CC" = x; then
3225 CC=""
3226 else
3227 case $cross_compiling:$ac_tool_warned in
3228yes:)
3229{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3230$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3231ac_tool_warned=yes ;;
3232esac
3233 CC=$ac_ct_CC
3234 fi
3235else
3236 CC="$ac_cv_prog_CC"
3237fi
3238
3239if test -z "$CC"; then
3240 if test -n "$ac_tool_prefix"; then
3241 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3242set dummy ${ac_tool_prefix}cc; ac_word=$2
3243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3244$as_echo_n "checking for $ac_word... " >&6; }
a2479b3d 3245if test "${ac_cv_prog_CC+set}" = set; then :
f35db108
WM
3246 $as_echo_n "(cached) " >&6
3247else
3248 if test -n "$CC"; then
3249 ac_cv_prog_CC="$CC" # Let the user override the test.
3250else
3251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3252for as_dir in $PATH
3253do
3254 IFS=$as_save_IFS
3255 test -z "$as_dir" && as_dir=.
3256 for ac_exec_ext in '' $ac_executable_extensions; do
3257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3258 ac_cv_prog_CC="${ac_tool_prefix}cc"
3259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3260 break 2
3261 fi
3262done
3263 done
3264IFS=$as_save_IFS
3265
3266fi
3267fi
3268CC=$ac_cv_prog_CC
3269if test -n "$CC"; then
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3271$as_echo "$CC" >&6; }
3272else
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3274$as_echo "no" >&6; }
3275fi
3276
3277
3278 fi
3279fi
3280if test -z "$CC"; then
3281 # Extract the first word of "cc", so it can be a program name with args.
3282set dummy cc; ac_word=$2
3283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3284$as_echo_n "checking for $ac_word... " >&6; }
a2479b3d 3285if test "${ac_cv_prog_CC+set}" = set; then :
f35db108
WM
3286 $as_echo_n "(cached) " >&6
3287else
3288 if test -n "$CC"; then
3289 ac_cv_prog_CC="$CC" # Let the user override the test.
3290else
3291 ac_prog_rejected=no
3292as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3293for as_dir in $PATH
3294do
3295 IFS=$as_save_IFS
3296 test -z "$as_dir" && as_dir=.
3297 for ac_exec_ext in '' $ac_executable_extensions; do
3298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3299 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3300 ac_prog_rejected=yes
3301 continue
3302 fi
3303 ac_cv_prog_CC="cc"
3304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3305 break 2
3306 fi
3307done
3308 done
3309IFS=$as_save_IFS
3310
3311if test $ac_prog_rejected = yes; then
3312 # We found a bogon in the path, so make sure we never use it.
3313 set dummy $ac_cv_prog_CC
3314 shift
3315 if test $# != 0; then
3316 # We chose a different compiler from the bogus one.
3317 # However, it has the same basename, so the bogon will be chosen
3318 # first if we set CC to just the basename; use the full file name.
3319 shift
3320 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3321 fi
3322fi
3323fi
3324fi
3325CC=$ac_cv_prog_CC
3326if test -n "$CC"; then
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3328$as_echo "$CC" >&6; }
3329else
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3331$as_echo "no" >&6; }
3332fi
3333
3334
3335fi
3336if test -z "$CC"; then
3337 if test -n "$ac_tool_prefix"; then
3338 for ac_prog in cl.exe
3339 do
3340 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3341set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3343$as_echo_n "checking for $ac_word... " >&6; }
a2479b3d 3344if test "${ac_cv_prog_CC+set}" = set; then :
f35db108
WM
3345 $as_echo_n "(cached) " >&6
3346else
3347 if test -n "$CC"; then
3348 ac_cv_prog_CC="$CC" # Let the user override the test.
3349else
3350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3351for as_dir in $PATH
3352do
3353 IFS=$as_save_IFS
3354 test -z "$as_dir" && as_dir=.
3355 for ac_exec_ext in '' $ac_executable_extensions; do
3356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3357 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3359 break 2
3360 fi
3361done
3362 done
3363IFS=$as_save_IFS
3364
3365fi
3366fi
3367CC=$ac_cv_prog_CC
3368if test -n "$CC"; then
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3370$as_echo "$CC" >&6; }
3371else
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3373$as_echo "no" >&6; }
3374fi
3375
3376
3377 test -n "$CC" && break
3378 done
3379fi
3380if test -z "$CC"; then
3381 ac_ct_CC=$CC
3382 for ac_prog in cl.exe
3383do
3384 # Extract the first word of "$ac_prog", so it can be a program name with args.
3385set dummy $ac_prog; ac_word=$2
3386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3387$as_echo_n "checking for $ac_word... " >&6; }
a2479b3d 3388if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
f35db108
WM
3389 $as_echo_n "(cached) " >&6
3390else
3391 if test -n "$ac_ct_CC"; then
3392 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3393else
3394as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3395for as_dir in $PATH
3396do
3397 IFS=$as_save_IFS
3398 test -z "$as_dir" && as_dir=.
3399 for ac_exec_ext in '' $ac_executable_extensions; do
3400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3401 ac_cv_prog_ac_ct_CC="$ac_prog"
3402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3403 break 2
3404 fi
3405done
3406 done
3407IFS=$as_save_IFS
3408
3409fi
3410fi
3411ac_ct_CC=$ac_cv_prog_ac_ct_CC
3412if test -n "$ac_ct_CC"; then
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3414$as_echo "$ac_ct_CC" >&6; }
3415else
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3417$as_echo "no" >&6; }
3418fi
3419
3420
3421 test -n "$ac_ct_CC" && break
3422done
3423
3424 if test "x$ac_ct_CC" = x; then
3425 CC=""
3426 else
3427 case $cross_compiling:$ac_tool_warned in
3428yes:)
3429{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3430$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3431ac_tool_warned=yes ;;
3432esac
3433 CC=$ac_ct_CC
3434 fi
3435fi
3436
3437fi
3438
3439
3440test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3441$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
a2479b3d
L
3442as_fn_error "no acceptable C compiler found in \$PATH
3443See \`config.log' for more details." "$LINENO" 5; }
f35db108
WM
3444
3445# Provide some information about the compiler.
3446$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3447set X $ac_compile
3448ac_compiler=$2
3449for ac_option in --version -v -V -qversion; do
3450 { { ac_try="$ac_compiler $ac_option >&5"
3451case "(($ac_try" in
3452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3453 *) ac_try_echo=$ac_try;;
3454esac
3455eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3456$as_echo "$ac_try_echo"; } >&5
3457 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3458 ac_status=$?
3459 if test -s conftest.err; then
3460 sed '10a\
3461... rest of stderr output deleted ...
3462 10q' conftest.err >conftest.er1
3463 cat conftest.er1 >&5
a2479b3d 3464 rm -f conftest.er1 conftest.err
f35db108 3465 fi
f35db108
WM
3466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3467 test $ac_status = 0; }
3468done
3469
3470cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3471/* end confdefs.h. */
3472
3473int
3474main ()
3475{
3476
3477 ;
3478 return 0;
3479}
3480_ACEOF
3481ac_clean_files_save=$ac_clean_files
a2479b3d 3482ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
f35db108
WM
3483# Try to create an executable without -o first, disregard a.out.
3484# It will help us diagnose broken compilers, and finding out an intuition
3485# of exeext.
a2479b3d
L
3486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3487$as_echo_n "checking for C compiler default output file name... " >&6; }
f35db108
WM
3488ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3489
3490# The possible output files:
3491ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3492
3493ac_rmfiles=
3494for ac_file in $ac_files
3495do
3496 case $ac_file in
3497 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3498 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3499 esac
3500done
3501rm -f $ac_rmfiles
3502
3503if { { ac_try="$ac_link_default"
3504case "(($ac_try" in
3505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3506 *) ac_try_echo=$ac_try;;
3507esac
3508eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3509$as_echo "$ac_try_echo"; } >&5
3510 (eval "$ac_link_default") 2>&5
3511 ac_status=$?
3512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3513 test $ac_status = 0; }; then :
3514 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3515# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3516# in a Makefile. We should not override ac_cv_exeext if it was cached,
3517# so that the user can short-circuit this test for compilers unknown to
3518# Autoconf.
3519for ac_file in $ac_files ''
3520do
3521 test -f "$ac_file" || continue
3522 case $ac_file in
3523 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3524 ;;
3525 [ab].out )
3526 # We found the default executable, but exeext='' is most
3527 # certainly right.
3528 break;;
3529 *.* )
3530 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3531 then :; else
3532 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3533 fi
3534 # We set ac_cv_exeext here because the later test for it is not
3535 # safe: cross compilers may not add the suffix if given an `-o'
3536 # argument, so we may need to know it at that point already.
3537 # Even if this section looks crufty: it has the advantage of
3538 # actually working.
3539 break;;
3540 * )
3541 break;;
3542 esac
3543done
3544test "$ac_cv_exeext" = no && ac_cv_exeext=
3545
3546else
3547 ac_file=''
3548fi
a2479b3d
L
3549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3550$as_echo "$ac_file" >&6; }
f35db108 3551if test -z "$ac_file"; then :
a2479b3d 3552 $as_echo "$as_me: failed program was:" >&5
f35db108
WM
3553sed 's/^/| /' conftest.$ac_ext >&5
3554
3555{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3556$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
a2479b3d
L
3557{ as_fn_set_status 77
3558as_fn_error "C compiler cannot create executables
3559See \`config.log' for more details." "$LINENO" 5; }; }
f35db108 3560fi
f35db108
WM
3561ac_exeext=$ac_cv_exeext
3562
a2479b3d
L
3563# Check that the compiler produces executables we can run. If not, either
3564# the compiler is broken, or we cross compile.
3565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3566$as_echo_n "checking whether the C compiler works... " >&6; }
3567# If not cross compiling, check that we can run a simple program.
3568if test "$cross_compiling" != yes; then
3569 if { ac_try='./$ac_file'
3570 { { case "(($ac_try" in
3571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3572 *) ac_try_echo=$ac_try;;
3573esac
3574eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3575$as_echo "$ac_try_echo"; } >&5
3576 (eval "$ac_try") 2>&5
3577 ac_status=$?
3578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3579 test $ac_status = 0; }; }; then
3580 cross_compiling=no
3581 else
3582 if test "$cross_compiling" = maybe; then
3583 cross_compiling=yes
3584 else
3585 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3586$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3587as_fn_error "cannot run C compiled programs.
3588If you meant to cross compile, use \`--host'.
3589See \`config.log' for more details." "$LINENO" 5; }
3590 fi
3591 fi
3592fi
3593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3594$as_echo "yes" >&6; }
3595
3596rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
f35db108 3597ac_clean_files=$ac_clean_files_save
a2479b3d
L
3598# Check that the compiler produces executables we can run. If not, either
3599# the compiler is broken, or we cross compile.
3600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3601$as_echo_n "checking whether we are cross compiling... " >&6; }
3602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3603$as_echo "$cross_compiling" >&6; }
3604
f35db108
WM
3605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3606$as_echo_n "checking for suffix of executables... " >&6; }
3607if { { ac_try="$ac_link"
3608case "(($ac_try" in
3609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3610 *) ac_try_echo=$ac_try;;
3611esac
3612eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3613$as_echo "$ac_try_echo"; } >&5
3614 (eval "$ac_link") 2>&5
3615 ac_status=$?
3616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3617 test $ac_status = 0; }; then :
3618 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3619# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3620# work properly (i.e., refer to `conftest.exe'), while it won't with
3621# `rm'.
3622for ac_file in conftest.exe conftest conftest.*; do
3623 test -f "$ac_file" || continue
3624 case $ac_file in
3625 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3626 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3627 break;;
3628 * ) break;;
3629 esac
3630done
3631else
3632 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3633$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
a2479b3d
L
3634as_fn_error "cannot compute suffix of executables: cannot compile and link
3635See \`config.log' for more details." "$LINENO" 5; }
f35db108 3636fi
a2479b3d 3637rm -f conftest$ac_cv_exeext
f35db108
WM
3638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3639$as_echo "$ac_cv_exeext" >&6; }
3640
3641rm -f conftest.$ac_ext
3642EXEEXT=$ac_cv_exeext
3643ac_exeext=$EXEEXT
f35db108
WM
3644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3645$as_echo_n "checking for suffix of object files... " >&6; }
a2479b3d 3646if test "${ac_cv_objext+set}" = set; then :
f35db108
WM
3647 $as_echo_n "(cached) " >&6
3648else
3649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3650/* end confdefs.h. */
3651
3652int
3653main ()
3654{
3655
3656 ;
3657 return 0;
3658}
3659_ACEOF
3660rm -f conftest.o conftest.obj
3661if { { ac_try="$ac_compile"
3662case "(($ac_try" in
3663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3664 *) ac_try_echo=$ac_try;;
3665esac
3666eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3667$as_echo "$ac_try_echo"; } >&5
3668 (eval "$ac_compile") 2>&5
3669 ac_status=$?
3670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3671 test $ac_status = 0; }; then :
3672 for ac_file in conftest.o conftest.obj conftest.*; do
3673 test -f "$ac_file" || continue;
3674 case $ac_file in
3675 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3676 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3677 break;;
3678 esac
3679done
3680else
3681 $as_echo "$as_me: failed program was:" >&5
3682sed 's/^/| /' conftest.$ac_ext >&5
3683
3684{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3685$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
a2479b3d
L
3686as_fn_error "cannot compute suffix of object files: cannot compile
3687See \`config.log' for more details." "$LINENO" 5; }
f35db108
WM
3688fi
3689rm -f conftest.$ac_cv_objext conftest.$ac_ext
3690fi
3691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3692$as_echo "$ac_cv_objext" >&6; }
3693OBJEXT=$ac_cv_objext
3694ac_objext=$OBJEXT
3695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3696$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
a2479b3d 3697if test "${ac_cv_c_compiler_gnu+set}" = set; then :
f35db108
WM
3698 $as_echo_n "(cached) " >&6
3699else
3700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3701/* end confdefs.h. */
3702
3703int
3704main ()
3705{
3706#ifndef __GNUC__
3707 choke me
3708#endif
3709
3710 ;
3711 return 0;
3712}
3713_ACEOF
3714if ac_fn_c_try_compile "$LINENO"; then :
3715 ac_compiler_gnu=yes
3716else
3717 ac_compiler_gnu=no
3718fi
3719rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3720ac_cv_c_compiler_gnu=$ac_compiler_gnu
3721
3722fi
3723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3724$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3725if test $ac_compiler_gnu = yes; then
3726 GCC=yes
3727else
3728 GCC=
3729fi
3730ac_test_CFLAGS=${CFLAGS+set}
3731ac_save_CFLAGS=$CFLAGS
3732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3733$as_echo_n "checking whether $CC accepts -g... " >&6; }
a2479b3d 3734if test "${ac_cv_prog_cc_g+set}" = set; then :
f35db108
WM
3735 $as_echo_n "(cached) " >&6
3736else
3737 ac_save_c_werror_flag=$ac_c_werror_flag
3738 ac_c_werror_flag=yes
3739 ac_cv_prog_cc_g=no
3740 CFLAGS="-g"
3741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3742/* end confdefs.h. */
3743
3744int
3745main ()
3746{
3747
3748 ;
3749 return 0;
3750}
3751_ACEOF
3752if ac_fn_c_try_compile "$LINENO"; then :
3753 ac_cv_prog_cc_g=yes
3754else
3755 CFLAGS=""
3756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3757/* end confdefs.h. */
3758
3759int
3760main ()
3761{
3762
3763 ;
3764 return 0;
3765}
3766_ACEOF
3767if ac_fn_c_try_compile "$LINENO"; then :
3768
3769else
3770 ac_c_werror_flag=$ac_save_c_werror_flag
3771 CFLAGS="-g"
3772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3773/* end confdefs.h. */
3774
3775int
3776main ()
3777{
3778
3779 ;
3780 return 0;
3781}
3782_ACEOF
3783if ac_fn_c_try_compile "$LINENO"; then :
3784 ac_cv_prog_cc_g=yes
3785fi
3786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3787fi
3788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3789fi
3790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3791 ac_c_werror_flag=$ac_save_c_werror_flag
3792fi
3793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3794$as_echo "$ac_cv_prog_cc_g" >&6; }
3795if test "$ac_test_CFLAGS" = set; then
3796 CFLAGS=$ac_save_CFLAGS
3797elif test $ac_cv_prog_cc_g = yes; then
3798 if test "$GCC" = yes; then
3799 CFLAGS="-g -O2"
3800 else
3801 CFLAGS="-g"
3802 fi
3803else
3804 if test "$GCC" = yes; then
3805 CFLAGS="-O2"
3806 else
3807 CFLAGS=
3808 fi
3809fi
3810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3811$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
a2479b3d 3812if test "${ac_cv_prog_cc_c89+set}" = set; then :
f35db108
WM
3813 $as_echo_n "(cached) " >&6
3814else
3815 ac_cv_prog_cc_c89=no
3816ac_save_CC=$CC
3817cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3818/* end confdefs.h. */
3819#include <stdarg.h>
3820#include <stdio.h>
3821#include <sys/types.h>
3822#include <sys/stat.h>
3823/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3824struct buf { int x; };
3825FILE * (*rcsopen) (struct buf *, struct stat *, int);
3826static char *e (p, i)
3827 char **p;
3828 int i;
3829{
3830 return p[i];
3831}
3832static char *f (char * (*g) (char **, int), char **p, ...)
3833{
3834 char *s;
3835 va_list v;
3836 va_start (v,p);
3837 s = g (p, va_arg (v,int));
3838 va_end (v);
3839 return s;
3840}
3841
3842/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3843 function prototypes and stuff, but not '\xHH' hex character constants.
3844 These don't provoke an error unfortunately, instead are silently treated
3845 as 'x'. The following induces an error, until -std is added to get
3846 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3847 array size at least. It's necessary to write '\x00'==0 to get something
3848 that's true only with -std. */
3849int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3850
3851/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3852 inside strings and character constants. */
3853#define FOO(x) 'x'
3854int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3855
3856int test (int i, double x);
3857struct s1 {int (*f) (int a);};
3858struct s2 {int (*f) (double a);};
3859int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3860int argc;
3861char **argv;
3862int
3863main ()
3864{
3865return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3866 ;
3867 return 0;
3868}
3869_ACEOF
3870for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3871 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3872do
3873 CC="$ac_save_CC $ac_arg"
3874 if ac_fn_c_try_compile "$LINENO"; then :
3875 ac_cv_prog_cc_c89=$ac_arg
3876fi
3877rm -f core conftest.err conftest.$ac_objext
3878 test "x$ac_cv_prog_cc_c89" != "xno" && break
3879done
3880rm -f conftest.$ac_ext
3881CC=$ac_save_CC
3882
3883fi
3884# AC_CACHE_VAL
3885case "x$ac_cv_prog_cc_c89" in
3886 x)
3887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3888$as_echo "none needed" >&6; } ;;
3889 xno)
3890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3891$as_echo "unsupported" >&6; } ;;
3892 *)
3893 CC="$CC $ac_cv_prog_cc_c89"
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3895$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3896esac
3897if test "x$ac_cv_prog_cc_c89" != xno; then :
3898
3899fi
3900
3901ac_ext=c
3902ac_cpp='$CPP $CPPFLAGS'
3903ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3904ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3905ac_compiler_gnu=$ac_cv_c_compiler_gnu
3906DEPDIR="${am__leading_dot}deps"
3907
3908ac_config_commands="$ac_config_commands depfiles"
3909
3910
3911am_make=${MAKE-make}
3912cat > confinc << 'END'
3913am__doit:
3914 @echo this is the am__doit target
3915.PHONY: am__doit
3916END
3917# If we don't find an include directive, just comment out the code.
3918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3919$as_echo_n "checking for style of include used by $am_make... " >&6; }
3920am__include="#"
3921am__quote=
3922_am_result=none
3923# First try GNU make style include.
3924echo "include confinc" > confmf
3925# Ignore all kinds of additional output from `make'.
3926case `$am_make -s -f confmf 2> /dev/null` in #(
3927*the\ am__doit\ target*)
3928 am__include=include
3929 am__quote=
3930 _am_result=GNU
3931 ;;
3932esac
3933# Now try BSD make style include.
3934if test "$am__include" = "#"; then
3935 echo '.include "confinc"' > confmf
3936 case `$am_make -s -f confmf 2> /dev/null` in #(
3937 *the\ am__doit\ target*)
3938 am__include=.include
3939 am__quote="\""
3940 _am_result=BSD
3941 ;;
3942 esac
3943fi
3944
3945
3946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3947$as_echo "$_am_result" >&6; }
3948rm -f confinc confmf
3949
3950# Check whether --enable-dependency-tracking was given.
3951if test "${enable_dependency_tracking+set}" = set; then :
3952 enableval=$enable_dependency_tracking;
3953fi
3954
3955if test "x$enable_dependency_tracking" != xno; then
3956 am_depcomp="$ac_aux_dir/depcomp"
3957 AMDEPBACKSLASH='\'
f35db108
WM
3958fi
3959 if test "x$enable_dependency_tracking" != xno; then
3960 AMDEP_TRUE=
3961 AMDEP_FALSE='#'
3962else
3963 AMDEP_TRUE='#'
3964 AMDEP_FALSE=
3965fi
3966
3967
3968
3969depcc="$CC" am_compiler_list=
3970
3971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3972$as_echo_n "checking dependency style of $depcc... " >&6; }
a2479b3d 3973if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
f35db108
WM
3974 $as_echo_n "(cached) " >&6
3975else
3976 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3977 # We make a subdir and do the tests there. Otherwise we can end up
3978 # making bogus files that we don't know about and never remove. For
3979 # instance it was reported that on HP-UX the gcc test will end up
3980 # making a dummy file named `D' -- because `-MD' means `put the output
3981 # in D'.
f35db108
WM
3982 mkdir conftest.dir
3983 # Copy depcomp to subdir because otherwise we won't find it if we're
3984 # using a relative directory.
3985 cp "$am_depcomp" conftest.dir
3986 cd conftest.dir
3987 # We will build objects and dependencies in a subdirectory because
3988 # it helps to detect inapplicable dependency modes. For instance
3989 # both Tru64's cc and ICC support -MD to output dependencies as a
3990 # side effect of compilation, but ICC will put the dependencies in
3991 # the current directory while Tru64 will put them in the object
3992 # directory.
3993 mkdir sub
3994
3995 am_cv_CC_dependencies_compiler_type=none
3996 if test "$am_compiler_list" = ""; then
3997 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3998 fi
3999 am__universal=false
4000 case " $depcc " in #(
4001 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4002 esac
4003
4004 for depmode in $am_compiler_list; do
4005 # Setup a source with many dependencies, because some compilers
4006 # like to wrap large dependency lists on column 80 (with \), and
4007 # we should not choose a depcomp mode which is confused by this.
4008 #
4009 # We need to recreate these files for each test, as the compiler may
4010 # overwrite some of them when testing with obscure command lines.
4011 # This happens at least with the AIX C compiler.
4012 : > sub/conftest.c
4013 for i in 1 2 3 4 5 6; do
4014 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4015 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4016 # Solaris 8's {/usr,}/bin/sh.
4017 touch sub/conftst$i.h
4018 done
4019 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4020
4021 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4022 # mode. It turns out that the SunPro C++ compiler does not properly
4023 # handle `-M -o', and we need to detect this. Also, some Intel
4024 # versions had trouble with output in subdirs
4025 am__obj=sub/conftest.${OBJEXT-o}
4026 am__minus_obj="-o $am__obj"
4027 case $depmode in
4028 gcc)
4029 # This depmode causes a compiler race in universal mode.
4030 test "$am__universal" = false || continue
4031 ;;
4032 nosideeffect)
4033 # after this tag, mechanisms are not by side-effect, so they'll
4034 # only be used when explicitly requested
4035 if test "x$enable_dependency_tracking" = xyes; then
4036 continue
4037 else
4038 break
4039 fi
4040 ;;
a2479b3d 4041 msvisualcpp | msvcmsys)
f35db108
WM
4042 # This compiler won't grok `-c -o', but also, the minuso test has
4043 # not run yet. These depmodes are late enough in the game, and
4044 # so weak that their functioning should not be impacted.
4045 am__obj=conftest.${OBJEXT-o}
4046 am__minus_obj=
4047 ;;
4048 none) break ;;
4049 esac
4050 if depmode=$depmode \
4051 source=sub/conftest.c object=$am__obj \
4052 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4053 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4054 >/dev/null 2>conftest.err &&
4055 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4056 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4057 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4058 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4059 # icc doesn't choke on unknown options, it will just issue warnings
4060 # or remarks (even with -Werror). So we grep stderr for any message
4061 # that says an option was ignored or not supported.
4062 # When given -MP, icc 7.0 and 7.1 complain thusly:
4063 # icc: Command line warning: ignoring option '-M'; no argument required
4064 # The diagnosis changed in icc 8.0:
4065 # icc: Command line remark: option '-MP' not supported
4066 if (grep 'ignoring option' conftest.err ||
4067 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4068 am_cv_CC_dependencies_compiler_type=$depmode
4069 break
4070 fi
4071 fi
4072 done
4073
4074 cd ..
4075 rm -rf conftest.dir
4076else
4077 am_cv_CC_dependencies_compiler_type=none
4078fi
4079
4080fi
4081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4082$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4083CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4084
4085 if
4086 test "x$enable_dependency_tracking" != xno \
4087 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4088 am__fastdepCC_TRUE=
4089 am__fastdepCC_FALSE='#'
4090else
4091 am__fastdepCC_TRUE='#'
4092 am__fastdepCC_FALSE=
4093fi
4094
4095
4096ac_ext=cpp
4097ac_cpp='$CXXCPP $CPPFLAGS'
4098ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4099ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4100ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4101if test -z "$CXX"; then
4102 if test -n "$CCC"; then
4103 CXX=$CCC
4104 else
4105 if test -n "$ac_tool_prefix"; then
4106 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4107 do
4108 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4109set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4111$as_echo_n "checking for $ac_word... " >&6; }
a2479b3d 4112if test "${ac_cv_prog_CXX+set}" = set; then :
f35db108
WM
4113 $as_echo_n "(cached) " >&6
4114else
4115 if test -n "$CXX"; then
4116 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4117else
4118as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4119for as_dir in $PATH
4120do
4121 IFS=$as_save_IFS
4122 test -z "$as_dir" && as_dir=.
4123 for ac_exec_ext in '' $ac_executable_extensions; do
4124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4125 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4127 break 2
4128 fi
4129done
4130 done
4131IFS=$as_save_IFS
4132
4133fi
4134fi
4135CXX=$ac_cv_prog_CXX
4136if test -n "$CXX"; then
4137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4138$as_echo "$CXX" >&6; }
4139else
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4141$as_echo "no" >&6; }
4142fi
4143
4144
4145 test -n "$CXX" && break
4146 done
4147fi
4148if test -z "$CXX"; then
4149 ac_ct_CXX=$CXX
4150 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4151do
4152 # Extract the first word of "$ac_prog", so it can be a program name with args.
4153set dummy $ac_prog; ac_word=$2
4154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4155$as_echo_n "checking for $ac_word... " >&6; }
a2479b3d 4156if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
f35db108
WM
4157 $as_echo_n "(cached) " >&6
4158else
4159 if test -n "$ac_ct_CXX"; then
4160 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4161else
4162as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4163for as_dir in $PATH
4164do
4165 IFS=$as_save_IFS
4166 test -z "$as_dir" && as_dir=.
4167 for ac_exec_ext in '' $ac_executable_extensions; do
4168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4169 ac_cv_prog_ac_ct_CXX="$ac_prog"
4170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4171 break 2
4172 fi
4173done
4174 done
4175IFS=$as_save_IFS
4176
4177fi
4178fi
4179ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4180if test -n "$ac_ct_CXX"; then
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4182$as_echo "$ac_ct_CXX" >&6; }
4183else
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4185$as_echo "no" >&6; }
4186fi
4187
4188
4189 test -n "$ac_ct_CXX" && break
4190done
4191
4192 if test "x$ac_ct_CXX" = x; then
4193 CXX="g++"
4194 else
4195 case $cross_compiling:$ac_tool_warned in
4196yes:)
4197{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4198$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4199ac_tool_warned=yes ;;
4200esac
4201 CXX=$ac_ct_CXX
4202 fi
4203fi
4204
4205 fi
4206fi
4207# Provide some information about the compiler.
4208$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4209set X $ac_compile
4210ac_compiler=$2
4211for ac_option in --version -v -V -qversion; do
4212 { { ac_try="$ac_compiler $ac_option >&5"
4213case "(($ac_try" in
4214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4215 *) ac_try_echo=$ac_try;;
4216esac
4217eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4218$as_echo "$ac_try_echo"; } >&5
4219 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4220 ac_status=$?
4221 if test -s conftest.err; then
4222 sed '10a\
4223... rest of stderr output deleted ...
4224 10q' conftest.err >conftest.er1
4225 cat conftest.er1 >&5
a2479b3d 4226 rm -f conftest.er1 conftest.err
f35db108 4227 fi
f35db108
WM
4228 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4229 test $ac_status = 0; }
4230done
4231
4232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4233$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
a2479b3d 4234if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
f35db108
WM
4235 $as_echo_n "(cached) " >&6
4236else
4237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4238/* end confdefs.h. */
4239
4240int
4241main ()
4242{
4243#ifndef __GNUC__
4244 choke me
4245#endif
4246
4247 ;
4248 return 0;
4249}
4250_ACEOF
4251if ac_fn_cxx_try_compile "$LINENO"; then :
4252 ac_compiler_gnu=yes
4253else
4254 ac_compiler_gnu=no
4255fi
4256rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4257ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4258
4259fi
4260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4261$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4262if test $ac_compiler_gnu = yes; then
4263 GXX=yes
4264else
4265 GXX=
4266fi
4267ac_test_CXXFLAGS=${CXXFLAGS+set}
4268ac_save_CXXFLAGS=$CXXFLAGS
4269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4270$as_echo_n "checking whether $CXX accepts -g... " >&6; }
a2479b3d 4271if test "${ac_cv_prog_cxx_g+set}" = set; then :
f35db108
WM
4272 $as_echo_n "(cached) " >&6
4273else
4274 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4275 ac_cxx_werror_flag=yes
4276 ac_cv_prog_cxx_g=no
4277 CXXFLAGS="-g"
4278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4279/* end confdefs.h. */
4280
4281int
4282main ()
4283{
4284
4285 ;
4286 return 0;
4287}
4288_ACEOF
4289if ac_fn_cxx_try_compile "$LINENO"; then :
4290 ac_cv_prog_cxx_g=yes
4291else
4292 CXXFLAGS=""
4293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4294/* end confdefs.h. */
4295
4296int
4297main ()
4298{
4299
4300 ;
4301 return 0;
4302}
4303_ACEOF
4304if ac_fn_cxx_try_compile "$LINENO"; then :
4305
4306else
4307 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4308 CXXFLAGS="-g"
4309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4310/* end confdefs.h. */
4311
4312int
4313main ()
4314{
4315
4316 ;
4317 return 0;
4318}
4319_ACEOF
4320if ac_fn_cxx_try_compile "$LINENO"; then :
4321 ac_cv_prog_cxx_g=yes
4322fi
4323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4324fi
4325rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4326fi
4327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4328 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4329fi
4330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4331$as_echo "$ac_cv_prog_cxx_g" >&6; }
4332if test "$ac_test_CXXFLAGS" = set; then
4333 CXXFLAGS=$ac_save_CXXFLAGS
4334elif test $ac_cv_prog_cxx_g = yes; then
4335 if test "$GXX" = yes; then
4336 CXXFLAGS="-g -O2"
4337 else
4338 CXXFLAGS="-g"
4339 fi
4340else
4341 if test "$GXX" = yes; then
4342 CXXFLAGS="-O2"
4343 else
4344 CXXFLAGS=
4345 fi
4346fi
4347ac_ext=c
4348ac_cpp='$CPP $CPPFLAGS'
4349ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4350ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4351ac_compiler_gnu=$ac_cv_c_compiler_gnu
4352
4353depcc="$CXX" am_compiler_list=
4354
4355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4356$as_echo_n "checking dependency style of $depcc... " >&6; }
a2479b3d 4357if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
f35db108
WM
4358 $as_echo_n "(cached) " >&6
4359else
4360 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4361 # We make a subdir and do the tests there. Otherwise we can end up
4362 # making bogus files that we don't know about and never remove. For
4363 # instance it was reported that on HP-UX the gcc test will end up
4364 # making a dummy file named `D' -- because `-MD' means `put the output
4365 # in D'.
f35db108
WM
4366 mkdir conftest.dir
4367 # Copy depcomp to subdir because otherwise we won't find it if we're
4368 # using a relative directory.
4369 cp "$am_depcomp" conftest.dir
4370 cd conftest.dir
4371 # We will build objects and dependencies in a subdirectory because
4372 # it helps to detect inapplicable dependency modes. For instance
4373 # both Tru64's cc and ICC support -MD to output dependencies as a
4374 # side effect of compilation, but ICC will put the dependencies in
4375 # the current directory while Tru64 will put them in the object
4376 # directory.
4377 mkdir sub
4378
4379 am_cv_CXX_dependencies_compiler_type=none
4380 if test "$am_compiler_list" = ""; then
4381 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4382 fi
4383 am__universal=false
4384 case " $depcc " in #(
4385 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4386 esac
4387
4388 for depmode in $am_compiler_list; do
4389 # Setup a source with many dependencies, because some compilers
4390 # like to wrap large dependency lists on column 80 (with \), and
4391 # we should not choose a depcomp mode which is confused by this.
4392 #
4393 # We need to recreate these files for each test, as the compiler may
4394 # overwrite some of them when testing with obscure command lines.
4395 # This happens at least with the AIX C compiler.
4396 : > sub/conftest.c
4397 for i in 1 2 3 4 5 6; do
4398 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4399 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4400 # Solaris 8's {/usr,}/bin/sh.
4401 touch sub/conftst$i.h
4402 done
4403 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4404
4405 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4406 # mode. It turns out that the SunPro C++ compiler does not properly
4407 # handle `-M -o', and we need to detect this. Also, some Intel
4408 # versions had trouble with output in subdirs
4409 am__obj=sub/conftest.${OBJEXT-o}
4410 am__minus_obj="-o $am__obj"
4411 case $depmode in
4412 gcc)
4413 # This depmode causes a compiler race in universal mode.
4414 test "$am__universal" = false || continue
4415 ;;
4416 nosideeffect)
4417 # after this tag, mechanisms are not by side-effect, so they'll
4418 # only be used when explicitly requested
4419 if test "x$enable_dependency_tracking" = xyes; then
4420 continue
4421 else
4422 break
4423 fi
4424 ;;
a2479b3d 4425 msvisualcpp | msvcmsys)
f35db108
WM
4426 # This compiler won't grok `-c -o', but also, the minuso test has
4427 # not run yet. These depmodes are late enough in the game, and
4428 # so weak that their functioning should not be impacted.
4429 am__obj=conftest.${OBJEXT-o}
4430 am__minus_obj=
4431 ;;
4432 none) break ;;
4433 esac
4434 if depmode=$depmode \
4435 source=sub/conftest.c object=$am__obj \
4436 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4437 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4438 >/dev/null 2>conftest.err &&
4439 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4440 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4441 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4442 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4443 # icc doesn't choke on unknown options, it will just issue warnings
4444 # or remarks (even with -Werror). So we grep stderr for any message
4445 # that says an option was ignored or not supported.
4446 # When given -MP, icc 7.0 and 7.1 complain thusly:
4447 # icc: Command line warning: ignoring option '-M'; no argument required
4448 # The diagnosis changed in icc 8.0:
4449 # icc: Command line remark: option '-MP' not supported
4450 if (grep 'ignoring option' conftest.err ||
4451 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4452 am_cv_CXX_dependencies_compiler_type=$depmode
4453 break
4454 fi
4455 fi
4456 done
4457
4458 cd ..
4459 rm -rf conftest.dir
4460else
4461 am_cv_CXX_dependencies_compiler_type=none
4462fi
4463
4464fi
4465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4466$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4467CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4468
4469 if
4470 test "x$enable_dependency_tracking" != xno \
4471 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4472 am__fastdepCXX_TRUE=
4473 am__fastdepCXX_FALSE='#'
4474else
4475 am__fastdepCXX_TRUE='#'
4476 am__fastdepCXX_FALSE=
4477fi
4478
4479
4480# By default we simply use the C compiler to build assembly code.
4481
4482test "${CCAS+set}" = set || CCAS=$CC
4483test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4484
4485
4486
4487depcc="$CCAS" am_compiler_list=
4488
4489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4490$as_echo_n "checking dependency style of $depcc... " >&6; }
a2479b3d 4491if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then :
f35db108
WM
4492 $as_echo_n "(cached) " >&6
4493else
4494 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4495 # We make a subdir and do the tests there. Otherwise we can end up
4496 # making bogus files that we don't know about and never remove. For
4497 # instance it was reported that on HP-UX the gcc test will end up
4498 # making a dummy file named `D' -- because `-MD' means `put the output
4499 # in D'.
f35db108
WM
4500 mkdir conftest.dir
4501 # Copy depcomp to subdir because otherwise we won't find it if we're
4502 # using a relative directory.
4503 cp "$am_depcomp" conftest.dir
4504 cd conftest.dir
4505 # We will build objects and dependencies in a subdirectory because
4506 # it helps to detect inapplicable dependency modes. For instance
4507 # both Tru64's cc and ICC support -MD to output dependencies as a
4508 # side effect of compilation, but ICC will put the dependencies in
4509 # the current directory while Tru64 will put them in the object
4510 # directory.
4511 mkdir sub
4512
4513 am_cv_CCAS_dependencies_compiler_type=none
4514 if test "$am_compiler_list" = ""; then
4515 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4516 fi
4517 am__universal=false
4518
4519
4520 for depmode in $am_compiler_list; do
4521 # Setup a source with many dependencies, because some compilers
4522 # like to wrap large dependency lists on column 80 (with \), and
4523 # we should not choose a depcomp mode which is confused by this.
4524 #
4525 # We need to recreate these files for each test, as the compiler may
4526 # overwrite some of them when testing with obscure command lines.
4527 # This happens at least with the AIX C compiler.
4528 : > sub/conftest.c
4529 for i in 1 2 3 4 5 6; do
4530 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4531 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4532 # Solaris 8's {/usr,}/bin/sh.
4533 touch sub/conftst$i.h
4534 done
4535 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4536
4537 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4538 # mode. It turns out that the SunPro C++ compiler does not properly
4539 # handle `-M -o', and we need to detect this. Also, some Intel
4540 # versions had trouble with output in subdirs
4541 am__obj=sub/conftest.${OBJEXT-o}
4542 am__minus_obj="-o $am__obj"
4543 case $depmode in
4544 gcc)
4545 # This depmode causes a compiler race in universal mode.
4546 test "$am__universal" = false || continue
4547 ;;
4548 nosideeffect)
4549 # after this tag, mechanisms are not by side-effect, so they'll
4550 # only be used when explicitly requested
4551 if test "x$enable_dependency_tracking" = xyes; then
4552 continue
4553 else
4554 break
4555 fi
4556 ;;
a2479b3d 4557 msvisualcpp | msvcmsys)
f35db108
WM
4558 # This compiler won't grok `-c -o', but also, the minuso test has
4559 # not run yet. These depmodes are late enough in the game, and
4560 # so weak that their functioning should not be impacted.
4561 am__obj=conftest.${OBJEXT-o}
4562 am__minus_obj=
4563 ;;
4564 none) break ;;
4565 esac
4566 if depmode=$depmode \
4567 source=sub/conftest.c object=$am__obj \
4568 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4569 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4570 >/dev/null 2>conftest.err &&
4571 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4572 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4573 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4574 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4575 # icc doesn't choke on unknown options, it will just issue warnings
4576 # or remarks (even with -Werror). So we grep stderr for any message
4577 # that says an option was ignored or not supported.
4578 # When given -MP, icc 7.0 and 7.1 complain thusly:
4579 # icc: Command line warning: ignoring option '-M'; no argument required
4580 # The diagnosis changed in icc 8.0:
4581 # icc: Command line remark: option '-MP' not supported
4582 if (grep 'ignoring option' conftest.err ||
4583 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4584 am_cv_CCAS_dependencies_compiler_type=$depmode
4585 break
4586 fi
4587 fi
4588 done
4589
4590 cd ..
4591 rm -rf conftest.dir
4592else
4593 am_cv_CCAS_dependencies_compiler_type=none
4594fi
4595
4596fi
4597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4598$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4599CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4600
4601 if
4602 test "x$enable_dependency_tracking" != xno \
4603 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
4604 am__fastdepCCAS_TRUE=
4605 am__fastdepCCAS_FALSE='#'
4606else
4607 am__fastdepCCAS_TRUE='#'
4608 am__fastdepCCAS_FALSE=
4609fi
4610
4611
4612
4613enable_dlopen=yes
4614
4615
4616
4617case `pwd` in
4618 *\ * | *\ *)
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4620$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4621esac
4622
4623
4624
a2479b3d
L
4625macro_version='2.2.7a'
4626macro_revision='1.3134'
f35db108
WM
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640ltmain="$ac_aux_dir/ltmain.sh"
4641
f35db108
WM
4642# Backslashify metacharacters that are still active within
4643# double-quoted strings.
4644sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4645
4646# Same as above, but do not quote variable references.
4647double_quote_subst='s/\(["`\\]\)/\\\1/g'
4648
4649# Sed substitution to delay expansion of an escaped shell variable in a
4650# double_quote_subst'ed string.
4651delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4652
4653# Sed substitution to delay expansion of an escaped single quote.
4654delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4655
4656# Sed substitution to avoid accidental globbing in evaled expressions
4657no_glob_subst='s/\*/\\\*/g'
4658
4659ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4660ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4661ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4662
4663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4664$as_echo_n "checking how to print strings... " >&6; }
4665# Test print first, because it will be a builtin if present.
a2479b3d 4666if test "X`print -r -- -n 2>/dev/null`" = X-n && \
f35db108
WM
4667 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4668 ECHO='print -r --'
4669elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4670 ECHO='printf %s\n'
4671else
4672 # Use this function as a fallback that always works.
4673 func_fallback_echo ()
4674 {
4675 eval 'cat <<_LTECHO_EOF
4676$1
4677_LTECHO_EOF'
4678 }
4679 ECHO='func_fallback_echo'
4680fi
4681
4682# func_echo_all arg...
4683# Invoke $ECHO with all args, space-separated.
4684func_echo_all ()
4685{
4686 $ECHO ""
4687}
4688
4689case "$ECHO" in
4690 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4691$as_echo "printf" >&6; } ;;
4692 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4693$as_echo "print -r" >&6; } ;;
4694 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4695$as_echo "cat" >&6; } ;;
4696esac
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4712$as_echo_n "checking for a sed that does not truncate output... " >&6; }
a2479b3d 4713if test "${ac_cv_path_SED+set}" = set; then :
f35db108
WM
4714 $as_echo_n "(cached) " >&6
4715else
4716 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4717 for ac_i in 1 2 3 4 5 6 7; do
4718 ac_script="$ac_script$as_nl$ac_script"
4719 done
4720 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4721 { ac_script=; unset ac_script;}
4722 if test -z "$SED"; then
4723 ac_path_SED_found=false
4724 # Loop through the user's path and test for each of PROGNAME-LIST
4725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4726for as_dir in $PATH
4727do
4728 IFS=$as_save_IFS
4729 test -z "$as_dir" && as_dir=.
4730 for ac_prog in sed gsed; do
4731 for ac_exec_ext in '' $ac_executable_extensions; do
4732 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4733 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4734# Check for GNU ac_path_SED and select it if it is found.
4735 # Check for GNU $ac_path_SED
4736case `"$ac_path_SED" --version 2>&1` in
4737*GNU*)
4738 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4739*)
4740 ac_count=0
4741 $as_echo_n 0123456789 >"conftest.in"
4742 while :
4743 do
4744 cat "conftest.in" "conftest.in" >"conftest.tmp"
4745 mv "conftest.tmp" "conftest.in"
4746 cp "conftest.in" "conftest.nl"
4747 $as_echo '' >> "conftest.nl"
4748 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4749 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4750 as_fn_arith $ac_count + 1 && ac_count=$as_val
4751 if test $ac_count -gt ${ac_path_SED_max-0}; then
4752 # Best one so far, save it but keep looking for a better one
4753 ac_cv_path_SED="$ac_path_SED"
4754 ac_path_SED_max=$ac_count
4755 fi
4756 # 10*(2^10) chars as input seems more than enough
4757 test $ac_count -gt 10 && break
4758 done
4759 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4760esac
4761
4762 $ac_path_SED_found && break 3
4763 done
4764 done
4765 done
4766IFS=$as_save_IFS
4767 if test -z "$ac_cv_path_SED"; then
a2479b3d 4768 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
f35db108
WM
4769 fi
4770else
4771 ac_cv_path_SED=$SED
4772fi
4773
4774fi
4775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4776$as_echo "$ac_cv_path_SED" >&6; }
4777 SED="$ac_cv_path_SED"
4778 rm -f conftest.sed
4779
4780test -z "$SED" && SED=sed
4781Xsed="$SED -e 1s/^X//"
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4794$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
a2479b3d 4795if test "${ac_cv_path_GREP+set}" = set; then :
f35db108
WM
4796 $as_echo_n "(cached) " >&6
4797else
4798 if test -z "$GREP"; then
4799 ac_path_GREP_found=false
4800 # Loop through the user's path and test for each of PROGNAME-LIST
4801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4802for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4803do
4804 IFS=$as_save_IFS
4805 test -z "$as_dir" && as_dir=.
4806 for ac_prog in grep ggrep; do
4807 for ac_exec_ext in '' $ac_executable_extensions; do
4808 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4809 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4810# Check for GNU ac_path_GREP and select it if it is found.
4811 # Check for GNU $ac_path_GREP
4812case `"$ac_path_GREP" --version 2>&1` in
4813*GNU*)
4814 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4815*)
4816 ac_count=0
4817 $as_echo_n 0123456789 >"conftest.in"
4818 while :
4819 do
4820 cat "conftest.in" "conftest.in" >"conftest.tmp"
4821 mv "conftest.tmp" "conftest.in"
4822 cp "conftest.in" "conftest.nl"
4823 $as_echo 'GREP' >> "conftest.nl"
4824 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4825 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4826 as_fn_arith $ac_count + 1 && ac_count=$as_val
4827 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4828 # Best one so far, save it but keep looking for a better one
4829 ac_cv_path_GREP="$ac_path_GREP"
4830 ac_path_GREP_max=$ac_count
4831 fi
4832 # 10*(2^10) chars as input seems more than enough
4833 test $ac_count -gt 10 && break
4834 done
4835 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4836esac
4837
4838 $ac_path_GREP_found && break 3
4839 done
4840 done
4841 done
4842IFS=$as_save_IFS
4843 if test -z "$ac_cv_path_GREP"; then
a2479b3d 4844 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
f35db108
WM
4845 fi
4846else
4847 ac_cv_path_GREP=$GREP
4848fi
4849
4850fi
4851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4852$as_echo "$ac_cv_path_GREP" >&6; }
4853 GREP="$ac_cv_path_GREP"
4854
4855
4856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4857$as_echo_n "checking for egrep... " >&6; }
a2479b3d 4858if test "${ac_cv_path_EGREP+set}" = set; then :
f35db108
WM
4859 $as_echo_n "(cached) " >&6
4860else
4861 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4862 then ac_cv_path_EGREP="$GREP -E"
4863 else
4864 if test -z "$EGREP"; then
4865 ac_path_EGREP_found=false
4866 # Loop through the user's path and test for each of PROGNAME-LIST
4867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4868for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4869do
4870 IFS=$as_save_IFS
4871 test -z "$as_dir" && as_dir=.
4872 for ac_prog in egrep; do
4873 for ac_exec_ext in '' $ac_executable_extensions; do
4874 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4875 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4876# Check for GNU ac_path_EGREP and select it if it is found.
4877 # Check for GNU $ac_path_EGREP
4878case `"$ac_path_EGREP" --version 2>&1` in
4879*GNU*)
4880 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4881*)
4882 ac_count=0
4883 $as_echo_n 0123456789 >"conftest.in"
4884 while :
4885 do
4886 cat "conftest.in" "conftest.in" >"conftest.tmp"
4887 mv "conftest.tmp" "conftest.in"
4888 cp "conftest.in" "conftest.nl"
4889 $as_echo 'EGREP' >> "conftest.nl"
4890 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4891 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4892 as_fn_arith $ac_count + 1 && ac_count=$as_val
4893 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4894 # Best one so far, save it but keep looking for a better one
4895 ac_cv_path_EGREP="$ac_path_EGREP"
4896 ac_path_EGREP_max=$ac_count
4897 fi
4898 # 10*(2^10) chars as input seems more than enough
4899 test $ac_count -gt 10 && break
4900 done
4901 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4902esac
4903
4904 $ac_path_EGREP_found && break 3
4905 done
4906 done
4907 done
4908IFS=$as_save_IFS
4909 if test -z "$ac_cv_path_EGREP"; then
a2479b3d 4910 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
f35db108
WM
4911 fi
4912else
4913 ac_cv_path_EGREP=$EGREP
4914fi
4915
4916 fi
4917fi
4918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4919$as_echo "$ac_cv_path_EGREP" >&6; }
4920 EGREP="$ac_cv_path_EGREP"
4921
4922
4923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4924$as_echo_n "checking for fgrep... " >&6; }
a2479b3d 4925if test "${ac_cv_path_FGREP+set}" = set; then :
f35db108
WM
4926 $as_echo_n "(cached) " >&6
4927else
4928 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4929 then ac_cv_path_FGREP="$GREP -F"
4930 else
4931 if test -z "$FGREP"; then
4932 ac_path_FGREP_found=false
4933 # Loop through the user's path and test for each of PROGNAME-LIST
4934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4935for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4936do
4937 IFS=$as_save_IFS
4938 test -z "$as_dir" && as_dir=.
4939 for ac_prog in fgrep; do
4940 for ac_exec_ext in '' $ac_executable_extensions; do
4941 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4942 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4943# Check for GNU ac_path_FGREP and select it if it is found.
4944 # Check for GNU $ac_path_FGREP
4945case `"$ac_path_FGREP" --version 2>&1` in
4946*GNU*)
4947 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4948*)
4949 ac_count=0
4950 $as_echo_n 0123456789 >"conftest.in"
4951 while :
4952 do
4953 cat "conftest.in" "conftest.in" >"conftest.tmp"
4954 mv "conftest.tmp" "conftest.in"
4955 cp "conftest.in" "conftest.nl"
4956 $as_echo 'FGREP' >> "conftest.nl"
4957 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4958 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4959 as_fn_arith $ac_count + 1 && ac_count=$as_val
4960 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4961 # Best one so far, save it but keep looking for a better one
4962 ac_cv_path_FGREP="$ac_path_FGREP"
4963 ac_path_FGREP_max=$ac_count
4964 fi
4965 # 10*(2^10) chars as input seems more than enough
4966 test $ac_count -gt 10 && break
4967 done
4968 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4969esac
4970
4971 $ac_path_FGREP_found && break 3
4972 done
4973 done
4974 done
4975IFS=$as_save_IFS
4976 if test -z "$ac_cv_path_FGREP"; then
a2479b3d 4977 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
f35db108
WM
4978 fi
4979else
4980 ac_cv_path_FGREP=$FGREP
4981fi
4982
4983 fi
4984fi
4985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4986$as_echo "$ac_cv_path_FGREP" >&6; }
4987 FGREP="$ac_cv_path_FGREP"
4988
4989
4990test -z "$GREP" && GREP=grep
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010# Check whether --with-gnu-ld was given.
5011if test "${with_gnu_ld+set}" = set; then :
5012 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5013else
5014 with_gnu_ld=no
5015fi
5016
5017ac_prog=ld
5018if test "$GCC" = yes; then
5019 # Check if gcc -print-prog-name=ld gives a path.
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5021$as_echo_n "checking for ld used by $CC... " >&6; }
5022 case $host in
5023 *-*-mingw*)
5024 # gcc leaves a trailing carriage return which upsets mingw
5025 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5026 *)
5027 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5028 esac
5029 case $ac_prog in
5030 # Accept absolute paths.
5031 [\\/]* | ?:[\\/]*)
5032 re_direlt='/[^/][^/]*/\.\./'
5033 # Canonicalize the pathname of ld
5034 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5035 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5036 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5037 done
5038 test -z "$LD" && LD="$ac_prog"
5039 ;;
5040 "")
5041 # If it fails, then pretend we aren't using GCC.
5042 ac_prog=ld
5043 ;;
5044 *)
5045 # If it is relative, then search for the first ld in PATH.
5046 with_gnu_ld=unknown
5047 ;;
5048 esac
5049elif test "$with_gnu_ld" = yes; then
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5051$as_echo_n "checking for GNU ld... " >&6; }
5052else
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5054$as_echo_n "checking for non-GNU ld... " >&6; }
5055fi
a2479b3d 5056if test "${lt_cv_path_LD+set}" = set; then :
f35db108
WM
5057 $as_echo_n "(cached) " >&6
5058else
5059 if test -z "$LD"; then
5060 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5061 for ac_dir in $PATH; do
5062 IFS="$lt_save_ifs"
5063 test -z "$ac_dir" && ac_dir=.
5064 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5065 lt_cv_path_LD="$ac_dir/$ac_prog"
5066 # Check to see if the program is GNU ld. I'd rather use --version,
5067 # but apparently some variants of GNU ld only accept -v.
5068 # Break only if it was the GNU/non-GNU ld that we prefer.
5069 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5070 *GNU* | *'with BFD'*)
5071 test "$with_gnu_ld" != no && break
5072 ;;
5073 *)
5074 test "$with_gnu_ld" != yes && break
5075 ;;
5076 esac
5077 fi
5078 done
5079 IFS="$lt_save_ifs"
5080else
5081 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5082fi
5083fi
5084
5085LD="$lt_cv_path_LD"
5086if test -n "$LD"; then
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5088$as_echo "$LD" >&6; }
5089else
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5091$as_echo "no" >&6; }
5092fi
a2479b3d 5093test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
f35db108
WM
5094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5095$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
a2479b3d 5096if test "${lt_cv_prog_gnu_ld+set}" = set; then :
f35db108
WM
5097 $as_echo_n "(cached) " >&6
5098else
5099 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5100case `$LD -v 2>&1 </dev/null` in
5101*GNU* | *'with BFD'*)
5102 lt_cv_prog_gnu_ld=yes
5103 ;;
5104*)
5105 lt_cv_prog_gnu_ld=no
5106 ;;
5107esac
5108fi
5109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5110$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5111with_gnu_ld=$lt_cv_prog_gnu_ld
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5122$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
a2479b3d 5123if test "${lt_cv_path_NM+set}" = set; then :
f35db108
WM
5124 $as_echo_n "(cached) " >&6
5125else
5126 if test -n "$NM"; then
5127 # Let the user override the test.
5128 lt_cv_path_NM="$NM"
5129else
5130 lt_nm_to_check="${ac_tool_prefix}nm"
5131 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5132 lt_nm_to_check="$lt_nm_to_check nm"
5133 fi
5134 for lt_tmp_nm in $lt_nm_to_check; do
5135 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5136 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5137 IFS="$lt_save_ifs"
5138 test -z "$ac_dir" && ac_dir=.
5139 tmp_nm="$ac_dir/$lt_tmp_nm"
5140 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5141 # Check to see if the nm accepts a BSD-compat flag.
5142 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5143 # nm: unknown option "B" ignored
5144 # Tru64's nm complains that /dev/null is an invalid object file
5145 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5146 */dev/null* | *'Invalid file or object type'*)
5147 lt_cv_path_NM="$tmp_nm -B"
5148 break
5149 ;;
5150 *)
5151 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5152 */dev/null*)
5153 lt_cv_path_NM="$tmp_nm -p"
5154 break
5155 ;;
5156 *)
5157 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5158 continue # so that we can try to find one that supports BSD flags
5159 ;;
5160 esac
5161 ;;
5162 esac
5163 fi
5164 done
5165 IFS="$lt_save_ifs"
5166 done
5167 : ${lt_cv_path_NM=no}
5168fi
5169fi
5170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5171$as_echo "$lt_cv_path_NM" >&6; }
5172if test "$lt_cv_path_NM" != "no"; then
5173 NM="$lt_cv_path_NM"
5174else
5175 # Didn't find any BSD compatible name lister, look for dumpbin.
5176 if test -n "$DUMPBIN"; then :
5177 # Let the user override the test.
5178 else
5179 if test -n "$ac_tool_prefix"; then
5180 for ac_prog in dumpbin "link -dump"
5181 do
5182 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5183set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5185$as_echo_n "checking for $ac_word... " >&6; }
a2479b3d 5186if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
f35db108
WM
5187 $as_echo_n "(cached) " >&6
5188else
5189 if test -n "$DUMPBIN"; then
5190 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5191else
5192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5193for as_dir in $PATH
5194do
5195 IFS=$as_save_IFS
5196 test -z "$as_dir" && as_dir=.
5197 for ac_exec_ext in '' $ac_executable_extensions; do
5198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5199 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5201 break 2
5202 fi
5203done
5204 done
5205IFS=$as_save_IFS
5206
5207fi
5208fi
5209DUMPBIN=$ac_cv_prog_DUMPBIN
5210if test -n "$DUMPBIN"; then
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5212$as_echo "$DUMPBIN" >&6; }
5213else
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5215$as_echo "no" >&6; }
5216fi
5217
5218
5219 test -n "$DUMPBIN" && break
5220 done
5221fi
5222if test -z "$DUMPBIN"; then
5223 ac_ct_DUMPBIN=$DUMPBIN
5224 for ac_prog in dumpbin "link -dump"
5225do
5226 # Extract the first word of "$ac_prog", so it can be a program name with args.
5227set dummy $ac_prog; ac_word=$2
5228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5229$as_echo_n "checking for $ac_word... " >&6; }
a2479b3d 5230if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
f35db108
WM
5231 $as_echo_n "(cached) " >&6
5232else
5233 if test -n "$ac_ct_DUMPBIN"; then
5234 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5235else
5236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5237for as_dir in $PATH
5238do
5239 IFS=$as_save_IFS
5240 test -z "$as_dir" && as_dir=.
5241 for ac_exec_ext in '' $ac_executable_extensions; do
5242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5243 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5245 break 2
5246 fi
5247done
5248 done
5249IFS=$as_save_IFS
5250
5251fi
5252fi
5253ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5254if test -n "$ac_ct_DUMPBIN"; then
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5256$as_echo "$ac_ct_DUMPBIN" >&6; }
5257else
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5259$as_echo "no" >&6; }
5260fi
5261
5262
5263 test -n "$ac_ct_DUMPBIN" && break
5264done
5265
5266 if test "x$ac_ct_DUMPBIN" = x; then
5267 DUMPBIN=":"
5268 else
5269 case $cross_compiling:$ac_tool_warned in
5270yes:)
5271{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5272$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5273ac_tool_warned=yes ;;
5274esac
5275 DUMPBIN=$ac_ct_DUMPBIN
5276 fi
5277fi
5278
5279 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5280 *COFF*)
5281 DUMPBIN="$DUMPBIN -symbols"
5282 ;;
5283 *)
5284 DUMPBIN=:
5285 ;;
5286 esac
5287 fi
5288
5289 if test "$DUMPBIN" != ":"; then
5290 NM="$DUMPBIN"
5291 fi
5292fi
5293test -z "$NM" && NM=nm
5294
5295
5296
5297
5298
5299
5300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5301$as_echo_n "checking the name lister ($NM) interface... " >&6; }
a2479b3d 5302if test "${lt_cv_nm_interface+set}" = set; then :
f35db108
WM
5303 $as_echo_n "(cached) " >&6
5304else
5305 lt_cv_nm_interface="BSD nm"
5306 echo "int some_variable = 0;" > conftest.$ac_ext
5307 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5308 (eval "$ac_compile" 2>conftest.err)
5309 cat conftest.err >&5
5310 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5311 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5312 cat conftest.err >&5
5313 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5314 cat conftest.out >&5
5315 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5316 lt_cv_nm_interface="MS dumpbin"
5317 fi
5318 rm -f conftest*
5319fi
5320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5321$as_echo "$lt_cv_nm_interface" >&6; }
5322
5323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5324$as_echo_n "checking whether ln -s works... " >&6; }
5325LN_S=$as_ln_s
5326if test "$LN_S" = "ln -s"; then
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5328$as_echo "yes" >&6; }
5329else
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5331$as_echo "no, using $LN_S" >&6; }
5332fi
5333
5334# find the maximum length of command line arguments
5335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5336$as_echo_n "checking the maximum length of command line arguments... " >&6; }
a2479b3d 5337if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
f35db108
WM
5338 $as_echo_n "(cached) " >&6
5339else
5340 i=0
5341 teststring="ABCD"
5342
5343 case $build_os in
5344 msdosdjgpp*)
5345 # On DJGPP, this test can blow up pretty badly due to problems in libc
5346 # (any single argument exceeding 2000 bytes causes a buffer overrun
5347 # during glob expansion). Even if it were fixed, the result of this
5348 # check would be larger than it should be.
5349 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5350 ;;
5351
5352 gnu*)
5353 # Under GNU Hurd, this test is not required because there is
5354 # no limit to the length of command line arguments.
5355 # Libtool will interpret -1 as no limit whatsoever
5356 lt_cv_sys_max_cmd_len=-1;
5357 ;;
5358
5359 cygwin* | mingw* | cegcc*)
5360 # On Win9x/ME, this test blows up -- it succeeds, but takes
5361 # about 5 minutes as the teststring grows exponentially.
5362 # Worse, since 9x/ME are not pre-emptively multitasking,
5363 # you end up with a "frozen" computer, even though with patience
5364 # the test eventually succeeds (with a max line length of 256k).
5365 # Instead, let's just punt: use the minimum linelength reported by
5366 # all of the supported platforms: 8192 (on NT/2K/XP).
5367 lt_cv_sys_max_cmd_len=8192;
5368 ;;
5369
5370 mint*)
5371 # On MiNT this can take a long time and run out of memory.
5372 lt_cv_sys_max_cmd_len=8192;
5373 ;;
5374
5375 amigaos*)
5376 # On AmigaOS with pdksh, this test takes hours, literally.
5377 # So we just punt and use a minimum line length of 8192.
5378 lt_cv_sys_max_cmd_len=8192;
5379 ;;
5380
5381 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5382 # This has been around since 386BSD, at least. Likely further.
5383 if test -x /sbin/sysctl; then
5384 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5385 elif test -x /usr/sbin/sysctl; then
5386 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5387 else
5388 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5389 fi
5390 # And add a safety zone
5391 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5392 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5393 ;;
5394
5395 interix*)
5396 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5397 lt_cv_sys_max_cmd_len=196608
5398 ;;
5399
f35db108
WM
5400 osf*)
5401 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5402 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5403 # nice to cause kernel panics so lets avoid the loop below.
5404 # First set a reasonable default.
5405 lt_cv_sys_max_cmd_len=16384
5406 #
5407 if test -x /sbin/sysconfig; then
5408 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5409 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5410 esac
5411 fi
5412 ;;
5413 sco3.2v5*)
5414 lt_cv_sys_max_cmd_len=102400
5415 ;;
5416 sysv5* | sco5v6* | sysv4.2uw2*)
5417 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5418 if test -n "$kargmax"; then
5419 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5420 else
5421 lt_cv_sys_max_cmd_len=32768
5422 fi
5423 ;;
5424 *)
5425 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5426 if test -n "$lt_cv_sys_max_cmd_len"; then
5427 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5428 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5429 else
5430 # Make teststring a little bigger before we do anything with it.
5431 # a 1K string should be a reasonable start.
5432 for i in 1 2 3 4 5 6 7 8 ; do
5433 teststring=$teststring$teststring
5434 done
5435 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5436 # If test is not a shell built-in, we'll probably end up computing a
5437 # maximum length that is only half of the actual maximum length, but
5438 # we can't tell.
a2479b3d 5439 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
f35db108
WM
5440 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5441 test $i != 17 # 1/2 MB should be enough
5442 do
5443 i=`expr $i + 1`
5444 teststring=$teststring$teststring
5445 done
5446 # Only check the string length outside the loop.
5447 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5448 teststring=
5449 # Add a significant safety factor because C++ compilers can tack on
5450 # massive amounts of additional arguments before passing them to the
5451 # linker. It appears as though 1/2 is a usable value.
5452 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5453 fi
5454 ;;
5455 esac
5456
5457fi
5458
5459if test -n $lt_cv_sys_max_cmd_len ; then
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5461$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5462else
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5464$as_echo "none" >&6; }
5465fi
5466max_cmd_len=$lt_cv_sys_max_cmd_len
5467
5468
5469
5470
5471
5472
5473: ${CP="cp -f"}
5474: ${MV="mv -f"}
5475: ${RM="rm -f"}
5476
5477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5478$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5479# Try some XSI features
5480xsi_shell=no
5481( _lt_dummy="a/b/c"
a2479b3d
L
5482 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5483 = c,a/b,, \
f35db108
WM
5484 && eval 'test $(( 1 + 1 )) -eq 2 \
5485 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5486 && xsi_shell=yes
5487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5488$as_echo "$xsi_shell" >&6; }
5489
5490
5491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5492$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5493lt_shell_append=no
5494( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5495 >/dev/null 2>&1 \
5496 && lt_shell_append=yes
5497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5498$as_echo "$lt_shell_append" >&6; }
5499
5500
5501if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5502 lt_unset=unset
5503else
5504 lt_unset=false
5505fi
5506
5507
5508
5509
5510
5511# test EBCDIC or ASCII
5512case `echo X|tr X '\101'` in
5513 A) # ASCII based system
5514 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5515 lt_SP2NL='tr \040 \012'
5516 lt_NL2SP='tr \015\012 \040\040'
5517 ;;
5518 *) # EBCDIC based system
5519 lt_SP2NL='tr \100 \n'
5520 lt_NL2SP='tr \r\n \100\100'
5521 ;;
5522esac
5523
5524
5525
5526
5527
5528
5529
5530
5531
f35db108
WM
5532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5533$as_echo_n "checking for $LD option to reload object files... " >&6; }
a2479b3d 5534if test "${lt_cv_ld_reload_flag+set}" = set; then :
f35db108
WM
5535 $as_echo_n "(cached) " >&6
5536else
5537 lt_cv_ld_reload_flag='-r'
5538fi
5539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5540$as_echo "$lt_cv_ld_reload_flag" >&6; }
5541reload_flag=$lt_cv_ld_reload_flag
5542case $reload_flag in
5543"" | " "*) ;;
5544*) reload_flag=" $reload_flag" ;;
5545esac
5546reload_cmds='$LD$reload_flag -o $output$reload_objs'
5547case $host_os in
f35db108
WM
5548 darwin*)
5549 if test "$GCC" = yes; then
5550 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5551 else
5552 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5553 fi
5554 ;;
5555esac
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565if test -n "$ac_tool_prefix"; then
5566 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5567set dummy ${ac_tool_prefix}objdump; ac_word=$2
5568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5569$as_echo_n "checking for $ac_word... " >&6; }
a2479b3d 5570if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
f35db108
WM
5571 $as_echo_n "(cached) " >&6
5572else
5573 if test -n "$OBJDUMP"; then
5574 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5575else
5576as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5577for as_dir in $PATH
5578do
5579 IFS=$as_save_IFS
5580 test -z "$as_dir" && as_dir=.
5581 for ac_exec_ext in '' $ac_executable_extensions; do
5582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5583 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5585 break 2
5586 fi
5587done
5588 done
5589IFS=$as_save_IFS
5590
5591fi
5592fi
5593OBJDUMP=$ac_cv_prog_OBJDUMP
5594if test -n "$OBJDUMP"; then
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5596$as_echo "$OBJDUMP" >&6; }
5597else
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5599$as_echo "no" >&6; }
5600fi
5601
5602
5603fi
5604if test -z "$ac_cv_prog_OBJDUMP"; then
5605 ac_ct_OBJDUMP=$OBJDUMP
5606 # Extract the first word of "objdump", so it can be a program name with args.
5607set dummy objdump; ac_word=$2
5608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5609$as_echo_n "checking for $ac_word... " >&6; }
a2479b3d 5610if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
f35db108
WM
5611 $as_echo_n "(cached) " >&6
5612else
5613 if test -n "$ac_ct_OBJDUMP"; then
5614 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5615else
5616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5617for as_dir in $PATH
5618do
5619 IFS=$as_save_IFS
5620 test -z "$as_dir" && as_dir=.
5621 for ac_exec_ext in '' $ac_executable_extensions; do
5622 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5623 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5625 break 2
5626 fi
5627done
5628 done
5629IFS=$as_save_IFS
5630
5631fi
5632fi
5633ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5634if test -n "$ac_ct_OBJDUMP"; then
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5636$as_echo "$ac_ct_OBJDUMP" >&6; }
5637else
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5639$as_echo "no" >&6; }
5640fi
5641
5642 if test "x$ac_ct_OBJDUMP" = x; then
5643 OBJDUMP="false"
5644 else
5645 case $cross_compiling:$ac_tool_warned in
5646yes:)
5647{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5648$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5649ac_tool_warned=yes ;;
5650esac
5651 OBJDUMP=$ac_ct_OBJDUMP
5652 fi
5653else
5654 OBJDUMP="$ac_cv_prog_OBJDUMP"
5655fi
5656
5657test -z "$OBJDUMP" && OBJDUMP=objdump
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5668$as_echo_n "checking how to recognize dependent libraries... " >&6; }
a2479b3d 5669if test "${lt_cv_deplibs_check_method+set}" = set; then :
f35db108
WM
5670 $as_echo_n "(cached) " >&6
5671else
5672 lt_cv_file_magic_cmd='$MAGIC_CMD'
5673lt_cv_file_magic_test_file=
5674lt_cv_deplibs_check_method='unknown'
5675# Need to set the preceding variable on all platforms that support
5676# interlibrary dependencies.
5677# 'none' -- dependencies not supported.
5678# `unknown' -- same as none, but documents that we really don't know.
5679# 'pass_all' -- all dependencies passed with no checks.
5680# 'test_compile' -- check by making test program.
5681# 'file_magic [[regex]]' -- check by looking for files in library path
5682# which responds to the $file_magic_cmd with a given extended regex.
5683# If you have `file' or equivalent on your system and you're not sure
5684# whether `pass_all' will *always* work, you probably want this one.
5685
5686case $host_os in
5687aix[4-9]*)
5688 lt_cv_deplibs_check_method=pass_all
5689 ;;
5690
5691beos*)
5692 lt_cv_deplibs_check_method=pass_all
5693 ;;
5694
5695bsdi[45]*)
5696 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5697 lt_cv_file_magic_cmd='/usr/bin/file -L'
5698 lt_cv_file_magic_test_file=/shlib/libc.so
5699 ;;
5700
5701cygwin*)
5702 # func_win32_libid is a shell function defined in ltmain.sh
5703 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5704 lt_cv_file_magic_cmd='func_win32_libid'
5705 ;;
5706
5707mingw* | pw32*)
5708 # Base MSYS/MinGW do not provide the 'file' command needed by
5709 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5710 # unless we find 'file', for example because we are cross-compiling.
5711 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5712 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5713 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5714 lt_cv_file_magic_cmd='func_win32_libid'
5715 else
a2479b3d 5716 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
f35db108
WM
5717 lt_cv_file_magic_cmd='$OBJDUMP -f'
5718 fi
5719 ;;
5720
5721cegcc*)
5722 # use the weaker test based on 'objdump'. See mingw*.
5723 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5724 lt_cv_file_magic_cmd='$OBJDUMP -f'
5725 ;;
5726
5727darwin* | rhapsody*)
5728 lt_cv_deplibs_check_method=pass_all
5729 ;;
5730
5731freebsd* | dragonfly*)
5732 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5733 case $host_cpu in
5734 i*86 )
5735 # Not sure whether the presence of OpenBSD here was a mistake.
5736 # Let's accept both of them until this is cleared up.
5737 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5738 lt_cv_file_magic_cmd=/usr/bin/file
5739 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5740 ;;
5741 esac
5742 else
5743 lt_cv_deplibs_check_method=pass_all
5744 fi
5745 ;;
5746
5747gnu*)
5748 lt_cv_deplibs_check_method=pass_all
5749 ;;
5750
5751haiku*)
5752 lt_cv_deplibs_check_method=pass_all
5753 ;;
5754
5755hpux10.20* | hpux11*)
5756 lt_cv_file_magic_cmd=/usr/bin/file
5757 case $host_cpu in
5758 ia64*)
5759 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5760 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5761 ;;
5762 hppa*64*)
5763 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]'
5764 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5765 ;;
5766 *)
5767 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5768 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5769 ;;
5770 esac
5771 ;;
5772
5773interix[3-9]*)
5774 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5775 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5776 ;;
5777
5778irix5* | irix6* | nonstopux*)
5779 case $LD in
5780 *-32|*"-32 ") libmagic=32-bit;;
5781 *-n32|*"-n32 ") libmagic=N32;;
5782 *-64|*"-64 ") libmagic=64-bit;;
5783 *) libmagic=never-match;;
5784 esac
5785 lt_cv_deplibs_check_method=pass_all
5786 ;;
5787
a2479b3d 5788# This must be Linux ELF.
f35db108
WM
5789linux* | k*bsd*-gnu | kopensolaris*-gnu)
5790 lt_cv_deplibs_check_method=pass_all
5791 ;;
5792
a2479b3d 5793netbsd*)
f35db108
WM
5794 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5795 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5796 else
5797 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5798 fi
5799 ;;
5800
5801newos6*)
5802 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5803 lt_cv_file_magic_cmd=/usr/bin/file
5804 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5805 ;;
5806
5807*nto* | *qnx*)
5808 lt_cv_deplibs_check_method=pass_all
5809 ;;
5810
5811openbsd*)
5812 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5813 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5814 else
5815 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5816 fi
5817 ;;
5818
5819osf3* | osf4* | osf5*)
5820 lt_cv_deplibs_check_method=pass_all
5821 ;;
5822
5823rdos*)
5824 lt_cv_deplibs_check_method=pass_all
5825 ;;
5826
5827solaris*)
5828 lt_cv_deplibs_check_method=pass_all
5829 ;;
5830
5831sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5832 lt_cv_deplibs_check_method=pass_all
5833 ;;
5834
5835sysv4 | sysv4.3*)
5836 case $host_vendor in
5837 motorola)
5838 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]'
5839 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5840 ;;
5841 ncr)
5842 lt_cv_deplibs_check_method=pass_all
5843 ;;
5844 sequent)
5845 lt_cv_file_magic_cmd='/bin/file'
5846 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5847 ;;
5848 sni)
5849 lt_cv_file_magic_cmd='/bin/file'
5850 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5851 lt_cv_file_magic_test_file=/lib/libc.so
5852 ;;
5853 siemens)
5854 lt_cv_deplibs_check_method=pass_all
5855 ;;
5856 pc)
5857 lt_cv_deplibs_check_method=pass_all
5858 ;;
5859 esac
5860 ;;
5861
5862tpf*)
5863 lt_cv_deplibs_check_method=pass_all
5864 ;;
5865esac
5866
5867fi
5868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5869$as_echo "$lt_cv_deplibs_check_method" >&6; }
f35db108
WM
5870file_magic_cmd=$lt_cv_file_magic_cmd
5871deplibs_check_method=$lt_cv_deplibs_check_method
5872test -z "$deplibs_check_method" && deplibs_check_method=unknown
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
f35db108
WM
5883
5884
5885if test -n "$ac_tool_prefix"; then
a2479b3d
L
5886 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5887set dummy ${ac_tool_prefix}ar; ac_word=$2
f35db108
WM
5888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5889$as_echo_n "checking for $ac_word... " >&6; }
a2479b3d 5890if test "${ac_cv_prog_AR+set}" = set; then :
f35db108
WM
5891 $as_echo_n "(cached) " >&6
5892else
a2479b3d
L
5893 if test -n "$AR"; then
5894 ac_cv_prog_AR="$AR" # Let the user override the test.
f35db108
WM
5895else
5896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5897for as_dir in $PATH
5898do
5899 IFS=$as_save_IFS
5900 test -z "$as_dir" && as_dir=.
5901 for ac_exec_ext in '' $ac_executable_extensions; do
5902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a2479b3d 5903 ac_cv_prog_AR="${ac_tool_prefix}ar"
f35db108
WM
5904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5905 break 2
5906 fi
5907done
5908 done
5909IFS=$as_save_IFS
5910
5911fi
5912fi
a2479b3d
L
5913AR=$ac_cv_prog_AR
5914if test -n "$AR"; then
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5916$as_echo "$AR" >&6; }
f35db108
WM
5917else
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5919$as_echo "no" >&6; }
5920fi
5921
5922
5923fi
a2479b3d
L
5924if test -z "$ac_cv_prog_AR"; then
5925 ac_ct_AR=$AR
5926 # Extract the first word of "ar", so it can be a program name with args.
5927set dummy ar; ac_word=$2
f35db108
WM
5928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5929$as_echo_n "checking for $ac_word... " >&6; }
a2479b3d 5930if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
f35db108
WM
5931 $as_echo_n "(cached) " >&6
5932else
a2479b3d
L
5933 if test -n "$ac_ct_AR"; then
5934 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
f35db108
WM
5935else
5936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5937for as_dir in $PATH
5938do
5939 IFS=$as_save_IFS
5940 test -z "$as_dir" && as_dir=.
5941 for ac_exec_ext in '' $ac_executable_extensions; do
5942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a2479b3d 5943 ac_cv_prog_ac_ct_AR="ar"
f35db108
WM
5944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5945 break 2
5946 fi
5947done
5948 done
5949IFS=$as_save_IFS
5950
5951fi
5952fi
a2479b3d
L
5953ac_ct_AR=$ac_cv_prog_ac_ct_AR
5954if test -n "$ac_ct_AR"; then
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5956$as_echo "$ac_ct_AR" >&6; }
f35db108
WM
5957else
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5959$as_echo "no" >&6; }
5960fi
5961
a2479b3d
L
5962 if test "x$ac_ct_AR" = x; then
5963 AR="false"
f35db108
WM
5964 else
5965 case $cross_compiling:$ac_tool_warned in
5966yes:)
5967{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5968$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5969ac_tool_warned=yes ;;
5970esac
a2479b3d 5971 AR=$ac_ct_AR
f35db108
WM
5972 fi
5973else
a2479b3d 5974 AR="$ac_cv_prog_AR"
f35db108
WM
5975fi
5976
a2479b3d
L
5977test -z "$AR" && AR=ar
5978test -z "$AR_FLAGS" && AR_FLAGS=cru
f35db108
WM
5979
5980
5981
5982
5983
5984
5985
5986
5987
f35db108
WM
5988
5989
5990if test -n "$ac_tool_prefix"; then
a2479b3d
L
5991 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5992set dummy ${ac_tool_prefix}strip; ac_word=$2
f35db108
WM
5993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5994$as_echo_n "checking for $ac_word... " >&6; }
a2479b3d 5995if test "${ac_cv_prog_STRIP+set}" = set; then :
f35db108
WM
5996 $as_echo_n "(cached) " >&6
5997else
a2479b3d
L
5998 if test -n "$STRIP"; then
5999 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
f35db108
WM
6000else
6001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6002for as_dir in $PATH
6003do
6004 IFS=$as_save_IFS
6005 test -z "$as_dir" && as_dir=.
6006 for ac_exec_ext in '' $ac_executable_extensions; do
6007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a2479b3d 6008 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
f35db108
WM
6009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6010 break 2
6011 fi
6012done
6013 done
6014IFS=$as_save_IFS
6015
6016fi
6017fi
a2479b3d
L
6018STRIP=$ac_cv_prog_STRIP
6019if test -n "$STRIP"; then
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6021$as_echo "$STRIP" >&6; }
f35db108
WM
6022else
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6024$as_echo "no" >&6; }
6025fi
6026
6027
f35db108 6028fi
a2479b3d
L
6029if test -z "$ac_cv_prog_STRIP"; then
6030 ac_ct_STRIP=$STRIP
6031 # Extract the first word of "strip", so it can be a program name with args.
6032set dummy strip; ac_word=$2
f35db108
WM
6033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6034$as_echo_n "checking for $ac_word... " >&6; }
a2479b3d 6035if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
f35db108
WM
6036 $as_echo_n "(cached) " >&6
6037else
6038 if test -n "$ac_ct_STRIP"; then
6039 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6040else
6041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6042for as_dir in $PATH
6043do
6044 IFS=$as_save_IFS
6045 test -z "$as_dir" && as_dir=.
6046 for ac_exec_ext in '' $ac_executable_extensions; do
6047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6048 ac_cv_prog_ac_ct_STRIP="strip"
6049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6050 break 2
6051 fi
6052done
6053 done
6054IFS=$as_save_IFS
6055
6056fi
6057fi
6058ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6059if test -n "$ac_ct_STRIP"; then
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6061$as_echo "$ac_ct_STRIP" >&6; }
6062else
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6064$as_echo "no" >&6; }
6065fi
6066
6067 if test "x$ac_ct_STRIP" = x; then
6068 STRIP=":"
6069 else
6070 case $cross_compiling:$ac_tool_warned in
6071yes:)
6072{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6073$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6074ac_tool_warned=yes ;;
6075esac
6076 STRIP=$ac_ct_STRIP
6077 fi
6078else
6079 STRIP="$ac_cv_prog_STRIP"
6080fi
6081
6082test -z "$STRIP" && STRIP=:
6083
6084
6085
6086
6087
6088
6089if test -n "$ac_tool_prefix"; then
6090 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6091set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6093$as_echo_n "checking for $ac_word... " >&6; }
a2479b3d 6094if test "${ac_cv_prog_RANLIB+set}" = set; then :
f35db108
WM
6095 $as_echo_n "(cached) " >&6
6096else
6097 if test -n "$RANLIB"; then
6098 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6099else
6100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6101for as_dir in $PATH
6102do
6103 IFS=$as_save_IFS
6104 test -z "$as_dir" && as_dir=.
6105 for ac_exec_ext in '' $ac_executable_extensions; do
6106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6107 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6109 break 2
6110 fi
6111done
6112 done
6113IFS=$as_save_IFS
6114
6115fi
6116fi
6117RANLIB=$ac_cv_prog_RANLIB
6118if test -n "$RANLIB"; then
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6120$as_echo "$RANLIB" >&6; }
6121else
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6123$as_echo "no" >&6; }
6124fi
6125
6126
6127fi
6128if test -z "$ac_cv_prog_RANLIB"; then
6129 ac_ct_RANLIB=$RANLIB
6130 # Extract the first word of "ranlib", so it can be a program name with args.
6131set dummy ranlib; ac_word=$2
6132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6133$as_echo_n "checking for $ac_word... " >&6; }
a2479b3d 6134if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
f35db108
WM
6135 $as_echo_n "(cached) " >&6
6136else
6137 if test -n "$ac_ct_RANLIB"; then
6138 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6139else
6140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6141for as_dir in $PATH
6142do
6143 IFS=$as_save_IFS
6144 test -z "$as_dir" && as_dir=.
6145 for ac_exec_ext in '' $ac_executable_extensions; do
6146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6147 ac_cv_prog_ac_ct_RANLIB="ranlib"
6148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6149 break 2
6150 fi
6151done
6152 done
6153IFS=$as_save_IFS
6154
6155fi
6156fi
6157ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6158if test -n "$ac_ct_RANLIB"; then
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6160$as_echo "$ac_ct_RANLIB" >&6; }
6161else
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6163$as_echo "no" >&6; }
6164fi
6165
6166 if test "x$ac_ct_RANLIB" = x; then
6167 RANLIB=":"
6168 else
6169 case $cross_compiling:$ac_tool_warned in
6170yes:)
6171{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6172$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6173ac_tool_warned=yes ;;
6174esac
6175 RANLIB=$ac_ct_RANLIB
6176 fi
6177else
6178 RANLIB="$ac_cv_prog_RANLIB"
6179fi
6180
6181test -z "$RANLIB" && RANLIB=:
6182
6183
6184
6185
6186
6187
6188# Determine commands to create old-style static archives.
6189old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6190old_postinstall_cmds='chmod 644 $oldlib'
6191old_postuninstall_cmds=
6192
6193if test -n "$RANLIB"; then
6194 case $host_os in
6195 openbsd*)
a2479b3d 6196 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
f35db108
WM
6197 ;;
6198 *)
a2479b3d 6199 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
f35db108
WM
6200 ;;
6201 esac
a2479b3d 6202 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
f35db108
WM
6203fi
6204
6205case $host_os in
6206 darwin*)
6207 lock_old_archive_extraction=yes ;;
6208 *)
6209 lock_old_archive_extraction=no ;;
6210esac
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250# If no C compiler was specified, use CC.
6251LTCC=${LTCC-"$CC"}
6252
6253# If no C compiler flags were specified, use CFLAGS.
6254LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6255
6256# Allow CC to be a program name with arguments.
6257compiler=$CC
6258
6259
6260# Check for command to grab the raw symbol name followed by C symbol from nm.
6261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6262$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
a2479b3d 6263if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
f35db108
WM
6264 $as_echo_n "(cached) " >&6
6265else
6266
6267# These are sane defaults that work on at least a few old systems.
6268# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6269
6270# Character class describing NM global symbol codes.
6271symcode='[BCDEGRST]'
6272
6273# Regexp to match symbols that can be accessed directly from C.
6274sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6275
6276# Define system-specific variables.
6277case $host_os in
6278aix*)
6279 symcode='[BCDT]'
6280 ;;
6281cygwin* | mingw* | pw32* | cegcc*)
6282 symcode='[ABCDGISTW]'
6283 ;;
6284hpux*)
6285 if test "$host_cpu" = ia64; then
6286 symcode='[ABCDEGRST]'
6287 fi
6288 ;;
6289irix* | nonstopux*)
6290 symcode='[BCDEGRST]'
6291 ;;
6292osf*)
6293 symcode='[BCDEGQRST]'
6294 ;;
6295solaris*)
6296 symcode='[BDRT]'
6297 ;;
6298sco3.2v5*)
6299 symcode='[DT]'
6300 ;;
6301sysv4.2uw2*)
6302 symcode='[DT]'
6303 ;;
6304sysv5* | sco5v6* | unixware* | OpenUNIX*)
6305 symcode='[ABDT]'
6306 ;;
6307sysv4)
6308 symcode='[DFNSTU]'
6309 ;;
6310esac
6311
6312# If we're using GNU nm, then use its standard symbol codes.
6313case `$NM -V 2>&1` in
6314*GNU* | *'with BFD'*)
6315 symcode='[ABCDGIRSTW]' ;;
6316esac
6317
6318# Transform an extracted symbol line into a proper C declaration.
6319# Some systems (esp. on ia64) link data and code symbols differently,
6320# so use this general approach.
6321lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6322
6323# Transform an extracted symbol line into symbol name and symbol address
a2479b3d
L
6324lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6325lt_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'"
f35db108
WM
6326
6327# Handle CRLF in mingw tool chain
6328opt_cr=
6329case $build_os in
6330mingw*)
6331 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6332 ;;
6333esac
6334
6335# Try without a prefix underscore, then with it.
6336for ac_symprfx in "" "_"; do
6337
6338 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6339 symxfrm="\\1 $ac_symprfx\\2 \\2"
6340
6341 # Write the raw and C identifiers.
6342 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6343 # Fake it for dumpbin and say T for any non-static function
6344 # and D for any global variable.
6345 # Also find C++ and __fastcall symbols from MSVC++,
6346 # which start with @ or ?.
6347 lt_cv_sys_global_symbol_pipe="$AWK '"\
6348" {last_section=section; section=\$ 3};"\
f35db108
WM
6349" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6350" \$ 0!~/External *\|/{next};"\
6351" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6352" {if(hide[section]) next};"\
6353" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6354" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6355" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6356" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6357" ' prfx=^$ac_symprfx"
6358 else
6359 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6360 fi
f35db108
WM
6361
6362 # Check to see that the pipe works correctly.
6363 pipe_works=no
6364
6365 rm -f conftest*
6366 cat > conftest.$ac_ext <<_LT_EOF
6367#ifdef __cplusplus
6368extern "C" {
6369#endif
6370char nm_test_var;
6371void nm_test_func(void);
6372void nm_test_func(void){}
6373#ifdef __cplusplus
6374}
6375#endif
6376int main(){nm_test_var='a';nm_test_func();return(0);}
6377_LT_EOF
6378
6379 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6380 (eval $ac_compile) 2>&5
6381 ac_status=$?
6382 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6383 test $ac_status = 0; }; then
6384 # Now try to grab the symbols.
6385 nlist=conftest.nm
6386 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6387 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6388 ac_status=$?
6389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6390 test $ac_status = 0; } && test -s "$nlist"; then
6391 # Try sorting and uniquifying the output.
6392 if sort "$nlist" | uniq > "$nlist"T; then
6393 mv -f "$nlist"T "$nlist"
6394 else
6395 rm -f "$nlist"T
6396 fi
6397
6398 # Make sure that we snagged all the symbols we need.
6399 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6400 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6401 cat <<_LT_EOF > conftest.$ac_ext
f35db108
WM
6402#ifdef __cplusplus
6403extern "C" {
6404#endif
6405
6406_LT_EOF
6407 # Now generate the symbol file.
6408 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6409
6410 cat <<_LT_EOF >> conftest.$ac_ext
6411
6412/* The mapping between symbol names and symbols. */
a2479b3d 6413const struct {
f35db108
WM
6414 const char *name;
6415 void *address;
6416}
6417lt__PROGRAM__LTX_preloaded_symbols[] =
6418{
6419 { "@PROGRAM@", (void *) 0 },
6420_LT_EOF
6421 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6422 cat <<\_LT_EOF >> conftest.$ac_ext
6423 {0, (void *) 0}
6424};
6425
6426/* This works around a problem in FreeBSD linker */
6427#ifdef FREEBSD_WORKAROUND
6428static const void *lt_preloaded_setup() {
6429 return lt__PROGRAM__LTX_preloaded_symbols;
6430}
6431#endif
6432
6433#ifdef __cplusplus
6434}
6435#endif
6436_LT_EOF
6437 # Now try linking the two files.
6438 mv conftest.$ac_objext conftstm.$ac_objext
a2479b3d
L
6439 lt_save_LIBS="$LIBS"
6440 lt_save_CFLAGS="$CFLAGS"
f35db108
WM
6441 LIBS="conftstm.$ac_objext"
6442 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6443 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6444 (eval $ac_link) 2>&5
6445 ac_status=$?
6446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6447 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6448 pipe_works=yes
6449 fi
a2479b3d
L
6450 LIBS="$lt_save_LIBS"
6451 CFLAGS="$lt_save_CFLAGS"
f35db108
WM
6452 else
6453 echo "cannot find nm_test_func in $nlist" >&5
6454 fi
6455 else
6456 echo "cannot find nm_test_var in $nlist" >&5
6457 fi
6458 else
6459 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6460 fi
6461 else
6462 echo "$progname: failed program was:" >&5
6463 cat conftest.$ac_ext >&5
6464 fi
6465 rm -rf conftest* conftst*
6466
6467 # Do not use the global_symbol_pipe unless it works.
6468 if test "$pipe_works" = yes; then
6469 break
6470 else
6471 lt_cv_sys_global_symbol_pipe=
6472 fi
6473done
6474
6475fi
6476
6477if test -z "$lt_cv_sys_global_symbol_pipe"; then
6478 lt_cv_sys_global_symbol_to_cdecl=
6479fi
6480if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6482$as_echo "failed" >&6; }
6483else
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6485$as_echo "ok" >&6; }
6486fi
6487
f35db108
WM
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
f35db108
WM
6505
6506
6507
6508
6509
6510# Check whether --enable-libtool-lock was given.
6511if test "${enable_libtool_lock+set}" = set; then :
6512 enableval=$enable_libtool_lock;
6513fi
6514
6515test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6516
6517# Some flags need to be propagated to the compiler or linker for good
6518# libtool support.
6519case $host in
6520ia64-*-hpux*)
6521 # Find out which ABI we are using.
6522 echo 'int i;' > conftest.$ac_ext
6523 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6524 (eval $ac_compile) 2>&5
6525 ac_status=$?
6526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6527 test $ac_status = 0; }; then
6528 case `/usr/bin/file conftest.$ac_objext` in
6529 *ELF-32*)
6530 HPUX_IA64_MODE="32"
6531 ;;
6532 *ELF-64*)
6533 HPUX_IA64_MODE="64"
6534 ;;
6535 esac
6536 fi
6537 rm -rf conftest*
6538 ;;
6539*-*-irix6*)
6540 # Find out which ABI we are using.
6541 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6542 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6543 (eval $ac_compile) 2>&5
6544 ac_status=$?
6545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6546 test $ac_status = 0; }; then
6547 if test "$lt_cv_prog_gnu_ld" = yes; then
6548 case `/usr/bin/file conftest.$ac_objext` in
6549 *32-bit*)
6550 LD="${LD-ld} -melf32bsmip"
6551 ;;
6552 *N32*)
6553 LD="${LD-ld} -melf32bmipn32"
6554 ;;
6555 *64-bit*)
6556 LD="${LD-ld} -melf64bmip"
6557 ;;
6558 esac
6559 else
6560 case `/usr/bin/file conftest.$ac_objext` in
6561 *32-bit*)
6562 LD="${LD-ld} -32"
6563 ;;
6564 *N32*)
6565 LD="${LD-ld} -n32"
6566 ;;
6567 *64-bit*)
6568 LD="${LD-ld} -64"
6569 ;;
6570 esac
6571 fi
6572 fi
6573 rm -rf conftest*
6574 ;;
6575
6576x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6577s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6578 # Find out which ABI we are using.
6579 echo 'int i;' > conftest.$ac_ext
6580 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6581 (eval $ac_compile) 2>&5
6582 ac_status=$?
6583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6584 test $ac_status = 0; }; then
6585 case `/usr/bin/file conftest.o` in
6586 *32-bit*)
6587 case $host in
6588 x86_64-*kfreebsd*-gnu)
6589 LD="${LD-ld} -m elf_i386_fbsd"
6590 ;;
6591 x86_64-*linux*)
a2479b3d
L
6592 case `/usr/bin/file conftest.o` in
6593 *x86-64*)
6594 LD="${LD-ld} -m elf32_x86_64"
6595 ;;
6596 *)
6597 LD="${LD-ld} -m elf_i386"
6598 ;;
6599 esac
f35db108
WM
6600 ;;
6601 ppc64-*linux*|powerpc64-*linux*)
6602 LD="${LD-ld} -m elf32ppclinux"
6603 ;;
6604 s390x-*linux*)
6605 LD="${LD-ld} -m elf_s390"
6606 ;;
6607 sparc64-*linux*)
6608 LD="${LD-ld} -m elf32_sparc"
6609 ;;
6610 esac
6611 ;;
6612 *64-bit*)
6613 case $host in
6614 x86_64-*kfreebsd*-gnu)
6615 LD="${LD-ld} -m elf_x86_64_fbsd"
6616 ;;
6617 x86_64-*linux*)
6618 LD="${LD-ld} -m elf_x86_64"
6619 ;;
6620 ppc*-*linux*|powerpc*-*linux*)
6621 LD="${LD-ld} -m elf64ppc"
6622 ;;
6623 s390*-*linux*|s390*-*tpf*)
6624 LD="${LD-ld} -m elf64_s390"
6625 ;;
6626 sparc*-*linux*)
6627 LD="${LD-ld} -m elf64_sparc"
6628 ;;
6629 esac
6630 ;;
6631 esac
6632 fi
6633 rm -rf conftest*
6634 ;;
6635
6636*-*-sco3.2v5*)
6637 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6638 SAVE_CFLAGS="$CFLAGS"
6639 CFLAGS="$CFLAGS -belf"
6640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6641$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
a2479b3d 6642if test "${lt_cv_cc_needs_belf+set}" = set; then :
f35db108
WM
6643 $as_echo_n "(cached) " >&6
6644else
6645 ac_ext=c
6646ac_cpp='$CPP $CPPFLAGS'
6647ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6648ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6649ac_compiler_gnu=$ac_cv_c_compiler_gnu
6650
6651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6652/* end confdefs.h. */
6653
6654int
6655main ()
6656{
6657
6658 ;
6659 return 0;
6660}
6661_ACEOF
6662if ac_fn_c_try_link "$LINENO"; then :
6663 lt_cv_cc_needs_belf=yes
6664else
6665 lt_cv_cc_needs_belf=no
6666fi
6667rm -f core conftest.err conftest.$ac_objext \
6668 conftest$ac_exeext conftest.$ac_ext
6669 ac_ext=c
6670ac_cpp='$CPP $CPPFLAGS'
6671ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6672ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6673ac_compiler_gnu=$ac_cv_c_compiler_gnu
6674
6675fi
6676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6677$as_echo "$lt_cv_cc_needs_belf" >&6; }
6678 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6679 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6680 CFLAGS="$SAVE_CFLAGS"
6681 fi
6682 ;;
a2479b3d 6683sparc*-*solaris*)
f35db108
WM
6684 # Find out which ABI we are using.
6685 echo 'int i;' > conftest.$ac_ext
6686 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6687 (eval $ac_compile) 2>&5
6688 ac_status=$?
6689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6690 test $ac_status = 0; }; then
6691 case `/usr/bin/file conftest.o` in
6692 *64-bit*)
6693 case $lt_cv_prog_gnu_ld in
a2479b3d 6694 yes*) LD="${LD-ld} -m elf64_sparc" ;;
f35db108
WM
6695 *)
6696 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6697 LD="${LD-ld} -64"
6698 fi
6699 ;;
6700 esac
6701 ;;
6702 esac
6703 fi
6704 rm -rf conftest*
6705 ;;
6706esac
6707
6708need_locks="$enable_libtool_lock"
6709
f35db108
WM
6710
6711 case $host_os in
6712 rhapsody* | darwin*)
6713 if test -n "$ac_tool_prefix"; then
6714 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6715set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6717$as_echo_n "checking for $ac_word... " >&6; }
a2479b3d 6718if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
f35db108
WM
6719 $as_echo_n "(cached) " >&6
6720else
6721 if test -n "$DSYMUTIL"; then
6722 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6723else
6724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6725for as_dir in $PATH
6726do
6727 IFS=$as_save_IFS
6728 test -z "$as_dir" && as_dir=.
6729 for ac_exec_ext in '' $ac_executable_extensions; do
6730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6731 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6733 break 2
6734 fi
6735done
6736 done
6737IFS=$as_save_IFS
6738
6739fi
6740fi
6741DSYMUTIL=$ac_cv_prog_DSYMUTIL
6742if test -n "$DSYMUTIL"; then
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6744$as_echo "$DSYMUTIL" >&6; }
6745else
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6747$as_echo "no" >&6; }
6748fi
6749
6750
6751fi
6752if test -z "$ac_cv_prog_DSYMUTIL"; then
6753 ac_ct_DSYMUTIL=$DSYMUTIL
6754 # Extract the first word of "dsymutil", so it can be a program name with args.
6755set dummy dsymutil; ac_word=$2
6756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6757$as_echo_n "checking for $ac_word... " >&6; }
a2479b3d 6758if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
f35db108
WM
6759 $as_echo_n "(cached) " >&6
6760else
6761 if test -n "$ac_ct_DSYMUTIL"; then
6762 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6763else
6764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6765for as_dir in $PATH
6766do
6767 IFS=$as_save_IFS
6768 test -z "$as_dir" && as_dir=.
6769 for ac_exec_ext in '' $ac_executable_extensions; do
6770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6771 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6773 break 2
6774 fi
6775done
6776 done
6777IFS=$as_save_IFS
6778
6779fi
6780fi
6781ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6782if test -n "$ac_ct_DSYMUTIL"; then
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6784$as_echo "$ac_ct_DSYMUTIL" >&6; }
6785else
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6787$as_echo "no" >&6; }
6788fi
6789
6790 if test "x$ac_ct_DSYMUTIL" = x; then
6791 DSYMUTIL=":"
6792 else
6793 case $cross_compiling:$ac_tool_warned in
6794yes:)
6795{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6796$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6797ac_tool_warned=yes ;;
6798esac
6799 DSYMUTIL=$ac_ct_DSYMUTIL
6800 fi
6801else
6802 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6803fi
6804
6805 if test -n "$ac_tool_prefix"; then
6806 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6807set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6809$as_echo_n "checking for $ac_word... " >&6; }
a2479b3d 6810if test "${ac_cv_prog_NMEDIT+set}" = set; then :
f35db108
WM
6811 $as_echo_n "(cached) " >&6
6812else
6813 if test -n "$NMEDIT"; then
6814 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6815else
6816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6817for as_dir in $PATH
6818do
6819 IFS=$as_save_IFS
6820 test -z "$as_dir" && as_dir=.
6821 for ac_exec_ext in '' $ac_executable_extensions; do
6822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6823 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6825 break 2
6826 fi
6827done
6828 done
6829IFS=$as_save_IFS
6830
6831fi
6832fi
6833NMEDIT=$ac_cv_prog_NMEDIT
6834if test -n "$NMEDIT"; then
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6836$as_echo "$NMEDIT" >&6; }
6837else
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6839$as_echo "no" >&6; }
6840fi
6841
6842
6843fi
6844if test -z "$ac_cv_prog_NMEDIT"; then
6845 ac_ct_NMEDIT=$NMEDIT
6846 # Extract the first word of "nmedit", so it can be a program name with args.
6847set dummy nmedit; ac_word=$2
6848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6849$as_echo_n "checking for $ac_word... " >&6; }
a2479b3d 6850if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
f35db108
WM
6851 $as_echo_n "(cached) " >&6
6852else
6853 if test -n "$ac_ct_NMEDIT"; then
6854 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6855else
6856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6857for as_dir in $PATH
6858do
6859 IFS=$as_save_IFS
6860 test -z "$as_dir" && as_dir=.
6861 for ac_exec_ext in '' $ac_executable_extensions; do
6862 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6863 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6865 break 2
6866 fi
6867done
6868 done
6869IFS=$as_save_IFS
6870
6871fi
6872fi
6873ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6874if test -n "$ac_ct_NMEDIT"; then
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6876$as_echo "$ac_ct_NMEDIT" >&6; }
6877else
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6879$as_echo "no" >&6; }
6880fi
6881
6882 if test "x$ac_ct_NMEDIT" = x; then
6883 NMEDIT=":"
6884 else
6885 case $cross_compiling:$ac_tool_warned in
6886yes:)
6887{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6888$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6889ac_tool_warned=yes ;;
6890esac
6891 NMEDIT=$ac_ct_NMEDIT
6892 fi
6893else
6894 NMEDIT="$ac_cv_prog_NMEDIT"
6895fi
6896
6897 if test -n "$ac_tool_prefix"; then
6898 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6899set dummy ${ac_tool_prefix}lipo; ac_word=$2
6900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6901$as_echo_n "checking for $ac_word... " >&6; }
a2479b3d 6902if test "${ac_cv_prog_LIPO+set}" = set; then :
f35db108
WM
6903 $as_echo_n "(cached) " >&6
6904else
6905 if test -n "$LIPO"; then
6906 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6907else
6908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6909for as_dir in $PATH
6910do
6911 IFS=$as_save_IFS
6912 test -z "$as_dir" && as_dir=.
6913 for ac_exec_ext in '' $ac_executable_extensions; do
6914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6915 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6917 break 2
6918 fi
6919done
6920 done
6921IFS=$as_save_IFS
6922
6923fi
6924fi
6925LIPO=$ac_cv_prog_LIPO
6926if test -n "$LIPO"; then
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6928$as_echo "$LIPO" >&6; }
6929else
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6931$as_echo "no" >&6; }
6932fi
6933
6934
6935fi
6936if test -z "$ac_cv_prog_LIPO"; then
6937 ac_ct_LIPO=$LIPO
6938 # Extract the first word of "lipo", so it can be a program name with args.
6939set dummy lipo; ac_word=$2
6940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6941$as_echo_n "checking for $ac_word... " >&6; }
a2479b3d 6942if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
f35db108
WM
6943 $as_echo_n "(cached) " >&6
6944else
6945 if test -n "$ac_ct_LIPO"; then
6946 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6947else
6948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6949for as_dir in $PATH
6950do
6951 IFS=$as_save_IFS
6952 test -z "$as_dir" && as_dir=.
6953 for ac_exec_ext in '' $ac_executable_extensions; do
6954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6955 ac_cv_prog_ac_ct_LIPO="lipo"
6956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6957 break 2
6958 fi
6959done
6960 done
6961IFS=$as_save_IFS
6962
6963fi
6964fi
6965ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6966if test -n "$ac_ct_LIPO"; then
6967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6968$as_echo "$ac_ct_LIPO" >&6; }
6969else
6970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6971$as_echo "no" >&6; }
6972fi
6973
6974 if test "x$ac_ct_LIPO" = x; then
6975 LIPO=":"
6976 else
6977 case $cross_compiling:$ac_tool_warned in
6978yes:)
6979{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6980$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6981ac_tool_warned=yes ;;
6982esac
6983 LIPO=$ac_ct_LIPO
6984 fi
6985else
6986 LIPO="$ac_cv_prog_LIPO"
6987fi
6988
6989 if test -n "$ac_tool_prefix"; then
6990 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6991set dummy ${ac_tool_prefix}otool; ac_word=$2
6992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6993$as_echo_n "checking for $ac_word... " >&6; }
a2479b3d 6994if test "${ac_cv_prog_OTOOL+set}" = set; then :
f35db108
WM
6995 $as_echo_n "(cached) " >&6
6996else
6997 if test -n "$OTOOL"; then
6998 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6999else
7000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7001for as_dir in $PATH
7002do
7003 IFS=$as_save_IFS
7004 test -z "$as_dir" && as_dir=.
7005 for ac_exec_ext in '' $ac_executable_extensions; do
7006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7007 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7009 break 2
7010 fi
7011done
7012 done
7013IFS=$as_save_IFS
7014
7015fi
7016fi
7017OTOOL=$ac_cv_prog_OTOOL
7018if test -n "$OTOOL"; then
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7020$as_echo "$OTOOL" >&6; }
7021else
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7023$as_echo "no" >&6; }
7024fi
7025
7026
7027fi
7028if test -z "$ac_cv_prog_OTOOL"; then
7029 ac_ct_OTOOL=$OTOOL
7030 # Extract the first word of "otool", so it can be a program name with args.
7031set dummy otool; ac_word=$2
7032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7033$as_echo_n "checking for $ac_word... " >&6; }
a2479b3d 7034if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
f35db108
WM
7035 $as_echo_n "(cached) " >&6
7036else
7037 if test -n "$ac_ct_OTOOL"; then
7038 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7039else
7040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7041for as_dir in $PATH
7042do
7043 IFS=$as_save_IFS
7044 test -z "$as_dir" && as_dir=.
7045 for ac_exec_ext in '' $ac_executable_extensions; do
7046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7047 ac_cv_prog_ac_ct_OTOOL="otool"
7048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7049 break 2
7050 fi
7051done
7052 done
7053IFS=$as_save_IFS
7054
7055fi
7056fi
7057ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7058if test -n "$ac_ct_OTOOL"; then
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7060$as_echo "$ac_ct_OTOOL" >&6; }
7061else
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7063$as_echo "no" >&6; }
7064fi
7065
7066 if test "x$ac_ct_OTOOL" = x; then
7067 OTOOL=":"
7068 else
7069 case $cross_compiling:$ac_tool_warned in
7070yes:)
7071{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7072$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7073ac_tool_warned=yes ;;
7074esac
7075 OTOOL=$ac_ct_OTOOL
7076 fi
7077else
7078 OTOOL="$ac_cv_prog_OTOOL"
7079fi
7080
7081 if test -n "$ac_tool_prefix"; then
7082 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7083set dummy ${ac_tool_prefix}otool64; ac_word=$2
7084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7085$as_echo_n "checking for $ac_word... " >&6; }
a2479b3d 7086if test "${ac_cv_prog_OTOOL64+set}" = set; then :
f35db108
WM
7087 $as_echo_n "(cached) " >&6
7088else
7089 if test -n "$OTOOL64"; then
7090 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7091else
7092as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7093for as_dir in $PATH
7094do
7095 IFS=$as_save_IFS
7096 test -z "$as_dir" && as_dir=.
7097 for ac_exec_ext in '' $ac_executable_extensions; do
7098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7099 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7101 break 2
7102 fi
7103done
7104 done
7105IFS=$as_save_IFS
7106
7107fi
7108fi
7109OTOOL64=$ac_cv_prog_OTOOL64
7110if test -n "$OTOOL64"; then
7111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7112$as_echo "$OTOOL64" >&6; }
7113else
7114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7115$as_echo "no" >&6; }
7116fi
7117
7118
7119fi
7120if test -z "$ac_cv_prog_OTOOL64"; then
7121 ac_ct_OTOOL64=$OTOOL64
7122 # Extract the first word of "otool64", so it can be a program name with args.
7123set dummy otool64; ac_word=$2
7124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7125$as_echo_n "checking for $ac_word... " >&6; }
a2479b3d 7126if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
f35db108
WM
7127 $as_echo_n "(cached) " >&6
7128else
7129 if test -n "$ac_ct_OTOOL64"; then
7130 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7131else
7132as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7133for as_dir in $PATH
7134do
7135 IFS=$as_save_IFS
7136 test -z "$as_dir" && as_dir=.
7137 for ac_exec_ext in '' $ac_executable_extensions; do
7138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7139 ac_cv_prog_ac_ct_OTOOL64="otool64"
7140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7141 break 2
7142 fi
7143done
7144 done
7145IFS=$as_save_IFS
7146
7147fi
7148fi
7149ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7150if test -n "$ac_ct_OTOOL64"; then
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7152$as_echo "$ac_ct_OTOOL64" >&6; }
7153else
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7155$as_echo "no" >&6; }
7156fi
7157
7158 if test "x$ac_ct_OTOOL64" = x; then
7159 OTOOL64=":"
7160 else
7161 case $cross_compiling:$ac_tool_warned in
7162yes:)
7163{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7164$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7165ac_tool_warned=yes ;;
7166esac
7167 OTOOL64=$ac_ct_OTOOL64
7168 fi
7169else
7170 OTOOL64="$ac_cv_prog_OTOOL64"
7171fi
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7200$as_echo_n "checking for -single_module linker flag... " >&6; }
a2479b3d 7201if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
f35db108
WM
7202 $as_echo_n "(cached) " >&6
7203else
7204 lt_cv_apple_cc_single_mod=no
7205 if test -z "${LT_MULTI_MODULE}"; then
7206 # By default we will add the -single_module flag. You can override
7207 # by either setting the environment variable LT_MULTI_MODULE
7208 # non-empty at configure time, or by adding -multi_module to the
7209 # link flags.
7210 rm -rf libconftest.dylib*
7211 echo "int foo(void){return 1;}" > conftest.c
7212 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7213-dynamiclib -Wl,-single_module conftest.c" >&5
7214 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7215 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7216 _lt_result=$?
a2479b3d 7217 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
f35db108
WM
7218 lt_cv_apple_cc_single_mod=yes
7219 else
7220 cat conftest.err >&5
7221 fi
7222 rm -rf libconftest.dylib*
7223 rm -f conftest.*
7224 fi
7225fi
7226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7227$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
f35db108
WM
7228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7229$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
a2479b3d 7230if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
f35db108
WM
7231 $as_echo_n "(cached) " >&6
7232else
7233 lt_cv_ld_exported_symbols_list=no
7234 save_LDFLAGS=$LDFLAGS
7235 echo "_main" > conftest.sym
7236 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7238/* end confdefs.h. */
7239
7240int
7241main ()
7242{
7243
7244 ;
7245 return 0;
7246}
7247_ACEOF
7248if ac_fn_c_try_link "$LINENO"; then :
7249 lt_cv_ld_exported_symbols_list=yes
7250else
7251 lt_cv_ld_exported_symbols_list=no
7252fi
7253rm -f core conftest.err conftest.$ac_objext \
7254 conftest$ac_exeext conftest.$ac_ext
7255 LDFLAGS="$save_LDFLAGS"
7256
7257fi
7258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7259$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
f35db108
WM
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7261$as_echo_n "checking for -force_load linker flag... " >&6; }
a2479b3d 7262if test "${lt_cv_ld_force_load+set}" = set; then :
f35db108
WM
7263 $as_echo_n "(cached) " >&6
7264else
7265 lt_cv_ld_force_load=no
7266 cat > conftest.c << _LT_EOF
7267int forced_loaded() { return 2;}
7268_LT_EOF
7269 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7270 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7271 echo "$AR cru libconftest.a conftest.o" >&5
7272 $AR cru libconftest.a conftest.o 2>&5
f35db108
WM
7273 cat > conftest.c << _LT_EOF
7274int main() { return 0;}
7275_LT_EOF
7276 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7277 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7278 _lt_result=$?
a2479b3d 7279 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
f35db108
WM
7280 lt_cv_ld_force_load=yes
7281 else
7282 cat conftest.err >&5
7283 fi
7284 rm -f conftest.err libconftest.a conftest conftest.c
7285 rm -rf conftest.dSYM
7286
7287fi
7288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7289$as_echo "$lt_cv_ld_force_load" >&6; }
7290 case $host_os in
7291 rhapsody* | darwin1.[012])
7292 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7293 darwin1.*)
7294 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7295 darwin*) # darwin 5.x on
7296 # if running on 10.5 or later, the deployment target defaults
7297 # to the OS version, if on x86, and 10.4, the deployment
7298 # target defaults to 10.4. Don't you love it?
7299 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7300 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7301 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7302 10.[012]*)
7303 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7304 10.*)
7305 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7306 esac
7307 ;;
7308 esac
7309 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7310 _lt_dar_single_mod='$single_module'
7311 fi
7312 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7313 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7314 else
7315 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7316 fi
7317 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7318 _lt_dsymutil='~$DSYMUTIL $lib || :'
7319 else
7320 _lt_dsymutil=
7321 fi
7322 ;;
7323 esac
7324
7325ac_ext=c
7326ac_cpp='$CPP $CPPFLAGS'
7327ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7328ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7329ac_compiler_gnu=$ac_cv_c_compiler_gnu
7330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7331$as_echo_n "checking how to run the C preprocessor... " >&6; }
7332# On Suns, sometimes $CPP names a directory.
7333if test -n "$CPP" && test -d "$CPP"; then
7334 CPP=
7335fi
7336if test -z "$CPP"; then
a2479b3d 7337 if test "${ac_cv_prog_CPP+set}" = set; then :
f35db108
WM
7338 $as_echo_n "(cached) " >&6
7339else
7340 # Double quotes because CPP needs to be expanded
7341 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7342 do
7343 ac_preproc_ok=false
7344for ac_c_preproc_warn_flag in '' yes
7345do
7346 # Use a header file that comes with gcc, so configuring glibc
7347 # with a fresh cross-compiler works.
7348 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7349 # <limits.h> exists even on freestanding compilers.
7350 # On the NeXT, cc -E runs the code through the compiler's parser,
7351 # not just through cpp. "Syntax error" is here to catch this case.
7352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7353/* end confdefs.h. */
7354#ifdef __STDC__
7355# include <limits.h>
7356#else
7357# include <assert.h>
7358#endif
7359 Syntax error
7360_ACEOF
7361if ac_fn_c_try_cpp "$LINENO"; then :
7362
7363else
7364 # Broken: fails on valid input.
7365continue
7366fi
a2479b3d 7367rm -f conftest.err conftest.$ac_ext
f35db108
WM
7368
7369 # OK, works on sane cases. Now check whether nonexistent headers
7370 # can be detected and how.
7371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7372/* end confdefs.h. */
7373#include <ac_nonexistent.h>
7374_ACEOF
7375if ac_fn_c_try_cpp "$LINENO"; then :
7376 # Broken: success on invalid input.
7377continue
7378else
7379 # Passes both tests.
7380ac_preproc_ok=:
7381break
7382fi
a2479b3d 7383rm -f conftest.err conftest.$ac_ext
f35db108
WM
7384
7385done
7386# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
a2479b3d 7387rm -f conftest.err conftest.$ac_ext
f35db108
WM
7388if $ac_preproc_ok; then :
7389 break
7390fi
7391
7392 done
7393 ac_cv_prog_CPP=$CPP
7394
7395fi
7396 CPP=$ac_cv_prog_CPP
7397else
7398 ac_cv_prog_CPP=$CPP
7399fi
7400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7401$as_echo "$CPP" >&6; }
7402ac_preproc_ok=false
7403for ac_c_preproc_warn_flag in '' yes
7404do
7405 # Use a header file that comes with gcc, so configuring glibc
7406 # with a fresh cross-compiler works.
7407 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7408 # <limits.h> exists even on freestanding compilers.
7409 # On the NeXT, cc -E runs the code through the compiler's parser,
7410 # not just through cpp. "Syntax error" is here to catch this case.
7411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7412/* end confdefs.h. */
7413#ifdef __STDC__
7414# include <limits.h>
7415#else
7416# include <assert.h>
7417#endif
7418 Syntax error
7419_ACEOF
7420if ac_fn_c_try_cpp "$LINENO"; then :
7421
7422else
7423 # Broken: fails on valid input.
7424continue
7425fi
a2479b3d 7426rm -f conftest.err conftest.$ac_ext
f35db108
WM
7427
7428 # OK, works on sane cases. Now check whether nonexistent headers
7429 # can be detected and how.
7430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7431/* end confdefs.h. */
7432#include <ac_nonexistent.h>
7433_ACEOF
7434if ac_fn_c_try_cpp "$LINENO"; then :
7435 # Broken: success on invalid input.
7436continue
7437else
7438 # Passes both tests.
7439ac_preproc_ok=:
7440break
7441fi
a2479b3d 7442rm -f conftest.err conftest.$ac_ext
f35db108
WM
7443
7444done
7445# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
a2479b3d 7446rm -f conftest.err conftest.$ac_ext
f35db108
WM
7447if $ac_preproc_ok; then :
7448
7449else
7450 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7451$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
a2479b3d
L
7452as_fn_error "C preprocessor \"$CPP\" fails sanity check
7453See \`config.log' for more details." "$LINENO" 5; }
f35db108
WM
7454fi
7455
7456ac_ext=c
7457ac_cpp='$CPP $CPPFLAGS'
7458ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7459ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7460ac_compiler_gnu=$ac_cv_c_compiler_gnu
7461
7462
7463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7464$as_echo_n "checking for ANSI C header files... " >&6; }
a2479b3d 7465if test "${ac_cv_header_stdc+set}" = set; then :
f35db108
WM
7466 $as_echo_n "(cached) " >&6
7467else
7468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7469/* end confdefs.h. */
7470#include <stdlib.h>
7471#include <stdarg.h>
7472#include <string.h>
7473#include <float.h>
7474
7475int
7476main ()
7477{
7478
7479 ;
7480 return 0;
7481}
7482_ACEOF
7483if ac_fn_c_try_compile "$LINENO"; then :
7484 ac_cv_header_stdc=yes
7485else
7486 ac_cv_header_stdc=no
7487fi
7488rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7489
7490if test $ac_cv_header_stdc = yes; then
7491 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7493/* end confdefs.h. */
7494#include <string.h>
7495
7496_ACEOF
7497if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7498 $EGREP "memchr" >/dev/null 2>&1; then :
7499
7500else
7501 ac_cv_header_stdc=no
7502fi
7503rm -f conftest*
7504
7505fi
7506
7507if test $ac_cv_header_stdc = yes; then
7508 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7510/* end confdefs.h. */
7511#include <stdlib.h>
7512
7513_ACEOF
7514if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7515 $EGREP "free" >/dev/null 2>&1; then :
7516
7517else
7518 ac_cv_header_stdc=no
7519fi
7520rm -f conftest*
7521
7522fi
7523
7524if test $ac_cv_header_stdc = yes; then
7525 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7526 if test "$cross_compiling" = yes; then :
7527 :
7528else
7529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7530/* end confdefs.h. */
7531#include <ctype.h>
7532#include <stdlib.h>
7533#if ((' ' & 0x0FF) == 0x020)
7534# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7535# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7536#else
7537# define ISLOWER(c) \
7538 (('a' <= (c) && (c) <= 'i') \
7539 || ('j' <= (c) && (c) <= 'r') \
7540 || ('s' <= (c) && (c) <= 'z'))
7541# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7542#endif
7543
7544#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7545int
7546main ()
7547{
7548 int i;
7549 for (i = 0; i < 256; i++)
7550 if (XOR (islower (i), ISLOWER (i))
7551 || toupper (i) != TOUPPER (i))
7552 return 2;
7553 return 0;
7554}
7555_ACEOF
7556if ac_fn_c_try_run "$LINENO"; then :
7557
7558else
7559 ac_cv_header_stdc=no
7560fi
7561rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7562 conftest.$ac_objext conftest.beam conftest.$ac_ext
7563fi
7564
7565fi
7566fi
7567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7568$as_echo "$ac_cv_header_stdc" >&6; }
7569if test $ac_cv_header_stdc = yes; then
7570
7571$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7572
7573fi
7574
7575# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7576for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7577 inttypes.h stdint.h unistd.h
7578do :
7579 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7580ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7581"
a2479b3d
L
7582eval as_val=\$$as_ac_Header
7583 if test "x$as_val" = x""yes; then :
f35db108
WM
7584 cat >>confdefs.h <<_ACEOF
7585#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7586_ACEOF
7587
7588fi
7589
7590done
7591
7592
7593for ac_header in dlfcn.h
7594do :
7595 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7596"
a2479b3d 7597if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
f35db108
WM
7598 cat >>confdefs.h <<_ACEOF
7599#define HAVE_DLFCN_H 1
7600_ACEOF
7601
7602fi
7603
7604done
7605
7606
7607
7608
f35db108
WM
7609
7610
7611# Set options
7612
7613
7614
7615
7616 enable_win32_dll=no
7617
7618
7619 # Check whether --enable-shared was given.
7620if test "${enable_shared+set}" = set; then :
7621 enableval=$enable_shared; p=${PACKAGE-default}
7622 case $enableval in
7623 yes) enable_shared=yes ;;
7624 no) enable_shared=no ;;
7625 *)
7626 enable_shared=no
7627 # Look at the argument we got. We use all the common list separators.
7628 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7629 for pkg in $enableval; do
7630 IFS="$lt_save_ifs"
7631 if test "X$pkg" = "X$p"; then
7632 enable_shared=yes
7633 fi
7634 done
7635 IFS="$lt_save_ifs"
7636 ;;
7637 esac
7638else
7639 enable_shared=yes
7640fi
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650 # Check whether --enable-static was given.
7651if test "${enable_static+set}" = set; then :
7652 enableval=$enable_static; p=${PACKAGE-default}
7653 case $enableval in
7654 yes) enable_static=yes ;;
7655 no) enable_static=no ;;
7656 *)
7657 enable_static=no
7658 # Look at the argument we got. We use all the common list separators.
7659 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7660 for pkg in $enableval; do
7661 IFS="$lt_save_ifs"
7662 if test "X$pkg" = "X$p"; then
7663 enable_static=yes
7664 fi
7665 done
7666 IFS="$lt_save_ifs"
7667 ;;
7668 esac
7669else
7670 enable_static=yes
7671fi
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682# Check whether --with-pic was given.
7683if test "${with_pic+set}" = set; then :
a2479b3d 7684 withval=$with_pic; pic_mode="$withval"
f35db108
WM
7685else
7686 pic_mode=default
7687fi
7688
7689
7690test -z "$pic_mode" && pic_mode=default
7691
7692
7693
7694
7695
7696
7697
7698 # Check whether --enable-fast-install was given.
7699if test "${enable_fast_install+set}" = set; then :
7700 enableval=$enable_fast_install; p=${PACKAGE-default}
7701 case $enableval in
7702 yes) enable_fast_install=yes ;;
7703 no) enable_fast_install=no ;;
7704 *)
7705 enable_fast_install=no
7706 # Look at the argument we got. We use all the common list separators.
7707 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7708 for pkg in $enableval; do
7709 IFS="$lt_save_ifs"
7710 if test "X$pkg" = "X$p"; then
7711 enable_fast_install=yes
7712 fi
7713 done
7714 IFS="$lt_save_ifs"
7715 ;;
7716 esac
7717else
7718 enable_fast_install=yes
7719fi
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731# This can be used to rebuild libtool when needed
7732LIBTOOL_DEPS="$ltmain"
7733
7734# Always use our own libtool.
7735LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
f35db108
WM
7757
7758
7759
7760
7761
7762test -z "$LN_S" && LN_S="ln -s"
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777if test -n "${ZSH_VERSION+set}" ; then
7778 setopt NO_GLOB_SUBST
7779fi
7780
7781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7782$as_echo_n "checking for objdir... " >&6; }
a2479b3d 7783if test "${lt_cv_objdir+set}" = set; then :
f35db108
WM
7784 $as_echo_n "(cached) " >&6
7785else
7786 rm -f .libs 2>/dev/null
7787mkdir .libs 2>/dev/null
7788if test -d .libs; then
7789 lt_cv_objdir=.libs
7790else
7791 # MS-DOS does not allow filenames that begin with a dot.
7792 lt_cv_objdir=_libs
7793fi
7794rmdir .libs 2>/dev/null
7795fi
7796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7797$as_echo "$lt_cv_objdir" >&6; }
7798objdir=$lt_cv_objdir
7799
7800
7801
7802
7803
7804cat >>confdefs.h <<_ACEOF
7805#define LT_OBJDIR "$lt_cv_objdir/"
7806_ACEOF
7807
7808
7809
7810
7811case $host_os in
7812aix3*)
7813 # AIX sometimes has problems with the GCC collect2 program. For some
7814 # reason, if we set the COLLECT_NAMES environment variable, the problems
7815 # vanish in a puff of smoke.
7816 if test "X${COLLECT_NAMES+set}" != Xset; then
7817 COLLECT_NAMES=
7818 export COLLECT_NAMES
7819 fi
7820 ;;
7821esac
7822
7823# Global variables:
7824ofile=libtool
7825can_build_shared=yes
7826
7827# All known linkers require a `.a' archive for static linking (except MSVC,
7828# which needs '.lib').
7829libext=a
7830
7831with_gnu_ld="$lt_cv_prog_gnu_ld"
7832
7833old_CC="$CC"
7834old_CFLAGS="$CFLAGS"
7835
7836# Set sane defaults for various variables
7837test -z "$CC" && CC=cc
7838test -z "$LTCC" && LTCC=$CC
7839test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7840test -z "$LD" && LD=ld
7841test -z "$ac_objext" && ac_objext=o
7842
7843for cc_temp in $compiler""; do
7844 case $cc_temp in
7845 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7846 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7847 \-*) ;;
7848 *) break;;
7849 esac
7850done
7851cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7852
7853
7854# Only perform the check for file, if the check method requires it
7855test -z "$MAGIC_CMD" && MAGIC_CMD=file
7856case $deplibs_check_method in
7857file_magic*)
7858 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7860$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
a2479b3d 7861if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
f35db108
WM
7862 $as_echo_n "(cached) " >&6
7863else
7864 case $MAGIC_CMD in
7865[\\/*] | ?:[\\/]*)
7866 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7867 ;;
7868*)
7869 lt_save_MAGIC_CMD="$MAGIC_CMD"
7870 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7871 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7872 for ac_dir in $ac_dummy; do
7873 IFS="$lt_save_ifs"
7874 test -z "$ac_dir" && ac_dir=.
7875 if test -f $ac_dir/${ac_tool_prefix}file; then
7876 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7877 if test -n "$file_magic_test_file"; then
7878 case $deplibs_check_method in
7879 "file_magic "*)
7880 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7881 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7882 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7883 $EGREP "$file_magic_regex" > /dev/null; then
7884 :
7885 else
7886 cat <<_LT_EOF 1>&2
7887
7888*** Warning: the command libtool uses to detect shared libraries,
7889*** $file_magic_cmd, produces output that libtool cannot recognize.
7890*** The result is that libtool may fail to recognize shared libraries
7891*** as such. This will affect the creation of libtool libraries that
7892*** depend on shared libraries, but programs linked with such libtool
7893*** libraries will work regardless of this problem. Nevertheless, you
7894*** may want to report the problem to your system manager and/or to
7895*** bug-libtool@gnu.org
7896
7897_LT_EOF
7898 fi ;;
7899 esac
7900 fi
7901 break
7902 fi
7903 done
7904 IFS="$lt_save_ifs"
7905 MAGIC_CMD="$lt_save_MAGIC_CMD"
7906 ;;
7907esac
7908fi
7909
7910MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7911if test -n "$MAGIC_CMD"; then
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7913$as_echo "$MAGIC_CMD" >&6; }
7914else
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7916$as_echo "no" >&6; }
7917fi
7918
7919
7920
7921
7922
7923if test -z "$lt_cv_path_MAGIC_CMD"; then
7924 if test -n "$ac_tool_prefix"; then
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7926$as_echo_n "checking for file... " >&6; }
a2479b3d 7927if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
f35db108
WM
7928 $as_echo_n "(cached) " >&6
7929else
7930 case $MAGIC_CMD in
7931[\\/*] | ?:[\\/]*)
7932 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7933 ;;
7934*)
7935 lt_save_MAGIC_CMD="$MAGIC_CMD"
7936 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7937 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7938 for ac_dir in $ac_dummy; do
7939 IFS="$lt_save_ifs"
7940 test -z "$ac_dir" && ac_dir=.
7941 if test -f $ac_dir/file; then
7942 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7943 if test -n "$file_magic_test_file"; then
7944 case $deplibs_check_method in
7945 "file_magic "*)
7946 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7947 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7948 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7949 $EGREP "$file_magic_regex" > /dev/null; then
7950 :
7951 else
7952 cat <<_LT_EOF 1>&2
7953
7954*** Warning: the command libtool uses to detect shared libraries,
7955*** $file_magic_cmd, produces output that libtool cannot recognize.
7956*** The result is that libtool may fail to recognize shared libraries
7957*** as such. This will affect the creation of libtool libraries that
7958*** depend on shared libraries, but programs linked with such libtool
7959*** libraries will work regardless of this problem. Nevertheless, you
7960*** may want to report the problem to your system manager and/or to
7961*** bug-libtool@gnu.org
7962
7963_LT_EOF
7964 fi ;;
7965 esac
7966 fi
7967 break
7968 fi
7969 done
7970 IFS="$lt_save_ifs"
7971 MAGIC_CMD="$lt_save_MAGIC_CMD"
7972 ;;
7973esac
7974fi
7975
7976MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7977if test -n "$MAGIC_CMD"; then
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7979$as_echo "$MAGIC_CMD" >&6; }
7980else
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7982$as_echo "no" >&6; }
7983fi
7984
7985
7986 else
7987 MAGIC_CMD=:
7988 fi
7989fi
7990
7991 fi
7992 ;;
7993esac
7994
7995# Use C for the default configuration in the libtool script
7996
7997lt_save_CC="$CC"
7998ac_ext=c
7999ac_cpp='$CPP $CPPFLAGS'
8000ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8001ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8002ac_compiler_gnu=$ac_cv_c_compiler_gnu
8003
8004
8005# Source file extension for C test sources.
8006ac_ext=c
8007
8008# Object file extension for compiled C test sources.
8009objext=o
8010objext=$objext
8011
8012# Code to be used in simple compile tests
8013lt_simple_compile_test_code="int some_variable = 0;"
8014
8015# Code to be used in simple link tests
8016lt_simple_link_test_code='int main(){return(0);}'
8017
8018
8019
8020
8021
8022
8023
8024# If no C compiler was specified, use CC.
8025LTCC=${LTCC-"$CC"}
8026
8027# If no C compiler flags were specified, use CFLAGS.
8028LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8029
8030# Allow CC to be a program name with arguments.
8031compiler=$CC
8032
8033# Save the default compiler, since it gets overwritten when the other
8034# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8035compiler_DEFAULT=$CC
8036
8037# save warnings/boilerplate of simple test code
8038ac_outfile=conftest.$ac_objext
8039echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8040eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8041_lt_compiler_boilerplate=`cat conftest.err`
8042$RM conftest*
8043
8044ac_outfile=conftest.$ac_objext
8045echo "$lt_simple_link_test_code" >conftest.$ac_ext
8046eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8047_lt_linker_boilerplate=`cat conftest.err`
8048$RM -r conftest*
8049
8050
a2479b3d
L
8051## CAVEAT EMPTOR:
8052## There is no encapsulation within the following macros, do not change
8053## the running order or otherwise move them around unless you know exactly
8054## what you are doing...
f35db108
WM
8055if test -n "$compiler"; then
8056
8057lt_prog_compiler_no_builtin_flag=
8058
8059if test "$GCC" = yes; then
8060 case $cc_basename in
8061 nvcc*)
8062 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8063 *)
8064 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8065 esac
8066
8067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8068$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
a2479b3d 8069if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
f35db108
WM
8070 $as_echo_n "(cached) " >&6
8071else
8072 lt_cv_prog_compiler_rtti_exceptions=no
8073 ac_outfile=conftest.$ac_objext
8074 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8075 lt_compiler_flag="-fno-rtti -fno-exceptions"
8076 # Insert the option either (1) after the last *FLAGS variable, or
8077 # (2) before a word containing "conftest.", or (3) at the end.
8078 # Note that $ac_compile itself does not contain backslashes and begins
8079 # with a dollar sign (not a hyphen), so the echo should work correctly.
8080 # The option is referenced via a variable to avoid confusing sed.
8081 lt_compile=`echo "$ac_compile" | $SED \
8082 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8083 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8084 -e 's:$: $lt_compiler_flag:'`
8085 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8086 (eval "$lt_compile" 2>conftest.err)
8087 ac_status=$?
8088 cat conftest.err >&5
8089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8090 if (exit $ac_status) && test -s "$ac_outfile"; then
8091 # The compiler can only warn and ignore the option if not recognized
8092 # So say no if there are warnings other than the usual output.
8093 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8094 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8095 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8096 lt_cv_prog_compiler_rtti_exceptions=yes
8097 fi
8098 fi
8099 $RM conftest*
8100
8101fi
8102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8103$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8104
8105if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8106 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8107else
8108 :
8109fi
8110
8111fi
8112
8113
8114
8115
8116
8117
8118 lt_prog_compiler_wl=
8119lt_prog_compiler_pic=
8120lt_prog_compiler_static=
8121
a2479b3d
L
8122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8123$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
f35db108
WM
8124
8125 if test "$GCC" = yes; then
8126 lt_prog_compiler_wl='-Wl,'
8127 lt_prog_compiler_static='-static'
8128
8129 case $host_os in
8130 aix*)
8131 # All AIX code is PIC.
8132 if test "$host_cpu" = ia64; then
8133 # AIX 5 now supports IA64 processor
8134 lt_prog_compiler_static='-Bstatic'
8135 fi
a2479b3d 8136 lt_prog_compiler_pic='-fPIC'
f35db108
WM
8137 ;;
8138
8139 amigaos*)
8140 case $host_cpu in
8141 powerpc)
8142 # see comment about AmigaOS4 .so support
8143 lt_prog_compiler_pic='-fPIC'
8144 ;;
8145 m68k)
8146 # FIXME: we need at least 68020 code to build shared libraries, but
8147 # adding the `-m68020' flag to GCC prevents building anything better,
8148 # like `-m68040'.
8149 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8150 ;;
8151 esac
8152 ;;
8153
8154 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8155 # PIC is the default for these OSes.
8156 ;;
8157
8158 mingw* | cygwin* | pw32* | os2* | cegcc*)
8159 # This hack is so that the source file can tell whether it is being
8160 # built for inclusion in a dll (and should export symbols for example).
8161 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8162 # (--disable-auto-import) libraries
8163 lt_prog_compiler_pic='-DDLL_EXPORT'
8164 ;;
8165
8166 darwin* | rhapsody*)
8167 # PIC is the default on this platform
8168 # Common symbols not allowed in MH_DYLIB files
8169 lt_prog_compiler_pic='-fno-common'
8170 ;;
8171
8172 haiku*)
8173 # PIC is the default for Haiku.
8174 # The "-static" flag exists, but is broken.
8175 lt_prog_compiler_static=
8176 ;;
8177
8178 hpux*)
8179 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8180 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8181 # sets the default TLS model and affects inlining.
8182 case $host_cpu in
8183 hppa*64*)
8184 # +Z the default
8185 ;;
8186 *)
8187 lt_prog_compiler_pic='-fPIC'
8188 ;;
8189 esac
8190 ;;
8191
8192 interix[3-9]*)
8193 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8194 # Instead, we relocate shared libraries at runtime.
8195 ;;
8196
8197 msdosdjgpp*)
8198 # Just because we use GCC doesn't mean we suddenly get shared libraries
8199 # on systems that don't support them.
8200 lt_prog_compiler_can_build_shared=no
8201 enable_shared=no
8202 ;;
8203
8204 *nto* | *qnx*)
8205 # QNX uses GNU C++, but need to define -shared option too, otherwise
8206 # it will coredump.
8207 lt_prog_compiler_pic='-fPIC -shared'
8208 ;;
8209
8210 sysv4*MP*)
8211 if test -d /usr/nec; then
8212 lt_prog_compiler_pic=-Kconform_pic
8213 fi
8214 ;;
8215
8216 *)
8217 lt_prog_compiler_pic='-fPIC'
8218 ;;
8219 esac
8220
8221 case $cc_basename in
8222 nvcc*) # Cuda Compiler Driver 2.2
8223 lt_prog_compiler_wl='-Xlinker '
a2479b3d 8224 lt_prog_compiler_pic='-Xcompiler -fPIC'
f35db108
WM
8225 ;;
8226 esac
8227 else
8228 # PORTME Check for flag to pass linker flags through the system compiler.
8229 case $host_os in
8230 aix*)
8231 lt_prog_compiler_wl='-Wl,'
8232 if test "$host_cpu" = ia64; then
8233 # AIX 5 now supports IA64 processor
8234 lt_prog_compiler_static='-Bstatic'
8235 else
8236 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8237 fi
8238 ;;
8239
8240 mingw* | cygwin* | pw32* | os2* | cegcc*)
8241 # This hack is so that the source file can tell whether it is being
8242 # built for inclusion in a dll (and should export symbols for example).
8243 lt_prog_compiler_pic='-DDLL_EXPORT'
8244 ;;
8245
8246 hpux9* | hpux10* | hpux11*)
8247 lt_prog_compiler_wl='-Wl,'
8248 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8249 # not for PA HP-UX.
8250 case $host_cpu in
8251 hppa*64*|ia64*)
8252 # +Z the default
8253 ;;
8254 *)
8255 lt_prog_compiler_pic='+Z'
8256 ;;
8257 esac
8258 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8259 lt_prog_compiler_static='${wl}-a ${wl}archive'
8260 ;;
8261
8262 irix5* | irix6* | nonstopux*)
8263 lt_prog_compiler_wl='-Wl,'
8264 # PIC (with -KPIC) is the default.
8265 lt_prog_compiler_static='-non_shared'
8266 ;;
8267
8268 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8269 case $cc_basename in
8270 # old Intel for x86_64 which still supported -KPIC.
8271 ecc*)
8272 lt_prog_compiler_wl='-Wl,'
8273 lt_prog_compiler_pic='-KPIC'
8274 lt_prog_compiler_static='-static'
8275 ;;
8276 # icc used to be incompatible with GCC.
8277 # ICC 10 doesn't accept -KPIC any more.
8278 icc* | ifort*)
8279 lt_prog_compiler_wl='-Wl,'
8280 lt_prog_compiler_pic='-fPIC'
8281 lt_prog_compiler_static='-static'
8282 ;;
8283 # Lahey Fortran 8.1.
8284 lf95*)
8285 lt_prog_compiler_wl='-Wl,'
8286 lt_prog_compiler_pic='--shared'
8287 lt_prog_compiler_static='--static'
8288 ;;
f35db108
WM
8289 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8290 # Portland Group compilers (*not* the Pentium gcc compiler,
8291 # which looks to be a dead project)
8292 lt_prog_compiler_wl='-Wl,'
8293 lt_prog_compiler_pic='-fpic'
8294 lt_prog_compiler_static='-Bstatic'
8295 ;;
8296 ccc*)
8297 lt_prog_compiler_wl='-Wl,'
8298 # All Alpha code is PIC.
8299 lt_prog_compiler_static='-non_shared'
8300 ;;
8301 xl* | bgxl* | bgf* | mpixl*)
8302 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8303 lt_prog_compiler_wl='-Wl,'
8304 lt_prog_compiler_pic='-qpic'
8305 lt_prog_compiler_static='-qstaticlink'
8306 ;;
8307 *)
8308 case `$CC -V 2>&1 | sed 5q` in
a2479b3d 8309 *Sun\ F* | *Sun*Fortran*)
f35db108
WM
8310 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8311 lt_prog_compiler_pic='-KPIC'
8312 lt_prog_compiler_static='-Bstatic'
8313 lt_prog_compiler_wl=''
8314 ;;
f35db108
WM
8315 *Sun\ C*)
8316 # Sun C 5.9
8317 lt_prog_compiler_pic='-KPIC'
8318 lt_prog_compiler_static='-Bstatic'
8319 lt_prog_compiler_wl='-Wl,'
8320 ;;
f35db108
WM
8321 esac
8322 ;;
8323 esac
8324 ;;
8325
8326 newsos6)
8327 lt_prog_compiler_pic='-KPIC'
8328 lt_prog_compiler_static='-Bstatic'
8329 ;;
8330
8331 *nto* | *qnx*)
8332 # QNX uses GNU C++, but need to define -shared option too, otherwise
8333 # it will coredump.
8334 lt_prog_compiler_pic='-fPIC -shared'
8335 ;;
8336
8337 osf3* | osf4* | osf5*)
8338 lt_prog_compiler_wl='-Wl,'
8339 # All OSF/1 code is PIC.
8340 lt_prog_compiler_static='-non_shared'
8341 ;;
8342
8343 rdos*)
8344 lt_prog_compiler_static='-non_shared'
8345 ;;
8346
8347 solaris*)
8348 lt_prog_compiler_pic='-KPIC'
8349 lt_prog_compiler_static='-Bstatic'
8350 case $cc_basename in
a2479b3d 8351 f77* | f90* | f95*)
f35db108
WM
8352 lt_prog_compiler_wl='-Qoption ld ';;
8353 *)
8354 lt_prog_compiler_wl='-Wl,';;
8355 esac
8356 ;;
8357
8358 sunos4*)
8359 lt_prog_compiler_wl='-Qoption ld '
8360 lt_prog_compiler_pic='-PIC'
8361 lt_prog_compiler_static='-Bstatic'
8362 ;;
8363
8364 sysv4 | sysv4.2uw2* | sysv4.3*)
8365 lt_prog_compiler_wl='-Wl,'
8366 lt_prog_compiler_pic='-KPIC'
8367 lt_prog_compiler_static='-Bstatic'
8368 ;;
8369
8370 sysv4*MP*)
8371 if test -d /usr/nec ;then
8372 lt_prog_compiler_pic='-Kconform_pic'
8373 lt_prog_compiler_static='-Bstatic'
8374 fi
8375 ;;
8376
8377 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8378 lt_prog_compiler_wl='-Wl,'
8379 lt_prog_compiler_pic='-KPIC'
8380 lt_prog_compiler_static='-Bstatic'
8381 ;;
8382
8383 unicos*)
8384 lt_prog_compiler_wl='-Wl,'
8385 lt_prog_compiler_can_build_shared=no
8386 ;;
8387
8388 uts4*)
8389 lt_prog_compiler_pic='-pic'
8390 lt_prog_compiler_static='-Bstatic'
8391 ;;
8392
8393 *)
8394 lt_prog_compiler_can_build_shared=no
8395 ;;
8396 esac
8397 fi
8398
8399case $host_os in
8400 # For platforms which do not support PIC, -DPIC is meaningless:
8401 *djgpp*)
8402 lt_prog_compiler_pic=
8403 ;;
8404 *)
8405 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8406 ;;
8407esac
a2479b3d
L
8408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8409$as_echo "$lt_prog_compiler_pic" >&6; }
8410
8411
8412
8413
f35db108 8414
f35db108
WM
8415
8416#
8417# Check to make sure the PIC flag actually works.
8418#
8419if test -n "$lt_prog_compiler_pic"; then
8420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8421$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
a2479b3d 8422if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
f35db108
WM
8423 $as_echo_n "(cached) " >&6
8424else
8425 lt_cv_prog_compiler_pic_works=no
8426 ac_outfile=conftest.$ac_objext
8427 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8428 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8429 # Insert the option either (1) after the last *FLAGS variable, or
8430 # (2) before a word containing "conftest.", or (3) at the end.
8431 # Note that $ac_compile itself does not contain backslashes and begins
8432 # with a dollar sign (not a hyphen), so the echo should work correctly.
8433 # The option is referenced via a variable to avoid confusing sed.
8434 lt_compile=`echo "$ac_compile" | $SED \
8435 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8436 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8437 -e 's:$: $lt_compiler_flag:'`
8438 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8439 (eval "$lt_compile" 2>conftest.err)
8440 ac_status=$?
8441 cat conftest.err >&5
8442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8443 if (exit $ac_status) && test -s "$ac_outfile"; then
8444 # The compiler can only warn and ignore the option if not recognized
8445 # So say no if there are warnings other than the usual output.
8446 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8447 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8448 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8449 lt_cv_prog_compiler_pic_works=yes
8450 fi
8451 fi
8452 $RM conftest*
8453
8454fi
8455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8456$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8457
8458if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8459 case $lt_prog_compiler_pic in
8460 "" | " "*) ;;
8461 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8462 esac
8463else
8464 lt_prog_compiler_pic=
8465 lt_prog_compiler_can_build_shared=no
8466fi
8467
8468fi
8469
8470
8471
8472
8473
8474
f35db108
WM
8475#
8476# Check to make sure the static flag actually works.
8477#
8478wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8480$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
a2479b3d 8481if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
f35db108
WM
8482 $as_echo_n "(cached) " >&6
8483else
8484 lt_cv_prog_compiler_static_works=no
8485 save_LDFLAGS="$LDFLAGS"
8486 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8487 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8488 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8489 # The linker can only warn and ignore the option if not recognized
8490 # So say no if there are warnings
8491 if test -s conftest.err; then
8492 # Append any errors to the config.log.
8493 cat conftest.err 1>&5
8494 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8495 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8496 if diff conftest.exp conftest.er2 >/dev/null; then
8497 lt_cv_prog_compiler_static_works=yes
8498 fi
8499 else
8500 lt_cv_prog_compiler_static_works=yes
8501 fi
8502 fi
8503 $RM -r conftest*
8504 LDFLAGS="$save_LDFLAGS"
8505
8506fi
8507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8508$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8509
8510if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8511 :
8512else
8513 lt_prog_compiler_static=
8514fi
8515
8516
8517
8518
8519
8520
8521
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8523$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
a2479b3d 8524if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
f35db108
WM
8525 $as_echo_n "(cached) " >&6
8526else
8527 lt_cv_prog_compiler_c_o=no
8528 $RM -r conftest 2>/dev/null
8529 mkdir conftest
8530 cd conftest
8531 mkdir out
8532 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8533
8534 lt_compiler_flag="-o out/conftest2.$ac_objext"
8535 # Insert the option either (1) after the last *FLAGS variable, or
8536 # (2) before a word containing "conftest.", or (3) at the end.
8537 # Note that $ac_compile itself does not contain backslashes and begins
8538 # with a dollar sign (not a hyphen), so the echo should work correctly.
8539 lt_compile=`echo "$ac_compile" | $SED \
8540 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8541 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8542 -e 's:$: $lt_compiler_flag:'`
8543 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8544 (eval "$lt_compile" 2>out/conftest.err)
8545 ac_status=$?
8546 cat out/conftest.err >&5
8547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8548 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8549 then
8550 # The compiler can only warn and ignore the option if not recognized
8551 # So say no if there are warnings
8552 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8553 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8554 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8555 lt_cv_prog_compiler_c_o=yes
8556 fi
8557 fi
8558 chmod u+w . 2>&5
8559 $RM conftest*
8560 # SGI C++ compiler will create directory out/ii_files/ for
8561 # template instantiation
8562 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8563 $RM out/* && rmdir out
8564 cd ..
8565 $RM -r conftest
8566 $RM conftest*
8567
8568fi
8569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8570$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8571
8572
8573
8574
8575
8576
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8578$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
a2479b3d 8579if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
f35db108
WM
8580 $as_echo_n "(cached) " >&6
8581else
8582 lt_cv_prog_compiler_c_o=no
8583 $RM -r conftest 2>/dev/null
8584 mkdir conftest
8585 cd conftest
8586 mkdir out
8587 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8588
8589 lt_compiler_flag="-o out/conftest2.$ac_objext"
8590 # Insert the option either (1) after the last *FLAGS variable, or
8591 # (2) before a word containing "conftest.", or (3) at the end.
8592 # Note that $ac_compile itself does not contain backslashes and begins
8593 # with a dollar sign (not a hyphen), so the echo should work correctly.
8594 lt_compile=`echo "$ac_compile" | $SED \
8595 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8596 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8597 -e 's:$: $lt_compiler_flag:'`
8598 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8599 (eval "$lt_compile" 2>out/conftest.err)
8600 ac_status=$?
8601 cat out/conftest.err >&5
8602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8603 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8604 then
8605 # The compiler can only warn and ignore the option if not recognized
8606 # So say no if there are warnings
8607 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8608 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8609 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8610 lt_cv_prog_compiler_c_o=yes
8611 fi
8612 fi
8613 chmod u+w . 2>&5
8614 $RM conftest*
8615 # SGI C++ compiler will create directory out/ii_files/ for
8616 # template instantiation
8617 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8618 $RM out/* && rmdir out
8619 cd ..
8620 $RM -r conftest
8621 $RM conftest*
8622
8623fi
8624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8625$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8626
8627
8628
8629
8630hard_links="nottested"
8631if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8632 # do not overwrite the value of need_locks provided by the user
8633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8634$as_echo_n "checking if we can lock with hard links... " >&6; }
8635 hard_links=yes
8636 $RM conftest*
8637 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8638 touch conftest.a
8639 ln conftest.a conftest.b 2>&5 || hard_links=no
8640 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8642$as_echo "$hard_links" >&6; }
8643 if test "$hard_links" = no; then
8644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8645$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8646 need_locks=warn
8647 fi
8648else
8649 need_locks=no
8650fi
8651
8652
8653
8654
8655
8656
8657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8658$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8659
8660 runpath_var=
8661 allow_undefined_flag=
8662 always_export_symbols=no
8663 archive_cmds=
8664 archive_expsym_cmds=
8665 compiler_needs_object=no
8666 enable_shared_with_static_runtimes=no
8667 export_dynamic_flag_spec=
8668 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8669 hardcode_automatic=no
8670 hardcode_direct=no
8671 hardcode_direct_absolute=no
8672 hardcode_libdir_flag_spec=
a2479b3d 8673 hardcode_libdir_flag_spec_ld=
f35db108
WM
8674 hardcode_libdir_separator=
8675 hardcode_minus_L=no
8676 hardcode_shlibpath_var=unsupported
8677 inherit_rpath=no
8678 link_all_deplibs=unknown
8679 module_cmds=
8680 module_expsym_cmds=
8681 old_archive_from_new_cmds=
8682 old_archive_from_expsyms_cmds=
8683 thread_safe_flag_spec=
8684 whole_archive_flag_spec=
8685 # include_expsyms should be a list of space-separated symbols to be *always*
8686 # included in the symbol list
8687 include_expsyms=
8688 # exclude_expsyms can be an extended regexp of symbols to exclude
8689 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8690 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8691 # as well as any symbol that contains `d'.
8692 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8693 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8694 # platforms (ab)use it in PIC code, but their linkers get confused if
8695 # the symbol is explicitly referenced. Since portable code cannot
8696 # rely on this symbol name, it's probably fine to never include it in
8697 # preloaded symbol tables.
8698 # Exclude shared library initialization/finalization symbols.
8699 extract_expsyms_cmds=
8700
8701 case $host_os in
8702 cygwin* | mingw* | pw32* | cegcc*)
8703 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8704 # When not using gcc, we currently assume that we are using
8705 # Microsoft Visual C++.
8706 if test "$GCC" != yes; then
8707 with_gnu_ld=no
8708 fi
8709 ;;
8710 interix*)
8711 # we just hope/assume this is gcc and not c89 (= MSVC++)
8712 with_gnu_ld=yes
8713 ;;
8714 openbsd*)
8715 with_gnu_ld=no
8716 ;;
f35db108
WM
8717 esac
8718
8719 ld_shlibs=yes
8720
8721 # On some targets, GNU ld is compatible enough with the native linker
8722 # that we're better off using the native interface for both.
8723 lt_use_gnu_ld_interface=no
8724 if test "$with_gnu_ld" = yes; then
8725 case $host_os in
8726 aix*)
8727 # The AIX port of GNU ld has always aspired to compatibility
8728 # with the native linker. However, as the warning in the GNU ld
8729 # block says, versions before 2.19.5* couldn't really create working
8730 # shared libraries, regardless of the interface used.
8731 case `$LD -v 2>&1` in
8732 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8733 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8734 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8735 *)
8736 lt_use_gnu_ld_interface=yes
8737 ;;
8738 esac
8739 ;;
8740 *)
8741 lt_use_gnu_ld_interface=yes
8742 ;;
8743 esac
8744 fi
8745
8746 if test "$lt_use_gnu_ld_interface" = yes; then
8747 # If archive_cmds runs LD, not CC, wlarc should be empty
8748 wlarc='${wl}'
8749
8750 # Set some defaults for GNU ld with shared library support. These
8751 # are reset later if shared libraries are not supported. Putting them
8752 # here allows them to be overridden if necessary.
8753 runpath_var=LD_RUN_PATH
8754 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8755 export_dynamic_flag_spec='${wl}--export-dynamic'
8756 # ancient GNU ld didn't support --whole-archive et. al.
8757 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8758 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8759 else
8760 whole_archive_flag_spec=
8761 fi
8762 supports_anon_versioning=no
8763 case `$LD -v 2>&1` in
8764 *GNU\ gold*) supports_anon_versioning=yes ;;
8765 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8766 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8767 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8768 *\ 2.11.*) ;; # other 2.11 versions
8769 *) supports_anon_versioning=yes ;;
8770 esac
8771
8772 # See if GNU ld supports shared libraries.
8773 case $host_os in
8774 aix[3-9]*)
8775 # On AIX/PPC, the GNU linker is very broken
8776 if test "$host_cpu" != ia64; then
8777 ld_shlibs=no
8778 cat <<_LT_EOF 1>&2
8779
8780*** Warning: the GNU linker, at least up to release 2.19, is reported
8781*** to be unable to reliably create shared libraries on AIX.
8782*** Therefore, libtool is disabling shared libraries support. If you
8783*** really care for shared libraries, you may want to install binutils
8784*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8785*** You will then need to restart the configuration process.
8786
8787_LT_EOF
8788 fi
8789 ;;
8790
8791 amigaos*)
8792 case $host_cpu in
8793 powerpc)
8794 # see comment about AmigaOS4 .so support
8795 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8796 archive_expsym_cmds=''
8797 ;;
8798 m68k)
8799 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)'
8800 hardcode_libdir_flag_spec='-L$libdir'
8801 hardcode_minus_L=yes
8802 ;;
8803 esac
8804 ;;
8805
8806 beos*)
8807 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8808 allow_undefined_flag=unsupported
8809 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8810 # support --undefined. This deserves some investigation. FIXME
8811 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8812 else
8813 ld_shlibs=no
8814 fi
8815 ;;
8816
8817 cygwin* | mingw* | pw32* | cegcc*)
8818 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8819 # as there is no search path for DLLs.
8820 hardcode_libdir_flag_spec='-L$libdir'
8821 export_dynamic_flag_spec='${wl}--export-all-symbols'
8822 allow_undefined_flag=unsupported
8823 always_export_symbols=no
8824 enable_shared_with_static_runtimes=yes
a2479b3d 8825 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
f35db108
WM
8826
8827 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8828 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8829 # If the export-symbols file already is a .def file (1st line
8830 # is EXPORTS), use it as is; otherwise, prepend...
8831 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8832 cp $export_symbols $output_objdir/$soname.def;
8833 else
8834 echo EXPORTS > $output_objdir/$soname.def;
8835 cat $export_symbols >> $output_objdir/$soname.def;
8836 fi~
8837 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8838 else
8839 ld_shlibs=no
8840 fi
8841 ;;
8842
8843 haiku*)
8844 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8845 link_all_deplibs=yes
8846 ;;
8847
8848 interix[3-9]*)
8849 hardcode_direct=no
8850 hardcode_shlibpath_var=no
8851 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8852 export_dynamic_flag_spec='${wl}-E'
8853 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8854 # Instead, shared libraries are loaded at an image base (0x10000000 by
8855 # default) and relocated if they conflict, which is a slow very memory
8856 # consuming and fragmenting process. To avoid this, we pick a random,
8857 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8858 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8859 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8860 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'
8861 ;;
8862
8863 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8864 tmp_diet=no
8865 if test "$host_os" = linux-dietlibc; then
8866 case $cc_basename in
8867 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8868 esac
8869 fi
8870 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8871 && test "$tmp_diet" = no
8872 then
a2479b3d 8873 tmp_addflag=
f35db108
WM
8874 tmp_sharedflag='-shared'
8875 case $cc_basename,$host_cpu in
8876 pgcc*) # Portland Group C compiler
8877 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'
8878 tmp_addflag=' $pic_flag'
8879 ;;
8880 pgf77* | pgf90* | pgf95* | pgfortran*)
8881 # Portland Group f77 and f90 compilers
8882 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'
8883 tmp_addflag=' $pic_flag -Mnomain' ;;
8884 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8885 tmp_addflag=' -i_dynamic' ;;
8886 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8887 tmp_addflag=' -i_dynamic -nofor_main' ;;
8888 ifc* | ifort*) # Intel Fortran compiler
8889 tmp_addflag=' -nofor_main' ;;
8890 lf95*) # Lahey Fortran 8.1
8891 whole_archive_flag_spec=
8892 tmp_sharedflag='--shared' ;;
8893 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8894 tmp_sharedflag='-qmkshrobj'
8895 tmp_addflag= ;;
8896 nvcc*) # Cuda Compiler Driver 2.2
8897 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'
8898 compiler_needs_object=yes
8899 ;;
8900 esac
8901 case `$CC -V 2>&1 | sed 5q` in
8902 *Sun\ C*) # Sun C 5.9
8903 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'
8904 compiler_needs_object=yes
8905 tmp_sharedflag='-G' ;;
8906 *Sun\ F*) # Sun Fortran 8.3
8907 tmp_sharedflag='-G' ;;
8908 esac
8909 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8910
8911 if test "x$supports_anon_versioning" = xyes; then
8912 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8913 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8914 echo "local: *; };" >> $output_objdir/$libname.ver~
8915 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8916 fi
8917
8918 case $cc_basename in
8919 xlf* | bgf* | bgxlf* | mpixlf*)
8920 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8921 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
a2479b3d
L
8922 hardcode_libdir_flag_spec=
8923 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8924 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
f35db108
WM
8925 if test "x$supports_anon_versioning" = xyes; then
8926 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8927 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8928 echo "local: *; };" >> $output_objdir/$libname.ver~
a2479b3d 8929 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
f35db108
WM
8930 fi
8931 ;;
8932 esac
8933 else
8934 ld_shlibs=no
8935 fi
8936 ;;
8937
a2479b3d 8938 netbsd*)
f35db108
WM
8939 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8940 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8941 wlarc=
8942 else
a2479b3d
L
8943 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8944 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
f35db108
WM
8945 fi
8946 ;;
8947
8948 solaris*)
8949 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8950 ld_shlibs=no
8951 cat <<_LT_EOF 1>&2
8952
8953*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8954*** create shared libraries on Solaris systems. Therefore, libtool
8955*** is disabling shared libraries support. We urge you to upgrade GNU
8956*** binutils to release 2.9.1 or newer. Another option is to modify
8957*** your PATH or compiler configuration so that the native linker is
8958*** used, and then restart.
8959
8960_LT_EOF
8961 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
a2479b3d
L
8962 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8963 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
f35db108
WM
8964 else
8965 ld_shlibs=no
8966 fi
8967 ;;
8968
8969 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8970 case `$LD -v 2>&1` in
8971 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8972 ld_shlibs=no
8973 cat <<_LT_EOF 1>&2
8974
8975*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8976*** reliably create shared libraries on SCO systems. Therefore, libtool
8977*** is disabling shared libraries support. We urge you to upgrade GNU
8978*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8979*** your PATH or compiler configuration so that the native linker is
8980*** used, and then restart.
8981
8982_LT_EOF
8983 ;;
8984 *)
8985 # For security reasons, it is highly recommended that you always
8986 # use absolute paths for naming shared libraries, and exclude the
8987 # DT_RUNPATH tag from executables and libraries. But doing so
8988 # requires that you compile everything twice, which is a pain.
8989 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8990 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8991 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8992 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8993 else
8994 ld_shlibs=no
8995 fi
8996 ;;
8997 esac
8998 ;;
8999
9000 sunos4*)
9001 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9002 wlarc=
9003 hardcode_direct=yes
9004 hardcode_shlibpath_var=no
9005 ;;
9006
9007 *)
9008 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
a2479b3d
L
9009 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9010 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
f35db108
WM
9011 else
9012 ld_shlibs=no
9013 fi
9014 ;;
9015 esac
9016
9017 if test "$ld_shlibs" = no; then
9018 runpath_var=
9019 hardcode_libdir_flag_spec=
9020 export_dynamic_flag_spec=
9021 whole_archive_flag_spec=
9022 fi
9023 else
9024 # PORTME fill in a description of your system's linker (not GNU ld)
9025 case $host_os in
9026 aix3*)
9027 allow_undefined_flag=unsupported
9028 always_export_symbols=yes
9029 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'
9030 # Note: this linker hardcodes the directories in LIBPATH if there
9031 # are no directories specified by -L.
9032 hardcode_minus_L=yes
9033 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9034 # Neither direct hardcoding nor static linking is supported with a
9035 # broken collect2.
9036 hardcode_direct=unsupported
9037 fi
9038 ;;
9039
9040 aix[4-9]*)
9041 if test "$host_cpu" = ia64; then
9042 # On IA64, the linker does run time linking by default, so we don't
9043 # have to do anything special.
9044 aix_use_runtimelinking=no
9045 exp_sym_flag='-Bexport'
9046 no_entry_flag=""
9047 else
9048 # If we're using GNU nm, then we don't want the "-C" option.
9049 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9050 # Also, AIX nm treats weak defined symbols like other global
9051 # defined symbols, whereas GNU nm marks them as "W".
9052 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9053 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'
9054 else
9055 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'
9056 fi
9057 aix_use_runtimelinking=no
9058
9059 # Test if we are trying to use run time linking or normal
9060 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9061 # need to do runtime linking.
9062 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9063 for ld_flag in $LDFLAGS; do
9064 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9065 aix_use_runtimelinking=yes
9066 break
9067 fi
9068 done
9069 ;;
9070 esac
9071
9072 exp_sym_flag='-bexport'
9073 no_entry_flag='-bnoentry'
9074 fi
9075
9076 # When large executables or shared objects are built, AIX ld can
9077 # have problems creating the table of contents. If linking a library
9078 # or program results in "error TOC overflow" add -mminimal-toc to
9079 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9080 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9081
9082 archive_cmds=''
9083 hardcode_direct=yes
9084 hardcode_direct_absolute=yes
9085 hardcode_libdir_separator=':'
9086 link_all_deplibs=yes
9087 file_list_spec='${wl}-f,'
9088
9089 if test "$GCC" = yes; then
9090 case $host_os in aix4.[012]|aix4.[012].*)
9091 # We only want to do this on AIX 4.2 and lower, the check
9092 # below for broken collect2 doesn't work under 4.3+
9093 collect2name=`${CC} -print-prog-name=collect2`
9094 if test -f "$collect2name" &&
9095 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9096 then
9097 # We have reworked collect2
9098 :
9099 else
9100 # We have old collect2
9101 hardcode_direct=unsupported
9102 # It fails to find uninstalled libraries when the uninstalled
9103 # path is not listed in the libpath. Setting hardcode_minus_L
9104 # to unsupported forces relinking
9105 hardcode_minus_L=yes
9106 hardcode_libdir_flag_spec='-L$libdir'
9107 hardcode_libdir_separator=
9108 fi
9109 ;;
9110 esac
9111 shared_flag='-shared'
9112 if test "$aix_use_runtimelinking" = yes; then
9113 shared_flag="$shared_flag "'${wl}-G'
9114 fi
f35db108
WM
9115 else
9116 # not using gcc
9117 if test "$host_cpu" = ia64; then
9118 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9119 # chokes on -Wl,-G. The following line is correct:
9120 shared_flag='-G'
9121 else
9122 if test "$aix_use_runtimelinking" = yes; then
9123 shared_flag='${wl}-G'
9124 else
9125 shared_flag='${wl}-bM:SRE'
9126 fi
9127 fi
9128 fi
9129
9130 export_dynamic_flag_spec='${wl}-bexpall'
9131 # It seems that -bexpall does not export symbols beginning with
9132 # underscore (_), so it is better to generate a list of symbols to export.
9133 always_export_symbols=yes
9134 if test "$aix_use_runtimelinking" = yes; then
9135 # Warning - without using the other runtime loading flags (-brtl),
9136 # -berok will link without error, but may produce a broken library.
9137 allow_undefined_flag='-berok'
9138 # Determine the default libpath from the value encoded in an
9139 # empty executable.
a2479b3d 9140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f35db108
WM
9141/* end confdefs.h. */
9142
9143int
9144main ()
9145{
9146
9147 ;
9148 return 0;
9149}
9150_ACEOF
9151if ac_fn_c_try_link "$LINENO"; then :
9152
a2479b3d
L
9153lt_aix_libpath_sed='
9154 /Import File Strings/,/^$/ {
9155 /^0/ {
9156 s/^0 *\(.*\)$/\1/
9157 p
9158 }
9159 }'
9160aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9161# Check for a 64-bit object if we didn't find anything.
9162if test -z "$aix_libpath"; then
9163 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9164fi
f35db108
WM
9165fi
9166rm -f core conftest.err conftest.$ac_objext \
9167 conftest$ac_exeext conftest.$ac_ext
a2479b3d 9168if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
f35db108
WM
9169
9170 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9171 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"
9172 else
9173 if test "$host_cpu" = ia64; then
9174 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9175 allow_undefined_flag="-z nodefs"
9176 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"
9177 else
9178 # Determine the default libpath from the value encoded in an
9179 # empty executable.
a2479b3d 9180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f35db108
WM
9181/* end confdefs.h. */
9182
9183int
9184main ()
9185{
9186
9187 ;
9188 return 0;
9189}
9190_ACEOF
9191if ac_fn_c_try_link "$LINENO"; then :
9192
a2479b3d
L
9193lt_aix_libpath_sed='
9194 /Import File Strings/,/^$/ {
9195 /^0/ {
9196 s/^0 *\(.*\)$/\1/
9197 p
9198 }
9199 }'
9200aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9201# Check for a 64-bit object if we didn't find anything.
9202if test -z "$aix_libpath"; then
9203 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9204fi
f35db108
WM
9205fi
9206rm -f core conftest.err conftest.$ac_objext \
9207 conftest$ac_exeext conftest.$ac_ext
a2479b3d 9208if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
f35db108
WM
9209
9210 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9211 # Warning - without using the other run time loading flags,
9212 # -berok will link without error, but may produce a broken library.
9213 no_undefined_flag=' ${wl}-bernotok'
9214 allow_undefined_flag=' ${wl}-berok'
9215 if test "$with_gnu_ld" = yes; then
9216 # We only use this code for GNU lds that support --whole-archive.
9217 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9218 else
9219 # Exported symbols can be pulled into shared objects from archives
9220 whole_archive_flag_spec='$convenience'
9221 fi
9222 archive_cmds_need_lc=yes
9223 # This is similar to how AIX traditionally builds its shared libraries.
9224 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'
9225 fi
9226 fi
9227 ;;
9228
9229 amigaos*)
9230 case $host_cpu in
9231 powerpc)
9232 # see comment about AmigaOS4 .so support
9233 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9234 archive_expsym_cmds=''
9235 ;;
9236 m68k)
9237 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)'
9238 hardcode_libdir_flag_spec='-L$libdir'
9239 hardcode_minus_L=yes
9240 ;;
9241 esac
9242 ;;
9243
9244 bsdi[45]*)
9245 export_dynamic_flag_spec=-rdynamic
9246 ;;
9247
9248 cygwin* | mingw* | pw32* | cegcc*)
9249 # When not using gcc, we currently assume that we are using
9250 # Microsoft Visual C++.
9251 # hardcode_libdir_flag_spec is actually meaningless, as there is
9252 # no search path for DLLs.
a2479b3d
L
9253 hardcode_libdir_flag_spec=' '
9254 allow_undefined_flag=unsupported
9255 # Tell ltmain to make .lib files, not .a files.
9256 libext=lib
9257 # Tell ltmain to make .dll files, not .so files.
9258 shrext_cmds=".dll"
9259 # FIXME: Setting linknames here is a bad hack.
9260 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9261 # The linker will automatically build a .lib file if we build a DLL.
9262 old_archive_from_new_cmds='true'
9263 # FIXME: Should let the user specify the lib program.
9264 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9265 fix_srcfile_path='`cygpath -w "$srcfile"`'
9266 enable_shared_with_static_runtimes=yes
f35db108
WM
9267 ;;
9268
9269 darwin* | rhapsody*)
9270
9271
9272 archive_cmds_need_lc=no
9273 hardcode_direct=no
9274 hardcode_automatic=yes
9275 hardcode_shlibpath_var=unsupported
9276 if test "$lt_cv_ld_force_load" = "yes"; then
9277 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\"`'
f35db108
WM
9278 else
9279 whole_archive_flag_spec=''
9280 fi
9281 link_all_deplibs=yes
9282 allow_undefined_flag="$_lt_dar_allow_undefined"
9283 case $cc_basename in
9284 ifort*) _lt_dar_can_shared=yes ;;
9285 *) _lt_dar_can_shared=$GCC ;;
9286 esac
9287 if test "$_lt_dar_can_shared" = "yes"; then
9288 output_verbose_link_cmd=func_echo_all
9289 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9290 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9291 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}"
9292 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}"
9293
9294 else
9295 ld_shlibs=no
9296 fi
9297
9298 ;;
9299
9300 dgux*)
9301 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9302 hardcode_libdir_flag_spec='-L$libdir'
9303 hardcode_shlibpath_var=no
9304 ;;
9305
9306 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9307 # support. Future versions do this automatically, but an explicit c++rt0.o
9308 # does not break anything, and helps significantly (at the cost of a little
9309 # extra space).
9310 freebsd2.2*)
9311 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9312 hardcode_libdir_flag_spec='-R$libdir'
9313 hardcode_direct=yes
9314 hardcode_shlibpath_var=no
9315 ;;
9316
9317 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9318 freebsd2.*)
9319 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9320 hardcode_direct=yes
9321 hardcode_minus_L=yes
9322 hardcode_shlibpath_var=no
9323 ;;
9324
9325 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9326 freebsd* | dragonfly*)
a2479b3d 9327 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
f35db108
WM
9328 hardcode_libdir_flag_spec='-R$libdir'
9329 hardcode_direct=yes
9330 hardcode_shlibpath_var=no
9331 ;;
9332
9333 hpux9*)
9334 if test "$GCC" = yes; then
a2479b3d 9335 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
f35db108
WM
9336 else
9337 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'
9338 fi
9339 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9340 hardcode_libdir_separator=:
9341 hardcode_direct=yes
9342
9343 # hardcode_minus_L: Not really in the search PATH,
9344 # but as the default location of the library.
9345 hardcode_minus_L=yes
9346 export_dynamic_flag_spec='${wl}-E'
9347 ;;
9348
9349 hpux10*)
9350 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
a2479b3d 9351 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
f35db108
WM
9352 else
9353 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9354 fi
9355 if test "$with_gnu_ld" = no; then
9356 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
a2479b3d 9357 hardcode_libdir_flag_spec_ld='+b $libdir'
f35db108
WM
9358 hardcode_libdir_separator=:
9359 hardcode_direct=yes
9360 hardcode_direct_absolute=yes
9361 export_dynamic_flag_spec='${wl}-E'
9362 # hardcode_minus_L: Not really in the search PATH,
9363 # but as the default location of the library.
9364 hardcode_minus_L=yes
9365 fi
9366 ;;
9367
9368 hpux11*)
9369 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9370 case $host_cpu in
9371 hppa*64*)
9372 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9373 ;;
9374 ia64*)
a2479b3d 9375 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
f35db108
WM
9376 ;;
9377 *)
a2479b3d 9378 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
f35db108
WM
9379 ;;
9380 esac
9381 else
9382 case $host_cpu in
9383 hppa*64*)
9384 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9385 ;;
9386 ia64*)
9387 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9388 ;;
9389 *)
9390
9391 # Older versions of the 11.00 compiler do not understand -b yet
9392 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9394$as_echo_n "checking if $CC understands -b... " >&6; }
a2479b3d 9395if test "${lt_cv_prog_compiler__b+set}" = set; then :
f35db108
WM
9396 $as_echo_n "(cached) " >&6
9397else
9398 lt_cv_prog_compiler__b=no
9399 save_LDFLAGS="$LDFLAGS"
9400 LDFLAGS="$LDFLAGS -b"
9401 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9402 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9403 # The linker can only warn and ignore the option if not recognized
9404 # So say no if there are warnings
9405 if test -s conftest.err; then
9406 # Append any errors to the config.log.
9407 cat conftest.err 1>&5
9408 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9409 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9410 if diff conftest.exp conftest.er2 >/dev/null; then
9411 lt_cv_prog_compiler__b=yes
9412 fi
9413 else
9414 lt_cv_prog_compiler__b=yes
9415 fi
9416 fi
9417 $RM -r conftest*
9418 LDFLAGS="$save_LDFLAGS"
9419
9420fi
9421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9422$as_echo "$lt_cv_prog_compiler__b" >&6; }
9423
9424if test x"$lt_cv_prog_compiler__b" = xyes; then
9425 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9426else
9427 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9428fi
9429
9430 ;;
9431 esac
9432 fi
9433 if test "$with_gnu_ld" = no; then
9434 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9435 hardcode_libdir_separator=:
9436
9437 case $host_cpu in
9438 hppa*64*|ia64*)
9439 hardcode_direct=no
9440 hardcode_shlibpath_var=no
9441 ;;
9442 *)
9443 hardcode_direct=yes
9444 hardcode_direct_absolute=yes
9445 export_dynamic_flag_spec='${wl}-E'
9446
9447 # hardcode_minus_L: Not really in the search PATH,
9448 # but as the default location of the library.
9449 hardcode_minus_L=yes
9450 ;;
9451 esac
9452 fi
9453 ;;
9454
9455 irix5* | irix6* | nonstopux*)
9456 if test "$GCC" = yes; then
a2479b3d 9457 archive_cmds='$CC -shared $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'
f35db108
WM
9458 # Try to use the -exported_symbol ld option, if it does not
9459 # work, assume that -exports_file does not work either and
9460 # implicitly export all symbols.
a2479b3d
L
9461 save_LDFLAGS="$LDFLAGS"
9462 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f35db108 9464/* end confdefs.h. */
a2479b3d 9465int foo(void) {}
f35db108
WM
9466_ACEOF
9467if ac_fn_c_try_link "$LINENO"; then :
a2479b3d
L
9468 archive_expsym_cmds='$CC -shared $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'
9469
f35db108
WM
9470fi
9471rm -f core conftest.err conftest.$ac_objext \
9472 conftest$ac_exeext conftest.$ac_ext
a2479b3d 9473 LDFLAGS="$save_LDFLAGS"
f35db108
WM
9474 else
9475 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'
9476 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'
9477 fi
9478 archive_cmds_need_lc='no'
9479 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9480 hardcode_libdir_separator=:
9481 inherit_rpath=yes
9482 link_all_deplibs=yes
9483 ;;
9484
a2479b3d 9485 netbsd*)
f35db108
WM
9486 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9487 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9488 else
9489 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9490 fi
9491 hardcode_libdir_flag_spec='-R$libdir'
9492 hardcode_direct=yes
9493 hardcode_shlibpath_var=no
9494 ;;
9495
9496 newsos6)
9497 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9498 hardcode_direct=yes
9499 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9500 hardcode_libdir_separator=:
9501 hardcode_shlibpath_var=no
9502 ;;
9503
9504 *nto* | *qnx*)
9505 ;;
9506
9507 openbsd*)
9508 if test -f /usr/libexec/ld.so; then
9509 hardcode_direct=yes
9510 hardcode_shlibpath_var=no
9511 hardcode_direct_absolute=yes
9512 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9513 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9514 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9515 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9516 export_dynamic_flag_spec='${wl}-E'
9517 else
9518 case $host_os in
9519 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9520 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9521 hardcode_libdir_flag_spec='-R$libdir'
9522 ;;
9523 *)
9524 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9525 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9526 ;;
9527 esac
9528 fi
9529 else
9530 ld_shlibs=no
9531 fi
9532 ;;
9533
9534 os2*)
9535 hardcode_libdir_flag_spec='-L$libdir'
9536 hardcode_minus_L=yes
9537 allow_undefined_flag=unsupported
9538 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'
9539 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9540 ;;
9541
9542 osf3*)
9543 if test "$GCC" = yes; then
9544 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9545 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'
9546 else
9547 allow_undefined_flag=' -expect_unresolved \*'
9548 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'
9549 fi
9550 archive_cmds_need_lc='no'
9551 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9552 hardcode_libdir_separator=:
9553 ;;
9554
9555 osf4* | osf5*) # as osf3* with the addition of -msym flag
9556 if test "$GCC" = yes; then
9557 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
a2479b3d 9558 archive_cmds='$CC -shared${allow_undefined_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'
f35db108
WM
9559 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9560 else
9561 allow_undefined_flag=' -expect_unresolved \*'
9562 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'
9563 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~
9564 $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'
9565
9566 # Both c and cxx compiler support -rpath directly
9567 hardcode_libdir_flag_spec='-rpath $libdir'
9568 fi
9569 archive_cmds_need_lc='no'
9570 hardcode_libdir_separator=:
9571 ;;
9572
9573 solaris*)
9574 no_undefined_flag=' -z defs'
9575 if test "$GCC" = yes; then
9576 wlarc='${wl}'
a2479b3d 9577 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
f35db108 9578 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
a2479b3d 9579 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
f35db108
WM
9580 else
9581 case `$CC -V 2>&1` in
9582 *"Compilers 5.0"*)
9583 wlarc=''
9584 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9585 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9586 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9587 ;;
9588 *)
9589 wlarc='${wl}'
9590 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9591 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9592 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9593 ;;
9594 esac
9595 fi
9596 hardcode_libdir_flag_spec='-R$libdir'
9597 hardcode_shlibpath_var=no
9598 case $host_os in
9599 solaris2.[0-5] | solaris2.[0-5].*) ;;
9600 *)
9601 # The compiler driver will combine and reorder linker options,
9602 # but understands `-z linker_flag'. GCC discards it without `$wl',
9603 # but is careful enough not to reorder.
9604 # Supported since Solaris 2.6 (maybe 2.5.1?)
9605 if test "$GCC" = yes; then
9606 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9607 else
9608 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9609 fi
9610 ;;
9611 esac
9612 link_all_deplibs=yes
9613 ;;
9614
9615 sunos4*)
9616 if test "x$host_vendor" = xsequent; then
9617 # Use $CC to link under sequent, because it throws in some extra .o
9618 # files that make .init and .fini sections work.
9619 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9620 else
9621 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9622 fi
9623 hardcode_libdir_flag_spec='-L$libdir'
9624 hardcode_direct=yes
9625 hardcode_minus_L=yes
9626 hardcode_shlibpath_var=no
9627 ;;
9628
9629 sysv4)
9630 case $host_vendor in
9631 sni)
9632 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9633 hardcode_direct=yes # is this really true???
9634 ;;
9635 siemens)
9636 ## LD is ld it makes a PLAMLIB
9637 ## CC just makes a GrossModule.
9638 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9639 reload_cmds='$CC -r -o $output$reload_objs'
9640 hardcode_direct=no
9641 ;;
9642 motorola)
9643 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9644 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9645 ;;
9646 esac
9647 runpath_var='LD_RUN_PATH'
9648 hardcode_shlibpath_var=no
9649 ;;
9650
9651 sysv4.3*)
9652 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9653 hardcode_shlibpath_var=no
9654 export_dynamic_flag_spec='-Bexport'
9655 ;;
9656
9657 sysv4*MP*)
9658 if test -d /usr/nec; then
9659 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9660 hardcode_shlibpath_var=no
9661 runpath_var=LD_RUN_PATH
9662 hardcode_runpath_var=yes
9663 ld_shlibs=yes
9664 fi
9665 ;;
9666
9667 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9668 no_undefined_flag='${wl}-z,text'
9669 archive_cmds_need_lc=no
9670 hardcode_shlibpath_var=no
9671 runpath_var='LD_RUN_PATH'
9672
9673 if test "$GCC" = yes; then
9674 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9675 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9676 else
9677 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9678 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9679 fi
9680 ;;
9681
9682 sysv5* | sco3.2v5* | sco5v6*)
9683 # Note: We can NOT use -z defs as we might desire, because we do not
9684 # link with -lc, and that would cause any symbols used from libc to
9685 # always be unresolved, which means just about no library would
9686 # ever link correctly. If we're not using GNU ld we use -z text
9687 # though, which does catch some bad symbols but isn't as heavy-handed
9688 # as -z defs.
9689 no_undefined_flag='${wl}-z,text'
9690 allow_undefined_flag='${wl}-z,nodefs'
9691 archive_cmds_need_lc=no
9692 hardcode_shlibpath_var=no
9693 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9694 hardcode_libdir_separator=':'
9695 link_all_deplibs=yes
9696 export_dynamic_flag_spec='${wl}-Bexport'
9697 runpath_var='LD_RUN_PATH'
9698
9699 if test "$GCC" = yes; then
9700 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9701 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9702 else
9703 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9704 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9705 fi
9706 ;;
9707
9708 uts4*)
9709 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9710 hardcode_libdir_flag_spec='-L$libdir'
9711 hardcode_shlibpath_var=no
9712 ;;
9713
9714 *)
9715 ld_shlibs=no
9716 ;;
9717 esac
9718
9719 if test x$host_vendor = xsni; then
9720 case $host in
9721 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9722 export_dynamic_flag_spec='${wl}-Blargedynsym'
9723 ;;
9724 esac
9725 fi
9726 fi
9727
9728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9729$as_echo "$ld_shlibs" >&6; }
9730test "$ld_shlibs" = no && can_build_shared=no
9731
9732with_gnu_ld=$with_gnu_ld
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748#
9749# Do we need to explicitly link libc?
9750#
9751case "x$archive_cmds_need_lc" in
9752x|xyes)
9753 # Assume -lc should be added
9754 archive_cmds_need_lc=yes
9755
9756 if test "$enable_shared" = yes && test "$GCC" = yes; then
9757 case $archive_cmds in
9758 *'~'*)
9759 # FIXME: we may have to deal with multi-command sequences.
9760 ;;
9761 '$CC '*)
9762 # Test whether the compiler implicitly links with -lc since on some
9763 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9764 # to ld, don't add -lc before -lgcc.
9765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9766$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
a2479b3d 9767if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
f35db108
WM
9768 $as_echo_n "(cached) " >&6
9769else
9770 $RM conftest*
9771 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9772
9773 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9774 (eval $ac_compile) 2>&5
9775 ac_status=$?
9776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9777 test $ac_status = 0; } 2>conftest.err; then
9778 soname=conftest
9779 lib=conftest
9780 libobjs=conftest.$ac_objext
9781 deplibs=
9782 wl=$lt_prog_compiler_wl
9783 pic_flag=$lt_prog_compiler_pic
9784 compiler_flags=-v
9785 linker_flags=-v
9786 verstring=
9787 output_objdir=.
9788 libname=conftest
9789 lt_save_allow_undefined_flag=$allow_undefined_flag
9790 allow_undefined_flag=
9791 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9792 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9793 ac_status=$?
9794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9795 test $ac_status = 0; }
9796 then
9797 lt_cv_archive_cmds_need_lc=no
9798 else
9799 lt_cv_archive_cmds_need_lc=yes
9800 fi
9801 allow_undefined_flag=$lt_save_allow_undefined_flag
9802 else
9803 cat conftest.err 1>&5
9804 fi
9805 $RM conftest*
9806
9807fi
9808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9809$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9810 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9811 ;;
9812 esac
9813 fi
9814 ;;
9815esac
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
a2479b3d
L
9962
9963
9964
9965
9966
f35db108
WM
9967
9968
9969
9970
9971
9972
9973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9974$as_echo_n "checking dynamic linker characteristics... " >&6; }
9975
9976if test "$GCC" = yes; then
9977 case $host_os in
9978 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9979 *) lt_awk_arg="/^libraries:/" ;;
9980 esac
9981 case $host_os in
9982 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9983 *) lt_sed_strip_eq="s,=/,/,g" ;;
9984 esac
9985 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9986 case $lt_search_path_spec in
9987 *\;*)
9988 # if the path contains ";" then we assume it to be the separator
9989 # otherwise default to the standard path separator (i.e. ":") - it is
9990 # assumed that no part of a normal pathname contains ";" but that should
9991 # okay in the real world where ";" in dirpaths is itself problematic.
9992 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9993 ;;
9994 *)
9995 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9996 ;;
9997 esac
9998 # Ok, now we have the path, separated by spaces, we can step through it
9999 # and add multilib dir if necessary.
10000 lt_tmp_lt_search_path_spec=
10001 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10002 for lt_sys_path in $lt_search_path_spec; do
10003 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10004 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10005 else
10006 test -d "$lt_sys_path" && \
10007 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10008 fi
10009 done
10010 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10011BEGIN {RS=" "; FS="/|\n";} {
10012 lt_foo="";
10013 lt_count=0;
10014 for (lt_i = NF; lt_i > 0; lt_i--) {
10015 if ($lt_i != "" && $lt_i != ".") {
10016 if ($lt_i == "..") {
10017 lt_count++;
10018 } else {
10019 if (lt_count == 0) {
10020 lt_foo="/" $lt_i lt_foo;
10021 } else {
10022 lt_count--;
10023 }
10024 }
10025 }
10026 }
10027 if (lt_foo != "") { lt_freq[lt_foo]++; }
10028 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10029}'`
10030 # AWK program above erroneously prepends '/' to C:/dos/paths
10031 # for these hosts.
10032 case $host_os in
10033 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10034 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10035 esac
10036 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10037else
10038 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10039fi
10040library_names_spec=
10041libname_spec='lib$name'
10042soname_spec=
10043shrext_cmds=".so"
10044postinstall_cmds=
10045postuninstall_cmds=
10046finish_cmds=
10047finish_eval=
10048shlibpath_var=
10049shlibpath_overrides_runpath=unknown
10050version_type=none
10051dynamic_linker="$host_os ld.so"
10052sys_lib_dlsearch_path_spec="/lib /usr/lib"
10053need_lib_prefix=unknown
10054hardcode_into_libs=no
10055
10056# when you set need_version to no, make sure it does not cause -set_version
10057# flags to be left without arguments
10058need_version=unknown
10059
10060case $host_os in
10061aix3*)
a2479b3d 10062 version_type=linux
f35db108
WM
10063 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10064 shlibpath_var=LIBPATH
10065
10066 # AIX 3 has no versioning support, so we append a major version to the name.
10067 soname_spec='${libname}${release}${shared_ext}$major'
10068 ;;
10069
10070aix[4-9]*)
a2479b3d 10071 version_type=linux
f35db108
WM
10072 need_lib_prefix=no
10073 need_version=no
10074 hardcode_into_libs=yes
10075 if test "$host_cpu" = ia64; then
10076 # AIX 5 supports IA64
10077 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10078 shlibpath_var=LD_LIBRARY_PATH
10079 else
10080 # With GCC up to 2.95.x, collect2 would create an import file
10081 # for dependence libraries. The import file would start with
10082 # the line `#! .'. This would cause the generated library to
10083 # depend on `.', always an invalid library. This was fixed in
10084 # development snapshots of GCC prior to 3.0.
10085 case $host_os in
10086 aix4 | aix4.[01] | aix4.[01].*)
10087 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10088 echo ' yes '
10089 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10090 :
10091 else
10092 can_build_shared=no
10093 fi
10094 ;;
10095 esac
10096 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10097 # soname into executable. Probably we can add versioning support to
10098 # collect2, so additional links can be useful in future.
10099 if test "$aix_use_runtimelinking" = yes; then
10100 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10101 # instead of lib<name>.a to let people know that these are not
10102 # typical AIX shared libraries.
10103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10104 else
10105 # We preserve .a as extension for shared libraries through AIX4.2
10106 # and later when we are not doing run time linking.
10107 library_names_spec='${libname}${release}.a $libname.a'
10108 soname_spec='${libname}${release}${shared_ext}$major'
10109 fi
10110 shlibpath_var=LIBPATH
10111 fi
10112 ;;
10113
10114amigaos*)
10115 case $host_cpu in
10116 powerpc)
10117 # Since July 2007 AmigaOS4 officially supports .so libraries.
10118 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10120 ;;
10121 m68k)
10122 library_names_spec='$libname.ixlibrary $libname.a'
10123 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10124 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'
10125 ;;
10126 esac
10127 ;;
10128
10129beos*)
10130 library_names_spec='${libname}${shared_ext}'
10131 dynamic_linker="$host_os ld.so"
10132 shlibpath_var=LIBRARY_PATH
10133 ;;
10134
10135bsdi[45]*)
a2479b3d 10136 version_type=linux
f35db108
WM
10137 need_version=no
10138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10139 soname_spec='${libname}${release}${shared_ext}$major'
10140 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10141 shlibpath_var=LD_LIBRARY_PATH
10142 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10143 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10144 # the default ld.so.conf also contains /usr/contrib/lib and
10145 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10146 # libtool to hard-code these into programs
10147 ;;
10148
10149cygwin* | mingw* | pw32* | cegcc*)
10150 version_type=windows
10151 shrext_cmds=".dll"
10152 need_version=no
10153 need_lib_prefix=no
10154
a2479b3d
L
10155 case $GCC,$host_os in
10156 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
f35db108
WM
10157 library_names_spec='$libname.dll.a'
10158 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10159 postinstall_cmds='base_file=`basename \${file}`~
10160 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10161 dldir=$destdir/`dirname \$dlpath`~
10162 test -d \$dldir || mkdir -p \$dldir~
10163 $install_prog $dir/$dlname \$dldir/$dlname~
10164 chmod a+x \$dldir/$dlname~
10165 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10166 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10167 fi'
10168 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10169 dlpath=$dir/\$dldll~
10170 $RM \$dlpath'
10171 shlibpath_overrides_runpath=yes
10172
10173 case $host_os in
10174 cygwin*)
10175 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10176 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10177
10178 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10179 ;;
10180 mingw* | cegcc*)
10181 # MinGW DLLs use traditional 'lib' prefix
10182 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10183 ;;
10184 pw32*)
10185 # pw32 DLLs use 'pw' prefix rather than 'lib'
10186 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10187 ;;
10188 esac
f35db108
WM
10189 ;;
10190
10191 *)
f35db108 10192 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
f35db108
WM
10193 ;;
10194 esac
a2479b3d 10195 dynamic_linker='Win32 ld.exe'
f35db108
WM
10196 # FIXME: first we should search . and the directory the executable is in
10197 shlibpath_var=PATH
10198 ;;
10199
10200darwin* | rhapsody*)
10201 dynamic_linker="$host_os dyld"
10202 version_type=darwin
10203 need_lib_prefix=no
10204 need_version=no
10205 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10206 soname_spec='${libname}${release}${major}$shared_ext'
10207 shlibpath_overrides_runpath=yes
10208 shlibpath_var=DYLD_LIBRARY_PATH
10209 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10210
10211 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10212 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10213 ;;
10214
10215dgux*)
a2479b3d 10216 version_type=linux
f35db108
WM
10217 need_lib_prefix=no
10218 need_version=no
10219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10220 soname_spec='${libname}${release}${shared_ext}$major'
10221 shlibpath_var=LD_LIBRARY_PATH
10222 ;;
10223
10224freebsd* | dragonfly*)
10225 # DragonFly does not have aout. When/if they implement a new
10226 # versioning mechanism, adjust this.
10227 if test -x /usr/bin/objformat; then
10228 objformat=`/usr/bin/objformat`
10229 else
10230 case $host_os in
10231 freebsd[23].*) objformat=aout ;;
10232 *) objformat=elf ;;
10233 esac
10234 fi
10235 version_type=freebsd-$objformat
10236 case $version_type in
10237 freebsd-elf*)
10238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10239 need_version=no
10240 need_lib_prefix=no
10241 ;;
10242 freebsd-*)
10243 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10244 need_version=yes
10245 ;;
10246 esac
10247 shlibpath_var=LD_LIBRARY_PATH
10248 case $host_os in
10249 freebsd2.*)
10250 shlibpath_overrides_runpath=yes
10251 ;;
10252 freebsd3.[01]* | freebsdelf3.[01]*)
10253 shlibpath_overrides_runpath=yes
10254 hardcode_into_libs=yes
10255 ;;
10256 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10257 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10258 shlibpath_overrides_runpath=no
10259 hardcode_into_libs=yes
10260 ;;
10261 *) # from 4.6 on, and DragonFly
10262 shlibpath_overrides_runpath=yes
10263 hardcode_into_libs=yes
10264 ;;
10265 esac
10266 ;;
10267
10268gnu*)
a2479b3d 10269 version_type=linux
f35db108
WM
10270 need_lib_prefix=no
10271 need_version=no
10272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10273 soname_spec='${libname}${release}${shared_ext}$major'
10274 shlibpath_var=LD_LIBRARY_PATH
f35db108
WM
10275 hardcode_into_libs=yes
10276 ;;
10277
10278haiku*)
a2479b3d 10279 version_type=linux
f35db108
WM
10280 need_lib_prefix=no
10281 need_version=no
10282 dynamic_linker="$host_os runtime_loader"
10283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10284 soname_spec='${libname}${release}${shared_ext}$major'
10285 shlibpath_var=LIBRARY_PATH
10286 shlibpath_overrides_runpath=yes
a2479b3d 10287 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
f35db108
WM
10288 hardcode_into_libs=yes
10289 ;;
10290
10291hpux9* | hpux10* | hpux11*)
10292 # Give a soname corresponding to the major version so that dld.sl refuses to
10293 # link against other versions.
10294 version_type=sunos
10295 need_lib_prefix=no
10296 need_version=no
10297 case $host_cpu in
10298 ia64*)
10299 shrext_cmds='.so'
10300 hardcode_into_libs=yes
10301 dynamic_linker="$host_os dld.so"
10302 shlibpath_var=LD_LIBRARY_PATH
10303 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10305 soname_spec='${libname}${release}${shared_ext}$major'
10306 if test "X$HPUX_IA64_MODE" = X32; then
10307 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10308 else
10309 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10310 fi
10311 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10312 ;;
10313 hppa*64*)
10314 shrext_cmds='.sl'
10315 hardcode_into_libs=yes
10316 dynamic_linker="$host_os dld.sl"
10317 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10318 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10320 soname_spec='${libname}${release}${shared_ext}$major'
10321 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10322 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10323 ;;
10324 *)
10325 shrext_cmds='.sl'
10326 dynamic_linker="$host_os dld.sl"
10327 shlibpath_var=SHLIB_PATH
10328 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10330 soname_spec='${libname}${release}${shared_ext}$major'
10331 ;;
10332 esac
10333 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10334 postinstall_cmds='chmod 555 $lib'
10335 # or fails outright, so override atomically:
10336 install_override_mode=555
10337 ;;
10338
10339interix[3-9]*)
a2479b3d 10340 version_type=linux
f35db108
WM
10341 need_lib_prefix=no
10342 need_version=no
10343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10344 soname_spec='${libname}${release}${shared_ext}$major'
10345 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10346 shlibpath_var=LD_LIBRARY_PATH
10347 shlibpath_overrides_runpath=no
10348 hardcode_into_libs=yes
10349 ;;
10350
10351irix5* | irix6* | nonstopux*)
10352 case $host_os in
10353 nonstopux*) version_type=nonstopux ;;
10354 *)
10355 if test "$lt_cv_prog_gnu_ld" = yes; then
a2479b3d 10356 version_type=linux
f35db108
WM
10357 else
10358 version_type=irix
10359 fi ;;
10360 esac
10361 need_lib_prefix=no
10362 need_version=no
10363 soname_spec='${libname}${release}${shared_ext}$major'
10364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10365 case $host_os in
10366 irix5* | nonstopux*)
10367 libsuff= shlibsuff=
10368 ;;
10369 *)
10370 case $LD in # libtool.m4 will add one of these switches to LD
10371 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10372 libsuff= shlibsuff= libmagic=32-bit;;
10373 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10374 libsuff=32 shlibsuff=N32 libmagic=N32;;
10375 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10376 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10377 *) libsuff= shlibsuff= libmagic=never-match;;
10378 esac
10379 ;;
10380 esac
10381 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10382 shlibpath_overrides_runpath=no
10383 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10384 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10385 hardcode_into_libs=yes
10386 ;;
10387
10388# No shared lib support for Linux oldld, aout, or coff.
10389linux*oldld* | linux*aout* | linux*coff*)
10390 dynamic_linker=no
10391 ;;
10392
a2479b3d 10393# This must be Linux ELF.
f35db108 10394linux* | k*bsd*-gnu | kopensolaris*-gnu)
a2479b3d 10395 version_type=linux
f35db108
WM
10396 need_lib_prefix=no
10397 need_version=no
10398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10399 soname_spec='${libname}${release}${shared_ext}$major'
10400 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10401 shlibpath_var=LD_LIBRARY_PATH
10402 shlibpath_overrides_runpath=no
10403
10404 # Some binutils ld are patched to set DT_RUNPATH
a2479b3d 10405 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
f35db108
WM
10406 $as_echo_n "(cached) " >&6
10407else
10408 lt_cv_shlibpath_overrides_runpath=no
10409 save_LDFLAGS=$LDFLAGS
10410 save_libdir=$libdir
10411 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10412 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10414/* end confdefs.h. */
10415
10416int
10417main ()
10418{
10419
10420 ;
10421 return 0;
10422}
10423_ACEOF
10424if ac_fn_c_try_link "$LINENO"; then :
10425 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10426 lt_cv_shlibpath_overrides_runpath=yes
10427fi
10428fi
10429rm -f core conftest.err conftest.$ac_objext \
10430 conftest$ac_exeext conftest.$ac_ext
10431 LDFLAGS=$save_LDFLAGS
10432 libdir=$save_libdir
10433
10434fi
10435
10436 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10437
10438 # This implies no fast_install, which is unacceptable.
10439 # Some rework will be needed to allow for fast_install
10440 # before this can be enabled.
10441 hardcode_into_libs=yes
10442
10443 # Append ld.so.conf contents to the search path
10444 if test -f /etc/ld.so.conf; then
10445 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' ' '`
10446 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10447 fi
10448
10449 # We used to test for /lib/ld.so.1 and disable shared libraries on
10450 # powerpc, because MkLinux only supported shared libraries with the
10451 # GNU dynamic linker. Since this was broken with cross compilers,
10452 # most powerpc-linux boxes support dynamic linking these days and
10453 # people can always --disable-shared, the test was removed, and we
10454 # assume the GNU/Linux dynamic linker is in use.
10455 dynamic_linker='GNU/Linux ld.so'
10456 ;;
10457
f35db108
WM
10458netbsd*)
10459 version_type=sunos
10460 need_lib_prefix=no
10461 need_version=no
10462 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10464 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10465 dynamic_linker='NetBSD (a.out) ld.so'
10466 else
10467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10468 soname_spec='${libname}${release}${shared_ext}$major'
10469 dynamic_linker='NetBSD ld.elf_so'
10470 fi
10471 shlibpath_var=LD_LIBRARY_PATH
10472 shlibpath_overrides_runpath=yes
10473 hardcode_into_libs=yes
10474 ;;
10475
10476newsos6)
a2479b3d 10477 version_type=linux
f35db108
WM
10478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10479 shlibpath_var=LD_LIBRARY_PATH
10480 shlibpath_overrides_runpath=yes
10481 ;;
10482
10483*nto* | *qnx*)
10484 version_type=qnx
10485 need_lib_prefix=no
10486 need_version=no
10487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10488 soname_spec='${libname}${release}${shared_ext}$major'
10489 shlibpath_var=LD_LIBRARY_PATH
10490 shlibpath_overrides_runpath=no
10491 hardcode_into_libs=yes
10492 dynamic_linker='ldqnx.so'
10493 ;;
10494
10495openbsd*)
10496 version_type=sunos
10497 sys_lib_dlsearch_path_spec="/usr/lib"
10498 need_lib_prefix=no
10499 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10500 case $host_os in
10501 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10502 *) need_version=no ;;
10503 esac
10504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10505 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10506 shlibpath_var=LD_LIBRARY_PATH
10507 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10508 case $host_os in
10509 openbsd2.[89] | openbsd2.[89].*)
10510 shlibpath_overrides_runpath=no
10511 ;;
10512 *)
10513 shlibpath_overrides_runpath=yes
10514 ;;
10515 esac
10516 else
10517 shlibpath_overrides_runpath=yes
10518 fi
10519 ;;
10520
10521os2*)
10522 libname_spec='$name'
10523 shrext_cmds=".dll"
10524 need_lib_prefix=no
10525 library_names_spec='$libname${shared_ext} $libname.a'
10526 dynamic_linker='OS/2 ld.exe'
10527 shlibpath_var=LIBPATH
10528 ;;
10529
10530osf3* | osf4* | osf5*)
10531 version_type=osf
10532 need_lib_prefix=no
10533 need_version=no
10534 soname_spec='${libname}${release}${shared_ext}$major'
10535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10536 shlibpath_var=LD_LIBRARY_PATH
10537 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10538 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10539 ;;
10540
10541rdos*)
10542 dynamic_linker=no
10543 ;;
10544
10545solaris*)
a2479b3d 10546 version_type=linux
f35db108
WM
10547 need_lib_prefix=no
10548 need_version=no
10549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10550 soname_spec='${libname}${release}${shared_ext}$major'
10551 shlibpath_var=LD_LIBRARY_PATH
10552 shlibpath_overrides_runpath=yes
10553 hardcode_into_libs=yes
10554 # ldd complains unless libraries are executable
10555 postinstall_cmds='chmod +x $lib'
10556 ;;
10557
10558sunos4*)
10559 version_type=sunos
10560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10561 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10562 shlibpath_var=LD_LIBRARY_PATH
10563 shlibpath_overrides_runpath=yes
10564 if test "$with_gnu_ld" = yes; then
10565 need_lib_prefix=no
10566 fi
10567 need_version=yes
10568 ;;
10569
10570sysv4 | sysv4.3*)
a2479b3d 10571 version_type=linux
f35db108
WM
10572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10573 soname_spec='${libname}${release}${shared_ext}$major'
10574 shlibpath_var=LD_LIBRARY_PATH
10575 case $host_vendor in
10576 sni)
10577 shlibpath_overrides_runpath=no
10578 need_lib_prefix=no
10579 runpath_var=LD_RUN_PATH
10580 ;;
10581 siemens)
10582 need_lib_prefix=no
10583 ;;
10584 motorola)
10585 need_lib_prefix=no
10586 need_version=no
10587 shlibpath_overrides_runpath=no
10588 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10589 ;;
10590 esac
10591 ;;
10592
10593sysv4*MP*)
10594 if test -d /usr/nec ;then
a2479b3d 10595 version_type=linux
f35db108
WM
10596 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10597 soname_spec='$libname${shared_ext}.$major'
10598 shlibpath_var=LD_LIBRARY_PATH
10599 fi
10600 ;;
10601
10602sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10603 version_type=freebsd-elf
10604 need_lib_prefix=no
10605 need_version=no
10606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10607 soname_spec='${libname}${release}${shared_ext}$major'
10608 shlibpath_var=LD_LIBRARY_PATH
10609 shlibpath_overrides_runpath=yes
10610 hardcode_into_libs=yes
10611 if test "$with_gnu_ld" = yes; then
10612 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10613 else
10614 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10615 case $host_os in
10616 sco3.2v5*)
10617 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10618 ;;
10619 esac
10620 fi
10621 sys_lib_dlsearch_path_spec='/usr/lib'
10622 ;;
10623
10624tpf*)
10625 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
a2479b3d 10626 version_type=linux
f35db108
WM
10627 need_lib_prefix=no
10628 need_version=no
10629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10630 shlibpath_var=LD_LIBRARY_PATH
10631 shlibpath_overrides_runpath=no
10632 hardcode_into_libs=yes
10633 ;;
10634
10635uts4*)
a2479b3d 10636 version_type=linux
f35db108
WM
10637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10638 soname_spec='${libname}${release}${shared_ext}$major'
10639 shlibpath_var=LD_LIBRARY_PATH
10640 ;;
10641
10642*)
10643 dynamic_linker=no
10644 ;;
10645esac
10646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10647$as_echo "$dynamic_linker" >&6; }
10648test "$dynamic_linker" = no && can_build_shared=no
10649
10650variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10651if test "$GCC" = yes; then
10652 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10653fi
10654
10655if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10656 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10657fi
10658if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10659 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10660fi
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10754$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10755hardcode_action=
10756if test -n "$hardcode_libdir_flag_spec" ||
10757 test -n "$runpath_var" ||
10758 test "X$hardcode_automatic" = "Xyes" ; then
10759
10760 # We can hardcode non-existent directories.
10761 if test "$hardcode_direct" != no &&
10762 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10763 # have to relink, otherwise we might link with an installed library
10764 # when we should be linking with a yet-to-be-installed one
10765 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10766 test "$hardcode_minus_L" != no; then
10767 # Linking always hardcodes the temporary library directory.
10768 hardcode_action=relink
10769 else
10770 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10771 hardcode_action=immediate
10772 fi
10773else
10774 # We cannot hardcode anything, or else we can only hardcode existing
10775 # directories.
10776 hardcode_action=unsupported
10777fi
10778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10779$as_echo "$hardcode_action" >&6; }
10780
10781if test "$hardcode_action" = relink ||
10782 test "$inherit_rpath" = yes; then
10783 # Fast installation is not supported
10784 enable_fast_install=no
10785elif test "$shlibpath_overrides_runpath" = yes ||
10786 test "$enable_shared" = no; then
10787 # Fast installation is not necessary
10788 enable_fast_install=needless
10789fi
10790
10791
10792
10793
10794
10795
10796 if test "x$enable_dlopen" != xyes; then
10797 enable_dlopen=unknown
10798 enable_dlopen_self=unknown
10799 enable_dlopen_self_static=unknown
10800else
10801 lt_cv_dlopen=no
10802 lt_cv_dlopen_libs=
10803
10804 case $host_os in
10805 beos*)
10806 lt_cv_dlopen="load_add_on"
10807 lt_cv_dlopen_libs=
10808 lt_cv_dlopen_self=yes
10809 ;;
10810
10811 mingw* | pw32* | cegcc*)
10812 lt_cv_dlopen="LoadLibrary"
10813 lt_cv_dlopen_libs=
10814 ;;
10815
10816 cygwin*)
10817 lt_cv_dlopen="dlopen"
10818 lt_cv_dlopen_libs=
10819 ;;
10820
10821 darwin*)
10822 # if libdl is installed we need to link against it
10823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10824$as_echo_n "checking for dlopen in -ldl... " >&6; }
a2479b3d 10825if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
f35db108
WM
10826 $as_echo_n "(cached) " >&6
10827else
10828 ac_check_lib_save_LIBS=$LIBS
10829LIBS="-ldl $LIBS"
10830cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10831/* end confdefs.h. */
10832
10833/* Override any GCC internal prototype to avoid an error.
10834 Use char because int might match the return type of a GCC
10835 builtin and then its argument prototype would still apply. */
10836#ifdef __cplusplus
10837extern "C"
10838#endif
10839char dlopen ();
10840int
10841main ()
10842{
10843return dlopen ();
10844 ;
10845 return 0;
10846}
10847_ACEOF
10848if ac_fn_c_try_link "$LINENO"; then :
10849 ac_cv_lib_dl_dlopen=yes
10850else
10851 ac_cv_lib_dl_dlopen=no
10852fi
10853rm -f core conftest.err conftest.$ac_objext \
10854 conftest$ac_exeext conftest.$ac_ext
10855LIBS=$ac_check_lib_save_LIBS
10856fi
10857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10858$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
a2479b3d 10859if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
f35db108
WM
10860 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10861else
10862
10863 lt_cv_dlopen="dyld"
10864 lt_cv_dlopen_libs=
10865 lt_cv_dlopen_self=yes
10866
10867fi
10868
10869 ;;
10870
10871 *)
10872 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
a2479b3d 10873if test "x$ac_cv_func_shl_load" = x""yes; then :
f35db108
WM
10874 lt_cv_dlopen="shl_load"
10875else
10876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10877$as_echo_n "checking for shl_load in -ldld... " >&6; }
a2479b3d 10878if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
f35db108
WM
10879 $as_echo_n "(cached) " >&6
10880else
10881 ac_check_lib_save_LIBS=$LIBS
10882LIBS="-ldld $LIBS"
10883cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10884/* end confdefs.h. */
10885
10886/* Override any GCC internal prototype to avoid an error.
10887 Use char because int might match the return type of a GCC
10888 builtin and then its argument prototype would still apply. */
10889#ifdef __cplusplus
10890extern "C"
10891#endif
10892char shl_load ();
10893int
10894main ()
10895{
10896return shl_load ();
10897 ;
10898 return 0;
10899}
10900_ACEOF
10901if ac_fn_c_try_link "$LINENO"; then :
10902 ac_cv_lib_dld_shl_load=yes
10903else
10904 ac_cv_lib_dld_shl_load=no
10905fi
10906rm -f core conftest.err conftest.$ac_objext \
10907 conftest$ac_exeext conftest.$ac_ext
10908LIBS=$ac_check_lib_save_LIBS
10909fi
10910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10911$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
a2479b3d 10912if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
f35db108
WM
10913 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10914else
10915 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
a2479b3d 10916if test "x$ac_cv_func_dlopen" = x""yes; then :
f35db108
WM
10917 lt_cv_dlopen="dlopen"
10918else
10919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10920$as_echo_n "checking for dlopen in -ldl... " >&6; }
a2479b3d 10921if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
f35db108
WM
10922 $as_echo_n "(cached) " >&6
10923else
10924 ac_check_lib_save_LIBS=$LIBS
10925LIBS="-ldl $LIBS"
10926cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10927/* end confdefs.h. */
10928
10929/* Override any GCC internal prototype to avoid an error.
10930 Use char because int might match the return type of a GCC
10931 builtin and then its argument prototype would still apply. */
10932#ifdef __cplusplus
10933extern "C"
10934#endif
10935char dlopen ();
10936int
10937main ()
10938{
10939return dlopen ();
10940 ;
10941 return 0;
10942}
10943_ACEOF
10944if ac_fn_c_try_link "$LINENO"; then :
10945 ac_cv_lib_dl_dlopen=yes
10946else
10947 ac_cv_lib_dl_dlopen=no
10948fi
10949rm -f core conftest.err conftest.$ac_objext \
10950 conftest$ac_exeext conftest.$ac_ext
10951LIBS=$ac_check_lib_save_LIBS
10952fi
10953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10954$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
a2479b3d 10955if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
f35db108
WM
10956 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10957else
10958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10959$as_echo_n "checking for dlopen in -lsvld... " >&6; }
a2479b3d 10960if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
f35db108
WM
10961 $as_echo_n "(cached) " >&6
10962else
10963 ac_check_lib_save_LIBS=$LIBS
10964LIBS="-lsvld $LIBS"
10965cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10966/* end confdefs.h. */
10967
10968/* Override any GCC internal prototype to avoid an error.
10969 Use char because int might match the return type of a GCC
10970 builtin and then its argument prototype would still apply. */
10971#ifdef __cplusplus
10972extern "C"
10973#endif
10974char dlopen ();
10975int
10976main ()
10977{
10978return dlopen ();
10979 ;
10980 return 0;
10981}
10982_ACEOF
10983if ac_fn_c_try_link "$LINENO"; then :
10984 ac_cv_lib_svld_dlopen=yes
10985else
10986 ac_cv_lib_svld_dlopen=no
10987fi
10988rm -f core conftest.err conftest.$ac_objext \
10989 conftest$ac_exeext conftest.$ac_ext
10990LIBS=$ac_check_lib_save_LIBS
10991fi
10992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10993$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
a2479b3d 10994if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
f35db108
WM
10995 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10996else
10997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10998$as_echo_n "checking for dld_link in -ldld... " >&6; }
a2479b3d 10999if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
f35db108
WM
11000 $as_echo_n "(cached) " >&6
11001else
11002 ac_check_lib_save_LIBS=$LIBS
11003LIBS="-ldld $LIBS"
11004cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11005/* end confdefs.h. */
11006
11007/* Override any GCC internal prototype to avoid an error.
11008 Use char because int might match the return type of a GCC
11009 builtin and then its argument prototype would still apply. */
11010#ifdef __cplusplus
11011extern "C"
11012#endif
11013char dld_link ();
11014int
11015main ()
11016{
11017return dld_link ();
11018 ;
11019 return 0;
11020}
11021_ACEOF
11022if ac_fn_c_try_link "$LINENO"; then :
11023 ac_cv_lib_dld_dld_link=yes
11024else
11025 ac_cv_lib_dld_dld_link=no
11026fi
11027rm -f core conftest.err conftest.$ac_objext \
11028 conftest$ac_exeext conftest.$ac_ext
11029LIBS=$ac_check_lib_save_LIBS
11030fi
11031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11032$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
a2479b3d 11033if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
f35db108
WM
11034 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11035fi
11036
11037
11038fi
11039
11040
11041fi
11042
11043
11044fi
11045
11046
11047fi
11048
11049
11050fi
11051
11052 ;;
11053 esac
11054
11055 if test "x$lt_cv_dlopen" != xno; then
11056 enable_dlopen=yes
11057 else
11058 enable_dlopen=no
11059 fi
11060
11061 case $lt_cv_dlopen in
11062 dlopen)
11063 save_CPPFLAGS="$CPPFLAGS"
11064 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11065
11066 save_LDFLAGS="$LDFLAGS"
11067 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11068
11069 save_LIBS="$LIBS"
11070 LIBS="$lt_cv_dlopen_libs $LIBS"
11071
11072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11073$as_echo_n "checking whether a program can dlopen itself... " >&6; }
a2479b3d 11074if test "${lt_cv_dlopen_self+set}" = set; then :
f35db108
WM
11075 $as_echo_n "(cached) " >&6
11076else
11077 if test "$cross_compiling" = yes; then :
11078 lt_cv_dlopen_self=cross
11079else
11080 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11081 lt_status=$lt_dlunknown
11082 cat > conftest.$ac_ext <<_LT_EOF
a23ed040 11083#line 11083 "configure"
f35db108
WM
11084#include "confdefs.h"
11085
11086#if HAVE_DLFCN_H
11087#include <dlfcn.h>
11088#endif
11089
11090#include <stdio.h>
11091
11092#ifdef RTLD_GLOBAL
11093# define LT_DLGLOBAL RTLD_GLOBAL
11094#else
11095# ifdef DL_GLOBAL
11096# define LT_DLGLOBAL DL_GLOBAL
11097# else
11098# define LT_DLGLOBAL 0
11099# endif
11100#endif
11101
11102/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11103 find out it does not work in some platform. */
11104#ifndef LT_DLLAZY_OR_NOW
11105# ifdef RTLD_LAZY
11106# define LT_DLLAZY_OR_NOW RTLD_LAZY
11107# else
11108# ifdef DL_LAZY
11109# define LT_DLLAZY_OR_NOW DL_LAZY
11110# else
11111# ifdef RTLD_NOW
11112# define LT_DLLAZY_OR_NOW RTLD_NOW
11113# else
11114# ifdef DL_NOW
11115# define LT_DLLAZY_OR_NOW DL_NOW
11116# else
11117# define LT_DLLAZY_OR_NOW 0
11118# endif
11119# endif
11120# endif
11121# endif
11122#endif
11123
11124/* When -fvisbility=hidden is used, assume the code has been annotated
11125 correspondingly for the symbols needed. */
11126#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
a2479b3d 11127void fnord () __attribute__((visibility("default")));
f35db108
WM
11128#endif
11129
a2479b3d 11130void fnord () { int i=42; }
f35db108
WM
11131int main ()
11132{
11133 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11134 int status = $lt_dlunknown;
11135
11136 if (self)
11137 {
11138 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11139 else
11140 {
11141 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11142 else puts (dlerror ());
11143 }
11144 /* dlclose (self); */
11145 }
11146 else
11147 puts (dlerror ());
11148
11149 return status;
11150}
11151_LT_EOF
11152 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11153 (eval $ac_link) 2>&5
11154 ac_status=$?
11155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11156 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11157 (./conftest; exit; ) >&5 2>/dev/null
11158 lt_status=$?
11159 case x$lt_status in
11160 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11161 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11162 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11163 esac
11164 else :
11165 # compilation failed
11166 lt_cv_dlopen_self=no
11167 fi
11168fi
11169rm -fr conftest*
11170
11171
11172fi
11173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11174$as_echo "$lt_cv_dlopen_self" >&6; }
11175
11176 if test "x$lt_cv_dlopen_self" = xyes; then
11177 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11179$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
a2479b3d 11180if test "${lt_cv_dlopen_self_static+set}" = set; then :
f35db108
WM
11181 $as_echo_n "(cached) " >&6
11182else
11183 if test "$cross_compiling" = yes; then :
11184 lt_cv_dlopen_self_static=cross
11185else
11186 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11187 lt_status=$lt_dlunknown
11188 cat > conftest.$ac_ext <<_LT_EOF
a23ed040 11189#line 11189 "configure"
f35db108
WM
11190#include "confdefs.h"
11191
11192#if HAVE_DLFCN_H
11193#include <dlfcn.h>
11194#endif
11195
11196#include <stdio.h>
11197
11198#ifdef RTLD_GLOBAL
11199# define LT_DLGLOBAL RTLD_GLOBAL
11200#else
11201# ifdef DL_GLOBAL
11202# define LT_DLGLOBAL DL_GLOBAL
11203# else
11204# define LT_DLGLOBAL 0
11205# endif
11206#endif
11207
11208/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11209 find out it does not work in some platform. */
11210#ifndef LT_DLLAZY_OR_NOW
11211# ifdef RTLD_LAZY
11212# define LT_DLLAZY_OR_NOW RTLD_LAZY
11213# else
11214# ifdef DL_LAZY
11215# define LT_DLLAZY_OR_NOW DL_LAZY
11216# else
11217# ifdef RTLD_NOW
11218# define LT_DLLAZY_OR_NOW RTLD_NOW
11219# else
11220# ifdef DL_NOW
11221# define LT_DLLAZY_OR_NOW DL_NOW
11222# else
11223# define LT_DLLAZY_OR_NOW 0
11224# endif
11225# endif
11226# endif
11227# endif
11228#endif
11229
11230/* When -fvisbility=hidden is used, assume the code has been annotated
11231 correspondingly for the symbols needed. */
11232#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
a2479b3d 11233void fnord () __attribute__((visibility("default")));
f35db108
WM
11234#endif
11235
a2479b3d 11236void fnord () { int i=42; }
f35db108
WM
11237int main ()
11238{
11239 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11240 int status = $lt_dlunknown;
11241
11242 if (self)
11243 {
11244 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11245 else
11246 {
11247 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11248 else puts (dlerror ());
11249 }
11250 /* dlclose (self); */
11251 }
11252 else
11253 puts (dlerror ());
11254
11255 return status;
11256}
11257_LT_EOF
11258 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11259 (eval $ac_link) 2>&5
11260 ac_status=$?
11261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11262 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11263 (./conftest; exit; ) >&5 2>/dev/null
11264 lt_status=$?
11265 case x$lt_status in
11266 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11267 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11268 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11269 esac
11270 else :
11271 # compilation failed
11272 lt_cv_dlopen_self_static=no
11273 fi
11274fi
11275rm -fr conftest*
11276
11277
11278fi
11279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11280$as_echo "$lt_cv_dlopen_self_static" >&6; }
11281 fi
11282
11283 CPPFLAGS="$save_CPPFLAGS"
11284 LDFLAGS="$save_LDFLAGS"
11285 LIBS="$save_LIBS"
11286 ;;
11287 esac
11288
11289 case $lt_cv_dlopen_self in
11290 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11291 *) enable_dlopen_self=unknown ;;
11292 esac
11293
11294 case $lt_cv_dlopen_self_static in
11295 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11296 *) enable_dlopen_self_static=unknown ;;
11297 esac
11298fi
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316striplib=
11317old_striplib=
11318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11319$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11320if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11321 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11322 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11324$as_echo "yes" >&6; }
11325else
11326# FIXME - insert some real tests, host_os isn't really good enough
11327 case $host_os in
11328 darwin*)
11329 if test -n "$STRIP" ; then
11330 striplib="$STRIP -x"
11331 old_striplib="$STRIP -S"
11332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11333$as_echo "yes" >&6; }
11334 else
11335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11336$as_echo "no" >&6; }
11337 fi
11338 ;;
11339 *)
11340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11341$as_echo "no" >&6; }
11342 ;;
11343 esac
11344fi
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357 # Report which library types will actually be built
11358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11359$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11361$as_echo "$can_build_shared" >&6; }
11362
11363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11364$as_echo_n "checking whether to build shared libraries... " >&6; }
11365 test "$can_build_shared" = "no" && enable_shared=no
11366
11367 # On AIX, shared libraries and static libraries use the same namespace, and
11368 # are all built from PIC.
11369 case $host_os in
11370 aix3*)
11371 test "$enable_shared" = yes && enable_static=no
11372 if test -n "$RANLIB"; then
11373 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11374 postinstall_cmds='$RANLIB $lib'
11375 fi
11376 ;;
11377
11378 aix[4-9]*)
11379 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11380 test "$enable_shared" = yes && enable_static=no
11381 fi
11382 ;;
11383 esac
11384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11385$as_echo "$enable_shared" >&6; }
11386
11387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11388$as_echo_n "checking whether to build static libraries... " >&6; }
11389 # Make sure either enable_shared or enable_static is yes.
11390 test "$enable_shared" = yes || enable_static=yes
11391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11392$as_echo "$enable_static" >&6; }
11393
11394
11395
11396
11397fi
11398ac_ext=c
11399ac_cpp='$CPP $CPPFLAGS'
11400ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11401ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11402ac_compiler_gnu=$ac_cv_c_compiler_gnu
11403
11404CC="$lt_save_CC"
11405
11406 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11407 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11408 (test "X$CXX" != "Xg++"))) ; then
11409 ac_ext=cpp
11410ac_cpp='$CXXCPP $CPPFLAGS'
11411ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11412ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11413ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11415$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11416if test -z "$CXXCPP"; then
a2479b3d 11417 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
f35db108
WM
11418 $as_echo_n "(cached) " >&6
11419else
11420 # Double quotes because CXXCPP needs to be expanded
11421 for CXXCPP in "$CXX -E" "/lib/cpp"
11422 do
11423 ac_preproc_ok=false
11424for ac_cxx_preproc_warn_flag in '' yes
11425do
11426 # Use a header file that comes with gcc, so configuring glibc
11427 # with a fresh cross-compiler works.
11428 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11429 # <limits.h> exists even on freestanding compilers.
11430 # On the NeXT, cc -E runs the code through the compiler's parser,
11431 # not just through cpp. "Syntax error" is here to catch this case.
11432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11433/* end confdefs.h. */
11434#ifdef __STDC__
11435# include <limits.h>
11436#else
11437# include <assert.h>
11438#endif
11439 Syntax error
11440_ACEOF
11441if ac_fn_cxx_try_cpp "$LINENO"; then :
11442
11443else
11444 # Broken: fails on valid input.
11445continue
11446fi
a2479b3d 11447rm -f conftest.err conftest.$ac_ext
f35db108
WM
11448
11449 # OK, works on sane cases. Now check whether nonexistent headers
11450 # can be detected and how.
11451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11452/* end confdefs.h. */
11453#include <ac_nonexistent.h>
11454_ACEOF
11455if ac_fn_cxx_try_cpp "$LINENO"; then :
11456 # Broken: success on invalid input.
11457continue
11458else
11459 # Passes both tests.
11460ac_preproc_ok=:
11461break
11462fi
a2479b3d 11463rm -f conftest.err conftest.$ac_ext
f35db108
WM
11464
11465done
11466# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
a2479b3d 11467rm -f conftest.err conftest.$ac_ext
f35db108
WM
11468if $ac_preproc_ok; then :
11469 break
11470fi
11471
11472 done
11473 ac_cv_prog_CXXCPP=$CXXCPP
11474
11475fi
11476 CXXCPP=$ac_cv_prog_CXXCPP
11477else
11478 ac_cv_prog_CXXCPP=$CXXCPP
11479fi
11480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11481$as_echo "$CXXCPP" >&6; }
11482ac_preproc_ok=false
11483for ac_cxx_preproc_warn_flag in '' yes
11484do
11485 # Use a header file that comes with gcc, so configuring glibc
11486 # with a fresh cross-compiler works.
11487 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11488 # <limits.h> exists even on freestanding compilers.
11489 # On the NeXT, cc -E runs the code through the compiler's parser,
11490 # not just through cpp. "Syntax error" is here to catch this case.
11491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11492/* end confdefs.h. */
11493#ifdef __STDC__
11494# include <limits.h>
11495#else
11496# include <assert.h>
11497#endif
11498 Syntax error
11499_ACEOF
11500if ac_fn_cxx_try_cpp "$LINENO"; then :
11501
11502else
11503 # Broken: fails on valid input.
11504continue
11505fi
a2479b3d 11506rm -f conftest.err conftest.$ac_ext
f35db108
WM
11507
11508 # OK, works on sane cases. Now check whether nonexistent headers
11509 # can be detected and how.
11510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11511/* end confdefs.h. */
11512#include <ac_nonexistent.h>
11513_ACEOF
11514if ac_fn_cxx_try_cpp "$LINENO"; then :
11515 # Broken: success on invalid input.
11516continue
11517else
11518 # Passes both tests.
11519ac_preproc_ok=:
11520break
11521fi
a2479b3d 11522rm -f conftest.err conftest.$ac_ext
f35db108
WM
11523
11524done
11525# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
a2479b3d 11526rm -f conftest.err conftest.$ac_ext
f35db108
WM
11527if $ac_preproc_ok; then :
11528
11529else
11530 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11531$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
a2479b3d
L
11532as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
11533See \`config.log' for more details." "$LINENO" 5; }
f35db108
WM
11534fi
11535
11536ac_ext=c
11537ac_cpp='$CPP $CPPFLAGS'
11538ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11539ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11540ac_compiler_gnu=$ac_cv_c_compiler_gnu
11541
11542else
11543 _lt_caught_CXX_error=yes
11544fi
11545
11546ac_ext=cpp
11547ac_cpp='$CXXCPP $CPPFLAGS'
11548ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11549ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11550ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11551
11552archive_cmds_need_lc_CXX=no
11553allow_undefined_flag_CXX=
11554always_export_symbols_CXX=no
11555archive_expsym_cmds_CXX=
11556compiler_needs_object_CXX=no
11557export_dynamic_flag_spec_CXX=
11558hardcode_direct_CXX=no
11559hardcode_direct_absolute_CXX=no
11560hardcode_libdir_flag_spec_CXX=
a2479b3d 11561hardcode_libdir_flag_spec_ld_CXX=
f35db108
WM
11562hardcode_libdir_separator_CXX=
11563hardcode_minus_L_CXX=no
11564hardcode_shlibpath_var_CXX=unsupported
11565hardcode_automatic_CXX=no
11566inherit_rpath_CXX=no
11567module_cmds_CXX=
11568module_expsym_cmds_CXX=
11569link_all_deplibs_CXX=unknown
11570old_archive_cmds_CXX=$old_archive_cmds
11571reload_flag_CXX=$reload_flag
11572reload_cmds_CXX=$reload_cmds
11573no_undefined_flag_CXX=
11574whole_archive_flag_spec_CXX=
11575enable_shared_with_static_runtimes_CXX=no
11576
11577# Source file extension for C++ test sources.
11578ac_ext=cpp
11579
11580# Object file extension for compiled C++ test sources.
11581objext=o
11582objext_CXX=$objext
11583
11584# No sense in running all these tests if we already determined that
11585# the CXX compiler isn't working. Some variables (like enable_shared)
11586# are currently assumed to apply to all compilers on this platform,
11587# and will be corrupted by setting them based on a non-working compiler.
11588if test "$_lt_caught_CXX_error" != yes; then
11589 # Code to be used in simple compile tests
11590 lt_simple_compile_test_code="int some_variable = 0;"
11591
11592 # Code to be used in simple link tests
11593 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11594
11595 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11596
11597
11598
11599
11600
11601
11602# If no C compiler was specified, use CC.
11603LTCC=${LTCC-"$CC"}
11604
11605# If no C compiler flags were specified, use CFLAGS.
11606LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11607
11608# Allow CC to be a program name with arguments.
11609compiler=$CC
11610
11611
11612 # save warnings/boilerplate of simple test code
11613 ac_outfile=conftest.$ac_objext
11614echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11615eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11616_lt_compiler_boilerplate=`cat conftest.err`
11617$RM conftest*
11618
11619 ac_outfile=conftest.$ac_objext
11620echo "$lt_simple_link_test_code" >conftest.$ac_ext
11621eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11622_lt_linker_boilerplate=`cat conftest.err`
11623$RM -r conftest*
11624
11625
11626 # Allow CC to be a program name with arguments.
11627 lt_save_CC=$CC
f35db108
WM
11628 lt_save_LD=$LD
11629 lt_save_GCC=$GCC
11630 GCC=$GXX
11631 lt_save_with_gnu_ld=$with_gnu_ld
11632 lt_save_path_LD=$lt_cv_path_LD
11633 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11634 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11635 else
11636 $as_unset lt_cv_prog_gnu_ld
11637 fi
11638 if test -n "${lt_cv_path_LDCXX+set}"; then
11639 lt_cv_path_LD=$lt_cv_path_LDCXX
11640 else
11641 $as_unset lt_cv_path_LD
11642 fi
11643 test -z "${LDCXX+set}" || LD=$LDCXX
11644 CC=${CXX-"c++"}
f35db108
WM
11645 compiler=$CC
11646 compiler_CXX=$CC
11647 for cc_temp in $compiler""; do
11648 case $cc_temp in
11649 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11650 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11651 \-*) ;;
11652 *) break;;
11653 esac
11654done
11655cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11656
11657
11658 if test -n "$compiler"; then
11659 # We don't want -fno-exception when compiling C++ code, so set the
11660 # no_builtin_flag separately
11661 if test "$GXX" = yes; then
11662 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11663 else
11664 lt_prog_compiler_no_builtin_flag_CXX=
11665 fi
11666
11667 if test "$GXX" = yes; then
11668 # Set up default GNU C++ configuration
11669
11670
11671
11672# Check whether --with-gnu-ld was given.
11673if test "${with_gnu_ld+set}" = set; then :
11674 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11675else
11676 with_gnu_ld=no
11677fi
11678
11679ac_prog=ld
11680if test "$GCC" = yes; then
11681 # Check if gcc -print-prog-name=ld gives a path.
11682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11683$as_echo_n "checking for ld used by $CC... " >&6; }
11684 case $host in
11685 *-*-mingw*)
11686 # gcc leaves a trailing carriage return which upsets mingw
11687 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11688 *)
11689 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11690 esac
11691 case $ac_prog in
11692 # Accept absolute paths.
11693 [\\/]* | ?:[\\/]*)
11694 re_direlt='/[^/][^/]*/\.\./'
11695 # Canonicalize the pathname of ld
11696 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11697 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11698 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11699 done
11700 test -z "$LD" && LD="$ac_prog"
11701 ;;
11702 "")
11703 # If it fails, then pretend we aren't using GCC.
11704 ac_prog=ld
11705 ;;
11706 *)
11707 # If it is relative, then search for the first ld in PATH.
11708 with_gnu_ld=unknown
11709 ;;
11710 esac
11711elif test "$with_gnu_ld" = yes; then
11712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11713$as_echo_n "checking for GNU ld... " >&6; }
11714else
11715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11716$as_echo_n "checking for non-GNU ld... " >&6; }
11717fi
a2479b3d 11718if test "${lt_cv_path_LD+set}" = set; then :
f35db108
WM
11719 $as_echo_n "(cached) " >&6
11720else
11721 if test -z "$LD"; then
11722 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11723 for ac_dir in $PATH; do
11724 IFS="$lt_save_ifs"
11725 test -z "$ac_dir" && ac_dir=.
11726 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11727 lt_cv_path_LD="$ac_dir/$ac_prog"
11728 # Check to see if the program is GNU ld. I'd rather use --version,
11729 # but apparently some variants of GNU ld only accept -v.
11730 # Break only if it was the GNU/non-GNU ld that we prefer.
11731 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11732 *GNU* | *'with BFD'*)
11733 test "$with_gnu_ld" != no && break
11734 ;;
11735 *)
11736 test "$with_gnu_ld" != yes && break
11737 ;;
11738 esac
11739 fi
11740 done
11741 IFS="$lt_save_ifs"
11742else
11743 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11744fi
11745fi
11746
11747LD="$lt_cv_path_LD"
11748if test -n "$LD"; then
11749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11750$as_echo "$LD" >&6; }
11751else
11752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11753$as_echo "no" >&6; }
11754fi
a2479b3d 11755test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
f35db108
WM
11756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11757$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
a2479b3d 11758if test "${lt_cv_prog_gnu_ld+set}" = set; then :
f35db108
WM
11759 $as_echo_n "(cached) " >&6
11760else
11761 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11762case `$LD -v 2>&1 </dev/null` in
11763*GNU* | *'with BFD'*)
11764 lt_cv_prog_gnu_ld=yes
11765 ;;
11766*)
11767 lt_cv_prog_gnu_ld=no
11768 ;;
11769esac
11770fi
11771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11772$as_echo "$lt_cv_prog_gnu_ld" >&6; }
11773with_gnu_ld=$lt_cv_prog_gnu_ld
11774
11775
11776
11777
11778
11779
11780
11781 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11782 # archiving commands below assume that GNU ld is being used.
11783 if test "$with_gnu_ld" = yes; then
a2479b3d
L
11784 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11785 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
f35db108
WM
11786
11787 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11788 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11789
11790 # If archive_cmds runs LD, not CC, wlarc should be empty
11791 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11792 # investigate it a little bit more. (MM)
11793 wlarc='${wl}'
11794
11795 # ancient GNU ld didn't support --whole-archive et. al.
11796 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
11797 $GREP 'no-whole-archive' > /dev/null; then
11798 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11799 else
11800 whole_archive_flag_spec_CXX=
11801 fi
11802 else
11803 with_gnu_ld=no
11804 wlarc=
11805
11806 # A generic and very simple default shared library creation
11807 # command for GNU C++ for the case where it uses the native
11808 # linker, instead of GNU ld. If possible, this setting should
11809 # overridden to take advantage of the native linker features on
11810 # the platform it is being used on.
11811 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11812 fi
11813
11814 # Commands to make compiler produce verbose output that lists
11815 # what "hidden" libraries, object files and flags are used when
11816 # linking a shared library.
11817 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
11818
11819 else
11820 GXX=no
11821 with_gnu_ld=no
11822 wlarc=
11823 fi
11824
11825 # PORTME: fill in a description of your system's C++ link characteristics
11826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11827$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11828 ld_shlibs_CXX=yes
11829 case $host_os in
11830 aix3*)
11831 # FIXME: insert proper C++ library support
11832 ld_shlibs_CXX=no
11833 ;;
11834 aix[4-9]*)
11835 if test "$host_cpu" = ia64; then
11836 # On IA64, the linker does run time linking by default, so we don't
11837 # have to do anything special.
11838 aix_use_runtimelinking=no
11839 exp_sym_flag='-Bexport'
11840 no_entry_flag=""
11841 else
11842 aix_use_runtimelinking=no
11843
11844 # Test if we are trying to use run time linking or normal
11845 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11846 # need to do runtime linking.
11847 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11848 for ld_flag in $LDFLAGS; do
11849 case $ld_flag in
11850 *-brtl*)
11851 aix_use_runtimelinking=yes
11852 break
11853 ;;
11854 esac
11855 done
11856 ;;
11857 esac
11858
11859 exp_sym_flag='-bexport'
11860 no_entry_flag='-bnoentry'
11861 fi
11862
11863 # When large executables or shared objects are built, AIX ld can
11864 # have problems creating the table of contents. If linking a library
11865 # or program results in "error TOC overflow" add -mminimal-toc to
11866 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11867 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11868
11869 archive_cmds_CXX=''
11870 hardcode_direct_CXX=yes
11871 hardcode_direct_absolute_CXX=yes
11872 hardcode_libdir_separator_CXX=':'
11873 link_all_deplibs_CXX=yes
11874 file_list_spec_CXX='${wl}-f,'
11875
11876 if test "$GXX" = yes; then
11877 case $host_os in aix4.[012]|aix4.[012].*)
11878 # We only want to do this on AIX 4.2 and lower, the check
11879 # below for broken collect2 doesn't work under 4.3+
11880 collect2name=`${CC} -print-prog-name=collect2`
11881 if test -f "$collect2name" &&
11882 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11883 then
11884 # We have reworked collect2
11885 :
11886 else
11887 # We have old collect2
11888 hardcode_direct_CXX=unsupported
11889 # It fails to find uninstalled libraries when the uninstalled
11890 # path is not listed in the libpath. Setting hardcode_minus_L
11891 # to unsupported forces relinking
11892 hardcode_minus_L_CXX=yes
11893 hardcode_libdir_flag_spec_CXX='-L$libdir'
11894 hardcode_libdir_separator_CXX=
11895 fi
11896 esac
11897 shared_flag='-shared'
11898 if test "$aix_use_runtimelinking" = yes; then
11899 shared_flag="$shared_flag "'${wl}-G'
11900 fi
11901 else
11902 # not using gcc
11903 if test "$host_cpu" = ia64; then
11904 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11905 # chokes on -Wl,-G. The following line is correct:
11906 shared_flag='-G'
11907 else
11908 if test "$aix_use_runtimelinking" = yes; then
11909 shared_flag='${wl}-G'
11910 else
11911 shared_flag='${wl}-bM:SRE'
11912 fi
11913 fi
11914 fi
11915
11916 export_dynamic_flag_spec_CXX='${wl}-bexpall'
11917 # It seems that -bexpall does not export symbols beginning with
11918 # underscore (_), so it is better to generate a list of symbols to
11919 # export.
11920 always_export_symbols_CXX=yes
11921 if test "$aix_use_runtimelinking" = yes; then
11922 # Warning - without using the other runtime loading flags (-brtl),
11923 # -berok will link without error, but may produce a broken library.
11924 allow_undefined_flag_CXX='-berok'
11925 # Determine the default libpath from the value encoded in an empty
11926 # executable.
a2479b3d 11927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f35db108
WM
11928/* end confdefs.h. */
11929
11930int
11931main ()
11932{
11933
11934 ;
11935 return 0;
11936}
11937_ACEOF
11938if ac_fn_cxx_try_link "$LINENO"; then :
11939
a2479b3d
L
11940lt_aix_libpath_sed='
11941 /Import File Strings/,/^$/ {
11942 /^0/ {
11943 s/^0 *\(.*\)$/\1/
11944 p
11945 }
11946 }'
11947aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11948# Check for a 64-bit object if we didn't find anything.
11949if test -z "$aix_libpath"; then
11950 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11951fi
f35db108
WM
11952fi
11953rm -f core conftest.err conftest.$ac_objext \
11954 conftest$ac_exeext conftest.$ac_ext
a2479b3d 11955if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
f35db108
WM
11956
11957 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11958
11959 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"
11960 else
11961 if test "$host_cpu" = ia64; then
11962 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11963 allow_undefined_flag_CXX="-z nodefs"
11964 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"
11965 else
11966 # Determine the default libpath from the value encoded in an
11967 # empty executable.
a2479b3d 11968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f35db108
WM
11969/* end confdefs.h. */
11970
11971int
11972main ()
11973{
11974
11975 ;
11976 return 0;
11977}
11978_ACEOF
11979if ac_fn_cxx_try_link "$LINENO"; then :
11980
a2479b3d
L
11981lt_aix_libpath_sed='
11982 /Import File Strings/,/^$/ {
11983 /^0/ {
11984 s/^0 *\(.*\)$/\1/
11985 p
11986 }
11987 }'
11988aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11989# Check for a 64-bit object if we didn't find anything.
11990if test -z "$aix_libpath"; then
11991 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11992fi
f35db108
WM
11993fi
11994rm -f core conftest.err conftest.$ac_objext \
11995 conftest$ac_exeext conftest.$ac_ext
a2479b3d 11996if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
f35db108
WM
11997
11998 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11999 # Warning - without using the other run time loading flags,
12000 # -berok will link without error, but may produce a broken library.
12001 no_undefined_flag_CXX=' ${wl}-bernotok'
12002 allow_undefined_flag_CXX=' ${wl}-berok'
12003 if test "$with_gnu_ld" = yes; then
12004 # We only use this code for GNU lds that support --whole-archive.
12005 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12006 else
12007 # Exported symbols can be pulled into shared objects from archives
12008 whole_archive_flag_spec_CXX='$convenience'
12009 fi
12010 archive_cmds_need_lc_CXX=yes
12011 # This is similar to how AIX traditionally builds its shared
12012 # libraries.
12013 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'
12014 fi
12015 fi
12016 ;;
12017
12018 beos*)
12019 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12020 allow_undefined_flag_CXX=unsupported
12021 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12022 # support --undefined. This deserves some investigation. FIXME
12023 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12024 else
12025 ld_shlibs_CXX=no
12026 fi
12027 ;;
12028
12029 chorus*)
12030 case $cc_basename in
12031 *)
12032 # FIXME: insert proper C++ library support
12033 ld_shlibs_CXX=no
12034 ;;
12035 esac
12036 ;;
12037
12038 cygwin* | mingw* | pw32* | cegcc*)
a2479b3d
L
12039 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12040 # as there is no search path for DLLs.
12041 hardcode_libdir_flag_spec_CXX='-L$libdir'
12042 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12043 allow_undefined_flag_CXX=unsupported
12044 always_export_symbols_CXX=no
12045 enable_shared_with_static_runtimes_CXX=yes
12046
12047 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12048 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'
12049 # If the export-symbols file already is a .def file (1st line
12050 # is EXPORTS), use it as is; otherwise, prepend...
12051 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12052 cp $export_symbols $output_objdir/$soname.def;
12053 else
12054 echo EXPORTS > $output_objdir/$soname.def;
12055 cat $export_symbols >> $output_objdir/$soname.def;
12056 fi~
12057 $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'
12058 else
12059 ld_shlibs_CXX=no
12060 fi
12061 ;;
f35db108
WM
12062 darwin* | rhapsody*)
12063
12064
12065 archive_cmds_need_lc_CXX=no
12066 hardcode_direct_CXX=no
12067 hardcode_automatic_CXX=yes
12068 hardcode_shlibpath_var_CXX=unsupported
12069 if test "$lt_cv_ld_force_load" = "yes"; then
12070 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\"`'
f35db108
WM
12071 else
12072 whole_archive_flag_spec_CXX=''
12073 fi
12074 link_all_deplibs_CXX=yes
12075 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12076 case $cc_basename in
12077 ifort*) _lt_dar_can_shared=yes ;;
12078 *) _lt_dar_can_shared=$GCC ;;
12079 esac
12080 if test "$_lt_dar_can_shared" = "yes"; then
12081 output_verbose_link_cmd=func_echo_all
12082 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}"
12083 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12084 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}"
12085 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}"
12086 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12087 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}"
12088 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}"
12089 fi
12090
12091 else
12092 ld_shlibs_CXX=no
12093 fi
12094
12095 ;;
12096
12097 dgux*)
12098 case $cc_basename in
12099 ec++*)
12100 # FIXME: insert proper C++ library support
12101 ld_shlibs_CXX=no
12102 ;;
12103 ghcx*)
12104 # Green Hills C++ Compiler
12105 # FIXME: insert proper C++ library support
12106 ld_shlibs_CXX=no
12107 ;;
12108 *)
12109 # FIXME: insert proper C++ library support
12110 ld_shlibs_CXX=no
12111 ;;
12112 esac
12113 ;;
12114
12115 freebsd2.*)
12116 # C++ shared libraries reported to be fairly broken before
12117 # switch to ELF
12118 ld_shlibs_CXX=no
12119 ;;
12120
12121 freebsd-elf*)
12122 archive_cmds_need_lc_CXX=no
12123 ;;
12124
12125 freebsd* | dragonfly*)
12126 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12127 # conventions
12128 ld_shlibs_CXX=yes
12129 ;;
12130
12131 gnu*)
12132 ;;
12133
12134 haiku*)
12135 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12136 link_all_deplibs_CXX=yes
12137 ;;
12138
12139 hpux9*)
12140 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12141 hardcode_libdir_separator_CXX=:
12142 export_dynamic_flag_spec_CXX='${wl}-E'
12143 hardcode_direct_CXX=yes
12144 hardcode_minus_L_CXX=yes # Not in the search PATH,
12145 # but as the default
12146 # location of the library.
12147
12148 case $cc_basename in
12149 CC*)
12150 # FIXME: insert proper C++ library support
12151 ld_shlibs_CXX=no
12152 ;;
12153 aCC*)
12154 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'
12155 # Commands to make compiler produce verbose output that lists
12156 # what "hidden" libraries, object files and flags are used when
12157 # linking a shared library.
12158 #
12159 # There doesn't appear to be a way to prevent this compiler from
12160 # explicitly linking system object files so we need to strip them
12161 # from the output so that they don't get included in the library
12162 # dependencies.
12163 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"'
12164 ;;
12165 *)
12166 if test "$GXX" = yes; then
a2479b3d 12167 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${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'
f35db108
WM
12168 else
12169 # FIXME: insert proper C++ library support
12170 ld_shlibs_CXX=no
12171 fi
12172 ;;
12173 esac
12174 ;;
12175
12176 hpux10*|hpux11*)
12177 if test $with_gnu_ld = no; then
12178 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12179 hardcode_libdir_separator_CXX=:
12180
12181 case $host_cpu in
12182 hppa*64*|ia64*)
12183 ;;
12184 *)
12185 export_dynamic_flag_spec_CXX='${wl}-E'
12186 ;;
12187 esac
12188 fi
12189 case $host_cpu in
12190 hppa*64*|ia64*)
12191 hardcode_direct_CXX=no
12192 hardcode_shlibpath_var_CXX=no
12193 ;;
12194 *)
12195 hardcode_direct_CXX=yes
12196 hardcode_direct_absolute_CXX=yes
12197 hardcode_minus_L_CXX=yes # Not in the search PATH,
12198 # but as the default
12199 # location of the library.
12200 ;;
12201 esac
12202
12203 case $cc_basename in
12204 CC*)
12205 # FIXME: insert proper C++ library support
12206 ld_shlibs_CXX=no
12207 ;;
12208 aCC*)
12209 case $host_cpu in
12210 hppa*64*)
12211 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12212 ;;
12213 ia64*)
12214 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12215 ;;
12216 *)
12217 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12218 ;;
12219 esac
12220 # Commands to make compiler produce verbose output that lists
12221 # what "hidden" libraries, object files and flags are used when
12222 # linking a shared library.
12223 #
12224 # There doesn't appear to be a way to prevent this compiler from
12225 # explicitly linking system object files so we need to strip them
12226 # from the output so that they don't get included in the library
12227 # dependencies.
12228 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"'
12229 ;;
12230 *)
12231 if test "$GXX" = yes; then
12232 if test $with_gnu_ld = no; then
12233 case $host_cpu in
12234 hppa*64*)
12235 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12236 ;;
12237 ia64*)
a2479b3d 12238 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
f35db108
WM
12239 ;;
12240 *)
a2479b3d 12241 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
f35db108
WM
12242 ;;
12243 esac
12244 fi
12245 else
12246 # FIXME: insert proper C++ library support
12247 ld_shlibs_CXX=no
12248 fi
12249 ;;
12250 esac
12251 ;;
12252
12253 interix[3-9]*)
12254 hardcode_direct_CXX=no
12255 hardcode_shlibpath_var_CXX=no
12256 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12257 export_dynamic_flag_spec_CXX='${wl}-E'
12258 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12259 # Instead, shared libraries are loaded at an image base (0x10000000 by
12260 # default) and relocated if they conflict, which is a slow very memory
12261 # consuming and fragmenting process. To avoid this, we pick a random,
12262 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12263 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12264 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'
12265 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'
12266 ;;
12267 irix5* | irix6*)
12268 case $cc_basename in
12269 CC*)
12270 # SGI C++
12271 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'
12272
12273 # Archives containing C++ object files must be created using
12274 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12275 # necessary to make sure instantiated templates are included
12276 # in the archive.
12277 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12278 ;;
12279 *)
12280 if test "$GXX" = yes; then
12281 if test "$with_gnu_ld" = no; then
a2479b3d 12282 archive_cmds_CXX='$CC -shared -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'
f35db108 12283 else
a2479b3d 12284 archive_cmds_CXX='$CC -shared -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'
f35db108
WM
12285 fi
12286 fi
12287 link_all_deplibs_CXX=yes
12288 ;;
12289 esac
12290 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12291 hardcode_libdir_separator_CXX=:
12292 inherit_rpath_CXX=yes
12293 ;;
12294
12295 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12296 case $cc_basename in
12297 KCC*)
12298 # Kuck and Associates, Inc. (KAI) C++ Compiler
12299
12300 # KCC will only create a shared library if the output file
12301 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12302 # to its proper name (with version) after linking.
12303 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'
12304 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'
12305 # Commands to make compiler produce verbose output that lists
12306 # what "hidden" libraries, object files and flags are used when
12307 # linking a shared library.
12308 #
12309 # There doesn't appear to be a way to prevent this compiler from
12310 # explicitly linking system object files so we need to strip them
12311 # from the output so that they don't get included in the library
12312 # dependencies.
12313 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"'
12314
12315 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12316 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12317
12318 # Archives containing C++ object files must be created using
12319 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12320 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12321 ;;
12322 icpc* | ecpc* )
12323 # Intel C++
12324 with_gnu_ld=yes
12325 # version 8.0 and above of icpc choke on multiply defined symbols
12326 # if we add $predep_objects and $postdep_objects, however 7.1 and
12327 # earlier do not add the objects themselves.
12328 case `$CC -V 2>&1` in
12329 *"Version 7."*)
12330 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12331 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'
12332 ;;
12333 *) # Version 8.0 or newer
12334 tmp_idyn=
12335 case $host_cpu in
12336 ia64*) tmp_idyn=' -i_dynamic';;
12337 esac
12338 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12339 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'
12340 ;;
12341 esac
12342 archive_cmds_need_lc_CXX=no
12343 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12344 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12345 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12346 ;;
12347 pgCC* | pgcpp*)
12348 # Portland Group C++ compiler
12349 case `$CC -V` in
12350 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12351 prelink_cmds_CXX='tpldir=Template.dir~
12352 rm -rf $tpldir~
12353 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
a2479b3d 12354 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
f35db108
WM
12355 old_archive_cmds_CXX='tpldir=Template.dir~
12356 rm -rf $tpldir~
12357 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
a2479b3d 12358 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
f35db108
WM
12359 $RANLIB $oldlib'
12360 archive_cmds_CXX='tpldir=Template.dir~
12361 rm -rf $tpldir~
12362 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
a2479b3d 12363 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
f35db108
WM
12364 archive_expsym_cmds_CXX='tpldir=Template.dir~
12365 rm -rf $tpldir~
12366 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
a2479b3d 12367 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
f35db108
WM
12368 ;;
12369 *) # Version 6 and above use weak symbols
12370 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12371 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'
12372 ;;
12373 esac
12374
12375 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12376 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12377 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'
12378 ;;
12379 cxx*)
12380 # Compaq C++
12381 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12382 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'
12383
12384 runpath_var=LD_RUN_PATH
12385 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12386 hardcode_libdir_separator_CXX=:
12387
12388 # Commands to make compiler produce verbose output that lists
12389 # what "hidden" libraries, object files and flags are used when
12390 # linking a shared library.
12391 #
12392 # There doesn't appear to be a way to prevent this compiler from
12393 # explicitly linking system object files so we need to strip them
12394 # from the output so that they don't get included in the library
12395 # dependencies.
12396 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'
12397 ;;
12398 xl* | mpixl* | bgxl*)
12399 # IBM XL 8.0 on PPC, with GNU ld
12400 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12401 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12402 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12403 if test "x$supports_anon_versioning" = xyes; then
12404 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12405 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12406 echo "local: *; };" >> $output_objdir/$libname.ver~
12407 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12408 fi
12409 ;;
12410 *)
12411 case `$CC -V 2>&1 | sed 5q` in
12412 *Sun\ C*)
12413 # Sun C++ 5.9
12414 no_undefined_flag_CXX=' -zdefs'
12415 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12416 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'
12417 hardcode_libdir_flag_spec_CXX='-R$libdir'
12418 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'
12419 compiler_needs_object_CXX=yes
12420
12421 # Not sure whether something based on
12422 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12423 # would be better.
12424 output_verbose_link_cmd='func_echo_all'
12425
12426 # Archives containing C++ object files must be created using
12427 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12428 # necessary to make sure instantiated templates are included
12429 # in the archive.
12430 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12431 ;;
12432 esac
12433 ;;
12434 esac
12435 ;;
12436
12437 lynxos*)
12438 # FIXME: insert proper C++ library support
12439 ld_shlibs_CXX=no
12440 ;;
12441
12442 m88k*)
12443 # FIXME: insert proper C++ library support
12444 ld_shlibs_CXX=no
12445 ;;
12446
12447 mvs*)
12448 case $cc_basename in
12449 cxx*)
12450 # FIXME: insert proper C++ library support
12451 ld_shlibs_CXX=no
12452 ;;
12453 *)
12454 # FIXME: insert proper C++ library support
12455 ld_shlibs_CXX=no
12456 ;;
12457 esac
12458 ;;
12459
12460 netbsd*)
12461 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12462 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12463 wlarc=
12464 hardcode_libdir_flag_spec_CXX='-R$libdir'
12465 hardcode_direct_CXX=yes
12466 hardcode_shlibpath_var_CXX=no
12467 fi
12468 # Workaround some broken pre-1.5 toolchains
12469 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12470 ;;
12471
12472 *nto* | *qnx*)
12473 ld_shlibs_CXX=yes
12474 ;;
12475
12476 openbsd2*)
12477 # C++ shared libraries are fairly broken
12478 ld_shlibs_CXX=no
12479 ;;
12480
12481 openbsd*)
12482 if test -f /usr/libexec/ld.so; then
12483 hardcode_direct_CXX=yes
12484 hardcode_shlibpath_var_CXX=no
12485 hardcode_direct_absolute_CXX=yes
12486 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12487 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12488 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12489 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12490 export_dynamic_flag_spec_CXX='${wl}-E'
12491 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12492 fi
12493 output_verbose_link_cmd=func_echo_all
12494 else
12495 ld_shlibs_CXX=no
12496 fi
12497 ;;
12498
12499 osf3* | osf4* | osf5*)
12500 case $cc_basename in
12501 KCC*)
12502 # Kuck and Associates, Inc. (KAI) C++ Compiler
12503
12504 # KCC will only create a shared library if the output file
12505 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12506 # to its proper name (with version) after linking.
12507 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'
12508
12509 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12510 hardcode_libdir_separator_CXX=:
12511
12512 # Archives containing C++ object files must be created using
12513 # the KAI C++ compiler.
12514 case $host in
12515 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12516 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12517 esac
12518 ;;
12519 RCC*)
12520 # Rational C++ 2.4.1
12521 # FIXME: insert proper C++ library support
12522 ld_shlibs_CXX=no
12523 ;;
12524 cxx*)
12525 case $host in
12526 osf3*)
12527 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12528 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'
12529 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12530 ;;
12531 *)
12532 allow_undefined_flag_CXX=' -expect_unresolved \*'
12533 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'
12534 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12535 echo "-hidden">> $lib.exp~
12536 $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~
12537 $RM $lib.exp'
12538 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12539 ;;
12540 esac
12541
12542 hardcode_libdir_separator_CXX=:
12543
12544 # Commands to make compiler produce verbose output that lists
12545 # what "hidden" libraries, object files and flags are used when
12546 # linking a shared library.
12547 #
12548 # There doesn't appear to be a way to prevent this compiler from
12549 # explicitly linking system object files so we need to strip them
12550 # from the output so that they don't get included in the library
12551 # dependencies.
12552 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"'
12553 ;;
12554 *)
12555 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12556 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12557 case $host in
12558 osf3*)
12559 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'
12560 ;;
12561 *)
a2479b3d 12562 archive_cmds_CXX='$CC -shared -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'
f35db108
WM
12563 ;;
12564 esac
12565
12566 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12567 hardcode_libdir_separator_CXX=:
12568
12569 # Commands to make compiler produce verbose output that lists
12570 # what "hidden" libraries, object files and flags are used when
12571 # linking a shared library.
12572 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12573
12574 else
12575 # FIXME: insert proper C++ library support
12576 ld_shlibs_CXX=no
12577 fi
12578 ;;
12579 esac
12580 ;;
12581
12582 psos*)
12583 # FIXME: insert proper C++ library support
12584 ld_shlibs_CXX=no
12585 ;;
12586
12587 sunos4*)
12588 case $cc_basename in
12589 CC*)
12590 # Sun C++ 4.x
12591 # FIXME: insert proper C++ library support
12592 ld_shlibs_CXX=no
12593 ;;
12594 lcc*)
12595 # Lucid
12596 # FIXME: insert proper C++ library support
12597 ld_shlibs_CXX=no
12598 ;;
12599 *)
12600 # FIXME: insert proper C++ library support
12601 ld_shlibs_CXX=no
12602 ;;
12603 esac
12604 ;;
12605
12606 solaris*)
12607 case $cc_basename in
a2479b3d 12608 CC*)
f35db108
WM
12609 # Sun C++ 4.2, 5.x and Centerline C++
12610 archive_cmds_need_lc_CXX=yes
12611 no_undefined_flag_CXX=' -zdefs'
12612 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12613 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12614 $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'
12615
12616 hardcode_libdir_flag_spec_CXX='-R$libdir'
12617 hardcode_shlibpath_var_CXX=no
12618 case $host_os in
12619 solaris2.[0-5] | solaris2.[0-5].*) ;;
12620 *)
12621 # The compiler driver will combine and reorder linker options,
12622 # but understands `-z linker_flag'.
12623 # Supported since Solaris 2.6 (maybe 2.5.1?)
12624 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12625 ;;
12626 esac
12627 link_all_deplibs_CXX=yes
12628
12629 output_verbose_link_cmd='func_echo_all'
12630
12631 # Archives containing C++ object files must be created using
12632 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12633 # necessary to make sure instantiated templates are included
12634 # in the archive.
12635 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12636 ;;
12637 gcx*)
12638 # Green Hills C++ Compiler
12639 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12640
12641 # The C++ compiler must be used to create the archive.
12642 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12643 ;;
12644 *)
12645 # GNU C++ compiler with Solaris linker
12646 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12647 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12648 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
a2479b3d 12649 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
f35db108 12650 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
a2479b3d 12651 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
f35db108
WM
12652
12653 # Commands to make compiler produce verbose output that lists
12654 # what "hidden" libraries, object files and flags are used when
12655 # linking a shared library.
12656 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12657 else
12658 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12659 # platform.
12660 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12661 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12662 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12663
12664 # Commands to make compiler produce verbose output that lists
12665 # what "hidden" libraries, object files and flags are used when
12666 # linking a shared library.
12667 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12668 fi
12669
12670 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12671 case $host_os in
12672 solaris2.[0-5] | solaris2.[0-5].*) ;;
12673 *)
12674 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12675 ;;
12676 esac
12677 fi
12678 ;;
12679 esac
12680 ;;
12681
12682 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12683 no_undefined_flag_CXX='${wl}-z,text'
12684 archive_cmds_need_lc_CXX=no
12685 hardcode_shlibpath_var_CXX=no
12686 runpath_var='LD_RUN_PATH'
12687
12688 case $cc_basename in
12689 CC*)
12690 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12691 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12692 ;;
12693 *)
12694 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12695 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12696 ;;
12697 esac
12698 ;;
12699
12700 sysv5* | sco3.2v5* | sco5v6*)
12701 # Note: We can NOT use -z defs as we might desire, because we do not
12702 # link with -lc, and that would cause any symbols used from libc to
12703 # always be unresolved, which means just about no library would
12704 # ever link correctly. If we're not using GNU ld we use -z text
12705 # though, which does catch some bad symbols but isn't as heavy-handed
12706 # as -z defs.
12707 no_undefined_flag_CXX='${wl}-z,text'
12708 allow_undefined_flag_CXX='${wl}-z,nodefs'
12709 archive_cmds_need_lc_CXX=no
12710 hardcode_shlibpath_var_CXX=no
12711 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
12712 hardcode_libdir_separator_CXX=':'
12713 link_all_deplibs_CXX=yes
12714 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12715 runpath_var='LD_RUN_PATH'
12716
12717 case $cc_basename in
12718 CC*)
12719 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12720 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12721 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
12722 '"$old_archive_cmds_CXX"
12723 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
12724 '"$reload_cmds_CXX"
12725 ;;
12726 *)
12727 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12728 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12729 ;;
12730 esac
12731 ;;
12732
12733 tandem*)
12734 case $cc_basename in
12735 NCC*)
12736 # NonStop-UX NCC 3.20
12737 # FIXME: insert proper C++ library support
12738 ld_shlibs_CXX=no
12739 ;;
12740 *)
12741 # FIXME: insert proper C++ library support
12742 ld_shlibs_CXX=no
12743 ;;
12744 esac
12745 ;;
12746
12747 vxworks*)
12748 # FIXME: insert proper C++ library support
12749 ld_shlibs_CXX=no
12750 ;;
12751
12752 *)
12753 # FIXME: insert proper C++ library support
12754 ld_shlibs_CXX=no
12755 ;;
12756 esac
12757
12758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12759$as_echo "$ld_shlibs_CXX" >&6; }
12760 test "$ld_shlibs_CXX" = no && can_build_shared=no
12761
12762 GCC_CXX="$GXX"
12763 LD_CXX="$LD"
12764
12765 ## CAVEAT EMPTOR:
12766 ## There is no encapsulation within the following macros, do not change
12767 ## the running order or otherwise move them around unless you know exactly
12768 ## what you are doing...
12769 # Dependencies to place before and after the object being linked:
12770predep_objects_CXX=
12771postdep_objects_CXX=
12772predeps_CXX=
12773postdeps_CXX=
12774compiler_lib_search_path_CXX=
12775
12776cat > conftest.$ac_ext <<_LT_EOF
12777class Foo
12778{
12779public:
12780 Foo (void) { a = 0; }
12781private:
12782 int a;
12783};
12784_LT_EOF
12785
f35db108
WM
12786if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12787 (eval $ac_compile) 2>&5
12788 ac_status=$?
12789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12790 test $ac_status = 0; }; then
12791 # Parse the compiler output and extract the necessary
12792 # objects, libraries and library flags.
12793
12794 # Sentinel used to keep track of whether or not we are before
12795 # the conftest object file.
12796 pre_test_object_deps_done=no
12797
12798 for p in `eval "$output_verbose_link_cmd"`; do
a2479b3d 12799 case $p in
f35db108
WM
12800
12801 -L* | -R* | -l*)
12802 # Some compilers place space between "-{L,R}" and the path.
12803 # Remove the space.
12804 if test $p = "-L" ||
12805 test $p = "-R"; then
12806 prev=$p
12807 continue
a2479b3d
L
12808 else
12809 prev=
f35db108
WM
12810 fi
12811
f35db108 12812 if test "$pre_test_object_deps_done" = no; then
a2479b3d
L
12813 case $p in
12814 -L* | -R*)
f35db108
WM
12815 # Internal compiler library paths should come after those
12816 # provided the user. The postdeps already come after the
12817 # user supplied libs so there is no need to process them.
12818 if test -z "$compiler_lib_search_path_CXX"; then
12819 compiler_lib_search_path_CXX="${prev}${p}"
12820 else
12821 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12822 fi
12823 ;;
12824 # The "-l" case would never come before the object being
12825 # linked, so don't bother handling this case.
12826 esac
12827 else
12828 if test -z "$postdeps_CXX"; then
12829 postdeps_CXX="${prev}${p}"
12830 else
12831 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12832 fi
12833 fi
f35db108
WM
12834 ;;
12835
f35db108
WM
12836 *.$objext)
12837 # This assumes that the test object file only shows up
12838 # once in the compiler output.
12839 if test "$p" = "conftest.$objext"; then
12840 pre_test_object_deps_done=yes
12841 continue
12842 fi
12843
12844 if test "$pre_test_object_deps_done" = no; then
12845 if test -z "$predep_objects_CXX"; then
12846 predep_objects_CXX="$p"
12847 else
12848 predep_objects_CXX="$predep_objects_CXX $p"
12849 fi
12850 else
12851 if test -z "$postdep_objects_CXX"; then
12852 postdep_objects_CXX="$p"
12853 else
12854 postdep_objects_CXX="$postdep_objects_CXX $p"
12855 fi
12856 fi
12857 ;;
12858
12859 *) ;; # Ignore the rest.
12860
12861 esac
12862 done
12863
12864 # Clean up.
12865 rm -f a.out a.exe
12866else
12867 echo "libtool.m4: error: problem compiling CXX test program"
12868fi
12869
12870$RM -f confest.$objext
f35db108
WM
12871
12872# PORTME: override above test on systems where it is broken
12873case $host_os in
12874interix[3-9]*)
12875 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12876 # hack all around it, let's just trust "g++" to DTRT.
12877 predep_objects_CXX=
12878 postdep_objects_CXX=
12879 postdeps_CXX=
12880 ;;
12881
12882linux*)
12883 case `$CC -V 2>&1 | sed 5q` in
12884 *Sun\ C*)
12885 # Sun C++ 5.9
12886
12887 # The more standards-conforming stlport4 library is
12888 # incompatible with the Cstd library. Avoid specifying
12889 # it if it's in CXXFLAGS. Ignore libCrun as
12890 # -library=stlport4 depends on it.
12891 case " $CXX $CXXFLAGS " in
12892 *" -library=stlport4 "*)
12893 solaris_use_stlport4=yes
12894 ;;
12895 esac
12896
12897 if test "$solaris_use_stlport4" != yes; then
12898 postdeps_CXX='-library=Cstd -library=Crun'
12899 fi
12900 ;;
12901 esac
12902 ;;
12903
12904solaris*)
12905 case $cc_basename in
a2479b3d 12906 CC*)
f35db108
WM
12907 # The more standards-conforming stlport4 library is
12908 # incompatible with the Cstd library. Avoid specifying
12909 # it if it's in CXXFLAGS. Ignore libCrun as
12910 # -library=stlport4 depends on it.
12911 case " $CXX $CXXFLAGS " in
12912 *" -library=stlport4 "*)
12913 solaris_use_stlport4=yes
12914 ;;
12915 esac
12916
12917 # Adding this requires a known-good setup of shared libraries for
12918 # Sun compiler versions before 5.6, else PIC objects from an old
12919 # archive will be linked into the output, leading to subtle bugs.
12920 if test "$solaris_use_stlport4" != yes; then
12921 postdeps_CXX='-library=Cstd -library=Crun'
12922 fi
12923 ;;
12924 esac
12925 ;;
12926esac
12927
12928
12929case " $postdeps_CXX " in
12930*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12931esac
12932 compiler_lib_search_dirs_CXX=
12933if test -n "${compiler_lib_search_path_CXX}"; then
12934 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12935fi
12936
12937
12938
12939
12940
12941
12942
12943
12944
12945
12946
12947
12948
12949
12950
12951
12952
12953
12954
12955
12956
12957
12958
12959
12960
12961
12962
12963
12964
12965
12966
12967 lt_prog_compiler_wl_CXX=
12968lt_prog_compiler_pic_CXX=
12969lt_prog_compiler_static_CXX=
12970
a2479b3d
L
12971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12972$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
f35db108
WM
12973
12974 # C++ specific cases for pic, static, wl, etc.
12975 if test "$GXX" = yes; then
12976 lt_prog_compiler_wl_CXX='-Wl,'
12977 lt_prog_compiler_static_CXX='-static'
12978
12979 case $host_os in
12980 aix*)
12981 # All AIX code is PIC.
12982 if test "$host_cpu" = ia64; then
12983 # AIX 5 now supports IA64 processor
12984 lt_prog_compiler_static_CXX='-Bstatic'
12985 fi
a2479b3d 12986 lt_prog_compiler_pic_CXX='-fPIC'
f35db108
WM
12987 ;;
12988
12989 amigaos*)
12990 case $host_cpu in
12991 powerpc)
12992 # see comment about AmigaOS4 .so support
12993 lt_prog_compiler_pic_CXX='-fPIC'
12994 ;;
12995 m68k)
12996 # FIXME: we need at least 68020 code to build shared libraries, but
12997 # adding the `-m68020' flag to GCC prevents building anything better,
12998 # like `-m68040'.
12999 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13000 ;;
13001 esac
13002 ;;
13003
13004 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13005 # PIC is the default for these OSes.
13006 ;;
13007 mingw* | cygwin* | os2* | pw32* | cegcc*)
13008 # This hack is so that the source file can tell whether it is being
13009 # built for inclusion in a dll (and should export symbols for example).
13010 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13011 # (--disable-auto-import) libraries
13012 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13013 ;;
13014 darwin* | rhapsody*)
13015 # PIC is the default on this platform
13016 # Common symbols not allowed in MH_DYLIB files
13017 lt_prog_compiler_pic_CXX='-fno-common'
13018 ;;
13019 *djgpp*)
13020 # DJGPP does not support shared libraries at all
13021 lt_prog_compiler_pic_CXX=
13022 ;;
13023 haiku*)
13024 # PIC is the default for Haiku.
13025 # The "-static" flag exists, but is broken.
13026 lt_prog_compiler_static_CXX=
13027 ;;
13028 interix[3-9]*)
13029 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13030 # Instead, we relocate shared libraries at runtime.
13031 ;;
13032 sysv4*MP*)
13033 if test -d /usr/nec; then
13034 lt_prog_compiler_pic_CXX=-Kconform_pic
13035 fi
13036 ;;
13037 hpux*)
13038 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13039 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13040 # sets the default TLS model and affects inlining.
13041 case $host_cpu in
13042 hppa*64*)
13043 ;;
13044 *)
13045 lt_prog_compiler_pic_CXX='-fPIC'
13046 ;;
13047 esac
13048 ;;
13049 *qnx* | *nto*)
13050 # QNX uses GNU C++, but need to define -shared option too, otherwise
13051 # it will coredump.
13052 lt_prog_compiler_pic_CXX='-fPIC -shared'
13053 ;;
13054 *)
13055 lt_prog_compiler_pic_CXX='-fPIC'
13056 ;;
13057 esac
13058 else
13059 case $host_os in
13060 aix[4-9]*)
13061 # All AIX code is PIC.
13062 if test "$host_cpu" = ia64; then
13063 # AIX 5 now supports IA64 processor
13064 lt_prog_compiler_static_CXX='-Bstatic'
13065 else
13066 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13067 fi
13068 ;;
13069 chorus*)
13070 case $cc_basename in
13071 cxch68*)
13072 # Green Hills C++ Compiler
13073 # _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"
13074 ;;
13075 esac
13076 ;;
f35db108
WM
13077 dgux*)
13078 case $cc_basename in
13079 ec++*)
13080 lt_prog_compiler_pic_CXX='-KPIC'
13081 ;;
13082 ghcx*)
13083 # Green Hills C++ Compiler
13084 lt_prog_compiler_pic_CXX='-pic'
13085 ;;
13086 *)
13087 ;;
13088 esac
13089 ;;
13090 freebsd* | dragonfly*)
13091 # FreeBSD uses GNU C++
13092 ;;
13093 hpux9* | hpux10* | hpux11*)
13094 case $cc_basename in
13095 CC*)
13096 lt_prog_compiler_wl_CXX='-Wl,'
13097 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13098 if test "$host_cpu" != ia64; then
13099 lt_prog_compiler_pic_CXX='+Z'
13100 fi
13101 ;;
13102 aCC*)
13103 lt_prog_compiler_wl_CXX='-Wl,'
13104 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13105 case $host_cpu in
13106 hppa*64*|ia64*)
13107 # +Z the default
13108 ;;
13109 *)
13110 lt_prog_compiler_pic_CXX='+Z'
13111 ;;
13112 esac
13113 ;;
13114 *)
13115 ;;
13116 esac
13117 ;;
13118 interix*)
13119 # This is c89, which is MS Visual C++ (no shared libs)
13120 # Anyone wants to do a port?
13121 ;;
13122 irix5* | irix6* | nonstopux*)
13123 case $cc_basename in
13124 CC*)
13125 lt_prog_compiler_wl_CXX='-Wl,'
13126 lt_prog_compiler_static_CXX='-non_shared'
13127 # CC pic flag -KPIC is the default.
13128 ;;
13129 *)
13130 ;;
13131 esac
13132 ;;
13133 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13134 case $cc_basename in
13135 KCC*)
13136 # KAI C++ Compiler
13137 lt_prog_compiler_wl_CXX='--backend -Wl,'
13138 lt_prog_compiler_pic_CXX='-fPIC'
13139 ;;
13140 ecpc* )
13141 # old Intel C++ for x86_64 which still supported -KPIC.
13142 lt_prog_compiler_wl_CXX='-Wl,'
13143 lt_prog_compiler_pic_CXX='-KPIC'
13144 lt_prog_compiler_static_CXX='-static'
13145 ;;
13146 icpc* )
13147 # Intel C++, used to be incompatible with GCC.
13148 # ICC 10 doesn't accept -KPIC any more.
13149 lt_prog_compiler_wl_CXX='-Wl,'
13150 lt_prog_compiler_pic_CXX='-fPIC'
13151 lt_prog_compiler_static_CXX='-static'
13152 ;;
13153 pgCC* | pgcpp*)
13154 # Portland Group C++ compiler
13155 lt_prog_compiler_wl_CXX='-Wl,'
13156 lt_prog_compiler_pic_CXX='-fpic'
13157 lt_prog_compiler_static_CXX='-Bstatic'
13158 ;;
13159 cxx*)
13160 # Compaq C++
13161 # Make sure the PIC flag is empty. It appears that all Alpha
13162 # Linux and Compaq Tru64 Unix objects are PIC.
13163 lt_prog_compiler_pic_CXX=
13164 lt_prog_compiler_static_CXX='-non_shared'
13165 ;;
13166 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13167 # IBM XL 8.0, 9.0 on PPC and BlueGene
13168 lt_prog_compiler_wl_CXX='-Wl,'
13169 lt_prog_compiler_pic_CXX='-qpic'
13170 lt_prog_compiler_static_CXX='-qstaticlink'
13171 ;;
13172 *)
13173 case `$CC -V 2>&1 | sed 5q` in
13174 *Sun\ C*)
13175 # Sun C++ 5.9
13176 lt_prog_compiler_pic_CXX='-KPIC'
13177 lt_prog_compiler_static_CXX='-Bstatic'
13178 lt_prog_compiler_wl_CXX='-Qoption ld '
13179 ;;
13180 esac
13181 ;;
13182 esac
13183 ;;
13184 lynxos*)
13185 ;;
13186 m88k*)
13187 ;;
13188 mvs*)
13189 case $cc_basename in
13190 cxx*)
13191 lt_prog_compiler_pic_CXX='-W c,exportall'
13192 ;;
13193 *)
13194 ;;
13195 esac
13196 ;;
a2479b3d 13197 netbsd*)
f35db108
WM
13198 ;;
13199 *qnx* | *nto*)
13200 # QNX uses GNU C++, but need to define -shared option too, otherwise
13201 # it will coredump.
13202 lt_prog_compiler_pic_CXX='-fPIC -shared'
13203 ;;
13204 osf3* | osf4* | osf5*)
13205 case $cc_basename in
13206 KCC*)
13207 lt_prog_compiler_wl_CXX='--backend -Wl,'
13208 ;;
13209 RCC*)
13210 # Rational C++ 2.4.1
13211 lt_prog_compiler_pic_CXX='-pic'
13212 ;;
13213 cxx*)
13214 # Digital/Compaq C++
13215 lt_prog_compiler_wl_CXX='-Wl,'
13216 # Make sure the PIC flag is empty. It appears that all Alpha
13217 # Linux and Compaq Tru64 Unix objects are PIC.
13218 lt_prog_compiler_pic_CXX=
13219 lt_prog_compiler_static_CXX='-non_shared'
13220 ;;
13221 *)
13222 ;;
13223 esac
13224 ;;
13225 psos*)
13226 ;;
13227 solaris*)
13228 case $cc_basename in
a2479b3d 13229 CC*)
f35db108
WM
13230 # Sun C++ 4.2, 5.x and Centerline C++
13231 lt_prog_compiler_pic_CXX='-KPIC'
13232 lt_prog_compiler_static_CXX='-Bstatic'
13233 lt_prog_compiler_wl_CXX='-Qoption ld '
13234 ;;
13235 gcx*)
13236 # Green Hills C++ Compiler
13237 lt_prog_compiler_pic_CXX='-PIC'
13238 ;;
13239 *)
13240 ;;
13241 esac
13242 ;;
13243 sunos4*)
13244 case $cc_basename in
13245 CC*)
13246 # Sun C++ 4.x
13247 lt_prog_compiler_pic_CXX='-pic'
13248 lt_prog_compiler_static_CXX='-Bstatic'
13249 ;;
13250 lcc*)
13251 # Lucid
13252 lt_prog_compiler_pic_CXX='-pic'
13253 ;;
13254 *)
13255 ;;
13256 esac
13257 ;;
13258 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13259 case $cc_basename in
13260 CC*)
13261 lt_prog_compiler_wl_CXX='-Wl,'
13262 lt_prog_compiler_pic_CXX='-KPIC'
13263 lt_prog_compiler_static_CXX='-Bstatic'
13264 ;;
13265 esac
13266 ;;
13267 tandem*)
13268 case $cc_basename in
13269 NCC*)
13270 # NonStop-UX NCC 3.20
13271 lt_prog_compiler_pic_CXX='-KPIC'
13272 ;;
13273 *)
13274 ;;
13275 esac
13276 ;;
13277 vxworks*)
13278 ;;
13279 *)
13280 lt_prog_compiler_can_build_shared_CXX=no
13281 ;;
13282 esac
13283 fi
13284
13285case $host_os in
13286 # For platforms which do not support PIC, -DPIC is meaningless:
13287 *djgpp*)
13288 lt_prog_compiler_pic_CXX=
13289 ;;
13290 *)
13291 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13292 ;;
13293esac
a2479b3d
L
13294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13295$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13296
f35db108 13297
f35db108
WM
13298
13299#
13300# Check to make sure the PIC flag actually works.
13301#
13302if test -n "$lt_prog_compiler_pic_CXX"; then
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13304$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
a2479b3d 13305if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
f35db108
WM
13306 $as_echo_n "(cached) " >&6
13307else
13308 lt_cv_prog_compiler_pic_works_CXX=no
13309 ac_outfile=conftest.$ac_objext
13310 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13311 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13312 # Insert the option either (1) after the last *FLAGS variable, or
13313 # (2) before a word containing "conftest.", or (3) at the end.
13314 # Note that $ac_compile itself does not contain backslashes and begins
13315 # with a dollar sign (not a hyphen), so the echo should work correctly.
13316 # The option is referenced via a variable to avoid confusing sed.
13317 lt_compile=`echo "$ac_compile" | $SED \
13318 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13319 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13320 -e 's:$: $lt_compiler_flag:'`
13321 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13322 (eval "$lt_compile" 2>conftest.err)
13323 ac_status=$?
13324 cat conftest.err >&5
13325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13326 if (exit $ac_status) && test -s "$ac_outfile"; then
13327 # The compiler can only warn and ignore the option if not recognized
13328 # So say no if there are warnings other than the usual output.
13329 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13330 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13331 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13332 lt_cv_prog_compiler_pic_works_CXX=yes
13333 fi
13334 fi
13335 $RM conftest*
13336
13337fi
13338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13339$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13340
13341if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13342 case $lt_prog_compiler_pic_CXX in
13343 "" | " "*) ;;
13344 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13345 esac
13346else
13347 lt_prog_compiler_pic_CXX=
13348 lt_prog_compiler_can_build_shared_CXX=no
13349fi
13350
13351fi
13352
13353
13354
f35db108
WM
13355#
13356# Check to make sure the static flag actually works.
13357#
13358wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13360$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
a2479b3d 13361if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
f35db108
WM
13362 $as_echo_n "(cached) " >&6
13363else
13364 lt_cv_prog_compiler_static_works_CXX=no
13365 save_LDFLAGS="$LDFLAGS"
13366 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13367 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13368 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13369 # The linker can only warn and ignore the option if not recognized
13370 # So say no if there are warnings
13371 if test -s conftest.err; then
13372 # Append any errors to the config.log.
13373 cat conftest.err 1>&5
13374 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13375 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13376 if diff conftest.exp conftest.er2 >/dev/null; then
13377 lt_cv_prog_compiler_static_works_CXX=yes
13378 fi
13379 else
13380 lt_cv_prog_compiler_static_works_CXX=yes
13381 fi
13382 fi
13383 $RM -r conftest*
13384 LDFLAGS="$save_LDFLAGS"
13385
13386fi
13387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13388$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13389
13390if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13391 :
13392else
13393 lt_prog_compiler_static_CXX=
13394fi
13395
13396
13397
13398
13399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13400$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
a2479b3d 13401if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
f35db108
WM
13402 $as_echo_n "(cached) " >&6
13403else
13404 lt_cv_prog_compiler_c_o_CXX=no
13405 $RM -r conftest 2>/dev/null
13406 mkdir conftest
13407 cd conftest
13408 mkdir out
13409 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13410
13411 lt_compiler_flag="-o out/conftest2.$ac_objext"
13412 # Insert the option either (1) after the last *FLAGS variable, or
13413 # (2) before a word containing "conftest.", or (3) at the end.
13414 # Note that $ac_compile itself does not contain backslashes and begins
13415 # with a dollar sign (not a hyphen), so the echo should work correctly.
13416 lt_compile=`echo "$ac_compile" | $SED \
13417 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13418 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13419 -e 's:$: $lt_compiler_flag:'`
13420 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13421 (eval "$lt_compile" 2>out/conftest.err)
13422 ac_status=$?
13423 cat out/conftest.err >&5
13424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13425 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13426 then
13427 # The compiler can only warn and ignore the option if not recognized
13428 # So say no if there are warnings
13429 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13430 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13431 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13432 lt_cv_prog_compiler_c_o_CXX=yes
13433 fi
13434 fi
13435 chmod u+w . 2>&5
13436 $RM conftest*
13437 # SGI C++ compiler will create directory out/ii_files/ for
13438 # template instantiation
13439 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13440 $RM out/* && rmdir out
13441 cd ..
13442 $RM -r conftest
13443 $RM conftest*
13444
13445fi
13446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13447$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13448
13449
13450
13451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13452$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
a2479b3d 13453if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
f35db108
WM
13454 $as_echo_n "(cached) " >&6
13455else
13456 lt_cv_prog_compiler_c_o_CXX=no
13457 $RM -r conftest 2>/dev/null
13458 mkdir conftest
13459 cd conftest
13460 mkdir out
13461 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13462
13463 lt_compiler_flag="-o out/conftest2.$ac_objext"
13464 # Insert the option either (1) after the last *FLAGS variable, or
13465 # (2) before a word containing "conftest.", or (3) at the end.
13466 # Note that $ac_compile itself does not contain backslashes and begins
13467 # with a dollar sign (not a hyphen), so the echo should work correctly.
13468 lt_compile=`echo "$ac_compile" | $SED \
13469 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13470 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13471 -e 's:$: $lt_compiler_flag:'`
13472 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13473 (eval "$lt_compile" 2>out/conftest.err)
13474 ac_status=$?
13475 cat out/conftest.err >&5
13476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13477 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13478 then
13479 # The compiler can only warn and ignore the option if not recognized
13480 # So say no if there are warnings
13481 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13482 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13483 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13484 lt_cv_prog_compiler_c_o_CXX=yes
13485 fi
13486 fi
13487 chmod u+w . 2>&5
13488 $RM conftest*
13489 # SGI C++ compiler will create directory out/ii_files/ for
13490 # template instantiation
13491 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13492 $RM out/* && rmdir out
13493 cd ..
13494 $RM -r conftest
13495 $RM conftest*
13496
13497fi
13498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13499$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13500
13501
13502
13503
13504hard_links="nottested"
13505if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13506 # do not overwrite the value of need_locks provided by the user
13507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13508$as_echo_n "checking if we can lock with hard links... " >&6; }
13509 hard_links=yes
13510 $RM conftest*
13511 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13512 touch conftest.a
13513 ln conftest.a conftest.b 2>&5 || hard_links=no
13514 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13516$as_echo "$hard_links" >&6; }
13517 if test "$hard_links" = no; then
13518 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13519$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13520 need_locks=warn
13521 fi
13522else
13523 need_locks=no
13524fi
13525
13526
13527
13528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13529$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13530
13531 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
f35db108
WM
13532 case $host_os in
13533 aix[4-9]*)
13534 # If we're using GNU nm, then we don't want the "-C" option.
13535 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13536 # Also, AIX nm treats weak defined symbols like other global defined
13537 # symbols, whereas GNU nm marks them as "W".
13538 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13539 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'
13540 else
13541 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'
13542 fi
13543 ;;
13544 pw32*)
13545 export_symbols_cmds_CXX="$ltdll_cmds"
a2479b3d 13546 ;;
f35db108 13547 cygwin* | mingw* | cegcc*)
a2479b3d
L
13548 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
13549 ;;
f35db108
WM
13550 *)
13551 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
a2479b3d 13552 ;;
f35db108 13553 esac
a2479b3d 13554 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
f35db108
WM
13555
13556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13557$as_echo "$ld_shlibs_CXX" >&6; }
13558test "$ld_shlibs_CXX" = no && can_build_shared=no
13559
13560with_gnu_ld_CXX=$with_gnu_ld
13561
13562
13563
13564
13565
13566
13567#
13568# Do we need to explicitly link libc?
13569#
13570case "x$archive_cmds_need_lc_CXX" in
13571x|xyes)
13572 # Assume -lc should be added
13573 archive_cmds_need_lc_CXX=yes
13574
13575 if test "$enable_shared" = yes && test "$GCC" = yes; then
13576 case $archive_cmds_CXX in
13577 *'~'*)
13578 # FIXME: we may have to deal with multi-command sequences.
13579 ;;
13580 '$CC '*)
13581 # Test whether the compiler implicitly links with -lc since on some
13582 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13583 # to ld, don't add -lc before -lgcc.
13584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13585$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
a2479b3d 13586if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
f35db108
WM
13587 $as_echo_n "(cached) " >&6
13588else
13589 $RM conftest*
13590 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13591
13592 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13593 (eval $ac_compile) 2>&5
13594 ac_status=$?
13595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13596 test $ac_status = 0; } 2>conftest.err; then
13597 soname=conftest
13598 lib=conftest
13599 libobjs=conftest.$ac_objext
13600 deplibs=
13601 wl=$lt_prog_compiler_wl_CXX
13602 pic_flag=$lt_prog_compiler_pic_CXX
13603 compiler_flags=-v
13604 linker_flags=-v
13605 verstring=
13606 output_objdir=.
13607 libname=conftest
13608 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13609 allow_undefined_flag_CXX=
13610 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13611 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13612 ac_status=$?
13613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13614 test $ac_status = 0; }
13615 then
13616 lt_cv_archive_cmds_need_lc_CXX=no
13617 else
13618 lt_cv_archive_cmds_need_lc_CXX=yes
13619 fi
13620 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13621 else
13622 cat conftest.err 1>&5
13623 fi
13624 $RM conftest*
13625
13626fi
13627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
13628$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
13629 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
13630 ;;
13631 esac
13632 fi
13633 ;;
13634esac
13635
13636
13637
13638
13639
13640
13641
13642
13643
13644
13645
13646
13647
13648
13649
13650
13651
13652
13653
13654
13655
13656
13657
13658
13659
13660
13661
13662
13663
13664
13665
13666
13667
13668
13669
13670
13671
13672
13673
13674
13675
13676
13677
13678
13679
13680
13681
13682
13683
13684
13685
13686
13687
13688
13689
13690
13691
13692
13693
a2479b3d
L
13694
13695
f35db108
WM
13696
13697
13698
13699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13700$as_echo_n "checking dynamic linker characteristics... " >&6; }
13701
13702library_names_spec=
13703libname_spec='lib$name'
13704soname_spec=
13705shrext_cmds=".so"
13706postinstall_cmds=
13707postuninstall_cmds=
13708finish_cmds=
13709finish_eval=
13710shlibpath_var=
13711shlibpath_overrides_runpath=unknown
13712version_type=none
13713dynamic_linker="$host_os ld.so"
13714sys_lib_dlsearch_path_spec="/lib /usr/lib"
13715need_lib_prefix=unknown
13716hardcode_into_libs=no
13717
13718# when you set need_version to no, make sure it does not cause -set_version
13719# flags to be left without arguments
13720need_version=unknown
13721
13722case $host_os in
13723aix3*)
a2479b3d 13724 version_type=linux
f35db108
WM
13725 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13726 shlibpath_var=LIBPATH
13727
13728 # AIX 3 has no versioning support, so we append a major version to the name.
13729 soname_spec='${libname}${release}${shared_ext}$major'
13730 ;;
13731
13732aix[4-9]*)
a2479b3d 13733 version_type=linux
f35db108
WM
13734 need_lib_prefix=no
13735 need_version=no
13736 hardcode_into_libs=yes
13737 if test "$host_cpu" = ia64; then
13738 # AIX 5 supports IA64
13739 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13740 shlibpath_var=LD_LIBRARY_PATH
13741 else
13742 # With GCC up to 2.95.x, collect2 would create an import file
13743 # for dependence libraries. The import file would start with
13744 # the line `#! .'. This would cause the generated library to
13745 # depend on `.', always an invalid library. This was fixed in
13746 # development snapshots of GCC prior to 3.0.
13747 case $host_os in
13748 aix4 | aix4.[01] | aix4.[01].*)
13749 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13750 echo ' yes '
13751 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13752 :
13753 else
13754 can_build_shared=no
13755 fi
13756 ;;
13757 esac
13758 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13759 # soname into executable. Probably we can add versioning support to
13760 # collect2, so additional links can be useful in future.
13761 if test "$aix_use_runtimelinking" = yes; then
13762 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13763 # instead of lib<name>.a to let people know that these are not
13764 # typical AIX shared libraries.
13765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13766 else
13767 # We preserve .a as extension for shared libraries through AIX4.2
13768 # and later when we are not doing run time linking.
13769 library_names_spec='${libname}${release}.a $libname.a'
13770 soname_spec='${libname}${release}${shared_ext}$major'
13771 fi
13772 shlibpath_var=LIBPATH
13773 fi
13774 ;;
13775
13776amigaos*)
13777 case $host_cpu in
13778 powerpc)
13779 # Since July 2007 AmigaOS4 officially supports .so libraries.
13780 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13782 ;;
13783 m68k)
13784 library_names_spec='$libname.ixlibrary $libname.a'
13785 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13786 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'
13787 ;;
13788 esac
13789 ;;
13790
13791beos*)
13792 library_names_spec='${libname}${shared_ext}'
13793 dynamic_linker="$host_os ld.so"
13794 shlibpath_var=LIBRARY_PATH
13795 ;;
13796
13797bsdi[45]*)
a2479b3d 13798 version_type=linux
f35db108
WM
13799 need_version=no
13800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13801 soname_spec='${libname}${release}${shared_ext}$major'
13802 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13803 shlibpath_var=LD_LIBRARY_PATH
13804 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13805 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13806 # the default ld.so.conf also contains /usr/contrib/lib and
13807 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13808 # libtool to hard-code these into programs
13809 ;;
13810
13811cygwin* | mingw* | pw32* | cegcc*)
13812 version_type=windows
13813 shrext_cmds=".dll"
13814 need_version=no
13815 need_lib_prefix=no
13816
a2479b3d
L
13817 case $GCC,$host_os in
13818 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
f35db108
WM
13819 library_names_spec='$libname.dll.a'
13820 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13821 postinstall_cmds='base_file=`basename \${file}`~
13822 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13823 dldir=$destdir/`dirname \$dlpath`~
13824 test -d \$dldir || mkdir -p \$dldir~
13825 $install_prog $dir/$dlname \$dldir/$dlname~
13826 chmod a+x \$dldir/$dlname~
13827 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13828 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13829 fi'
13830 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13831 dlpath=$dir/\$dldll~
13832 $RM \$dlpath'
13833 shlibpath_overrides_runpath=yes
13834
13835 case $host_os in
13836 cygwin*)
13837 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13838 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13839
13840 ;;
13841 mingw* | cegcc*)
13842 # MinGW DLLs use traditional 'lib' prefix
13843 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13844 ;;
13845 pw32*)
13846 # pw32 DLLs use 'pw' prefix rather than 'lib'
13847 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13848 ;;
13849 esac
f35db108
WM
13850 ;;
13851
13852 *)
f35db108 13853 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
f35db108
WM
13854 ;;
13855 esac
a2479b3d 13856 dynamic_linker='Win32 ld.exe'
f35db108
WM
13857 # FIXME: first we should search . and the directory the executable is in
13858 shlibpath_var=PATH
13859 ;;
13860
13861darwin* | rhapsody*)
13862 dynamic_linker="$host_os dyld"
13863 version_type=darwin
13864 need_lib_prefix=no
13865 need_version=no
13866 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13867 soname_spec='${libname}${release}${major}$shared_ext'
13868 shlibpath_overrides_runpath=yes
13869 shlibpath_var=DYLD_LIBRARY_PATH
13870 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13871
13872 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13873 ;;
13874
13875dgux*)
a2479b3d 13876 version_type=linux
f35db108
WM
13877 need_lib_prefix=no
13878 need_version=no
13879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13880 soname_spec='${libname}${release}${shared_ext}$major'
13881 shlibpath_var=LD_LIBRARY_PATH
13882 ;;
13883
13884freebsd* | dragonfly*)
13885 # DragonFly does not have aout. When/if they implement a new
13886 # versioning mechanism, adjust this.
13887 if test -x /usr/bin/objformat; then
13888 objformat=`/usr/bin/objformat`
13889 else
13890 case $host_os in
13891 freebsd[23].*) objformat=aout ;;
13892 *) objformat=elf ;;
13893 esac
13894 fi
13895 version_type=freebsd-$objformat
13896 case $version_type in
13897 freebsd-elf*)
13898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13899 need_version=no
13900 need_lib_prefix=no
13901 ;;
13902 freebsd-*)
13903 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13904 need_version=yes
13905 ;;
13906 esac
13907 shlibpath_var=LD_LIBRARY_PATH
13908 case $host_os in
13909 freebsd2.*)
13910 shlibpath_overrides_runpath=yes
13911 ;;
13912 freebsd3.[01]* | freebsdelf3.[01]*)
13913 shlibpath_overrides_runpath=yes
13914 hardcode_into_libs=yes
13915 ;;
13916 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13917 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13918 shlibpath_overrides_runpath=no
13919 hardcode_into_libs=yes
13920 ;;
13921 *) # from 4.6 on, and DragonFly
13922 shlibpath_overrides_runpath=yes
13923 hardcode_into_libs=yes
13924 ;;
13925 esac
13926 ;;
13927
13928gnu*)
a2479b3d 13929 version_type=linux
f35db108
WM
13930 need_lib_prefix=no
13931 need_version=no
13932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13933 soname_spec='${libname}${release}${shared_ext}$major'
13934 shlibpath_var=LD_LIBRARY_PATH
f35db108
WM
13935 hardcode_into_libs=yes
13936 ;;
13937
13938haiku*)
a2479b3d 13939 version_type=linux
f35db108
WM
13940 need_lib_prefix=no
13941 need_version=no
13942 dynamic_linker="$host_os runtime_loader"
13943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13944 soname_spec='${libname}${release}${shared_ext}$major'
13945 shlibpath_var=LIBRARY_PATH
13946 shlibpath_overrides_runpath=yes
a2479b3d 13947 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
f35db108
WM
13948 hardcode_into_libs=yes
13949 ;;
13950
13951hpux9* | hpux10* | hpux11*)
13952 # Give a soname corresponding to the major version so that dld.sl refuses to
13953 # link against other versions.
13954 version_type=sunos
13955 need_lib_prefix=no
13956 need_version=no
13957 case $host_cpu in
13958 ia64*)
13959 shrext_cmds='.so'
13960 hardcode_into_libs=yes
13961 dynamic_linker="$host_os dld.so"
13962 shlibpath_var=LD_LIBRARY_PATH
13963 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13965 soname_spec='${libname}${release}${shared_ext}$major'
13966 if test "X$HPUX_IA64_MODE" = X32; then
13967 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13968 else
13969 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13970 fi
13971 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13972 ;;
13973 hppa*64*)
13974 shrext_cmds='.sl'
13975 hardcode_into_libs=yes
13976 dynamic_linker="$host_os dld.sl"
13977 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13978 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13980 soname_spec='${libname}${release}${shared_ext}$major'
13981 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13982 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13983 ;;
13984 *)
13985 shrext_cmds='.sl'
13986 dynamic_linker="$host_os dld.sl"
13987 shlibpath_var=SHLIB_PATH
13988 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13990 soname_spec='${libname}${release}${shared_ext}$major'
13991 ;;
13992 esac
13993 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13994 postinstall_cmds='chmod 555 $lib'
13995 # or fails outright, so override atomically:
13996 install_override_mode=555
13997 ;;
13998
13999interix[3-9]*)
a2479b3d 14000 version_type=linux
f35db108
WM
14001 need_lib_prefix=no
14002 need_version=no
14003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14004 soname_spec='${libname}${release}${shared_ext}$major'
14005 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14006 shlibpath_var=LD_LIBRARY_PATH
14007 shlibpath_overrides_runpath=no
14008 hardcode_into_libs=yes
14009 ;;
14010
14011irix5* | irix6* | nonstopux*)
14012 case $host_os in
14013 nonstopux*) version_type=nonstopux ;;
14014 *)
14015 if test "$lt_cv_prog_gnu_ld" = yes; then
a2479b3d 14016 version_type=linux
f35db108
WM
14017 else
14018 version_type=irix
14019 fi ;;
14020 esac
14021 need_lib_prefix=no
14022 need_version=no
14023 soname_spec='${libname}${release}${shared_ext}$major'
14024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14025 case $host_os in
14026 irix5* | nonstopux*)
14027 libsuff= shlibsuff=
14028 ;;
14029 *)
14030 case $LD in # libtool.m4 will add one of these switches to LD
14031 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14032 libsuff= shlibsuff= libmagic=32-bit;;
14033 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14034 libsuff=32 shlibsuff=N32 libmagic=N32;;
14035 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14036 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14037 *) libsuff= shlibsuff= libmagic=never-match;;
14038 esac
14039 ;;
14040 esac
14041 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14042 shlibpath_overrides_runpath=no
14043 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14044 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14045 hardcode_into_libs=yes
14046 ;;
14047
14048# No shared lib support for Linux oldld, aout, or coff.
14049linux*oldld* | linux*aout* | linux*coff*)
14050 dynamic_linker=no
14051 ;;
14052
a2479b3d 14053# This must be Linux ELF.
f35db108 14054linux* | k*bsd*-gnu | kopensolaris*-gnu)
a2479b3d 14055 version_type=linux
f35db108
WM
14056 need_lib_prefix=no
14057 need_version=no
14058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14059 soname_spec='${libname}${release}${shared_ext}$major'
14060 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14061 shlibpath_var=LD_LIBRARY_PATH
14062 shlibpath_overrides_runpath=no
14063
14064 # Some binutils ld are patched to set DT_RUNPATH
a2479b3d 14065 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
f35db108
WM
14066 $as_echo_n "(cached) " >&6
14067else
14068 lt_cv_shlibpath_overrides_runpath=no
14069 save_LDFLAGS=$LDFLAGS
14070 save_libdir=$libdir
14071 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14072 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14074/* end confdefs.h. */
14075
14076int
14077main ()
14078{
14079
14080 ;
14081 return 0;
14082}
14083_ACEOF
14084if ac_fn_cxx_try_link "$LINENO"; then :
14085 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14086 lt_cv_shlibpath_overrides_runpath=yes
14087fi
14088fi
14089rm -f core conftest.err conftest.$ac_objext \
14090 conftest$ac_exeext conftest.$ac_ext
14091 LDFLAGS=$save_LDFLAGS
14092 libdir=$save_libdir
14093
14094fi
14095
14096 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14097
14098 # This implies no fast_install, which is unacceptable.
14099 # Some rework will be needed to allow for fast_install
14100 # before this can be enabled.
14101 hardcode_into_libs=yes
14102
14103 # Append ld.so.conf contents to the search path
14104 if test -f /etc/ld.so.conf; then
14105 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' ' '`
14106 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14107 fi
14108
14109 # We used to test for /lib/ld.so.1 and disable shared libraries on
14110 # powerpc, because MkLinux only supported shared libraries with the
14111 # GNU dynamic linker. Since this was broken with cross compilers,
14112 # most powerpc-linux boxes support dynamic linking these days and
14113 # people can always --disable-shared, the test was removed, and we
14114 # assume the GNU/Linux dynamic linker is in use.
14115 dynamic_linker='GNU/Linux ld.so'
14116 ;;
14117
f35db108
WM
14118netbsd*)
14119 version_type=sunos
14120 need_lib_prefix=no
14121 need_version=no
14122 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14124 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14125 dynamic_linker='NetBSD (a.out) ld.so'
14126 else
14127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14128 soname_spec='${libname}${release}${shared_ext}$major'
14129 dynamic_linker='NetBSD ld.elf_so'
14130 fi
14131 shlibpath_var=LD_LIBRARY_PATH
14132 shlibpath_overrides_runpath=yes
14133 hardcode_into_libs=yes
14134 ;;
14135
14136newsos6)
a2479b3d 14137 version_type=linux
f35db108
WM
14138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14139 shlibpath_var=LD_LIBRARY_PATH
14140 shlibpath_overrides_runpath=yes
14141 ;;
14142
14143*nto* | *qnx*)
14144 version_type=qnx
14145 need_lib_prefix=no
14146 need_version=no
14147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14148 soname_spec='${libname}${release}${shared_ext}$major'
14149 shlibpath_var=LD_LIBRARY_PATH
14150 shlibpath_overrides_runpath=no
14151 hardcode_into_libs=yes
14152 dynamic_linker='ldqnx.so'
14153 ;;
14154
14155openbsd*)
14156 version_type=sunos
14157 sys_lib_dlsearch_path_spec="/usr/lib"
14158 need_lib_prefix=no
14159 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14160 case $host_os in
14161 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14162 *) need_version=no ;;
14163 esac
14164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14165 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14166 shlibpath_var=LD_LIBRARY_PATH
14167 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14168 case $host_os in
14169 openbsd2.[89] | openbsd2.[89].*)
14170 shlibpath_overrides_runpath=no
14171 ;;
14172 *)
14173 shlibpath_overrides_runpath=yes
14174 ;;
14175 esac
14176 else
14177 shlibpath_overrides_runpath=yes
14178 fi
14179 ;;
14180
14181os2*)
14182 libname_spec='$name'
14183 shrext_cmds=".dll"
14184 need_lib_prefix=no
14185 library_names_spec='$libname${shared_ext} $libname.a'
14186 dynamic_linker='OS/2 ld.exe'
14187 shlibpath_var=LIBPATH
14188 ;;
14189
14190osf3* | osf4* | osf5*)
14191 version_type=osf
14192 need_lib_prefix=no
14193 need_version=no
14194 soname_spec='${libname}${release}${shared_ext}$major'
14195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14196 shlibpath_var=LD_LIBRARY_PATH
14197 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14198 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14199 ;;
14200
14201rdos*)
14202 dynamic_linker=no
14203 ;;
14204
14205solaris*)
a2479b3d 14206 version_type=linux
f35db108
WM
14207 need_lib_prefix=no
14208 need_version=no
14209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14210 soname_spec='${libname}${release}${shared_ext}$major'
14211 shlibpath_var=LD_LIBRARY_PATH
14212 shlibpath_overrides_runpath=yes
14213 hardcode_into_libs=yes
14214 # ldd complains unless libraries are executable
14215 postinstall_cmds='chmod +x $lib'
14216 ;;
14217
14218sunos4*)
14219 version_type=sunos
14220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14221 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14222 shlibpath_var=LD_LIBRARY_PATH
14223 shlibpath_overrides_runpath=yes
14224 if test "$with_gnu_ld" = yes; then
14225 need_lib_prefix=no
14226 fi
14227 need_version=yes
14228 ;;
14229
14230sysv4 | sysv4.3*)
a2479b3d 14231 version_type=linux
f35db108
WM
14232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14233 soname_spec='${libname}${release}${shared_ext}$major'
14234 shlibpath_var=LD_LIBRARY_PATH
14235 case $host_vendor in
14236 sni)
14237 shlibpath_overrides_runpath=no
14238 need_lib_prefix=no
14239 runpath_var=LD_RUN_PATH
14240 ;;
14241 siemens)
14242 need_lib_prefix=no
14243 ;;
14244 motorola)
14245 need_lib_prefix=no
14246 need_version=no
14247 shlibpath_overrides_runpath=no
14248 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14249 ;;
14250 esac
14251 ;;
14252
14253sysv4*MP*)
14254 if test -d /usr/nec ;then
a2479b3d 14255 version_type=linux
f35db108
WM
14256 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14257 soname_spec='$libname${shared_ext}.$major'
14258 shlibpath_var=LD_LIBRARY_PATH
14259 fi
14260 ;;
14261
14262sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14263 version_type=freebsd-elf
14264 need_lib_prefix=no
14265 need_version=no
14266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14267 soname_spec='${libname}${release}${shared_ext}$major'
14268 shlibpath_var=LD_LIBRARY_PATH
14269 shlibpath_overrides_runpath=yes
14270 hardcode_into_libs=yes
14271 if test "$with_gnu_ld" = yes; then
14272 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14273 else
14274 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14275 case $host_os in
14276 sco3.2v5*)
14277 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14278 ;;
14279 esac
14280 fi
14281 sys_lib_dlsearch_path_spec='/usr/lib'
14282 ;;
14283
14284tpf*)
14285 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
a2479b3d 14286 version_type=linux
f35db108
WM
14287 need_lib_prefix=no
14288 need_version=no
14289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14290 shlibpath_var=LD_LIBRARY_PATH
14291 shlibpath_overrides_runpath=no
14292 hardcode_into_libs=yes
14293 ;;
14294
14295uts4*)
a2479b3d 14296 version_type=linux
f35db108
WM
14297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14298 soname_spec='${libname}${release}${shared_ext}$major'
14299 shlibpath_var=LD_LIBRARY_PATH
14300 ;;
14301
14302*)
14303 dynamic_linker=no
14304 ;;
14305esac
14306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14307$as_echo "$dynamic_linker" >&6; }
14308test "$dynamic_linker" = no && can_build_shared=no
14309
14310variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14311if test "$GCC" = yes; then
14312 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14313fi
14314
14315if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14316 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14317fi
14318if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14319 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14320fi
14321
14322
14323
14324
14325
14326
14327
14328
14329
14330
14331
14332
14333
14334
14335
14336
14337
14338
14339
14340
14341
14342
14343
14344
14345
14346
14347
14348
14349
14350
14351
14352
14353
14354
14355
14356
14357
14358
14359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14360$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14361hardcode_action_CXX=
14362if test -n "$hardcode_libdir_flag_spec_CXX" ||
14363 test -n "$runpath_var_CXX" ||
14364 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14365
14366 # We can hardcode non-existent directories.
14367 if test "$hardcode_direct_CXX" != no &&
14368 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14369 # have to relink, otherwise we might link with an installed library
14370 # when we should be linking with a yet-to-be-installed one
14371 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14372 test "$hardcode_minus_L_CXX" != no; then
14373 # Linking always hardcodes the temporary library directory.
14374 hardcode_action_CXX=relink
14375 else
14376 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14377 hardcode_action_CXX=immediate
14378 fi
14379else
14380 # We cannot hardcode anything, or else we can only hardcode existing
14381 # directories.
14382 hardcode_action_CXX=unsupported
14383fi
14384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14385$as_echo "$hardcode_action_CXX" >&6; }
14386
14387if test "$hardcode_action_CXX" = relink ||
14388 test "$inherit_rpath_CXX" = yes; then
14389 # Fast installation is not supported
14390 enable_fast_install=no
14391elif test "$shlibpath_overrides_runpath" = yes ||
14392 test "$enable_shared" = no; then
14393 # Fast installation is not necessary
14394 enable_fast_install=needless
14395fi
14396
14397
14398
14399
14400
14401
14402
14403 fi # test -n "$compiler"
14404
14405 CC=$lt_save_CC
f35db108
WM
14406 LDCXX=$LD
14407 LD=$lt_save_LD
14408 GCC=$lt_save_GCC
14409 with_gnu_ld=$lt_save_with_gnu_ld
14410 lt_cv_path_LDCXX=$lt_cv_path_LD
14411 lt_cv_path_LD=$lt_save_path_LD
14412 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14413 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14414fi # test "$_lt_caught_CXX_error" != yes
14415
14416ac_ext=c
14417ac_cpp='$CPP $CPPFLAGS'
14418ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14419ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14420ac_compiler_gnu=$ac_cv_c_compiler_gnu
14421
14422
14423
14424
14425
14426
14427
14428
14429
14430
14431
14432
14433
f35db108
WM
14434 ac_config_commands="$ac_config_commands libtool"
14435
14436
14437
14438
14439# Only expand once:
14440
14441
14442
14443
14444
14445
64548f3b
JJ
14446# The cast to long int works around a bug in the HP C Compiler
14447# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14448# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14449# This bug is HP SR number 8606223364.
14450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
14451$as_echo_n "checking size of void *... " >&6; }
14452if test "${ac_cv_sizeof_void_p+set}" = set; then :
14453 $as_echo_n "(cached) " >&6
14454else
14455 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
14456
14457else
14458 if test "$ac_cv_type_void_p" = yes; then
14459 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14460$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14461{ as_fn_set_status 77
14462as_fn_error "cannot compute sizeof (void *)
14463See \`config.log' for more details." "$LINENO" 5; }; }
14464 else
14465 ac_cv_sizeof_void_p=0
14466 fi
14467fi
14468
14469fi
14470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
14471$as_echo "$ac_cv_sizeof_void_p" >&6; }
14472
14473
14474
14475cat >>confdefs.h <<_ACEOF
14476#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14477_ACEOF
14478
14479
14480
2a6346c4
L
14481if test "${multilib}" = "yes"; then
14482 multilib_arg="--enable-multilib"
14483else
14484 multilib_arg=
14485fi
64548f3b
JJ
14486
14487# Get target configury.
14488unset TSAN_SUPPORTED
14489. ${srcdir}/configure.tgt
14490 if test "x$TSAN_SUPPORTED" = "xyes"; then
14491 TSAN_SUPPORTED_TRUE=
14492 TSAN_SUPPORTED_FALSE='#'
cd0be65c 14493else
64548f3b
JJ
14494 TSAN_SUPPORTED_TRUE='#'
14495 TSAN_SUPPORTED_FALSE=
cd0be65c
WM
14496fi
14497
f35db108 14498
f246eadc 14499case "$host" in
8c4d267c
KS
14500 *-*-darwin*) MAC_INTERPOSE=true ;;
14501 *) MAC_INTERPOSE=false ;;
f246eadc 14502esac
8c4d267c
KS
14503 if $MAC_INTERPOSE; then
14504 USING_MAC_INTERPOSE_TRUE=
14505 USING_MAC_INTERPOSE_FALSE='#'
f246eadc 14506else
8c4d267c
KS
14507 USING_MAC_INTERPOSE_TRUE='#'
14508 USING_MAC_INTERPOSE_FALSE=
f246eadc
JH
14509fi
14510
14511
f35db108
WM
14512ac_config_files="$ac_config_files Makefile"
14513
14514
14515ac_config_files="$ac_config_files interception/Makefile sanitizer_common/Makefile asan/Makefile"
14516
14517
64548f3b 14518if test "x$TSAN_SUPPORTED" = "xyes"; then
cd0be65c
WM
14519 ac_config_files="$ac_config_files tsan/Makefile"
14520
14521fi
14522
f35db108
WM
14523cat >confcache <<\_ACEOF
14524# This file is a shell script that caches the results of configure
14525# tests run on this system so they can be shared between configure
14526# scripts and configure runs, see configure's option --config-cache.
14527# It is not useful on other systems. If it contains results you don't
14528# want to keep, you may remove or edit it.
14529#
14530# config.status only pays attention to the cache file if you give it
14531# the --recheck option to rerun configure.
14532#
14533# `ac_cv_env_foo' variables (set or unset) will be overridden when
14534# loading this file, other *unset* `ac_cv_foo' will be assigned the
14535# following values.
14536
14537_ACEOF
14538
14539# The following way of writing the cache mishandles newlines in values,
14540# but we know of no workaround that is simple, portable, and efficient.
14541# So, we kill variables containing newlines.
14542# Ultrix sh set writes to stderr and can't be redirected directly,
14543# and sets the high bit in the cache file unless we assign to the vars.
14544(
14545 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14546 eval ac_val=\$$ac_var
14547 case $ac_val in #(
14548 *${as_nl}*)
14549 case $ac_var in #(
14550 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14551$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14552 esac
14553 case $ac_var in #(
14554 _ | IFS | as_nl) ;; #(
14555 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14556 *) { eval $ac_var=; unset $ac_var;} ;;
14557 esac ;;
14558 esac
14559 done
14560
14561 (set) 2>&1 |
14562 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14563 *${as_nl}ac_space=\ *)
14564 # `set' does not quote correctly, so add quotes: double-quote
14565 # substitution turns \\\\ into \\, and sed turns \\ into \.
14566 sed -n \
14567 "s/'/'\\\\''/g;
14568 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14569 ;; #(
14570 *)
14571 # `set' quotes correctly as required by POSIX, so do not add quotes.
14572 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14573 ;;
14574 esac |
14575 sort
14576) |
14577 sed '
14578 /^ac_cv_env_/b end
14579 t clear
14580 :clear
14581 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14582 t end
14583 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14584 :end' >>confcache
14585if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14586 if test -w "$cache_file"; then
a2479b3d 14587 test "x$cache_file" != "x/dev/null" &&
f35db108
WM
14588 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14589$as_echo "$as_me: updating cache $cache_file" >&6;}
a2479b3d 14590 cat confcache >$cache_file
f35db108
WM
14591 else
14592 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14593$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14594 fi
14595fi
14596rm -f confcache
14597
14598test "x$prefix" = xNONE && prefix=$ac_default_prefix
14599# Let make expand exec_prefix.
14600test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14601
14602# Transform confdefs.h into DEFS.
14603# Protect against shell expansion while executing Makefile rules.
14604# Protect against Makefile macro expansion.
14605#
14606# If the first sed substitution is executed (which looks for macros that
14607# take arguments), then branch to the quote section. Otherwise,
14608# look for a macro that doesn't take arguments.
14609ac_script='
14610:mline
14611/\\$/{
14612 N
14613 s,\\\n,,
14614 b mline
14615}
14616t clear
14617:clear
14618s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
14619t quote
14620s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
14621t quote
14622b any
14623:quote
14624s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14625s/\[/\\&/g
14626s/\]/\\&/g
14627s/\$/$$/g
14628H
14629:any
14630${
14631 g
14632 s/^\n//
14633 s/\n/ /g
14634 p
14635}
14636'
14637DEFS=`sed -n "$ac_script" confdefs.h`
14638
14639
14640ac_libobjs=
14641ac_ltlibobjs=
f35db108
WM
14642for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14643 # 1. Remove the extension, and $U if already installed.
14644 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14645 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14646 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14647 # will be set to the directory where LIBOBJS objects are built.
14648 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14649 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14650done
14651LIBOBJS=$ac_libobjs
14652
14653LTLIBOBJS=$ac_ltlibobjs
14654
14655
14656 if test -n "$EXEEXT"; then
14657 am__EXEEXT_TRUE=
14658 am__EXEEXT_FALSE='#'
14659else
14660 am__EXEEXT_TRUE='#'
14661 am__EXEEXT_FALSE=
14662fi
14663
2b723e21
TT
14664if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14665 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
14666Usually this means the macro was only invoked conditionally." "$LINENO" 5
14667fi
f35db108 14668if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
a2479b3d 14669 as_fn_error "conditional \"AMDEP\" was never defined.
f35db108
WM
14670Usually this means the macro was only invoked conditionally." "$LINENO" 5
14671fi
14672if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
a2479b3d 14673 as_fn_error "conditional \"am__fastdepCC\" was never defined.
f35db108
WM
14674Usually this means the macro was only invoked conditionally." "$LINENO" 5
14675fi
14676if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
a2479b3d 14677 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
f35db108
WM
14678Usually this means the macro was only invoked conditionally." "$LINENO" 5
14679fi
14680if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
a2479b3d 14681 as_fn_error "conditional \"am__fastdepCCAS\" was never defined.
f35db108
WM
14682Usually this means the macro was only invoked conditionally." "$LINENO" 5
14683fi
64548f3b
JJ
14684if test -z "${TSAN_SUPPORTED_TRUE}" && test -z "${TSAN_SUPPORTED_FALSE}"; then
14685 as_fn_error "conditional \"TSAN_SUPPORTED\" was never defined.
cd0be65c
WM
14686Usually this means the macro was only invoked conditionally." "$LINENO" 5
14687fi
8c4d267c
KS
14688if test -z "${USING_MAC_INTERPOSE_TRUE}" && test -z "${USING_MAC_INTERPOSE_FALSE}"; then
14689 as_fn_error "conditional \"USING_MAC_INTERPOSE\" was never defined.
f246eadc
JH
14690Usually this means the macro was only invoked conditionally." "$LINENO" 5
14691fi
f35db108 14692
a2479b3d 14693: ${CONFIG_STATUS=./config.status}
f35db108
WM
14694ac_write_fail=0
14695ac_clean_files_save=$ac_clean_files
14696ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14697{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14698$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14699as_write_fail=0
14700cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14701#! $SHELL
14702# Generated by $as_me.
14703# Run this file to recreate the current configuration.
14704# Compiler output produced by configure, useful for debugging
14705# configure, is in config.log if it exists.
14706
14707debug=false
14708ac_cs_recheck=false
14709ac_cs_silent=false
14710
14711SHELL=\${CONFIG_SHELL-$SHELL}
14712export SHELL
14713_ASEOF
14714cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14715## -------------------- ##
14716## M4sh Initialization. ##
14717## -------------------- ##
14718
14719# Be more Bourne compatible
14720DUALCASE=1; export DUALCASE # for MKS sh
14721if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14722 emulate sh
14723 NULLCMD=:
14724 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14725 # is contrary to our usage. Disable this feature.
14726 alias -g '${1+"$@"}'='"$@"'
14727 setopt NO_GLOB_SUBST
14728else
14729 case `(set -o) 2>/dev/null` in #(
14730 *posix*) :
14731 set -o posix ;; #(
14732 *) :
14733 ;;
14734esac
14735fi
14736
14737
14738as_nl='
14739'
14740export as_nl
14741# Printing a long string crashes Solaris 7 /usr/bin/printf.
14742as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14743as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14744as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14745# Prefer a ksh shell builtin over an external printf program on Solaris,
14746# but without wasting forks for bash or zsh.
14747if test -z "$BASH_VERSION$ZSH_VERSION" \
14748 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14749 as_echo='print -r --'
14750 as_echo_n='print -rn --'
14751elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14752 as_echo='printf %s\n'
14753 as_echo_n='printf %s'
14754else
14755 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14756 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14757 as_echo_n='/usr/ucb/echo -n'
14758 else
14759 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14760 as_echo_n_body='eval
14761 arg=$1;
14762 case $arg in #(
14763 *"$as_nl"*)
14764 expr "X$arg" : "X\\(.*\\)$as_nl";
14765 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14766 esac;
14767 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14768 '
14769 export as_echo_n_body
14770 as_echo_n='sh -c $as_echo_n_body as_echo'
14771 fi
14772 export as_echo_body
14773 as_echo='sh -c $as_echo_body as_echo'
14774fi
14775
14776# The user is always right.
14777if test "${PATH_SEPARATOR+set}" != set; then
14778 PATH_SEPARATOR=:
14779 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14780 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14781 PATH_SEPARATOR=';'
14782 }
14783fi
14784
14785
14786# IFS
14787# We need space, tab and new line, in precisely that order. Quoting is
14788# there to prevent editors from complaining about space-tab.
14789# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14790# splitting by setting IFS to empty value.)
14791IFS=" "" $as_nl"
14792
14793# Find who we are. Look in the path if we contain no directory separator.
f35db108
WM
14794case $0 in #((
14795 *[\\/]* ) as_myself=$0 ;;
14796 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14797for as_dir in $PATH
14798do
14799 IFS=$as_save_IFS
14800 test -z "$as_dir" && as_dir=.
14801 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14802 done
14803IFS=$as_save_IFS
14804
14805 ;;
14806esac
14807# We did not find ourselves, most probably we were run as `sh COMMAND'
14808# in which case we are not to be found in the path.
14809if test "x$as_myself" = x; then
14810 as_myself=$0
14811fi
14812if test ! -f "$as_myself"; then
14813 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14814 exit 1
14815fi
14816
14817# Unset variables that we do not need and which cause bugs (e.g. in
14818# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14819# suppresses any "Segmentation fault" message there. '((' could
14820# trigger a bug in pdksh 5.2.14.
14821for as_var in BASH_ENV ENV MAIL MAILPATH
14822do eval test x\${$as_var+set} = xset \
14823 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14824done
14825PS1='$ '
14826PS2='> '
14827PS4='+ '
14828
14829# NLS nuisances.
14830LC_ALL=C
14831export LC_ALL
14832LANGUAGE=C
14833export LANGUAGE
14834
14835# CDPATH.
14836(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14837
14838
a2479b3d
L
14839# as_fn_error ERROR [LINENO LOG_FD]
14840# ---------------------------------
f35db108
WM
14841# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14842# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
a2479b3d 14843# script with status $?, using 1 if that was 0.
f35db108
WM
14844as_fn_error ()
14845{
a2479b3d
L
14846 as_status=$?; test $as_status -eq 0 && as_status=1
14847 if test "$3"; then
14848 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14849 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
f35db108 14850 fi
a2479b3d 14851 $as_echo "$as_me: error: $1" >&2
f35db108
WM
14852 as_fn_exit $as_status
14853} # as_fn_error
14854
14855
14856# as_fn_set_status STATUS
14857# -----------------------
14858# Set $? to STATUS, without forking.
14859as_fn_set_status ()
14860{
14861 return $1
14862} # as_fn_set_status
14863
14864# as_fn_exit STATUS
14865# -----------------
14866# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14867as_fn_exit ()
14868{
14869 set +e
14870 as_fn_set_status $1
14871 exit $1
14872} # as_fn_exit
14873
14874# as_fn_unset VAR
14875# ---------------
14876# Portably unset VAR.
14877as_fn_unset ()
14878{
14879 { eval $1=; unset $1;}
14880}
14881as_unset=as_fn_unset
14882# as_fn_append VAR VALUE
14883# ----------------------
14884# Append the text in VALUE to the end of the definition contained in VAR. Take
14885# advantage of any shell optimizations that allow amortized linear growth over
14886# repeated appends, instead of the typical quadratic growth present in naive
14887# implementations.
14888if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14889 eval 'as_fn_append ()
14890 {
14891 eval $1+=\$2
14892 }'
14893else
14894 as_fn_append ()
14895 {
14896 eval $1=\$$1\$2
14897 }
14898fi # as_fn_append
14899
14900# as_fn_arith ARG...
14901# ------------------
14902# Perform arithmetic evaluation on the ARGs, and store the result in the
14903# global $as_val. Take advantage of shells that can avoid forks. The arguments
14904# must be portable across $(()) and expr.
14905if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14906 eval 'as_fn_arith ()
14907 {
14908 as_val=$(( $* ))
14909 }'
14910else
14911 as_fn_arith ()
14912 {
14913 as_val=`expr "$@" || test $? -eq 1`
14914 }
14915fi # as_fn_arith
14916
14917
14918if expr a : '\(a\)' >/dev/null 2>&1 &&
14919 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14920 as_expr=expr
14921else
14922 as_expr=false
14923fi
14924
14925if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14926 as_basename=basename
14927else
14928 as_basename=false
14929fi
14930
14931if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14932 as_dirname=dirname
14933else
14934 as_dirname=false
14935fi
14936
14937as_me=`$as_basename -- "$0" ||
14938$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14939 X"$0" : 'X\(//\)$' \| \
14940 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14941$as_echo X/"$0" |
14942 sed '/^.*\/\([^/][^/]*\)\/*$/{
14943 s//\1/
14944 q
14945 }
14946 /^X\/\(\/\/\)$/{
14947 s//\1/
14948 q
14949 }
14950 /^X\/\(\/\).*/{
14951 s//\1/
14952 q
14953 }
14954 s/.*/./; q'`
14955
14956# Avoid depending upon Character Ranges.
14957as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14958as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14959as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14960as_cr_digits='0123456789'
14961as_cr_alnum=$as_cr_Letters$as_cr_digits
14962
14963ECHO_C= ECHO_N= ECHO_T=
14964case `echo -n x` in #(((((
14965-n*)
14966 case `echo 'xy\c'` in
14967 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14968 xy) ECHO_C='\c';;
14969 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14970 ECHO_T=' ';;
14971 esac;;
14972*)
14973 ECHO_N='-n';;
14974esac
14975
14976rm -f conf$$ conf$$.exe conf$$.file
14977if test -d conf$$.dir; then
14978 rm -f conf$$.dir/conf$$.file
14979else
14980 rm -f conf$$.dir
14981 mkdir conf$$.dir 2>/dev/null
14982fi
14983if (echo >conf$$.file) 2>/dev/null; then
14984 if ln -s conf$$.file conf$$ 2>/dev/null; then
14985 as_ln_s='ln -s'
14986 # ... but there are two gotchas:
14987 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14988 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14989 # In both cases, we have to default to `cp -p'.
14990 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14991 as_ln_s='cp -p'
14992 elif ln conf$$.file conf$$ 2>/dev/null; then
14993 as_ln_s=ln
14994 else
14995 as_ln_s='cp -p'
14996 fi
14997else
14998 as_ln_s='cp -p'
14999fi
15000rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15001rmdir conf$$.dir 2>/dev/null
15002
15003
15004# as_fn_mkdir_p
15005# -------------
15006# Create "$as_dir" as a directory, including parents if necessary.
15007as_fn_mkdir_p ()
15008{
15009
15010 case $as_dir in #(
15011 -*) as_dir=./$as_dir;;
15012 esac
15013 test -d "$as_dir" || eval $as_mkdir_p || {
15014 as_dirs=
15015 while :; do
15016 case $as_dir in #(
15017 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15018 *) as_qdir=$as_dir;;
15019 esac
15020 as_dirs="'$as_qdir' $as_dirs"
15021 as_dir=`$as_dirname -- "$as_dir" ||
15022$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15023 X"$as_dir" : 'X\(//\)[^/]' \| \
15024 X"$as_dir" : 'X\(//\)$' \| \
15025 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15026$as_echo X"$as_dir" |
15027 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15028 s//\1/
15029 q
15030 }
15031 /^X\(\/\/\)[^/].*/{
15032 s//\1/
15033 q
15034 }
15035 /^X\(\/\/\)$/{
15036 s//\1/
15037 q
15038 }
15039 /^X\(\/\).*/{
15040 s//\1/
15041 q
15042 }
15043 s/.*/./; q'`
15044 test -d "$as_dir" && break
15045 done
15046 test -z "$as_dirs" || eval "mkdir $as_dirs"
a2479b3d 15047 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
f35db108
WM
15048
15049
15050} # as_fn_mkdir_p
15051if mkdir -p . 2>/dev/null; then
15052 as_mkdir_p='mkdir -p "$as_dir"'
15053else
15054 test -d ./-p && rmdir ./-p
15055 as_mkdir_p=false
15056fi
15057
15058if test -x / >/dev/null 2>&1; then
15059 as_test_x='test -x'
15060else
15061 if ls -dL / >/dev/null 2>&1; then
15062 as_ls_L_option=L
15063 else
15064 as_ls_L_option=
15065 fi
15066 as_test_x='
15067 eval sh -c '\''
15068 if test -d "$1"; then
15069 test -d "$1/.";
15070 else
15071 case $1 in #(
15072 -*)set "./$1";;
15073 esac;
15074 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15075 ???[sx]*):;;*)false;;esac;fi
15076 '\'' sh
15077 '
15078fi
15079as_executable_p=$as_test_x
15080
15081# Sed expression to map a string onto a valid CPP name.
15082as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15083
15084# Sed expression to map a string onto a valid variable name.
15085as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15086
15087
15088exec 6>&1
15089## ----------------------------------- ##
15090## Main body of $CONFIG_STATUS script. ##
15091## ----------------------------------- ##
15092_ASEOF
15093test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15094
15095cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15096# Save the log message, to keep $0 and so on meaningful, and to
15097# report actual input values of CONFIG_FILES etc. instead of their
15098# values after options handling.
15099ac_log="
15100This file was extended by package-unused $as_me version-unused, which was
a2479b3d 15101generated by GNU Autoconf 2.64. Invocation command line was
f35db108
WM
15102
15103 CONFIG_FILES = $CONFIG_FILES
15104 CONFIG_HEADERS = $CONFIG_HEADERS
15105 CONFIG_LINKS = $CONFIG_LINKS
15106 CONFIG_COMMANDS = $CONFIG_COMMANDS
15107 $ $0 $@
15108
15109on `(hostname || uname -n) 2>/dev/null | sed 1q`
15110"
15111
15112_ACEOF
15113
15114case $ac_config_files in *"
15115"*) set x $ac_config_files; shift; ac_config_files=$*;;
15116esac
15117
15118
15119
15120cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15121# Files that config.status was made for.
15122config_files="$ac_config_files"
15123config_commands="$ac_config_commands"
15124
15125_ACEOF
15126
15127cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15128ac_cs_usage="\
15129\`$as_me' instantiates files and other configuration actions
15130from templates according to the current configuration. Unless the files
15131and actions are specified as TAGs, all are instantiated by default.
15132
15133Usage: $0 [OPTION]... [TAG]...
15134
15135 -h, --help print this help, then exit
15136 -V, --version print version number and configuration settings, then exit
f35db108
WM
15137 -q, --quiet, --silent
15138 do not print progress messages
15139 -d, --debug don't remove temporary files
15140 --recheck update $as_me by reconfiguring in the same conditions
15141 --file=FILE[:TEMPLATE]
15142 instantiate the configuration file FILE
15143
15144Configuration files:
15145$config_files
15146
15147Configuration commands:
15148$config_commands
15149
15150Report bugs to <libsanitizer>."
15151
15152_ACEOF
15153cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
f35db108
WM
15154ac_cs_version="\\
15155package-unused config.status version-unused
a2479b3d
L
15156configured by $0, generated by GNU Autoconf 2.64,
15157 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
f35db108 15158
a2479b3d 15159Copyright (C) 2009 Free Software Foundation, Inc.
f35db108
WM
15160This config.status script is free software; the Free Software Foundation
15161gives unlimited permission to copy, distribute and modify it."
15162
15163ac_pwd='$ac_pwd'
15164srcdir='$srcdir'
15165INSTALL='$INSTALL'
15166MKDIR_P='$MKDIR_P'
15167AWK='$AWK'
15168test -n "\$AWK" || AWK=awk
15169_ACEOF
15170
15171cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15172# The default lists apply if the user does not specify any file.
15173ac_need_defaults=:
15174while test $# != 0
15175do
15176 case $1 in
a2479b3d 15177 --*=*)
f35db108
WM
15178 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15179 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15180 ac_shift=:
15181 ;;
f35db108
WM
15182 *)
15183 ac_option=$1
15184 ac_optarg=$2
15185 ac_shift=shift
15186 ;;
15187 esac
15188
15189 case $ac_option in
15190 # Handling of the options.
15191 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15192 ac_cs_recheck=: ;;
15193 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15194 $as_echo "$ac_cs_version"; exit ;;
f35db108
WM
15195 --debug | --debu | --deb | --de | --d | -d )
15196 debug=: ;;
15197 --file | --fil | --fi | --f )
15198 $ac_shift
15199 case $ac_optarg in
15200 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
f35db108
WM
15201 esac
15202 as_fn_append CONFIG_FILES " '$ac_optarg'"
15203 ac_need_defaults=false;;
15204 --he | --h | --help | --hel | -h )
15205 $as_echo "$ac_cs_usage"; exit ;;
15206 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15207 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15208 ac_cs_silent=: ;;
15209
15210 # This is an error.
a2479b3d 15211 -*) as_fn_error "unrecognized option: \`$1'
f35db108
WM
15212Try \`$0 --help' for more information." ;;
15213
15214 *) as_fn_append ac_config_targets " $1"
15215 ac_need_defaults=false ;;
15216
15217 esac
15218 shift
15219done
15220
15221ac_configure_extra_args=
15222
15223if $ac_cs_silent; then
15224 exec 6>/dev/null
15225 ac_configure_extra_args="$ac_configure_extra_args --silent"
15226fi
15227
15228_ACEOF
15229cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15230if \$ac_cs_recheck; then
15231 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15232 shift
15233 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15234 CONFIG_SHELL='$SHELL'
15235 export CONFIG_SHELL
15236 exec "\$@"
15237fi
15238
15239_ACEOF
15240cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15241exec 5>>config.log
15242{
15243 echo
15244 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15245## Running $as_me. ##
15246_ASBOX
15247 $as_echo "$ac_log"
15248} >&5
15249
15250_ACEOF
15251cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15252#
15253# INIT-COMMANDS
15254#
2a6346c4
L
15255
15256srcdir="$srcdir"
15257host="$host"
15258target="$target"
15259with_multisubdir="$with_multisubdir"
15260with_multisrctop="$with_multisrctop"
15261with_target_subdir="$with_target_subdir"
15262ac_configure_args="${multilib_arg} ${ac_configure_args}"
15263multi_basedir="$multi_basedir"
15264CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
15265CC="$CC"
15266CXX="$CXX"
15267GFORTRAN="$GFORTRAN"
15268GCJ="$GCJ"
f35db108
WM
15269AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15270
15271
15272# The HP-UX ksh and POSIX shell print the target directory to stdout
15273# if CDPATH is set.
15274(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15275
15276sed_quote_subst='$sed_quote_subst'
15277double_quote_subst='$double_quote_subst'
15278delay_variable_subst='$delay_variable_subst'
15279macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15280macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15281enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15282enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15283pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15284enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15285SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15286ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
f35db108
WM
15287host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15288host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15289host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15290build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15291build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15292build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15293SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15294Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15295GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15296EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15297FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15298LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15299NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15300LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15301max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15302ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15303exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15304lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15305lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15306lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
f35db108
WM
15307reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15308reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15309OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15310deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15311file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
f35db108
WM
15312AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15313AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
f35db108
WM
15314STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15315RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15316old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15317old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15318old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15319lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15320CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15321CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15322compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15323GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15324lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15325lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15326lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15327lt_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"`'
f35db108
WM
15328objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15329MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15330lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
f35db108 15331lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
a2479b3d 15332lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
f35db108
WM
15333lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15334lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15335need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
f35db108
WM
15336DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15337NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15338LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15339OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15340OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15341libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15342shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15343extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15344archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15345enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15346export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15347whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15348compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15349old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15350old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15351archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15352archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15353module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15354module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15355with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15356allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15357no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15358hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
a2479b3d 15359hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
f35db108
WM
15360hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15361hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15362hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15363hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15364hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15365hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15366inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15367link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
a2479b3d 15368fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
f35db108
WM
15369always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15370export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15371exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15372include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15373prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
f35db108
WM
15374file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15375variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15376need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15377need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15378version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15379runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15380shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15381shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15382libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15383library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15384soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15385install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15386postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15387postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15388finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15389finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15390hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15391sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15392sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15393hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15394enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15395enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15396enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15397old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15398striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15399compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
15400predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
15401postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
15402predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
15403postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
15404compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
15405LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
15406reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
15407reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15408old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15409compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
15410GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
15411lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
f35db108 15412lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
a2479b3d 15413lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
f35db108
WM
15414lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
15415lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
15416archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
15417enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
15418export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15419whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15420compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
15421old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15422old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15423archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15424archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15425module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15426module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15427with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
15428allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
15429no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
15430hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
a2479b3d 15431hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
f35db108
WM
15432hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
15433hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
15434hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
15435hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
15436hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
15437hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
15438inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
15439link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
a2479b3d 15440fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
f35db108
WM
15441always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
15442export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15443exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
15444include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
15445prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
f35db108
WM
15446file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
15447hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
15448compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
15449predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
15450postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
15451predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
15452postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
15453compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
15454
15455LTCC='$LTCC'
15456LTCFLAGS='$LTCFLAGS'
15457compiler='$compiler_DEFAULT'
15458
15459# A function that is used when there is no print builtin or printf.
15460func_fallback_echo ()
15461{
15462 eval 'cat <<_LTECHO_EOF
15463\$1
15464_LTECHO_EOF'
15465}
15466
15467# Quote evaled strings.
15468for var in SHELL \
15469ECHO \
f35db108
WM
15470SED \
15471GREP \
15472EGREP \
15473FGREP \
15474LD \
15475NM \
15476LN_S \
15477lt_SP2NL \
15478lt_NL2SP \
15479reload_flag \
15480OBJDUMP \
15481deplibs_check_method \
15482file_magic_cmd \
f35db108
WM
15483AR \
15484AR_FLAGS \
f35db108
WM
15485STRIP \
15486RANLIB \
15487CC \
15488CFLAGS \
15489compiler \
15490lt_cv_sys_global_symbol_pipe \
15491lt_cv_sys_global_symbol_to_cdecl \
15492lt_cv_sys_global_symbol_to_c_name_address \
15493lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
f35db108 15494lt_prog_compiler_no_builtin_flag \
f35db108 15495lt_prog_compiler_wl \
a2479b3d 15496lt_prog_compiler_pic \
f35db108
WM
15497lt_prog_compiler_static \
15498lt_cv_prog_compiler_c_o \
15499need_locks \
f35db108
WM
15500DSYMUTIL \
15501NMEDIT \
15502LIPO \
15503OTOOL \
15504OTOOL64 \
15505shrext_cmds \
15506export_dynamic_flag_spec \
15507whole_archive_flag_spec \
15508compiler_needs_object \
15509with_gnu_ld \
15510allow_undefined_flag \
15511no_undefined_flag \
15512hardcode_libdir_flag_spec \
a2479b3d 15513hardcode_libdir_flag_spec_ld \
f35db108 15514hardcode_libdir_separator \
a2479b3d 15515fix_srcfile_path \
f35db108
WM
15516exclude_expsyms \
15517include_expsyms \
15518file_list_spec \
15519variables_saved_for_relink \
15520libname_spec \
15521library_names_spec \
15522soname_spec \
15523install_override_mode \
15524finish_eval \
15525old_striplib \
15526striplib \
15527compiler_lib_search_dirs \
15528predep_objects \
15529postdep_objects \
15530predeps \
15531postdeps \
15532compiler_lib_search_path \
15533LD_CXX \
15534reload_flag_CXX \
15535compiler_CXX \
15536lt_prog_compiler_no_builtin_flag_CXX \
f35db108 15537lt_prog_compiler_wl_CXX \
a2479b3d 15538lt_prog_compiler_pic_CXX \
f35db108
WM
15539lt_prog_compiler_static_CXX \
15540lt_cv_prog_compiler_c_o_CXX \
15541export_dynamic_flag_spec_CXX \
15542whole_archive_flag_spec_CXX \
15543compiler_needs_object_CXX \
15544with_gnu_ld_CXX \
15545allow_undefined_flag_CXX \
15546no_undefined_flag_CXX \
15547hardcode_libdir_flag_spec_CXX \
a2479b3d 15548hardcode_libdir_flag_spec_ld_CXX \
f35db108 15549hardcode_libdir_separator_CXX \
a2479b3d 15550fix_srcfile_path_CXX \
f35db108
WM
15551exclude_expsyms_CXX \
15552include_expsyms_CXX \
15553file_list_spec_CXX \
15554compiler_lib_search_dirs_CXX \
15555predep_objects_CXX \
15556postdep_objects_CXX \
15557predeps_CXX \
15558postdeps_CXX \
15559compiler_lib_search_path_CXX; do
15560 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15561 *[\\\\\\\`\\"\\\$]*)
15562 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15563 ;;
15564 *)
15565 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15566 ;;
15567 esac
15568done
15569
15570# Double-quote double-evaled strings.
15571for var in reload_cmds \
15572old_postinstall_cmds \
15573old_postuninstall_cmds \
15574old_archive_cmds \
15575extract_expsyms_cmds \
15576old_archive_from_new_cmds \
15577old_archive_from_expsyms_cmds \
15578archive_cmds \
15579archive_expsym_cmds \
15580module_cmds \
15581module_expsym_cmds \
15582export_symbols_cmds \
15583prelink_cmds \
f35db108
WM
15584postinstall_cmds \
15585postuninstall_cmds \
15586finish_cmds \
15587sys_lib_search_path_spec \
15588sys_lib_dlsearch_path_spec \
15589reload_cmds_CXX \
15590old_archive_cmds_CXX \
15591old_archive_from_new_cmds_CXX \
15592old_archive_from_expsyms_cmds_CXX \
15593archive_cmds_CXX \
15594archive_expsym_cmds_CXX \
15595module_cmds_CXX \
15596module_expsym_cmds_CXX \
15597export_symbols_cmds_CXX \
a2479b3d 15598prelink_cmds_CXX; do
f35db108
WM
15599 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15600 *[\\\\\\\`\\"\\\$]*)
15601 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15602 ;;
15603 *)
15604 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15605 ;;
15606 esac
15607done
15608
15609ac_aux_dir='$ac_aux_dir'
15610xsi_shell='$xsi_shell'
15611lt_shell_append='$lt_shell_append'
15612
15613# See if we are running on zsh, and set the options which allow our
15614# commands through without removal of \ escapes INIT.
15615if test -n "\${ZSH_VERSION+set}" ; then
15616 setopt NO_GLOB_SUBST
15617fi
15618
15619
15620 PACKAGE='$PACKAGE'
15621 VERSION='$VERSION'
15622 TIMESTAMP='$TIMESTAMP'
15623 RM='$RM'
15624 ofile='$ofile'
15625
15626
15627
15628
15629
15630
15631_ACEOF
15632
15633cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15634
15635# Handling of arguments.
15636for ac_config_target in $ac_config_targets
15637do
15638 case $ac_config_target in
2a6346c4 15639 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
f35db108
WM
15640 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15641 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15642 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15643 "interception/Makefile") CONFIG_FILES="$CONFIG_FILES interception/Makefile" ;;
15644 "sanitizer_common/Makefile") CONFIG_FILES="$CONFIG_FILES sanitizer_common/Makefile" ;;
15645 "asan/Makefile") CONFIG_FILES="$CONFIG_FILES asan/Makefile" ;;
cd0be65c 15646 "tsan/Makefile") CONFIG_FILES="$CONFIG_FILES tsan/Makefile" ;;
f35db108 15647
a2479b3d 15648 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
f35db108
WM
15649 esac
15650done
15651
15652
15653# If the user did not use the arguments to specify the items to instantiate,
15654# then the envvar interface is used. Set only those that are not.
15655# We use the long form for the default assignment because of an extremely
15656# bizarre bug on SunOS 4.1.3.
15657if $ac_need_defaults; then
15658 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15659 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15660fi
15661
15662# Have a temporary directory for convenience. Make it in the build tree
15663# simply because there is no reason against having it here, and in addition,
15664# creating and moving files from /tmp can sometimes cause problems.
15665# Hook for its removal unless debugging.
15666# Note that there is a small window in which the directory will not be cleaned:
15667# after its creation but before its name has been assigned to `$tmp'.
15668$debug ||
15669{
a2479b3d 15670 tmp=
f35db108 15671 trap 'exit_status=$?
a2479b3d 15672 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
f35db108
WM
15673' 0
15674 trap 'as_fn_exit 1' 1 2 13 15
15675}
15676# Create a (secure) tmp directory for tmp files.
15677
15678{
15679 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
a2479b3d 15680 test -n "$tmp" && test -d "$tmp"
f35db108
WM
15681} ||
15682{
15683 tmp=./conf$$-$RANDOM
15684 (umask 077 && mkdir "$tmp")
a2479b3d 15685} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
f35db108
WM
15686
15687# Set up the scripts for CONFIG_FILES section.
15688# No need to generate them if there are no CONFIG_FILES.
15689# This happens for instance with `./config.status config.h'.
15690if test -n "$CONFIG_FILES"; then
15691
15692
15693ac_cr=`echo X | tr X '\015'`
15694# On cygwin, bash can eat \r inside `` if the user requested igncr.
15695# But we know of no other shell where ac_cr would be empty at this
15696# point, so we can use a bashism as a fallback.
15697if test "x$ac_cr" = x; then
15698 eval ac_cr=\$\'\\r\'
15699fi
15700ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15701if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
a2479b3d 15702 ac_cs_awk_cr='\r'
f35db108
WM
15703else
15704 ac_cs_awk_cr=$ac_cr
15705fi
15706
a2479b3d 15707echo 'BEGIN {' >"$tmp/subs1.awk" &&
f35db108
WM
15708_ACEOF
15709
15710
15711{
15712 echo "cat >conf$$subs.awk <<_ACEOF" &&
15713 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15714 echo "_ACEOF"
15715} >conf$$subs.sh ||
a2479b3d
L
15716 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15717ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
f35db108
WM
15718ac_delim='%!_!# '
15719for ac_last_try in false false false false false :; do
15720 . ./conf$$subs.sh ||
a2479b3d 15721 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
f35db108
WM
15722
15723 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15724 if test $ac_delim_n = $ac_delim_num; then
15725 break
15726 elif $ac_last_try; then
a2479b3d 15727 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
f35db108
WM
15728 else
15729 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15730 fi
15731done
15732rm -f conf$$subs.sh
15733
15734cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
a2479b3d 15735cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
f35db108
WM
15736_ACEOF
15737sed -n '
15738h
15739s/^/S["/; s/!.*/"]=/
15740p
15741g
15742s/^[^!]*!//
15743:repl
15744t repl
15745s/'"$ac_delim"'$//
15746t delim
15747:nl
15748h
a2479b3d 15749s/\(.\{148\}\).*/\1/
f35db108
WM
15750t more1
15751s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15752p
15753n
15754b repl
15755:more1
15756s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15757p
15758g
15759s/.\{148\}//
15760t nl
15761:delim
15762h
a2479b3d 15763s/\(.\{148\}\).*/\1/
f35db108
WM
15764t more2
15765s/["\\]/\\&/g; s/^/"/; s/$/"/
15766p
15767b
15768:more2
15769s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15770p
15771g
15772s/.\{148\}//
15773t delim
15774' <conf$$subs.awk | sed '
15775/^[^""]/{
15776 N
15777 s/\n//
15778}
15779' >>$CONFIG_STATUS || ac_write_fail=1
15780rm -f conf$$subs.awk
15781cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15782_ACAWK
a2479b3d 15783cat >>"\$tmp/subs1.awk" <<_ACAWK &&
f35db108
WM
15784 for (key in S) S_is_set[key] = 1
15785 FS = "\a"
15786
15787}
15788{
15789 line = $ 0
15790 nfields = split(line, field, "@")
15791 substed = 0
15792 len = length(field[1])
15793 for (i = 2; i < nfields; i++) {
15794 key = field[i]
15795 keylen = length(key)
15796 if (S_is_set[key]) {
15797 value = S[key]
15798 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15799 len += length(value) + length(field[++i])
15800 substed = 1
15801 } else
15802 len += 1 + keylen
15803 }
15804
15805 print line
15806}
15807
15808_ACAWK
15809_ACEOF
15810cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15811if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15812 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15813else
15814 cat
a2479b3d
L
15815fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15816 || as_fn_error "could not setup config files machinery" "$LINENO" 5
f35db108
WM
15817_ACEOF
15818
a2479b3d
L
15819# VPATH may cause trouble with some makes, so we remove $(srcdir),
15820# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
f35db108
WM
15821# trailing colons and then remove the whole line if VPATH becomes empty
15822# (actually we leave an empty line to preserve line numbers).
15823if test "x$srcdir" = x.; then
a2479b3d
L
15824 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15825s/:*\$(srcdir):*/:/
15826s/:*\${srcdir}:*/:/
15827s/:*@srcdir@:*/:/
15828s/^\([^=]*=[ ]*\):*/\1/
f35db108 15829s/:*$//
f35db108
WM
15830s/^[^=]*=[ ]*$//
15831}'
15832fi
15833
15834cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15835fi # test -n "$CONFIG_FILES"
15836
15837
15838eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
15839shift
15840for ac_tag
15841do
15842 case $ac_tag in
15843 :[FHLC]) ac_mode=$ac_tag; continue;;
15844 esac
15845 case $ac_mode$ac_tag in
15846 :[FHL]*:*);;
a2479b3d 15847 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
f35db108
WM
15848 :[FH]-) ac_tag=-:-;;
15849 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15850 esac
15851 ac_save_IFS=$IFS
15852 IFS=:
15853 set x $ac_tag
15854 IFS=$ac_save_IFS
15855 shift
15856 ac_file=$1
15857 shift
15858
15859 case $ac_mode in
15860 :L) ac_source=$1;;
15861 :[FH])
15862 ac_file_inputs=
15863 for ac_f
15864 do
15865 case $ac_f in
a2479b3d 15866 -) ac_f="$tmp/stdin";;
f35db108
WM
15867 *) # Look for the file first in the build tree, then in the source tree
15868 # (if the path is not absolute). The absolute path cannot be DOS-style,
15869 # because $ac_f cannot contain `:'.
15870 test -f "$ac_f" ||
15871 case $ac_f in
15872 [\\/$]*) false;;
15873 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15874 esac ||
a2479b3d 15875 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
f35db108
WM
15876 esac
15877 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15878 as_fn_append ac_file_inputs " '$ac_f'"
15879 done
15880
15881 # Let's still pretend it is `configure' which instantiates (i.e., don't
15882 # use $as_me), people would be surprised to read:
15883 # /* config.h. Generated by config.status. */
15884 configure_input='Generated from '`
15885 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15886 `' by configure.'
15887 if test x"$ac_file" != x-; then
15888 configure_input="$ac_file. $configure_input"
15889 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15890$as_echo "$as_me: creating $ac_file" >&6;}
15891 fi
15892 # Neutralize special characters interpreted by sed in replacement strings.
15893 case $configure_input in #(
15894 *\&* | *\|* | *\\* )
15895 ac_sed_conf_input=`$as_echo "$configure_input" |
15896 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15897 *) ac_sed_conf_input=$configure_input;;
15898 esac
15899
15900 case $ac_tag in
a2479b3d
L
15901 *:-:* | *:-) cat >"$tmp/stdin" \
15902 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
f35db108
WM
15903 esac
15904 ;;
15905 esac
15906
15907 ac_dir=`$as_dirname -- "$ac_file" ||
15908$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15909 X"$ac_file" : 'X\(//\)[^/]' \| \
15910 X"$ac_file" : 'X\(//\)$' \| \
15911 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15912$as_echo X"$ac_file" |
15913 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15914 s//\1/
15915 q
15916 }
15917 /^X\(\/\/\)[^/].*/{
15918 s//\1/
15919 q
15920 }
15921 /^X\(\/\/\)$/{
15922 s//\1/
15923 q
15924 }
15925 /^X\(\/\).*/{
15926 s//\1/
15927 q
15928 }
15929 s/.*/./; q'`
15930 as_dir="$ac_dir"; as_fn_mkdir_p
15931 ac_builddir=.
15932
15933case "$ac_dir" in
15934.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15935*)
15936 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15937 # A ".." for each directory in $ac_dir_suffix.
15938 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15939 case $ac_top_builddir_sub in
15940 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15941 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15942 esac ;;
15943esac
15944ac_abs_top_builddir=$ac_pwd
15945ac_abs_builddir=$ac_pwd$ac_dir_suffix
15946# for backward compatibility:
15947ac_top_builddir=$ac_top_build_prefix
15948
15949case $srcdir in
15950 .) # We are building in place.
15951 ac_srcdir=.
15952 ac_top_srcdir=$ac_top_builddir_sub
15953 ac_abs_top_srcdir=$ac_pwd ;;
15954 [\\/]* | ?:[\\/]* ) # Absolute name.
15955 ac_srcdir=$srcdir$ac_dir_suffix;
15956 ac_top_srcdir=$srcdir
15957 ac_abs_top_srcdir=$srcdir ;;
15958 *) # Relative name.
15959 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15960 ac_top_srcdir=$ac_top_build_prefix$srcdir
15961 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15962esac
15963ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15964
15965
15966 case $ac_mode in
15967 :F)
15968 #
15969 # CONFIG_FILE
15970 #
15971
15972 case $INSTALL in
15973 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15974 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15975 esac
15976 ac_MKDIR_P=$MKDIR_P
15977 case $MKDIR_P in
15978 [\\/$]* | ?:[\\/]* ) ;;
15979 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15980 esac
15981_ACEOF
15982
15983cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15984# If the template does not know about datarootdir, expand it.
15985# FIXME: This hack should be removed a few years after 2.60.
15986ac_datarootdir_hack=; ac_datarootdir_seen=
15987ac_sed_dataroot='
15988/datarootdir/ {
15989 p
15990 q
15991}
15992/@datadir@/p
15993/@docdir@/p
15994/@infodir@/p
15995/@localedir@/p
15996/@mandir@/p'
15997case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15998*datarootdir*) ac_datarootdir_seen=yes;;
15999*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16001$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16002_ACEOF
16003cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16004 ac_datarootdir_hack='
16005 s&@datadir@&$datadir&g
16006 s&@docdir@&$docdir&g
16007 s&@infodir@&$infodir&g
16008 s&@localedir@&$localedir&g
16009 s&@mandir@&$mandir&g
16010 s&\\\${datarootdir}&$datarootdir&g' ;;
16011esac
16012_ACEOF
16013
16014# Neutralize VPATH when `$srcdir' = `.'.
16015# Shell code in configure.ac might set extrasub.
16016# FIXME: do we really want to maintain this feature?
16017cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16018ac_sed_extra="$ac_vpsub
16019$extrasub
16020_ACEOF
16021cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16022:t
16023/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16024s|@configure_input@|$ac_sed_conf_input|;t t
16025s&@top_builddir@&$ac_top_builddir_sub&;t t
16026s&@top_build_prefix@&$ac_top_build_prefix&;t t
16027s&@srcdir@&$ac_srcdir&;t t
16028s&@abs_srcdir@&$ac_abs_srcdir&;t t
16029s&@top_srcdir@&$ac_top_srcdir&;t t
16030s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16031s&@builddir@&$ac_builddir&;t t
16032s&@abs_builddir@&$ac_abs_builddir&;t t
16033s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16034s&@INSTALL@&$ac_INSTALL&;t t
16035s&@MKDIR_P@&$ac_MKDIR_P&;t t
16036$ac_datarootdir_hack
16037"
a2479b3d
L
16038eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16039 || as_fn_error "could not create $ac_file" "$LINENO" 5
f35db108
WM
16040
16041test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
a2479b3d
L
16042 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16043 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
f35db108 16044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
a2479b3d 16045which seems to be undefined. Please make sure it is defined." >&5
f35db108 16046$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
a2479b3d 16047which seems to be undefined. Please make sure it is defined." >&2;}
f35db108 16048
a2479b3d 16049 rm -f "$tmp/stdin"
f35db108 16050 case $ac_file in
a2479b3d
L
16051 -) cat "$tmp/out" && rm -f "$tmp/out";;
16052 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
f35db108 16053 esac \
a2479b3d 16054 || as_fn_error "could not create $ac_file" "$LINENO" 5
f35db108
WM
16055 ;;
16056
16057
16058 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16059$as_echo "$as_me: executing $ac_file commands" >&6;}
16060 ;;
16061 esac
16062
16063
16064 case $ac_file$ac_mode in
2a6346c4
L
16065 "default-1":C)
16066# Only add multilib support code if we just rebuilt the top-level
16067# Makefile.
16068case " $CONFIG_FILES " in
16069 *" Makefile "*)
16070 ac_file=Makefile . ${multi_basedir}/config-ml.in
16071 ;;
16072esac ;;
f35db108
WM
16073 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16074 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16075 # are listed without --file. Let's play safe and only enable the eval
16076 # if we detect the quoting.
16077 case $CONFIG_FILES in
16078 *\'*) eval set x "$CONFIG_FILES" ;;
16079 *) set x $CONFIG_FILES ;;
16080 esac
16081 shift
16082 for mf
16083 do
16084 # Strip MF so we end up with the name of the file.
16085 mf=`echo "$mf" | sed -e 's/:.*$//'`
16086 # Check whether this is an Automake generated Makefile or not.
16087 # We used to match only the files named `Makefile.in', but
16088 # some people rename them; so instead we look at the file content.
16089 # Grep'ing the first line is not enough: some people post-process
16090 # each Makefile.in and add a new line on top of each file to say so.
16091 # Grep'ing the whole file is not good either: AIX grep has a line
16092 # limit of 2048, but all sed's we know have understand at least 4000.
16093 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16094 dirpart=`$as_dirname -- "$mf" ||
16095$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16096 X"$mf" : 'X\(//\)[^/]' \| \
16097 X"$mf" : 'X\(//\)$' \| \
16098 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16099$as_echo X"$mf" |
16100 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16101 s//\1/
16102 q
16103 }
16104 /^X\(\/\/\)[^/].*/{
16105 s//\1/
16106 q
16107 }
16108 /^X\(\/\/\)$/{
16109 s//\1/
16110 q
16111 }
16112 /^X\(\/\).*/{
16113 s//\1/
16114 q
16115 }
16116 s/.*/./; q'`
16117 else
16118 continue
16119 fi
16120 # Extract the definition of DEPDIR, am__include, and am__quote
16121 # from the Makefile without running `make'.
16122 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16123 test -z "$DEPDIR" && continue
16124 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16125 test -z "am__include" && continue
16126 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16127 # When using ansi2knr, U may be empty or an underscore; expand it
16128 U=`sed -n 's/^U = //p' < "$mf"`
16129 # Find all dependency output files, they are included files with
16130 # $(DEPDIR) in their names. We invoke sed twice because it is the
16131 # simplest approach to changing $(DEPDIR) to its actual value in the
16132 # expansion.
16133 for file in `sed -n "
16134 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16135 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16136 # Make sure the directory exists.
16137 test -f "$dirpart/$file" && continue
16138 fdir=`$as_dirname -- "$file" ||
16139$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16140 X"$file" : 'X\(//\)[^/]' \| \
16141 X"$file" : 'X\(//\)$' \| \
16142 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16143$as_echo X"$file" |
16144 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16145 s//\1/
16146 q
16147 }
16148 /^X\(\/\/\)[^/].*/{
16149 s//\1/
16150 q
16151 }
16152 /^X\(\/\/\)$/{
16153 s//\1/
16154 q
16155 }
16156 /^X\(\/\).*/{
16157 s//\1/
16158 q
16159 }
16160 s/.*/./; q'`
16161 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16162 # echo "creating $dirpart/$file"
16163 echo '# dummy' > "$dirpart/$file"
16164 done
16165 done
16166}
16167 ;;
16168 "libtool":C)
16169
16170 # See if we are running on zsh, and set the options which allow our
16171 # commands through without removal of \ escapes.
16172 if test -n "${ZSH_VERSION+set}" ; then
16173 setopt NO_GLOB_SUBST
16174 fi
16175
16176 cfgfile="${ofile}T"
16177 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16178 $RM "$cfgfile"
16179
16180 cat <<_LT_EOF >> "$cfgfile"
16181#! $SHELL
16182
16183# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16184# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16185# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16186# NOTE: Changes made to this file will be lost: look at ltmain.sh.
16187#
16188# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
a2479b3d 16189# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
f35db108
WM
16190# Written by Gordon Matzigkeit, 1996
16191#
16192# This file is part of GNU Libtool.
16193#
16194# GNU Libtool is free software; you can redistribute it and/or
16195# modify it under the terms of the GNU General Public License as
16196# published by the Free Software Foundation; either version 2 of
16197# the License, or (at your option) any later version.
16198#
16199# As a special exception to the GNU General Public License,
16200# if you distribute this file as part of a program or library that
16201# is built using GNU Libtool, you may include this file under the
16202# same distribution terms that you use for the rest of that program.
16203#
16204# GNU Libtool is distributed in the hope that it will be useful,
16205# but WITHOUT ANY WARRANTY; without even the implied warranty of
16206# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16207# GNU General Public License for more details.
16208#
16209# You should have received a copy of the GNU General Public License
16210# along with GNU Libtool; see the file COPYING. If not, a copy
16211# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16212# obtained by writing to the Free Software Foundation, Inc.,
16213# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16214
16215
16216# The names of the tagged configurations supported by this script.
16217available_tags="CXX "
16218
16219# ### BEGIN LIBTOOL CONFIG
16220
16221# Which release of libtool.m4 was used?
16222macro_version=$macro_version
16223macro_revision=$macro_revision
16224
16225# Whether or not to build shared libraries.
16226build_libtool_libs=$enable_shared
16227
16228# Whether or not to build static libraries.
16229build_old_libs=$enable_static
16230
16231# What type of objects to build.
16232pic_mode=$pic_mode
16233
16234# Whether or not to optimize for fast installation.
16235fast_install=$enable_fast_install
16236
16237# Shell to use when invoking shell scripts.
16238SHELL=$lt_SHELL
16239
16240# An echo program that protects backslashes.
16241ECHO=$lt_ECHO
16242
f35db108
WM
16243# The host system.
16244host_alias=$host_alias
16245host=$host
16246host_os=$host_os
16247
16248# The build system.
16249build_alias=$build_alias
16250build=$build
16251build_os=$build_os
16252
16253# A sed program that does not truncate output.
16254SED=$lt_SED
16255
16256# Sed that helps us avoid accidentally triggering echo(1) options like -n.
16257Xsed="\$SED -e 1s/^X//"
16258
16259# A grep program that handles long lines.
16260GREP=$lt_GREP
16261
16262# An ERE matcher.
16263EGREP=$lt_EGREP
16264
16265# A literal string matcher.
16266FGREP=$lt_FGREP
16267
16268# A BSD- or MS-compatible name lister.
16269NM=$lt_NM
16270
16271# Whether we need soft or hard links.
16272LN_S=$lt_LN_S
16273
16274# What is the maximum length of a command?
16275max_cmd_len=$max_cmd_len
16276
16277# Object file suffix (normally "o").
16278objext=$ac_objext
16279
16280# Executable file suffix (normally "").
16281exeext=$exeext
16282
16283# whether the shell understands "unset".
16284lt_unset=$lt_unset
16285
16286# turn spaces into newlines.
16287SP2NL=$lt_lt_SP2NL
16288
16289# turn newlines into spaces.
16290NL2SP=$lt_lt_NL2SP
16291
f35db108
WM
16292# An object symbol dumper.
16293OBJDUMP=$lt_OBJDUMP
16294
16295# Method to check whether dependent libraries are shared objects.
16296deplibs_check_method=$lt_deplibs_check_method
16297
a2479b3d 16298# Command to use when deplibs_check_method == "file_magic".
f35db108
WM
16299file_magic_cmd=$lt_file_magic_cmd
16300
f35db108
WM
16301# The archiver.
16302AR=$lt_AR
f35db108
WM
16303AR_FLAGS=$lt_AR_FLAGS
16304
f35db108
WM
16305# A symbol stripping program.
16306STRIP=$lt_STRIP
16307
16308# Commands used to install an old-style archive.
16309RANLIB=$lt_RANLIB
16310old_postinstall_cmds=$lt_old_postinstall_cmds
16311old_postuninstall_cmds=$lt_old_postuninstall_cmds
16312
16313# Whether to use a lock for old archive extraction.
16314lock_old_archive_extraction=$lock_old_archive_extraction
16315
16316# A C compiler.
16317LTCC=$lt_CC
16318
16319# LTCC compiler flags.
16320LTCFLAGS=$lt_CFLAGS
16321
16322# Take the output of nm and produce a listing of raw symbols and C names.
16323global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16324
16325# Transform the output of nm in a proper C declaration.
16326global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16327
16328# Transform the output of nm in a C name address pair.
16329global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16330
16331# Transform the output of nm in a C name address pair when lib prefix is needed.
16332global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16333
f35db108
WM
16334# The name of the directory that contains temporary libtool files.
16335objdir=$objdir
16336
16337# Used to examine libraries when file_magic_cmd begins with "file".
16338MAGIC_CMD=$MAGIC_CMD
16339
16340# Must we lock files when doing compilation?
16341need_locks=$lt_need_locks
16342
f35db108
WM
16343# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16344DSYMUTIL=$lt_DSYMUTIL
16345
16346# Tool to change global to local symbols on Mac OS X.
16347NMEDIT=$lt_NMEDIT
16348
16349# Tool to manipulate fat objects and archives on Mac OS X.
16350LIPO=$lt_LIPO
16351
16352# ldd/readelf like tool for Mach-O binaries on Mac OS X.
16353OTOOL=$lt_OTOOL
16354
16355# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16356OTOOL64=$lt_OTOOL64
16357
16358# Old archive suffix (normally "a").
16359libext=$libext
16360
16361# Shared library suffix (normally ".so").
16362shrext_cmds=$lt_shrext_cmds
16363
16364# The commands to extract the exported symbol list from a shared archive.
16365extract_expsyms_cmds=$lt_extract_expsyms_cmds
16366
16367# Variables whose values should be saved in libtool wrapper scripts and
16368# restored at link time.
16369variables_saved_for_relink=$lt_variables_saved_for_relink
16370
16371# Do we need the "lib" prefix for modules?
16372need_lib_prefix=$need_lib_prefix
16373
16374# Do we need a version for libraries?
16375need_version=$need_version
16376
16377# Library versioning type.
16378version_type=$version_type
16379
16380# Shared library runtime path variable.
16381runpath_var=$runpath_var
16382
16383# Shared library path variable.
16384shlibpath_var=$shlibpath_var
16385
16386# Is shlibpath searched before the hard-coded library search path?
16387shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16388
16389# Format of library name prefix.
16390libname_spec=$lt_libname_spec
16391
16392# List of archive names. First name is the real one, the rest are links.
16393# The last name is the one that the linker finds with -lNAME
16394library_names_spec=$lt_library_names_spec
16395
16396# The coded name of the library, if different from the real name.
16397soname_spec=$lt_soname_spec
16398
16399# Permission mode override for installation of shared libraries.
16400install_override_mode=$lt_install_override_mode
16401
16402# Command to use after installation of a shared archive.
16403postinstall_cmds=$lt_postinstall_cmds
16404
16405# Command to use after uninstallation of a shared archive.
16406postuninstall_cmds=$lt_postuninstall_cmds
16407
16408# Commands used to finish a libtool library installation in a directory.
16409finish_cmds=$lt_finish_cmds
16410
16411# As "finish_cmds", except a single script fragment to be evaled but
16412# not shown.
16413finish_eval=$lt_finish_eval
16414
16415# Whether we should hardcode library paths into libraries.
16416hardcode_into_libs=$hardcode_into_libs
16417
16418# Compile-time system search path for libraries.
16419sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16420
16421# Run-time system search path for libraries.
16422sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16423
16424# Whether dlopen is supported.
16425dlopen_support=$enable_dlopen
16426
16427# Whether dlopen of programs is supported.
16428dlopen_self=$enable_dlopen_self
16429
16430# Whether dlopen of statically linked programs is supported.
16431dlopen_self_static=$enable_dlopen_self_static
16432
16433# Commands to strip libraries.
16434old_striplib=$lt_old_striplib
16435striplib=$lt_striplib
16436
16437
16438# The linker used to build libraries.
16439LD=$lt_LD
16440
16441# How to create reloadable object files.
16442reload_flag=$lt_reload_flag
16443reload_cmds=$lt_reload_cmds
16444
16445# Commands used to build an old-style archive.
16446old_archive_cmds=$lt_old_archive_cmds
16447
16448# A language specific compiler.
16449CC=$lt_compiler
16450
16451# Is the compiler the GNU compiler?
16452with_gcc=$GCC
16453
16454# Compiler flag to turn off builtin functions.
16455no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16456
f35db108
WM
16457# How to pass a linker flag through the compiler.
16458wl=$lt_lt_prog_compiler_wl
16459
a2479b3d
L
16460# Additional compiler flags for building library objects.
16461pic_flag=$lt_lt_prog_compiler_pic
16462
f35db108
WM
16463# Compiler flag to prevent dynamic linking.
16464link_static_flag=$lt_lt_prog_compiler_static
16465
16466# Does compiler simultaneously support -c and -o options?
16467compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16468
16469# Whether or not to add -lc for building shared libraries.
16470build_libtool_need_lc=$archive_cmds_need_lc
16471
16472# Whether or not to disallow shared libs when runtime libs are static.
16473allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16474
16475# Compiler flag to allow reflexive dlopens.
16476export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16477
16478# Compiler flag to generate shared objects directly from archives.
16479whole_archive_flag_spec=$lt_whole_archive_flag_spec
16480
16481# Whether the compiler copes with passing no objects directly.
16482compiler_needs_object=$lt_compiler_needs_object
16483
16484# Create an old-style archive from a shared archive.
16485old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16486
16487# Create a temporary old-style archive to link instead of a shared archive.
16488old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16489
16490# Commands used to build a shared archive.
16491archive_cmds=$lt_archive_cmds
16492archive_expsym_cmds=$lt_archive_expsym_cmds
16493
16494# Commands used to build a loadable module if different from building
16495# a shared archive.
16496module_cmds=$lt_module_cmds
16497module_expsym_cmds=$lt_module_expsym_cmds
16498
16499# Whether we are building with GNU ld or not.
16500with_gnu_ld=$lt_with_gnu_ld
16501
16502# Flag that allows shared libraries with undefined symbols to be built.
16503allow_undefined_flag=$lt_allow_undefined_flag
16504
16505# Flag that enforces no undefined symbols.
16506no_undefined_flag=$lt_no_undefined_flag
16507
16508# Flag to hardcode \$libdir into a binary during linking.
16509# This must work even if \$libdir does not exist
16510hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16511
a2479b3d
L
16512# If ld is used when linking, flag to hardcode \$libdir into a binary
16513# during linking. This must work even if \$libdir does not exist.
16514hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16515
f35db108
WM
16516# Whether we need a single "-rpath" flag with a separated argument.
16517hardcode_libdir_separator=$lt_hardcode_libdir_separator
16518
16519# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16520# DIR into the resulting binary.
16521hardcode_direct=$hardcode_direct
16522
16523# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16524# DIR into the resulting binary and the resulting library dependency is
16525# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16526# library is relocated.
16527hardcode_direct_absolute=$hardcode_direct_absolute
16528
16529# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16530# into the resulting binary.
16531hardcode_minus_L=$hardcode_minus_L
16532
16533# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16534# into the resulting binary.
16535hardcode_shlibpath_var=$hardcode_shlibpath_var
16536
16537# Set to "yes" if building a shared library automatically hardcodes DIR
16538# into the library and all subsequent libraries and executables linked
16539# against it.
16540hardcode_automatic=$hardcode_automatic
16541
16542# Set to yes if linker adds runtime paths of dependent libraries
16543# to runtime path list.
16544inherit_rpath=$inherit_rpath
16545
16546# Whether libtool must link a program against all its dependency libraries.
16547link_all_deplibs=$link_all_deplibs
16548
a2479b3d
L
16549# Fix the shell variable \$srcfile for the compiler.
16550fix_srcfile_path=$lt_fix_srcfile_path
16551
f35db108
WM
16552# Set to "yes" if exported symbols are required.
16553always_export_symbols=$always_export_symbols
16554
16555# The commands to list exported symbols.
16556export_symbols_cmds=$lt_export_symbols_cmds
16557
16558# Symbols that should not be listed in the preloaded symbols.
16559exclude_expsyms=$lt_exclude_expsyms
16560
16561# Symbols that must always be exported.
16562include_expsyms=$lt_include_expsyms
16563
16564# Commands necessary for linking programs (against libraries) with templates.
16565prelink_cmds=$lt_prelink_cmds
16566
f35db108
WM
16567# Specify filename containing input files.
16568file_list_spec=$lt_file_list_spec
16569
16570# How to hardcode a shared library path into an executable.
16571hardcode_action=$hardcode_action
16572
16573# The directories searched by this compiler when creating a shared library.
16574compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
16575
16576# Dependencies to place before and after the objects being linked to
16577# create a shared library.
16578predep_objects=$lt_predep_objects
16579postdep_objects=$lt_postdep_objects
16580predeps=$lt_predeps
16581postdeps=$lt_postdeps
16582
16583# The library search path used internally by the compiler when linking
16584# a shared library.
16585compiler_lib_search_path=$lt_compiler_lib_search_path
16586
16587# ### END LIBTOOL CONFIG
16588
16589_LT_EOF
16590
16591 case $host_os in
16592 aix3*)
16593 cat <<\_LT_EOF >> "$cfgfile"
16594# AIX sometimes has problems with the GCC collect2 program. For some
16595# reason, if we set the COLLECT_NAMES environment variable, the problems
16596# vanish in a puff of smoke.
16597if test "X${COLLECT_NAMES+set}" != Xset; then
16598 COLLECT_NAMES=
16599 export COLLECT_NAMES
16600fi
16601_LT_EOF
16602 ;;
16603 esac
16604
16605
16606ltmain="$ac_aux_dir/ltmain.sh"
16607
16608
16609 # We use sed instead of cat because bash on DJGPP gets confused if
16610 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16611 # text mode, it properly converts lines to CR/LF. This bash problem
16612 # is reportedly fixed, but why not run on old versions too?
a2479b3d
L
16613 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16614 || (rm -f "$cfgfile"; exit 1)
16615
16616 case $xsi_shell in
16617 yes)
16618 cat << \_LT_EOF >> "$cfgfile"
16619
16620# func_dirname file append nondir_replacement
16621# Compute the dirname of FILE. If nonempty, add APPEND to the result,
16622# otherwise set result to NONDIR_REPLACEMENT.
16623func_dirname ()
16624{
16625 case ${1} in
16626 */*) func_dirname_result="${1%/*}${2}" ;;
16627 * ) func_dirname_result="${3}" ;;
16628 esac
16629}
16630
16631# func_basename file
16632func_basename ()
16633{
16634 func_basename_result="${1##*/}"
16635}
16636
16637# func_dirname_and_basename file append nondir_replacement
16638# perform func_basename and func_dirname in a single function
16639# call:
16640# dirname: Compute the dirname of FILE. If nonempty,
16641# add APPEND to the result, otherwise set result
16642# to NONDIR_REPLACEMENT.
16643# value returned in "$func_dirname_result"
16644# basename: Compute filename of FILE.
16645# value retuned in "$func_basename_result"
16646# Implementation must be kept synchronized with func_dirname
16647# and func_basename. For efficiency, we do not delegate to
16648# those functions but instead duplicate the functionality here.
16649func_dirname_and_basename ()
16650{
16651 case ${1} in
16652 */*) func_dirname_result="${1%/*}${2}" ;;
16653 * ) func_dirname_result="${3}" ;;
16654 esac
16655 func_basename_result="${1##*/}"
16656}
16657
16658# func_stripname prefix suffix name
16659# strip PREFIX and SUFFIX off of NAME.
16660# PREFIX and SUFFIX must not contain globbing or regex special
16661# characters, hashes, percent signs, but SUFFIX may contain a leading
16662# dot (in which case that matches only a dot).
16663func_stripname ()
16664{
16665 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16666 # positional parameters, so assign one to ordinary parameter first.
16667 func_stripname_result=${3}
16668 func_stripname_result=${func_stripname_result#"${1}"}
16669 func_stripname_result=${func_stripname_result%"${2}"}
16670}
16671
16672# func_opt_split
16673func_opt_split ()
16674{
16675 func_opt_split_opt=${1%%=*}
16676 func_opt_split_arg=${1#*=}
16677}
16678
16679# func_lo2o object
16680func_lo2o ()
16681{
16682 case ${1} in
16683 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16684 *) func_lo2o_result=${1} ;;
16685 esac
16686}
16687
16688# func_xform libobj-or-source
16689func_xform ()
16690{
16691 func_xform_result=${1%.*}.lo
16692}
16693
16694# func_arith arithmetic-term...
16695func_arith ()
16696{
16697 func_arith_result=$(( $* ))
16698}
16699
16700# func_len string
16701# STRING may not start with a hyphen.
16702func_len ()
16703{
16704 func_len_result=${#1}
16705}
16706
16707_LT_EOF
16708 ;;
16709 *) # Bourne compatible functions.
16710 cat << \_LT_EOF >> "$cfgfile"
16711
16712# func_dirname file append nondir_replacement
16713# Compute the dirname of FILE. If nonempty, add APPEND to the result,
16714# otherwise set result to NONDIR_REPLACEMENT.
16715func_dirname ()
16716{
16717 # Extract subdirectory from the argument.
16718 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
16719 if test "X$func_dirname_result" = "X${1}"; then
16720 func_dirname_result="${3}"
16721 else
16722 func_dirname_result="$func_dirname_result${2}"
16723 fi
16724}
16725
16726# func_basename file
16727func_basename ()
16728{
16729 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
16730}
16731
16732
16733# func_stripname prefix suffix name
16734# strip PREFIX and SUFFIX off of NAME.
16735# PREFIX and SUFFIX must not contain globbing or regex special
16736# characters, hashes, percent signs, but SUFFIX may contain a leading
16737# dot (in which case that matches only a dot).
16738# func_strip_suffix prefix name
16739func_stripname ()
16740{
16741 case ${2} in
16742 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
16743 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
16744 esac
16745}
16746
16747# sed scripts:
16748my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16749my_sed_long_arg='1s/^-[^=]*=//'
16750
16751# func_opt_split
16752func_opt_split ()
16753{
16754 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
16755 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
16756}
16757
16758# func_lo2o object
16759func_lo2o ()
16760{
16761 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
16762}
16763
16764# func_xform libobj-or-source
16765func_xform ()
16766{
16767 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
16768}
16769
16770# func_arith arithmetic-term...
16771func_arith ()
16772{
16773 func_arith_result=`expr "$@"`
16774}
16775
16776# func_len string
16777# STRING may not start with a hyphen.
16778func_len ()
16779{
16780 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16781}
16782
16783_LT_EOF
16784esac
16785
16786case $lt_shell_append in
16787 yes)
16788 cat << \_LT_EOF >> "$cfgfile"
16789
16790# func_append var value
16791# Append VALUE to the end of shell variable VAR.
16792func_append ()
16793{
16794 eval "$1+=\$2"
16795}
16796_LT_EOF
16797 ;;
16798 *)
16799 cat << \_LT_EOF >> "$cfgfile"
16800
16801# func_append var value
16802# Append VALUE to the end of shell variable VAR.
16803func_append ()
16804{
16805 eval "$1=\$$1\$2"
16806}
16807
16808_LT_EOF
16809 ;;
16810 esac
16811
16812
16813 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16814 || (rm -f "$cfgfile"; exit 1)
16815
16816 mv -f "$cfgfile" "$ofile" ||
f35db108
WM
16817 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16818 chmod +x "$ofile"
16819
16820
16821 cat <<_LT_EOF >> "$ofile"
16822
16823# ### BEGIN LIBTOOL TAG CONFIG: CXX
16824
16825# The linker used to build libraries.
16826LD=$lt_LD_CXX
16827
16828# How to create reloadable object files.
16829reload_flag=$lt_reload_flag_CXX
16830reload_cmds=$lt_reload_cmds_CXX
16831
16832# Commands used to build an old-style archive.
16833old_archive_cmds=$lt_old_archive_cmds_CXX
16834
16835# A language specific compiler.
16836CC=$lt_compiler_CXX
16837
16838# Is the compiler the GNU compiler?
16839with_gcc=$GCC_CXX
16840
16841# Compiler flag to turn off builtin functions.
16842no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
16843
f35db108
WM
16844# How to pass a linker flag through the compiler.
16845wl=$lt_lt_prog_compiler_wl_CXX
16846
a2479b3d
L
16847# Additional compiler flags for building library objects.
16848pic_flag=$lt_lt_prog_compiler_pic_CXX
16849
f35db108
WM
16850# Compiler flag to prevent dynamic linking.
16851link_static_flag=$lt_lt_prog_compiler_static_CXX
16852
16853# Does compiler simultaneously support -c and -o options?
16854compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
16855
16856# Whether or not to add -lc for building shared libraries.
16857build_libtool_need_lc=$archive_cmds_need_lc_CXX
16858
16859# Whether or not to disallow shared libs when runtime libs are static.
16860allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
16861
16862# Compiler flag to allow reflexive dlopens.
16863export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
16864
16865# Compiler flag to generate shared objects directly from archives.
16866whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
16867
16868# Whether the compiler copes with passing no objects directly.
16869compiler_needs_object=$lt_compiler_needs_object_CXX
16870
16871# Create an old-style archive from a shared archive.
16872old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
16873
16874# Create a temporary old-style archive to link instead of a shared archive.
16875old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
16876
16877# Commands used to build a shared archive.
16878archive_cmds=$lt_archive_cmds_CXX
16879archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
16880
16881# Commands used to build a loadable module if different from building
16882# a shared archive.
16883module_cmds=$lt_module_cmds_CXX
16884module_expsym_cmds=$lt_module_expsym_cmds_CXX
16885
16886# Whether we are building with GNU ld or not.
16887with_gnu_ld=$lt_with_gnu_ld_CXX
16888
16889# Flag that allows shared libraries with undefined symbols to be built.
16890allow_undefined_flag=$lt_allow_undefined_flag_CXX
16891
16892# Flag that enforces no undefined symbols.
16893no_undefined_flag=$lt_no_undefined_flag_CXX
16894
16895# Flag to hardcode \$libdir into a binary during linking.
16896# This must work even if \$libdir does not exist
16897hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
16898
a2479b3d
L
16899# If ld is used when linking, flag to hardcode \$libdir into a binary
16900# during linking. This must work even if \$libdir does not exist.
16901hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
16902
f35db108
WM
16903# Whether we need a single "-rpath" flag with a separated argument.
16904hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
16905
16906# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16907# DIR into the resulting binary.
16908hardcode_direct=$hardcode_direct_CXX
16909
16910# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16911# DIR into the resulting binary and the resulting library dependency is
16912# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16913# library is relocated.
16914hardcode_direct_absolute=$hardcode_direct_absolute_CXX
16915
16916# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16917# into the resulting binary.
16918hardcode_minus_L=$hardcode_minus_L_CXX
16919
16920# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16921# into the resulting binary.
16922hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
16923
16924# Set to "yes" if building a shared library automatically hardcodes DIR
16925# into the library and all subsequent libraries and executables linked
16926# against it.
16927hardcode_automatic=$hardcode_automatic_CXX
16928
16929# Set to yes if linker adds runtime paths of dependent libraries
16930# to runtime path list.
16931inherit_rpath=$inherit_rpath_CXX
16932
16933# Whether libtool must link a program against all its dependency libraries.
16934link_all_deplibs=$link_all_deplibs_CXX
16935
a2479b3d
L
16936# Fix the shell variable \$srcfile for the compiler.
16937fix_srcfile_path=$lt_fix_srcfile_path_CXX
16938
f35db108
WM
16939# Set to "yes" if exported symbols are required.
16940always_export_symbols=$always_export_symbols_CXX
16941
16942# The commands to list exported symbols.
16943export_symbols_cmds=$lt_export_symbols_cmds_CXX
16944
16945# Symbols that should not be listed in the preloaded symbols.
16946exclude_expsyms=$lt_exclude_expsyms_CXX
16947
16948# Symbols that must always be exported.
16949include_expsyms=$lt_include_expsyms_CXX
16950
16951# Commands necessary for linking programs (against libraries) with templates.
16952prelink_cmds=$lt_prelink_cmds_CXX
16953
f35db108
WM
16954# Specify filename containing input files.
16955file_list_spec=$lt_file_list_spec_CXX
16956
16957# How to hardcode a shared library path into an executable.
16958hardcode_action=$hardcode_action_CXX
16959
16960# The directories searched by this compiler when creating a shared library.
16961compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
16962
16963# Dependencies to place before and after the objects being linked to
16964# create a shared library.
16965predep_objects=$lt_predep_objects_CXX
16966postdep_objects=$lt_postdep_objects_CXX
16967predeps=$lt_predeps_CXX
16968postdeps=$lt_postdeps_CXX
16969
16970# The library search path used internally by the compiler when linking
16971# a shared library.
16972compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
16973
16974# ### END LIBTOOL TAG CONFIG: CXX
16975_LT_EOF
16976
16977 ;;
16978 "interception/Makefile":F) cat > vpsed$$ << \_EOF
16979s!`test -f '$<' || echo '$(srcdir)/'`!!
16980_EOF
16981 sed -f vpsed$$ $ac_file > tmp$$
16982 mv tmp$$ $ac_file
16983 rm vpsed$$
16984 echo 'MULTISUBDIR =' >> $ac_file
f64bcb29
L
16985 ml_norecursion=yes
16986 . ${multi_basedir}/config-ml.in
16987 { ml_norecursion=; unset ml_norecursion;}
f35db108
WM
16988 ;;
16989 "sanitizer_common/Makefile":F) cat > vpsed$$ << \_EOF
16990s!`test -f '$<' || echo '$(srcdir)/'`!!
16991_EOF
16992 sed -f vpsed$$ $ac_file > tmp$$
16993 mv tmp$$ $ac_file
16994 rm vpsed$$
16995 echo 'MULTISUBDIR =' >> $ac_file
f64bcb29
L
16996 ml_norecursion=yes
16997 . ${multi_basedir}/config-ml.in
16998 { ml_norecursion=; unset ml_norecursion;}
f35db108
WM
16999 ;;
17000 "asan/Makefile":F) cat > vpsed$$ << \_EOF
17001s!`test -f '$<' || echo '$(srcdir)/'`!!
17002_EOF
17003 sed -f vpsed$$ $ac_file > tmp$$
17004 mv tmp$$ $ac_file
17005 rm vpsed$$
17006 echo 'MULTISUBDIR =' >> $ac_file
f64bcb29
L
17007 ml_norecursion=yes
17008 . ${multi_basedir}/config-ml.in
17009 { ml_norecursion=; unset ml_norecursion;}
f35db108 17010 ;;
cd0be65c
WM
17011 "tsan/Makefile":F) cat > vpsed$$ << \_EOF
17012s!`test -f '$<' || echo '$(srcdir)/'`!!
17013_EOF
17014 sed -f vpsed$$ $ac_file > tmp$$
17015 mv tmp$$ $ac_file
17016 rm vpsed$$
17017 echo 'MULTISUBDIR =' >> $ac_file
17018 ml_norecursion=yes
17019 . ${multi_basedir}/config-ml.in
17020 { ml_norecursion=; unset ml_norecursion;}
17021 ;;
f35db108
WM
17022
17023 esac
17024done # for ac_tag
17025
17026
17027as_fn_exit 0
17028_ACEOF
17029ac_clean_files=$ac_clean_files_save
17030
17031test $ac_write_fail = 0 ||
a2479b3d 17032 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
f35db108
WM
17033
17034
17035# configure is writing to config.log, and then calls config.status.
17036# config.status does its own redirection, appending to config.log.
17037# Unfortunately, on DOS this fails, as config.log is still kept open
17038# by configure, so config.status won't be able to write to it; its
17039# output is simply discarded. So we exec the FD to /dev/null,
17040# effectively closing config.log, so it can be properly (re)opened and
17041# appended to by config.status. When coming back to configure, we
17042# need to make the FD available again.
17043if test "$no_create" != yes; then
17044 ac_cs_success=:
17045 ac_config_status_args=
17046 test "$silent" = yes &&
17047 ac_config_status_args="$ac_config_status_args --quiet"
17048 exec 5>/dev/null
17049 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17050 exec 5>>config.log
17051 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17052 # would make configure fail if this is the last instruction.
a2479b3d 17053 $ac_cs_success || as_fn_exit $?
f35db108
WM
17054fi
17055if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17057$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17058fi
17059